repo_id stringlengths 6 101 | file_path stringlengths 2 269 | content stringlengths 367 5.14M | size int64 367 5.14M | filename stringlengths 1 248 | ext stringlengths 0 87 | lang stringclasses 88 values | program_lang stringclasses 232 values | doc_type stringclasses 5 values | quality_signal stringlengths 2 1.9k | effective stringclasses 2 values | hit_map stringlengths 2 1.4k |
|---|---|---|---|---|---|---|---|---|---|---|---|
007gzs/meeting | server/apps/wechat/models.py | # encoding: utf-8
from __future__ import absolute_import, unicode_literals
from cool import model
from django.db import models
from django.utils import timezone
from core import utils
from core.utils import admin_register
from . import constants
@admin_register(addable=False, changeable=False)
class User(utils.BaseModel, model.AbstractUserMixin):
openid = models.CharField('openId', max_length=64, null=False, default='', unique=True)
unionid = models.CharField('unionId', max_length=64, null=False, default='', db_index=True)
session_key = models.CharField(verbose_name='session_key', max_length=256)
nickname = models.CharField('昵称', max_length=64, null=False, default='')
gender = models.IntegerField('性别', choices=constants.GenderCode.get_choices_list(),
default=constants.GenderCode.UNKNOWN.code, null=False)
language = models.CharField('语言', max_length=64, null=False, default='')
country = models.CharField('国家', max_length=64, null=False, default='')
province = models.CharField('省份', max_length=64, null=False, default='')
city = models.CharField('城市', max_length=64, null=False, default='')
avatarurl = models.ImageField('头像', max_length=512, null=False, default='')
mobile = models.CharField(verbose_name='小程序授权手机号', max_length=32)
def __str__(self):
return self.nickname
@classmethod
def ex_search_fields(cls):
ret = super(User, cls).ex_search_fields()
ret.add('nickname')
return ret
def set_info(self, user_info, save=True):
for k, v in user_info.items():
k = k.lower()
if k in ('subscribe', 'unionid', 'nickname', 'gender', 'language',
'country', 'province', 'city', 'avatarurl', 'session_key', 'mobile'):
setattr(self, k, v)
if save:
self.save_changed()
@property
def need_refresh(self):
"""需要重新获取"""
return (timezone.now() - self.modify_time).total_seconds() > 86400
class Meta:
verbose_name = verbose_name_plural = "用户"
| 2,099 | models | py | en | python | code | {"qsc_code_num_words": 260, "qsc_code_num_chars": 2099.0, "qsc_code_mean_word_length": 5.20769231, "qsc_code_frac_words_unique": 0.41153846, "qsc_code_frac_chars_top_2grams": 0.06646972, "qsc_code_frac_chars_top_3grams": 0.09453471, "qsc_code_frac_chars_top_4grams": 0.07754801, "qsc_code_frac_chars_dupe_5grams": 0.13958641, "qsc_code_frac_chars_dupe_6grams": 0.13958641, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01671642, "qsc_code_frac_chars_whitespace": 0.20200095, "qsc_code_size_file_byte": 2099.0, "qsc_code_num_lines": 53.0, "qsc_code_num_chars_line_max": 96.0, "qsc_code_num_chars_line_mean": 39.60377358, "qsc_code_frac_chars_alphabet": 0.79164179, "qsc_code_frac_chars_comments": 0.0109576, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.06714976, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.09756098, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.17073171, "qsc_codepython_frac_lines_simplefunc": 0.024390243902439025, "qsc_codepython_score_lines_no_logic": 0.65853659, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/meeting | server/apps/wechat/biz.py | # encoding: utf-8
from __future__ import absolute_import, unicode_literals
from django.conf import settings
from django.core.files.uploadedfile import InMemoryUploadedFile
from redis import Redis
from six import BytesIO
from wechatpy import WeChatClient
from wechatpy.crypto import WeChatWxaCrypto
from wechatpy.session.redisstorage import RedisStorage
redis_client = Redis.from_url(settings.REDIS_CACHE_URL)
wechat = WeChatClient(settings.WECHAT_APPID, settings.WECHAT_APPSECRET, session=RedisStorage(
redis_client, prefix="wechat_session::%s" % settings.WECHAT_APPID
))
def decrypt_message(session_key, iv, encrypted_data):
crypto = WeChatWxaCrypto(session_key, iv, settings.WECHAT_APPID)
return crypto.decrypt_message(encrypted_data)
def get_wxa_code_unlimited_file(file_name, scene, **kwargs):
file = BytesIO()
kw = dict()
for k in ('width', 'auto_color', 'line_color', 'page', 'is_hyaline'):
if k in kwargs:
kw[k] = kwargs[k]
content = wechat.wxa.get_wxa_code_unlimited(scene, **kw)
file.write(content.content)
file.seek(0)
return InMemoryUploadedFile(
file=file,
field_name="",
name=file_name,
content_type="image/jpeg",
size=0,
charset="",
content_type_extra=""
)
| 1,297 | biz | py | en | python | code | {"qsc_code_num_words": 163, "qsc_code_num_chars": 1297.0, "qsc_code_mean_word_length": 5.57055215, "qsc_code_frac_words_unique": 0.44785276, "qsc_code_frac_chars_top_2grams": 0.06167401, "qsc_code_frac_chars_top_3grams": 0.06277533, "qsc_code_frac_chars_top_4grams": 0.04185022, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00280374, "qsc_code_frac_chars_whitespace": 0.17501928, "qsc_code_size_file_byte": 1297.0, "qsc_code_num_lines": 40.0, "qsc_code_num_chars_line_max": 94.0, "qsc_code_num_chars_line_mean": 32.425, "qsc_code_frac_chars_alphabet": 0.84579439, "qsc_code_frac_chars_comments": 0.01156515, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05234375, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.06060606, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.24242424, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.36363636, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/meeting | server/apps/wechat/views.py | # encoding: utf-8
from __future__ import absolute_import, unicode_literals
from cool.views import ViewSite, CoolAPIException, ErrorCode
from rest_framework import fields
from django.contrib.auth import authenticate, login
from core import utils
from . import biz, models, serializer
site = ViewSite(name='wechat', app_name='wechat')
@site
class Login(utils.APIBase):
name = "小程序登录"
response_info_serializer_class = serializer.UserSerializer
def get_context(self, request, *args, **kwargs):
session = biz.wechat.wxa.code_to_session(request.params.js_code)
wxa_user, new = models.User.objects.get_or_create(openid=session['openid'])
wxa_user.set_info(session)
login_user = authenticate(request, openid=wxa_user.openid)
if login_user is None:
raise CoolAPIException(ErrorCode.ERROR_BAD_PARAMETER)
login(request, login_user)
return wxa_user
class Meta:
param_fields = (
('js_code', fields.CharField(label='小程序登录code', required=True)),
)
class UserBaseView(utils.APIBase):
def check_api_permissions(self, request, *args, **kwargs):
super(UserBaseView, self).check_api_permissions(request, *args, **kwargs)
if not isinstance(request.user, models.User):
raise CoolAPIException(ErrorCode.ERR_WECHAT_LOGIN)
def get_context(self, request, *args, **kwargs):
raise NotImplementedError
class Meta:
path = '/'
@site
class UserInfo(UserBaseView):
name = "小程序用户信息"
response_info_serializer_class = serializer.UserSerializer
def get_context(self, request, *args, **kwargs):
if request.params.encrypted_data or request.params.iv:
try:
data = biz.decrypt_message(request.user.session_key, request.params.iv, request.params.encrypted_data)
except Exception:
utils.exception_logging.exception("decrypt_message", extra={'request': request})
raise CoolAPIException(ErrorCode.ERROR_SYSTEM)
request.user.set_info(data)
return request.user
class Meta:
param_fields = (
('encrypted_data', fields.CharField(label='完整用户信息的加密数据', required=False, default=None)),
('iv', fields.CharField(label='加密算法的初始向量', required=False, default=None)),
)
urlpatterns = site.urlpatterns
app_name = site.app_name
| 2,409 | views | py | en | python | code | {"qsc_code_num_words": 276, "qsc_code_num_chars": 2409.0, "qsc_code_mean_word_length": 5.82246377, "qsc_code_frac_words_unique": 0.36594203, "qsc_code_frac_chars_top_2grams": 0.03422526, "qsc_code_frac_chars_top_3grams": 0.05289359, "qsc_code_frac_chars_top_4grams": 0.05227131, "qsc_code_frac_chars_dupe_5grams": 0.15681394, "qsc_code_frac_chars_dupe_6grams": 0.12694462, "qsc_code_frac_chars_dupe_7grams": 0.12694462, "qsc_code_frac_chars_dupe_8grams": 0.10578718, "qsc_code_frac_chars_dupe_9grams": 0.10578718, "qsc_code_frac_chars_dupe_10grams": 0.10578718, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00052632, "qsc_code_frac_chars_whitespace": 0.21129099, "qsc_code_size_file_byte": 2409.0, "qsc_code_num_lines": 74.0, "qsc_code_num_chars_line_max": 119.0, "qsc_code_num_chars_line_mean": 32.55405405, "qsc_code_frac_chars_alphabet": 0.84526316, "qsc_code_frac_chars_comments": 0.00622665, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.22641509, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.04389632, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0754717, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.11320755, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.41509434, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/meeting | server/apps/meetings/models.py | # encoding: utf-8
from __future__ import absolute_import, unicode_literals
from django.db import models
from apps.wechat.models import User
from core import utils
from core.constants import DeleteCode
from core.utils import admin_register
from . import constants
@admin_register(addable=False, changeable=False, list_display=['create_user', ])
class Room(utils.BaseModel):
name = models.CharField(verbose_name='名称', default='', max_length=64)
description = models.CharField(verbose_name='描述', default='', max_length=255, blank=True)
create_user = utils.ForeignKey(User, verbose_name='创建人', related_name='create_rooms', editable=False)
qr_code = models.ImageField('二维码', upload_to="%Y/%m/%d/", max_length=512, null=False, default='', editable=False)
create_user_manager = models.BooleanField(verbose_name='创建人管理权限', default=False,
help_text='会议室创建人可以管理该会议室内所有会议')
class Meta:
verbose_name = verbose_name_plural = "会议室"
@admin_register(addable=False, changeable=False, list_display=['room', 'user'], list_filter=['room', ])
class UserFollowRoom(utils.BaseModel):
user = utils.ForeignKey(User, verbose_name='关注人', editable=False)
room = utils.ForeignKey(Room, verbose_name='会议室', related_name='follows', editable=False)
class Meta:
unique_together = ('user', 'room')
verbose_name = verbose_name_plural = "用户关注会议室"
@admin_register(addable=False, changeable=False, list_display=['room', 'user'], list_filter=['date', 'room'])
class Meeting(utils.BaseModel):
name = models.CharField(verbose_name='名称', default='', max_length=64)
description = models.CharField(verbose_name='描述', default='', max_length=255, blank=True)
user = utils.ForeignKey(User, verbose_name='发起人', related_name='reserve_meetings', editable=False)
room = utils.ForeignKey(Room, verbose_name='会议室', editable=False)
date = models.DateField(verbose_name='会议日期', db_index=True, editable=False)
start_time = models.TimeField(verbose_name='开始时间', editable=False)
end_time = models.TimeField(verbose_name='结束时间', editable=False)
@property
def attendees(self):
return User.objects.filter(
meetingattendee__meeting_id=self.pk, meetingattendee__delete_status=DeleteCode.NORMAL.code
)
class Meta:
verbose_name = verbose_name_plural = "会议"
@admin_register(addable=False, changeable=False, list_display=['meeting', 'user'])
class MeetingAttendee(utils.BaseModel):
meeting = utils.ForeignKey(Meeting, verbose_name='会议', editable=False)
user = utils.ForeignKey(User, verbose_name='参与人', editable=False)
class Meta:
unique_together = ('user', 'meeting')
verbose_name = verbose_name_plural = "参会人"
@admin_register(addable=False, changeable=False, list_display=['meeting', 'user'], list_filter=['owner', 'type'])
class MeetingTrace(utils.BaseModel):
meeting = utils.ForeignKey(Meeting, verbose_name='会议')
user = utils.ForeignKey(User, verbose_name='操作人')
owner = models.BooleanField(verbose_name='是否发起人自己操作')
type = models.IntegerField(verbose_name='操作类型', choices=constants.MeetingTraceTypeCode.get_choices_list())
data = models.CharField(verbose_name='详细信息', max_length=4096, default='')
class Meta:
verbose_name = verbose_name_plural = "会议操作历史"
| 3,355 | models | py | en | python | code | {"qsc_code_num_words": 408, "qsc_code_num_chars": 3355.0, "qsc_code_mean_word_length": 5.74754902, "qsc_code_frac_words_unique": 0.28921569, "qsc_code_frac_chars_top_2grams": 0.14072495, "qsc_code_frac_chars_top_3grams": 0.04264392, "qsc_code_frac_chars_top_4grams": 0.0533049, "qsc_code_frac_chars_dupe_5grams": 0.53901919, "qsc_code_frac_chars_dupe_6grams": 0.48955224, "qsc_code_frac_chars_dupe_7grams": 0.41705757, "qsc_code_frac_chars_dupe_8grams": 0.33560768, "qsc_code_frac_chars_dupe_9grams": 0.31385928, "qsc_code_frac_chars_dupe_10grams": 0.22345416, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00627396, "qsc_code_frac_chars_whitespace": 0.14485842, "qsc_code_size_file_byte": 3355.0, "qsc_code_num_lines": 76.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 44.14473684, "qsc_code_frac_chars_alphabet": 0.811084, "qsc_code_frac_chars_comments": 0.00447094, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.16071429, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07339724, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.01785714, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.125, "qsc_codepython_frac_lines_simplefunc": 0.017857142857142856, "qsc_codepython_score_lines_no_logic": 0.71428571, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/microapp.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from dingtalk.client.api.base import DingTalkBaseAPI
class MicroApp(DingTalkBaseAPI):
def create(self, app_icon, app_name, app_desc, homepage_url, pc_homepage_url=None, omp_link=None):
"""
创建微应用
:param app_icon: 微应用的图标。需要调用上传接口将图标上传到钉钉服务器后获取到的mediaId
:param app_name: 微应用的名称。长度限制为1~10个字符
:param app_desc: 微应用的描述。长度限制为1~20个字符
:param homepage_url: 微应用的移动端主页,必须以http开头或https开头
:param pc_homepage_url: 微应用的PC端主页,必须以http开头或https开头,如果不为空则必须与homepageUrl的域名一致
:param omp_link: 微应用的OA后台管理主页,必须以http开头或https开头。
:return: 微应用实例化id
"""
return self._post(
'/microapp/create',
{
"appIcon": app_icon,
"appName": app_name,
"appDesc": app_desc,
"homepageUrl": homepage_url,
"pcHomepageUrl": pc_homepage_url,
"ompLink": omp_link
},
result_processor=lambda x: x['agentId']
)
def update(self, agent_id, app_icon=None, app_name=None, app_desc=None,
homepage_url=None, pc_homepage_url=None, omp_link=None):
"""
更新微应用
:param agent_id: 微应用实例化id
:param app_icon: 微应用的图标。需要调用上传接口将图标上传到钉钉服务器后获取到的mediaId
:param app_name: 微应用的名称。长度限制为1~10个字符
:param app_desc: 微应用的描述。长度限制为1~20个字符
:param homepage_url: 微应用的移动端主页,必须以http开头或https开头
:param pc_homepage_url: 微应用的PC端主页,必须以http开头或https开头,如果不为空则必须与homepageUrl的域名一致
:param omp_link: 微应用的OA后台管理主页,必须以http开头或https开头。
:return: 微应用实例化id
"""
return self._post(
'/microapp/update',
{
"agentId": agent_id,
"appIcon": app_icon,
"appName": app_name,
"appDesc": app_desc,
"homepageUrl": homepage_url,
"pcHomepageUrl": pc_homepage_url,
"ompLink": omp_link
},
result_processor=lambda x: x['agentId']
)
def delete(self, agent_id):
"""
删除微应用
:param agent_id: 微应用实例化id,企业只能删除自建微应用
:return:
"""
return self._post(
'/microapp/delete',
{'agentId': agent_id}
)
def list(self):
"""
列出微应用
:return: 微应用列表
"""
return self._post(
'/microapp/list',
result_processor=lambda x: x['appList']
)
def list_by_userid(self, userid):
"""
列出员工可见的微应用
:return: 微应用列表
"""
return self._get(
'/microapp/list_by_userid',
{'userid': userid},
result_processor=lambda x: x['appList']
)
def visible_scopes(self, agent_id):
"""
删除微应用
:param agent_id: 需要查询的微应用实例化agentId
:return:
"""
return self._post(
'/microapp/visible_scopes',
{'agentId': agent_id}
)
def set_visible_scopes(self, agent_id, is_hidden=False, dept_visible_scopes=(), user_visible_scopes=()):
"""
设置微应用的可见范围
:param agent_id: 微应用实例化id
:param is_hidden: 是否仅限管理员可见,true代表仅限管理员可见
:param dept_visible_scopes: 设置可见的部门id列表
:param user_visible_scopes: 设置可见的员工id列表
:return:
"""
return self._post(
'/microapp/set_visible_scopes',
{
"agentId": agent_id,
"isHidden": is_hidden,
"deptVisibleScopes": dept_visible_scopes,
"userVisibleScopes": user_visible_scopes
}
)
| 3,725 | microapp | py | zh | python | code | {"qsc_code_num_words": 563, "qsc_code_num_chars": 3725.0, "qsc_code_mean_word_length": 3.52930728, "qsc_code_frac_words_unique": 0.22735346, "qsc_code_frac_chars_top_2grams": 0.04076497, "qsc_code_frac_chars_top_3grams": 0.02617011, "qsc_code_frac_chars_top_4grams": 0.02717665, "qsc_code_frac_chars_dupe_5grams": 0.6829391, "qsc_code_frac_chars_dupe_6grams": 0.57674887, "qsc_code_frac_chars_dupe_7grams": 0.57674887, "qsc_code_frac_chars_dupe_8grams": 0.51534977, "qsc_code_frac_chars_dupe_9grams": 0.49119275, "qsc_code_frac_chars_dupe_10grams": 0.45797685, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00532787, "qsc_code_frac_chars_whitespace": 0.34496644, "qsc_code_size_file_byte": 3725.0, "qsc_code_num_lines": 127.0, "qsc_code_num_chars_line_max": 109.0, "qsc_code_num_chars_line_mean": 29.33070866, "qsc_code_frac_chars_alphabet": 0.80901639, "qsc_code_frac_chars_comments": 0.27758389, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.41935484, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.14907368, "qsc_code_frac_chars_long_word_length": 0.03274451, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.11290323, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.03225806, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.27419355, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/department.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from dingtalk.client.api.base import DingTalkBaseAPI
class Department(DingTalkBaseAPI):
def list_ids(self, _id=1):
"""
获取子部门ID列表
:param _id: 父部门id(如果不传,默认部门为根部门,根部门ID为1)
:return: 子部门ID列表数据
"""
return self._get(
'/department/list_ids',
{'id': _id},
result_processor=lambda x: x['sub_dept_id_list']
)
def list(self, _id=1, lang='zh_CN', fetch_child=False):
"""
获取部门列表
:param _id: 父部门id(如果不传,默认部门为根部门,根部门ID为1)
:param lang: 通讯录语言(默认zh_CN,未来会支持en_US)
:param fetch_child: 是否递归部门的全部子部门,ISV微应用固定传递false。
:return: 部门列表数据。以部门的order字段从小到大排列
"""
return self._get(
'/department/list',
{'id': _id, 'lang': lang, 'fetch_child': fetch_child},
result_processor=lambda x: x['department']
)
def get(self, _id, lang='zh_CN'):
"""
获取部门详情
:param _id: 部门id
:param lang: 通讯录语言(默认zh_CN,未来会支持en_US)
:return: 部门列表数据。以部门的order字段从小到大排列
"""
return self._get(
'/department/get',
{'id': _id, 'lang': lang}
)
def create(self, department_data):
"""
创建部门
:param department_data: 部门信息
:return: 创建的部门id
"""
if 'id' in department_data:
raise AttributeError('不能包含Id')
return self._post(
'/department/create',
department_data,
result_processor=lambda x: x['id']
)
def update(self, department_data):
"""
更新部门
:param department_data: 部门信息
:return: 已经更新的部门id
"""
if 'id' not in department_data:
raise AttributeError('必须包含Id')
return self._post(
'/department/update',
department_data,
result_processor=lambda x: x['id']
)
def delete(self, _id):
"""
删除部门
:param _id: 部门id。(注:不能删除根部门;不能删除含有子部门、成员的部门)
:return:
"""
return self._get(
'/department/delete',
{'id': _id}
)
def list_parent_depts_by_dept(self, _id):
"""
查询部门的所有上级父部门路径
:param _id: 希望查询的部门的id,包含查询的部门本身
:return: 该部门的所有父部门id列表
"""
return self._get(
'/department/list_parent_depts_by_dept',
{'id': _id},
result_processor=lambda x: x['parentIds']
)
def list_parent_depts(self, user_id):
"""
查询指定用户的所有上级父部门路径
:param user_id: 希望查询的用户的id
:return: 按顺序依次为其所有父部门的ID,直到根部门
"""
return self._get(
'/department/list_parent_depts',
{'userId': user_id},
result_processor=lambda x: x['department']
)
| 2,905 | department | py | en | python | code | {"qsc_code_num_words": 284, "qsc_code_num_chars": 2905.0, "qsc_code_mean_word_length": 5.18661972, "qsc_code_frac_words_unique": 0.31690141, "qsc_code_frac_chars_top_2grams": 0.05431093, "qsc_code_frac_chars_top_3grams": 0.05295316, "qsc_code_frac_chars_top_4grams": 0.09368635, "qsc_code_frac_chars_dupe_5grams": 0.46978955, "qsc_code_frac_chars_dupe_6grams": 0.34351663, "qsc_code_frac_chars_dupe_7grams": 0.25526137, "qsc_code_frac_chars_dupe_8grams": 0.05702648, "qsc_code_frac_chars_dupe_9grams": 0.05702648, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00265957, "qsc_code_frac_chars_whitespace": 0.35283993, "qsc_code_size_file_byte": 2905.0, "qsc_code_num_lines": 116.0, "qsc_code_num_chars_line_max": 67.0, "qsc_code_num_chars_line_mean": 25.04310345, "qsc_code_frac_chars_alphabet": 0.78085106, "qsc_code_frac_chars_comments": 0.23304647, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.30188679, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.14859863, "qsc_code_frac_chars_long_word_length": 0.03490217, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.1509434, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.03773585, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.35849057, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/checkin.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import time
import datetime
import six
from dingtalk.core.utils import to_text
from dingtalk.client.api.base import DingTalkBaseAPI
class Checkin(DingTalkBaseAPI):
def record(self, department_id, start_time, end_time, offset=0, size=100, order_asc=True):
"""
获得签到数据
:param department_id: 部门id(1 表示根部门)
:param start_time: 开始时间
:param end_time: 结束时间
:param offset: 偏移量
:param size: 分页大小
:param order_asc: 是否正序排列
:return:
"""
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
assert isinstance(start_time, six.integer_types) and isinstance(end_time, six.integer_types)
return self._get(
'/checkin/record',
{
'department_id': department_id,
'start_time': start_time,
'end_time': end_time,
'offset': offset,
'size': size,
'order_asc': 'asc' if order_asc else 'desc'
},
result_processor=lambda x: x['data']
)
def record_get(self, userid_list, start_time, end_time, offset=0, size=100):
"""
获取多个用户的签到记录 (如果是取1个人的数据,时间范围最大到10天,如果是取多个人的数据,时间范围最大1天。)
:param userid_list: 需要查询的用户列表
:param start_time: 起始时间
:param end_time: 截止时间
:param offset: 偏移量
:param size: 分页大小
:return:
"""
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
assert isinstance(start_time, six.integer_types) and isinstance(end_time, six.integer_types)
if isinstance(userid_list, (list, tuple, set)):
userid_list = ','.join(map(to_text, userid_list))
return self._top_request(
'dingtalk.smartwork.checkin.record.get',
{
'userid_list': userid_list,
'start_time': start_time,
'end_time': end_time,
'offset': offset,
'size': size
}
)
| 2,536 | checkin | py | en | python | code | {"qsc_code_num_words": 284, "qsc_code_num_chars": 2536.0, "qsc_code_mean_word_length": 5.05633803, "qsc_code_frac_words_unique": 0.29577465, "qsc_code_frac_chars_top_2grams": 0.10027855, "qsc_code_frac_chars_top_3grams": 0.045961, "qsc_code_frac_chars_top_4grams": 0.04456825, "qsc_code_frac_chars_dupe_5grams": 0.51532033, "qsc_code_frac_chars_dupe_6grams": 0.51532033, "qsc_code_frac_chars_dupe_7grams": 0.47771588, "qsc_code_frac_chars_dupe_8grams": 0.47771588, "qsc_code_frac_chars_dupe_9grams": 0.43593315, "qsc_code_frac_chars_dupe_10grams": 0.43593315, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01693958, "qsc_code_frac_chars_whitespace": 0.30165615, "qsc_code_size_file_byte": 2536.0, "qsc_code_num_lines": 78.0, "qsc_code_num_chars_line_max": 101.0, "qsc_code_num_chars_line_mean": 32.51282051, "qsc_code_frac_chars_alphabet": 0.79390175, "qsc_code_frac_chars_comments": 0.1431388, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.37209302, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07566766, "qsc_code_frac_chars_long_word_length": 0.01829871, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.04651163, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.04651163, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.13953488, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.25581395, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/cspace.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import six
from dingtalk.core.utils import to_text, json_loads
from dingtalk.client.api.base import DingTalkBaseAPI
class Cspace(DingTalkBaseAPI):
def add_to_single_chat(self, agent_id, userid, media_id, file_name):
"""
发送文件给指定用户
:param agent_id: 文件发送者微应用的agentId
:param userid: 文件接收人的userid
:param media_id: 调用钉盘上传文件接口得到的mediaid
:param file_name: 文件名(需包含含扩展名)
:return:
"""
return self._post(
'/cspace/add_to_single_chat',
params={
'agent_id': agent_id,
'userid': userid,
'media_id': media_id,
'file_name': file_name
}
)
def add(self, code, media_id, space_id, folder_id, name, agent_id=None, overwrite=False):
"""
新增文件到用户钉盘
:param code: 如果是微应用,code值为微应用免登授权码,如果是服务窗应用,code值为服务窗免登授权码
code为临时授权码,只能消费一次,下次请求需要重新获取新的code。
:param media_id: 调用钉盘上传文件接口得到的mediaid
:param space_id: 调用云盘选择控件后获取的用户钉盘空间ID
:param folder_id: 调用云盘选择控件后获取的用户钉盘文件夹ID
:param name: 上传文件的名称,不能包含非法字符
:param agent_id: 微应用的agentId
:param overwrite: 到同名文件是否覆盖,若不覆盖,则会自动重命名本次新增的文件
:return:
"""
return self._get(
'/cspace/add',
{
'agent_id': agent_id,
'code': code,
'media_id': media_id,
'space_id': space_id,
'folder_id': folder_id,
'name': name,
'overwrite': overwrite
},
result_processor=lambda x:
json_loads(x['dentry']) if isinstance(x['dentry'], six.string_types) else x['dentry']
)
def get_custom_space(self, domain=None, agent_id=None):
"""
获取企业下的自定义空间
:param domain: 企业调用时传入,需要为10个字节以内的字符串,仅可包含字母和数字,大小写不敏感
:param agent_id: ISV调用时传入,微应用agentId
:return: 申请到的空间id
"""
return self._get(
'/cspace/get_custom_space',
{
'agent_id': agent_id,
'domain': domain
},
result_processor=lambda x: x['spaceid']
)
def grant_custom_space(self, isdownload, userid, agent_id=None, domain=None, duration=30, path=None, fileids=()):
"""
授权用户访问企业下的自定义空间
:param isdownload: 权限类型,true为下载,false为上传
:param userid: 企业用户userid
:param agent_id: ISV调用时传入,授权访问指定微应用的自定义空间
:param domain: 企业调用时传入,授权访问该domain的自定义空间
:param duration: 权限有效时间,有效范围为0~3600秒,超出此范围或不传默认为30秒
:param path: 授权访问的路径
:param fileids: 授权访问的文件id列表
:return:
"""
_type = 'download' if isdownload else 'add'
fileids = ','.join(map(to_text, fileids))
return self._get(
'/cspace/grant_custom_space',
{
'type': _type,
'agent_id': agent_id,
'domain': domain,
'userid': userid,
'duration': duration,
'path': path,
'fileids': fileids
},
result_processor=lambda x: x['spaceid']
)
def file_upload_transaction(self, agent_id, file_size, chunk_numbers, upload_id=None):
"""
开启/提交 文件上传事务
:param agent_id: 微应用的agentId
:param file_size: 文件大小
:param chunk_numbers: 文件总块数
:param upload_id: 上传事务id 不传该值为开启事务,传该值为提交事务
:return: 开启事务:上传事务id; 提交事务:文件存储id
"""
return self._get(
'/file/upload/transaction',
{
'agent_id': agent_id,
'file_size': file_size,
'chunk_numbers': chunk_numbers,
'upload_id': upload_id
},
result_processor=lambda x: x['upload_id'] if upload_id is None else x['media_id']
)
def file_upload_chunk(self, agent_id, upload_id, chunk_sequence, file_chunk):
"""
上传文件块
:param agent_id: 微应用的agentId
:param upload_id: 上传事务id
:param chunk_sequence: 文件块号,从1开始计数
:param file_chunk: 要上传的文件块,一个 File-object
:return:
"""
return self._post(
'/file/upload/chunk',
params={
'agent_id': agent_id,
'upload_id': upload_id,
'chunk_sequence': chunk_sequence
},
files={
'file': file_chunk
}
)
def file_upload_single(self, agent_id, file_size, media_file):
"""
单步文件上传
:param agent_id: 微应用的agentId
:param file_size: 文件大小
:param media_file: 要上传的文件,一个 File-object
:return:
"""
return self._post(
'/file/upload/single',
params={
'agent_id': agent_id,
'file_size': file_size
},
files={
'file': media_file
},
result_processor=lambda x: x['media_id']
)
| 5,144 | cspace | py | en | python | code | {"qsc_code_num_words": 504, "qsc_code_num_chars": 5144.0, "qsc_code_mean_word_length": 5.23015873, "qsc_code_frac_words_unique": 0.27380952, "qsc_code_frac_chars_top_2grams": 0.07435508, "qsc_code_frac_chars_top_3grams": 0.03186646, "qsc_code_frac_chars_top_4grams": 0.03717754, "qsc_code_frac_chars_dupe_5grams": 0.26251897, "qsc_code_frac_chars_dupe_6grams": 0.13353566, "qsc_code_frac_chars_dupe_7grams": 0.1138088, "qsc_code_frac_chars_dupe_8grams": 0.08877086, "qsc_code_frac_chars_dupe_9grams": 0.0660091, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00398406, "qsc_code_frac_chars_whitespace": 0.36566874, "qsc_code_size_file_byte": 5144.0, "qsc_code_num_lines": 169.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 30.43786982, "qsc_code_frac_chars_alphabet": 0.80386148, "qsc_code_frac_chars_comments": 0.26302488, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.27777778, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.13566476, "qsc_code_frac_chars_long_word_length": 0.03014772, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.07777778, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.04444444, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.21111111, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/report.py | # encoding: utf-8
from __future__ import absolute_import, unicode_literals
import datetime
import time
from dingtalk.client.api.base import DingTalkBaseAPI
class Report(DingTalkBaseAPI):
def list(self, start_time, end_time, cursor=0, size=20, template_name='', userid=''):
"""
查询企业员工发出的日志列表
:param start_time: 查询起始时间
:param end_time: 查询截止时间
:param cursor: 查询游标,初始传入0,后续从上一次的返回值中获取
:param size: 每页数据量
:param template_name: 要查询的模板名称
:param userid: 员工的userid
"""
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
return self._top_request(
"dingtalk.oapi.report.list",
{
"start_time": start_time,
"end_time": end_time,
"cursor": cursor,
"size": size,
"template_name": template_name,
"userid": userid
}
)
def statistics(self, report_id):
"""
获取日志统计数据
:param report_id: 日志id
"""
return self._top_request(
"dingtalk.oapi.report.statistics",
{
"report_id": report_id
}
)
def statistics_listbytype(self, report_id, _type, offset=0, size=100):
"""
根据类型获取日志相关人员列表
:param report_id: 日志id
:param _type: 查询类型 0:已读人员列表 1:评论人员列表 2:点赞人员列表
:param offset: 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0
:param size: 分页参数,每页大小,最多传100,默认值为100
"""
return self._top_request(
"dingtalk.oapi.report.statistics.listbytype",
{
"report_id": report_id,
"type": _type,
"offset": offset,
"size": size
}
)
def receiver_list(self, report_id, offset=0, size=100):
"""
获取日志分享人员列表
:param report_id: 日志id
:param offset: 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0
:param size: 分页参数,每页大小,最多传100,默认值为100
"""
return self._top_request(
"dingtalk.oapi.report.receiver.list",
{
"report_id": report_id,
"offset": offset,
"size": size
}
)
def comment_list(self, report_id, offset=0, size=20):
"""
获取日志评论详情
:param report_id: 日志id
:param offset: 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值,默认值为0
:param size: 分页参数,每页大小,最多传20,默认值为20
"""
return self._top_request(
"dingtalk.oapi.report.comment.list",
{
"report_id": report_id,
"offset": offset,
"size": size
}
)
def getunreadcount(self, userid=''):
"""
查询企业员工的日志未读数
:param userid: 员工id
"""
return self._top_request(
"dingtalk.oapi.report.getunreadcount",
{"userid": userid},
result_processor=lambda x: x['count']
)
def template_listbyuserid(self, userid='', offset=0, size=100):
"""
根据用户id获取可见的日志模板列表
:param userid: 员工userId, 不传递表示获取所有日志模板
:param offset: 分页游标,从0开始。根据返回结果里的next_cursor是否为空来判断是否还有下一页,且再次调用时offset设置成next_cursor的值
:param size: 分页大小,最大可设置成100
"""
return self._top_request(
"dingtalk.oapi.report.template.listbyuserid",
{
"userid": userid,
"offset": offset,
"size": size
}
)
| 3,771 | report | py | en | python | code | {"qsc_code_num_words": 356, "qsc_code_num_chars": 3771.0, "qsc_code_mean_word_length": 5.51966292, "qsc_code_frac_words_unique": 0.28370787, "qsc_code_frac_chars_top_2grams": 0.06513995, "qsc_code_frac_chars_top_3grams": 0.04631043, "qsc_code_frac_chars_top_4grams": 0.07124682, "qsc_code_frac_chars_dupe_5grams": 0.40203562, "qsc_code_frac_chars_dupe_6grams": 0.34656489, "qsc_code_frac_chars_dupe_7grams": 0.34656489, "qsc_code_frac_chars_dupe_8grams": 0.24173028, "qsc_code_frac_chars_dupe_9grams": 0.21221374, "qsc_code_frac_chars_dupe_10grams": 0.21221374, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02354399, "qsc_code_frac_chars_whitespace": 0.35799523, "qsc_code_size_file_byte": 3771.0, "qsc_code_num_lines": 132.0, "qsc_code_num_chars_line_max": 96.0, "qsc_code_num_chars_line_mean": 28.56818182, "qsc_code_frac_chars_alphabet": 0.78810409, "qsc_code_frac_chars_comments": 0.23150358, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.25352113, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.15031153, "qsc_code_frac_chars_long_word_length": 0.09423676, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.09859155, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.05633803, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.26760563, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
0015/Grid_Board | grid_board_app/analysis_options.yaml | # This file configures the analyzer, which statically analyzes Dart code to
# check for errors, warnings, and lints.
#
# The issues identified by the analyzer are surfaced in the UI of Dart-enabled
# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be
# invoked from the command line by running `flutter analyze`.
# The following line activates a set of recommended lints for Flutter apps,
# packages, and plugins designed to encourage good coding practices.
include: package:flutter_lints/flutter.yaml
linter:
# The lint rules applied to this project can be customized in the
# section below to disable rules from the `package:flutter_lints/flutter.yaml`
# included above or to enable additional rules. A list of all available lints
# and their documentation is published at https://dart.dev/lints.
#
# Instead of disabling a lint rule for the entire project in the
# section below, it can also be suppressed for a single line of code
# or a specific dart file by using the `// ignore: name_of_lint` and
# `// ignore_for_file: name_of_lint` syntax on the line or in the file
# producing the lint.
rules:
# avoid_print: false # Uncomment to disable the `avoid_print` rule
# prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule
# Additional information about this file can be found at
# https://dart.dev/guides/language/analysis-options
| 1,420 | analysis_options | yaml | en | yaml | data | {"qsc_code_num_words": 222, "qsc_code_num_chars": 1420.0, "qsc_code_mean_word_length": 4.81531532, "qsc_code_frac_words_unique": 0.48198198, "qsc_code_frac_chars_top_2grams": 0.01870907, "qsc_code_frac_chars_top_3grams": 0.03367633, "qsc_code_frac_chars_top_4grams": 0.04864359, "qsc_code_frac_chars_dupe_5grams": 0.05612722, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0, "qsc_code_frac_chars_whitespace": 0.17394366, "qsc_code_size_file_byte": 1420.0, "qsc_code_num_lines": 28.0, "qsc_code_num_chars_line_max": 88.0, "qsc_code_num_chars_line_mean": 50.71428571, "qsc_code_frac_chars_alphabet": 0.91133845, "qsc_code_frac_chars_comments": 0.91971831, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 1, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/bpms.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import datetime
import time
import six
from dingtalk.client.api.base import DingTalkBaseAPI
from dingtalk.core.utils import to_text
from optionaldict import optionaldict
class Bpms(DingTalkBaseAPI):
def process_copy(self, agent_id, process_code, biz_category_id=None, process_name=None, description=None):
"""
复制审批流
:param agent_id: 企业微应用标识
:param process_code: 审批流的唯一码
:param biz_category_id: 业务分类标识
:param process_name: 审批流名称
:param description: 审批流描述
:return:
"""
return self._top_request(
'dingtalk.smartwork.bpms.process.copy',
optionaldict({
'agent_id': agent_id,
'process_code': process_code,
'biz_category_id': biz_category_id,
'process_name': process_name,
'description': description
})
)
def process_sync(self, agent_id, src_process_code, target_process_code, biz_category_id=None, process_name=None):
"""
更新审批流
:param agent_id: 企业微应用标识
:param src_process_code: 源审批流的唯一码
:param target_process_code: 目标审批流的唯一码
:param biz_category_id: 业务分类标识
:param process_name: 审批流名称
:return:
"""
return self._top_request(
'dingtalk.smartwork.bpms.process.sync',
optionaldict({
'agent_id': agent_id,
'src_process_code': src_process_code,
'target_process_code': target_process_code,
'biz_category_id': biz_category_id,
'process_name': process_name
})
)
def processinstance_create(
self, process_code, originator_user_id, dept_id, approvers=None, form_component_values=None,
agent_id=None, cc_list=(), cc_start=False, cc_finish=False, approvers_v2=None
):
"""
发起审批实例
:param process_code: 审批流的唯一码
:param originator_user_id: 审批实例发起人的userid
:param dept_id: 发起人所在的部门
:param approvers: 审批人userid列表
:param form_component_values: 审批流表单参数 name: 表单每一栏的名称 value: 表单每一栏的值, ext_value: 扩展值
例:OrderedDict({name1: value1, name2: (value2, ext_value2), name3: (value3, )})
:param agent_id:
:param cc_list: 抄送人userid列表
:param cc_start: 开始时抄送
:param cc_finish: 结束时抄送
:param approvers_v2: 审批人列表,支持会签/或签,优先级高于approvers变量
:return:
"""
cc_position = 'START' if cc_start else ''
if cc_finish:
if cc_position:
cc_position += '_'
cc_position += 'FINISH'
if isinstance(approvers, (list, tuple, set)):
approvers = ','.join(map(to_text, approvers))
form_component_value_list = []
if form_component_values:
for name, value in form_component_values.items():
data = {'name': name}
if isinstance(value, (list, tuple)):
if len(value) > 1:
data['ext_value'] = value[1]
value = value[0]
data['value'] = value
form_component_value_list.append(data)
return self._top_request(
"dingtalk.oapi.processinstance.create",
optionaldict({
"process_code": process_code,
"originator_user_id": originator_user_id,
"dept_id": dept_id,
"form_component_values": form_component_value_list,
"agent_id": agent_id,
"approvers": approvers,
"cc_list": cc_list,
"cc_position": cc_position,
"approvers_v2": approvers_v2
}),
result_processor=lambda x: x['process_instance_id']
)
def processinstance_listids(self, process_code, start_time, end_time, size='10', cursor='0', userid_list=()):
"""
分页获取审批实例id列表
企业可以根据审批流的唯一标识,分页获取该审批流对应的审批实例id。只能取到权限范围内的相关部门的审批实例
:param process_code: 流程模板唯一标识,可在oa后台编辑审批表单部分查询
:param start_time: 审批实例开始时间,毫秒级
:param end_time: 审批实例结束时间,毫秒级,默认取当前值
:param size: 分页参数,每页大小,最多传10
:param cursor: 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值
:param userid_list: 发起人用户id列表
"""
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
if isinstance(userid_list, (list, tuple)):
userid_list = ','.join(map(to_text, userid_list))
return self._top_request(
"dingtalk.oapi.processinstance.listids",
optionaldict({
"process_code": process_code,
"start_time": start_time,
"end_time": end_time,
"size": size,
"cursor": cursor,
"userid_list": userid_list
})
)
def processinstance_list(self, process_code, start_time, end_time=None, cursor=0, size=10, userid_list=()):
"""
获取审批实例列表
:param process_code: 流程模板唯一标识,可在oa后台编辑审批表单部分查询
:param start_time: 审批实例开始时间
:param end_time: 审批实例结束时间,默认取当前值
:param cursor: 每页大小,最多传10
:param size: 分页查询的游标,最开始传0,后续传返回参数中的next_cursor值
:param userid_list: 发起人用户id列表
:return:
"""
userid_list = ','.join(map(to_text, userid_list))
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
assert isinstance(start_time, six.integer_types)
assert end_time is None or isinstance(end_time, six.integer_types)
return self._top_request(
'dingtalk.smartwork.bpms.processinstance.list',
optionaldict({
'process_code': process_code,
'start_time': start_time,
'end_time': end_time,
'cursor': cursor,
'size': size,
'userid_list': userid_list
})
)
def processinstance_get(self, process_instance_id):
"""
获取单个审批实例详情
:param process_instance_id: 审批实例id
:return:
"""
return self._top_request(
'dingtalk.smartwork.bpms.processinstance.get',
{'process_instance_id': process_instance_id},
result_processor=lambda x: x['process_instance']
)
def dingtalk_oapi_process_gettodonum(self, userid):
"""
获取待我审批数量
获取用户待审批数量
:param userid: 用户id
"""
return self._top_request(
"dingtalk.oapi.process.gettodonum",
{"userid": userid}
)
def process_listbyuserid(self, userid, offset=0, size=100):
"""
根据用户id获取可见审批模板列表
:param userid: 用户id
:param offset: 分页游标,从0开始。根据返回结果中next_cursor是否为空判断是否有下一页,且再次调用offset设置成next_cursor的值
:param size: 分页大小,最大可设置成100
:return:
"""
return self._top_request(
'dingtalk.oapi.process.listbyuserid',
{
'userid': userid,
'offset': offset,
'size': size
}
)
def process_instance_terminate(self, process_instance_id, remark="", is_system=True, operating_userid=""):
"""
调用本接口通过实例id终止当前企业下发起的审批实例。
终止审批实例后,审批状态为“已撤销”。
:param process_instance_id: 审批实例ID
:param remark: 终止说明
:param is_system: 是否通过系统操作:true:由系统直接终止false:由指定的操作者终止
:param operating_userid: 操作人的userid, 当is_system为false时,该参数必传
:return:
"""
return self._top_request(
"dingtalk.oapi.process.instance.terminate",
{
"request": {
"process_instance_id": process_instance_id,
"remark": remark,
"is_system": is_system,
"operating_userid": operating_userid
}
}
)
| 8,451 | bpms | py | en | python | code | {"qsc_code_num_words": 841, "qsc_code_num_chars": 8451.0, "qsc_code_mean_word_length": 5.53151011, "qsc_code_frac_words_unique": 0.22116528, "qsc_code_frac_chars_top_2grams": 0.05674979, "qsc_code_frac_chars_top_3grams": 0.02515047, "qsc_code_frac_chars_top_4grams": 0.03869304, "qsc_code_frac_chars_dupe_5grams": 0.47635426, "qsc_code_frac_chars_dupe_6grams": 0.40326741, "qsc_code_frac_chars_dupe_7grams": 0.36736887, "qsc_code_frac_chars_dupe_8grams": 0.30911436, "qsc_code_frac_chars_dupe_9grams": 0.21883061, "qsc_code_frac_chars_dupe_10grams": 0.1311264, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00895837, "qsc_code_frac_chars_whitespace": 0.32635191, "qsc_code_size_file_byte": 8451.0, "qsc_code_num_lines": 244.0, "qsc_code_num_chars_line_max": 118.0, "qsc_code_num_chars_line_mean": 34.6352459, "qsc_code_frac_chars_alphabet": 0.80818549, "qsc_code_frac_chars_comments": 0.21772571, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.26666667, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.14054415, "qsc_code_frac_chars_long_word_length": 0.05992322, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.01481481, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.06666667, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.05185185, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.19259259, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/attendance.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import time
import datetime
from dingtalk.client.api.base import DingTalkBaseAPI
class Attendance(DingTalkBaseAPI):
DATE_TIME_FORMAT = '%Y-%m-%d %H:%M:%S'
def list_record(self, user_ids, check_date_from, check_date_to):
"""
考勤打卡记录开放
:param user_ids: 企业内的员工id列表,最多不能超过50个
:param check_date_from: 查询考勤打卡记录的起始工作日
:param check_date_to: 查询考勤打卡记录的结束工作日。注意,起始与结束工作日最多相隔7天
:return:
"""
if isinstance(check_date_from, (datetime.date, datetime.datetime)):
check_date_from = check_date_from.strftime(self.DATE_TIME_FORMAT)
if isinstance(check_date_to, (datetime.date, datetime.datetime)):
check_date_to = check_date_to.strftime(self.DATE_TIME_FORMAT)
return self._post(
'/attendance/listRecord',
{
"userIds": user_ids,
"checkDateFrom": check_date_from,
"checkDateTo": check_date_to
},
result_processor=lambda x: x['recordresult']
)
def list(self, work_date_from, work_date_to, user_ids=(), offset=0, limit=50):
"""
考勤打卡数据开放
:param work_date_from: 查询考勤打卡记录的起始工作日
:param work_date_to: 查询考勤打卡记录的结束工作日
:param user_ids: 员工在企业内的UserID列表,企业用来唯一标识用户的字段
:param offset: 表示获取考勤数据的起始点,第一次传0,如果还有多余数据,下次获取传的offset值为之前的offset+limit
:param limit: 表示获取考勤数据的条数,最大不能超过50条
:return:
"""
if isinstance(work_date_from, (datetime.date, datetime.datetime)):
work_date_from = work_date_from.strftime(self.DATE_TIME_FORMAT)
if isinstance(work_date_to, (datetime.date, datetime.datetime)):
work_date_to = work_date_to.strftime(self.DATE_TIME_FORMAT)
return self._post(
'/attendance/list',
{
"workDateFrom": work_date_from,
"workDateTo": work_date_to,
"userIdList": user_ids,
"offset": offset,
"limit": limit
}
)
def listschedule(self, work_date, offset=0, size=200):
"""
考勤排班信息按天全量查询接
:param work_date: 排班时间
:param offset: 偏移位置
:param size: 分页大小,最大200
:return:
"""
if isinstance(work_date, (datetime.date, datetime.datetime)):
work_date = work_date.strftime(self.DATE_TIME_FORMAT)
return self._top_request(
'dingtalk.smartwork.attends.listschedule',
{
"work_date": work_date,
"offset": offset,
"size": size
}
)
def getsimplegroups(self, offset=0, size=10):
"""
获取考勤组列表详情
:param offset: 偏移位置
:param size: 分页大小,最大10
:return:
"""
return self._top_request(
'dingtalk.smartwork.attends.getsimplegroups',
{
"offset": offset,
"size": size
}
)
def getleaveapproveduration(self, userid, from_date, to_date):
"""
计算请假时长
:param userid: 员工在企业内的UserID,企业用来唯一标识用户的字段。
:param from_date: 请假开始时间
:param to_date: 请假结束时间
:return: 请假时长(单位分钟)
"""
if isinstance(from_date, (datetime.date, datetime.datetime)):
from_date = from_date.strftime(self.DATE_TIME_FORMAT)
if isinstance(to_date, (datetime.date, datetime.datetime)):
to_date = to_date.strftime(self.DATE_TIME_FORMAT)
return self._top_request(
'dingtalk.smartwork.attends.getleaveapproveduration',
{
"userid": userid,
"from_date": from_date,
"to_date": to_date
},
result_processor=lambda x: x['duration_in_minutes']
)
def getleavestatus(self, userid_list, start_time, end_time, offset=0, size=20):
"""
请假状态查询接口
该接口用于查询指定企业下的指定用户在指定时间段内的请假状态
:param userid_list: 待查询用户id列表,支持最多100个用户的批量查询
:param start_time: 开始时间 ,时间戳,支持最多180天的查询
:param end_time: 结束时间,时间戳,支持最多180天的查询
:param offset: 分页偏移,非负整数
:param size: 分页大小,正整数,最大20
"""
if isinstance(start_time, (datetime.date, datetime.datetime)):
start_time = int(time.mktime(start_time.timetuple()) * 1000)
if isinstance(end_time, (datetime.date, datetime.datetime)):
end_time = int(time.mktime(end_time.timetuple()) * 1000)
return self._top_request(
"dingtalk.oapi.attendance.getleavestatus",
{
"userid_list": userid_list,
"start_time": start_time,
"end_time": end_time,
"offset": offset,
"size": size
}
)
def getusergroup(self, userid):
"""
获取用户考勤组
:param userid: 员工在企业内的UserID,企业用来唯一标识用户的字段。
:return:
"""
return self._top_request(
'dingtalk.smartwork.attends.getusergroup',
{"userid": userid}
)
| 5,160 | attendance | py | en | python | code | {"qsc_code_num_words": 515, "qsc_code_num_chars": 5160.0, "qsc_code_mean_word_length": 5.54757282, "qsc_code_frac_words_unique": 0.2368932, "qsc_code_frac_chars_top_2grams": 0.05320266, "qsc_code_frac_chars_top_3grams": 0.06300315, "qsc_code_frac_chars_top_4grams": 0.08820441, "qsc_code_frac_chars_dupe_5grams": 0.39831992, "qsc_code_frac_chars_dupe_6grams": 0.2660133, "qsc_code_frac_chars_dupe_7grams": 0.17150858, "qsc_code_frac_chars_dupe_8grams": 0.15820791, "qsc_code_frac_chars_dupe_9grams": 0.12320616, "qsc_code_frac_chars_dupe_10grams": 0.09100455, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01256784, "qsc_code_frac_chars_whitespace": 0.32151163, "qsc_code_size_file_byte": 5160.0, "qsc_code_num_lines": 161.0, "qsc_code_num_chars_line_max": 84.0, "qsc_code_num_chars_line_mean": 32.04968944, "qsc_code_frac_chars_alphabet": 0.80348472, "qsc_code_frac_chars_comments": 0.18895349, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.15909091, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.12265893, "qsc_code_frac_chars_long_word_length": 0.06093379, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.07954545, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.04545455, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.22727273, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
0015/Grid_Board | grid_board_app/lib/main.dart | import 'dart:io';
import 'dart:async';
import 'dart:convert';
import 'package:flutter/material.dart';
import 'package:flutter/services.dart';
import 'package:flutter_blue_plus/flutter_blue_plus.dart';
import 'package:shared_preferences/shared_preferences.dart';
const String targetDeviceName = "Grid_Board";
const String serviceUUID = "00ff";
const String charUUID = "ff01";
class SavedGrid {
final String id;
final String name;
final List<List<String>> grid;
final DateTime savedAt;
SavedGrid({
required this.id,
required this.name,
required this.grid,
required this.savedAt,
});
Map<String, dynamic> toJson() {
return {
'id': id,
'name': name,
'grid': grid,
'savedAt': savedAt.toIso8601String(),
};
}
factory SavedGrid.fromJson(Map<String, dynamic> json) {
return SavedGrid(
id: json['id'],
name: json['name'],
grid: List<List<String>>.from(
json['grid'].map((row) => List<String>.from(row))
),
savedAt: DateTime.parse(json['savedAt']),
);
}
}
void main() {
runApp(const MaterialApp(debugShowCheckedModeBanner: false, home: LoadingScreen()));
}
class LoadingScreen extends StatefulWidget {
const LoadingScreen({super.key});
@override
State<LoadingScreen> createState() => _LoadingScreenState();
}
class _LoadingScreenState extends State<LoadingScreen> {
String status = "Scanning for Grid Board...";
bool scanFailed = false;
@override
void initState() {
super.initState();
scanAndConnect();
}
Future<void> scanAndConnect() async {
BluetoothDevice? targetDevice;
BluetoothCharacteristic? targetChar;
try {
// Wait for adapter to be powered on
await FlutterBluePlus.adapterState
.firstWhere((state) => state == BluetoothAdapterState.on);
if (Platform.isAndroid) {
await FlutterBluePlus.startScan(timeout: const Duration(seconds: 10), androidUsesFineLocation: true);
} else if (Platform.isIOS) {
await FlutterBluePlus.startScan(timeout: const Duration(seconds: 10));
}else{
return;
}
FlutterBluePlus.scanResults.listen((results) async {
for (ScanResult r in results) {
if (r.device.advName == targetDeviceName) {
targetDevice = r.device;
await FlutterBluePlus.stopScan();
await targetDevice!.connect();
List<BluetoothService> services = await targetDevice!.discoverServices();
for (var service in services) {
if (service.uuid.toString().contains(serviceUUID)) {
for (var c in service.characteristics) {
if (c.uuid.toString().contains(charUUID)) {
targetChar = c;
Navigator.pushReplacement(
context,
MaterialPageRoute(
builder: (_) => GridScreen(characteristic: targetChar!),
),
);
return;
}
}
}
}
}
}
// Timeout fallback
Future.delayed(const Duration(seconds: 10), () {
if (targetChar == null && mounted) {
setState(() {
scanFailed = true;
status = "Not Found";
});
}
});
});
} catch (e) {
setState(() {
scanFailed = true;
status = "Error: $e";
});
}
}
@override
Widget build(BuildContext context) {
return Scaffold(
body: Center(
child: scanFailed
? Column(
mainAxisSize: MainAxisSize.min,
children: [
Text(status, style: const TextStyle(fontSize: 20)),
const SizedBox(height: 20),
ElevatedButton(
onPressed: () {
setState(() {
status = "Retrying...";
scanFailed = false;
});
scanAndConnect();
},
child: const Text("Retry"),
),
],
)
: Column(
mainAxisSize: MainAxisSize.min,
children: [
const CircularProgressIndicator(),
const SizedBox(height: 20),
Text(status, style: const TextStyle(fontSize: 20)),
],
),
),
);
}
}
class GridScreen extends StatefulWidget {
final BluetoothCharacteristic characteristic;
const GridScreen({super.key, required this.characteristic});
@override
State<GridScreen> createState() => _GridScreenState();
}
class _GridScreenState extends State<GridScreen> {
final int rows = 5;
final int cols = 12;
final List<List<String>> slotGrid =
List.generate(5, (_) => List.filled(12, " "));
int cursorRow = 2;
int cursorCol = 0;
final FocusNode _textFocus = FocusNode();
final TextEditingController _textController = TextEditingController();
String _previousText = '';
static const List<String> emojiList = [
"✅", "✔", "✖", "❌", "❤", "📀", "📁", "📂", "📃", "📄", "📅", "📆", "📇", "📈", "📉", "📊", "📋", "📌", "📍", "📎", "📏", "📐", "📑", "📒", "📓", "📔", "📕", "📖", "📗", "📘", "📙", "📚", "📛", "📜", "📝", "📞", "📟", "📠", "📡", "📢", "📣", "📤", "📥", "📦", "📧", "📨", "📩", "📪", "📫", "📬", "📭", "📮", "📯", "📰", "📱", "📲", "📳", "📴", "📵", "📶", "📷", "📸", "📹", "📺", "📻", "📼", "📽", "📿", "😀", "😁", "😂", "😃", "😄", "😅", "😆", "😇", "😈", "😉", "😊", "😋", "😌", "😍", "😎", "😏", "😐", "😑", "😒", "😓", "😔", "😕", "😖", "😗", "😘", "😙", "😚", "😛", "😜", "😝", "😞", "😟", "😠", "😡", "😢", "😣", "😤", "😥", "😦", "😧", "😨", "😩", "😪", "😫", "😬", "😭", "😮", "😯", "😰", "😱", "😲", "😳", "😴", "😵", "😶", "😷", "😸", "😹", "😺", "😻", "😼", "😽", "😾", "😿", "🙀", "🙁", "🙂", "🙃", "🙄", "🙅", "🙆", "🙇", "🙈", "🙉", "🙊", "🙋", "🙌", "🙍", "🙎", "🙏", "🚀", "🚁", "🚂", "🚃", "🚄", "🚅", "🚆", "🚇", "🚈", "🚉", "🚊", "🚋", "🚌", "🚍", "🚎", "🚏", "🚐", "🚑", "🚒", "🚓", "🚔", "🚕", "🚖", "🚗", "🚘", "🚙", "🚚", "🚛", "🚜", "🚝", "🚞", "🚟", "🚠", "🚡", "🚢", "🚣", "🚤", "🚥", "🚦", "🚧", "🚨", "🚩", "🚪", "🚫", "🚬", "🚭", "🚮", "🚯", "🚰", "🚱", "🚲", "🚳", "🚴", "🚵", "🚶", "🚷", "🚸", "🚹", "🚺", "🚻", "🚼", "🚽", "🚾", "🚿", "🛀", "🛁", "🛂", "🛃", "🛄", "🛅", "🛋", "🛌", "🛍", "🛎", "🛏", "🛐", "🛑", "🛒", "🛕", "🛖", "🛗", "🛜", "🛝", "🛞", "🛟", "🛠", "🛡", "🛢", "🛣", "🛤", "🛥", "🛩", "🛫", "🛬", "🛰", "🛳", "🛴", "🛵", "🛶", "🛷", "🛸", "🛹", "🛺", "🛻", "🛼"
];
void _handleTextChange(String text) {
print("Text changed: '$text', previous: '$_previousText'");
if (text.length < _previousText.length) {
// Backspace detected - text got shorter
setState(() {
slotGrid[cursorRow][cursorCol] = " ";
moveCursorBack();
});
} else if (text.length > _previousText.length && text.isNotEmpty) {
// New character added
final char = text.characters.last.toUpperCase();
setState(() {
slotGrid[cursorRow][cursorCol] = char;
moveCursorForward();
});
}
// Update previous text and clear controller
_previousText = text;
Future.microtask(() {
_textController.clear();
_previousText = '';
});
}
@override
void initState() {
super.initState();
WidgetsBinding.instance.addPostFrameCallback((_) {
FocusScope.of(context).requestFocus(_textFocus);
});
}
void moveCursorForward() {
cursorCol++;
if (cursorCol >= cols) {
cursorCol = 0;
cursorRow++;
if (cursorRow >= rows) {
cursorRow = 0;
}
}
}
void moveCursorBack() {
if (cursorCol > 0) {
cursorCol--;
} else if (cursorRow > 0) {
cursorRow--;
cursorCol = cols - 1;
}
}
void onCellTapped(int row, int col) {
setState(() {
cursorRow = row;
cursorCol = col;
});
Future.delayed(const Duration(milliseconds: 100), () {
FocusScope.of(context).requestFocus(_textFocus);
});
}
void onCellLongPressed(int row, int col) async {
String? selectedEmoji = await showDialog<String>(
context: context,
builder: (context) => AlertDialog(
title: const Text("Select Emoji"),
content: SizedBox(
width: double.maxFinite,
height: 300,
child: GridView.count(
crossAxisCount: 6,
children: emojiList.map((emoji) {
return GestureDetector(
onTap: () => Navigator.pop(context, emoji),
child: Center(child: Text(emoji, style: const TextStyle(fontSize: 24))),
);
}).toList(),
),
),
),
);
if (selectedEmoji != null) {
setState(() {
cursorRow = row;
cursorCol = col;
slotGrid[row][col] = selectedEmoji;
moveCursorForward();
});
}
}
void clearGrid() {
setState(() {
for (var row = 0; row < rows; row++) {
for (var col = 0; col < cols; col++) {
slotGrid[row][col] = ' ';
}
}
cursorRow = 2;
cursorCol = 0;
});
}
Future<void> saveGrid() async {
String? gridName = await showDialog<String>(
context: context,
builder: (context) {
String name = '';
return AlertDialog(
title: const Text('Save Grid'),
content: TextField(
onChanged: (value) => name = value,
decoration: const InputDecoration(
hintText: 'Enter grid name...',
border: OutlineInputBorder(),
),
autofocus: true,
),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text('Cancel'),
),
TextButton(
onPressed: () => Navigator.pop(context, name.trim()),
child: const Text('Save'),
),
],
);
},
);
if (gridName != null && gridName.isNotEmpty) {
final prefs = await SharedPreferences.getInstance();
final savedGrids = await _loadSavedGrids();
final newGrid = SavedGrid(
id: DateTime.now().millisecondsSinceEpoch.toString(),
name: gridName,
grid: slotGrid.map((row) => List<String>.from(row)).toList(),
savedAt: DateTime.now(),
);
savedGrids.add(newGrid);
final gridsJson = savedGrids.map((grid) => grid.toJson()).toList();
await prefs.setString('saved_grids', jsonEncode(gridsJson));
if (mounted) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text('Grid "$gridName" saved successfully!')),
);
}
}
}
Future<List<SavedGrid>> _loadSavedGrids() async {
final prefs = await SharedPreferences.getInstance();
final gridsJson = prefs.getString('saved_grids');
if (gridsJson == null) return [];
final List<dynamic> gridsList = jsonDecode(gridsJson);
return gridsList.map((json) => SavedGrid.fromJson(json)).toList();
}
void _showLoadDialog() async {
final savedGrids = await _loadSavedGrids();
if (savedGrids.isEmpty) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text('No saved grids found!')),
);
return;
}
showDialog(
context: context,
builder: (context) => AlertDialog(
title: const Text('Load Grid'),
content: SizedBox(
width: double.maxFinite,
height: (savedGrids.length * 220.0).clamp(200.0, MediaQuery.of(context).size.height * 0.7),
child: ListView.builder(
itemCount: savedGrids.length,
itemBuilder: (context, index) {
final grid = savedGrids[index];
return Card(
margin: const EdgeInsets.symmetric(vertical: 4),
child: Padding(
padding: const EdgeInsets.all(8),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
children: [
Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
Expanded(
child: Text(
grid.name,
style: const TextStyle(
fontSize: 16,
fontWeight: FontWeight.bold,
),
),
),
IconButton(
icon: const Icon(Icons.delete, color: Colors.red),
onPressed: () async {
savedGrids.removeAt(index);
final prefs = await SharedPreferences.getInstance();
final gridsJson = savedGrids.map((g) => g.toJson()).toList();
await prefs.setString('saved_grids', jsonEncode(gridsJson));
Navigator.pop(context);
_showLoadDialog(); // Refresh the dialog
},
),
],
),
Text(
'Saved: ${grid.savedAt.day}/${grid.savedAt.month}/${grid.savedAt.year} '
'${grid.savedAt.hour.toString().padLeft(2, '0')}:${grid.savedAt.minute.toString().padLeft(2, '0')}',
style: TextStyle(
fontSize: 12,
color: Colors.grey[600],
),
),
const SizedBox(height: 8),
// Preview Grid
Container(
height: 120,
decoration: BoxDecoration(
border: Border.all(color: Colors.grey[300]!),
borderRadius: BorderRadius.circular(4),
),
child: GridView.builder(
physics: const NeverScrollableScrollPhysics(),
itemCount: 60, // 5 rows × 12 cols
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 12,
mainAxisSpacing: 1,
crossAxisSpacing: 1,
),
itemBuilder: (context, cellIndex) {
int row = cellIndex ~/ 12;
int col = cellIndex % 12;
String cellContent = ' ';
if (row < grid.grid.length && col < grid.grid[row].length) {
cellContent = grid.grid[row][col];
}
return Container(
alignment: Alignment.center,
decoration: BoxDecoration(
color: cellContent == ' ' ? Colors.grey[100] : Colors.blue[50],
border: Border.all(color: Colors.grey[200]!, width: 0.5),
),
child: Text(
cellContent,
style: const TextStyle(
fontFamily: 'NotoEmoji',
fontSize: 10,
),
),
);
},
),
),
const SizedBox(height: 8),
SizedBox(
width: double.infinity,
child: ElevatedButton(
onPressed: () {
setState(() {
for (int r = 0; r < rows; r++) {
for (int c = 0; c < cols; c++) {
if (r < grid.grid.length && c < grid.grid[r].length) {
slotGrid[r][c] = grid.grid[r][c];
}
}
}
cursorRow = 2;
cursorCol = 0;
});
Navigator.pop(context);
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text('Grid "${grid.name}" loaded!')),
);
},
child: const Text('Load This Grid'),
),
),
],
),
),
);
},
),
),
actions: [
TextButton(
onPressed: () => Navigator.pop(context),
child: const Text('Cancel'),
),
],
),
);
}
Future<void> sendGridToESP() async {
try {
final device = widget.characteristic.device;
final charUUID = widget.characteristic.uuid;
final serviceUUID = widget.characteristic.serviceUuid;
// If disconnected, reconnect and rediscover services/characteristics
if (device.isDisconnected) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("Reconnecting to Grid Board...")),
);
await device.connect(autoConnect: false);
await Future.delayed(const Duration(milliseconds: 800)); // Wait a moment
await device.discoverServices();
}
// Always get the latest characteristic after connect/discover
BluetoothCharacteristic? targetChar;
List<BluetoothService> services = await device.discoverServices();
for (var service in services) {
if (service.uuid == serviceUUID) {
for (var char in service.characteristics) {
if (char.uuid == charUUID) {
targetChar = char;
break;
}
}
}
if (targetChar != null) break;
}
if (targetChar == null) {
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("Failed to find BLE characteristic.")),
);
return;
}
// Send the data
String flatGrid = slotGrid.expand((row) => row).map((c) => c.isEmpty ? ' ' : c).join();
if (flatGrid.length < 60) flatGrid = flatGrid.padRight(60);
await targetChar.write(utf8.encode(flatGrid));
ScaffoldMessenger.of(context).showSnackBar(
const SnackBar(content: Text("Grid sent to ESP32")),
);
} catch (e) {
ScaffoldMessenger.of(context).showSnackBar(
SnackBar(content: Text("Failed to send grid: $e")),
);
}
}
@override
void dispose() {
_textController.dispose();
_textFocus.dispose();
super.dispose();
}
@override
Widget build(BuildContext context) {
return Scaffold(
appBar: AppBar(
title: const Text("Card Grid"),
actions: [
IconButton(
icon: const Icon(Icons.save),
onPressed: saveGrid,
tooltip: 'Save Grid',
),
IconButton(
icon: const Icon(Icons.folder_open),
onPressed: _showLoadDialog,
tooltip: 'Load Grid',
),
],
),
resizeToAvoidBottomInset: false,
body: SafeArea(
child: KeyboardListener(
focusNode: FocusNode(),
autofocus: false,
onKeyEvent: (KeyEvent event) {
if (event is KeyDownEvent &&
event.logicalKey == LogicalKeyboardKey.backspace) {
setState(() {
slotGrid[cursorRow][cursorCol] = " ";
moveCursorBack();
});
}
},
child: Column(
children: [
Expanded(
child: GridView.builder(
itemCount: rows * cols,
padding: const EdgeInsets.all(8),
gridDelegate: const SliverGridDelegateWithFixedCrossAxisCount(
crossAxisCount: 12,
mainAxisSpacing: 4,
crossAxisSpacing: 4,
),
itemBuilder: (context, index) {
int row = index ~/ cols;
int col = index % cols;
bool isSelected = (row == cursorRow && col == cursorCol);
return GestureDetector(
onTap: () => onCellTapped(row, col),
onLongPress: () => onCellLongPressed(row, col),
child: Container(
alignment: Alignment.center,
decoration: BoxDecoration(
color: isSelected ? Colors.yellow[300] : Colors.grey[200],
border: Border.all(color: Colors.black26),
),
child: Text(
slotGrid[row][col],
style: const TextStyle(
fontFamily: 'NotoEmoji',
fontSize: 20,
fontWeight: FontWeight.bold,
),
),
),
);
},
),
),
// Hidden TextField to trigger keyboard and detect input + backspace
SizedBox(
height: 0,
width: 0,
child: TextField(
focusNode: _textFocus,
controller: _textController,
onChanged: _handleTextChange,
keyboardType: TextInputType.text,
textInputAction: TextInputAction.done,
autocorrect: false,
enableSuggestions: false,
enableInteractiveSelection: false,
textCapitalization: TextCapitalization.characters,
decoration: const InputDecoration(border: InputBorder.none),
style: const TextStyle(fontSize: 1, color: Colors.transparent),
cursorColor: Colors.transparent,
),
),
Padding(
padding: EdgeInsets.only(
left: 16,
right: 16,
top: 8,
bottom: MediaQuery.of(context).viewInsets.bottom + 8,
),
child: Row(
mainAxisAlignment: MainAxisAlignment.spaceBetween,
children: [
ElevatedButton.icon(
icon: const Icon(Icons.clear_all),
label: const Text("Clear Grid"),
onPressed: clearGrid,
),
ElevatedButton.icon(
icon: const Icon(Icons.send),
label: const Text("Send Grid (60 chars)"),
onPressed: sendGridToESP,
),
],
),
),
],
),
),
),
);
}
}
| 23,412 | main | dart | en | dart | code | {"qsc_code_num_words": 1865, "qsc_code_num_chars": 23412.0, "qsc_code_mean_word_length": 5.82466488, "qsc_code_frac_words_unique": 0.35871314, "qsc_code_frac_chars_top_2grams": 0.0091135, "qsc_code_frac_chars_top_3grams": 0.0122434, "qsc_code_frac_chars_top_4grams": 0.02448679, "qsc_code_frac_chars_dupe_5grams": 0.27018319, "qsc_code_frac_chars_dupe_6grams": 0.19856393, "qsc_code_frac_chars_dupe_7grams": 0.1372549, "qsc_code_frac_chars_dupe_8grams": 0.0870846, "qsc_code_frac_chars_dupe_9grams": 0.03258768, "qsc_code_frac_chars_dupe_10grams": 0.01196723, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01036306, "qsc_code_frac_chars_whitespace": 0.40235777, "qsc_code_size_file_byte": 23412.0, "qsc_code_num_lines": 691.0, "qsc_code_num_chars_line_max": 1268.0, "qsc_code_num_chars_line_mean": 33.8813314, "qsc_code_frac_chars_alphabet": 0.74785592, "qsc_code_frac_chars_comments": 0.01909277, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.4025974, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00162338, "qsc_code_frac_chars_string_length": 0.0496843, "qsc_code_frac_chars_long_word_length": 0.01328108, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0} |
007revad/Synology_Docker_Export | syno_docker_export.sh | #!/usr/bin/env bash
#-----------------------------------------------------------------------------------
# Shamelessly borrowed from ctrlaltdelete
# https://www.synology-forum.de/threads/docker-container-backup.134937/post-1186059
#
# This uses the same method that Container Manager uses
#
# Works for running and stopped containers
#-----------------------------------------------------------------------------------
# Delete json exports older than X days
DeleteOlder=7
# Specify containers to ignore
# For example:
# IgnoredContainers=(jitsi_jicofo jitsi_jvb jitsi_prosody jitsi_web synology_docviewer_2 synology_docviewer_1)
IgnoredContainers=
#-----------------------------------------------------------------------------------
scriptver="v1.0.2"
script=Synology_Docker_Export
repo="007revad/Synology_Docker_Export"
scriptname=syno_docker_export
ding(){
printf \\a
}
# Check script is running as root
if [[ $( whoami ) != "root" ]]; then
ding
echo -e "${Error}ERROR${Off} This script must be run as sudo or root!"
exit 1 # Not running as sudo or root
fi
# Get NAS model
model=$(cat /proc/sys/kernel/syno_hw_version)
#modelname="$model"
# Show script version
#echo -e "$script $scriptver\ngithub.com/$repo\n"
echo "$script $scriptver"
# Get DSM full version
productversion=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION productversion)
buildphase=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildphase)
buildnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildnumber)
smallfixnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION smallfixnumber)
# Show DSM full version and model
if [[ $buildphase == GM ]]; then buildphase=""; fi
if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi
echo "$model DSM $productversion-$buildnumber$smallfix $buildphase"
#ExportDate="$(date +%Y-%m-%d_%H-%M)"
ExportDate="$(date +%Y%m%d_%H%M)"
# Get docker share location
# DSM 7.2.1 synoshare --get-real-path and older DSM synoshare --getmap docker
# are case insensitive (docker or Docker both work)
if [[ $buildnumber -gt "64570" ]]; then
# DSM 7.2.1 and later
DockerShare=$(synoshare --get-real-path docker)
else
# DSM 7.2 and earlier
DockerShare=$(synoshare --getmap docker | grep volume | cut -d"[" -f2 | cut -d"]" -f1)
fi
if [[ ! -d "${DockerShare}" ]]; then
ding
echo -e "\nERROR docker shared folder not found!\n"
exit 1
else
ExportDir="${DockerShare}/docker_exports"
fi
[ ! -d "${ExportDir}" ] && mkdir -p "${ExportDir}"
echo -e "\nExporting container settings to ${ExportDir}\n"
# Get list of all containers (running and stopped)
for container in $(docker ps --all --format "{{ .Names }}"); do
if grep -q "$container" <<< "${IgnoredContainers[@]}" ; then
echo "Skipping ${container} on ignore list."
continue
else
export_file="${ExportDir:?}/${container}_${ExportDate}.json"
#echo "Exporting ${container} json to ${ExportDir}"
echo "Exporting ${container} json"
# synowebapi -s or --silent does not work
/usr/syno/bin/synowebapi --exec api=SYNO.Docker.Container.Profile method=export version=1 outfile="$export_file" name="$container" &>/dev/null
# Check export was successful
if [[ ! -f "$export_file" ]] || [[ $(stat -c %s "$export_file") -eq "0" ]]; then
# No file or 0 bytes
echo "Failed to export $container settings!"
else
chmod 660 "${ExportDir:?}/${container}_${ExportDate}.json"
fi
# Delete backups older than $DeleteOlder days
if [[ $DeleteOlder =~ ^[2-9][0-9]?$ ]]; then
find "$ExportDir" -name "${container}_*.json" -mtime +"$DeleteOlder" -exec rm {} \;
fi
fi
done
echo -e "\nFinished\n"
exit
| 3,801 | syno_docker_export | sh | en | shell | code | {"qsc_code_num_words": 465, "qsc_code_num_chars": 3801.0, "qsc_code_mean_word_length": 5.09247312, "qsc_code_frac_words_unique": 0.41075269, "qsc_code_frac_chars_top_2grams": 0.01055743, "qsc_code_frac_chars_top_3grams": 0.02111486, "qsc_code_frac_chars_top_4grams": 0.04222973, "qsc_code_frac_chars_dupe_5grams": 0.08868243, "qsc_code_frac_chars_dupe_6grams": 0.08868243, "qsc_code_frac_chars_dupe_7grams": 0.08868243, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01584786, "qsc_code_frac_chars_whitespace": 0.16995527, "qsc_code_size_file_byte": 3801.0, "qsc_code_num_lines": 113.0, "qsc_code_num_chars_line_max": 151.0, "qsc_code_num_chars_line_mean": 33.63716814, "qsc_code_frac_chars_alphabet": 0.73470681, "qsc_code_frac_chars_comments": 0.37148119, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.19298246, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.30025126, "qsc_code_frac_chars_long_word_length": 0.08877722, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_Docker_Export | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Docker_Export | README.md | # <img src="images/icon.png" width="40"> Synology Docker Export
<a href="https://github.com/007revad/Synology_Docker_Export/releases"><img src="https://img.shields.io/github/release/007revad/Synology_Docker_Export.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder
- Works with DSM 7's Container Manager and DSM 6's Docker.
- Exports settings for running and stopped containers.
- Optionally specify containers to ignore.
- Optionally set age of old exports to delete.
The exported json files can later be [imported in Synology's Container Manager ui or Docker ui](#importing).
The advantage of the exported json files is they are truly portable as each container's mapped volumes are **not** hard coded to a specific volume. DSM knows what volume each shared folder is located on.
### Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_Docker_Export/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.
### Options
There are 2 options you can set in the script:
```
# Delete json exports older than X days
DeleteOlder=7
# Specify containers to ignore if you don't want to export their settings
# For example:
# IgnoredContainers=(jitsi_jicofo jitsi_jvb jitsi_prosody jitsi_web synology_docviewer_2)
IgnoredContainers=
```
### To run the script via task scheduler
See [How to run from task scheduler](https://github.com/007revad/Synology_Docker_Export/blob/main/how_to_run_from_scheduler.md)
### To run the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
```YAML
sudo -s /volume1/scripts/syno_docker_export.sh
```
**Note:** Replace /volume1/scripts/ with the path to where the script is located.
### Troubleshooting
If the script won't run check the following:
1. Make sure you download the zip file and unzipped it to a folder on your Synology (not on your computer).
2. If the path to the script contains any spaces you need to enclose the path/scriptname in double quotes:
```YAML
sudo -s "/volume1/my scripts/syno_docker_export.sh"
```
3. Make sure you unpacked the zip or rar file that you downloaded and are trying to run the syno_docker_export.sh file.
4. Set the script file as executable:
```YAML
sudo chmod +x "/volume1/scripts/syno_docker_export.sh"
```
### Screenshots
<!--- <p align="center">Description of image 1 goes here</p> /> --->
<p align="center"><img src="/images/script.png"></p>
<br>
<!--- <p align="center">Description of image 2 goes here</p> --->
<p align="center"><img src="/images/exports.png"></p>
### Importing
Importing the exported json files in Synology's Container Manager ui or Docker ui
<!--- <p align="center">Description of image 1 goes here</p> /> --->
<p align="center"><img src="/images/import-1.png"></p>
<br>
<!--- <p align="center">Description of image 2 goes here</p> --->
<p align="center"><img src="/images/import-2.png"></p>
<br>
<!--- <p align="center">Description of image 2 goes here</p> --->
<p align="center"><img src="/images/import-3.png"></p>
[Back to Description](#description)
<br>
| 3,921 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.18586957, "qsc_doc_num_sentences": 66.0, "qsc_doc_num_words": 623, "qsc_doc_num_chars": 3921.0, "qsc_doc_num_lines": 99.0, "qsc_doc_mean_word_length": 4.60834671, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.35313002, "qsc_doc_entropy_unigram": 4.96221959, "qsc_doc_frac_words_all_caps": 0.01847826, "qsc_doc_frac_lines_dupe_lines": 0.25757576, "qsc_doc_frac_chars_dupe_lines": 0.10070997, "qsc_doc_frac_chars_top_2grams": 0.04179728, "qsc_doc_frac_chars_top_3grams": 0.04179728, "qsc_doc_frac_chars_top_4grams": 0.04005573, "qsc_doc_frac_chars_dupe_5grams": 0.28387321, "qsc_doc_frac_chars_dupe_6grams": 0.26332288, "qsc_doc_frac_chars_dupe_7grams": 0.2312783, "qsc_doc_frac_chars_dupe_8grams": 0.18599791, "qsc_doc_frac_chars_dupe_9grams": 0.15116684, "qsc_doc_frac_chars_dupe_10grams": 0.12399861, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 22.76969697, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34200459, "qsc_doc_frac_chars_alphabet": 0.81226388, "qsc_doc_frac_chars_digital": 0.0220866, "qsc_doc_frac_chars_whitespace": 0.12241775, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Docker_Export | how_to_run_from_scheduler.md | # How to run a script in Synology Task Scheduler
To run a script from Task Scheduler follow these steps:
**Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Scheduled Task**.
2. Select **User-defined script**.
3. Enter a task name.
4. Select **root** as the user (The script needs to run as root).
5. Untick **Enable** so it does **not** run on a schedule.
6. Click **Task Settings**.
7. In the box under **User-defined script** type the path to the script.
- e.g. If you saved the script to a shared folder on volume 1 called "scripts" you'd type: **/volume1/scripts/syno_docker-export.sh**
8. Click **OK** to save the settings.
9. Click on the task - but **don't** enable it - then click **Run**.
10. Once the script has run you can delete the task, or keep in case you need it again.
**Here's some screenshots showing what needs to be set:**
<p align="center">Step 1</p>
<p align="center"><img src="images/schedule-1a.png"></p>
<p align="center">Step 2</p>
<p align="center"><img src="images/schedule-2a.png"></p>
<p align="center">Step 3</p>
<p align="center"><img src="images/schedule-3a.png"></p>
<p align="center">Step 4</p>
<p align="center"><img src="images/schedule-4a.png"></p>
| 1,387 | how_to_run_from_scheduler | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.24146982, "qsc_doc_num_sentences": 29.0, "qsc_doc_num_words": 252, "qsc_doc_num_chars": 1387.0, "qsc_doc_num_lines": 31.0, "qsc_doc_mean_word_length": 3.78968254, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.44047619, "qsc_doc_entropy_unigram": 4.28692329, "qsc_doc_frac_words_all_caps": 0.00262467, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.05026178, "qsc_doc_frac_chars_top_3grams": 0.10052356, "qsc_doc_frac_chars_top_4grams": 0.09528796, "qsc_doc_frac_chars_dupe_5grams": 0.20104712, "qsc_doc_frac_chars_dupe_6grams": 0.20104712, "qsc_doc_frac_chars_dupe_7grams": 0.1382199, "qsc_doc_frac_chars_dupe_8grams": 0.1382199, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 22.13333333, "qsc_doc_frac_chars_hyperlink_html_tag": 0.22494593, "qsc_doc_frac_chars_alphabet": 0.80102916, "qsc_doc_frac_chars_digital": 0.01801029, "qsc_doc_frac_chars_whitespace": 0.1593367, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_docker_cleanup | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_docker_cleanup | syno_docker_cleanup.sh | #!/usr/bin/env bash
# shellcheck disable=SC2076
#--------------------------------------------------------------------
# Remove orphan docker btrfs subvolumes in Synology DSM 7 and DSM 6
#
# Github: https://github.com/007revad/Synology_docker_cleanup
# Script verified at https://www.shellcheck.net/
#
# To run in a shell (replace /volume1/scripts/ with path to script):
# sudo -s /volume1/scripts/syno_docker_cleanup.sh
#--------------------------------------------------------------------
scriptver="v1.2.4"
script=Synology_docker_cleanup
repo="007revad/Synology_docker_cleanup"
scriptname=syno_docker_cleanup
# Shell Colors
#Black='\e[0;30m' # ${Black}
Red='\e[0;31m' # ${Red}
#Green='\e[0;32m' # ${Green}
Yellow='\e[0;33m' # ${Yellow}
#Blue='\e[0;34m' # ${Blue}
#Purple='\e[0;35m' # ${Purple}
Cyan='\e[0;36m' # ${Cyan}
#White='\e[0;37m' # ${White}
Error='\e[41m' # ${Error}
#Warn='\e[47;31m' # ${Warn}
Off='\e[0m' # ${Off}
# Show script version
echo -e "$script $scriptver\n"
# Check script is running as root
if [[ $( whoami ) != "root" ]]; then
echo -e "${Error}ERROR${Off} This script must be run as sudo or root!"
exit 1
fi
# Check script is running on a Synology NAS
if ! /usr/bin/uname -a | grep -i synology >/dev/null; then
echo -e "${Error}ERROR${Off} This script is NOT running on a Synology NAS!"
echo "Copy the script to a folder on the Synology and run it from there."
exit 1
fi
# Check Container Manager or Docker is installed
if [[ -d /var/packages/ContainerManager ]]; then
docker_pkg="ContainerManager"
docker_pkg_name="Container Manager"
elif [[ -d /var/packages/Docker ]]; then
docker_pkg="Docker"
docker_pkg_name="Docker"
else
echo -e "${Error}ERROR${Off} Container Manager or Docker is not installed!"
exit 1
fi
# Check Container Manager or Docker is running
if ! /usr/syno/bin/synopkg status "$docker_pkg" >/dev/null; then
echo -e "${Error}ERROR${Off} $docker_pkg_name is not running!"
exit 1
fi
# Get volume @docker is on
if [[ $docker_pkg == "ContainerManager" ]]; then
source=$(readlink /var/packages/ContainerManager/var/docker)
else
source=$(readlink /var/packages/Docker/target/docker)
fi
if [[ -d $source ]]; then
volume=$(echo "$source" | cut -d"/" -f2)
else
echo -e "${Error}ERROR${Off} @docker folder not found!"
echo "$source"
exit 1
fi
#volume="volume2" # debug
# Get list of @docker/btrfs/subvolumes
#echo -e "\n${Cyan}@docker/btrfs/subvolumes list:${Off}" # debug
count="0"
for subvol in /"$volume"/@docker/btrfs/subvolumes/*; do
#echo "$subvol" # debug
allsubvolumes+=("$subvol")
count=$((count+1))
done
s=""
if [[ $count -gt "0" ]]; then s="s"; fi
echo -e "$count ${Yellow}total${Off} docker btrfs subvolume$s found."
# Get list of current @docker/btrfs/subvolumes
#echo -e "\n${Cyan}btrfs subvolume list:${Off}" # debug
readarray -t temp < <(btrfs subvolume list -p /"$volume"/@docker/btrfs/subvolumes)
count="0"
for v in "${temp[@]}"; do
#echo "1 $v" # debug
sub=$(echo "$v" | grep '@docker/btrfs/subvolumes' | awk '{print $NF}')
if [[ $sub =~ ^@docker/btrfs/subvolumes/* ]]; then
#echo "/$volume/$sub" # debug
currentsubvolumes+=("/$volume/$sub")
count=$((count+1))
fi
done
s=""
if [[ $count -gt "0" ]]; then s="s"; fi
echo -e "$count ${Yellow}active${Off} docker btrfs subvolume$s found."
# Create list of orphan subvolumes
#echo -e "\n${Cyan}Orphan subvolume list:${Off}" # debug
count="0"
for v in "${allsubvolumes[@]}"; do
if [[ ! "${currentsubvolumes[*]}" =~ "$v" ]]; then
#echo "$v" # debug
orphansubvolumes+=("$v")
count=$((count+1))
fi
done
s=""
if [[ $count -gt "0" ]]; then s="s"; fi
echo -e "$count ${Yellow}orphan${Off} docker btrfs subvolume$s found."
# Stop Container Manager or Docker
#echo -e "\nStopping $docker_pkg_name..."
#/usr/syno/bin/synopkg stop $docker_pkg >/dev/null
# Delete orphan subvolumes
if [[ ${#orphansubvolumes[@]} -gt "0" ]]; then
s=""
if [[ $count -gt "0" ]]; then s="s"; fi
echo -e "\n${Cyan}Deleting $count orphan subvolume$s...${Off}"
for o in "${orphansubvolumes[@]}"; do
#echo "$o" # debug
if [[ -d "$o" ]]; then
if rm -rf "$o"; then
deleted=$((deleted+1))
else
echo -e "${Red}Failed to delete${Off} $o"
failed=$((failed+1))
fi
else
echo -e "${Red}Failed to delete${Off} $o"
failed=$((failed+1))
fi
done
else
echo -e "\n${Yellow}No orphan subvolumes to delete.${Off}"
fi
# Start Container Manager or Docker
#echo -e "\nStarting $docker_pkg_name..."
#/usr/syno/bin/synopkg start $docker_pkg >/dev/null
# Delete dangling images
readarray -t temp < <(docker images --filter "dangling=true")
count=$((${#temp[@]}-1))
if [[ $count -gt "0" ]]; then
s=""
if [[ $count -gt "1" ]]; then s="s"; fi
echo -e "\n${Cyan}Deleting $count orphan image$s...${Off}"
docker rmi "$(docker images -f "dangling=true" -q)"
else
echo -e "\n${Yellow}No dangling images to delete.${Off}"
fi
# Shows results
echo ""
if [[ $deleted -gt "0" ]]; then
echo -e "\n${Yellow}Deleted $deleted orphan subvolumes.${Off}"
# Delete .syno.bak containers
if [[ ! $(docker ps -a --format "{{.Names}}" | grep -qE .*\.syno\.bak$) ]]; then
echo -e "\nYou can now delete any containers with names ending in .syno.bak:"
if [[ $docker_pkg == "ContainerManager" ]]; then
echo " 1. Open Container Manager."
else
echo " 1. Open $docker_pkg."
fi
echo " 2. Click on Container."
echo " 3. Select a container that ends in .syno.bak"
echo " 4. Click on Action and select Delete."
echo " 5. Click on the Delete button."
echo " 6. Repeat steps 3 to 5 for other .syno.bak containers"
fi
fi
if [[ $failed -gt "0" ]]; then
echo -e "\n${Error}ERROR${Off} Failed to delete ${Cyan}$failed${Off} orphan subvolumes!"
fi
| 6,082 | syno_docker_cleanup | sh | en | shell | code | {"qsc_code_num_words": 855, "qsc_code_num_chars": 6082.0, "qsc_code_mean_word_length": 4.19532164, "qsc_code_frac_words_unique": 0.23157895, "qsc_code_frac_chars_top_2grams": 0.03206022, "qsc_code_frac_chars_top_3grams": 0.01505436, "qsc_code_frac_chars_top_4grams": 0.01338166, "qsc_code_frac_chars_dupe_5grams": 0.3236688, "qsc_code_frac_chars_dupe_6grams": 0.26540284, "qsc_code_frac_chars_dupe_7grams": 0.17842208, "qsc_code_frac_chars_dupe_8grams": 0.13771954, "qsc_code_frac_chars_dupe_9grams": 0.10984109, "qsc_code_frac_chars_dupe_10grams": 0.08865347, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0175219, "qsc_code_frac_chars_whitespace": 0.21177244, "qsc_code_size_file_byte": 6082.0, "qsc_code_num_lines": 199.0, "qsc_code_num_chars_line_max": 93.0, "qsc_code_num_chars_line_mean": 30.56281407, "qsc_code_frac_chars_alphabet": 0.73070505, "qsc_code_frac_chars_comments": 0.29052943, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.44628099, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00826446, "qsc_code_frac_chars_string_length": 0.38178025, "qsc_code_frac_chars_long_word_length": 0.03801576, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_docker_cleanup | README.md | # Synology docker cleanup
<a href="https://github.com/007revad/Synology_docker_cleanup/releases"><img src="https://img.shields.io/github/release/007revad/Synology_docker_cleanup.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Remove orphan docker btrfs subvolumes and dangling images in Synology DSM 7 and DSM 6
### After running the script
If any containers get stuck while updating just stop then start Container Manager (or Docker for DSM 6).
<p align="left"><img src="/images/updating.png"></p>
If you have any duplicate containers whose name ends in .syno.bak select it then click on "Action > Delete".
<p align="left"><img src="/images/syno.bak.png"></p>
### Screenshots
<p align="center">Deleting orphan docker subvolumes</p>
<p align="center"><img src="/images/delete_orphans.png"></p>
<br>
<p align="center">No more orphan docker subvolumes</p>
<p align="center"><img src="/images/no_orphans.png"></p>
<br>
| 1,483 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.10290237, "qsc_doc_num_sentences": 36.0, "qsc_doc_num_words": 226, "qsc_doc_num_chars": 1483.0, "qsc_doc_num_lines": 32.0, "qsc_doc_mean_word_length": 4.9159292, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.49115044, "qsc_doc_entropy_unigram": 4.41304579, "qsc_doc_frac_words_all_caps": 0.02110818, "qsc_doc_frac_lines_dupe_lines": 0.1, "qsc_doc_frac_chars_dupe_lines": 0.00551344, "qsc_doc_frac_chars_top_2grams": 0.03240324, "qsc_doc_frac_chars_top_3grams": 0.04320432, "qsc_doc_frac_chars_top_4grams": 0.04590459, "qsc_doc_frac_chars_dupe_5grams": 0.20342034, "qsc_doc_frac_chars_dupe_6grams": 0.20342034, "qsc_doc_frac_chars_dupe_7grams": 0.16381638, "qsc_doc_frac_chars_dupe_8grams": 0.08460846, "qsc_doc_frac_chars_dupe_9grams": 0.08460846, "qsc_doc_frac_chars_dupe_10grams": 0.08460846, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 20.82352941, "qsc_doc_frac_chars_hyperlink_html_tag": 0.64733648, "qsc_doc_frac_chars_alphabet": 0.77494538, "qsc_doc_frac_chars_digital": 0.03423161, "qsc_doc_frac_chars_whitespace": 0.07417397, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 1, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
0015/map_tiles_projects | waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/Kconfig | menu "Board Support Package"
config BSP_ERROR_CHECK
bool "Enable error check in BSP"
default y
help
Error check assert the application before returning the error code.
menu "I2C"
config BSP_I2C_NUM
int "I2C peripheral index"
default 1
range 0 1
help
ESP32-S2 has two I2C peripherals, pick the one you want to use.
config BSP_I2C_FAST_MODE
bool "Enable I2C fast mode"
default y
help
I2C has two speed modes: normal (100kHz) and fast (400kHz).
config BSP_I2C_CLK_SPEED_HZ
int
default 400000 if BSP_I2C_FAST_MODE
default 100000
endmenu
menu "SPIFFS - Virtual File System"
config BSP_SPIFFS_FORMAT_ON_MOUNT_FAIL
bool "Format SPIFFS if mounting fails"
default n
help
Format SPIFFS if it fails to mount the filesystem.
config BSP_SPIFFS_MOUNT_POINT
string "SPIFFS mount point"
default "/spiffs"
help
Mount point of SPIFFS in the Virtual File System.
config BSP_SPIFFS_PARTITION_LABEL
string "Partition label of SPIFFS"
default "storage"
help
Partition label which stores SPIFFS.
config BSP_SPIFFS_MAX_FILES
int "Maximum files that could be open at the same time"
default 2
help
Supported max files for SPIFFS in the Virtual File System.
endmenu
menu "uSD card - Virtual File System"
config BSP_SD_FORMAT_ON_MOUNT_FAIL
bool "Format uSD card if mounting fails"
default n
help
The SDMMC host will format (FAT) the uSD card if it fails to mount the filesystem.
config BSP_SD_MOUNT_POINT
string "uSD card mount point"
default "/sdcard"
help
Mount point of the uSD card in the Virtual File System
endmenu
menu "Display"
config BSP_LCD_RGB_BOUNCE_BUFFER_HEIGHT
int "RGB Bounce buffer height"
default 20
help
Height of bounce buffer. The width of the buffer is the same as that of the LCD.
config BSP_LCD_RGB_BUFFER_NUMS
int "Set number of frame buffers"
default 1
range 1 3
help
Let DPI LCD driver create a specified number of frame-size buffers. Only when it is set to multiple can the avoiding tearing be turned on.
config BSP_DISPLAY_LVGL_AVOID_TEAR
bool "Avoid tearing effect"
depends on BSP_LCD_RGB_BUFFER_NUMS > 1
default "n"
help
Avoid tearing effect through LVGL buffer mode and double frame buffers of RGB LCD. This feature is only available for RGB LCD.
choice BSP_DISPLAY_LVGL_MODE
depends on BSP_DISPLAY_LVGL_AVOID_TEAR
prompt "Select LVGL buffer mode"
default BSP_DISPLAY_LVGL_FULL_REFRESH
config BSP_DISPLAY_LVGL_FULL_REFRESH
bool "Full refresh"
config BSP_DISPLAY_LVGL_DIRECT_MODE
bool "Direct mode"
endchoice
config BSP_DISPLAY_BRIGHTNESS_LEDC_CH
int "LEDC channel index"
default 1
range 0 7
help
LEDC channel is used to generate PWM signal that controls display brightness.
Set LEDC index that should be used.
config BSP_DISPLAY_LVGL_BUF_HEIGHT
depends on !BSP_DISPLAY_LVGL_AVOID_TEAR
int "LVGL buffer height"
default 100
help
Height of LVGL buffer. The width of the buffer is the same as that of the LCD.
endmenu
config BSP_I2S_NUM
int "I2S peripheral index"
default 1
range 0 1
help
ESP32S3 has two I2S peripherals, pick the one you want to use.
endmenu
| 4,104 | Kconfig | en | unknown | unknown | {} | 0 | {} | |
0015/map_tiles_projects | waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/esp32_s3_touch_amoled_1_75.c | #include <stdio.h>
#include "esp_lcd_panel_ops.h"
#include "esp_lcd_panel_io.h"
#include "esp_lcd_panel_io_additions.h"
#include "esp_err.h"
#include "esp_log.h"
#include "esp_check.h"
#include "esp_vfs_fat.h"
#include "esp_spiffs.h"
#include "driver/gpio.h"
#include "driver/ledc.h"
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_lcd_sh8601.h"
#include "esp_lcd_touch_cst9217.h"
#include "esp_codec_dev_defaults.h"
#include "bsp/esp32_s3_touch_amoled_1_75.h"
#include "bsp_err_check.h"
#include "bsp/display.h"
#include "bsp/touch.h"
#include "i2c_bus.h"
#include <string.h>
static const char *TAG = "ESP32-S3-Touch-AMOLED-1.75";
static i2c_master_bus_handle_t i2c_handle = NULL; // I2C Handle
static bool i2c_initialized = false;
static esp_io_expander_handle_t io_expander = NULL; // IO expander tca9554 handle
static lv_display_t *disp;
static lv_indev_t *disp_indev = NULL;
sdmmc_card_t *bsp_sdcard = NULL; // Global uSD card handler
static esp_lcd_touch_handle_t tp = NULL;
static esp_lcd_panel_handle_t panel_handle = NULL; // LCD panel handle
static esp_lcd_panel_io_handle_t io_handle = NULL;
static i2s_chan_handle_t i2s_tx_chan = NULL;
static i2s_chan_handle_t i2s_rx_chan = NULL;
static const audio_codec_data_if_t *i2s_data_if = NULL; /* Codec data interface */
#define BSP_ES7210_CODEC_ADDR ES7210_CODEC_DEFAULT_ADDR
#define BSP_I2S_GPIO_CFG \
{ \
.mclk = BSP_I2S_MCLK, \
.bclk = BSP_I2S_SCLK, \
.ws = BSP_I2S_LCLK, \
.dout = BSP_I2S_DOUT, \
.din = BSP_I2S_DSIN, \
.invert_flags = { \
.mclk_inv = false, \
.bclk_inv = false, \
.ws_inv = false, \
}, \
}
static const sh8601_lcd_init_cmd_t lcd_init_cmds[] = {
{0xFE, (uint8_t[]){0x20}, 1, 0},
{0x19, (uint8_t[]){0x10}, 1, 0},
{0x1C, (uint8_t[]){0xA0}, 1, 0},
{0xFE, (uint8_t[]){0x00}, 1, 0},
{0xC4, (uint8_t[]){0x80}, 1, 0},
{0x3A, (uint8_t[]){0x55}, 1, 0},
{0x35, (uint8_t[]){0x00}, 1, 0},
{0x53, (uint8_t[]){0x20}, 1, 0},
{0x51, (uint8_t[]){0xFF}, 1, 0},
{0x63, (uint8_t[]){0xFF}, 1, 0},
{0x2A, (uint8_t[]){0x00, 0x06, 0x01, 0xD7}, 4, 0},
{0x2B, (uint8_t[]){0x00, 0x00, 0x01, 0xD1}, 4, 600},
{0x11, NULL, 0, 600},
{0x29, NULL, 0, 0},
};
#define BSP_I2S_DUPLEX_MONO_CFG(_sample_rate) \
{ \
.clk_cfg = I2S_STD_CLK_DEFAULT_CONFIG(_sample_rate), \
.slot_cfg = I2S_STD_PHILIP_SLOT_DEFAULT_CONFIG(I2S_DATA_BIT_WIDTH_16BIT, I2S_SLOT_MODE_MONO), \
.gpio_cfg = BSP_I2S_GPIO_CFG, \
}
/**************************************************************************************************
*
* I2C Function
*
**************************************************************************************************/
esp_err_t bsp_i2c_init(void)
{
/* I2C was initialized before */
if (i2c_initialized)
{
return ESP_OK;
}
i2c_master_bus_config_t i2c_bus_conf = {
.clk_source = I2C_CLK_SRC_DEFAULT,
.sda_io_num = BSP_I2C_SDA,
.scl_io_num = BSP_I2C_SCL,
.i2c_port = BSP_I2C_NUM,
.glitch_ignore_cnt = 7,
.flags.enable_internal_pullup = true,
.trans_queue_depth = 0,
};
BSP_ERROR_CHECK_RETURN_ERR(i2c_new_master_bus(&i2c_bus_conf, &i2c_handle));
i2c_initialized = true;
return ESP_OK;
}
esp_err_t bsp_i2c_deinit(void)
{
BSP_ERROR_CHECK_RETURN_ERR(i2c_del_master_bus(i2c_handle));
i2c_initialized = false;
return ESP_OK;
}
i2c_master_bus_handle_t bsp_i2c_get_handle(void)
{
bsp_i2c_init();
return i2c_handle;
}
esp_err_t bsp_spiffs_mount(void)
{
esp_vfs_spiffs_conf_t conf = {
.base_path = CONFIG_BSP_SPIFFS_MOUNT_POINT,
.partition_label = CONFIG_BSP_SPIFFS_PARTITION_LABEL,
.max_files = CONFIG_BSP_SPIFFS_MAX_FILES,
#ifdef CONFIG_BSP_SPIFFS_FORMAT_ON_MOUNT_FAIL
.format_if_mount_failed = true,
#else
.format_if_mount_failed = false,
#endif
};
esp_err_t ret_val = esp_vfs_spiffs_register(&conf);
BSP_ERROR_CHECK_RETURN_ERR(ret_val);
size_t total = 0, used = 0;
ret_val = esp_spiffs_info(conf.partition_label, &total, &used);
if (ret_val != ESP_OK)
{
ESP_LOGE(TAG, "Failed to get SPIFFS partition information (%s)", esp_err_to_name(ret_val));
}
else
{
ESP_LOGI(TAG, "Partition size: total: %d, used: %d", total, used);
}
return ret_val;
}
esp_err_t bsp_spiffs_unmount(void)
{
return esp_vfs_spiffs_unregister(CONFIG_BSP_SPIFFS_PARTITION_LABEL);
}
esp_err_t bsp_sdcard_mount(void)
{
const esp_vfs_fat_sdmmc_mount_config_t mount_config = {
#ifdef CONFIG_BSP_SD_FORMAT_ON_MOUNT_FAIL
.format_if_mount_failed = true,
#else
.format_if_mount_failed = false,
#endif
.max_files = 5,
.allocation_unit_size = 16 * 1024};
const sdmmc_host_t host = SDMMC_HOST_DEFAULT();
const sdmmc_slot_config_t slot_config = {
.clk = BSP_SD_CLK,
.cmd = BSP_SD_CMD,
.d0 = BSP_SD_D0,
.d1 = GPIO_NUM_NC,
.d2 = GPIO_NUM_NC,
.d3 = GPIO_NUM_NC,
.d4 = GPIO_NUM_NC,
.d5 = GPIO_NUM_NC,
.d6 = GPIO_NUM_NC,
.d7 = GPIO_NUM_NC,
.cd = SDMMC_SLOT_NO_CD,
.wp = SDMMC_SLOT_NO_WP,
.width = 1,
.flags = 0,
};
#if !CONFIG_FATFS_LONG_FILENAMES
ESP_LOGW(TAG, "Warning: Long filenames on SD card are disabled in menuconfig!");
#endif
return esp_vfs_fat_sdmmc_mount(BSP_SD_MOUNT_POINT, &host, &slot_config, &mount_config, &bsp_sdcard);
}
esp_err_t bsp_sdcard_unmount(void)
{
return esp_vfs_fat_sdcard_unmount(BSP_SD_MOUNT_POINT, bsp_sdcard);
}
esp_err_t bsp_lc76g_get_nmea(char **nmea_out, size_t *length_out)
{
static i2c_bus_handle_t bus_handle = NULL;
static i2c_bus_device_handle_t write_dev_handle = NULL;
static i2c_bus_device_handle_t read_dev_handle = NULL;
static bool lc76g_inited = false;
uint8_t readData[4] = {0};
if (!lc76g_inited) {
i2c_config_t i2c_conf = {
.mode = I2C_MODE_MASTER,
.sda_io_num = BSP_I2C_SDA,
.scl_io_num = BSP_I2C_SCL,
.sda_pullup_en = GPIO_PULLUP_ENABLE,
.scl_pullup_en = GPIO_PULLUP_ENABLE,
.master.clk_speed = CONFIG_BSP_I2C_CLK_SPEED_HZ
};
bus_handle = i2c_bus_create(I2C_NUM_1, &i2c_conf);
if (!bus_handle) {
return ESP_ERR_NO_MEM;
}
write_dev_handle = i2c_bus_device_create(bus_handle, 0x50, CONFIG_BSP_I2C_CLK_SPEED_HZ);
if (!write_dev_handle) {
i2c_bus_delete(&bus_handle);
return ESP_ERR_NO_MEM;
}
read_dev_handle = i2c_bus_device_create(bus_handle, 0x54, CONFIG_BSP_I2C_CLK_SPEED_HZ);
if (!read_dev_handle) {
i2c_bus_device_delete(&write_dev_handle);
i2c_bus_delete(&bus_handle);
return ESP_ERR_NO_MEM;
}
lc76g_inited = true;
}
uint8_t init_cmd[] = {0x08, 0x00, 0x51, 0xAA, 0x04, 0x00, 0x00, 0x00};
esp_err_t ret = i2c_bus_write_bytes(write_dev_handle, NULL_I2C_MEM_ADDR, sizeof(init_cmd), init_cmd);
if (ret != ESP_OK) {
return ESP_FAIL;
}
vTaskDelay(pdMS_TO_TICKS(100));
ret = i2c_bus_read_bytes(read_dev_handle, NULL_I2C_MEM_ADDR, sizeof(readData), readData);
if (ret != ESP_OK) {
return ESP_FAIL;
}
uint32_t dataLength = (readData[0]) | (readData[1] << 8) |
(readData[2] << 16) | (readData[3] << 24);
if (dataLength == 0) {
return ESP_ERR_NOT_FOUND;
}
uint8_t header[] = {0x00, 0x20, 0x51, 0xAA};
uint8_t send_buf[sizeof(header) + sizeof(readData)];
memcpy(send_buf, header, sizeof(header));
memcpy(send_buf + sizeof(header), readData, sizeof(readData));
vTaskDelay(pdMS_TO_TICKS(100));
ret = i2c_bus_write_bytes(write_dev_handle, NULL_I2C_MEM_ADDR, sizeof(send_buf), send_buf);
if (ret != ESP_OK) {
return ESP_FAIL;
}
uint8_t *dynamicReadData = malloc(dataLength);
if (!dynamicReadData) {
return ESP_ERR_NO_MEM;
}
vTaskDelay(pdMS_TO_TICKS(100));
ret = i2c_bus_read_bytes(read_dev_handle, NULL_I2C_MEM_ADDR, dataLength, dynamicReadData);
if (ret != ESP_OK) {
free(dynamicReadData);
return ret;
}
if (nmea_out) {
*nmea_out = malloc(dataLength + 1);
if (!*nmea_out) {
free(dynamicReadData);
return ESP_ERR_NO_MEM;
}
memcpy(*nmea_out, dynamicReadData, dataLength);
(*nmea_out)[dataLength] = '\0';
}
if (length_out) {
*length_out = dataLength;
}
free(dynamicReadData);
return ESP_OK;
}
/**************************************************************************************************
*
* I2S Audio Function
*
**************************************************************************************************/
esp_err_t bsp_audio_init(const i2s_std_config_t *i2s_config)
{
esp_err_t ret = ESP_FAIL;
if (i2s_tx_chan && i2s_rx_chan) {
/* Audio was initialized before */
return ESP_OK;
}
/* Setup I2S peripheral */
i2s_chan_config_t chan_cfg = I2S_CHANNEL_DEFAULT_CONFIG(CONFIG_BSP_I2S_NUM, I2S_ROLE_MASTER);
chan_cfg.auto_clear = true; // Auto clear the legacy data in the DMA buffer
BSP_ERROR_CHECK_RETURN_ERR(i2s_new_channel(&chan_cfg, &i2s_tx_chan, &i2s_rx_chan));
/* Setup I2S channels */
const i2s_std_config_t std_cfg_default = BSP_I2S_DUPLEX_MONO_CFG(22050);
const i2s_std_config_t *p_i2s_cfg = &std_cfg_default;
if (i2s_config != NULL) {
p_i2s_cfg = i2s_config;
}
if (i2s_tx_chan != NULL) {
ESP_GOTO_ON_ERROR(i2s_channel_init_std_mode(i2s_tx_chan, p_i2s_cfg), err, TAG, "I2S channel initialization failed");
ESP_GOTO_ON_ERROR(i2s_channel_enable(i2s_tx_chan), err, TAG, "I2S enabling failed");
}
if (i2s_rx_chan != NULL) {
ESP_GOTO_ON_ERROR(i2s_channel_init_std_mode(i2s_rx_chan, p_i2s_cfg), err, TAG, "I2S channel initialization failed");
ESP_GOTO_ON_ERROR(i2s_channel_enable(i2s_rx_chan), err, TAG, "I2S enabling failed");
}
audio_codec_i2s_cfg_t i2s_cfg = {
.port = CONFIG_BSP_I2S_NUM,
.rx_handle = i2s_rx_chan,
.tx_handle = i2s_tx_chan,
};
i2s_data_if = audio_codec_new_i2s_data(&i2s_cfg);
BSP_NULL_CHECK_GOTO(i2s_data_if, err);
return ESP_OK;
err:
if (i2s_tx_chan) {
i2s_del_channel(i2s_tx_chan);
}
if (i2s_rx_chan) {
i2s_del_channel(i2s_rx_chan);
}
return ret;
}
esp_codec_dev_handle_t bsp_audio_codec_speaker_init(void)
{
if (i2s_data_if == NULL) {
/* Initilize I2C */
BSP_ERROR_CHECK_RETURN_NULL(bsp_i2c_init());
/* Configure I2S peripheral and Power Amplifier */
BSP_ERROR_CHECK_RETURN_NULL(bsp_audio_init(NULL));
}
assert(i2s_data_if);
const audio_codec_gpio_if_t *gpio_if = audio_codec_new_gpio();
audio_codec_i2c_cfg_t i2c_cfg = {
.port = BSP_I2C_NUM,
.addr = ES8311_CODEC_DEFAULT_ADDR,
.bus_handle = i2c_handle,
};
const audio_codec_ctrl_if_t *i2c_ctrl_if = audio_codec_new_i2c_ctrl(&i2c_cfg);
BSP_NULL_CHECK(i2c_ctrl_if, NULL);
esp_codec_dev_hw_gain_t gain = {
.pa_voltage = 5.0,
.codec_dac_voltage = 3.3,
};
es8311_codec_cfg_t es8311_cfg = {
.ctrl_if = i2c_ctrl_if,
.gpio_if = gpio_if,
.codec_mode = ESP_CODEC_DEV_WORK_MODE_DAC,
.pa_pin = BSP_POWER_AMP_IO,
.pa_reverted = false,
.master_mode = false,
.use_mclk = true,
.digital_mic = false,
.invert_mclk = false,
.invert_sclk = false,
.hw_gain = gain,
};
const audio_codec_if_t *es8311_dev = es8311_codec_new(&es8311_cfg);
BSP_NULL_CHECK(es8311_dev, NULL);
esp_codec_dev_cfg_t codec_dev_cfg = {
.dev_type = ESP_CODEC_DEV_TYPE_OUT,
.codec_if = es8311_dev,
.data_if = i2s_data_if,
};
return esp_codec_dev_new(&codec_dev_cfg);
}
esp_codec_dev_handle_t bsp_audio_codec_microphone_init(void)
{
if (i2s_data_if == NULL) {
/* Initilize I2C */
BSP_ERROR_CHECK_RETURN_NULL(bsp_i2c_init());
/* Configure I2S peripheral and Power Amplifier */
BSP_ERROR_CHECK_RETURN_NULL(bsp_audio_init(NULL));
}
assert(i2s_data_if);
audio_codec_i2c_cfg_t i2c_cfg = {
.port = BSP_I2C_NUM,
.addr = BSP_ES7210_CODEC_ADDR,
.bus_handle = i2c_handle,
};
const audio_codec_ctrl_if_t *i2c_ctrl_if = audio_codec_new_i2c_ctrl(&i2c_cfg);
BSP_NULL_CHECK(i2c_ctrl_if, NULL);
es7210_codec_cfg_t es7210_cfg = {
.ctrl_if = i2c_ctrl_if,
};
const audio_codec_if_t *es7210_dev = es7210_codec_new(&es7210_cfg);
BSP_NULL_CHECK(es7210_dev, NULL);
esp_codec_dev_cfg_t codec_es7210_dev_cfg = {
.dev_type = ESP_CODEC_DEV_TYPE_IN,
.codec_if = es7210_dev,
.data_if = i2s_data_if,
};
return esp_codec_dev_new(&codec_es7210_dev_cfg);
}
#define LCD_CMD_BITS (8)
#define LCD_PARAM_BITS (8)
#define LCD_LEDC_CH (CONFIG_BSP_DISPLAY_BRIGHTNESS_LEDC_CH)
#define LVGL_TICK_PERIOD_MS (CONFIG_BSP_DISPLAY_LVGL_TICK)
#define LVGL_MAX_SLEEP_MS (CONFIG_BSP_DISPLAY_LVGL_MAX_SLEEP)
esp_err_t bsp_display_brightness_init(void)
{
bsp_display_brightness_set(100);
return ESP_OK;
}
esp_err_t bsp_display_brightness_set(int brightness_percent)
{
if (panel_handle == NULL)
{
ESP_LOGE(TAG, "Panel handle is not initialized");
return ESP_ERR_INVALID_STATE;
}
if (brightness_percent < 0 || brightness_percent > 100)
{
ESP_LOGE(TAG, "Invalid brightness percentage. Should be between 0 and 100.");
return ESP_ERR_INVALID_ARG;
}
uint8_t brightness = (uint8_t)(brightness_percent * 255 / 100);
uint32_t lcd_cmd = 0x51;
lcd_cmd &= 0xff;
lcd_cmd <<= 8;
lcd_cmd |= 0x02 << 24;
uint8_t param = brightness;
esp_lcd_panel_io_tx_param(io_handle, lcd_cmd, ¶m, 1);
return ESP_OK;
}
esp_err_t bsp_display_backlight_off(void)
{
ESP_LOGI(TAG, "Backlight off");
return bsp_display_brightness_set(0);
}
esp_err_t bsp_display_backlight_on(void)
{
ESP_LOGI(TAG, "Backlight on");
return bsp_display_brightness_set(100);
}
esp_err_t bsp_display_new(const bsp_display_config_t *config, esp_lcd_panel_handle_t *ret_panel, esp_lcd_panel_io_handle_t *ret_io)
{
esp_err_t ret = ESP_OK;
ESP_LOGI(TAG, "Initialize SPI bus");
const spi_bus_config_t buscfg = SH8601_PANEL_BUS_QSPI_CONFIG(BSP_LCD_PCLK,
BSP_LCD_DATA0,
BSP_LCD_DATA1,
BSP_LCD_DATA2,
BSP_LCD_DATA3,
BSP_LCD_H_RES * BSP_LCD_V_RES * BSP_LCD_BITS_PER_PIXEL / 8);
ESP_ERROR_CHECK(spi_bus_initialize(BSP_LCD_SPI_NUM, &buscfg, SPI_DMA_CH_AUTO));
const esp_lcd_panel_io_spi_config_t io_config = SH8601_PANEL_IO_QSPI_CONFIG(BSP_LCD_CS, NULL, NULL);
sh8601_vendor_config_t vendor_config = {
.init_cmds = lcd_init_cmds,
.init_cmds_size = sizeof(lcd_init_cmds) / sizeof(lcd_init_cmds[0]),
.flags = {
.use_qspi_interface = 1,
},
};
ESP_ERROR_CHECK(esp_lcd_new_panel_io_spi((esp_lcd_spi_bus_handle_t)BSP_LCD_SPI_NUM, &io_config, &io_handle));
const esp_lcd_panel_dev_config_t panel_config = {
.reset_gpio_num = BSP_LCD_RST,
.rgb_ele_order = LCD_RGB_ELEMENT_ORDER_RGB,
.bits_per_pixel = BSP_LCD_BITS_PER_PIXEL,
.vendor_config = &vendor_config,
};
ESP_ERROR_CHECK(esp_lcd_new_panel_sh8601(io_handle, &panel_config, &panel_handle));
esp_lcd_panel_set_gap(panel_handle, 0x06, 0);
esp_lcd_panel_reset(panel_handle);
esp_lcd_panel_init(panel_handle);
esp_lcd_panel_disp_on_off(panel_handle, true);
if (ret_panel)
{
*ret_panel = panel_handle;
}
if (ret_io)
{
*ret_io = io_handle;
}
return ret;
}
esp_err_t bsp_touch_new(const bsp_touch_config_t *config, esp_lcd_touch_handle_t *ret_touch)
{
/* Initilize I2C */
BSP_ERROR_CHECK_RETURN_ERR(bsp_i2c_init());
/* Initialize touch */
const esp_lcd_touch_config_t tp_cfg = {
.x_max = BSP_LCD_H_RES,
.y_max = BSP_LCD_V_RES,
.rst_gpio_num = BSP_LCD_TOUCH_RST, // Shared with LCD reset
.int_gpio_num = BSP_LCD_TOUCH_INT,
.levels = {
.reset = 0,
.interrupt = 0,
},
.flags = {
.swap_xy = 0,
.mirror_x = 1,
.mirror_y = 1,
},
};
esp_lcd_panel_io_handle_t tp_io_handle = NULL;
esp_lcd_panel_io_i2c_config_t tp_io_config = ESP_LCD_TOUCH_IO_I2C_CST9217_CONFIG();
tp_io_config.scl_speed_hz = CONFIG_BSP_I2C_CLK_SPEED_HZ;
ESP_RETURN_ON_ERROR(esp_lcd_new_panel_io_i2c(i2c_handle, &tp_io_config, &tp_io_handle), TAG, "");
return esp_lcd_touch_new_i2c_cst9217(tp_io_handle, &tp_cfg, ret_touch);
}
/**************************************************************************************************
*
* IO Expander Function
*
**************************************************************************************************/
esp_io_expander_handle_t bsp_io_expander_init(void)
{
BSP_ERROR_CHECK_RETURN_ERR(bsp_i2c_init());
if (!io_expander)
{
BSP_ERROR_CHECK_RETURN_NULL(esp_io_expander_new_i2c_tca9554(i2c_handle, BSP_IO_EXPANDER_I2C_ADDRESS, &io_expander));
}
return io_expander;
}
static lv_display_t *bsp_display_lcd_init()
{
bsp_display_config_t disp_config = {0};
BSP_ERROR_CHECK_RETURN_NULL(bsp_display_new(&disp_config, &panel_handle, &io_handle));
int buffer_size = 0;
#if CONFIG_BSP_DISPLAY_LVGL_AVOID_TEAR
buffer_size = BSP_LCD_H_RES * BSP_LCD_V_RES;
#else
buffer_size = BSP_LCD_H_RES * LVGL_BUFFER_HEIGHT;
#endif /* CONFIG_BSP_DISPLAY_LVGL_AVOID_TEAR */
const lvgl_port_display_cfg_t disp_cfg = {
.io_handle = io_handle,
.panel_handle = panel_handle,
.buffer_size = buffer_size,
.monochrome = false,
.hres = BSP_LCD_H_RES,
.vres = BSP_LCD_V_RES,
#if LVGL_VERSION_MAJOR >= 9
.color_format = LV_COLOR_FORMAT_RGB565,
#endif
.rotation = {
.swap_xy = false,
.mirror_x = false,
.mirror_y = false,
},
.flags = {
.sw_rotate = true,
.buff_dma = false,
#if CONFIG_BSP_DISPLAY_LVGL_PSRAM
.buff_spiram = false,
#endif
#if CONFIG_BSP_DISPLAY_LVGL_FULL_REFRESH
.full_refresh = 1,
#elif CONFIG_BSP_DISPLAY_LVGL_DIRECT_MODE
.direct_mode = 1,
#endif
#if LVGL_VERSION_MAJOR >= 9
.swap_bytes = true,
#endif
}};
const lvgl_port_display_rgb_cfg_t rgb_cfg = {
.flags = {
#if CONFIG_BSP_LCD_RGB_BOUNCE_BUFFER_MODE
.bb_mode = 1,
#else
.bb_mode = 0,
#endif
#if CONFIG_BSP_DISPLAY_LVGL_AVOID_TEAR
.avoid_tearing = true,
#else
.avoid_tearing = false,
#endif
}};
#if CONFIG_BSP_LCD_RGB_BOUNCE_BUFFER_MODE
ESP_LOGW(TAG, "CONFIG_BSP_LCD_RGB_BOUNCE_BUFFER_MODE");
#endif
return lvgl_port_add_disp_rgb(&disp_cfg, &rgb_cfg);
}
static lv_indev_t *bsp_display_indev_init(lv_display_t *disp)
{
BSP_ERROR_CHECK_RETURN_NULL(bsp_touch_new(NULL, &tp));
assert(tp);
/* Add touch input (for selected screen) */
const lvgl_port_touch_cfg_t touch_cfg = {
.disp = disp,
.handle = tp,
};
return lvgl_port_add_touch(&touch_cfg);
}
/**********************************************************************************************************
*
* Display Function
*
**********************************************************************************************************/
lv_display_t *bsp_display_start(void)
{
bsp_display_cfg_t cfg = {
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
.flags = {
.buff_dma = false,
.buff_spiram = true,
}};
return bsp_display_start_with_config(&cfg);
}
lv_display_t *bsp_display_start_with_config(const bsp_display_cfg_t *cfg)
{
lv_display_t *disp;
assert(cfg != NULL);
BSP_ERROR_CHECK_RETURN_NULL(lvgl_port_init(&cfg->lvgl_port_cfg));
BSP_NULL_CHECK(disp = bsp_display_lcd_init(cfg), NULL);
BSP_NULL_CHECK(disp_indev = bsp_display_indev_init(disp), NULL);
BSP_ERROR_CHECK_RETURN_NULL(bsp_display_brightness_init());
return disp;
}
lv_indev_t *bsp_display_get_input_dev(void)
{
return disp_indev;
}
void bsp_display_rotate(lv_display_t *disp, lv_disp_rotation_t rotation)
{
lv_disp_set_rotation(disp, rotation);
}
bool bsp_display_lock(uint32_t timeout_ms)
{
return lvgl_port_lock(timeout_ms);
}
void bsp_display_unlock(void)
{
lvgl_port_unlock();
}
| 21,555 | esp32_s3_touch_amoled_1_75 | c | en | c | code | {"qsc_code_num_words": 2994, "qsc_code_num_chars": 21555.0, "qsc_code_mean_word_length": 4.01870407, "qsc_code_frac_words_unique": 0.12892452, "qsc_code_frac_chars_top_2grams": 0.0290891, "qsc_code_frac_chars_top_3grams": 0.01047207, "qsc_code_frac_chars_top_4grams": 0.02368684, "qsc_code_frac_chars_dupe_5grams": 0.39303524, "qsc_code_frac_chars_dupe_6grams": 0.27775931, "qsc_code_frac_chars_dupe_7grams": 0.20869348, "qsc_code_frac_chars_dupe_8grams": 0.17237367, "qsc_code_frac_chars_dupe_9grams": 0.12549867, "qsc_code_frac_chars_dupe_10grams": 0.12549867, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03686523, "qsc_code_frac_chars_whitespace": 0.23989794, "qsc_code_size_file_byte": 21555.0, "qsc_code_num_lines": 705.0, "qsc_code_num_chars_line_max": 132.0, "qsc_code_num_chars_line_mean": 30.57446809, "qsc_code_frac_chars_alphabet": 0.69750977, "qsc_code_frac_chars_comments": 0.06912549, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.2, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0382756, "qsc_code_frac_chars_long_word_length": 0.00847246, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.00996761, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.00701754, "qsc_codec_frac_lines_func_ratio": 0.07192982, "qsc_codec_cate_bitsstdc": 0.0, "qsc_codec_nums_lines_main": 0, "qsc_codec_frac_lines_goto": 0.0, "qsc_codec_cate_var_zero": 0.0, "qsc_codec_score_lines_no_logic": 0.15789474, "qsc_codec_frac_lines_print": 0.0, "qsc_codec_frac_lines_preprocessor_directives": 0.10175439} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codec_frac_lines_func_ratio": 0, "qsc_codec_nums_lines_main": 0, "qsc_codec_score_lines_no_logic": 0, "qsc_codec_frac_lines_preprocessor_directives": 0, "qsc_codec_frac_lines_print": 0} |
0015/map_tiles_projects | waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/priv_include/bsp_err_check.h | #pragma once
#include "esp_check.h"
#include "sdkconfig.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Assert on error, if selected in menuconfig. Otherwise return error code. */
#if CONFIG_BSP_ERROR_CHECK
#define BSP_ERROR_CHECK_RETURN_ERR(x) ESP_ERROR_CHECK(x)
#define BSP_ERROR_CHECK_RETURN_NULL(x) ESP_ERROR_CHECK(x)
#define BSP_ERROR_CHECK(x, ret) ESP_ERROR_CHECK(x)
#define BSP_NULL_CHECK(x, ret) assert(x)
#define BSP_NULL_CHECK_GOTO(x, goto_tag) assert(x)
#else
#define BSP_ERROR_CHECK_RETURN_ERR(x) do { \
esp_err_t err_rc_ = (x); \
if (unlikely(err_rc_ != ESP_OK)) { \
return err_rc_; \
} \
} while(0)
#define BSP_ERROR_CHECK_RETURN_NULL(x) do { \
if (unlikely((x) != ESP_OK)) { \
return NULL; \
} \
} while(0)
#define BSP_NULL_CHECK(x, ret) do { \
if ((x) == NULL) { \
return ret; \
} \
} while(0)
#define BSP_ERROR_CHECK(x, ret) do { \
if (unlikely((x) != ESP_OK)) { \
return ret; \
} \
} while(0)
#define BSP_NULL_CHECK_GOTO(x, goto_tag) do { \
if ((x) == NULL) { \
goto goto_tag; \
} \
} while(0)
#endif
#ifdef __cplusplus
}
#endif | 1,501 | bsp_err_check | h | en | c | code | {"qsc_code_num_words": 174, "qsc_code_num_chars": 1501.0, "qsc_code_mean_word_length": 3.85057471, "qsc_code_frac_words_unique": 0.22413793, "qsc_code_frac_chars_top_2grams": 0.14925373, "qsc_code_frac_chars_top_3grams": 0.1358209, "qsc_code_frac_chars_top_4grams": 0.17014925, "qsc_code_frac_chars_dupe_5grams": 0.59552239, "qsc_code_frac_chars_dupe_6grams": 0.5880597, "qsc_code_frac_chars_dupe_7grams": 0.40746269, "qsc_code_frac_chars_dupe_8grams": 0.19104478, "qsc_code_frac_chars_dupe_9grams": 0.10149254, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00558659, "qsc_code_frac_chars_whitespace": 0.40373085, "qsc_code_size_file_byte": 1501.0, "qsc_code_num_lines": 52.0, "qsc_code_num_chars_line_max": 79.0, "qsc_code_num_chars_line_mean": 28.86538462, "qsc_code_frac_chars_alphabet": 0.74301676, "qsc_code_frac_chars_comments": 0.05196536, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.48837209, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01615169, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.04651163, "qsc_codec_frac_lines_func_ratio": 0.23255814, "qsc_codec_cate_bitsstdc": 0.0, "qsc_codec_nums_lines_main": 0, "qsc_codec_frac_lines_goto": 0.06976744, "qsc_codec_cate_var_zero": 0.0, "qsc_codec_score_lines_no_logic": 0.27906977, "qsc_codec_frac_lines_print": 0.0, "qsc_codec_frac_lines_preprocessor_directives": null} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codec_frac_lines_func_ratio": 1, "qsc_codec_nums_lines_main": 0, "qsc_codec_score_lines_no_logic": 0, "qsc_codec_frac_lines_preprocessor_directives": 0, "qsc_codec_frac_lines_print": 0} |
0015/map_tiles_projects | waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/include/bsp/esp32_s3_touch_amoled_1_75.h | #pragma once
#include "sdkconfig.h"
#include "driver/gpio.h"
#include "driver/i2c_master.h"
#include "driver/sdmmc_host.h"
#include "driver/i2s_std.h"
#include "bsp/config.h"
#include "bsp/display.h"
#include "esp_codec_dev.h"
#include "esp_io_expander_tca9554.h"
#include "lvgl.h"
#include "esp_lvgl_port.h"
/**************************************************************************************************
* BSP Capabilities
**************************************************************************************************/
#define BSP_CAPS_DISPLAY 1
#define BSP_CAPS_TOUCH 1
#define BSP_CAPS_BUTTONS 0
#define BSP_CAPS_AUDIO 1
#define BSP_CAPS_AUDIO_SPEAKER 1
#define BSP_CAPS_AUDIO_MIC 1
#define BSP_CAPS_SDCARD 1
#define BSP_CAPS_IMU 0
/**************************************************************************************************
* ESP-SparkBot-BSP pinout
**************************************************************************************************/
/* I2C */
#define BSP_I2C_SCL (GPIO_NUM_14)
#define BSP_I2C_SDA (GPIO_NUM_15)
#define BSP_I2S_SCLK (GPIO_NUM_9)
#define BSP_I2S_MCLK (GPIO_NUM_42)
#define BSP_I2S_LCLK (GPIO_NUM_45)
#define BSP_I2S_DOUT (GPIO_NUM_8)
#define BSP_I2S_DSIN (GPIO_NUM_10)
#define BSP_POWER_AMP_IO (GPIO_NUM_46)
/* Display */
#define BSP_LCD_CS (GPIO_NUM_12)
#define BSP_LCD_PCLK (GPIO_NUM_38)
#define BSP_LCD_DATA0 (GPIO_NUM_4)
#define BSP_LCD_DATA1 (GPIO_NUM_5)
#define BSP_LCD_DATA2 (GPIO_NUM_6)
#define BSP_LCD_DATA3 (GPIO_NUM_7)
#define BSP_LCD_BACKLIGHT (GPIO_NUM_NC)
#define BSP_LCD_RST (GPIO_NUM_39)
#define BSP_LCD_TOUCH_RST (GPIO_NUM_40)
#define BSP_LCD_TOUCH_INT (GPIO_NUM_NC)
/* uSD card */
#define BSP_SD_D0 (GPIO_NUM_3)
#define BSP_SD_CMD (GPIO_NUM_1)
#define BSP_SD_CLK (GPIO_NUM_2)
#define BSP_IO_EXPANDER_I2C_ADDRESS (ESP_IO_EXPANDER_I2C_TCA9554_ADDRESS_000)
#define LVGL_BUFFER_HEIGHT (CONFIG_BSP_DISPLAY_LVGL_BUF_HEIGHT)
#ifdef __cplusplus
extern "C" {
#endif
/**************************************************************************************************
*
* I2C interface
*
* There are two devices connected to I2C peripheral:
* - QMA7981 Inertial measurement unit
* - OV2640 Camera module
**************************************************************************************************/
#define BSP_I2C_NUM CONFIG_BSP_I2C_NUM
/**
* @brief Init I2C driver
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG I2C parameter error
* - ESP_FAIL I2C driver installation error
*
*/
esp_err_t bsp_i2c_init(void);
/**
* @brief Deinit I2C driver and free its resources
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG I2C parameter error
*
*/
esp_err_t bsp_i2c_deinit(void);
/**
* @brief Get I2C driver handle
*
* @return
* - I2C handle
*
*/
i2c_master_bus_handle_t bsp_i2c_get_handle(void);
esp_err_t bsp_lc76g_get_nmea(char **nmea_out, size_t *length_out);
/**************************************************************************************************
*
* I2S audio interface
*
* There are two devices connected to the I2S peripheral:
* - Codec ES8311 for output(playback) and input(recording) path
*
* For speaker initialization use bsp_audio_codec_speaker_init() which is inside initialize I2S with bsp_audio_init().
* For microphone initialization use bsp_audio_codec_microphone_init() which is inside initialize I2S with bsp_audio_init().
* After speaker or microphone initialization, use functions from esp_codec_dev for play/record audio.
* Example audio play:
* \code{.c}
* esp_codec_dev_set_out_vol(spk_codec_dev, DEFAULT_VOLUME);
* esp_codec_dev_open(spk_codec_dev, &fs);
* esp_codec_dev_write(spk_codec_dev, wav_bytes, bytes_read_from_spiffs);
* esp_codec_dev_close(spk_codec_dev);
* \endcode
**************************************************************************************************/
/**
* @brief Init audio
*
* @note There is no deinit audio function. Users can free audio resources by calling i2s_del_channel()
* @warning The type of i2s_config param is depending on IDF version.
* @param[in] i2s_config I2S configuration. Pass NULL to use default values (Mono, duplex, 16bit, 22050 Hz)
* @return
* - ESP_OK On success
* - ESP_ERR_NOT_SUPPORTED The communication mode is not supported on the current chip
* - ESP_ERR_INVALID_ARG NULL pointer or invalid configuration
* - ESP_ERR_NOT_FOUND No available I2S channel found
* - ESP_ERR_NO_MEM No memory for storing the channel information
* - ESP_ERR_INVALID_STATE This channel has not initialized or already started
*/
esp_err_t bsp_audio_init(const i2s_std_config_t *i2s_config);
/**
* @brief Initialize speaker codec device
*
* @return Pointer to codec device handle or NULL when error occurred
*/
esp_codec_dev_handle_t bsp_audio_codec_speaker_init(void);
/**
* @brief Initialize microphone codec device
*
* @return Pointer to codec device handle or NULL when error occurred
*/
esp_codec_dev_handle_t bsp_audio_codec_microphone_init(void);
/**************************************************************************************************
*
* SPIFFS
*
* After mounting the SPIFFS, it can be accessed with stdio functions ie.:
* \code{.c}
* FILE* f = fopen(BSP_SPIFFS_MOUNT_POINT"/hello.txt", "w");
* fprintf(f, "Hello World!\n");
* fclose(f);
* \endcode
**************************************************************************************************/
#define BSP_SPIFFS_MOUNT_POINT CONFIG_BSP_SPIFFS_MOUNT_POINT
/**
* @brief Mount SPIFFS to virtual file system
*
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if esp_vfs_spiffs_register was already called
* - ESP_ERR_NO_MEM if memory can not be allocated
* - ESP_FAIL if partition can not be mounted
* - other error codes
*/
esp_err_t bsp_spiffs_mount(void);
/**
* @brief Unmount SPIFFS from virtual file system
*
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if already unmounted
*/
esp_err_t bsp_spiffs_unmount(void);
/**************************************************************************************************
*
* uSD card
*
* After mounting the uSD card, it can be accessed with stdio functions ie.:
* \code{.c}
* FILE* f = fopen(BSP_MOUNT_POINT"/hello.txt", "w");
* fprintf(f, "Hello %s!\n", bsp_sdcard->cid.name);
* fclose(f);
* \endcode
**************************************************************************************************/
#define BSP_SD_MOUNT_POINT CONFIG_BSP_SD_MOUNT_POINT
extern sdmmc_card_t *bsp_sdcard;
/**
* @brief Mount microSD card to virtual file system
*
* @return
* - ESP_OK on success
* - ESP_ERR_INVALID_STATE if esp_vfs_fat_sdmmc_mount was already called
* - ESP_ERR_NO_MEM if memory cannot be allocated
* - ESP_FAIL if partition cannot be mounted
* - other error codes from SDMMC or SPI drivers, SDMMC protocol, or FATFS drivers
*/
esp_err_t bsp_sdcard_mount(void);
/**
* @brief Unmount microSD card from virtual file system
*
* @return
* - ESP_OK on success
* - ESP_ERR_NOT_FOUND if the partition table does not contain FATFS partition with given label
* - ESP_ERR_INVALID_STATE if esp_vfs_fat_spiflash_mount was already called
* - ESP_ERR_NO_MEM if memory can not be allocated
* - ESP_FAIL if partition can not be mounted
* - other error codes from wear levelling library, SPI flash driver, or FATFS drivers
*/
esp_err_t bsp_sdcard_unmount(void);
/**
* @brief Init IO expander chip TCA9554
*
* @note If the device was already initialized, users can also use it to get handle.
* @note This function will be called in `bsp_display_start()` when using LCD sub-board 2 with the resolution of 480x480.
* @note This function will be called in `bsp_audio_init()`.
*
* @return Pointer to device handle or NULL when error occurred
*/
esp_io_expander_handle_t bsp_io_expander_init(void);
/**************************************************************************************************
*
* LCD interface
*
* LVGL is used as graphics library. LVGL is NOT thread safe, therefore the user must take LVGL mutex
* by calling bsp_display_lock() before calling any LVGL API (lv_...) and then give the mutex with
* bsp_display_unlock().
*
* If you want to use the display without LVGL, see bsp/display.h API and use BSP version with 'noglib' suffix.
**************************************************************************************************/
#define BSP_LCD_SPI_NUM (SPI2_HOST)
#if (BSP_CONFIG_NO_GRAPHIC_LIB == 0)
#define BSP_LCD_DRAW_BUFF_SIZE (BSP_LCD_H_RES * CONFIG_BSP_LCD_RGB_BOUNCE_BUFFER_HEIGHT)
#define BSP_LCD_DRAW_BUFF_DOUBLE (0)
/**
* @brief BSP display configuration structure
*/
typedef struct {
lvgl_port_cfg_t lvgl_port_cfg; /*!< LVGL port configuration */
uint32_t buffer_size; /*!< Size of the buffer for the screen in pixels */
uint32_t trans_size;
bool double_buffer; /*!< True, if should be allocated two buffers */
struct {
unsigned int buff_dma: 1; /*!< Allocated LVGL buffer will be DMA capable */
unsigned int buff_spiram: 1; /*!< Allocated LVGL buffer will be in PSRAM */
} flags;
} bsp_display_cfg_t;
/**
* @brief Initialize display
*
* This function initializes SPI, display controller and starts LVGL handling task.
*
* @return Pointer to LVGL display or NULL when error occurred
*/
lv_display_t *bsp_display_start(void);
/**
* @brief Initialize display
*
* This function initializes SPI, display controller and starts LVGL handling task.
* LCD backlight must be enabled separately by calling bsp_display_brightness_set()
*
* @param cfg display configuration
*
* @return Pointer to LVGL display or NULL when error occurred
*/
lv_display_t *bsp_display_start_with_config(const bsp_display_cfg_t *cfg);
/**
* @brief Get pointer to input device (touch, buttons, ...)
*
* @note The LVGL input device is initialized in bsp_display_start() function.
*
* @return Pointer to LVGL input device or NULL when not initialized
*/
lv_indev_t *bsp_display_get_input_dev(void);
/**
* @brief Take LVGL mutex
*
* @param timeout_ms Timeout in [ms]. 0 will block indefinitely.
* @return true Mutex was taken
* @return false Mutex was NOT taken
*/
bool bsp_display_lock(uint32_t timeout_ms);
/**
* @brief Give LVGL mutex
*
*/
void bsp_display_unlock(void);
/**
* @brief Rotate screen
*
* Display must be already initialized by calling bsp_display_start()
*
* @param[in] disp Pointer to LVGL display
* @param[in] rotation Angle of the display rotation
*/
void bsp_display_rotate(lv_display_t *disp, lv_disp_rotation_t rotation);
#endif // BSP_CONFIG_NO_GRAPHIC_LIB == 0
#ifdef __cplusplus
}
#endif
| 11,158 | esp32_s3_touch_amoled_1_75 | h | en | c | code | {"qsc_code_num_words": 1467, "qsc_code_num_chars": 11158.0, "qsc_code_mean_word_length": 4.45194274, "qsc_code_frac_words_unique": 0.24130879, "qsc_code_frac_chars_top_2grams": 0.04960955, "qsc_code_frac_chars_top_3grams": 0.02388608, "qsc_code_frac_chars_top_4grams": 0.01224927, "qsc_code_frac_chars_dupe_5grams": 0.32552442, "qsc_code_frac_chars_dupe_6grams": 0.28602052, "qsc_code_frac_chars_dupe_7grams": 0.25769407, "qsc_code_frac_chars_dupe_8grams": 0.24605727, "qsc_code_frac_chars_dupe_9grams": 0.20134742, "qsc_code_frac_chars_dupe_10grams": 0.20134742, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01486989, "qsc_code_frac_chars_whitespace": 0.18031905, "qsc_code_size_file_byte": 11158.0, "qsc_code_num_lines": 337.0, "qsc_code_num_chars_line_max": 125.0, "qsc_code_num_chars_line_mean": 33.10979228, "qsc_code_frac_chars_alphabet": 0.69921277, "qsc_code_frac_chars_comments": 0.7014698, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.05813953, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.04953467, "qsc_code_frac_chars_long_word_length": 0.00750525, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codec_frac_lines_func_ratio": 0.20930233, "qsc_codec_cate_bitsstdc": 0.0, "qsc_codec_nums_lines_main": 0, "qsc_codec_frac_lines_goto": 0.0, "qsc_codec_cate_var_zero": 0.0, "qsc_codec_score_lines_no_logic": 0.34883721, "qsc_codec_frac_lines_print": 0.0, "qsc_codec_frac_lines_preprocessor_directives": null} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codec_frac_lines_func_ratio": 1, "qsc_codec_nums_lines_main": 0, "qsc_codec_score_lines_no_logic": 0, "qsc_codec_frac_lines_preprocessor_directives": 0, "qsc_codec_frac_lines_print": 0} |
0015/map_tiles_projects | waveshare_esp32_s3_touch_amoled_1_75/components/esp32_s3_touch_amoled_1_75/include/bsp/display.h |
#pragma once
#include "esp_lcd_types.h"
/* LCD color formats */
#define ESP_LCD_COLOR_FORMAT_RGB565 (1)
#define ESP_LCD_COLOR_FORMAT_RGB888 (2)
/* LCD display color format */
#define BSP_LCD_COLOR_FORMAT (ESP_LCD_COLOR_FORMAT_RGB565)
/* LCD display color bytes endianess */
#define BSP_LCD_BIGENDIAN (0)
/* LCD display color bits */
#define BSP_LCD_BITS_PER_PIXEL (16)
/* LCD display color space */
#define BSP_LCD_COLOR_SPACE (ESP_LCD_COLOR_SPACE_RGB)
/* LCD display definition */
#define BSP_LCD_H_RES (466)
#define BSP_LCD_V_RES (466)
#ifdef __cplusplus
extern "C" {
#endif
/**
* @brief BSP display configuration structure
*
*/
typedef struct {
int max_transfer_sz; /*!< Maximum transfer size, in bytes. */
} bsp_display_config_t;
/**
* @brief Create new display panel
*
* For maximum flexibility, this function performs only reset and initialization of the display.
* You must turn on the display explicitly by calling esp_lcd_panel_disp_on_off().
* The display's backlight is not turned on either. You can use bsp_display_backlight_on/off(),
* bsp_display_brightness_set() (on supported boards) or implement your own backlight control.
*
* If you want to free resources allocated by this function, you can use esp_lcd API, ie.:
*
* \code{.c}
* esp_lcd_panel_del(panel);
* esp_lcd_panel_io_del(io);
* spi_bus_free(spi_num_from_configuration);
* \endcode
*
* @param[in] config display configuration
* @param[out] ret_panel esp_lcd panel handle
* @param[out] ret_io esp_lcd IO handle
* @return
* - ESP_OK On success
* - Else esp_lcd failure
*/
esp_err_t bsp_display_new(const bsp_display_config_t *config, esp_lcd_panel_handle_t *ret_panel, esp_lcd_panel_io_handle_t *ret_io);
/**
* @brief Initialize display's brightness
*
* Brightness is controlled with PWM signal to a pin controlling backlight.
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t bsp_display_brightness_init(void);
/**
* @brief Set display's brightness
*
* Brightness is controlled with PWM signal to a pin controlling backlight.
* Brightness must be already initialized by calling bsp_display_brightness_init() or bsp_display_new()
*
* @param[in] brightness_percent Brightness in [%]
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t bsp_display_brightness_set(int brightness_percent);
/**
* @brief Turn on display backlight
*
* Brightness is controlled with PWM signal to a pin controlling backlight.
* Brightness must be already initialized by calling bsp_display_brightness_init() or bsp_display_new()
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t bsp_display_backlight_on(void);
/**
* @brief Turn off display backlight
*
* Brightness is controlled with PWM signal to a pin controlling backlight.
* Brightness must be already initialized by calling bsp_display_brightness_init() or bsp_display_new()
*
* @return
* - ESP_OK On success
* - ESP_ERR_INVALID_ARG Parameter error
*/
esp_err_t bsp_display_backlight_off(void);
#ifdef __cplusplus
}
#endif
| 3,321 | display | h | en | c | code | {"qsc_code_num_words": 467, "qsc_code_num_chars": 3321.0, "qsc_code_mean_word_length": 4.75588865, "qsc_code_frac_words_unique": 0.28907923, "qsc_code_frac_chars_top_2grams": 0.07203962, "qsc_code_frac_chars_top_3grams": 0.03241783, "qsc_code_frac_chars_top_4grams": 0.0292661, "qsc_code_frac_chars_dupe_5grams": 0.46555606, "qsc_code_frac_chars_dupe_6grams": 0.38901396, "qsc_code_frac_chars_dupe_7grams": 0.38901396, "qsc_code_frac_chars_dupe_8grams": 0.38901396, "qsc_code_frac_chars_dupe_9grams": 0.38901396, "qsc_code_frac_chars_dupe_10grams": 0.38901396, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0075959, "qsc_code_frac_chars_whitespace": 0.20716652, "qsc_code_size_file_byte": 3321.0, "qsc_code_num_lines": 109.0, "qsc_code_num_chars_line_max": 133.0, "qsc_code_num_chars_line_mean": 30.46788991, "qsc_code_frac_chars_alphabet": 0.8359286, "qsc_code_frac_chars_comments": 0.72809395, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.16666667, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01775805, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codec_frac_lines_func_ratio": 0.20833333, "qsc_codec_cate_bitsstdc": 0.0, "qsc_codec_nums_lines_main": 0, "qsc_codec_frac_lines_goto": 0.0, "qsc_codec_cate_var_zero": 0.0, "qsc_codec_score_lines_no_logic": 0.29166667, "qsc_codec_frac_lines_print": 0.0, "qsc_codec_frac_lines_preprocessor_directives": null} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codec_frac_lines_func_ratio": 1, "qsc_codec_nums_lines_main": 0, "qsc_codec_score_lines_no_logic": 0, "qsc_codec_frac_lines_preprocessor_directives": 0, "qsc_codec_frac_lines_print": 0} |
0015/map_tiles_projects | shared_components/simple_map/simple_map.hpp | #pragma once
#include "lvgl.h"
#include "map_tiles.h"
class SimpleMap {
public:
// Initialize the simple map system
static bool init(lv_obj_t* parent_screen);
// Display map at specific coordinates
static void show_location(double latitude, double longitude, int zoom_level = 18);
// Update location (for moving GPS)
static void update_location(double latitude, double longitude);
// Toggle between map and satellite view
static void set_satellite_view(bool satellite);
// Set specific tile type (0 = tiles1, 1 = tiles2, etc.)
static bool set_tile_type(int tile_type);
// Get current tile type
static int get_tile_type();
// Get available tile type count
static int get_tile_type_count();
// Get tile type folder name
static const char* get_tile_type_folder(int tile_type);
// Center map on current GPS coordinates with pixel precision
static void center_map_on_gps();
// Change zoom level and reload map tiles
static void change_zoom_level(int new_zoom);
// Get current GPS coordinates (latitude, longitude) at center of screen
static void get_current_location(double* latitude, double* longitude);
// Get current zoom level
static int get_current_zoom();
// Cleanup
static void cleanup();
private:
static lv_obj_t* map_container;
static lv_obj_t* map_group;
static lv_obj_t** tile_widgets;
static int grid_cols, grid_rows, tile_count; // Cache grid dimensions
static lv_obj_t* input_panel;
static lv_obj_t* lat_textarea;
static lv_obj_t* lon_textarea;
static lv_obj_t* zoom_slider;
static lv_obj_t* zoom_label;
static lv_obj_t* update_button;
static lv_obj_t* keyboard;
static lv_obj_t* loading_popup;
static double current_lat;
static double current_lon;
static int current_zoom;
static bool initialized;
static bool is_loading; // Flag to prevent multiple simultaneous loads
static uint32_t last_scroll_time; // Timestamp of last scroll event
static uint32_t last_gps_update_time; // Timestamp of last GPS update
static map_tiles_handle_t map_handle;
// Helper functions
static void load_map_tiles();
static void create_tile_widgets();
static void map_scroll_event_cb(lv_event_t *e);
static void create_input_panel(lv_obj_t* parent_screen);
static void zoom_slider_event_cb(lv_event_t *e);
static void textarea_event_cb(lv_event_t *e);
static void update_button_event_cb(lv_event_t *e);
static void update_zoom_label();
static void show_loading_popup();
static void hide_loading_popup();
static void update_current_gps_from_map_center();
}; | 2,748 | simple_map | hpp | en | cpp | code | {"qsc_code_num_words": 398, "qsc_code_num_chars": 2748.0, "qsc_code_mean_word_length": 4.66582915, "qsc_code_frac_words_unique": 0.28643216, "qsc_code_frac_chars_top_2grams": 0.09693053, "qsc_code_frac_chars_top_3grams": 0.04200323, "qsc_code_frac_chars_top_4grams": 0.07108239, "qsc_code_frac_chars_dupe_5grams": 0.21163166, "qsc_code_frac_chars_dupe_6grams": 0.06246634, "qsc_code_frac_chars_dupe_7grams": 0.06246634, "qsc_code_frac_chars_dupe_8grams": 0.06246634, "qsc_code_frac_chars_dupe_9grams": 0.03446419, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00463177, "qsc_code_frac_chars_whitespace": 0.2143377, "qsc_code_size_file_byte": 2748.0, "qsc_code_num_lines": 81.0, "qsc_code_num_chars_line_max": 87.0, "qsc_code_num_chars_line_mean": 33.92592593, "qsc_code_frac_chars_alphabet": 0.85548865, "qsc_code_frac_chars_comments": 0.24308588, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.00816915, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codecpp_frac_lines_preprocessor_directives": null, "qsc_codecpp_frac_lines_func_ratio": 0.5106383, "qsc_codecpp_cate_bitsstdc": 0.0, "qsc_codecpp_nums_lines_main": 0.0, "qsc_codecpp_frac_lines_goto": 0.0, "qsc_codecpp_cate_var_zero": 0.0, "qsc_codecpp_score_lines_no_logic": 0.57446809, "qsc_codecpp_frac_lines_print": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codecpp_frac_lines_func_ratio": 1, "qsc_codecpp_nums_lines_main": 0, "qsc_codecpp_score_lines_no_logic": 1, "qsc_codecpp_frac_lines_preprocessor_directives": 0, "qsc_codecpp_frac_lines_print": 0} |
0015/map_tiles_projects | shared_components/simple_map/simple_map.cpp | #include "simple_map.hpp"
#include <stdio.h>
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "esp_timer.h"
// Static member definitions
lv_obj_t* SimpleMap::map_container = nullptr;
lv_obj_t* SimpleMap::map_group = nullptr;
lv_obj_t** SimpleMap::tile_widgets = nullptr;
int SimpleMap::grid_cols = 0;
int SimpleMap::grid_rows = 0;
int SimpleMap::tile_count = 0;
lv_obj_t* SimpleMap::input_panel = nullptr;
lv_obj_t* SimpleMap::lat_textarea = nullptr;
lv_obj_t* SimpleMap::lon_textarea = nullptr;
lv_obj_t* SimpleMap::zoom_slider = nullptr;
lv_obj_t* SimpleMap::zoom_label = nullptr;
lv_obj_t* SimpleMap::update_button = nullptr;
lv_obj_t* SimpleMap::keyboard = nullptr;
lv_obj_t* SimpleMap::loading_popup = nullptr;
double SimpleMap::current_lat = 0.0;
double SimpleMap::current_lon = 0.0;
int SimpleMap::current_zoom = 15;
bool SimpleMap::initialized = false;
bool SimpleMap::is_loading = false;
uint32_t SimpleMap::last_scroll_time = 0;
uint32_t SimpleMap::last_gps_update_time = 0;
map_tiles_handle_t SimpleMap::map_handle = nullptr;
bool SimpleMap::init(lv_obj_t* parent_screen) {
if (initialized) return true;
// Initialize the map tiles component
map_tiles_config_t config = {
.base_path = "/sdcard",
.tile_folders = {"tiles1"},
.tile_type_count = 1,
.grid_cols = MAP_TILES_DEFAULT_GRID_COLS,
.grid_rows = MAP_TILES_DEFAULT_GRID_ROWS,
.default_zoom = 18,
.use_spiram = true,
.default_tile_type = 0 // Start with tiles1
};
map_handle = map_tiles_init(&config);
if (!map_handle) {
printf("SimpleMap: Failed to initialize map tiles component\n");
return false;
}
// Cache grid dimensions for performance
map_tiles_get_grid_size(map_handle, &grid_cols, &grid_rows);
tile_count = map_tiles_get_tile_count(map_handle);
printf("SimpleMap: Initialized with grid size %dx%d (%d tiles)\n", grid_cols, grid_rows, tile_count);
lv_display_t *disp = lv_display_get_default();
lv_coord_t _width = lv_display_get_horizontal_resolution(disp);
lv_coord_t _height = lv_display_get_vertical_resolution(disp);
// Create scrollable map container (like map_scroll in map_display.cpp)
map_container = lv_obj_create(parent_screen);
lv_obj_set_size(map_container, _width, _height); // Match device resolution
lv_obj_center(map_container);
lv_obj_clear_flag(map_container, LV_OBJ_FLAG_SCROLL_MOMENTUM);
lv_obj_set_scroll_dir(map_container, LV_DIR_ALL);
lv_obj_add_flag(map_container, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_set_style_border_width(map_container, 0, 0);
lv_obj_set_style_radius(map_container, 0, 0);
lv_obj_add_event_cb(map_container, map_scroll_event_cb, LV_EVENT_SCROLL_END, NULL);
lv_obj_add_event_cb(map_container, map_scroll_event_cb, LV_EVENT_SCROLL, NULL);
lv_obj_set_style_bg_color(map_container, lv_color_black(), 0);
lv_obj_set_scrollbar_mode(map_container, LV_SCROLLBAR_MODE_OFF);
// Create tile widgets
create_tile_widgets();
// Create input panel
create_input_panel(parent_screen);
initialized = true;
return true;
}
void SimpleMap::create_tile_widgets() {
// Use cached grid dimensions for better performance
if (grid_cols <= 0 || grid_rows <= 0 || tile_count <= 0) {
printf("SimpleMap: Invalid grid dimensions cached\n");
return;
}
// Allocate tile_widgets array if not already done
if (!tile_widgets) {
tile_widgets = (lv_obj_t**)calloc(tile_count, sizeof(lv_obj_t*));
if (!tile_widgets) {
printf("Failed to allocate tile_widgets array\n");
return;
}
}
// Create map group with full tile dimensions (like map_display.cpp)
if (!map_group) {
map_group = lv_obj_create(map_container);
lv_obj_set_size(map_group, MAP_TILES_TILE_SIZE * grid_cols, MAP_TILES_TILE_SIZE * grid_rows);
lv_obj_set_style_pad_all(map_group, 0, 0);
lv_obj_set_style_border_width(map_group, 0, 0);
lv_obj_clear_flag(map_group, LV_OBJ_FLAG_SCROLLABLE);
lv_obj_set_pos(map_group, 0, 0);
// Create grid of image widgets for tiles
for (int i = 0; i < tile_count; i++) {
tile_widgets[i] = lv_image_create(map_group);
int row = i / grid_cols;
int col = i % grid_cols;
// Position using full TILE_SIZE (like map_display.cpp)
lv_obj_set_pos(tile_widgets[i], col * MAP_TILES_TILE_SIZE, row * MAP_TILES_TILE_SIZE);
lv_obj_set_size(tile_widgets[i], MAP_TILES_TILE_SIZE, MAP_TILES_TILE_SIZE);
// Set default background while tiles load
lv_obj_set_style_bg_color(tile_widgets[i], lv_color_make(200, 200, 200), 0);
lv_obj_set_style_bg_opa(tile_widgets[i], LV_OPA_COVER, 0);
}
}
}
void SimpleMap::show_location(double latitude, double longitude, int zoom_level) {
if (!initialized || !map_handle) return;
// Update current position and zoom
current_lat = latitude;
current_lon = longitude;
current_zoom = zoom_level;
// Set zoom level in the component
map_tiles_set_zoom(map_handle, zoom_level);
// Update input panel widgets
if (lat_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", latitude);
lv_textarea_set_text(lat_textarea, buf);
}
if (lon_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", longitude);
lv_textarea_set_text(lon_textarea, buf);
}
if (zoom_slider) {
lv_slider_set_value(zoom_slider, zoom_level, LV_ANIM_OFF);
}
// Update zoom label
update_zoom_label();
// Set the tile center based on GPS coordinates
map_tiles_set_center_from_gps(map_handle, latitude, longitude);
load_map_tiles();
}
void SimpleMap::update_location(double latitude, double longitude) {
show_location(latitude, longitude, current_zoom);
}
void SimpleMap::set_satellite_view(bool satellite) {
if (!initialized || !map_handle) return;
// Convert boolean to tile type (0 = regular, 1 = satellite)
int tile_type = satellite ? 1 : 0;
// Set tile type in the component
if (map_tiles_set_tile_type(map_handle, tile_type)) {
// Reload tiles with the new tile type
load_map_tiles();
}
}
bool SimpleMap::set_tile_type(int tile_type) {
if (!initialized || !map_handle) return false;
// Set tile type in the component
if (map_tiles_set_tile_type(map_handle, tile_type)) {
// Reload tiles with the new tile type
load_map_tiles();
return true;
}
return false;
}
int SimpleMap::get_tile_type() {
if (!initialized || !map_handle) return -1;
return map_tiles_get_tile_type(map_handle);
}
int SimpleMap::get_tile_type_count() {
if (!initialized || !map_handle) return 0;
return map_tiles_get_tile_type_count(map_handle);
}
const char* SimpleMap::get_tile_type_folder(int tile_type) {
if (!initialized || !map_handle) return nullptr;
return map_tiles_get_tile_type_folder(map_handle, tile_type);
}
void SimpleMap::load_map_tiles() {
if (!initialized || !map_handle) return;
// Check if already loading to prevent multiple simultaneous loads
if (is_loading) {
printf("SimpleMap: Already loading, skipping...\n");
return;
}
is_loading = true;
printf("SimpleMap: Starting tile loading...\n");
// Show loading popup
show_loading_popup();
// Use a single-shot timer with longer delay to reduce CPU pressure
lv_timer_create([](lv_timer_t *t) {
lv_timer_del(t); // Delete this timer immediately
uint32_t start_time = esp_timer_get_time() / 1000;
// Get current tile position
int tx, ty;
map_tiles_get_position(map_handle, &tx, &ty);
printf("SimpleMap: Loading %dx%d grid at position (%d,%d) at zoom %d\n",
grid_cols, grid_rows, tx, ty, map_tiles_get_zoom(map_handle));
// Disable automatic invalidation during bulk updates
lv_obj_add_flag(map_group, LV_OBJ_FLAG_HIDDEN);
// Load grid of tiles - minimize style changes
for (int row = 0; row < grid_rows; row++) {
for (int col = 0; col < grid_cols; col++) {
int index = row * grid_cols + col;
int tile_x = tx + col;
int tile_y = ty + row;
// Load tile from SD card
bool loaded = map_tiles_load_tile(map_handle, index, tile_x, tile_y);
if (loaded) {
// Get the tile image data and set it
lv_image_dsc_t* tile_img = map_tiles_get_image(map_handle, index);
if (tile_img && tile_img->data) {
lv_image_set_src(tile_widgets[index], (const void *)tile_img);
// Only clear background if we have valid image
lv_obj_set_style_bg_opa(tile_widgets[index], LV_OPA_TRANSP, 0);
}
}
}
}
// Re-enable visibility and trigger single invalidation
lv_obj_clear_flag(map_group, LV_OBJ_FLAG_HIDDEN);
lv_obj_invalidate(map_group); // Single invalidation instead of continuous ones
uint32_t end_time = esp_timer_get_time() / 1000;
printf("SimpleMap: Tile loading completed in %lu ms\n", end_time - start_time);
// Hide loading popup
hide_loading_popup();
// Clear loading flag
is_loading = false;
}, 50, NULL); // Increased delay to reduce CPU pressure
}
void SimpleMap::map_scroll_event_cb(lv_event_t *e)
{
if (!initialized || !map_handle) return;
lv_event_code_t event_code = lv_event_get_code(e);
// Handle real-time GPS coordinate updates during scrolling
if (event_code == LV_EVENT_SCROLL) {
uint32_t current_time = esp_timer_get_time() / 1000;
if (current_time - last_gps_update_time >= 50) {
update_current_gps_from_map_center();
last_gps_update_time = current_time;
}
return;
}
// Handle tile loading when scroll ends
if (event_code == LV_EVENT_SCROLL_END) {
// Don't process scroll events if already loading
if (is_loading) {
return;
}
// Add debouncing - ignore rapid scroll events
uint32_t current_time = esp_timer_get_time() / 1000;
if (current_time - last_scroll_time < 100) { // 100ms debounce
return;
}
last_scroll_time = current_time;
bool needUpdate = false;
int tile_x, tile_y;
map_tiles_get_position(map_handle, &tile_x, &tile_y);
if (lv_obj_get_scroll_left(map_container) < -90)
{
printf("SimpleMap: at_left\n");
tile_x -= 1;
needUpdate = true;
}
else if (lv_obj_get_scroll_top(map_container) < -90)
{
printf("SimpleMap: at_top\n");
tile_y -= 1;
needUpdate = true;
}
else if (lv_obj_get_scroll_right(map_container) < -90)
{
printf("SimpleMap: at_right\n");
tile_x += 1;
needUpdate = true;
}
else if (lv_obj_get_scroll_bottom(map_container) < -90)
{
printf("SimpleMap: at_bottom\n");
tile_y += 1;
needUpdate = true;
}
if (needUpdate) {
map_tiles_set_position(map_handle, tile_x, tile_y);
load_map_tiles();
}
// Update GPS coordinates from current center (whether tiles updated or not)
update_current_gps_from_map_center();
}
}
void SimpleMap::create_input_panel(lv_obj_t* parent_screen)
{
// Create input panel container - increased height for button
input_panel = lv_obj_create(parent_screen);
lv_obj_set_size(input_panel, 220, 180);
lv_obj_align(input_panel, LV_ALIGN_LEFT_MID, 20, 0);
lv_obj_set_style_bg_color(input_panel, lv_color_black(), 0);
lv_obj_set_style_bg_opa(input_panel, LV_OPA_30, 0);
lv_obj_set_style_border_width(input_panel, 1, 0);
lv_obj_set_style_border_color(input_panel, lv_color_white(), 0);
lv_obj_set_style_radius(input_panel, 5, 0);
lv_obj_set_style_pad_all(input_panel, 8, 0);
// Create latitude label and textarea
lv_obj_t* lat_label = lv_label_create(input_panel);
lv_label_set_text(lat_label, "Latitude:");
lv_obj_set_style_text_color(lat_label, lv_color_white(), 0);
lv_obj_align(lat_label, LV_ALIGN_TOP_LEFT, 0, 10);
lat_textarea = lv_textarea_create(input_panel);
lv_obj_set_size(lat_textarea, 110, 25);
lv_obj_align(lat_textarea, LV_ALIGN_TOP_RIGHT, 0, 0);
lv_textarea_set_one_line(lat_textarea, true);
lv_textarea_set_text(lat_textarea, "0.000000");
lv_obj_add_event_cb(lat_textarea, textarea_event_cb, LV_EVENT_FOCUSED, NULL);
lv_obj_add_event_cb(lat_textarea, textarea_event_cb, LV_EVENT_DEFOCUSED, NULL);
lv_obj_add_event_cb(lat_textarea, textarea_event_cb, LV_EVENT_READY, NULL);
lv_obj_set_style_anim_time(lat_textarea, 0, LV_PART_CURSOR);
// Create longitude label and textarea
lv_obj_t* lon_label = lv_label_create(input_panel);
lv_label_set_text(lon_label, "Longitude:");
lv_obj_set_style_text_color(lon_label, lv_color_white(), 0);
lv_obj_align_to(lon_label, lat_label, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 30);
lon_textarea = lv_textarea_create(input_panel);
lv_obj_set_size(lon_textarea, 110, 25);
lv_obj_align_to(lon_textarea, lat_textarea, LV_ALIGN_OUT_BOTTOM_MID, 0, 10);
lv_textarea_set_one_line(lon_textarea, true);
lv_textarea_set_text(lon_textarea, "0.000000");
lv_obj_add_event_cb(lon_textarea, textarea_event_cb, LV_EVENT_FOCUSED, NULL);
lv_obj_add_event_cb(lon_textarea, textarea_event_cb, LV_EVENT_DEFOCUSED, NULL);
lv_obj_add_event_cb(lon_textarea, textarea_event_cb, LV_EVENT_READY, NULL);
lv_obj_set_style_anim_time(lon_textarea, 0, LV_PART_CURSOR);
// Create zoom label and slider
zoom_label = lv_label_create(input_panel);
lv_label_set_text_fmt(zoom_label, "Zoom: (%d)", current_zoom);
lv_obj_set_style_text_color(zoom_label, lv_color_white(), 0);
lv_obj_align_to(zoom_label, lon_label, LV_ALIGN_OUT_BOTTOM_LEFT, 0, 20);
zoom_slider = lv_slider_create(input_panel);
lv_obj_set_size(zoom_slider, 100, 10);
lv_obj_align_to(zoom_slider, lon_textarea, LV_ALIGN_OUT_BOTTOM_MID, 0, 10);
lv_slider_set_range(zoom_slider, 10, 19);
lv_slider_set_value(zoom_slider, current_zoom, LV_ANIM_OFF);
lv_obj_add_event_cb(zoom_slider, zoom_slider_event_cb, LV_EVENT_VALUE_CHANGED, NULL);
// Create update button
update_button = lv_btn_create(input_panel);
lv_obj_set_size(update_button, 150, 30);
lv_obj_align(update_button, LV_ALIGN_BOTTOM_MID, 0, -10);
lv_obj_add_event_cb(update_button, update_button_event_cb, LV_EVENT_CLICKED, NULL);
// Button styling
lv_obj_set_style_bg_color(update_button, lv_palette_main(LV_PALETTE_BLUE), 0);
lv_obj_set_style_bg_opa(update_button, LV_OPA_COVER, 0);
// Button label
lv_obj_t* btn_label = lv_label_create(update_button);
lv_label_set_text(btn_label, "Update Map");
lv_obj_set_style_text_color(btn_label, lv_color_white(), 0);
lv_obj_center(btn_label);
// Create keyboard (initially hidden)
keyboard = lv_keyboard_create(lv_screen_active());
lv_obj_set_size(keyboard, LV_HOR_RES, LV_VER_RES / 2);
lv_obj_align(keyboard, LV_ALIGN_BOTTOM_MID, 0, 0);
lv_keyboard_set_mode(keyboard, LV_KEYBOARD_MODE_NUMBER); // Set to number layout
lv_obj_add_flag(keyboard, LV_OBJ_FLAG_HIDDEN); // Start hidden
}
void SimpleMap::zoom_slider_event_cb(lv_event_t *e)
{
lv_obj_t* slider = (lv_obj_t*) lv_event_get_target(e);
int selected_zoom = lv_slider_get_value(slider);
// Update zoom label to show the selected value (not yet applied)
if (zoom_label) {
int component_zoom = map_tiles_get_zoom(map_handle);
if (selected_zoom != component_zoom) {
// Show that this is a selected but not yet applied zoom level
lv_label_set_text_fmt(zoom_label, "Zoom: (%d*)", selected_zoom);
} else {
// Show that this zoom level is currently applied
lv_label_set_text_fmt(zoom_label, "Zoom: (%d)", selected_zoom);
}
}
printf("SimpleMap: Zoom slider changed to %d (use Update button to apply)\n", selected_zoom);
}
void SimpleMap::update_zoom_label()
{
if (zoom_label) {
// Show the actual applied zoom level (no asterisk means it's applied)
lv_label_set_text_fmt(zoom_label, "Zoom: (%d)", current_zoom);
}
}
void SimpleMap::textarea_event_cb(lv_event_t *e)
{
lv_event_code_t code = lv_event_get_code(e);
lv_obj_t* textarea = (lv_obj_t*)lv_event_get_target(e);
if (code == LV_EVENT_FOCUSED) {
// Show keyboard when textarea is focused
if (keyboard) {
lv_keyboard_set_textarea(keyboard, textarea);
lv_obj_clear_flag(keyboard, LV_OBJ_FLAG_HIDDEN);
lv_obj_move_foreground(keyboard);
printf("SimpleMap: Keyboard shown for textarea\n");
}
}
else if (code == LV_EVENT_DEFOCUSED) {
// Hide keyboard when textarea loses focus
if (keyboard) {
lv_obj_add_flag(keyboard, LV_OBJ_FLAG_HIDDEN);
printf("SimpleMap: Keyboard hidden\n");
}
// Validate and update coordinates when focus is lost
const char* text = lv_textarea_get_text(textarea);
if (textarea == lat_textarea) {
double lat_val = atof(text);
if (lat_val >= -90.0 && lat_val <= 90.0) {
current_lat = lat_val;
printf("SimpleMap: Latitude updated to %f\n", lat_val);
}
} else if (textarea == lon_textarea) {
double lon_val = atof(text);
if (lon_val >= -180.0 && lon_val <= 180.0) {
current_lon = lon_val;
printf("SimpleMap: Longitude updated to %f\n", lon_val);
}
}
}
else if (code == LV_EVENT_READY) {
// Handle keyboard ready event (when user presses Enter or Done)
if (keyboard) {
lv_obj_add_flag(keyboard, LV_OBJ_FLAG_HIDDEN);
printf("SimpleMap: Keyboard hidden via READY event\n");
}
// Validate and update coordinates
const char* text = lv_textarea_get_text(textarea);
if (textarea == lat_textarea) {
double lat_val = atof(text);
if (lat_val >= -90.0 && lat_val <= 90.0) {
current_lat = lat_val;
printf("SimpleMap: Latitude ready: %f\n", lat_val);
}
} else if (textarea == lon_textarea) {
double lon_val = atof(text);
if (lon_val >= -180.0 && lon_val <= 180.0) {
current_lon = lon_val;
printf("SimpleMap: Longitude ready: %f\n", lon_val);
}
}
}
}
void SimpleMap::update_button_event_cb(lv_event_t *e)
{
printf("SimpleMap: Update button clicked\n");
// Get values from input fields
double new_lat = current_lat;
double new_lon = current_lon;
int new_zoom = current_zoom;
bool valid_input = true;
bool zoom_changed = false;
// Get latitude from textarea
if (lat_textarea) {
const char* lat_text = lv_textarea_get_text(lat_textarea);
double lat_val = atof(lat_text);
if (lat_val >= -90.0 && lat_val <= 90.0) {
new_lat = lat_val;
} else {
printf("SimpleMap: Invalid latitude: %s\n", lat_text);
valid_input = false;
}
}
// Get longitude from textarea
if (lon_textarea) {
const char* lon_text = lv_textarea_get_text(lon_textarea);
double lon_val = atof(lon_text);
if (lon_val >= -180.0 && lon_val <= 180.0) {
new_lon = lon_val;
} else {
printf("SimpleMap: Invalid longitude: %s\n", lon_text);
valid_input = false;
}
}
// Get zoom from slider
if (zoom_slider) {
int slider_zoom = lv_slider_get_value(zoom_slider);
// Check if zoom changed by comparing with the actual zoom level in the map tiles component
int component_zoom = map_tiles_get_zoom(map_handle);
if (slider_zoom != component_zoom) {
zoom_changed = true;
}
new_zoom = slider_zoom;
}
// Update map if all inputs are valid
if (valid_input) {
printf("SimpleMap: Updating map to lat=%.6f, lon=%.6f, zoom=%d\n", new_lat, new_lon, new_zoom);
// Update coordinates first
current_lat = new_lat;
current_lon = new_lon;
// Update input panel to show the new coordinates
if (lat_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", current_lat);
lv_textarea_set_text(lat_textarea, buf);
}
if (lon_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", current_lon);
lv_textarea_set_text(lon_textarea, buf);
}
if (zoom_changed) {
// Change zoom level and reload tiles
change_zoom_level(new_zoom);
} else {
// Just update the map position without changing zoom
map_tiles_set_center_from_gps(map_handle, new_lat, new_lon);
// Check if we need to load new tiles for the new position
if (!map_tiles_is_gps_within_tiles(map_handle, new_lat, new_lon)) {
load_map_tiles();
}
center_map_on_gps();
}
} else {
printf("SimpleMap: Invalid input - map not updated\n");
}
}
void SimpleMap::show_loading_popup()
{
if (loading_popup) return;
// Thin fullscreen overlay (light opacity)
loading_popup = lv_obj_create(lv_screen_active());
lv_obj_remove_style_all(loading_popup);
lv_obj_set_size(loading_popup, LV_PCT(100), LV_PCT(100));
lv_obj_set_style_bg_color(loading_popup, lv_color_black(), 0);
lv_obj_set_style_bg_opa(loading_popup, LV_OPA_40, 0); // lighter dim
lv_obj_set_style_border_width(loading_popup, 0, 0);
// Small pill card centered
lv_obj_t* card = lv_obj_create(loading_popup);
lv_obj_remove_style_all(card);
lv_obj_set_size(card, 170, 42);
lv_obj_center(card);
// Simple, high-contrast look (no shadow/gradient)
lv_obj_set_style_radius(card, 8, 0);
lv_obj_set_style_bg_color(card, lv_palette_main(LV_PALETTE_YELLOW), 0);
lv_obj_set_style_bg_opa(card, LV_OPA_90, 0);
lv_obj_set_style_border_width(card, 1, 0);
lv_obj_set_style_border_color(card, lv_palette_darken(LV_PALETTE_GREY, 2), 0);
lv_obj_set_style_pad_all(card, 8, 0);
// Single static label
lv_obj_t* label = lv_label_create(card);
lv_label_set_text(label, "Loading map...");
lv_obj_set_style_text_color(label, lv_color_black(), 0);
lv_obj_center(label);
lv_obj_move_foreground(loading_popup);
}
void SimpleMap::hide_loading_popup()
{
if (loading_popup) {
lv_obj_delete(loading_popup);
loading_popup = nullptr;
}
}
void SimpleMap::center_map_on_gps()
{
if (!initialized || !map_handle || !map_group || !map_container) {
printf("SimpleMap: Map not properly initialized for centering\n");
return;
}
// Convert current GPS coordinates to tile coordinates
double x, y;
map_tiles_gps_to_tile_xy(map_handle, current_lat, current_lon, &x, &y);
// Get current tile position (top-left of the 5x5 grid)
int tile_x, tile_y;
map_tiles_get_position(map_handle, &tile_x, &tile_y);
// Calculate absolute pixel position of GPS coordinates
int abs_px = (int)(x * MAP_TILES_TILE_SIZE);
int abs_py = (int)(y * MAP_TILES_TILE_SIZE);
// Calculate top-left pixel position of current tile grid
int top_left_px_x = tile_x * MAP_TILES_TILE_SIZE;
int top_left_px_y = tile_y * MAP_TILES_TILE_SIZE;
// Calculate scroll position to center GPS coordinates in the map container
int center_scroll_x = abs_px - top_left_px_x - lv_obj_get_width(map_container) / 2;
int center_scroll_y = abs_py - top_left_px_y - lv_obj_get_height(map_container) / 2;
// Apply the scroll to center the GPS coordinates
lv_obj_scroll_to(map_container, center_scroll_x, center_scroll_y, LV_ANIM_OFF);
printf("SimpleMap: Centered map on GPS %.6f, %.6f (scroll: %d, %d)\n",
current_lat, current_lon, center_scroll_x, center_scroll_y);
}
void SimpleMap::update_current_gps_from_map_center()
{
if (!initialized || !map_handle || !map_container) {
return;
}
// Get current scroll position
lv_coord_t scroll_x = lv_obj_get_scroll_x(map_container);
lv_coord_t scroll_y = lv_obj_get_scroll_y(map_container);
// Get screen center offset
lv_coord_t screen_center_x = lv_obj_get_width(map_container) / 2;
lv_coord_t screen_center_y = lv_obj_get_height(map_container) / 2;
// Calculate the center pixel position relative to the map
int center_pixel_x = scroll_x + screen_center_x;
int center_pixel_y = scroll_y + screen_center_y;
// Get current tile position (top-left of the grid)
int tile_x, tile_y;
map_tiles_get_position(map_handle, &tile_x, &tile_y);
// Calculate top-left pixel position of current tile grid
int top_left_px_x = tile_x * MAP_TILES_TILE_SIZE;
int top_left_px_y = tile_y * MAP_TILES_TILE_SIZE;
// Calculate absolute pixel position
int abs_pixel_x = top_left_px_x + center_pixel_x;
int abs_pixel_y = top_left_px_y + center_pixel_y;
// Convert absolute pixel position to tile coordinates
double tile_coord_x = (double)abs_pixel_x / MAP_TILES_TILE_SIZE;
double tile_coord_y = (double)abs_pixel_y / MAP_TILES_TILE_SIZE;
// Convert tile coordinates to GPS coordinates
double new_lat, new_lon;
map_tiles_tile_xy_to_gps(map_handle, tile_coord_x, tile_coord_y, &new_lat, &new_lon);
// Update current GPS coordinates
current_lat = new_lat;
current_lon = new_lon;
// Update input panel to show the new coordinates
if (lat_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", current_lat);
lv_textarea_set_text(lat_textarea, buf);
}
if (lon_textarea) {
char buf[32];
snprintf(buf, sizeof(buf), "%.6f", current_lon);
lv_textarea_set_text(lon_textarea, buf);
}
// GPS coordinates updated silently for better performance
}
void SimpleMap::change_zoom_level(int new_zoom) {
if (!initialized || !map_handle) {
printf("SimpleMap: Map not initialized, cannot change zoom\n");
return;
}
if (new_zoom == current_zoom) {
printf("SimpleMap: Zoom level already set to %d\n", new_zoom);
return;
}
printf("SimpleMap: Changing zoom from %d to %d\n", current_zoom, new_zoom);
// Set zoom level in the component first
map_tiles_set_zoom(map_handle, new_zoom);
// Update current zoom after setting it in the component
current_zoom = new_zoom;
// Update zoom slider to reflect the change
if (zoom_slider) {
lv_slider_set_value(zoom_slider, new_zoom, LV_ANIM_OFF);
}
// Update zoom label
update_zoom_label();
// Recalculate tile positions for the new zoom level centered on current GPS coordinates
map_tiles_set_center_from_gps(map_handle, current_lat, current_lon);
// Force reload all tiles for the new zoom level
load_map_tiles();
// Center the map view after tiles are loaded
lv_timer_create([](lv_timer_t *t) {
lv_timer_del(t);
center_map_on_gps();
printf("SimpleMap: Zoom change completed, map centered\n");
}, 200, NULL);
}
void SimpleMap::get_current_location(double* latitude, double* longitude) {
if (latitude) *latitude = current_lat;
if (longitude) *longitude = current_lon;
}
int SimpleMap::get_current_zoom() {
return current_zoom;
}
void SimpleMap::cleanup() {
if (map_container) {
lv_obj_delete(map_container);
map_container = nullptr;
}
if (input_panel) {
lv_obj_delete(input_panel);
input_panel = nullptr;
}
if (keyboard) {
lv_obj_delete(keyboard);
keyboard = nullptr;
}
if (loading_popup) {
lv_obj_delete(loading_popup);
loading_popup = nullptr;
}
map_group = nullptr; // Will be cleaned up when map_container is deleted
lat_textarea = nullptr;
lon_textarea = nullptr;
zoom_slider = nullptr;
zoom_label = nullptr;
update_button = nullptr;
// Clean up the map tiles component
if (map_handle) {
map_tiles_cleanup(map_handle);
map_handle = nullptr;
}
// Clean up tile widgets array
if (tile_widgets) {
free(tile_widgets);
tile_widgets = nullptr;
}
// Reset cached grid dimensions
grid_cols = 0;
grid_rows = 0;
tile_count = 0;
// Reset loading flag
is_loading = false;
last_scroll_time = 0;
last_gps_update_time = 0;
initialized = false;
} | 29,883 | simple_map | cpp | en | cpp | code | {"qsc_code_num_words": 4171, "qsc_code_num_chars": 29883.0, "qsc_code_mean_word_length": 4.30208583, "qsc_code_frac_words_unique": 0.09637977, "qsc_code_frac_chars_top_2grams": 0.03845296, "qsc_code_frac_chars_top_3grams": 0.02095408, "qsc_code_frac_chars_top_4grams": 0.02318324, "qsc_code_frac_chars_dupe_5grams": 0.46522514, "qsc_code_frac_chars_dupe_6grams": 0.38163174, "qsc_code_frac_chars_dupe_7grams": 0.2846634, "qsc_code_frac_chars_dupe_8grams": 0.25139322, "qsc_code_frac_chars_dupe_9grams": 0.22715114, "qsc_code_frac_chars_dupe_10grams": 0.19131743, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01336791, "qsc_code_frac_chars_whitespace": 0.25151424, "qsc_code_size_file_byte": 29883.0, "qsc_code_num_lines": 840.0, "qsc_code_num_chars_line_max": 106.0, "qsc_code_num_chars_line_mean": 35.575, "qsc_code_frac_chars_alphabet": 0.78888541, "qsc_code_frac_chars_comments": 0.15704581, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.22466216, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00337838, "qsc_code_frac_chars_string_length": 0.05811599, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codecpp_frac_lines_preprocessor_directives": 0.00844595, "qsc_codecpp_frac_lines_func_ratio": 0.00506757, "qsc_codecpp_cate_bitsstdc": 0.0, "qsc_codecpp_nums_lines_main": 0.0, "qsc_codecpp_frac_lines_goto": 0.0, "qsc_codecpp_cate_var_zero": 0.0, "qsc_codecpp_score_lines_no_logic": 0.03716216, "qsc_codecpp_frac_lines_print": 0.0625} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codecpp_frac_lines_func_ratio": 0, "qsc_codecpp_nums_lines_main": 0, "qsc_codecpp_score_lines_no_logic": 0, "qsc_codecpp_frac_lines_preprocessor_directives": 0, "qsc_codecpp_frac_lines_print": 0} |
0015/map_tiles_projects | espressif_esp32_p4_function_ev_board/main/main.cpp | /*
* SPDX-FileCopyrightText: 2025 Espressif Systems (Shanghai) CO LTD
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "nvs_flash.h"
#include "nvs.h"
#include "esp_log.h"
#include "esp_err.h"
#include "esp_check.h"
#include "esp_memory_utils.h"
#include "bsp/esp-bsp.h"
#include "bsp/display.h"
#include "bsp_board_extra.h"
#include "lvgl.h"
#include "simple_map.hpp"
extern "C" void app_main(void)
{
esp_err_t ret = nvs_flash_init();
if (ret == ESP_ERR_NVS_NO_FREE_PAGES || ret == ESP_ERR_NVS_NEW_VERSION_FOUND) {
ESP_ERROR_CHECK(nvs_flash_erase());
ret = nvs_flash_init();
}
ESP_ERROR_CHECK(ret);
bsp_i2c_init();
esp_err_t err = bsp_sdcard_mount();
if (err != ESP_OK) {
printf("Failed to mount SD card, error: %s\n", esp_err_to_name(err));
}
bsp_display_cfg_t cfg = {
.lvgl_port_cfg = ESP_LVGL_PORT_INIT_CONFIG(),
.buffer_size = BSP_LCD_DRAW_BUFF_SIZE,
.double_buffer = BSP_LCD_DRAW_BUFF_DOUBLE,
.flags = {
.buff_dma = true,
.buff_spiram = false,
.sw_rotate = false,
}
};
bsp_display_start_with_config(&cfg);
bsp_display_backlight_on();
bsp_display_lock(0);
// Initialize the simple map
if (!SimpleMap::init(lv_screen_active())) {
printf("Failed to initialize map\n");
return;
}
// Show a location (example coordinates)
SimpleMap::show_location( 37.77490, -122.41942, 16);
SimpleMap::center_map_on_gps();
bsp_display_unlock();
}
| 1,547 | main | cpp | en | cpp | code | {"qsc_code_num_words": 218, "qsc_code_num_chars": 1547.0, "qsc_code_mean_word_length": 4.20642202, "qsc_code_frac_words_unique": 0.46330275, "qsc_code_frac_chars_top_2grams": 0.087241, "qsc_code_frac_chars_top_3grams": 0.04798255, "qsc_code_frac_chars_top_4grams": 0.03271538, "qsc_code_frac_chars_dupe_5grams": 0.0, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02086811, "qsc_code_frac_chars_whitespace": 0.22559793, "qsc_code_size_file_byte": 1547.0, "qsc_code_num_lines": 60.0, "qsc_code_num_chars_line_max": 84.0, "qsc_code_num_chars_line_mean": 25.78333333, "qsc_code_frac_chars_alphabet": 0.74457429, "qsc_code_frac_chars_comments": 0.12023271, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.13886848, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codecpp_frac_lines_preprocessor_directives": 0.24444444, "qsc_codecpp_frac_lines_func_ratio": 0.02222222, "qsc_codecpp_cate_bitsstdc": 0.0, "qsc_codecpp_nums_lines_main": 0.0, "qsc_codecpp_frac_lines_goto": 0.0, "qsc_codecpp_cate_var_zero": 0.0, "qsc_codecpp_score_lines_no_logic": 0.28888889, "qsc_codecpp_frac_lines_print": 0.04444444} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codecpp_frac_lines_func_ratio": 0, "qsc_codecpp_nums_lines_main": 0, "qsc_codecpp_score_lines_no_logic": 0, "qsc_codecpp_frac_lines_preprocessor_directives": 0, "qsc_codecpp_frac_lines_print": 0} |
007revad/Synology_app_mover | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_app_mover | README.md | # <img src="images/pkg_center_64_blurr.png" width="54"> Synology app mover
<a href="https://github.com/007revad/Synology_app_mover/releases"><img src="https://img.shields.io/github/release/007revad/Synology_app_mover.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Easily move Synology packages from one volume to another volume
You just select the package and the destination volume and the script will stop the app, move it, update the symlinks then start the app.
Handy for moving packages to an SSD volume, or to another volume so you can delete the original volume.
**Now** includes [Backup and Restore modes](/images/backup.png).
- Supports DSM 7. Not fully tested with DSM 6.
- If backing up to a USB drive the partition's file system should be ext3, ext4 of btrfs.
### Packages confirmed working
**NOTE:** Just in case, you should backup your docker compose files or portainer stacks.
<details>
<summary>Click here to see list</summary>
<img src="/images/icons/.png" width="16" height="16">
The icons in this table are [Copyright © 2004-2024 Synology Inc.](https://kb.synology.com/en-br/DSM/help/DSM/Home/about?version=7) or Copyright the 3rd party package developer.
| Package Center Name | System Name | Result |
|---------------------|-------------|--------|
| <img src="/images/icons/ActiveBackup_business_64.png" width="16" height="16"> Active Backup for Business | ActiveBackup | OK |
| <img src="/images/icons/ActiveBackup-GSuite_64.png" width="16" height="16"> Active Backup for Google Workspace | ActiveBackup-GSuite | OK |
| <img src="/images/icons/ActiveBackup-Office365_64.png" width="16" height="16"> Active Backup for Microsoft 365 | ActiveBackup-Office365 | OK |
| <img src="/images/icons/CodecPack_64.png" width="16" height="16"> Advanced Media Extensions | CodecPack | OK |
| <img src="/images/icons/AntiVirus-McAfee_64.png" width="16" height="16"> AntiVirus by McAfee | AntiVirus-McAfee | OK |
| <img src="/images/icons/anti_virus_64.png" width="16" height="16"> AntiVirus Essential | AntiVirus | OK - [Use v4.2.88 or later](https://github.com/007revad/Synology_app_mover/releases) |
| <img src="/images/icons/apache_64.png" width="16" height="16"> Apache HTTP Server 2.4 | Apache2.4 | OK |
| <img src="/images/icons/bb-qq_64.png" width="16" height="16"> AQC111 driver | aqc111 | OK - 3rd party package [link](https://github.com/bb-qq/aqc111) |
| <img src="/images/icons/AudioStation_64.png" width="16" height="16"> Audio Station | AudioStation | OK |
| <img src="/images/icons/AvrLogger_64.png" width="20" height="20"> AvrLogger | AvrLogger | OK - community package [link](https://luenepiet.de/public/Synology/AvrLogger%20(SPK)/) |
| <img src="/images/icons/BitDefenderForMailPlus_64.png" width="16" height="16"> Bitdefender for MailPlus | BitDefenderForMailPlus | OK I think |
| <img src="/images/icons/C2IdentityLDAPAgent_64.png" width="16" height="16"> C2 Identity LDAP Server | C2IdentityLDAPAgent | OK |
| <img src="/images/icons/CMS_64.png" width="16" height="16"> Central Management System | CMS | OK |
| <img src="/images/icons/ChannelsDVR_64.png" width="16" height="16"> Channels DVR | ChannelsDVR | OK - 3rd party package [link](https://getchannels.com/dvr-server/#synology) |
| <img src="/images/icons/CloudSync_64.png" width="16" height="16"> Cloud Sync | CloudSync | OK |
| <img src="/images/icons/ContainerManager_64.png" width="16" height="16"> Container Manager 24.0.2 | ContainerManager | ? |
| <img src="/images/icons/ContainerManager_64.png" width="16" height="16"> Container Manager 20.10.23 | ContainerManager | OK |
| <img src="/images/icons/DNSServer_64.png" width="16" height="16"> DNS Server | DNSServer | OK |
| <img src="/images/icons/docker_64.png" width="20" height="20"> Docker | Docker | OK |
| <img src="/images/icons/DocumentViewer_64.png" width="16" height="16"> Document Viewer | DocumentViewer | OK |
| <img src="/images/icons/download_station_64.png" width="20" height="20"> Download Station | DownloadStation | OK |
| <img src="/images/icons/EmbyServer_64.png" width="16" height="16"> Emby Server | EmbyServer | OK |
| <img src="/images/icons/exFAT-Free_72.png" width="16" height="16"> exFAT Access | exFAT-Free | OK |
| <img src="/images/icons/ffmpeg_72.png" width="18" height="18"> FFmpeg | ffmpeg# | OK - community package |
| <img src="/images/icons/Git_64.png" width="16" height="16"> Git | git | OK - community package |
| <img src="/images/icons/Git_64.png" width="16" height="16"> Git Server | Git | OK |
| <img src="/images/icons/GlacierBackup_64.png" width="16" height="16"> Glacier Backup | GlacierBackup | OK - Need to run backup task again |
| <img src="/images/icons/HyperBackup_64.png" width="16" height="16"> Hyper Backup | HyperBackup | OK |
| <img src="/images/icons/HyperBackupVault_64.png" width="16" height="16"> Hyper Backup Vault | HyperBackupVault | OK |
| <img src="/images/icons/jellyfin-64.png" width="20" height="20"> Jellyfin | jellyfin | OK |
| <img src="/images/icons/DirectoryServer_64.png" width="16" height="16"> LDAP Server | DirectoryServer | OK |
| <img src="/images/icons/LogAnalysis_64.png" width="16" height="16"> LogAnalysis | LogAnalysis | OK - community package [link](https://github.com/toafez/LogAnalysis) |
| <img src="/images/icons/log_center_64.png" width="16" height="16"> Log Center | LogCenter | OK |
| <img src="/images/icons/MailStation_64.png" width="16" height="16"> Mail Station | MailStation | OK |
| <img src="/images/icons/MariaDB10_64.png" width="20" height="20"> MariaDB 10 | MariaDB10 | OK |
| <img src="/images/icons/MediaServer_64.png" width="16" height="16"> Media Server | MediaServer | OK |
| <img src="/images/icons/mediainfo-64.png" width="16" height="16"> MediaInfo | mediainfo | OK - community package |
| <img src="/images/icons/MinimServer_64.png" width="16" height="16"> MinimServer | MinimServer | OK |
| <img src="/images/icons/Mosquitto_64.png" width="16" height="16"> Mosquitto | mosquitto | OK - community package |
| <img src="/images/icons/phpMyAdmin_72.png" width="20" height="20"> phpMyAdmin | phpMyAdmin | OK |
| <img src="/images/icons/Node.js_cropped.png" width="36" height="17"> Node.js | Node.js_v## | OK |
| <img src="/images/icons/NoteStation_64.png" width="16" height="16"> Note Station | NoteStation | OK |
| <img src="/images/icons/PDFViewer_64.png" width="16" height="16"> PDF Viewer | PDFViewer | OK |
| <img src="/images/icons/Perl_64.png" width="16" height="16"> Perl | Perl | OK |
| <img src="/images/icons/PHP_64.png" width="16" height="16"> PHP | PHP#.# | OK |
| <img src="/images/icons/plexmediaserver_48.png" width="16" height="16"> Plex Media Server | PlexMediaServer | OK |
| <img src="/images/icons/PrestoServer_64.png" width="16" height="16"> Presto File Server | PrestoServer | OK |
| <img src="/images/icons/ProxyServer_64.png" width="16" height="16"> Proxy Server | ProxyServer | OK |
| <img src="/images/icons/Python_64.png" width="16" height="16"> Python 3.9 | Python3.9 | OK |
| <img src="/images/icons/bb-qq_64.png" width="16" height="16"> RTL8152/RTL8153 driver | r8152 | OK - 3rd party package [link](https://github.com/bb-qq/r8152) |
| <img src="/images/icons/RadiusServer_64.png" width="16" height="16"> RADIUS Server | RadiusServer | OK |
| <img src="/images/icons/SynoSmisProvider_64.png" width="16" height="16"> SMI-S Provider | SynoSmisProvider | OK |
| <img src="/images/icons/SnapshotReplication_64.png" width="16" height="16"> Snapshot Replication | SnapshotReplication | OK |
| <img src="/images/icons/SSOServer_64.png" width="16" height="16"> SSO Server | SSOServer | OK |
| <img src="/images/icons/StorageAnalyzer_64.png" width="16" height="16"> Storage Analyzer | StorageAnalyzer | OK |
| <img src="/images/icons/SurveillanceStation_64.png" width="16" height="16"> Surveillance Station | SurveillanceStation | OK |
| <img src="/images/icons/synocli_72.png" width="16" height="16"> SynoCli Tools | synocli-"toolname" | OK - community package |
| <img src="/images/icons/SynologyApplicationService_64.png" width="16" height="16"> Synology Application Service | SynologyApplicationService | OK |
| <img src="/images/icons/Calendar_64.png" width="16" height="16"> Synology Calendar | Calendar | OK |
| <img src="/images/icons/Chat_64.png" width="16" height="16"> Synology Chat Server | Chat | OK |
| <img src="/images/icons/Contacts_64.png" width="16" height="16"> Synology Contacts | Contacts | OK |
| <img src="/images/icons/DirectoryServerForWindowsDomain_64.png" width="16" height="16"> Synology Directory Server | DirectoryServerForWindowsDomain | OK |
| <img src="/images/icons/SynologyDrive_64.png" width="16" height="16"> Synology Drive Server | SynologyDrive | OK - see [Synology Drive and Btrfs Snapshots](https://github.com/007revad/Synology_app_mover#synology-drive-and-btrfs-snapshots) |
| <img src="/images/icons/MailServer_64.png" width="16" height="16"> Synology Mail Server | MailServer | OK |
| <img src="/images/icons/MailClient_64.png" width="16" height="16"> Synology MailPlus | MailPlus | OK |
| <img src="/images/icons/MailPlus-Server_64.png" width="16" height="16"> Synology MailPlus Server | MailPlus-Server | OK I think |
| <img src="/images/icons/Spreadsheet_64.png" width="16" height="16"> Synology Office | Spreadsheet | OK |
| <img src="/images/icons/photos_64.png" width="16" height="16"> Synology Photos | SynologyPhotos | OK |
| <img src="/images/icons/Tailscale_64.png" width="16" height="16"> Tailscale | Tailscale | OK |
| <img src="/images/icons/TextEditor_64.png" width="16" height="16"> Text Editor | TextEditor | OK |
| <img src="/images/icons/UniversalViewer_64.png" width="16" height="16"> Universal Viewer | UniversalViewer | OK |
| <img src="/images/icons/USBCopy_64.png" width="18" height="18"> USB Copy | USBCopy | see [moving_extras](moving_extras.md)
| <img src="/images/icons/VideoStation_64.png" width="16" height="16"> Video Station | VideoStation | OK |
| <img src="/images/icons/VirtualManagement_64.png" width="16" height="16"> Virtual Machine Manager | Virtualization | OK |
| <img src="/images/icons/VPNCenter_64.png" width="16" height="16"> VPN Server | VPNCenter | OK |
| <img src="/images/icons/WebStation_64.png" width="16" height="16"> Web Station | WebStation | OK |
| <img src="/images/icons/WebDAVServer_64.png" width="16" height="16"> WebDAV Server | WebDAVServer | OK |
</details>
#### Packages not tested
<details>
<summary>Click here to see list</summary>
<img src="/images/icons/.png" width="16" height="16">
The icons in this table are [Copyright © 2004-2024 Synology Inc.](https://kb.synology.com/en-br/DSM/help/DSM/Home/about?version=7) or Copyright the 3rd party package developer.
| Package | Result / Notes |
|---------|--------|
| <img src="/images/icons/ArchiwareP5_64.png" width="16" height="16"> Archiware P5 | |
| <img src="/images/icons/Sony_BraviaSignage_64.png" width="16" height="16"> BRAVIA Signage | Won't install in Container Manager. It checks if Docker is installed |
| <img src="/images/icons/ContainerManager_64.png" width="16" height="16"> Container Manager 24.0.2 | |
| <img src="/images/icons/DdbBackup_64.png" width="18" height="18"> Data Deposit Box | |
| <img src="/images/icons/diagnosis_64.png" width="20" height="20"> Diagnosis Tool | |
| <img src="/images/icons/domotz_64.png" width="16" height="16"> Domotz Network Monitoring | |
| <img src="/images/icons/elephantdrive_64.png" width="16" height="16"> ElephantDrive | |
| <img src="/images/icons/gateone-64.png" width="16" height="16"> GateOne | |
| <img src="/images/icons/GoodSync_64.png" width="16" height="16"> GoodSync | |
| <img src="/images/icons/iDrive_72.png" width="16" height="16"> IDrive | |
| <img src="/images/icons/jackett-64.png" width="16" height="16"> Jackett | community package |
| <img src="/images/icons/Joomla_64.png" width="16" height="16"> Joomla | |
| <img src="/images/icons/KodExplorer_64.png" width="16" height="16"> KodiExplorer | |
| <img src="/images/icons/MediaWiki_72.png" width="18" height="18"> MediaWiki | |
| <img src="/images/icons/medusa-64.png" width="18" height="18"> Medusa | community package [link](https://github.com/BenjV/SYNO-packages) |
| <img src="/images/icons/MEGAcmd_64.png" width="16" height="16"> MEGAcmd | |
| <img src="/images/icons/mono_64.png" width="18" height="18"> Mono | community package |
| <img src="/images/icons/NBR_64.png" width="16" height="16"> NAKIVO Backup and Replication | |
| <img src="/images/icons/NBR-Transporter_64.png" width="16" height="16"> NAKIVO Transporter | |
| <img src="/images/icons/PACS_64.png" width="16" height="16"> PACS | |
| <img src="/images/icons/PhotoStation_64.png" width="18" height="18"> Photo Station | DSM 6 |
| <img src="/images/icons/radarr-64.png" width="20" height="20"> Radarr | community package |
| <img src="/images/icons/RagicBuilder_64.png" width="20" height="20"> Ragic Cloud DB | |
| <img src="/images/icons/resiliosync-48.png" width="16" height="16"> Resilo Sync | |
| <img src="/images/icons/shellinabox-48.png" width="16" height="16"> Shellinabox | community package |
| <img src="/images/icons/Sonarr_64.png" width="18" height="18"> Sonarr | community package |
| <img src="/images/icons/syncthing-64.png" width="18" height="18"> Syncthing | |
| <img src="/images/icons/TeamViewer_64.png" width="16" height="16"> TeamViewer | |
| <img src="/images/icons/transmission-64.png" width="20" height="20"> Transmission | community package |
| <img src="/images/icons/tvheadend-64.png" width="20" height="20"> Tvheadend | community package |
| <img src="/images/icons/VirtualHere_64.png" width="18" height="18"> VirtualHere | |
| <img src="/images/icons/vtigerCRM_64.png" width="16" height="16"> vtigerCRM | |
| <img src="/images/icons/WebTools-48.png" width="20" height="20"> WebTools | community package |
| <img src="/images/icons/Wordpress_64.png" width="16" height="16"> Wordpress | |
</details>
### Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_app_mover/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.
### Set backup location
If you want to use use the [backup and restore options](/images/backup.png) you need edit the included **syno_app_mover.conf** file to set the location to backup to.
The **syno_app_mover.conf** file must be in the same folder as the **syno_app_mover.sh file**.
### Settings in syno_app_mover.conf
```YAML
# buffer is used when checking if target volume has enough space
# Add 50 GB buffer so we don't fill the target volume
buffer=50
# The backuppath is only used by Backup and Restore modes
# backuppath should be in the format of /volume/sharename/folder
# For example:
# backuppath="/volume1/backups"
#
# Note: The script will create a syno_app_mover folder in backuppath
backuppath="/volume1/backups"
# Skip backup if previous backup was done less than x minutes ago
# Set to "0" to always backup
# skip_minutes is in minutes
skip_minutes=360
# exclude setting for use when auto="all" option is used to skip specified apps
# For example:
# exclude="ContainerManager"
# exclude="DownloadStation,ContainerManager,HyperBackup"
#
# Note: You need to use the app's system name
# Run syno_app_mover.sh with the --list option to see your app's system names
exclude=
# For Docker or Container Manager's container settings json exports
# Set delete_older to age in days before old exports are deleted
# Set ignored_containers to a list of containers to not export settings
# For example:
# delete_older=7
# ignored_containers="libraspeed-1,netdata"
#
# Note you need use the container's docker name. To see their names via SSH use:
# sudo docker ps -a --format "{{.Names}}"
delete_older=30
ignored_containers=
```
### To run the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
```YAML
sudo -s /volume1/scripts/syno_app_mover.sh
```
**Note:** Replace /volume1/scripts/ with the path to where the script is located.
### Options when running the script <a name="options"></a>
There are optional flags you can use when running the script:
```YAML
-h, --help Show this help message
-v, --version Show the script version
--autoupdate=AGE Auto update script (useful when script is scheduled)
AGE is how many days old a release must be before
auto-updating. AGE must be a number: 0 or greater
--auto=APP Automatically backup APP (for scheduling backups)
APP can be a single app or a comma separated list
APP can also be 'all' to backup all apps (except
any you excluded in the syno_app_mover.conf)
Examples:
--auto=radarr
--auto=Calender,ContainerManager,radarr
--auto=all
APP names need to be the app's system name
View the system names with the --list option
--list Display installed apps' system names
```
### Troubleshooting
If the script won't run check the following:
1. Make sure you download the zip file and unzipped it to a folder on your Synology (not on your computer).
2. If the path to the script contains any spaces you need to enclose the path/scriptname in double quotes:
```YAML
sudo -s "/volume1/my scripts/syno_app_mover.sh"
```
3. Make sure you unpacked the zip or rar file that you downloaded and are trying to run the syno_app_mover.sh file.
4. Set the script file as executable:
```YAML
sudo chmod +x "/volume1/scripts/syno_app_mover.sh"
```
### Synology Drive and Btrfs Snapshots
Synology Drive handles file versioning differently based on the underlying file system.
- For **ext4 volumes**, the versioning data is stored in the internal folder (`/volume1/@synologydrive/@sync/repo`).
- For **Btrfs volumes**, versioning is managed through **Btrfs snapshots** (see the [Reddit thread here](https://www.reddit.com/r/synology/comments/82o4pv/comment/dvbskzh/)).
When moving Synology Drive’s database from an **ext4** volume to a **Btrfs** volume, the `@sync/repo` folder containing file versioning data **will not be moved** to the Btrfs volume.
This is because **Btrfs snapshots** handle versioning on the Btrfs side, while ext4 relies on the `@synologydrive` folder for versioning.
However, it seems that you won’t lose your file version history as long as you don’t delete the ext4 volume.
The file versions appear to remain intact on the ext4 volume, and you should be able to access them as long as the volume is still available.
But, removing the ext4 volume will result in the **irreversible loss of all file versions**, as the versioning data is stored exclusively in the `@synologydrive` folder on ext4 volumes.
On the positive side, by moving the database to the Btrfs volume, you'll free up the space previously occupied by the versioning data on the ext4 volume.
For more details, check out this [GitHub discussion](https://github.com/007revad/Synology_app_mover/discussions/200).
### Video - moving Container Manager
<!-- https://github.com/007revad/Synology_app_mover/assets/39733752/8373dc38-2271-45bd-93f5-357669b7ec40 -->
<!-- https://github.com/user-attachments/assets/e308839a-1a3d-402b-9920-dc98901c1234 -->
https://github.com/007revad/Synology_app_mover/assets/e308839a-1a3d-402b-9920-dc98901c1234
### DSM 7 screenshots
<p align="center">Moving a package (with dependencies)</p>
<p align="center"><img src="/images/app2.png"></p>
<br>
<p align="center">Moving packages with shared folders</p>
<p align="center"><img src="/images/app3.png"></p>
<p align="center"><img src="/images/app4.png"></p>
<br>
<p align="center">Moving a package that has a volume location setting</p>
<p align="center"><img src="/images/app5.png"></p>
<br>
<p align="center">Moving Active Backup for Business</p>
<p align="center"><img src="/images/app6.png"></p>
<br>
<p align="center">Backing up Audio Station</p>
<p align="center"><img src="/images/backup.png"></p>
<br>
<p align="center">Backing up with the --auto option</p>
<p align="center"><img src="/images/auto_option.png"></p>
<br>
<p align="center">Output with --list option</p>
<p align="center"><img src="/images/list_option.png"></p>
### Credits
- wallacebrf for extensive beta testing of syno_app_mover v3.
- ctrlaltdelete for the code to export Container Manager/Docker container's settings.
| 21,195 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00018872, "qsc_doc_frac_words_redpajama_stop": 0.08802418, "qsc_doc_num_sentences": 244.0, "qsc_doc_num_words": 3159, "qsc_doc_num_chars": 21195.0, "qsc_doc_num_lines": 334.0, "qsc_doc_mean_word_length": 4.71763216, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.20386198, "qsc_doc_entropy_unigram": 5.14656011, "qsc_doc_frac_words_all_caps": 0.0273895, "qsc_doc_frac_lines_dupe_lines": 0.1221374, "qsc_doc_frac_chars_dupe_lines": 0.03396024, "qsc_doc_frac_chars_top_2grams": 0.04952023, "qsc_doc_frac_chars_top_3grams": 0.09823525, "qsc_doc_frac_chars_top_4grams": 0.12890022, "qsc_doc_frac_chars_dupe_5grams": 0.41045427, "qsc_doc_frac_chars_dupe_6grams": 0.31503724, "qsc_doc_frac_chars_dupe_7grams": 0.16338992, "qsc_doc_frac_chars_dupe_8grams": 0.10279809, "qsc_doc_frac_chars_dupe_9grams": 0.07703147, "qsc_doc_frac_chars_dupe_10grams": 0.06998591, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 35.60794473, "qsc_doc_frac_chars_hyperlink_html_tag": 0.4663364, "qsc_doc_frac_chars_alphabet": 0.75922193, "qsc_doc_frac_chars_digital": 0.05268893, "qsc_doc_frac_chars_whitespace": 0.13408823, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_app_mover | syno_app_mover.conf | # buffer is used when checking if target volume has enough space
# Add 50 GB buffer so we don't fill the target volume
buffer=50
# The backuppath is only used by Backup and Restore modes
# backuppath should be in the format of /volume/sharename/folder
# For example:
# backuppath="/volume1/backups"
#
# Note: The script will create a syno_app_mover folder in backuppath
backuppath="/volume1/backups"
# Skip backup if previous backup was done less than x minutes ago
# Set to "0" to always backup
# skip_minutes is in minutes
skip_minutes=360
# exclude setting for use when auto="all" option is used to skip specified apps
# For example:
# exclude="ContainerManager"
# exclude="DownloadStation,ContainerManager,HyperBackup"
#
# Note: You need to use the app's system name
# Run syno_app_mover.sh with the --list option to see your app's system names
exclude=
# For Docker or Container Manager's container settings json exports
# Set delete_older to age in days before old exports are deleted
# Set ignored_containers to a list of containers to not export settings
# For example:
# delete_older=7
# ignored_containers="libraspeed-1,netdata"
#
# Note you need use the container's docker name. To see their names via SSH use:
# sudo docker ps -a --format "{{.Names}}"
delete_older=30
ignored_containers=
| 1,314 | syno_app_mover | conf | en | unknown | unknown | {} | 0 | {} |
007revad/Synology_enable_eunit | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_enable_eunit | README.md | # Synology enable eunit
<a href="https://github.com/007revad/Synology_enable_eunit/releases"><img src="https://img.shields.io/github/release/007revad/Synology_enable_eunit.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Enable unsupported Synology eSATA and InfiniBand Expansion Unit models
This script will allow enabling:
- DX517, DX513, DX213, DX510, RX418, RX415 or RX410 on Synology NAS that have an eSATA port.
- RX1217RP, RX1217, RX1214RP, RX1214, RX1211RP, RX1211, DX1215II, DX1215 or DX1211 on Synology NAS that have an InfiniBand port.
You can enable as many different expansion unit models as you want.
If you have 2 of the same expansion unit model you only need to enable it once for both expansion units to be enabled in DSM.
> **Warning** <br>
> Do ***NOT*** span a storage pool between the NAS and Expansion Unit. After a DSM update the Expansion Unit will be unsupported until you run this script again, which will be hard to do if your only storage pool is offline. Also do ***NOT*** store this script on a volume in the expansion unit.
## Supported NAS Models
### Models with eSATA expansion ports
This script will work for eSATA expansion units with the following Synology NAS models:
| Model | Works | Confirmed |
|---------|-------|-----------|
| DS1823xs+ | yes | |
| DS1821+ | yes | DX513, DX213, RX418 |
| DS1621+ | yes | |
| DS1522+ | yes | |
| DS1520+ | yes | |
| DS923+ | yes | DX513 |
| DS920+ | yes | |
| DS723+ | yes | DX213 |
| DS720+ | yes | DX513, DX213, RX418 |
| RS1221+, RS1221RP+ | yes | DX517 |
| RS822+, RS822RP+ | yes | |
- The DiskStation models above already have DX517 enabled.
- The RackStation models above already have RX418 enabled.
**Models that work without the script**
| Model | Works | Confirmed |
|---------|-------|-----------|
| DS918+ | yes | DX513, DX213 |
| DS718+ | yes | DX513, DX213 |
| DS218+ | yes | DX513, DX213 |
#### eSATA expansion unit speeds
| Model | eSATA Speed | Notes |
|-------|-------------|-------|
| DX517 | 6 Gbps | 600 MB/s |
| RX418 | 6 Gbps | 600 MB/s |
| | |
| DX513 | 3 Gbps | 300 MB/s |
| DX213 | 3 Gbps | 300 MB/s |
| RX415 | 3 Gbps | 300 MB/s |
| | |
| DX510 | 1.5 Gbps | 150 MB/s |
| RX410 | 1.5 Gbps | 150 MB/s |
### Models with InfiniBand expansion ports
This script will work for InfiniBand expansion units with the following Synology NAS models:
| Model | Works | Confirmed |
|---------|-------|-----------|
| RS2421+, RS2421RP+ | yes | |
| RS2821RP+ | yes | |
- The RackStation models above already have RX1217RP and RX1217 enabled.
#### InfiniBand expansion unit speeds
| Model | InfiniBand Speed | Notes |
|-------|-------------|-------|
| RX1217, RX1217RP | 4 x 6 Gbps | 4 x 600 MB/s |
| DX1215II, DX1215 | 4 x 6 Gbps | 4 x 600 MB/s |
| RX1214, RX1214RP | 4 x 6 Gbps | 4 x 600 MB/s |
| | |
| RX1211, RX1211RP | 4 x 3 Gbps | 4 x 300 MB/s |
| DX1211 | 4 x 3 Gbps | 4 x 300 MB/s |
## Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_enable_eunit/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.
> **Warning** <br>
> Do ***NOT*** save the script to a volumes in the expansion unit as the volume won't be available until after the script has run.
## How to run the script
### Scheduling the script in Synology's Task Scheduler
See <a href=how_to_schedule.md/>How to schedule a script in Synology Task Scheduler</a>
### Run the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
Run the script then reboot the Synology:
```bash
sudo -s /volume1/scripts/syno_enable_eunit.sh
```
> **Note** <br>
> Replace /volume1/scripts/ with the path to where the script is located.
### Options:
```YAML
-c, --check Check expansion units status
-r, --restore Restore from backups to undo changes
--unit=EUNIT Automatically enable specified expansion unit
Only needed when script is scheduled
EUNIT is dx517, dx513, dx213, dx510, rx418, rx415,
rx410, rx1217rp, rx1217, rx1214r, rx1214, rxX1211rp,
rx1211, dx1215ii, dx1215 or dx1211
-e, --email Disable colored text in output scheduler emails
--autoupdate=AGE Auto update script (useful when script is scheduled)
AGE is how many days old a release must be before
auto-updating. AGE must be a number: 0 or greater
-h, --help Show this help message
-v, --version Show the script version
```
## What about DSM updates?
After any DSM update you will need to run this script again, if you don't have it scheduled to run at boot.
<br>
## Screenshots
<p align="center">Enable DX513</p>
<p align="center"><img src="/images/esatab.png"></p>
<p align="center">Check option</p>
<p align="center"><img src="/images/enable_dx513b.png"></p>
<p align="center">DS models with eSATA posts only partially have RX418 enabled</p>
<p align="center"><img src="/images/default.png"></p>
<p align="center">Enable RX418</p>
<p align="center"><img src="/images/enable_rx418b.png"></p>
<p align="center">Check option again</p>
<p align="center"><img src="/images/enabled_3b.png"></p>
<p align="center">Restore option</p>
<p align="center"><img src="/images/restore.png"></p>
<p align="center">DS1821+ with a DX213</p>
<p align="center"><img src="/images/1821+dx213-1.png"></p>
<p align="center"><img src="/images/1821+dx213-2.png"></p>
| 6,194 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.18375774, "qsc_doc_num_sentences": 62.0, "qsc_doc_num_words": 918, "qsc_doc_num_chars": 6194.0, "qsc_doc_num_lines": 166.0, "qsc_doc_mean_word_length": 4.47712418, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.31808279, "qsc_doc_entropy_unigram": 5.17245241, "qsc_doc_frac_words_all_caps": 0.07983482, "qsc_doc_frac_lines_dupe_lines": 0.12605042, "qsc_doc_frac_chars_dupe_lines": 0.05215458, "qsc_doc_frac_chars_top_2grams": 0.02189781, "qsc_doc_frac_chars_top_3grams": 0.04379562, "qsc_doc_frac_chars_top_4grams": 0.04428224, "qsc_doc_frac_chars_dupe_5grams": 0.2756691, "qsc_doc_frac_chars_dupe_6grams": 0.2323601, "qsc_doc_frac_chars_dupe_7grams": 0.18321168, "qsc_doc_frac_chars_dupe_8grams": 0.11484185, "qsc_doc_frac_chars_dupe_9grams": 0.06690998, "qsc_doc_frac_chars_dupe_10grams": 0.03211679, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 26.17105263, "qsc_doc_frac_chars_hyperlink_html_tag": 0.23183726, "qsc_doc_frac_chars_alphabet": 0.72532699, "qsc_doc_frac_chars_digital": 0.08917955, "qsc_doc_frac_chars_whitespace": 0.18534065, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_enable_eunit | how_to_schedule.md | # How to schedule a script in Synology Task Scheduler
To schedule a script to run on your Synology at boot-up or shutdown follow these steps:
**Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Triggered Task**.
2. Select **User-defined script**.
3. Enter a task name.
4. Select **root** as the user (The script needs to run as root).
5. Select **Boot-up** as the event that triggers the task.
6. Leave **Enable** ticked.
7. Click **Task Settings**.
8. Optionally you can tick **Send run details by email** and **Send run details only when the script terminates abnormally** then enter your email address.
9. In the box under **User-defined script** type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type:
- `/volume1/scripts/syno_enable_eunit.sh -e --unit=EUNIT`
- Replace EUNIT with your expansion unit model: dx517, dx513, dx213, dx510, rx418, rx415 or rx410
11. Click **OK** to save the settings.
Here's some screenshots showing what needs to be set:
<p align="leftr"><img src="images/schedule1.png"></p>
<p align="leftr"><img src="images/schedule2.png"></p>
<p align="leftr"><img src="images/schedule3.png"></p>
| 1,385 | how_to_schedule | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.23823529, "qsc_doc_num_sentences": 28.0, "qsc_doc_num_words": 236, "qsc_doc_num_chars": 1385.0, "qsc_doc_num_lines": 27.0, "qsc_doc_mean_word_length": 4.19067797, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.52118644, "qsc_doc_entropy_unigram": 4.52490777, "qsc_doc_frac_words_all_caps": 0.00882353, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.0364004, "qsc_doc_frac_chars_top_3grams": 0.03336704, "qsc_doc_frac_chars_top_4grams": 0.04246714, "qsc_doc_frac_chars_dupe_5grams": 0.07785642, "qsc_doc_frac_chars_dupe_6grams": 0.07785642, "qsc_doc_frac_chars_dupe_7grams": 0.05460061, "qsc_doc_frac_chars_dupe_8grams": 0.05460061, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 24.2, "qsc_doc_frac_chars_hyperlink_html_tag": 0.11480144, "qsc_doc_frac_chars_alphabet": 0.82567216, "qsc_doc_frac_chars_digital": 0.0320902, "qsc_doc_frac_chars_whitespace": 0.16750903, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_enable_eunit | syno_enable_eunit.sh | #!/usr/bin/env bash
#-----------------------------------------------------------------------------------
# Enable Expansion Units in Synology NAS that don't officially support them.
#
# Allows using your Synology expansion unit
# in Synology NAS models that aren't on their supported model list.
#
# Github: https://github.com/007revad/Synology_enable_eunit
# Script verified at https://www.shellcheck.net/
#
# To run in a shell (replace /volume1/scripts/ with path to script):
# sudo -i /volume1/scripts/syno_enable_eunit.sh
#-----------------------------------------------------------------------------------
scriptver="v3.0.19"
script=Synology_enable_eunit
repo="007revad/Synology_enable_eunit"
scriptname=syno_enable_eunit
# Check BASH variable is bash
if [ ! "$(basename "$BASH")" = bash ]; then
echo "This is a bash script. Do not run it with $(basename "$BASH")"
printf \\a
exit 1 # Not running in bash
fi
# Check script is running on a Synology NAS
if ! /usr/bin/uname -a | grep -q -i synology; then
echo "This script is NOT running on a Synology NAS!"
echo "Copy the script to a folder on the Synology"
echo "and run it from there."
exit 1 # Not Synology NAS
fi
ding(){
printf \\a
}
usage(){
cat <<EOF
$script $scriptver - by 007revad
Usage: $(basename "$0") [options]
Options:
-c, --check Check expansion units status
-r, --restore Restore from backups to undo changes
--unit=EUNIT Automatically enable specified expansion unit
Only needed when script is scheduled
EUNIT is dx517, dx513, dx213, dx510, rx418, rx415,
rx410, rx1217rp, rx1217, rx1214r, rx1214, rxX1211rp,
rx1211, dx1215ii, dx1215 or dx1211
-e, --email Disable colored text in output scheduler emails
--autoupdate=AGE Auto update script (useful when script is scheduled)
AGE is how many days old a release must be before
auto-updating. AGE must be a number: 0 or greater
-h, --help Show this help message
-v, --version Show the script version
EOF
exit 0
}
scriptversion(){
cat <<EOF
$script $scriptver - by 007revad
See https://github.com/$repo
EOF
exit 0
}
# Save options used for getopt
args=("$@")
autoupdate=""
# Check for flags with getopt
if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -l \
check,restore,unit:,help,version,email,autoupdate:,log,debug -- "${args[@]}")"; then
eval set -- "$options"
while true; do
case "${1,,}" in
-h|--help) # Show usage options
usage
;;
-v|--version) # Show script version
scriptversion
;;
-l|--log) # Log
#log=yes
;;
-d|--debug) # Show and log debug info
debug=yes
;;
-c|--check) # Check current settings
check=yes
break
;;
-r|--restore) # Restore original settings
restore=yes
break
;;
--unit) # Specify eunit to enable for task scheduler
if [[ ${2,,} =~ ^(d|r)x[0-9]+(rp|ii)?$ ]]; then
if [[ ${2:(-2)} == "rp" ]]; then
# Convert to upper case except rp at end
unit="$(b=${2:0:-2} && echo -n "${b^^}")rp"
else
# Convert to upper case
unit="${2^^}"
fi
else
echo -e "Invalid argument '$2'\n"
exit 2 # Invalid argument
fi
shift
;;
-e|--email) # Disable colour text in task scheduler emails
color=no
;;
--autoupdate) # Auto update script
autoupdate=yes
if [[ $2 =~ ^[0-9]+$ ]]; then
delay="$2"
shift
else
delay="0"
fi
;;
--)
shift
break
;;
*) # Show usage options
echo -e "Invalid option '$1'\n"
usage "$1"
;;
esac
shift
done
else
echo
usage
fi
if [[ $debug == "yes" ]]; then
set -x
export PS4='`[[ $? == 0 ]] || echo "\e[1;31;40m($?)\e[m\n "`:.$LINENO:'
fi
# Shell Colors
if [[ $color != "no" ]]; then
#Black='\e[0;30m' # ${Black}
#Red='\e[0;31m' # ${Red}
#Green='\e[0;32m' # ${Green}
Yellow='\e[0;33m' # ${Yellow}
#Blue='\e[0;34m' # ${Blue}
#Purple='\e[0;35m' # ${Purple}
Cyan='\e[0;36m' # ${Cyan}
#White='\e[0;37m' # ${White}
Error='\e[41m' # ${Error}
Off='\e[0m' # ${Off}
else
echo "" # For task scheduler email readability
fi
# Check script is running as root
if [[ $( whoami ) != "root" ]]; then
ding
echo -e "${Error}ERROR${Off} This script must be run as sudo or root!"
exit 1 # Not running as sudo or root
fi
# Get DSM major and minor versions
#dsm=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION majorversion)
#dsminor=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION minorversion)
#if [[ $dsm -gt "6" ]] && [[ $dsminor -gt "1" ]]; then
# dsm72="yes"
#fi
#if [[ $dsm -gt "6" ]] && [[ $dsminor -gt "0" ]]; then
# dsm71="yes"
#fi
# Get NAS model
model=$(cat /proc/sys/kernel/syno_hw_version)
#modelname="$model"
# Show script version
#echo -e "$script $scriptver\ngithub.com/$repo\n"
echo "$script $scriptver"
# Get DSM full version
productversion=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION productversion)
buildphase=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildphase)
buildnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildnumber)
smallfixnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION smallfixnumber)
# Show DSM full version and model
if [[ $buildphase == GM ]]; then buildphase=""; fi
if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi
echo -e "$model DSM $productversion-$buildnumber$smallfix $buildphase\n"
# Get StorageManager version
storagemgrver=$(/usr/syno/bin/synopkg version StorageManager)
# Show StorageManager version
if [[ $storagemgrver ]]; then echo -e "StorageManager $storagemgrver\n"; fi
# Show options used
if [[ ${#args[@]} -gt "0" ]]; then
echo "Using options: ${args[*]}"
fi
# Check Synology has a expansion port
# eSATA and InfiniBand ports both appear in syno_slot_mapping as:
# Esata port count: 1
# Eunit port 1 - RX1214
if which syno_slot_mapping >/dev/null; then
esata_ports=$(syno_slot_mapping | grep 'Esata port count' | awk '{print $4}')
if [[ $esata_ports -lt "1" ]]; then
echo -e "${Error}ERROR${Off} Synology NAS has no expansion port(s)!"
exit 1 # No expansion port(s)
fi
else
echo -e "${Error}ERROR${Off} Unsupported Synology NAS model. No syno_slot_mapping command!"
exit 1 # No syno_slot_mapping file
fi
#------------------------------------------------------------------------------
# Check latest release with GitHub API
syslog_set(){
if [[ ${1,,} == "info" ]] || [[ ${1,,} == "warn" ]] || [[ ${1,,} == "err" ]]; then
if [[ $autoupdate == "yes" ]]; then
# Add entry to Synology system log
/usr/syno/bin/synologset1 sys "$1" 0x11100000 "$2"
fi
fi
}
# Get latest release info
# Curl timeout options:
# https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
release=$(curl --silent -m 10 --connect-timeout 5 \
"https://api.github.com/repos/$repo/releases/latest")
# Release version
tag=$(echo "$release" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
shorttag="${tag:1}"
# Release published date
published=$(echo "$release" | grep '"published_at":' | sed -E 's/.*"([^"]+)".*/\1/')
published="${published:0:10}"
published=$(date -d "$published" '+%s')
# Today's date
now=$(date '+%s')
# Days since release published
age=$(((now - published)/(60*60*24)))
# Get script location
# https://stackoverflow.com/questions/59895/
source=${BASH_SOURCE[0]}
while [ -L "$source" ]; do # Resolve $source until the file is no longer a symlink
scriptpath=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
source=$(readlink "$source")
# If $source was a relative symlink, we need to resolve it
# relative to the path where the symlink file was located
[[ $source != /* ]] && source=$scriptpath/$source
done
scriptpath=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
scriptfile=$( basename -- "$source" )
echo -e "Running from: ${scriptpath}/$scriptfile\n"
# Warn if script located on M.2 drive
scriptvol=$(echo "$scriptpath" | cut -d"/" -f2)
vg=$(lvdisplay | grep /volume_"${scriptvol#volume}" | cut -d"/" -f3)
md=$(pvdisplay | grep -B 1 -E '[ ]'"$vg" | grep /dev/ | cut -d"/" -f3)
if grep "$md" /proc/mdstat | grep -q nvme; then
echo -e "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!"
fi
cleanup_tmp(){
cleanup_err=
# Delete downloaded .tar.gz file
if [[ -f "/tmp/$script-$shorttag.tar.gz" ]]; then
if ! rm "/tmp/$script-$shorttag.tar.gz"; then
echo -e "${Error}ERROR${Off} Failed to delete"\
"downloaded /tmp/$script-$shorttag.tar.gz!" >&2
cleanup_err=1
fi
fi
# Delete extracted tmp files
if [[ -d "/tmp/$script-$shorttag" ]]; then
if ! rm -r "/tmp/$script-$shorttag"; then
echo -e "${Error}ERROR${Off} Failed to delete"\
"downloaded /tmp/$script-$shorttag!" >&2
cleanup_err=1
fi
fi
# Add warning to DSM log
if [[ $cleanup_err ]]; then
syslog_set warn "$script update failed to delete tmp files"
fi
}
if ! printf "%s\n%s\n" "$tag" "$scriptver" |
sort --check=quiet --version-sort >/dev/null ; then
echo -e "\n${Cyan}There is a newer version of this script available.${Off}"
echo -e "Current version: ${scriptver}\nLatest version: $tag"
scriptdl="$scriptpath/$script-$shorttag"
if [[ -f ${scriptdl}.tar.gz ]] || [[ -f ${scriptdl}.zip ]]; then
# They have the latest version tar.gz downloaded but are using older version
echo "You have the latest version downloaded but are using an older version"
sleep 10
elif [[ -d $scriptdl ]]; then
# They have the latest version extracted but are using older version
echo "You have the latest version extracted but are using an older version"
sleep 10
else
if [[ $autoupdate == "yes" ]]; then
if [[ $age -gt "$delay" ]] || [[ $age -eq "$delay" ]]; then
echo "Downloading $tag"
reply=y
else
echo "Skipping as $tag is less than $delay days old."
fi
else
echo -e "${Cyan}Do you want to download $tag now?${Off} [y/n]"
read -r -t 30 reply
fi
if [[ ${reply,,} == "y" ]]; then
# Delete previously downloaded .tar.gz file and extracted tmp files
cleanup_tmp
if cd /tmp; then
url="https://github.com/$repo/archive/refs/tags/$tag.tar.gz"
if ! curl -JLO -m 30 --connect-timeout 5 "$url"; then
echo -e "${Error}ERROR${Off} Failed to download"\
"$script-$shorttag.tar.gz!"
syslog_set warn "$script $tag failed to download"
else
if [[ -f /tmp/$script-$shorttag.tar.gz ]]; then
# Extract tar file to /tmp/<script-name>
if ! tar -xf "/tmp/$script-$shorttag.tar.gz" -C "/tmp"; then
echo -e "${Error}ERROR${Off} Failed to"\
"extract $script-$shorttag.tar.gz!"
syslog_set warn "$script failed to extract $script-$shorttag.tar.gz!"
else
# Set script sh files as executable
if ! chmod a+x "/tmp/$script-$shorttag/"*.sh ; then
permerr=1
echo -e "${Error}ERROR${Off} Failed to set executable permissions"
syslog_set warn "$script failed to set permissions on $tag"
fi
# Copy new script sh file to script location
if ! cp -p "/tmp/$script-$shorttag/${scriptname}.sh" "${scriptpath}/${scriptfile}";
then
copyerr=1
echo -e "${Error}ERROR${Off} Failed to copy"\
"$script-$shorttag sh file(s) to:\n $scriptpath/${scriptfile}"
syslog_set warn "$script failed to copy $tag to script location"
fi
# Copy new CHANGES.txt file to script location (if script on a volume)
if [[ $scriptpath =~ /volume* ]]; then
# Set permissions on CHANGES.txt
if ! chmod 664 "/tmp/$script-$shorttag/CHANGES.txt"; then
permerr=1
echo -e "${Error}ERROR${Off} Failed to set permissions on:"
echo "$scriptpath/CHANGES.txt"
fi
# Copy new CHANGES.txt file to script location
if ! cp -p "/tmp/$script-$shorttag/CHANGES.txt"\
"${scriptpath}/${scriptname}_CHANGES.txt";
then
if [[ $autoupdate != "yes" ]]; then copyerr=1; fi
echo -e "${Error}ERROR${Off} Failed to copy"\
"$script-$shorttag/CHANGES.txt to:\n $scriptpath"
else
changestxt=" and changes.txt"
fi
fi
# Delete downloaded tmp files
cleanup_tmp
# Notify of success (if there were no errors)
if [[ $copyerr != 1 ]] && [[ $permerr != 1 ]]; then
echo -e "\n$tag ${scriptfile}$changestxt downloaded to: ${scriptpath}\n"
syslog_set info "$script successfully updated to $tag"
# Reload script
printf -- '-%.0s' {1..79}; echo # print 79 -
exec "${scriptpath}/$scriptfile" "${args[@]}"
else
syslog_set warn "$script update to $tag had errors"
fi
fi
else
echo -e "${Error}ERROR${Off}"\
"/tmp/$script-$shorttag.tar.gz not found!"
syslog_set warn "/tmp/$script-$shorttag.tar.gz not found"
fi
fi
cd "$scriptpath" || echo -e "${Error}ERROR${Off} Failed to cd to script location!"
else
echo -e "${Error}ERROR${Off} Failed to cd to /tmp!"
syslog_set warn "$script update failed to cd to /tmp"
fi
fi
fi
fi
#------------------------------------------------------------------------------
# Show connected expansion units
#found_eunits=($(syno_slot_mapping | grep 'Eunit port' | awk '{print $NF}'))
read -r -a found_eunits <<< "$(syno_slot_mapping | grep 'Eunit port' | awk '{print $NF}')"
echo "Connected Expansion Units:"
if [[ ${#found_eunits[@]} -gt "0" ]]; then
for e in "${found_eunits[@]}"; do
echo -e "${Cyan}$e${Off}"
done
else
echo -e "${Cyan}None${Off}"
fi
#echo ""
#------------------------------------------------------------------------------
# Set file variables
if [[ -f /etc.defaults/model.dtb ]]; then # Is device tree model
# Get syn_hw_revision, r1 or r2 etc (or just a linefeed if not a revision)
hwrevision=$(cat /proc/sys/kernel/syno_hw_revision)
# If syno_hw_revision is r1 or r2 it's a real Synology,
# and I need to edit model_rN.dtb instead of model.dtb
if [[ $hwrevision =~ r[0-9] ]]; then
hwrev="_$hwrevision"
fi
dtb_file="/etc.defaults/model${hwrev}.dtb"
dtb2_file="/etc/model${hwrev}.dtb"
#dts_file="/etc.defaults/model${hwrev}.dts"
dts_file="/tmp/model${hwrev}.dts"
else
echo -e "${Error}ERROR${Off} Unsupported Synology NAS model. No model.dtb file!"
exit 1 # No model.dtb file
fi
synoinfo="/etc.defaults/synoinfo.conf"
synoinfo2="/etc/synoinfo.conf"
scemd="/usr/syno/bin/scemd"
rebootmsg(){
# Ensure newly connected ebox is in /var/log/diskprediction log.
# Otherwise the new /var/log/diskprediction log is only created a midnight.
/usr/syno/bin/syno_disk_data_collector record
# Reboot prompt
echo -e "\n${Cyan}The Synology needs to restart.${Off}"
echo -e "Type ${Cyan}yes${Off} to reboot now."
echo -e "Type anything else to quit (if you will restart it yourself)."
read -r -t 10 answer
if [[ ${answer,,} != "yes" ]]; then
echo ""
exit
fi
# # Reboot in the background so user can see DSM's "going down" message
# reboot &
if [[ -x /usr/syno/sbin/synopoweroff ]]; then
/usr/syno/sbin/synopoweroff -r || reboot
else
reboot
fi
}
#------------------------------------------------------------------------------
# Restore changes from backups
compare_md5(){
# $1 is file 1
# $2 is file 2
if [[ -f "$1" ]] && [[ -f "$2" ]]; then
if [[ $(md5sum -b "$1" | awk '{print $1}') == $(md5sum -b "$2" | awk '{print $1}') ]];
then
return 0
else
return 1
fi
else
restoreerr=$((restoreerr+1))
return 2
fi
}
restore_orig(){
restoreerr="0"
if [[ -f ${dtb_file}.bak ]] || [[ -f ${synoinfo}.bak ]] || [[ -f ${scemd}.bak ]] ;
then
# Restore synoinfo.conf from backup
# /usr/syno/etc.defaults/synoinfo.conf
if [[ -f ${synoinfo}.bak ]]; then
setting="$(/usr/syno/bin/synogetkeyvalue "${synoinfo}.bak" support_ew_20_eunit)"
setting2="$(/usr/syno/bin/synogetkeyvalue "${synoinfo}" support_ew_20_eunit)"
if [[ $setting != "$setting2" ]]; then
if /usr/syno/bin/synosetkeyvalue "$synoinfo" support_ew_20_eunit "$setting"; then
/usr/syno/bin/synosetkeyvalue "$synoinfo2" support_ew_20_eunit "$setting"
echo -e "Restored ${synoinfo}"
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} Failed to restore ${synoinfo}!\n"
fi
fi
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} No backup to restore ${synoinfo} from!\n"
fi
# Restore scemd from backup
if [[ -f ${scemd}.bak ]]; then
if compare_md5 "${scemd}".bak "${scemd}"; then
echo -e "${Cyan}OK${Off} ${scemd}"
else
/usr/bin/systemctl stop scemd.service
if cp -p --force "${scemd}.bak" "${scemd}"; then
echo -e "Restored ${scemd}"
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} Failed to restore ${scemd}!\n"
fi
/usr/bin/systemctl start scemd.service
fi
#else
# restoreerr=$((restoreerr+1))
# echo -e "${Error}ERROR${Off} No backup to restore ${scemd} from!\n"
fi
# Restore model.dtb from backup
if [[ -f ${dtb_file}.bak ]]; then
# /etc.default/model.dtb
if compare_md5 "${dtb_file}.bak" "${dtb_file}"; then
echo -e "${Cyan}OK${Off} ${dtb_file}"
else
if cp -p --force "${dtb_file}.bak" "${dtb_file}"; then
echo -e "Restored ${dtb_file}"
reboot=yes
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} Failed to restore ${dtb_file}!\n"
fi
fi
# Restore /etc/model.dtb from /etc.default/model.dtb
if compare_md5 "${dtb_file}.bak" "${dtb2_file}"; then
echo -e "${Cyan}OK${Off} ${dtb2_file}"
else
if cp -p --force "${dtb_file}.bak" "${dtb2_file}"; then
echo -e "Restored ${dtb2_file}"
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} Failed to restore ${dtb2_file}!\n"
fi
fi
else
restoreerr=$((restoreerr+1))
echo -e "${Error}ERROR${Off} No backup to restore ${dtb2_file} from!\n"
fi
if [[ -z $restoreerr ]] || [[ $restoreerr -lt "1" ]]; then
echo -e "\nRestore successful."
rebootmsg
elif [[ $restoreerr == "1" ]]; then
echo -e "\nThere was $restoreerr restore error!"
else
echo -e "\nThere were $restoreerr restore errors!"
fi
else
echo -e "Nothing to restore."
fi
}
if [[ $restore == "yes" ]]; then
echo ""
restore_orig
echo ""
exit
fi
#----------------------------------------------------------
# Check currently enabled expansion units
supported_eunits=("DX517" "DX513" "DX213" "DX510" "RX418" "RX415" "RX410" \
"RX1217rp" "RX1217" "RX1214rp" "RX1214" "RX1211rp" "RX1211" \
"DX1215II" "DX1215" "DX1211")
check_modeldtb(){
# $1 is DX517 or RX418 etc
if [[ -f "${dtb2_file}" ]]; then
if grep -q "$1"'\b' "${dtb2_file}"; then
echo -e "${Cyan}$1${Off} is enabled in ${Yellow}${dtb2_file}${Off}" >& 2
else
echo -e "${Cyan}$1${Off} is ${Cyan}not${Off} enabled in ${Yellow}${dtb2_file}${Off}" >& 2
fi
fi
if [[ -f "${dtb_file}" ]]; then
if grep -q "$1"'\b' "${dtb_file}"; then
echo -e "${Cyan}$1${Off} is enabled in ${Yellow}${dtb_file}${Off}" >& 2
else
echo -e "${Cyan}$1${Off} is ${Cyan}not${Off} enabled in ${Yellow}${dtb_file}${Off}" >& 2
fi
fi
}
check_enabled(){
echo ""
for e in "${supported_eunits[@]}"; do
if grep -q "$e"'\b' "${dtb_file}"; then
check_modeldtb "${e#Synology-}"
fi
done
echo ""
}
if [[ $check == "yes" ]]; then
#echo ""
check_enabled
exit
fi
#------------------------------------------------------------------------------
# Enable unsupported Synology expansion units
backupdb(){
# Backup file if needed
if [[ -f "$1" ]]; then
if [[ ! -f "$1.bak" ]]; then
if [[ $(basename "$1") == "synoinfo.conf" ]]; then
echo "" >&2 # Formatting for stdout
fi
if [[ $2 == "long" ]]; then
fname="$1"
else
fname=$(basename -- "${1}")
fi
if cp -p "$1" "$1.bak"; then
echo -e "Backed up ${fname}" >&2
else
echo -e "${Error}ERROR 5${Off} Failed to backup ${fname}!" >&2
return 1
fi
fi
# Fix permissions if needed
octal=$(stat -c "%a %n" "$1" | cut -d" " -f1)
if [[ ! $octal -eq 644 ]]; then
chmod 644 "$1"
fi
else
echo -e "${Error}ERROR 5${Off} File not found: ${1}!" >&2
return 1
fi
return 0
}
dts_ebox(){
# $1 is the ebox model
# $2 is the dts file
# Remove last }; so we can append to dts file
sed -i '/^};/d' "$2"
# Append expansion unit node to dts file
if [[ $1 == DX517 ]] || [[ $1 == DX513 ]] || [[ $1 == DX510 ]]; then
cat >> "$2" <<EODX5bay
$1 {
compatible = "Synology";
model = "synology_${1,,}";
pmp_slot@1 {
libata {
EMID = <0x00>;
pmp_link = <0x00>;
};
};
pmp_slot@2 {
libata {
EMID = <0x00>;
pmp_link = <0x01>;
};
};
pmp_slot@3 {
libata {
EMID = <0x00>;
pmp_link = <0x02>;
};
};
pmp_slot@4 {
libata {
EMID = <0x00>;
pmp_link = <0x03>;
};
};
pmp_slot@5 {
libata {
EMID = <0x00>;
pmp_link = <0x04>;
};
};
};
};
EODX5bay
elif [[ $1 == DX213 ]]; then
cat >> "$2" <<EODX213
$1 {
compatible = "Synology";
model = "synology_${1,,}";
pmp_slot@1 {
libata {
EMID = <0x00>;
pmp_link = <0x00>;
};
};
pmp_slot@2 {
libata {
EMID = <0x00>;
pmp_link = <0x01>;
};
};
};
};
EODX213
elif [[ $1 == RX418 ]] || [[ $1 == RX415 ]] || [[ $1 == RX410 ]]; then
cat >> "$2" <<EORX4bay
$1 {
compatible = "Synology";
model = "synology_${1,,}";
pmp_slot@1 {
libata {
EMID = <0x00>;
pmp_link = <0x00>;
};
};
pmp_slot@2 {
libata {
EMID = <0x00>;
pmp_link = <0x01>;
};
};
pmp_slot@3 {
libata {
EMID = <0x00>;
pmp_link = <0x02>;
};
};
pmp_slot@4 {
libata {
EMID = <0x00>;
pmp_link = <0x03>;
};
};
};
};
EORX4bay
elif [[ ${_12bays[*]} =~ $1 ]]; then
cat >> "$2" <<EORX12bay
$1 {
compatible = "Synology";
model = "synology_rx1217rp";
pmp_slot@1 {
libata {
EMID = <0x00>;
pmp_link = <0x00>;
};
};
pmp_slot@2 {
libata {
EMID = <0x00>;
pmp_link = <0x01>;
};
};
pmp_slot@3 {
libata {
EMID = <0x00>;
pmp_link = <0x02>;
};
};
pmp_slot@4 {
libata {
EMID = <0x01>;
pmp_link = <0x00>;
};
};
pmp_slot@5 {
libata {
EMID = <0x01>;
pmp_link = <0x01>;
};
};
pmp_slot@6 {
libata {
EMID = <0x01>;
pmp_link = <0x02>;
};
};
pmp_slot@7 {
libata {
EMID = <0x02>;
pmp_link = <0x00>;
};
};
pmp_slot@8 {
libata {
EMID = <0x02>;
pmp_link = <0x01>;
};
};
pmp_slot@9 {
libata {
EMID = <0x02>;
pmp_link = <0x02>;
};
};
pmp_slot@10 {
libata {
EMID = <0x03>;
pmp_link = <0x00>;
};
};
pmp_slot@11 {
libata {
EMID = <0x03>;
pmp_link = <0x01>;
};
};
pmp_slot@12 {
libata {
EMID = <0x03>;
pmp_link = <0x02>;
};
};
};
};
EORX12bay
fi
}
install_binfile(){
# install_binfile <file> <file-url> <destination> <chmod> <bundled-path> <hash>
# example:
# file_url="https://raw.githubusercontent.com/${repo}/main/bin/dtc"
# install_binfile dtc "$file_url" /usr/bin/dtc a+x bin/dtc
if [[ -f "${scriptpath}/$5" ]]; then
binfile="${scriptpath}/$5"
echo -e "\nInstalling ${1}"
elif [[ -f "${scriptpath}/$(basename -- "$5")" ]]; then
binfile="${scriptpath}/$(basename -- "$5")"
echo -e "\nInstalling ${1}"
else
# Download binfile
if [[ $autoupdate == "yes" ]]; then
reply=y
else
echo -e "\nNeed to download ${1}"
echo -e "${Cyan}Do you want to download ${1}?${Off} [y/n]"
read -r -t 30 reply
fi
if [[ ${reply,,} == "y" ]]; then
echo -e "\nDownloading ${1}"
if ! curl -kL -m 30 --connect-timeout 5 "$2" -o "/tmp/$1"; then
echo -e "${Error}ERROR${Off} Failed to download ${1}!"
#return
exit 1 # Failed to download binfile
fi
binfile="/tmp/${1}"
printf "Downloaded md5: "
md5sum -b "$binfile" | awk '{print $1}'
md5=$(md5sum -b "$binfile" | awk '{print $1}')
if [[ $md5 != "$6" ]]; then
echo "Expected md5: $6"
echo -e "${Error}ERROR${Off} Downloaded $1 md5 hash does not match!"
exit 1 # Downloaded $1 md5 hash does not match
fi
else
echo -e "${Error}ERROR${Off} Cannot add expansion unit without ${1}!"
exit 1 # User answered no
fi
fi
# Set binfile executable
chmod "$4" "$binfile"
# Copy binfile to destination
cp -p "$binfile" "$3"
}
edit_modeldtb(){
# $1 is ebox model
if [[ -f /etc.defaults/model.dtb ]]; then # Is device tree model
# Check if dtc exists and is executable
if [[ ! -x $(which dtc) ]]; then
md5hash="01381dabbe86e13a2f4a8017b5552918"
branch="main"
file_url="https://raw.githubusercontent.com/${repo}/${branch}/bin/dtc"
# install_binfile <file> <file-url> <destination> <chmod> <bundled-path> <hash>
install_binfile dtc "$file_url" /usr/sbin/dtc "a+x" bin/dtc "$md5hash"
fi
# Check again if dtc exists and is executable
if [[ -x /usr/sbin/dtc ]]; then
# Backup model.dtb
backupdb "$dtb_file" || exit 1 # Failed to backup model.dtb
# Output model.dtb to model.dts
dtc -q -I dtb -O dts -o "$dts_file" "$dtb_file" # -q Suppress warnings
chmod 644 "$dts_file"
# Edit model.dts
for c in "${eboxes[@]}"; do
# Edit model.dts if needed
if ! grep -q "$c"'\b' "$dtb_file"; then
dts_ebox "$c" "$dts_file"
echo -e "Added ${Cyan}$c${Off} to ${Yellow}model${hwrev}.dtb${Off}" >&2
reboot=yes
else
echo -e "${Cyan}$c${Off} already enabled in ${Yellow}model${hwrev}.dtb${Off}" >&2
fi
done
# Compile model.dts to model.dtb
dtc -q -I dts -O dtb -o "$dtb_file" "$dts_file" # -q Suppress warnings
# Set owner and permissions for model.dtb
chmod a+r "$dtb_file"
chown root:root "$dtb_file"
cp -pu "$dtb_file" "$dtb2_file" # Copy dtb file to /etc
else
echo -e "${Error}ERROR${Off} Missing /usr/sbin/dtc or not executable!" >&2
exit
fi
fi
}
#------------------------------------------------------------------------------
# Select expansion unit to enable
# Show currently enabled eunit(s)
check_enabled
enable_eunit(){
case "$choice" in
DX517|DX513|DX510)
eboxes=("$choice") && edit_modeldtb
return
;;
DX213)
eboxes=("$choice") && edit_modeldtb
return
;;
RX418|RX415|RX410)
eboxes=("$choice") && edit_modeldtb
return
;;
RX1217rp|RX1214rp|RX1211rp)
eboxes=("$choice")
eboxes+=("${choice//rp}") # Also add non-RP model
edit_modeldtb
return
;;
RX1217|RX1214|RX1211)
eboxes=("$choice") && edit_modeldtb
return
;;
DX1215II|DX1215|DX1211)
eboxes=("$choice") && edit_modeldtb
return
;;
Check)
check_enabled
exit
;;
Restore)
restore_orig
return
;;
Quit) exit ;;
"") echo "Invalid Choice!" ;;
*)
echo -e "$choice not supported yet"
exit
;;
esac
}
_12bays=("RX1217rp" "RX1217" "RX1214rp" "RX1214" "RX1211rp" "RX1211" \
"DX1215II" "DX1215" "DX1211")
eunits=("DX517" "DX513" "DX213" "DX510" "RX418" "RX415" "RX410" \
"RX1217rp" "RX1217" "RX1214rp" "RX1214" "RX1211rp" "RX1211" \
"DX1215II" "DX1215" "DX1211" \
"Restore" "Quit")
if [[ -n $unit ]]; then
# Expansion Unit supplied as argument
if [[ ${eunits[*]} =~ ${unit} ]]; then
choice="${unit}"
echo -e "$choice selected\n"
enable_eunit
else
echo -e "Unsupported expansion unit argument: $unit\n"
exit 2 # Unsupported expansion unit argument
fi
else
PS3="Select your Expansion Unit: "
select choice in "${eunits[@]}"; do
echo -e "You selected $choice \n"
enable_eunit
break
done
fi
#echo ""
#------------------------------------------------------------------------------
# Finished
if [[ $reboot == "yes" ]]; then
rebootmsg
else
echo -e "\nFinished"
fi
| 32,984 | syno_enable_eunit | sh | en | shell | code | {"qsc_code_num_words": 3774, "qsc_code_num_chars": 32984.0, "qsc_code_mean_word_length": 4.25702173, "qsc_code_frac_words_unique": 0.15527292, "qsc_code_frac_chars_top_2grams": 0.02271879, "qsc_code_frac_chars_top_3grams": 0.01742811, "qsc_code_frac_chars_top_4grams": 0.02614216, "qsc_code_frac_chars_dupe_5grams": 0.35428856, "qsc_code_frac_chars_dupe_6grams": 0.2833935, "qsc_code_frac_chars_dupe_7grams": 0.25401469, "qsc_code_frac_chars_dupe_8grams": 0.20316196, "qsc_code_frac_chars_dupe_9grams": 0.17533923, "qsc_code_frac_chars_dupe_10grams": 0.15647952, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03958708, "qsc_code_frac_chars_whitespace": 0.34213558, "qsc_code_size_file_byte": 32984.0, "qsc_code_num_lines": 1116.0, "qsc_code_num_chars_line_max": 112.0, "qsc_code_num_chars_line_mean": 29.55555556, "qsc_code_frac_chars_alphabet": 0.70081571, "qsc_code_frac_chars_comments": 0.1990359, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.51108214, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00521512, "qsc_code_frac_chars_string_length": 0.25425846, "qsc_code_frac_chars_long_word_length": 0.0470134, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.00734348, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_enable_Deduplication | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007gzs/meeting | miniprogram/pages/room/list.wxml | <!--pages/room/list.wxml-->
<view class="page">
<view class="head">
<block wx:for="{{tabs}}" wx:key="*this">
<view id="{{index}}" class="weui-navbar__item {{activeIndex == index ? 'weui-bar__item_on' : ''}}" bindtap="tabClick">
<view class="weui-navbar__title">{{item}}</view>
</view>
</block>
</view>
<view class="body">
<view class="weui-tab__panel page__bd_spacing content">
<view class="weui-tab__content">
<block wx:if="{{rooms[activeIndex] == null}}"></block>
<view class="weui-panel weui-panel_access" wx:elif="{{rooms[activeIndex].length > 0}}">
<block wx:if="{{activeIndex == 2}}">
<view class="weui-cells__title">请选择要分享的会议室</view>
<view class="weui-cells weui-cells_after-title">
<checkbox-group bindchange="shareSelectChange">
<label class="weui-cell weui-check__label" wx:for="{{rooms[activeIndex]}}" wx:key="id">
<checkbox class="weui-check" value="{{item.id}}" checked="{{item.checked}}"/>
<view class="weui-cell__hd weui-check__hd_in-checkbox">
<icon class="weui-icon-checkbox_circle" type="circle" size="23" wx:if="{{!item.checked}}"></icon>
<icon class="weui-icon-checkbox_success" type="success" size="23" wx:if="{{item.checked}}"></icon>
</view>
<view class="weui-cell__bd">{{item.name}}</view>
</label>
</checkbox-group>
</view>
</block>
<view wx:else class="weui-panel__bd">
<block wx:for="{{rooms[activeIndex]}}" wx:key="id">
<view id="{{item.id}}" bindtap='detail' class="weui-media-box weui-media-box_text" hover-class="weui-cell_active">
<view class="weui-media-box__bd weui-media-box__bd_in-appmsg">
<view class="weui-media-box__title weui-media-box__title_in-text">{{item.name}}</view>
<view class="weui-media-box__desc">{{item.description}}</view>
</view>
</view>
</block>
</view>
</view>
<view wx:else>
没有{{tags[activeIndex]}}会议室,请先创建
</view>
</view>
</view>
</view>
<view class="weui-footer foot">
<view class='buttons'>
<button class="weui-btn" type="primary" plain="true" bindtap="create" wx:if="{{activeIndex == 1}}">创建</button>
<button class="weui-btn" type="primary" plain="true" bindtap="reserve" wx:if="{{activeIndex == 0 && rooms[0].length > 0}}">预约</button>
<button class="weui-btn" type="primary" plain="true" bindtap="my" wx:if="{{activeIndex == 0}}">我的会议</button>
<button class="weui-btn" type="primary" plain="true" open-type="share" disabled="{{shareSelect.length == 0}}" wx:if="{{activeIndex == 2}}">分享</button>
</view>
</view>
</view>
| 2,901 | list | wxml | en | unknown | unknown | {} | 0 | {} |
007gzs/meeting | miniprogram/pages/room/detail.wxml | <wxs module="timeUtils" src="../../utils/timeUtils.wxs"></wxs>
<!--pages/room/detail.wxml-->
<view class="page">
<view class="page__hd">
<view class='weui-cell'>
<view class='weui-cell__bd'>
<view class="page__title">{{info.name}}</view>
<view class="page__desc">{{info.description}}</view>
</view>
<view class="weui-cell__ft">
<button class="weui-btn" size="mini" bindtap='history' wx:if="{{owner}}">查看历史</button>
<button class="weui-btn" size="mini" bindtap='home' style="margin-left:10rpx" wx:if="{{show_home}}">返回首页</button>
</view>
</view>
</view>
<date_select id="date_select" bindchange="date_select_change"></date_select>
<view class="page_bd page__bd_spacing body-with-footer">
<block wx:for="{{meetings}}" wx:key="id">
<view class='meeting-item weui-form-preview' id="{{item.id}}" bindtap='detail'>
<view class="weui-form-preview__hd">
<view class="weui-form-preview__item">
<view class="weui-form-preview__label">预定时间</view>
<view class="weui-form-preview__value_in-hd">{{timeUtils.formatTime(item.start_time)}} - {{timeUtils.formatTime(item.end_time)}}</view>
</view>
</view>
<view class="weui-form-preview__bd">
<view class="weui-form-preview__item">
<view class="weui-form-preview__label">名称</view>
<view class="weui-form-preview__value">{{item.name}}</view>
</view>
<view class="weui-form-preview__item">
<view class="weui-form-preview__label">描述</view>
<view class="weui-form-preview__value">{{item.description}}</view>
</view>
</view>
</view>
</block>
</view>
<view class="weui-footer footer">
<view class="weui-flex">
<view class="weui-flex__item">
<button size="mini" open-type="share">分享</button>
</view>
<view class="weui-flex__item">
<button size="mini" bindtap='reserve'>预约</button>
</view>
<view class="weui-flex__item">
<button size="mini" bindtap='unfollow' wx:if="{{info.is_follow}}">取消关注</button>
<button size="mini" bindtap='follow' wx:else>关注</button>
</view>
<view class="weui-flex__item" vx:if="{{info.qr_code}}">
<button size="mini" bindtap='show_qrcode'>二维码</button>
</view>
<block wx:if="{{owner}}">
<view class="weui-flex__item">
<button size="mini" bindtap='edit'>修改</button>
</view>
<view class="weui-flex__item">
<button size="mini" bindtap='del'>删除</button>
</view>
</block>
</view>
</view>
</view>
<modal class="modal" hidden="{{!show_qr_code}}" no-cancel bindconfirm="hide_qrcode" confirmText="确定" title="{{info.name}} 专属二维码">
<view class="dew">
<image class="qr_code" src="{{info.qr_code}}" mode="aspectFit" show-menu-by-longpress></image>
<view class="vedw">长按二维码可保存到相册</view>
</view>
</modal> | 2,983 | detail | wxml | en | unknown | unknown | {} | 0 | {} |
007gzs/meeting | miniprogram/pages/room/edit.wxml | <!--pages/room/edit.wxml-->
<view class="page">
<view class="page_bd page__bd_spacing weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_input">
<view class="weui-cell__hd">
<view class="weui-label">名称</view>
</view>
<view class="weui-cell__bd">
<input class="weui-input" placeholder="请输入名称" value="{{name}}" data-obj="name" bindinput='bindKeyInput'/>
</view>
</view>
<view class="weui-cell weui-cell_input">
<view class="weui-cell__hd">
<view class="weui-label">描述</view>
</view>
<view class="weui-cell__bd">
<input class="weui-input" placeholder="请输入描述" value="{{description}}" data-obj="description" bindinput='bindKeyInput'/>
</view>
</view>
<view class="weui-cells weui-cells_after-title">
<view class="weui-cell weui-cell_switch">
<view class="weui-cell__bd">创建者权限</view>
<view class="weui-cell__ft">
<switch checked='{{create_user_manager}}' bindchange='create_user_manager_change'/>
</view>
</view>
</view>
<view class="weui-cells__tips" wx:if="{{create_user_manager}}">勾选后会议室创建者可以修改该会议室的会议内容及取消会议(不可取消),为防止误操作,建议需要使用时勾选,使用完成后取消该权限</view>
<block wx:if="{{!user_info.avatarurl}}">
<view class="weui-cells__title">需要通过微信授权获得你的微信名和头像</view>
<button class="weui-btn" open-type="getUserInfo" lang="zh_CN" bindgetuserinfo="onGetUserInfo">授权登录</button>
</block>
<button class="weui-btn" type="primary" bindtap="save" wx:else>保存</button>
</view>
</view>
| 1,586 | edit | wxml | en | unknown | unknown | {} | 0 | {} |
007gzs/meeting | miniprogram/pages/room/detail.js | "use strict";
// pages/room/detail.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
room_id: 0,
show_home: false,
owner: false,
info: {},
meetings: [],
},
refresh: function () {
app.api.api_meeting_room_info({ room_id: this.data.room_id }).then(res => {
this.setData({ info: res })
app.userInfo().then(res => {
this.setData({ owner: res.id == this.data.info.create_user })
})
})
app.api.api_meeting_room_meetings({
room_ids: this.data.room_id,
date: this.selectComponent("#date_select").data.select_date
}).then(res => {
this.selectComponent("#date_select").setDateRange(res.start_date, res.end_date)
this.setData({
meetings: res.meetings,
history_limit_start: res.history_start_date,
history_limit_end: res.history_end_date
})
})
},
hide_qrcode: function () {
this.setData({
show_qr_code: false
})
},
show_qrcode: function(){
this.setData({
show_qr_code:true
})
// wx.previewImage({
// current: this.data.info.qr_code,
// urls: [this.data.info.qr_code]
// })
},
home: function(){
app.gotoHome()
},
date_select_change: function (e) {
this.refresh()
},
reserve: function(){
wx.navigateTo({
url: '../meeting/reserve?room_ids=' + this.data.room_id + "&date=" + this.selectComponent("#date_select").data.select_date
})
},
history: function(){
wx.navigateTo({
url: '../room/history?room_id=' + this.data.room_id
})
},
unfollow: function(){
app.api.api_meeting_room_un_follow({ room_id: this.data.room_id}).then(res => {
this.data.info.is_follow = false
this.setData({info: this.data.info})
})
},
follow: function(){
app.api.api_meeting_room_follow({ room_id: this.data.room_id }).then(res => {
this.data.info.is_follow = true
this.setData({ info: this.data.info })
})
},
edit: function(){
wx.navigateTo({
url: 'edit?room_id=' + this.data.room_id
})
},
del: function() {
wx.showModal({
title: '提示',
content: '确定要删除吗?',
success: sm => {
if (sm.confirm) {
app.api.api_meeting_room_delete({ room_id: this.data.room_id }).then(res => {
wx.navigateBack()
})
}
}
})
},
detail: function (e) {
wx.navigateTo({
url: '../meeting/detail?meeting_id=' + e.currentTarget.id
})
},
formatNumber: function(n) {
n = n.toString()
return n[1] ? n : '0' + n
},
dateId: function(date){
const year = date.getFullYear()
const month = date.getMonth() + 1
const day = date.getDate()
return [year, month, day].map(this.formatNumber).join('-')
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let now = app.nowDate()
this.setData({
show_home: getCurrentPages().length == 1,
history_end: this.dateId(now),
history_start: this.dateId(new Date(now.setDate(now.getDate() - 7)))
})
const scene = decodeURIComponent(options.scene)
let room_id = ''
scene.split("&").map(s => {
if(s.substring(0, s.indexOf("=")) == "room_id"){
room_id = s.substring(s.indexOf("=") + 1, s.length)
}
})
let from_scene = false
if(room_id){
from_scene = true
}else{
room_id = options.room_id
}
if(options.date){
this.selectComponent("#date_select").setData({ select_date: options.date })
}
if (room_id) {
this.setData({ room_id: parseInt(room_id) })
if(from_scene){
this.follow()
}
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.refresh()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
/**
* 用户点击右上角分享
*/
onShareAppMessage: function () {
let title = '会议室'
if (this.data.info.name) {
title += " - " + this.data.info.name
}
return {
title: title,
path: '/pages/room/detail?room_id=' + this.data.room_id
}
}
}) | 4,337 | detail | js | en | javascript | code | {"qsc_code_num_words": 490, "qsc_code_num_chars": 4337.0, "qsc_code_mean_word_length": 4.80816327, "qsc_code_frac_words_unique": 0.25714286, "qsc_code_frac_chars_top_2grams": 0.06621392, "qsc_code_frac_chars_top_3grams": 0.04244482, "qsc_code_frac_chars_top_4grams": 0.05348048, "qsc_code_frac_chars_dupe_5grams": 0.28735144, "qsc_code_frac_chars_dupe_6grams": 0.24108659, "qsc_code_frac_chars_dupe_7grams": 0.15704584, "qsc_code_frac_chars_dupe_8grams": 0.12733447, "qsc_code_frac_chars_dupe_9grams": 0.11587436, "qsc_code_frac_chars_dupe_10grams": 0.10271647, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00250862, "qsc_code_frac_chars_whitespace": 0.2646991, "qsc_code_size_file_byte": 4337.0, "qsc_code_num_lines": 201.0, "qsc_code_num_chars_line_max": 129.0, "qsc_code_num_chars_line_mean": 21.57711443, "qsc_code_frac_chars_alphabet": 0.73628097, "qsc_code_frac_chars_comments": 0.08715702, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.2012987, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05353535, "qsc_code_frac_chars_long_word_length": 0.02727273, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 1.0, "qsc_codejavascript_cate_var_zero": 0.0, "qsc_codejavascript_frac_lines_func_ratio": 0.0, "qsc_codejavascript_num_statement_line": 0.01948052, "qsc_codejavascript_score_lines_no_logic": 0.01948052, "qsc_codejavascript_frac_words_legal_var_name": 0.77777778, "qsc_codejavascript_frac_words_legal_func_name": null, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 0, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
007gzs/meeting | miniprogram/pages/room/edit.js | "use strict";
// pages/room/edit.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
user_info: {},
room_id: 0,
name: "",
description: "",
create_user_manager: false
},
refreshInfo: function() {
if (this.data.room_id > 0){
app.api.api_meeting_room_info({ room_id: this.data.room_id}).then(res => {
this.setData({
name: res.name,
description: res.description,
create_user_manager: res.create_user_manager
})
})
}
},
create_user_manager_change: function(e){
this.setData({ create_user_manager: e.detail.value })
},
bindKeyInput: function(e) {
this.data[e.currentTarget.dataset.obj] = e.detail.value
},
onGetUserInfo: function (e) {
app.onGetUserInfo(e).then(res => {
this.setData({ user_info: res })
})
},
save: function() {
if(!this.data.name.trim()){
wx.showToast({
icon: 'none',
title: '请输入名称',
})
return
}
wx.showLoading({
mask: true,
title: '加载中...',
})
if (this.data.room_id > 0) {
app.api.api_meeting_room_edit({
room_id: this.data.room_id,
name: this.data.name,
description: this.data.description,
create_user_manager: this.data.create_user_manager
}).then(res => {
wx.hideLoading()
wx.navigateBack()
}).catch(res => {
wx.hideLoading()
})
} else {
app.api.api_meeting_room_create({
name: this.data.name,
description: this.data.description,
create_user_manager: this.data.create_user_manager
}).then(res => {
wx.hideLoading()
wx.redirectTo({
url: 'detail?room_id='+res.id,
})
}).catch(res => {
wx.hideLoading()
})
}
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
app.userInfo().then(res => {
this.setData({ user_info: res })
})
let room_id = options.room_id
if(room_id){
this.setData({ room_id: parseInt(room_id)})
this.refreshInfo()
}
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.refreshInfo()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
}) | 2,524 | edit | js | en | javascript | code | {"qsc_code_num_words": 259, "qsc_code_num_chars": 2524.0, "qsc_code_mean_word_length": 5.1042471, "qsc_code_frac_words_unique": 0.3011583, "qsc_code_frac_chars_top_2grams": 0.05900151, "qsc_code_frac_chars_top_3grams": 0.11573374, "qsc_code_frac_chars_top_4grams": 0.08472012, "qsc_code_frac_chars_dupe_5grams": 0.31164902, "qsc_code_frac_chars_dupe_6grams": 0.29652042, "qsc_code_frac_chars_dupe_7grams": 0.26626324, "qsc_code_frac_chars_dupe_8grams": 0.22239032, "qsc_code_frac_chars_dupe_9grams": 0.22239032, "qsc_code_frac_chars_dupe_10grams": 0.22239032, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00168824, "qsc_code_frac_chars_whitespace": 0.2959588, "qsc_code_size_file_byte": 2524.0, "qsc_code_num_lines": 132.0, "qsc_code_num_chars_line_max": 81.0, "qsc_code_num_chars_line_mean": 19.12121212, "qsc_code_frac_chars_alphabet": 0.74226224, "qsc_code_frac_chars_comments": 0.10103011, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.31578947, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01762115, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 1.0, "qsc_codejavascript_cate_var_zero": 0.0, "qsc_codejavascript_frac_lines_func_ratio": 0.0, "qsc_codejavascript_num_statement_line": 0.03157895, "qsc_codejavascript_score_lines_no_logic": 0.01052632, "qsc_codejavascript_frac_words_legal_var_name": 0.5, "qsc_codejavascript_frac_words_legal_func_name": null, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 0, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
007gzs/meeting | miniprogram/pages/room/list.js | "use strict";
// pages/room/list.js
const app = getApp()
Page({
/**
* 页面的初始数据
*/
data: {
tags: ["关注", "创建", ""],
tabs: ["我关注的", "我创建的"],
activeIndex: 0,
rooms: [null, null, null],
shareSelect: []
},
refreshShareRooms: function () {
app.api.api_meeting_create_rooms().then(res => {
this.data.rooms[1] = res
app.api.api_meeting_follow_rooms().then(res => {
this.data.rooms[0] = res
this.data.rooms[2] = []
let ids = []
for(let index in [0,1]){
for (let i in this.data.rooms[index]){
if (ids.indexOf(this.data.rooms[index][i].id) < 0){
ids.push(this.data.rooms[index][i].id)
this.data.rooms[index][i].checked = false
this.data.rooms[2].push(this.data.rooms[index][i])
}
}
}
let setdata = {
rooms: this.data.rooms,
tabs: ["我关注的", "我创建的"]
}
if (this.data.rooms[2].length > 1){
setdata.tabs.push("批量分享")
}else if (this.data.activeIndex == 2){
setdata.activeIndex = 0
}
this.setData(setdata)
})
})
},
refresh: function(){
this.refreshShareRooms()
},
reserve: function(e){
wx.navigateTo({
url: '../meeting/reserve',
})
},
shareSelectChange(e){
this.data.shareSelect = e.detail.value.map(n => { return parseInt(n) })
for(let i in this.data.rooms[2]){
this.data.rooms[2][i].checked = this.data.shareSelect.indexOf(this.data.rooms[2][i].id) >= 0
}
this.setData({
shareSelect: this.data.shareSelect,
rooms: this.data.rooms
})
},
my: function (e) {
wx.navigateTo({
url: '../meeting/my',
})
},
create: function(e){
wx.navigateTo({
url: 'edit',
})
},
detail: function(e){
wx.navigateTo({
url: 'detail?room_id='+e.currentTarget.id
})
},
tabClick: function (e) {
this.setData({
activeIndex: parseInt(e.currentTarget.id),
shareSelect: []
});
this.refresh()
},
adLoad: function (options) {
},
adError: function (options) {
this.setData({ show_ad: false})
},
adClose: function (options) {
this.setData({ show_ad: false })
},
/**
* 生命周期函数--监听页面加载
*/
onLoad: function (options) {
let room_ids = options.room_ids
if (room_ids) {
app.api.api_meeting_room_follow({room_id: room_ids}).then(res => {
this.refresh()
})
}
app.config().then(res => {
if (res.banner_ad_unit_id){
let data = {}
data.ad_unit_id = res.banner_ad_unit_id
data.show_ad = true
if (res.banner_ad_intervals){
data.ad_intervals = res.banner_ad_intervals
}
this.setData(data)
}
})
},
/**
* 生命周期函数--监听页面初次渲染完成
*/
onReady: function () {
},
/**
* 生命周期函数--监听页面显示
*/
onShow: function () {
this.refresh()
},
/**
* 生命周期函数--监听页面隐藏
*/
onHide: function () {
},
/**
* 生命周期函数--监听页面卸载
*/
onUnload: function () {
},
/**
* 页面相关事件处理函数--监听用户下拉动作
*/
onPullDownRefresh: function () {
},
/**
* 页面上拉触底事件的处理函数
*/
onReachBottom: function () {
},
onShareAppMessage: function () {
if (this.data.shareSelect.length == 0) {
return {}
}
let title = []
for(let i in this.data.rooms[2]){
if (this.data.shareSelect.indexOf(this.data.rooms[2][i].id) >= 0){
title.push(this.data.rooms[2][i].name)
}
}
return {
title: title.join(" "),
path: '/pages/room/list?room_ids=' + this.data.shareSelect.join(",")
}
}
})
| 3,645 | list | js | en | javascript | code | {"qsc_code_num_words": 405, "qsc_code_num_chars": 3645.0, "qsc_code_mean_word_length": 4.7037037, "qsc_code_frac_words_unique": 0.24444444, "qsc_code_frac_chars_top_2grams": 0.10498688, "qsc_code_frac_chars_top_3grams": 0.12283465, "qsc_code_frac_chars_top_4grams": 0.06614173, "qsc_code_frac_chars_dupe_5grams": 0.28451444, "qsc_code_frac_chars_dupe_6grams": 0.21574803, "qsc_code_frac_chars_dupe_7grams": 0.12073491, "qsc_code_frac_chars_dupe_8grams": 0.07034121, "qsc_code_frac_chars_dupe_9grams": 0.04619423, "qsc_code_frac_chars_dupe_10grams": 0.04619423, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00813953, "qsc_code_frac_chars_whitespace": 0.29218107, "qsc_code_size_file_byte": 3645.0, "qsc_code_num_lines": 173.0, "qsc_code_num_chars_line_max": 99.0, "qsc_code_num_chars_line_mean": 21.06936416, "qsc_code_frac_chars_alphabet": 0.73023256, "qsc_code_frac_chars_comments": 0.06995885, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.18518519, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.03303835, "qsc_code_frac_chars_long_word_length": 0.00766962, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codejavascript_cate_ast": 1.0, "qsc_codejavascript_cate_var_zero": 0.0, "qsc_codejavascript_frac_lines_func_ratio": 0.0, "qsc_codejavascript_num_statement_line": 0.02222222, "qsc_codejavascript_score_lines_no_logic": 0.02962963, "qsc_codejavascript_frac_words_legal_var_name": 0.9, "qsc_codejavascript_frac_words_legal_func_name": null, "qsc_codejavascript_frac_words_legal_class_name": null, "qsc_codejavascript_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codejavascript_cate_ast": 0, "qsc_codejavascript_cate_var_zero": 0, "qsc_codejavascript_frac_lines_func_ratio": 0, "qsc_codejavascript_score_lines_no_logic": 0, "qsc_codejavascript_frac_lines_print": 0} |
007revad/Plex_Server_Sync | plex_server_sync.config | #-------------------------------------------------------------------------
# User settings config file for Plex_Server_Sync.sh
#
# https://github.com/007revad/Plex_Server_Sync
#-------------------------------------------------------------------------
# Local machine's IP or hostname and OS
# OS can be ADM, DSM6, DSM7 or Linux (required to stop/start local Plex)
src_IP=192.168.0.70
src_OS=DSM7
# Local Plex is docker - set to no or blank if not Plex docker
src_Docker=no
# Local Plex container name
src_Docker_plex_name="plexinc-pms-docker-1"
# Location of local Plex data folder
#src_Directory="/volume1/docker/plex/Library/Application Support"
src_Directory="/volume1/PlexMediaServer/AppData/Plex Media Server"
# Local user with SSH keys and sudoers setup
src_User=Bob
# Destination machine's IP or hostname and OS
# OS can be ADM, DSM6, DSM7 or Linux (required to stop/start remote Plex)
dst_IP=192.168.0.60
dst_OS=DSM6
# Destination Plex is docker - set to no or blank if not Plex docker
dst_Docker=no
# Destination Plex container name
dst_Docker_plex_name="plexinc-pms-docker-1"
# Location of destination Plex data folder
#dst_Directory="/volume1/docker/plex/Library/Application Support"
dst_Directory="/volume1/Plex/Library/Application Support/Plex Media Server"
# Remote user with SSH keys and sudoers setup
dst_User=Bob
# Remote SSH port, if blank the default port 22 is used
dst_SshPort=22
# rsync delete extra files from destination [yes/no]
# If left blank you'll be asked "Delete yes/no?"
# If you don't answer within 10 seconds it defaults to no
Delete=yes
# Do an rsync dry run to check results are as expected [yes/no]
# If left blank you'll be asked "Dry Run yes/no?"
# If you don't answer within 10 seconds it defaults to no
DryRun=no
# Set path to save log file. Directory must exist already
# If blank the logs are saved in script location
LogPath=~/plex_server_sync_logs
| 1,910 | plex_server_sync | config | en | xml | data | {"qsc_code_num_words": 310, "qsc_code_num_chars": 1910.0, "qsc_code_mean_word_length": 4.31935484, "qsc_code_frac_words_unique": 0.37096774, "qsc_code_frac_chars_top_2grams": 0.02688574, "qsc_code_frac_chars_top_3grams": 0.02091113, "qsc_code_frac_chars_top_4grams": 0.06497386, "qsc_code_frac_chars_dupe_5grams": 0.46153846, "qsc_code_frac_chars_dupe_6grams": 0.46153846, "qsc_code_frac_chars_dupe_7grams": 0.46153846, "qsc_code_frac_chars_dupe_8grams": 0.34055265, "qsc_code_frac_chars_dupe_9grams": 0.34055265, "qsc_code_frac_chars_dupe_10grams": 0.23749066, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02495435, "qsc_code_frac_chars_whitespace": 0.13979058, "qsc_code_size_file_byte": 1910.0, "qsc_code_num_lines": 61.0, "qsc_code_num_chars_line_max": 76.0, "qsc_code_num_chars_line_mean": 31.31147541, "qsc_code_frac_chars_alphabet": 0.79001826, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.09090909, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.1434555, "qsc_code_frac_chars_long_word_length": 0.07853403, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_words_unique": 1, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0} |
007revad/Plex_Server_Sync | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007gzs/dingtalk-sdk | tests/test_crypto.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import unittest
import json
from dingtalk import crypto as _crypto
from dingtalk.crypto import DingTalkCrypto
class PrpCryptoMock(_crypto.PrpCrypto):
def get_random_string(self):
return '1234567890123456'
class CryptoTestCase(unittest.TestCase):
token = '123456'
encoding_aes_key = '4g5j64qlyl3zvetqxz5jiocdr586fn2zvjpa8zls3ij'
suite_key = 'suite4xxxxxxxxxxxxxxx'
def test_encrypt_message(self):
origin_crypto = _crypto.PrpCrypto
_crypto.PrpCrypto = PrpCryptoMock
nonce = 'nEXhMP4r'
timestamp = '1445827045067'
msg = """{"EventType":"check_create_suite_url","Random":"LPIdSnlF","TestSuiteKey":"suite4xxxxxxxxxxxxxxx"}"""
expected = {
'msg_signature': 'bcf6dcefa4ce2dbaf7b0666c7264d46fd9aad4bd',
'encrypt': '5DJFWzjRNOQk+5GSZxW+VrFMDWCIidPjEjg3//gm5x556BedVi62rDj1F9uXU97a4jw1R4FACUv9RCpoDobNqxhxRB2Yt'
'W901k4KHbP1/wpFJ3xdLG0n0A8U1VhENg80zKJd+YROR0YMGum4WYuoXJ6J98vt0ihYeIFoapNddLML5MyNAGM9saSpko'
'uDMSvD+iU14i7V8ix1ia1Tb9ogog==',
'timeStamp': '1445827045067',
'nonce': 'nEXhMP4r'
}
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
encrypted = crypto.encrypt_message(msg, nonce, timestamp)
_crypto.PrpCrypto = origin_crypto
self.assertEqual(expected.keys(), encrypted.keys())
for key in expected.keys():
self.assertEqual(expected[key], encrypted[key])
def test_decrypt_message(self):
from dingtalk.core.utils import to_text
jsonstr = '{"encrypt":"1a3NBxmCFwkCJvfoQ7WhJHB+iX3qHPsc9JbaDznE1i03peOk1LaOQoRz3+nlyGNhwmwJ3vDMG+OzrHMeiZI7g' \
'TRWVdUBmfxjZ8Ej23JVYa9VrYeJ5as7XM/ZpulX8NEQis44w53h1qAgnC3PRzM7Zc/D6Ibr0rgUathB6zRHP8PYrfgnNOS9Ph' \
'SBdHlegK+AGGanfwjXuQ9+0pZcy0w9lQ=="}'
signature = '5a65ceeef9aab2d149439f82dc191dd6c5cbe2c0'
timestamp = '1445827045067'
nonce = 'nEXhMP4r'
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
msg = crypto.decrypt_message(jsonstr, signature, timestamp, nonce)
msg_dict = json.loads(to_text(msg))
self.assertEqual('check_create_suite_url', msg_dict['EventType'])
self.assertEqual('LPIdSnlF', msg_dict['Random'])
self.assertEqual(self.suite_key, msg_dict['TestSuiteKey'])
def test_decrypt_binary_message(self):
from dingtalk.core.utils import to_text
jsonbinary = b'{"encrypt":"1a3NBxmCFwkCJvfoQ7WhJHB+iX3qHPsc9JbaDznE1i03peOk1LaOQoRz3+nlyGNhwmwJ3vDMG+OzrHMei' \
b'ZI7gTRWVdUBmfxjZ8Ej23JVYa9VrYeJ5as7XM/ZpulX8NEQis44w53h1qAgnC3PRzM7Zc/D6Ibr0rgUathB6zRHP8PYrf' \
b'gnNOS9PhSBdHlegK+AGGanfwjXuQ9+0pZcy0w9lQ=="}'
signature = '5a65ceeef9aab2d149439f82dc191dd6c5cbe2c0'
timestamp = '1445827045067'
nonce = 'nEXhMP4r'
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
msg = crypto.decrypt_message(jsonbinary, signature, timestamp, nonce)
msg_dict = json.loads(to_text(msg))
self.assertEqual('check_create_suite_url', msg_dict['EventType'])
self.assertEqual('LPIdSnlF', msg_dict['Random'])
self.assertEqual(self.suite_key, msg_dict['TestSuiteKey'])
def test_decrypt_encrypt_str(self):
from dingtalk.core.utils import to_text
signature = '5a65ceeef9aab2d149439f82dc191dd6c5cbe2c0'
timestamp = '1445827045067'
nonce = 'nEXhMP4r'
encrypt_str = '1a3NBxmCFwkCJvfoQ7WhJHB+iX3qHPsc9JbaDznE1i03peOk1LaOQoRz3+nlyGNhwmwJ3vDMG+OzrHMeiZI7gTRWVdUBm' \
'fxjZ8Ej23JVYa9VrYeJ5as7XM/ZpulX8NEQis44w53h1qAgnC3PRzM7Zc/D6Ibr0rgUathB6zRHP8PYrfgnNOS9PhSBdH' \
'legK+AGGanfwjXuQ9+0pZcy0w9lQ=='
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
msg = crypto.decrypt_encrypt_str(
signature,
timestamp,
nonce,
encrypt_str
)
msg_dict = json.loads(to_text(msg))
self.assertEqual('check_create_suite_url', msg_dict['EventType'])
self.assertEqual('LPIdSnlF', msg_dict['Random'])
self.assertEqual(self.suite_key, msg_dict['TestSuiteKey'])
def test_decrypt_encrypt_binary(self):
from dingtalk.core.utils import to_text
signature = '5a65ceeef9aab2d149439f82dc191dd6c5cbe2c0'
timestamp = '1445827045067'
nonce = 'nEXhMP4r'
encrypt_str = b'1a3NBxmCFwkCJvfoQ7WhJHB+iX3qHPsc9JbaDznE1i03peOk1LaOQoRz3+nlyGNhwmwJ3vDMG+OzrHMeiZI7gTRWVdUB' \
b'mfxjZ8Ej23JVYa9VrYeJ5as7XM/ZpulX8NEQis44w53h1qAgnC3PRzM7Zc/D6Ibr0rgUathB6zRHP8PYrfgnNOS9PhSB' \
b'dHlegK+AGGanfwjXuQ9+0pZcy0w9lQ=='
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
msg = crypto.decrypt_encrypt_str(
signature,
timestamp,
nonce,
encrypt_str
)
msg_dict = json.loads(to_text(msg))
self.assertEqual('check_create_suite_url', msg_dict['EventType'])
self.assertEqual('LPIdSnlF', msg_dict['Random'])
self.assertEqual(self.suite_key, msg_dict['TestSuiteKey'])
def test_decrypt_encrypt_str_should_fail(self):
from dingtalk.core.exceptions import InvalidSignatureException
signature = '5a65ceeef9aab2d149439f82dc191dd6c5cbe2c0'
timestamp = '1445827045067'
nonce = 'xxxxx'
encrypt_str = b'1a3NBxmCFwkCJvfoQ7WhJHB+iX3qHPsc9JbaDznE1i03peOk1LaOQoRz3+nlyGNhwmwJ3vDMG+OzrHMeiZI7gTRWVdUB' \
b'mfxjZ8Ej23JVYa9VrYeJ5as7XM/ZpulX8NEQis44w53h1qAgnC3PRzM7Zc/D6Ibr0rgUathB6zRHP8PYrfgnNOS9PhSB' \
b'dHlegK+AGGanfwjXuQ9+0pZcy0w9lQ=='
crypto = DingTalkCrypto(self.token, self.encoding_aes_key, self.suite_key)
self.assertRaises(
InvalidSignatureException,
crypto.decrypt_encrypt_str,
signature, timestamp, nonce, encrypt_str
)
| 6,204 | test_crypto | py | en | python | code | {"qsc_code_num_words": 519, "qsc_code_num_chars": 6204.0, "qsc_code_mean_word_length": 8.09441233, "qsc_code_frac_words_unique": 0.20809249, "qsc_code_frac_chars_top_2grams": 0.02666032, "qsc_code_frac_chars_top_3grams": 0.02856463, "qsc_code_frac_chars_top_4grams": 0.02856463, "qsc_code_frac_chars_dupe_5grams": 0.58462271, "qsc_code_frac_chars_dupe_6grams": 0.56653178, "qsc_code_frac_chars_dupe_7grams": 0.56653178, "qsc_code_frac_chars_dupe_8grams": 0.56653178, "qsc_code_frac_chars_dupe_9grams": 0.56653178, "qsc_code_frac_chars_dupe_10grams": 0.53225423, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.09682736, "qsc_code_frac_chars_whitespace": 0.21760155, "qsc_code_size_file_byte": 6204.0, "qsc_code_num_lines": 139.0, "qsc_code_num_chars_line_max": 120.0, "qsc_code_num_chars_line_mean": 44.63309353, "qsc_code_frac_chars_alphabet": 0.76864442, "qsc_code_frac_chars_comments": 0.00338491, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.51785714, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.34832551, "qsc_code_frac_chars_long_word_length": 0.29331823, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.13392857, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0625, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.08928571, "qsc_codepython_frac_lines_simplefunc": 0.008928571428571428, "qsc_codepython_score_lines_no_logic": 0.20535714, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | tests/test_storage.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import unittest
class WeChatSessionTestCase(unittest.TestCase):
def test_dingtalk_cache(self, storage=None):
from dingtalk.storage.cache import DingTalkCache
if storage is None:
return
cache = DingTalkCache(storage)
cache.access_token.set('crop', 'test1', 7200)
cache.jsapi_ticket.set('crop', 'test2', 7200)
self.assertEqual('test1', cache.access_token.get('crop'))
self.assertEqual('test2', cache.jsapi_ticket.get('crop'))
def test_channel_cache(self, storage=None):
from dingtalk.storage.cache import ChannelCache
if storage is None:
return
cache = ChannelCache(storage)
cache.channel_token.set('crop', 'test3', 7200)
cache.jsapi_ticket.set('crop', 'test4', 7200)
self.assertEqual('test3', cache.channel_token.get('crop'))
self.assertEqual('test4', cache.jsapi_ticket.get('crop'))
def test_isv_cache(self, storage=None):
from dingtalk.storage.cache import ISVCache
if storage is None:
return
cache = ISVCache(storage)
cache.suite_ticket.set('crop', 'test5', 7200)
cache.suite_access_token.set('crop', 'test6', 7200)
cache.permanent_code.set('crop', 'test7', 7200)
cache.ch_permanent_code.set('crop', 'test8', 7200)
self.assertEqual('test5', cache.suite_ticket.get('crop'))
self.assertEqual('test6', cache.suite_access_token.get('crop'))
self.assertEqual('test7', cache.permanent_code.get('crop'))
self.assertEqual('test8', cache.ch_permanent_code.get('crop'))
def test_caches(self, storage=None):
if storage is None:
return
self.test_dingtalk_cache(storage)
self.test_channel_cache(storage)
self.test_isv_cache(storage)
def test_memory_storage(self):
from dingtalk.storage.memorystorage import MemoryStorage
storage = MemoryStorage()
self.test_caches(storage)
def test_redis_storage(self):
from redis import Redis
from dingtalk.storage.kvstorage import KvStorage
redis = Redis()
storage = KvStorage(redis)
self.test_caches(storage)
def test_memcache_storage(self):
from pymemcache.client import Client
from dingtalk.storage.kvstorage import KvStorage
servers = ("127.0.0.1", 11211)
memcached = Client(servers)
storage = KvStorage(memcached)
self.test_caches(storage)
| 2,583 | test_storage | py | en | python | code | {"qsc_code_num_words": 302, "qsc_code_num_chars": 2583.0, "qsc_code_mean_word_length": 5.48675497, "qsc_code_frac_words_unique": 0.20860927, "qsc_code_frac_chars_top_2grams": 0.03379602, "qsc_code_frac_chars_top_3grams": 0.06879903, "qsc_code_frac_chars_top_4grams": 0.06638503, "qsc_code_frac_chars_dupe_5grams": 0.36089318, "qsc_code_frac_chars_dupe_6grams": 0.33192517, "qsc_code_frac_chars_dupe_7grams": 0.12673506, "qsc_code_frac_chars_dupe_8grams": 0.09052505, "qsc_code_frac_chars_dupe_9grams": 0.09052505, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03012048, "qsc_code_frac_chars_whitespace": 0.22880372, "qsc_code_size_file_byte": 2583.0, "qsc_code_num_lines": 71.0, "qsc_code_num_chars_line_max": 72.0, "qsc_code_num_chars_line_mean": 36.38028169, "qsc_code_frac_chars_alphabet": 0.80170683, "qsc_code_frac_chars_comments": 0.00813008, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.22807018, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.05976563, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.14035088, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.12280702, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.1754386, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.38596491, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | tests/test_message.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import unittest
class MessagesTestCase(unittest.TestCase):
def test_text_message(self):
from dingtalk.model.message import TextBody
msgbody = TextBody('test')
msg = msgbody.get_dict()
self.assertEqual('text', msg['msgtype'])
self.assertEqual('test', msg['text']['content'])
def test_file_message(self):
from dingtalk.model.message import FileBody
msgbody = FileBody('123456')
msg = msgbody.get_dict()
self.assertEqual('file', msg['msgtype'])
self.assertEqual('123456', msg['file']['media_id'])
def test_image_message(self):
from dingtalk.model.message import ImageBody
msgbody = ImageBody('123456')
msg = msgbody.get_dict()
self.assertEqual('image', msg['msgtype'])
self.assertEqual('123456', msg['image']['media_id'])
def test_voice_message(self):
from dingtalk.model.message import VoiceBody
msgbody = VoiceBody('123456')
msg = msgbody.get_dict()
self.assertEqual('123456', msgbody.media_id)
self.assertEqual('voice', msg['msgtype'])
self.assertEqual('123456', msg['voice']['media_id'])
def test_link_message(self):
from dingtalk.model.message import LinkBody
msgbody = LinkBody('http://dingtalk.com', 'http://dingtalk.com/img.png', 'testtitle', 'testtext')
msg = msgbody.get_dict()
self.assertEqual('link', msg['msgtype'])
self.assertEqual('http://dingtalk.com', msg['link']['messageUrl'])
self.assertEqual('http://dingtalk.com/img.png', msg['link']['picUrl'])
self.assertEqual('testtitle', msg['link']['title'])
self.assertEqual('testtext', msg['link']['text'])
def test_markdown_message(self):
from dingtalk.model.message import MarkdownBody
msgbody = MarkdownBody('title', 'markdowntext')
msg = msgbody.get_dict()
self.assertEqual('markdown', msg['msgtype'])
self.assertEqual('title', msg['markdown']['title'])
self.assertEqual('markdowntext', msg['markdown']['text'])
def test_oa_message(self):
from collections import OrderedDict
from dingtalk.model.message import OaBodyContent, OaBody
forms = OrderedDict()
forms['key1'] = 'value1'
forms['key2'] = 'value2'
body_content = OaBodyContent('title', 'content', 'author', '123', '1', forms, '1.12', 'unit')
msgbody = OaBody('http://dingtalk.com', 'ffffff', 'head_text', body_content, 'http://dingtalk.com/index.html')
msg = msgbody.get_dict()
self.assertEqual('oa', msg['msgtype'])
self.assertEqual('http://dingtalk.com', msg['oa']['message_url'])
self.assertEqual('http://dingtalk.com/index.html', msg['oa']['pc_message_url'])
self.assertEqual('ffffff', msg['oa']['head']['bgcolor'])
self.assertEqual('head_text', msg['oa']['head']['text'])
self.assertEqual('title', msg['oa']['body']['title'])
self.assertEqual('content', msg['oa']['body']['content'])
self.assertEqual('author', msg['oa']['body']['author'])
self.assertEqual('123', msg['oa']['body']['image'])
self.assertEqual('1', msg['oa']['body']['file_count'])
self.assertEqual('1.12', msg['oa']['body']['rich']['num'])
self.assertEqual('unit', msg['oa']['body']['rich']['unit'])
self.assertEqual('key1', msg['oa']['body']['form'][0]['key'])
self.assertEqual('value1', msg['oa']['body']['form'][0]['value'])
self.assertEqual('key2', msg['oa']['body']['form'][1]['key'])
self.assertEqual('value2', msg['oa']['body']['form'][1]['value'])
def test_single_action_card_message(self):
from dingtalk.model.message import SingleActionCardBody
msgbody = SingleActionCardBody('title', 'markdown', 'single_title', 'http://dingtalk.com/index.html')
msg = msgbody.get_dict()
self.assertEqual('action_card', msg['msgtype'])
self.assertEqual('title', msg['action_card']['title'])
self.assertEqual('markdown', msg['action_card']['markdown'])
self.assertEqual('single_title', msg['action_card']['single_title'])
self.assertEqual('title', msg['action_card']['title'])
self.assertEqual('http://dingtalk.com/index.html', msg['action_card']['single_url'])
def test_button_action_card_message(self):
from dingtalk.model.message import BtnActionCardBody
msgbody = BtnActionCardBody('title', 'markdown', '0', [{'title': 'title1', 'action_url': 'action_url1'},
{'title': 'title2', 'action_url': 'action_url2'}])
msgbody.add_btn('title3', 'action_url3')
msg = msgbody.get_dict()
self.assertEqual('action_card', msg['msgtype'])
self.assertEqual('title', msg['action_card']['title'])
self.assertEqual('markdown', msg['action_card']['markdown'])
self.assertEqual('0', msg['action_card']['btn_orientation'])
self.assertEqual('title1', msg['action_card']['btn_json_list'][0]['title'])
self.assertEqual('action_url1', msg['action_card']['btn_json_list'][0]['action_url'])
self.assertEqual('title2', msg['action_card']['btn_json_list'][1]['title'])
self.assertEqual('action_url2', msg['action_card']['btn_json_list'][1]['action_url'])
self.assertEqual('title3', msg['action_card']['btn_json_list'][2]['title'])
self.assertEqual('action_url3', msg['action_card']['btn_json_list'][2]['action_url'])
| 5,638 | test_message | py | en | python | code | {"qsc_code_num_words": 640, "qsc_code_num_chars": 5638.0, "qsc_code_mean_word_length": 5.34375, "qsc_code_frac_words_unique": 0.1546875, "qsc_code_frac_chars_top_2grams": 0.21491228, "qsc_code_frac_chars_top_3grams": 0.05321637, "qsc_code_frac_chars_top_4grams": 0.06315789, "qsc_code_frac_chars_dupe_5grams": 0.45964912, "qsc_code_frac_chars_dupe_6grams": 0.41783626, "qsc_code_frac_chars_dupe_7grams": 0.3502924, "qsc_code_frac_chars_dupe_8grams": 0.20116959, "qsc_code_frac_chars_dupe_9grams": 0.15584795, "qsc_code_frac_chars_dupe_10grams": 0.11052632, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01939843, "qsc_code_frac_chars_whitespace": 0.18623625, "qsc_code_size_file_byte": 5638.0, "qsc_code_num_lines": 124.0, "qsc_code_num_chars_line_max": 119.0, "qsc_code_num_chars_line_mean": 45.46774194, "qsc_code_frac_chars_alphabet": 0.72602441, "qsc_code_frac_chars_comments": 0.00372473, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.16842105, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.26500445, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.51578947, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.09473684, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.12631579, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.23157895, "qsc_codepython_frac_lines_print": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 1, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 1, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import logging
import time
from dingtalk.client import api
from dingtalk.client.api.taobao import TaobaoMixin
from dingtalk.client.base import BaseClient
from dingtalk.core.utils import DingTalkSigner, random_string
from dingtalk.crypto import DingTalkCrypto
from dingtalk.storage.cache import DingTalkCache
logger = logging.getLogger(__name__)
class DingTalkClient(BaseClient, TaobaoMixin):
attendance = api.Attendance()
blackboard = api.BlackBoard()
bpms = api.Bpms()
calendar = api.Calendar()
callback = api.Callback()
chat = api.Chat()
checkin = api.Checkin()
cspace = api.Cspace()
department = api.Department()
ext = api.Ext()
extcontact = api.ExtContact()
employeerm = api.Employeerm()
health = api.Health()
message = api.Message()
microapp = api.MicroApp()
report = api.Report()
role = api.Role()
user = api.User()
workrecord = api.WorkRecord()
def __init__(self, corp_id, prefix='client', storage=None, timeout=None, auto_retry=True):
super(DingTalkClient, self).__init__(storage, timeout, auto_retry)
self.corp_id = corp_id
self.cache = DingTalkCache(self.storage, "%s:%s" % (prefix, self.get_access_token_key()))
def get_access_token_key(self):
return "corp_id:%s" % self.corp_id
@property
def access_token(self):
token = self.cache.access_token.get()
if token is None:
ret = self.get_access_token()
token = ret['access_token']
expires_in = ret.get('expires_in', 7200)
self.cache.access_token.set(value=token, ttl=expires_in)
return token
@property
def jsapi_ticket(self):
ticket = self.cache.jsapi_ticket.get()
if ticket is None:
ret = self.get_jsapi_ticket()
ticket = ret['ticket']
expires_in = ret.get('expires_in', 7200)
self.cache.jsapi_ticket.set(value=ticket, ttl=expires_in)
return ticket
def get_jsapi_params(self, url, noncestr=None, timestamp=None):
if not noncestr:
noncestr = random_string()
if timestamp is None:
timestamp = int(time.time() * 1000)
data = [
'noncestr={noncestr}'.format(noncestr=noncestr),
'jsapi_ticket={ticket}'.format(ticket=self.jsapi_ticket),
'timestamp={timestamp}'.format(timestamp=timestamp),
'url={url}'.format(url=url),
]
signer = DingTalkSigner(delimiter=b'&')
signer.add_data(*data)
ret = {
'corpId': self.corp_id,
'timeStamp': timestamp,
'nonceStr': noncestr,
'signature': signer.signature
}
return ret
def _handle_pre_request(self, method, uri, kwargs):
if 'access_token=' in uri or 'access_token' in kwargs.get('params', {}):
raise ValueError("uri参数中不允许有access_token: " + uri)
uri = '%s%saccess_token=%s' % (uri, '&' if '?' in uri else '?', self.access_token)
return method, uri, kwargs
def _handle_pre_top_request(self, params, uri):
if 'session=' in uri or 'session' in params:
raise ValueError("uri参数中不允许有session: " + uri)
params['session'] = self.access_token
return super(DingTalkClient, self)._handle_pre_top_request(params, uri)
def _handle_request_except(self, e, func, *args, **kwargs):
if e.errcode in (33001, 40001, 42001, 40014):
self.cache.access_token.delete()
if self.auto_retry:
return func(*args, **kwargs)
raise e
def get_jsapi_ticket(self):
return self.get('/get_jsapi_ticket')
def get_access_token(self):
raise NotImplementedError
class SecretClient(DingTalkClient):
def __init__(self, corp_id, corp_secret, token=None, aes_key=None, storage=None, timeout=None, auto_retry=True):
super(SecretClient, self).__init__(corp_id, 'secret:'+corp_id, storage, timeout, auto_retry)
self.corp_secret = corp_secret
self.crypto = DingTalkCrypto(token, aes_key, corp_id)
def get_access_token(self):
return self._request(
'GET',
'/gettoken',
params={'corpid': self.corp_id, 'corpsecret': self.corp_secret}
)
class AppKeyClient(DingTalkClient):
def __init__(self, corp_id, app_key, app_secret, token=None, aes_key=None, storage=None, timeout=None,
auto_retry=True):
self.app_key = app_key
self.app_secret = app_secret
super(AppKeyClient, self).__init__(corp_id, 'secret:' + corp_id, storage, timeout, auto_retry)
self.crypto = DingTalkCrypto(token, aes_key, corp_id)
def get_access_token_key(self):
return "app_key:%s" % self.app_key
def get_access_token(self):
return self._request(
'GET',
'/gettoken',
params={'appkey': self.app_key, 'appsecret': self.app_secret}
)
| 5,079 | __init__ | py | en | python | code | {"qsc_code_num_words": 606, "qsc_code_num_chars": 5079.0, "qsc_code_mean_word_length": 5.09570957, "qsc_code_frac_words_unique": 0.21782178, "qsc_code_frac_chars_top_2grams": 0.05699482, "qsc_code_frac_chars_top_3grams": 0.02266839, "qsc_code_frac_chars_top_4grams": 0.02752591, "qsc_code_frac_chars_dupe_5grams": 0.24805699, "qsc_code_frac_chars_dupe_6grams": 0.2234456, "qsc_code_frac_chars_dupe_7grams": 0.19203368, "qsc_code_frac_chars_dupe_8grams": 0.17810881, "qsc_code_frac_chars_dupe_9grams": 0.16353627, "qsc_code_frac_chars_dupe_10grams": 0.13957254, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00865233, "qsc_code_frac_chars_whitespace": 0.24906478, "qsc_code_size_file_byte": 5079.0, "qsc_code_num_lines": 149.0, "qsc_code_num_chars_line_max": 117.0, "qsc_code_num_chars_line_mean": 34.08724832, "qsc_code_frac_chars_alphabet": 0.80099633, "qsc_code_frac_chars_comments": 0.00413467, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.14166667, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07436709, "qsc_code_frac_chars_long_word_length": 0.01285601, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.125, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.075, "qsc_codepython_frac_lines_simplefunc": 0.041666666666666664, "qsc_codepython_score_lines_no_logic": 0.475, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/isv.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import logging
from dingtalk.core.utils import to_text, json_loads
from dingtalk.client import DingTalkClient
from dingtalk.client.base import BaseClient
from dingtalk.client.channel import ChannelClient
from dingtalk.core.constants import SuitePushType
from dingtalk.crypto import DingTalkCrypto
from dingtalk.storage.cache import ISVCache
logger = logging.getLogger(__name__)
class ISVDingTalkClient(DingTalkClient):
def __init__(self, corp_id, isv_client):
super(ISVDingTalkClient, self).__init__(corp_id, 'isv_auth:' + isv_client.suite_key,
isv_client.storage, isv_client.timeout, isv_client.auto_retry)
self.isv_client = isv_client
def get_access_token(self):
return self.isv_client.get_access_token_by_corpid(self.corp_id)
class ISVChannelClient(ChannelClient):
def __init__(self, corp_id, isv_client):
super(ISVChannelClient, self).__init__(corp_id, 'isv_channel:' + isv_client.suite_key,
isv_client.storage, isv_client.timeout, isv_client.auto_retry)
self.isv_client = isv_client
def get_channel_token(self):
return self.isv_client.get_channel_token_by_corpid(self.corp_id)
class ISVClient(BaseClient):
def __init__(self, suite_key, suite_secret, token=None, aes_key=None, storage=None, timeout=None, auto_retry=True):
super(ISVClient, self).__init__(storage, timeout, auto_retry)
self.suite_key = suite_key
self.suite_secret = suite_secret
self.cache = ISVCache(self.storage, 'isv:' + self.suite_key)
self.crypto = DingTalkCrypto(token, aes_key, suite_key)
def _handle_pre_request(self, method, uri, kwargs):
if 'suite_access_token=' in uri or 'suite_access_token' in kwargs.get('params', {}):
raise ValueError("suite_access_token: " + uri)
uri = '%s%ssuite_access_token=%s' % (uri, '&' if '?' in uri else '?', self.suite_access_token)
return method, uri, kwargs
def _handle_request_except(self, e, func, *args, **kwargs):
if e.errcode in (33001, 40001, 42001, 40014):
self.cache.suite_access_token.delete()
if self.auto_retry:
return func(*args, **kwargs)
raise e
def set_suite_ticket(self, suite_ticket):
self.cache.suite_ticket.set(value=suite_ticket)
@property
def suite_access_token(self):
self.cache.suite_access_token.get()
token = self.cache.suite_access_token.get()
if token is None:
ret = self.get_suite_access_token()
token = ret['suite_access_token']
expires_in = ret.get('expires_in', 7200)
self.cache.suite_access_token.set(value=token, ttl=expires_in)
return token
def _handle_permanent_code(self, permanent_code_data):
permanent_code = permanent_code_data.get('permanent_code', None)
ch_permanent_code = permanent_code_data.get('ch_permanent_code', None)
corp_id = permanent_code_data.get('auth_corp_info', {}).get('corpid', None)
if corp_id is None:
return
if permanent_code is not None:
self.cache.permanent_code.set(corp_id, permanent_code)
if ch_permanent_code is not None:
self.cache.ch_permanent_code.set(corp_id, ch_permanent_code)
def get_dingtalk_client(self, corp_id):
return ISVDingTalkClient(corp_id, self)
def get_channel_client(self, corp_id):
return ISVChannelClient(corp_id, self)
def proc_message(self, message):
if not isinstance(message, dict):
return
event_type = message.get('EventType', None)
if event_type == SuitePushType.SUITE_TICKET.value:
suite_ticket = message.get('SuiteTicket', None)
if suite_ticket:
self.set_suite_ticket(suite_ticket)
return
elif event_type == SuitePushType.TMP_AUTH_CODE.value:
auth_code = message.get('AuthCode')
permanent_code_data = self.get_permanent_code(auth_code)
message['__permanent_code_data'] = permanent_code_data
return
elif event_type == SuitePushType.SUITE_RELIEVE.value:
corp_id = message.get('AuthCorpId')
self.cache.permanent_code.delete(corp_id)
self.cache.ch_permanent_code.delete(corp_id)
return
else:
return
def parse_message(self, msg, signature, timestamp, nonce):
message = self.crypto.decrypt_message(msg, signature, timestamp, nonce)
try:
message = json_loads(to_text(message))
self.proc_message(message)
except Exception as e:
logger.error("proc_message error %s %s", message, e)
return message
def get_ch_permanent_code_from_cache(self, corp_id):
return self.cache.ch_permanent_code.get(corp_id)
def get_permanent_code_from_cache(self, corp_id):
return self.cache.permanent_code.get(corp_id)
def get_suite_access_token(self):
"""
获取应用套件令牌Token
:return:
"""
return self._request(
'post',
'/service/get_suite_token',
data={
"suite_key": self.suite_key,
"suite_secret": self.suite_secret,
"suite_ticket": self.cache.suite_ticket.get()
}
)
def get_permanent_code(self, tmp_auth_code):
"""
获取企业授权的永久授权码
:param tmp_auth_code: 回调接口(tmp_auth_code)获取的临时授权码
:return:
"""
permanent_code_data = self.post(
'/service/get_permanent_code',
{'tmp_auth_code': tmp_auth_code}
)
self._handle_permanent_code(permanent_code_data)
return permanent_code_data
def activate_suite(self, corp_id):
"""
激活套件
:param corp_id: 授权方corpid
:return:
"""
return self.post(
'/service/activate_suite',
{
'suite_key': self.suite_key,
'auth_corpid': corp_id,
'permanent_code': self.cache.permanent_code.get(corp_id)}
)
def get_access_token_by_corpid(self, corp_id):
"""
获取企业授权的凭证
:param corp_id: 授权方corpid
:return:
"""
return self.post(
'/service/get_corp_token',
{'auth_corpid': corp_id, 'permanent_code': self.cache.permanent_code.get(corp_id)}
)
def get_auth_info(self, corp_id):
"""
获取企业基本信息
:param corp_id: 授权方corpid
:return:
"""
return self.post(
'/service/get_auth_info',
{'auth_corpid': corp_id, 'suite_key': self.suite_key}
)
def get_agent(self, corp_id, agent_id):
"""
获取企业的应用信息
:param corp_id: 授权方corpid
:param agent_id: 授权方应用id
:return:
"""
return self.post(
'/service/get_agent',
{
'suite_key': self.suite_key,
'auth_corpid': corp_id,
'agentid': agent_id,
'permanent_code': self.get_permanent_code_from_cache(corp_id)
}
)
def get_unactive_corp(self, app_id):
"""
获取应用未激活的企业列表
:param app_id: 套件下的微应用ID
:return:
"""
return self.post(
'/service/get_unactive_corp',
{'app_id': app_id}
)
def reauth_corp(self, app_id, corpid_list):
"""
重新授权未激活应用的企业
:param app_id: 套件下的微应用ID
:param corpid_list: 未激活的corpid列表
:return:
"""
return self.post(
'/service/reauth_corp',
{'app_id': app_id, 'corpid_list': corpid_list}
)
def set_corp_ipwhitelist(self, corp_id, ip_whitelist):
"""
ISV为授权方的企业单独设置IP白名单
:param corp_id: 授权方corpid
:param ip_whitelist: 要为其设置的IP白名单,格式支持IP段,用星号表示,注意:仅支持后两段设置为星号
:return:
"""
return self.post(
'/service/set_corp_ipwhitelist',
{'auth_corpid': corp_id, 'ip_whitelist': ip_whitelist}
)
def get_channel_token_by_corpid(self, corp_id):
"""
ISV获取企业服务窗接口调用TOKEN
:param corp_id: 授权方corpid
:return:
"""
return self.post(
'/service/get_channel_corp_token',
{'auth_corpid': corp_id, 'ch_permanent_code': self.get_ch_permanent_code_from_cache(corp_id)}
)
| 8,659 | isv | py | en | python | code | {"qsc_code_num_words": 1013, "qsc_code_num_chars": 8659.0, "qsc_code_mean_word_length": 4.92201382, "qsc_code_frac_words_unique": 0.15498519, "qsc_code_frac_chars_top_2grams": 0.05174489, "qsc_code_frac_chars_top_3grams": 0.02807862, "qsc_code_frac_chars_top_4grams": 0.03208985, "qsc_code_frac_chars_dupe_5grams": 0.40172483, "qsc_code_frac_chars_dupe_6grams": 0.27797834, "qsc_code_frac_chars_dupe_7grams": 0.20898516, "qsc_code_frac_chars_dupe_8grams": 0.17769755, "qsc_code_frac_chars_dupe_9grams": 0.13979142, "qsc_code_frac_chars_dupe_10grams": 0.11351785, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00405186, "qsc_code_frac_chars_whitespace": 0.28744659, "qsc_code_size_file_byte": 8659.0, "qsc_code_num_lines": 263.0, "qsc_code_num_chars_line_max": 120.0, "qsc_code_num_chars_line_mean": 32.92395437, "qsc_code_frac_chars_alphabet": 0.80405186, "qsc_code_frac_chars_comments": 0.07217924, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.14457831, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.10030156, "qsc_code_frac_chars_long_word_length": 0.0329094, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.15662651, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.05421687, "qsc_codepython_frac_lines_simplefunc": 0.03614457831325301, "qsc_codepython_score_lines_no_logic": 0.38554217, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/channel.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import logging
import time
from dingtalk.client.base import BaseClient
from dingtalk.core.utils import random_string, DingTalkSigner
from dingtalk.storage.cache import ChannelCache
logger = logging.getLogger(__name__)
class ChannelClient(BaseClient):
def __init__(self, corp_id, prefix='channel', storage=None, timeout=None, auto_retry=True):
super(ChannelClient, self).__init__(storage, timeout, auto_retry)
self.corp_id = corp_id
self.cache = ChannelCache(self.storage, prefix)
def _handle_pre_request(self, method, uri, kwargs):
if 'access_token=' in uri or 'access_token' in kwargs.get('params', {}):
raise ValueError("access_token: " + uri)
uri = '%s%access_token=%s' % (uri, '&' if '?' in uri else '?', self.channel_token)
return method, uri, kwargs
def _handle_request_except(self, e, func, *args, **kwargs):
if e.errcode in (33001, 40001, 42001, 40014):
self.cache.channel_token.delete()
if self.auto_retry:
return func(*args, **kwargs)
raise e
@property
def channel_token(self):
self.cache.channel_token.get()
token = self.cache.channel_token.get()
if token is None:
ret = self.get_channel_token()
token = ret['access_token']
expires_in = ret.get('expires_in', 7200)
self.cache.channel_token.set(value=token, ttl=expires_in)
return token
@property
def channel_jsapi_ticket(self):
ticket = self.cache.jsapi_ticket.get()
if ticket is None:
ret = self.get_channel_jsapi_ticket()
ticket = ret['ticket']
expires_in = ret.get('expires_in', 7200)
self.cache.jsapi_ticket.set(value=ticket, ttl=expires_in)
return ticket
def get_jsapi_params(self, url, noncestr=None, timestamp=None):
if not noncestr:
noncestr = random_string()
if timestamp is None:
timestamp = int(time.time() * 1000)
data = [
'noncestr={noncestr}'.format(noncestr=noncestr),
'jsapi_ticket={ticket}'.format(ticket=self.channel_jsapi_ticket),
'timestamp={timestamp}'.format(timestamp=timestamp),
'url={url}'.format(url=url),
]
signer = DingTalkSigner(delimiter=b'&')
signer.add_data(*data)
ret = {
'corpId': self.corp_id,
'timeStamp': timestamp,
'nonceStr': noncestr,
'signature': signer.signature
}
return ret
def get_channel_token(self):
raise NotImplementedError
def get_channel_jsapi_ticket(self):
"""
获取企业服务窗JSAPI鉴权ticket
:return:
"""
return self.get('/channel/get_channel_jsapi_ticket')
def get_user_list(self, offset=0, size=100):
"""
获取服务窗关注者列表
:param offset: 偏移量,必须大于等于0
:param size: 获取数量,大于等于0,小于等于100
:return:
"""
return self.get(
'/channel/user/list',
{"offset": offset, "size": size}
)
def get_by_openid(self, openid):
"""
获取关注者详情
:param openid: 在本服务窗运营服务商 范围内,唯一标识关注者身份的id
:return:
"""
return self.get(
'/channel/user/get_by_openid',
{"openid": openid}
)
def get_by_code(self, code):
"""
关注者免登接口
:param code: 服务窗关注者在服务窗应用中免登时生成的临时授权码
:return:
"""
return self.get(
'/channel/user/get_by_code',
{"code": code}
)
class SecretChannelClient(ChannelClient):
def __init__(self, corp_id, channel_secret, storage=None, timeout=None, auto_retry=True):
super(SecretChannelClient, self).__init__(corp_id, storage, timeout, auto_retry)
self.channel_secret = channel_secret
self.cache = ChannelCache(self.storage, 'channelsecret:' + self.corp_id)
def get_channel_token(self):
"""
获取服务窗ChannelToken
:return:
"""
return self.get(
'/channel/get_channel_token',
{"corpid": self.corp_id, "channel_secret": self.channel_secret}
)
| 4,311 | channel | py | en | python | code | {"qsc_code_num_words": 473, "qsc_code_num_chars": 4311.0, "qsc_code_mean_word_length": 5.22832981, "qsc_code_frac_words_unique": 0.25581395, "qsc_code_frac_chars_top_2grams": 0.04852406, "qsc_code_frac_chars_top_3grams": 0.03962798, "qsc_code_frac_chars_top_4grams": 0.03841488, "qsc_code_frac_chars_dupe_5grams": 0.26364739, "qsc_code_frac_chars_dupe_6grams": 0.15042459, "qsc_code_frac_chars_dupe_7grams": 0.11969268, "qsc_code_frac_chars_dupe_8grams": 0.09057825, "qsc_code_frac_chars_dupe_9grams": 0.02992317, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01369416, "qsc_code_frac_chars_whitespace": 0.28856414, "qsc_code_size_file_byte": 4311.0, "qsc_code_num_lines": 142.0, "qsc_code_num_chars_line_max": 96.0, "qsc_code_num_chars_line_mean": 30.35915493, "qsc_code_frac_chars_alphabet": 0.79263124, "qsc_code_frac_chars_comments": 0.0644862, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.10989011, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.10325098, "qsc_code_frac_chars_long_word_length": 0.03979194, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.14285714, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.06593407, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.34065934, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/base.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import inspect
import json
import logging
import requests
import six
from six.moves.urllib.parse import urljoin
from dingtalk.client.api.base import DingTalkBaseAPI
from dingtalk.core.exceptions import DingTalkClientException
from dingtalk.core.utils import json_loads
from dingtalk.storage.memorystorage import MemoryStorage
logger = logging.getLogger(__name__)
def _is_api_endpoint(obj):
return isinstance(obj, DingTalkBaseAPI)
class BaseClient(object):
_http = requests.Session()
API_BASE_URL = 'https://oapi.dingtalk.com/'
def __new__(cls, *args, **kwargs):
self = super(BaseClient, cls).__new__(cls)
api_endpoints = inspect.getmembers(self, _is_api_endpoint)
for name, api in api_endpoints:
api_cls = type(api)
api = api_cls(self)
setattr(self, name, api)
return self
def __init__(self, storage=None, timeout=None, auto_retry=True):
self.storage = storage or MemoryStorage()
self.timeout = timeout
self.auto_retry = auto_retry
def _request(self, method, url_or_endpoint, **kwargs):
if not url_or_endpoint.startswith(('http://', 'https://')):
api_base_url = kwargs.pop('api_base_url', self.API_BASE_URL)
url = urljoin(api_base_url, url_or_endpoint)
else:
url = url_or_endpoint
if 'params' not in kwargs:
kwargs['params'] = {}
if isinstance(kwargs.get('data', ''), dict):
body = json.dumps(kwargs['data'], ensure_ascii=False)
body = body.encode('utf-8')
kwargs['data'] = body
if 'headers' not in kwargs:
kwargs['headers'] = {}
kwargs['headers']['Content-Type'] = 'application/json'
kwargs['timeout'] = kwargs.get('timeout', self.timeout)
result_processor = kwargs.pop('result_processor', None)
top_response_key = kwargs.pop('top_response_key', None)
res = self._http.request(
method=method,
url=url,
**kwargs
)
try:
res.raise_for_status()
except requests.RequestException as reqe:
logger.error("\n【请求地址】: %s\n【请求参数】:%s \n%s\n【异常信息】:%s",
url, kwargs.get('params', ''), kwargs.get('data', ''), reqe)
raise DingTalkClientException(
errcode=None,
errmsg=None,
client=self,
request=reqe.request,
response=reqe.response
)
result = self._handle_result(
res, method, url, result_processor, top_response_key, **kwargs
)
logger.debug("\n【请求地址】: %s\n【请求参数】:%s \n%s\n【响应数据】:%s",
url, kwargs.get('params', ''), kwargs.get('data', ''), result)
return result
def _decode_result(self, res):
try:
result = json_loads(res.content.decode('utf-8', 'ignore'), strict=False)
except (TypeError, ValueError):
# Return origin response object if we can not decode it as JSON
logger.debug('Can not decode response as JSON', exc_info=True)
return res
return result
def _handle_result(self, res, method=None, url=None, result_processor=None, top_response_key=None, **kwargs):
if not isinstance(res, dict):
# Dirty hack around asyncio based AsyncWeChatClient
result = self._decode_result(res)
else:
result = res
if not isinstance(result, dict):
return result
if top_response_key:
if 'error_response' in result:
error_response = result['error_response']
logger.error("\n【请求地址】: %s\n【请求参数】:%s \n%s\n【错误信息】:%s",
url, kwargs.get('params', ''), kwargs.get('data', ''), result)
raise DingTalkClientException(
error_response.get('code', -1),
error_response.get('sub_msg', error_response.get('msg', '')),
client=self,
request=res.request,
response=res
)
top_result = result
if top_response_key in top_result:
top_result = result[top_response_key]
if 'result' in top_result:
top_result = top_result['result']
if isinstance(top_result, six.string_types):
try:
top_result = json_loads(top_result)
except Exception:
pass
if isinstance(top_result, dict):
if ('success' in top_result and not top_result['success']) or (
'is_success' in top_result and not top_result['is_success']):
logger.error("\n【请求地址】: %s\n【请求参数】:%s \n%s\n【错误信息】:%s",
url, kwargs.get('params', ''), kwargs.get('data', ''), result)
raise DingTalkClientException(
top_result.get('ding_open_errcode', -1),
top_result.get('error_msg', ''),
client=self,
request=res.request,
response=res
)
result = top_result
if not isinstance(result, dict):
return result
if 'errcode' in result:
result['errcode'] = int(result['errcode'])
if 'errcode' in result and result['errcode'] != 0:
errcode = result['errcode']
errmsg = result.get('errmsg', errcode)
logger.error("\n【请求地址】: %s\n【请求参数】:%s \n%s\n【错误信息】:%s",
url, kwargs.get('params', ''), kwargs.get('data', ''), result)
raise DingTalkClientException(
errcode,
errmsg,
client=self,
request=res.request,
response=res
)
return result if not result_processor else result_processor(result)
def _handle_pre_request(self, method, uri, kwargs):
return method, uri, kwargs
def _handle_pre_top_request(self, params, uri):
if not uri.startswith(('http://', 'https://')):
uri = urljoin('https://eco.taobao.com', uri)
return params, uri
def _handle_request_except(self, e, func, *args, **kwargs):
raise e
def request(self, method, uri, **kwargs):
method, uri_with_access_token, kwargs = self._handle_pre_request(method, uri, kwargs)
try:
return self._request(method, uri_with_access_token, **kwargs)
except DingTalkClientException as e:
return self._handle_request_except(e, self.request, method, uri, **kwargs)
def top_request(self, method, params=None, format_='json', v='2.0',
simplify='false', partner_id=None, url=None, **kwargs):
"""
top 接口请求
:param method: API接口名称。
:param params: 请求参数 (dict 格式)
:param format_: 响应格式(默认json,如果使用xml,需要自己对返回结果解析)
:param v: API协议版本,可选值:2.0。
:param simplify: 是否采用精简JSON返回格式
:param partner_id: 合作伙伴身份标识。
:param url: 请求url,默认为 https://eco.taobao.com/router/rest
"""
from datetime import datetime
reqparams = {}
if params is not None:
for key, value in params.items():
reqparams[key] = value if not isinstance(value, (dict, list, tuple)) else json.dumps(value)
reqparams['method'] = method
reqparams['timestamp'] = datetime.now().strftime('%Y-%m-%d %H:%M:%S')
reqparams['format'] = format_
reqparams['v'] = v
if format_ == 'json':
reqparams['simplify'] = simplify
if partner_id:
reqparams['partner_id'] = partner_id
base_url = url or '/router/rest'
reqparams, base_url = self._handle_pre_top_request(reqparams, base_url)
if not base_url.startswith(('http://', 'https://')):
base_url = urljoin(self.API_BASE_URL, base_url)
response_key = method.replace('.', '_') + "_response"
try:
return self._request('POST', base_url, params=reqparams, top_response_key=response_key, **kwargs)
except DingTalkClientException as e:
return self._handle_request_except(e, self.request,
method, format_, v, simplify, partner_id, url, params, **kwargs)
def get(self, uri, params=None, **kwargs):
"""
get 接口请求
:param uri: 请求url
:param params: get 参数(dict 格式)
"""
if params is not None:
kwargs['params'] = params
return self.request('GET', uri, **kwargs)
def post(self, uri, data=None, params=None, **kwargs):
"""
post 接口请求
:param uri: 请求url
:param data: post 数据(dict 格式会自动转换为json)
:param params: post接口中url问号后参数(dict 格式)
"""
if data is not None:
kwargs['data'] = data
if params is not None:
kwargs['params'] = params
return self.request('POST', uri, **kwargs)
| 9,327 | base | py | en | python | code | {"qsc_code_num_words": 1041, "qsc_code_num_chars": 9327.0, "qsc_code_mean_word_length": 4.83669549, "qsc_code_frac_words_unique": 0.18539866, "qsc_code_frac_chars_top_2grams": 0.03038729, "qsc_code_frac_chars_top_3grams": 0.02224429, "qsc_code_frac_chars_top_4grams": 0.00695134, "qsc_code_frac_chars_dupe_5grams": 0.25163853, "qsc_code_frac_chars_dupe_6grams": 0.20993049, "qsc_code_frac_chars_dupe_7grams": 0.18609732, "qsc_code_frac_chars_dupe_8grams": 0.17855015, "qsc_code_frac_chars_dupe_9grams": 0.12730884, "qsc_code_frac_chars_dupe_10grams": 0.11678252, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00158579, "qsc_code_frac_chars_whitespace": 0.32389836, "qsc_code_size_file_byte": 9327.0, "qsc_code_num_lines": 246.0, "qsc_code_num_chars_line_max": 114.0, "qsc_code_num_chars_line_mean": 37.91463415, "qsc_code_frac_chars_alphabet": 0.79686013, "qsc_code_frac_chars_comments": 0.06004074, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.22162162, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.02702703, "qsc_code_frac_chars_string_length": 0.09315037, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.07027027, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00540541, "qsc_codepython_frac_lines_import": 0.06486486, "qsc_codepython_frac_lines_simplefunc": 0.010810810810810811, "qsc_codepython_score_lines_no_logic": 0.23783784, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007revad/Seagate_lowCurrentSpinup | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | README.md | # Synology Information Wiki
Hardware information of what various Synology models support

### General Software Information
* [DSM version types](pages/DSM-version-types.md) (Major, Minor, Micro, Build, Nano)
* [2025_and_later_Plus_model_auto_update](pages/2025plus_autoupdate.md)
### General Hardware Information
* [2025_and_later_Plus_model_drive_restrictions](pages/2025plus_drives.md)
* [CPU information](pages/CPU-information.md)
* [DSM versions per model](pages/DSM-versions-per-model.md)
* [eSATA Expansion Unit Support](pages/eSATA-Expansion-Unit-Support.md)
* [Expansion Unit support in DSM-7.2.1](pages/Expansion-Unit-support-in-DSM-7.2.1.md)
* [ext4 for RackStations](pages/ext4_for_RackStations.md)
* [FAN Speed Modes](pages/FAN-Speed-Modes.md)
* [HDD SSD Help](pages/HDD-SSD-Help.md)
* [Ironwolf Health](pages/Ironwolf-Health.md)
* [Linux Kernel in each platform arch](pages/Linux-Kernel-in-each-platform-arch.md)
* [NVMe speed per NAS model](pages/NVMe-speed.md)
* [NVMe Power Loss Protection](pages/NVMe-Power-Loss-Protection.md)
* [PCIe network cards](pages/PCIe-network-cards.md)
* [RAID min and max drives](pages/RAID-min-and-max-drives.md)
* [S.M.A.R.T.](pages/SMART.md)
* [SSD Sequential I/O Cache](pages/SSD-Sequential-I-O-Cache.md)
* [SSD TRIM support](pages/SSD-TRIM-support.md)
* [StorageManager package support](pages/StorageManager-package-support.md)
* [Synology HDDs and SSDs](pages/Synology-HDDs-and-SSDs.md)
* [Number of supported cameras](pages/Max-cameras-per-model.md)
* [Models that are white](pages/Models_that_are_white.md)
* [Synology Update sites](pages/Synology-Update-sites.md)
* [WDDA information](pages/WDDA-information.md)
### Which Models Support Which Hardware Feature
* [Models that run fans full speed due to PCIe NIC](pages/Models-that-run-fans-full-due-to-PCIe-NIC.md)
* [Models that support 200TB Volumes](pages/Models-that-support-200TB-Volumes.md)
* [Models that support Deduplication](pages/Models-that-support-Deduplication.md)
* [Models that support E10G22‐T1‐Mini](pages/Models-that-support-E10G22%E2%80%90T1%E2%80%90Mini.md)
* [Models that support Expansion Units](pages/Models-that-support-Expansion-Units.md)
* [Models that support Immutable Snapshots](pages/Models-that-support-Immutable-Snapshots.md)
* [Models that support M.2 Drives](pages/Models-that-support-M.2-Drives.md)
* [Models that support M.2 Volumes](pages/Models-that-support-M.2-Volumes.md)
* [Models that support PCIe M.2 cards](pages/Models-that-support-PCIe-M.2-cards.md)
* [Models that support Peta Volumes](pages/Models-that-support-Peta-Volumes.md)
* [Models that support RAID F1](pages/Models-that-support-RAID-F1.md)
* [Models that support RAID Groups](pages/Models-that-support-RAID-Groups.md)
* [Models that support SAS drives](pages/Models-that-support-SAS-drives.md)
* [Models that support SHR (Synology Hybrid RAID)](pages/Models-that-support-SHR.md)
* [Models that support SSD Cache](pages/Models-that-support-SSD-Cache.md)
* [Models that support UASP](pages/Models-that-support-UASP.md)
* [Models that support WriteOnce and immutable snapshots (WORM)](pages/Models-that-support-WORM.md)
* [Models that use DeviceTree](pages/Models-that-use-DeviceTree.md)
* [Models that use sata1 instead of sda](pages/Models-that-use-sata1-instead-of-sda.md)
* [Models with a GPU](pages/Models-with-a-GPU.md)
* [Models with internal M.2 slots](pages/Models-with-internal-M.2-slots.md)
* [Models with PCIe slots](pages/Models-with-PCIe-slots.md)
* [Models with PCIe slots & no NVMe support](pages/Models-with-PCIe-slots-&-no-NVMe-support.md)
| 3,762 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.07742537, "qsc_doc_num_sentences": 70.0, "qsc_doc_num_words": 597, "qsc_doc_num_chars": 3762.0, "qsc_doc_num_lines": 58.0, "qsc_doc_mean_word_length": 4.83752094, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.26633166, "qsc_doc_entropy_unigram": 4.23382358, "qsc_doc_frac_words_all_caps": 0.06902985, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.13850416, "qsc_doc_frac_chars_top_3grams": 0.18836565, "qsc_doc_frac_chars_top_4grams": 0.10526316, "qsc_doc_frac_chars_dupe_5grams": 0.41239612, "qsc_doc_frac_chars_dupe_6grams": 0.16897507, "qsc_doc_frac_chars_dupe_7grams": 0.08171745, "qsc_doc_frac_chars_dupe_8grams": 0.01939058, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 28.3984375, "qsc_doc_frac_chars_hyperlink_html_tag": 0.04944179, "qsc_doc_frac_chars_alphabet": 0.80893372, "qsc_doc_frac_chars_digital": 0.02276657, "qsc_doc_frac_chars_whitespace": 0.07761829, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 1, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/2025plus_drives.md | ## 2025 series or later Plus models
### Unverified 3rd party drive limitations and unoffical solutions
| Action | Works | Result | Solution |
|--------|--------------|--------|----------|
| Setup the NAS with Synology drives | yes | | |
| Setup the NAS with 3rd party SSDs | yes | Lots of warnings | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Setup the NAS with unverified 3rd party HDDs | **No!** | | See <a href="#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with unverifed HDDs</a> |
| Migrate unverified 3rd party drives from other Synology | yes | Lots of warnings | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Migrate unverified 3rd party drives and NVMe cache from other Synology | yes | Lots of warnings | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Replace migrated 3rd party drives with 3rd party drives | **No!** | | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Gradually replace migrated 3rd party drives with Synology drives | yes | Lots of warnings until all 3rd party drives replaced | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) See [Migration and Drive Replacement](https://github.com/007revad/Synology_HDD_db/discussions/468#discussioncomment-13086639) |
| Expand migrated 3rd party storage pool with 3rd party drives | **No!** | | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Use 3rd party drive as hot spare | **No!** | | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Create a cache with 3rd party SSDs | **No!** | | Use [Synology HDD db](https://github.com/007revad/Synology_HDD_db) |
| Delete and create storage pool on migrated 3rd party drives | **No!** | | See <a href="#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool</a> |
<br>
### Setting up a new 2025 or later plus model with only unverified HDDs
Credit to Alex_of_Chaos on reddit
DSM won't install on a 2025 or later series plus model if you only have unverified HDDs. But we can get around that.
1. Start telnet by entering `http://<NAS-IP>:5000/webman/start_telnet.cgi` into your browser's address bar.
- Replace `<NAS-IP>` with the IP address of the Synology NAS.
3. Open a telnet client on your computer and log in to telnet with:
- `root` for the username
- `101-0101` for the password
5. Execute the following command: (using a while loop in case DSM is running in a VM)
```
while true; do touch /tmp/installable_check_pass; sleep 1; done
```
7. Refresh the web installation page and install DSM.
8. Then in the telnet window, or via SSH, execute the following command:
```
/usr/syno/bin/synosetkeyvalue support_disk_compatibility no
```
9. If Storage Manager is already open close then open it, or refresh the web page.
10. You can now create your storage pool from Storage Manager.
<br>
### Deleting and recreating your storage pool on unverified HDDs
You can't download Synology HDD db to a volume because you've just deleted your storage pool. So you'd first need to download Synology HDD db to a system folder and run it from there.
You can do this via SSH or via a scheduled task.
#### Via SSH
1. Create and cd to /opt
```
sudo mkdir /opt && sudo chmod 775 /opt
```
2. Create /opt
```
sudo mkdir -m775 /opt
```
2. cd to /opt
```
cd /opt || (echo "Failed to CD to /opt"; exit 1)
```
3. Download syno_hdd_db.sh to /opt
```
sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh"
```
4. Download syno_hdd_vendor_ids.txt to /opt
```
sudo curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt"
```
5. Then set permissions on /opt/syno_hdd_db.sh
```
sudo chmod 750 /opt/syno_hdd_db.sh
```
6. Finally run syno_hdd_db. You don't need any options at this point.
```
sudo -s /opt/syno_hdd_db.sh
```
8. If Storage Manager is already open close then open it, or refresh the web page.
9. You can now create your storage pool from Storage Manager.
#### Via a scheduled task
First setup email notifications (if you haven't already):
1. Go to **Control Panel** > **Notification** > **Email** > click **Setup**.
Then create the scheduled task:
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > **Scheduled Task** > **User-defined script**.
2. Enter a task name.
3. Select **root** as the user (The script needs to run as root).
4. Untick **Enable**.
5. Click **Task Settings**.
6. Tick **Send run details by email** and enter your email address.
7. In the box under **User-defined script** paste the following:
```
mkdir -m775 /opt
cd /opt || (echo "Failed to CD to /opt"; exit 1)
curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_db.sh"
curl -O "https://raw.githubusercontent.com/007revad/Synology_HDD_db/refs/heads/main/syno_hdd_vendor_ids.txt"
chmod 750 /opt/syno_hdd_db.sh
/opt/syno_hdd_db.sh -e
```
8. Click **OK** > **OK** > type your password > **Submit** to save the scheduled task.
9. Now select the scheduld task and click **Run** > **OK**.
10. Check your emails to make sure the scheduled task ran without any error.
11. If Storage Manager is already open close then open it, or refresh the web page.
12. You can now create your storage pool from Storage Manager.
| 5,551 | 2025plus_drives | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.18515625, "qsc_doc_num_sentences": 90.0, "qsc_doc_num_words": 892, "qsc_doc_num_chars": 5551.0, "qsc_doc_num_lines": 120.0, "qsc_doc_mean_word_length": 4.32286996, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.28587444, "qsc_doc_entropy_unigram": 5.00926428, "qsc_doc_frac_words_all_caps": 0.02734375, "qsc_doc_frac_lines_dupe_lines": 0.25531915, "qsc_doc_frac_chars_dupe_lines": 0.03105472, "qsc_doc_frac_chars_top_2grams": 0.04149378, "qsc_doc_frac_chars_top_3grams": 0.07754149, "qsc_doc_frac_chars_top_4grams": 0.07417012, "qsc_doc_frac_chars_dupe_5grams": 0.47717842, "qsc_doc_frac_chars_dupe_6grams": 0.43646266, "qsc_doc_frac_chars_dupe_7grams": 0.40793568, "qsc_doc_frac_chars_dupe_8grams": 0.38744813, "qsc_doc_frac_chars_dupe_9grams": 0.38744813, "qsc_doc_frac_chars_dupe_10grams": 0.36047718, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 25.31279621, "qsc_doc_frac_chars_hyperlink_html_tag": 0.11367321, "qsc_doc_frac_chars_alphabet": 0.8112713, "qsc_doc_frac_chars_digital": 0.03101791, "qsc_doc_frac_chars_whitespace": 0.17528373, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-with-PCIe-slots.md | Synology NAS models that have PCIe slots (that support DSM 7.2.1)
```
DS723+ Gen3 x2 slot - E10G22-T1-Mini only
DS923+ Gen3 x2 slot - E10G22-T1-Mini only
DS1517+ Gen 2 x8 slot (x4 link)
DS1522+ Gen3 x2 slot - E10G22-T1-Mini only
DS1618+ Gen3 x8 slot (x4 link)
DS1621+ Gen3 x8 slot (x4 link)
DS1621xs+ Gen3 x8 slot (x8 link)
DS1817+ Gen 2 x8 slot (x4 link)
DS1819+ Gen3 x8 slot (x4 link)
DS1821+ Gen3 x8 slot (x4 link)
DS1823xs+ Gen3 x8 slot (x4 link)
DS2419+ Gen3 x8 slot (x4 link)
DS2419+II Gen3 x8 slot (x4 link)
DS2422+ Gen3 x8 slot (x4 link)
DS3018xs Gen3 x8 slot (x8 link)
DS3617xs Gen3 x8 slot (x8 link)
DS3617xsII Gen3 x8 slot (x8 link)
DS3622xs+ Gen3 x8 slot (x8 link)
RS422+ Gen3 x2 slot - E10G22-T1-Mini only
RS818+ Gen 2 x8 slot (x4 link)
RS818RP+ Gen 2 x8 slot (x4 link)
RS820+ Gen3 x8 slot (x4 link)
RS820RP+ Gen3 x8 slot (x4 link)
RS822+ Gen3 x8 slot (x4 link)
RS822RP+ Gen3 x8 slot (x4 link)
RS1219+ Gen 2 x8 slot (x4 link)
RS1221+ Gen3 x8 slot (x4 link)
RS1221RP+ Gen3 x8 slot (x4 link)
RS1619xs+ Gen3 x8 slot (x8 link)
RS2418+ Gen3 x8 slot (x4 link)
RS2418RP+ Gen3 x8 slot (x4 link)
RS2421+ Gen3 x8 slot (x4 link)
RS2421RP+ Gen3 x8 slot (x4 link)
RS2423+ Gen3 x8 slot (x4 link)
RS2423RP+ Gen3 x8 slot (x4 link)
RS2818RP+ Gen3 x8 slot (x4 link)
RS2821RP+ Gen3 x8 slot (x4 link)
RS3617xs+ 2 x Gen3 x8 slots (x8 link)
RS3617xs 2 x Gen3 x8 slots (x8 link)
RS3617RPxs 2 x Gen3 x8 slots (x8 link)
RS3618xs 2 x Gen3 x8 slots (x8 link)
RS3621xs+ 2 x Gen3 x8 slots (x8 link)
RS3621RPxs 2 x Gen3 x8 slots (x8 link)
RS4017xs+ 2 x Gen3 x8 slots (x8 link)
RS4021xs+ 2 x Gen3 x8 slots (x8 link)
RS18016xs+ 2 x Gen3 x8 slots (x8 link)
RS18017xs+ 2 x Gen3 x8 slots (x8 link)
FS1018 Gen3 x8 slot (x8 link)
FS2017 Gen3 x8 slot (x8 link)
FS2500 Gen3 x8 slot (x4 link)
FS3017 2 PCIe slots, 1 x Gen3 x16 slot (x16 link), 1 x Gen3 x8 slot (x8 link)
FS3400 Gen3 x8 slot (x8 link)
FS3410 2 x Gen3 x8 slots (x8 link)
FS3600 Gen3 x8 slot (x8 link)
FS6400 2 x Gen3 x8 slots (x8 link)
HD6500 4 PCIe slots, 2 x Gen3 x16 slot2 (x16 link), 2 x Gen3 x8 slots (x8 link)
SA3200D Gen3 x8 slot (x8 link) (per controller)
SA3400 2 x Gen3 x8 slots (x8 link)
SA3400D Gen3 x8 slot (x8 link) (per controller)
SA3410 2 x Gen3 x8 slots (x8 link)
SA3600 2 x Gen3 x8 slots (x8 link)
SA3610 2 x Gen3 x8 slots (x8 link)
SA6400 2 x Gen3 x8 slots (x8 link)
``` | 2,370 | Models-with-PCIe-slots | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.04594181, "qsc_doc_num_sentences": 3.0, "qsc_doc_num_words": 467, "qsc_doc_num_chars": 2370.0, "qsc_doc_num_lines": 72.0, "qsc_doc_mean_word_length": 3.58672377, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.19486081, "qsc_doc_entropy_unigram": 3.06656923, "qsc_doc_frac_words_all_caps": 0.08728943, "qsc_doc_frac_lines_dupe_lines": 0.03030303, "qsc_doc_frac_chars_dupe_lines": 0.00260983, "qsc_doc_frac_chars_top_2grams": 0.19343284, "qsc_doc_frac_chars_top_3grams": 0.21492537, "qsc_doc_frac_chars_top_4grams": 0.20059701, "qsc_doc_frac_chars_dupe_5grams": 0.69014925, "qsc_doc_frac_chars_dupe_6grams": 0.38686567, "qsc_doc_frac_chars_dupe_7grams": 0.31283582, "qsc_doc_frac_chars_dupe_8grams": 0.03462687, "qsc_doc_frac_chars_dupe_9grams": 0.03462687, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 31.04054054, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.63631494, "qsc_doc_frac_chars_digital": 0.26084628, "qsc_doc_frac_chars_whitespace": 0.21223629, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 1, "qsc_doc_frac_chars_top_4grams": 1, "qsc_doc_frac_chars_dupe_5grams": 1, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/eSATA-Expansion-Unit-Support.md | [Does the eSATA port of Synology products support eSATA disk enclosures with port multipliers?](https://kb.synology.com/en-us/DSM/tutorial/Does_the_eSATA_port_of_Synology_products_support_eSATA_disk_enclosures_with_port_multipliers)
All Synology products do not support eSATA disk enclosures with port multipliers. The installed drives on eSATA disk enclosures with port multipliers may not be recognized by Synology products. If you would like to use external disk enclosures with multiple drives, we recommend you to use Synology Expansion Units. Please see the compatibility list [here](https://www.synology.com/en-us/knowledgebase/DSM/tutorial/Compatibility_List/Which_Synology_DiskStation_RackStation_can_I_use_with_Synology_Expansion_Units) for more information.
<br>
| Model | eSATA Speed | Notes |
|-------|-------------|-------|
| DX517 | 6 Gbps | 600 MB/s |
| RX418 | 6 Gbps | 600 MB/s |
| | |
| DX513 | 3 Gbps | 300 MB/s |
| DX213 | 3 Gbps | 300 MB/s |
| RX415 | 3 Gbps | 300 MB/s |
| | |
| DX510 | 1.5 Gbps | 150 MB/s |
| RX410 | 1.5 Gbps | 150 MB/s |
<br>
[Which Synology DiskStation RackStation can I use with Synology Expansion Units](https://kb.synology.com/en-global/DSM/tutorial/Which_Synology_DiskStation_RackStation_can_I_use_with_Synology_Expansion_Units)
### eSATA Expansion Unit Support
| NAS Model | DX517 | DX513/DX213 | DX510 | RX418 | RX415 | RX410 | Notes |
|-----------|-------|-------------|-------|-------|-------|-------|----------|
| DS1823xs+ | yes | | | | | | |
| DS1821+ | yes | | | | | | |
| DS1819+ | yes | | | | | | |
| DS1817+ | yes | yes | | | | | |
| DS1817 | yes | | | | | | |
| DS1815+ | yes | yes | | | | | See note 1 |
| DS1813+ | | yes | yes | | | | See note 1 |
| DS1812+ | | yes | yes | | | | See note 1 |
| DS1621xs+ | yes | | | | | | |
| DS1621+ | yes | | | | | | |
| DS1618+ | yes | | | | | | |
| DS1522+ | yes | | | | | | |
| DS1520+ | yes | | | | | | |
| DS1517+ | yes | yes | | | | | |
| DS1517 | yes | | | | | | |
| DS1515+ | yes | yes | | | | | See note 1 |
| DS1515 | yes | yes | | | | | |
| DS1513+ | | yes | yes | | | | See note 1 |
| DS1512+ | | yes | yes | | | | See note 1 |
| DS1511+ | | yes | yes | | | | See note 1 |
| DS1019+ | yes | | | | | | |
| DS1010+ | | yes | yes | | | | See note 1 |
| DS923+ | yes | | | | | | |
| DS920+ | yes | | | | | | |
| DS918+ | yes | | | | | | |
| DS916+ | yes | yes | | | | | See note 1 |
| DS723+ | yes | | | | | | |
| DS720+ | yes | | | | | | |
| DS718+ | yes | | | | | | |
| DS716+II | yes | yes | | | | | |
| DS716+ | yes | yes | | | | | |
| DS715 | | yes | | | | | |
| DS713+ | | yes | yes | | | | See note 1 |
| DS712+ | | yes | yes | | | | See note 1 |
| DS710+ | | yes | yes | | | | See note 1 |
| DS415+ | yes| yes | | | | | See note 1 |
| DS413 | | yes | | | | | See note 1 |
| DS412+ | | yes | | | | | See note 1 |
| DS218+ | yes | | | | | | See note 1 |
| DS216+II | yes | yes | | | | | See note 1 |
| DS216+ | yes | yes | | | | | See note 1 |
| DS215+ | | yes | | | | | See note 1 |
| DS214play | | yes | | | | | See note 1 |
| DS214+ | | yes | | | | | See note 1 |
| DS213+ | | yes | | | | | See note 1 |
| DS212+ | | yes | | | | | See note 1 |
| DS115 | | yes | | | | | See note 1 |
| DS114 | | yes | | | | | See note 1 |
| DS112+ | | yes | | | | | See note 1 |
| DS112 | | yes | | | | | See note 1 |
| | | | | | | | |
| RS1221(RP)+ | | | | yes | | | |
| RS1219+ | | | | yes | | | |
| RS822(RP)+ | | | | yes | | | |
| RS820(RP)+ | | | | yes | | | |
| RS819 | | | | yes | | | |
| RS818(RP)+ | | | | yes | yes | | |
| RS816 | | | | yes | yes | | |
| RS815(RP)+ | | | | yes | yes | | |
| RS815 | | | | yes | yes | | |
| RS814(RP)+ | | | | | yes | yes | |
| RS814 | | | | | yes | yes | |
| RS812(RP)+ | | | | | yes | yes | |
| RS812 | | | | | yes | yes | |
| RS810(RP)+ | | | | | | yes | |
| RS217 | | | | yes | yes | | See note 1 |
| RS214 | | | | | yes | | See note 1 |
| | | | | | | | |
| NVR2165 | yes | | | | | | |
| NVR1218 | yes | | | | | | |
| NVR216 | | yes | | | | | |
| | | | | | | | |
| DVA3221 | yes | | | | | | |
| DVA3219 | yes | | | | | | |
### Notes
1. Independent volumes only
<br>
| 4,123 | eSATA-Expansion-Unit-Support | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.11154446, "qsc_doc_num_sentences": 15.0, "qsc_doc_num_words": 484, "qsc_doc_num_chars": 4123.0, "qsc_doc_num_lines": 106.0, "qsc_doc_mean_word_length": 4.13016529, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.30785124, "qsc_doc_entropy_unigram": 3.99201483, "qsc_doc_frac_words_all_caps": 0.08112324, "qsc_doc_frac_lines_dupe_lines": 0.08333333, "qsc_doc_frac_chars_dupe_lines": 0.01817729, "qsc_doc_frac_chars_top_2grams": 0.08704352, "qsc_doc_frac_chars_top_3grams": 0.14507254, "qsc_doc_frac_chars_top_4grams": 0.15957979, "qsc_doc_frac_chars_dupe_5grams": 0.42621311, "qsc_doc_frac_chars_dupe_6grams": 0.25612806, "qsc_doc_frac_chars_dupe_7grams": 0.22511256, "qsc_doc_frac_chars_dupe_8grams": 0.2026013, "qsc_doc_frac_chars_dupe_9grams": 0.2026013, "qsc_doc_frac_chars_dupe_10grams": 0.18109055, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 33.08264463, "qsc_doc_frac_chars_hyperlink_html_tag": 0.10502062, "qsc_doc_frac_chars_alphabet": 0.55310621, "qsc_doc_frac_chars_digital": 0.11456246, "qsc_doc_frac_chars_whitespace": 0.27382974, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Max-cameras-per-model.md | ### Maximum number of Surveillance Cameras supported per NAS model
```
5 DS119j
5 DS120j
10 DS216j
10 DS416slim
10 DS419slim
12 DS124
12 DS220j
12 DS223j
14 DS218j
15 DS216play
15 DS218play
16 DS116
16 DS118
16 DS216
16 DS416j
16 DS418j
16 DS420j
16 RS217
16 RS816
20 DS218
20 DS223
25 DS216+
25 DS216+II
25 DS218+
25 DS220+
25 DS224+
25 DS416
25 DS416play
25 DS418play
25 DS420+
25 DS620slim
30 DS418
30 DS423
30 DS1517
30 RS819
32 DVA1622
32 DVA3219
32 DVA3221
40 DS423+
40 DS716+
40 DS716+II
40 DS718+
40 DS720+
40 DS723+
40 DS916+
40 DS918+
40 DS920+
40 DS923+
40 DS1019+
40 DS1517+
40 DS1520+
40 DS1522+
40 DS1618+
40 DS1621+
40 DS1817+
40 DS1819+
40 DS1821+
40 DS2419+
40 DS2419+II
40 DS2422+
40 RS422+
40 RS818+
40 RS818RP+
40 RS820+
40 RS820RP+
40 RS822+
40 RS822RP+
40 RS1219+
40 RS1221+
40 RS1221RP+
40 RS2416+
40 RS2416RP+
40 RS2418+
40 RS2418RP+
40 RS2421+
40 RS2421RP+
40 RS2818RP+
40 RS2821RP+
40 VirtualDSM
50 RS2423+
50 RS2423RP+
55 DS1817
75 DS1621xs+
75 DS3018xs
75 DS3617xs
75 DS3617xsII
75 FS1018
75 RS1619xs+
75 RS3617RPxs
75 RS3617xs
75 RS3618xs
75 RS3621RPxs
90 DS3622xs+
90 RS3617xs+
90 RS3621xs+
90 RS4017xs+
90 RS4021xs+
90 RS18016xs+
90 RS18017xs+
100 FS2017
100 FS2500
100 FS3017
100 FS3400
100 FS3410
100 SA3200D
100 SA3400
100 SA3400D
128 DS1823xs+
128 FS3600
128 SA3410
128 SA3600
128 SA3610
128 SA6400
150 FS6400
150 HD6500
```
| 1,594 | Max-cameras-per-model | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.00660066, "qsc_doc_num_sentences": 1.0, "qsc_doc_num_words": 242, "qsc_doc_num_chars": 1594.0, "qsc_doc_num_lines": 136.0, "qsc_doc_mean_word_length": 4.34297521, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.55371901, "qsc_doc_entropy_unigram": 4.27153672, "qsc_doc_frac_words_all_caps": 0.28052805, "qsc_doc_frac_lines_dupe_lines": 0.01694915, "qsc_doc_frac_chars_dupe_lines": 0.00411523, "qsc_doc_frac_chars_top_2grams": 0.01332065, "qsc_doc_frac_chars_top_3grams": 0.0, "qsc_doc_frac_chars_top_4grams": 0.0, "qsc_doc_frac_chars_dupe_5grams": 0.0, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 10.64233577, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.35778175, "qsc_doc_frac_chars_digital": 0.5822898, "qsc_doc_frac_chars_whitespace": 0.29861982, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 1, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 1, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-use-DeviceTree.md | Synology NAS models that have /etc.defaults/model.dtb, /etc/model.dtb and /run/model.dtb
Last updated 11 March 2024
### DSM 7.2-64570
| Model | CPU Model | CPU Arch |
|--------------|-------------------------|---------------|
| DS124 | Realtek RTD1619B | rtd1619b |
| DS220+ | Intel Celeron J4025 | Geminilake |
| DS223 | Realtek RTD1619B | rtd1619b |
| DS223j | Realtek RTD1619B | rtd1619b |
| DS224+ | Intel Celeron J4125 | Geminilake |
| DS420+ | Intel Celeron J4025 | Geminilake |
| DS423+ | Intel Celeron J4125 | Geminilake |
| DS423 | Realtek RTD1619B | rtd1619b |
| DS720+ | Intel Celeron J4125 | Geminilake |
| DS723+ | AMD Ryzen R1600 | R1000 |
| DS920+ | Intel Celeron J4125 | Geminilake |
| DS923+ | AMD Ryzen R1600 | R1000 |
| DS1520+ | Intel Celeron J4125 | Geminilake |
| DS1522+ | AMD Ryzen R1600 | R1000 |
| DS1621+ | AMD Ryzen V1500B | V1000 |
| DS1821+ | AMD Ryzen V1500B | V1000 |
| DS1823xs+ | AMD Ryzen V1780B | V1000 |
| DS2422+ | AMD Ryzen V1500B | V1000 |
||||
| RS422+ | AMD Ryzen R1600 | R1000 |
| RS822+ | AMD Ryzen V1500B | V1000 |
| RS822RP+ | AMD Ryzen V1500B | V1000 |
| RS1221+ | AMD Ryzen V1500B | V1000 |
| RS1221RP+ | AMD Ryzen V1500B | V1000 |
| RS2421+ | AMD Ryzen V1500B | V1000 |
| RS2421RP+ | AMD Ryzen V1500B | V1000 |
| RS2423+ | AMD Ryzen V1780B | V1000 |
| RS2423RP+ | AMD Ryzen V1780B | V1000 |
| RS2821RP+ | AMD Ryzen V1500B | V1000 |
||||
| DVA1622 | Intel Celeron J4125 | Geminilake |
||||
| FS2500 | AMD Ryzen V1780B | V1000 |
| FS3410 | Intel Xeon D-1541 | Broadwellnkv2 |
| FS6400 | Intel Xeon D-1567 | Purley |
||||
| HD6500 | Intel Xeon Silver 4210R | Purley |
||||
| SA3410 | Intel Xeon D-1541 | Broadwellnkv2 |
| SA3610 | Intel Xeon D-1567 | Broadwellnkv2 |
| SA6400 | AMD EPYC 7272 | Epyc7002 |
### Flat list
```
DS124
DS220+
DS223
DS223j
DS224+
DS420+
DS423+
DS423
DS720+
DS723+
DS920+
DS923+
DS1520+
DS1522+
DS1621+
DS1821+
DS1823xs+
DS2422+
RS422+
RS822+
RS822RP+
RS1221+
RS1221RP+
RS2421+
RS2421RP+
RS2423+
RS2423RP+
RS2821RP+
DVA1622
FS2500
FS3410
FS6400
HD6500
SA3410
SA3610
SA6400
```
| 2,708 | Models-that-use-DeviceTree | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.01059322, "qsc_doc_num_sentences": 6.0, "qsc_doc_num_words": 249, "qsc_doc_num_chars": 2708.0, "qsc_doc_num_lines": 95.0, "qsc_doc_mean_word_length": 5.42570281, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.3373494, "qsc_doc_entropy_unigram": 4.01803895, "qsc_doc_frac_words_all_caps": 0.30720339, "qsc_doc_frac_lines_dupe_lines": 0.08235294, "qsc_doc_frac_chars_dupe_lines": 0.00995025, "qsc_doc_frac_chars_top_2grams": 0.10658771, "qsc_doc_frac_chars_top_3grams": 0.10362694, "qsc_doc_frac_chars_top_4grams": 0.14063657, "qsc_doc_frac_chars_dupe_5grams": 0.03997039, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 25.82178218, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.50846433, "qsc_doc_frac_chars_digital": 0.30834341, "qsc_doc_frac_chars_whitespace": 0.38921713, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/NVMe-Power-Loss-Protection.md | ### NVMe drives with Power Loss Protection (PLP) in a Synology NAS
NVMe drives with power loss protection are more common in the 22110 size. But there are some 2280 size data center NVMe drives available:
- Addlink D60 NAS SSD NVMe drives in 480GB, 960GB and 1.92TB https://www.addlink.com.tw/nas-d60
- Kingston DC2000B NVMe drives in 240GB. 480GB and 960GB https://www.kingston.com/en/ssd/DC2000B-data-center-solid-state-drive
- Kingston DC1000B NVMe drives in 240GB and 480GB https://www.kingston.com/en/ssd/dc1000b-data-center-boot-ssd
All Synology NAS with built-in M.2 slots are 2280.
The only M.2 PCIe adaptor cards that can take 22110 M.2 drives are the E10M20-T1 and M20D20.
- **E10M20-T1** specs: https://www.synology.com/en-global/products/E10M20-T1#specs
- **M20D20** specs: https://www.synology.com/en-global/products/M2D20#specs
- M20D18 specs: https://www.synology.com/en-global/products/M2D20#specs
If you have a reliable UPS, and you should, then you don't really need NVMe drives with power loss protection.
| 1,032 | NVMe-Power-Loss-Protection | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.17293233, "qsc_doc_num_sentences": 22.0, "qsc_doc_num_words": 181, "qsc_doc_num_chars": 1032.0, "qsc_doc_num_lines": 16.0, "qsc_doc_mean_word_length": 4.38674033, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.4198895, "qsc_doc_entropy_unigram": 4.10095895, "qsc_doc_frac_words_all_caps": 0.12030075, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.08816121, "qsc_doc_frac_chars_top_3grams": 0.05289673, "qsc_doc_frac_chars_top_4grams": 0.07178841, "qsc_doc_frac_chars_dupe_5grams": 0.36146096, "qsc_doc_frac_chars_dupe_6grams": 0.36146096, "qsc_doc_frac_chars_dupe_7grams": 0.17632242, "qsc_doc_frac_chars_dupe_8grams": 0.17632242, "qsc_doc_frac_chars_dupe_9grams": 0.12594458, "qsc_doc_frac_chars_dupe_10grams": 0.12594458, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 25.48717949, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.77591973, "qsc_doc_frac_chars_digital": 0.10925307, "qsc_doc_frac_chars_whitespace": 0.13081395, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/FAN-Speed-Modes.md | ### What type of fan speed modes are available on my Synology NAS?
https://kb.synology.com/en-ca/DSM/tutorial/What_type_of_fan_speed_modes_are_available_on_my_Synology_NAS
<br>
Some models run the fans at full or high speed when a network card is installed. This is configured by a setting in /etc.defaults/synoinfo.conf
For some reason Synology chose to run the fans at full speed for the RS2418RP+ and RS2418+
```
support_fan_adjust_by_ext_nic="full"
RS2418RP+
RS2418+
```
Yet for other models Synology set the fans to run at high speed (Cool Mode).
```
support_fan_adjust_by_ext_nic="high"
RS4021xs+
RS4017xs+
RS3621xs+
RS3621RPxs
RS3618xs
RS3617xs
RS3617xs+
RS3617RPxs
RS18017xs+
RS18016xs+
RS1619xs+
FS6400
FS3600
FS3410
FS3400
FS3017
FS2017
SA3610
SA3600
SA3410
SA3400D
SA3400
SA3200D
HD6500
```
If you own an RS2418RP+ or RS2418+ and want to run the fans in cool mode with a network card installed:
```
sudo synosetkeyvalue /etc.defaults/synoinfo.conf support_fan_adjust_by_ext_nic high
sudo synosetkeyvalue /etc/synoinfo.conf support_fan_adjust_by_ext_nic high
```
So you don't have to do that after every DSM update you can set a scheduled task:
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Triggered Task**.
2. Select **User-defined script**.
3. Enter a task name.
4. Select **root** as the user (The command needs to run as root).
5. Select **Boot-up** as the event that triggers the task.
6. Leave **Enable** ticked.
7. Click **Task Settings**.
8. Optionally you can tick **Send run details by email** and **Send run details only when the script terminates abnormally** then enter your email address.
9. In the box under **User-defined script** enter the following 2 lines.
```
/usr/syno/bin/synosetkeyvalue /etc.defaults/synoinfo.conf support_fan_adjust_by_ext_nic high
/usr/syno/bin/synosetkeyvalue /etc/synoinfo.conf support_fan_adjust_by_ext_nic high
```
11. Click **OK** to save the settings.
| 1,976 | FAN-Speed-Modes | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.20843672, "qsc_doc_num_sentences": 33.0, "qsc_doc_num_words": 325, "qsc_doc_num_chars": 1976.0, "qsc_doc_num_lines": 69.0, "qsc_doc_mean_word_length": 4.52615385, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.48615385, "qsc_doc_entropy_unigram": 4.78286619, "qsc_doc_frac_words_all_caps": 0.05707196, "qsc_doc_frac_lines_dupe_lines": 0.13793103, "qsc_doc_frac_chars_dupe_lines": 0.01270513, "qsc_doc_frac_chars_top_2grams": 0.04078858, "qsc_doc_frac_chars_top_3grams": 0.06526173, "qsc_doc_frac_chars_top_4grams": 0.07341944, "qsc_doc_frac_chars_dupe_5grams": 0.30727396, "qsc_doc_frac_chars_dupe_6grams": 0.27192386, "qsc_doc_frac_chars_dupe_7grams": 0.25560843, "qsc_doc_frac_chars_dupe_8grams": 0.23657376, "qsc_doc_frac_chars_dupe_9grams": 0.23657376, "qsc_doc_frac_chars_dupe_10grams": 0.23657376, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 18.19417476, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00202429, "qsc_doc_frac_chars_alphabet": 0.79394299, "qsc_doc_frac_chars_digital": 0.07957245, "qsc_doc_frac_chars_whitespace": 0.14777328, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Expansion-Unit-support-in-DSM-7.2.1.md | https://www.reddit.com/r/synology/comments/186s6h8/comment/kbaue3c/
### Geminilake: DS1520+, DS920+ and DS720+
| File | RX418 | DX517 | RX415 | DX513 | DX213 | Comment |
|-------------------|-------|-------|-------|-------|-------|------------|
| model.dtb | no | yes | no | no | no | see Note 1 |
| synoinfo.conf | yes | yes | no | no | no | see Note 2 |
| scemd | yes | yes | no | no | no | OK see Note 3 |
| scemd.xml | yes | yes | yes | yes | yes | OK |
| libhwcontrol.so.1 | yes | yes | yes | yes | yes | OK |
| diskaction.xml | no | no | no | yes | yes | OK see Note 4 |
| drive db file | yes | yes | yes | yes | yes | OK |
**Notes:**
1. Use [Synology enable eunit](https://github.com/007revad/Synology_enable_eunit)
2. synoinfo.conf only relevent for extended warranty (support_ew_20_eunit)
3. Works without editing scemd.
4. All NAS models have the same diskaction.xml
5. All Synology NAS models have the required drive database files.
<br>
**File locations:**
```
/etc.defaults/model.dtb
/etc.defaults/synoinfo.conf
/usr/syno/bin/scemd
/usr/syno/etc.defaults/scemd.xml
/usr/lib/libhwcontrol.so.1
/var.defaults/lib/diskaction/diskaction.xml
```
<br>
| 1,327 | Expansion-Unit-support-in-DSM-7.2.1 | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.18064516, "qsc_doc_num_sentences": 29.0, "qsc_doc_num_words": 172, "qsc_doc_num_chars": 1327.0, "qsc_doc_num_lines": 35.0, "qsc_doc_mean_word_length": 4.23837209, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.44767442, "qsc_doc_entropy_unigram": 3.94830368, "qsc_doc_frac_words_all_caps": 0.0483871, "qsc_doc_frac_lines_dupe_lines": 0.14285714, "qsc_doc_frac_chars_dupe_lines": 0.01083591, "qsc_doc_frac_chars_top_2grams": 0.12345679, "qsc_doc_frac_chars_top_3grams": 0.11111111, "qsc_doc_frac_chars_top_4grams": 0.09876543, "qsc_doc_frac_chars_dupe_5grams": 0.13443073, "qsc_doc_frac_chars_dupe_6grams": 0.1138546, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 19.75, "qsc_doc_frac_chars_hyperlink_html_tag": 0.04446119, "qsc_doc_frac_chars_alphabet": 0.70454545, "qsc_doc_frac_chars_digital": 0.04855372, "qsc_doc_frac_chars_whitespace": 0.27053504, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-SSD-Cache.md | https://kb.synology.com/en-global/DSM/tutorial/Which_Synology_NAS_models_support_SSD_cache
## Which Synology NAS models support SSD cache?
Last updated: Jul 27, 2023
<br> </br>
### 2.5" SSDs installed in drive trays
Type | Protocol | Series | Models
-- | -- | -- | --
2.5" | SAS / SATA | FS-series | FS6400, FS3600, FS3400, FS3017, FS2017
2.5" | SAS / SATA | SA-series | SA3610, SA3600, SA3410, SA3400
2.5" | SAS / SATA | 17-series | RS18017xs+
2.5" | SAS / SATA | 16-series | RS18016xs+
2.5" | SAS / SATA | 13-series | RS10613xs+
|||
2.5" | SAS only | SA-series | SA3400D, SA3200D
2.5" | SAS only | 15-series | RC18015xs+
|||
2.5" | SATA only | FS-series | FS3410, FS2500, FS1018
2.5" | SATA only | HD-series | HD65001,2
2.5" | SATA only | SA-series | SA6400
2.5" | SATA only | 23-series | RS2423RP+, RS2423+, DS1823xs+, DS923+, DS723+, DS423+
2.5" | SATA only | 22-series | RS822RP+, RS822+, RS422+, DS3622xs+, DS2422+, DS1522+
2.5" | SATA only | 21-series | RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
2.5" | SATA only | 21-series | DS1821+, DS1621xs+, DS1621+, DVA3221
2.5" | SATA only | 20-series | RS820RP+, RS820+, DS1520+, DS920+, DS720+, DS420+, DS620slim
2.5" | SATA only | 19-series | RS1619xs+, RS1219+, DS2419+II, DS2419+, DS1819+, DS1019+, DVA3219
2.5" | SATA only | 18-series | RS3618xs, RS2818RP+, RS2418RP+, RS2418+, RS818RP+, RS818+
2.5" | SATA only | 18-series | DS3018xs, DS1618+, DS918+, DS718+
2.5" | SATA only | 17-series | RS4017xs+, RS3617xs+, RS3617RPxs, RS3617xs
2.5" | SATA only | 17-series | DS3617xsII, DS3617xs, DS1817+, DS1517+, DS1817, DS1517
2.5" | SATA only | 16-series | RS2416RP+, RS2416+, DS916+, DS716+II, DS716+
2.5" | SATA only | 15-series | RS815RP+, RS815+
2.5" | SATA only | 15-series | DS3615xs, DS2015xs, DS2415+, DS1815+, DS1515+, DS415+, DS1515, DS715
2.5" | SATA only | 14-series | RS3614xs+, RS3614RPxs, RS3614xs, RS2414RP+, RS2414+, RS814RP+, RS814+
2.5" | SATA only | 13-series | RS3413xs+, DS2413+, DS1813+, DS1513+, DS713+
2.5" | SATA only | 12-series | RS3412RPxs, RS3412xs, RS2212RP+, RS2212+, RS812RP+, RS812+
2.5" | SATA only | 12-series | DS3612xs, DS1812+, DS1512+, DS412+
2.5" | SATA only | 11-series | RS3411RPxs, RS3411xs, DS3611xs
<br> </br>
### M.2 SSDs installed in built-in M.2 SSD slots
Type | Protocol | Series | Models
-- | -- | -- | --
M.2 2280 | NVMe | 23-series | DS1823xs+, DS923+, DS723+, DS423+
M.2 2280 | NVMe | 22-series | DS1522+
M.2 2280 | NVMe | 21-series | DS1821+, DS1621xs+, DS1621+
M.2 2280 | NVMe | 20-series | DS1520+, DS920+, DS720+, DS420+
M.2 2280 | NVMe | 19-series | DS1019+
M.2 2280 | NVMe | 18-series | DS918+
|||
M.2 2280 | NVMe / SATA | 19-series | RS1619xs+
<br> </br>
### M.2 SSDs installed using an optional M.2 SSD adapter card
[E10M20-T1](https://www.synology.com/en-global/compatibility?search_by=category&category=m2_ssd_e10m20&p=1)
[M2D20](https://www.synology.com/en-global/compatibility?search_by=category&category=m2_ssd_m2d20&p=1)
[M2D18](https://www.synology.com/en-global/compatibility?search_by=category&category=m2_ssd_m2d18&p=1)
[M2D17](https://www.synology.com/en-global/compatibility?search_by=category&category=m2_ssd_m2d17&p=1)
M.2 SSD Adapter | Type | Protocol | Series | Models
-- | -- | -- | -- | --
E10M20-T1 | M.2 2280 | NVMe | 23-series | RS2423RP+, RS2423+
E10M20-T1 | M.2 2280 | NVMe | 22-series | RS822RP+, RS822+, DS2422+
E10M20-T1 | M.2 2280 | NVMe | 21-series | RS2821RP+, RS2421RP+, RS2421+, RS1221(RP)+
E10M20-T1 | M.2 2280 | NVMe | 20-series | RS820(RP)+
E10M20-T1 | M.2 2280 | NVMe | 19-series | DS2419+II, DS2419+, DS1819+
E10M20-T1 | M.2 2280 | NVMe | 18-series | RS2818RP+, DS1618+
||||
E10M20-T1 | M.2 22110 | NVMe | SA-series | SA6400, SA3610, SA3600, SA3410, SA3400
E10M20-T1 | M.2 22110 | NVMe | 23-series | RS2423RP+, RS2423+
E10M20-T1 | M.2 22110 | NVMe | 22-series | RS822RP+, RS822+, DS3622xs+, DS2422+
E10M20-T1 | M.2 22110 | NVMe | 21-series | RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
E10M20-T1 | M.2 22110 | NVMe | 20-series | RS820(RP)+
E10M20-T1 | M.2 22110 | NVMe | 19-series | DS2419+II, DS2419+, DS1819+
E10M20-T1 | M.2 22110 | NVMe | 18-series | RS3618xs, RS2818RP+, DS3018xs, DS1618+
E10M20-T1 | M.2 22110 | NVMe | 17-series | RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII
||||
M2D20 | M.2 2280 | NVMe | 23-series | RS2423RP+, RS2423+
M2D20 | M.2 2280 | NVMe | 22-series | RS822RP+, RS822+, DS2422+
M2D20 | M.2 2280 | NVMe | 21-series | RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
M2D20 | M.2 2280 | NVMe | 20-series | RS820(RP)+
M2D20 | M.2 2280 | NVMe | 19-series | DS2419+II, DS2419+, DS1819+
M2D20 | M.2 2280 | NVMe | 18-series | RS2818RP+, RS2418(RP)+, DS1618+
M2D20 | M.2 2280 | NVMe | 17-series | RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII
||||
M2D20 | M.2 22110 | NVMe | SA-series | SA6400, SA3610, SA3600, SA3410, SA3400
M2D20 | M.2 22110 | NVMe | 23-series | RS2423RP+, RS2423+
M2D20 | M.2 22110 | NVMe | 22-series | RS822RP+, RS822+, DS3622xs+, DS2422+
M2D20 | M.2 22110 | NVMe | 21-series | RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
M2D20 | M.2 22110 | NVMe | 20-series | RS820(RP)+
M2D20 | M.2 22110 | NVMe | 19-series | DS2419+II, DS2419+, DS1819+
M2D20 | M.2 22110 | NVMe | 18-series | RS3618xs, RS2818RP+, RS2418(RP)+, DS3018xs, DS1618+
M2D20 | M.2 22110 | NVMe | 17-series | RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII
||||
M2D18 | M.2 2242/2260/2280 | SATA | FS-series | FS2017
M2D18 | M.2 2242/2260/2280 | SATA | 19-series | RS1219+
M2D18 | M.2 2242/2260/2280 | SATA | 18-series | RS3618xs, RS818RP+, RS818+
M2D18 | M.2 2242/2260/2280 | SATA | 17-series | RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs
M2D18 | M.2 2242/2260/2280 | SATA | 17-series | DS3617xs, DS3617xsII, DS1817+, DS1517+
||||
M2D18 | M.2 2242/2260/2280 | NVMe/SATA | FS-series | FS1018
M2D18 | M.2 2242/2260/2280 | NVMe/SATA | 20-series | RS820RP+, RS820+
M2D18 | M.2 2242/2260/2280 | NVMe/SATA | 19-series | DS2419+II, DS2419+, DS1819+
M2D18 | M.2 2242/2260/2280 | NVMe/SATA | 18-series | RS2818RP+, RS2418RP+, RS2418+, DS3018xs, DS1618+
||||
M2D17 | M.2 2242/2260/2280 | SATA | FS-series | FS1018
M2D17 | M.2 2242/2260/2280 | SATA | 18-series | RS2818RP+, RS2418RP+, RS2418+, DS3018xs, DS1618+
M2D17 | M.2 2242/2260/2280 | SATA | 17-series | DS1817+, DS1517+
| 6,439 | Models-that-support-SSD-Cache | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.01983914, "qsc_doc_num_sentences": 98.0, "qsc_doc_num_words": 977, "qsc_doc_num_chars": 6439.0, "qsc_doc_num_lines": 115.0, "qsc_doc_mean_word_length": 4.39918117, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.19344933, "qsc_doc_entropy_unigram": 4.4096016, "qsc_doc_frac_words_all_caps": 0.20697051, "qsc_doc_frac_lines_dupe_lines": 0.15384615, "qsc_doc_frac_chars_dupe_lines": 0.02577483, "qsc_doc_frac_chars_top_2grams": 0.02466263, "qsc_doc_frac_chars_top_3grams": 0.02931596, "qsc_doc_frac_chars_top_4grams": 0.04885993, "qsc_doc_frac_chars_dupe_5grams": 0.63494649, "qsc_doc_frac_chars_dupe_6grams": 0.61377385, "qsc_doc_frac_chars_dupe_7grams": 0.51582131, "qsc_doc_frac_chars_dupe_8grams": 0.46975337, "qsc_doc_frac_chars_dupe_9grams": 0.36831084, "qsc_doc_frac_chars_dupe_10grams": 0.29013495, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 29.23474178, "qsc_doc_frac_chars_hyperlink_html_tag": 0.06336388, "qsc_doc_frac_chars_alphabet": 0.46506912, "qsc_doc_frac_chars_digital": 0.32718894, "qsc_doc_frac_chars_whitespace": 0.15747787, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 1, "qsc_doc_frac_chars_dupe_6grams": 1, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 1, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/DSM-version-types.md | From [Synology's Software_Life_Cycle_Policy_enu.pdf](https://global.download.synology.com/download/Document/Software/WhitePaper/Os/DSM/All/enu/Software_Life_Cycle_Policy_enu.pdf) -
Last updated: Jul 2, 2024
Or see https://kb.synology.com/en-global/WP/Software_Life_Cycle_Policy/2
### DiskStation Manager (DSM)
DSM follows the MAJOR.MINOR.MICRO-BUILD-NANO versioning rules:
- MAJOR version is for incompatible system behavior or API changes
- MINOR version is for new functionality in a backward-compatible manner
- MICRO version is for incremental security or bug fix updates
- BUILD is an additional engineering identification of the release
- NANO version is for a specific security or bug fixes with backward compatibility
Each minor version of DSM, such as DSM 6.2, is identified as a different product with a different
number of life-cycle phases. Some of them will have an extended life phase and are identified as
long-term support. Security fixes, bug fixes, software enhancements, or hardware enablements
may be contained in each phase.
Software changes to DSM will be delivered via individual nano updates as minimum changes, such
as DSM 6.2.2-24922-4, or be aggregated as an incremental release, such as DSM 6.2-23739 or
6.2.2-24922.
The following table lists the differences between each release version:
| | Major Release | Minor Release | Micro Release | Nano Release |
|--|--|--|--|--|
| Examples (Naming) | DSM 6.0-7321 | DSM 6.2-23739 | DSM 6.2.2-24922 | DSM 6.2.2-24922-4 |
| Release: Frequency | Years | Years | Quarters | Months |
| Release: Basis | Schedule | Schedule | Schedule | Incident |
| Includes: Features | Yes | Yes¹ | Yes¹ | No |
| Includes: Criteria | Liberal | Strict¹ | Strict¹ | Very Strict |
| System ABI Guaranteed | No | No | Yes | Yes |
1. Depends on the life-cycle phase.
| 1,824 | DSM-version-types | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.17936118, "qsc_doc_num_sentences": 27.0, "qsc_doc_num_words": 286, "qsc_doc_num_chars": 1824.0, "qsc_doc_num_lines": 36.0, "qsc_doc_mean_word_length": 4.81468531, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.47202797, "qsc_doc_entropy_unigram": 4.5919163, "qsc_doc_frac_words_all_caps": 0.06142506, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.02033406, "qsc_doc_frac_chars_top_3grams": 0.02178649, "qsc_doc_frac_chars_top_4grams": 0.02323893, "qsc_doc_frac_chars_dupe_5grams": 0.08787219, "qsc_doc_frac_chars_dupe_6grams": 0.05954975, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 27.515625, "qsc_doc_frac_chars_hyperlink_html_tag": 0.06907895, "qsc_doc_frac_chars_alphabet": 0.84954604, "qsc_doc_frac_chars_digital": 0.04345006, "qsc_doc_frac_chars_whitespace": 0.15460526, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-Deduplication.md | ### Synology models that officially support data deduplication
https://kb.synology.com/en-global/DSM/tutorial/Which_models_support_data_deduplication
**Which Synology NAS models support data deduplication?**
- FS6400, FS3600, FS3410, FS3400, FS2500
- HD6500
- SA6400, SA3610, SA3600, SA3410, SA3400
- RS4021xs+, RS3621xs+, RS3621RPxs
**Requirements:**
- Data deduplication is only supported on Synology SSDs and Btrfs volumes. You need to create a storage pool consisting entirely of Synology SSDs and then create at least one Btrfs volume.
- Data deduplication can only run when the volume status is Healthy.
- Data deduplication requires you to Enable usage detail analysis for the Btrfs volume.
**Notes:**
- RS3621xs+/RS3621RPxs and FS2500 need at least 16 GB of memory to enable data deduplication.
<br>
**Configure Data Deduplication:**
https://kb.synology.com/en-global/DSM/help/DSM/StorageManager/volume_btrfs_dedup?version=7
<br>
**Configure Snapshot Replication and Data Deduplication:**
https://kb.synology.com/en-global/DSM/tutorial/Configure_snapshot_replication_and_data_deduplication
<br>
***
### Undocumented models that support data deduplication
DiskStation models that support Tiny Btrfs Data Deduplication in DSM 7.2.1
- DS1522+, DS1621+, DS1621xs+, DS1821+, DS1823xs+, DS423+, DS723+ and DS923+.
These models have "tiny btrfs data deduplication" enabled and only need 4GB of memory or more.
In my test on a DS720+ with only 2GB of memory I got a message saying at 4GB of system memory was needed.
https://www.reddit.com/r/synology/comments/18oyu21/data_deduplication_only_needs_4gb_of_memory/
<br>
| 1,638 | Models-that-support-Deduplication | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.18867925, "qsc_doc_num_sentences": 21.0, "qsc_doc_num_words": 237, "qsc_doc_num_chars": 1638.0, "qsc_doc_num_lines": 48.0, "qsc_doc_mean_word_length": 5.3628692, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.49367089, "qsc_doc_entropy_unigram": 4.41876346, "qsc_doc_frac_words_all_caps": 0.09433962, "qsc_doc_frac_lines_dupe_lines": 0.14285714, "qsc_doc_frac_chars_dupe_lines": 0.01006289, "qsc_doc_frac_chars_top_2grams": 0.18725413, "qsc_doc_frac_chars_top_3grams": 0.07553108, "qsc_doc_frac_chars_top_4grams": 0.05664831, "qsc_doc_frac_chars_dupe_5grams": 0.18332022, "qsc_doc_frac_chars_dupe_6grams": 0.18332022, "qsc_doc_frac_chars_dupe_7grams": 0.12116444, "qsc_doc_frac_chars_dupe_8grams": 0.12116444, "qsc_doc_frac_chars_dupe_9grams": 0.12116444, "qsc_doc_frac_chars_dupe_10grams": 0.08497246, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 22.75362319, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00976801, "qsc_doc_frac_chars_alphabet": 0.81192982, "qsc_doc_frac_chars_digital": 0.08, "qsc_doc_frac_chars_whitespace": 0.13003663, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-200TB-Volumes.md | https://kb.synology.com/en-global/DSM/tutorial/Why_does_my_Synology_NAS_have_a_single_volume_size_limitation
https://kb.synology.com/en-global/DSM/tutorial/What_is_Btrfs_Peta_Volume
- 200TB volumes require 32GB or more of memory.
- Btrfs Peta volumes require 64GB ore more of memory.
| NAS requirements | 108TB volume | 200TB volume | Peta volume | Comment |
| -----------------------|--------------|--------------|-------------|---------|
| Required memory | | 32GB + | 64GB + | |
| Required file system | | Btrfs | Btrfs | |
| Required RAID type | | RAID 5 or 6 | RAID 6 | See Notes |
**Notes (by 007revad)**
1. 200TB volumes work in SHR if the NAS supports SHR (like a DS1821+ with 32GB or more memory).
2. Peta volumes may work in SHR2 if the NAS supports SHR.
<br>
**Models that officially support 200TB volumes**
- RS2423+, RS2423RP+
- All xs RS and DS models
- All FS models
- All HD models
- All SA models
<br>
There are 2 models that support 200TB volumes and SHR, that have no supportraidgroup
1. RS2423+
2. RS2423RP+
| Synoinfo setting | 108TB volume | 200TB volume | Peta volume | Model |
| -----------------------|--------------|--------------|-------------|-----------|
| supportraidgroup | | "yes | "yes" | |
| supportraidgroup | | | | RS2423+ |
| supportraidgroup | | | | RS2423RP+ |
<br>
### Models that support 200TB volumes even though Synology says they don't
| Model | Memory Needed | File System | RAID Type |
| ------------|---------------|-------------|----------------|
| DS1522+ | 32GB or more | Btrfs | |
| DS1621+ | 32GB or more | Btrfs | |
| DS1821+ | 32GB or more | Btrfs | |
<br>
| 1,920 | Models-that-support-200TB-Volumes | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.13030303, "qsc_doc_num_sentences": 13.0, "qsc_doc_num_words": 207, "qsc_doc_num_chars": 1920.0, "qsc_doc_num_lines": 49.0, "qsc_doc_mean_word_length": 4.69565217, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.43961353, "qsc_doc_entropy_unigram": 4.27414917, "qsc_doc_frac_words_all_caps": 0.13939394, "qsc_doc_frac_lines_dupe_lines": 0.11111111, "qsc_doc_frac_chars_dupe_lines": 0.00863465, "qsc_doc_frac_chars_top_2grams": 0.0617284, "qsc_doc_frac_chars_top_3grams": 0.05144033, "qsc_doc_frac_chars_top_4grams": 0.0462963, "qsc_doc_frac_chars_dupe_5grams": 0.24074074, "qsc_doc_frac_chars_dupe_6grams": 0.14197531, "qsc_doc_frac_chars_dupe_7grams": 0.07613169, "qsc_doc_frac_chars_dupe_8grams": 0.07613169, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 29.98387097, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00833333, "qsc_doc_frac_chars_alphabet": 0.64914878, "qsc_doc_frac_chars_digital": 0.07031828, "qsc_doc_frac_chars_whitespace": 0.29635417, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-SHR.md | **Which Synology server models have limited or no SHR (Synology Hyrbid RAID) support?**
https://kb.synology.com/en-global/DSM/tutorial/Which_models_have_limited_support_for_Synology_Hybrid_RAID_SHR
*Synology stopped updating that page in Oct 2022*
<br>
**Which Synology server models fully support SHR (Synology Hyrbid RAID)?**
Models with SHR that have support_syno_hybrid_raid="yes" in synoinfo.conf in DSM 7.2.1
<br>
**DS models**
- DS216+
DS216+II
DS216
DS216j
DS216play
DS218+
DS218
DS218j
DS218play
DS220+
DS220j
DS223
DS223j
DS224+
- DS416
DS416j
DS416play
DS416slim
DS418
DS418j
DS418play
DS419slim
DS420+
DS420j
DS423+
DS423
- DS620slim
- DS716+
DS716+II
DS718+
DS720+
DS723+
- DS916+
DS918+
DS920+
DS923+
- DS1019+
- DS1517+
DS1517
DS1520+
DS1522+
- DS1618+
DS1621+
- DS1817+
DS1817
DS1819+
DS1821+
- DS2419+
DS2419+II
DS2422+
<br>
**DVA models**
- DVA1622
DVA3221
DVA3219
<br>
**RS models**
- RS422+
- RS816
RS818+
RS818RP+
RS819
RS820+
RS820RP+
RS822+
RS822RP+
- RS1219+
RS1221+
RS1221RP+
RS217
- RS2416+
RS2416RP+
RS2418+
RS2418RP+
RS2421+
RS2421RP+
RS2423+
RS2423RP+
- RS2818RP+
RS2821RP+
| 1,130 | Models-that-support-SHR | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.04918033, "qsc_doc_num_sentences": 8.0, "qsc_doc_num_words": 156, "qsc_doc_num_chars": 1130.0, "qsc_doc_num_lines": 115.0, "qsc_doc_mean_word_length": 5.32051282, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.70512821, "qsc_doc_entropy_unigram": 4.52076518, "qsc_doc_frac_words_all_caps": 0.30737705, "qsc_doc_frac_lines_dupe_lines": 0.04545455, "qsc_doc_frac_chars_dupe_lines": 0.01576355, "qsc_doc_frac_chars_top_2grams": 0.03975904, "qsc_doc_frac_chars_top_3grams": 0.04578313, "qsc_doc_frac_chars_top_4grams": 0.06024096, "qsc_doc_frac_chars_dupe_5grams": 0.0, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 8.19512195, "qsc_doc_frac_chars_hyperlink_html_tag": 0.01415929, "qsc_doc_frac_chars_alphabet": 0.58977035, "qsc_doc_frac_chars_digital": 0.27661795, "qsc_doc_frac_chars_whitespace": 0.15221239, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Synology-HDDs-and-SSDs.md | ### Synology HDD and SSD manufacturers
| Drive Series | Type | Drive Model | Manufacturer | Based on | |
|--------------|----------------|-------------|--------------|--------------|--------------|
| Plus | SATA 3.5" HDD | HAT3310 | Toshiba | MG08 | 8, 12 and 16TB |
| Plus | SATA 3.5" HDD | HAT3300 | Seagate | Ironwolf | 2, 4 and 6TB |
| Enterprise | SATA 3.5" HDD | HAT5310 | Seagate? Toshiba? | Ironwolf Pro? MG09? |
| Enterprise | SATA 3.5" HDD | HAT5300 | Toshiba | MG08 | Discontinued? |
| | | | | |
| Enterprise | SAS 3.5" HDD | HAS5300 | Toshiba | MG08 |
| | | | | |
| Enterprise | SATA 2.5" SSD | SAT5220 | Toshiba? | ??? |
| Enterprise | SATA 2.5" SSD | SAT5210 | Toshiba? | ??? |
| Enterprise | SATA 2.5" SSD | SAT5200 | Toshiba? | ??? | Discontinued? |
| | | | | |
| Enterprise | M.2 2280 NVMe | SNV3410 | Seagate? | ??? |
| Enterprise | M.2 2280 NVMe | SNV3400 | Seagate? | ??? | Discontinued? |
| | | | | |
| Enterprise | M.2 22110 NVMe | SNV3510 | ??? | ??? |
| Enterprise | M.2 22110 NVMe | SNV3500 | ??? | ??? | Discontinued? |
<br>
### Synology HDD compatibility policy
[SpaceRex video on DSM 7.1](https://www.youtube.com/watch?v=NoC3BA3kMo0)
https://www.blackvoid.club/synology-hdd-compatibility-policy-explained/ (old info from DSM 7.0)
<br>
| 1,440 | Synology-HDDs-and-SSDs | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.02719033, "qsc_doc_num_sentences": 35.0, "qsc_doc_num_words": 149, "qsc_doc_num_chars": 1440.0, "qsc_doc_num_lines": 31.0, "qsc_doc_mean_word_length": 4.84563758, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.46308725, "qsc_doc_entropy_unigram": 3.90423084, "qsc_doc_frac_words_all_caps": 0.12990937, "qsc_doc_frac_lines_dupe_lines": 0.25, "qsc_doc_frac_chars_dupe_lines": 0.03690561, "qsc_doc_frac_chars_top_2grams": 0.01385042, "qsc_doc_frac_chars_top_3grams": 0.03462604, "qsc_doc_frac_chars_top_4grams": 0.0498615, "qsc_doc_frac_chars_dupe_5grams": 0.30055402, "qsc_doc_frac_chars_dupe_6grams": 0.07202216, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 14.83516484, "qsc_doc_frac_chars_hyperlink_html_tag": 0.03680556, "qsc_doc_frac_chars_alphabet": 0.59980431, "qsc_doc_frac_chars_digital": 0.10665362, "qsc_doc_frac_chars_whitespace": 0.29027778, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-PCIe-M.2-cards.md | Officially no Synology NAS supports using M.2 drives in a PCIe card as a volume and they can only be used a cache.
Unofficially you can use either:
- https://github.com/007revad/Synology_HD_db for newer NAS models
- Or https://github.com/007revad/Synology_M2_volume for all NAS models
***
### E10M20-T1
https://www.synology.com/en-global/products/E10M20-T1#specs
```
NVMe SSD
SA series: SA6400, SA3610, SA3600, SA3410, SA3400
25 series: RS2825RP+
23 series: RS2423RP+, RS2423+
22 series: RS822RP+, RS822+, DS3622xs+, DS2422+
21 series: RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
20 series: RS820RP+, RS820+
19 series: DS2419+, DS2419+II, DS1819+
18 series: RS3618xs, RS2818RP+, DS3018xs, DS1618+
17 series: RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII
```
**Notes**
- DSM version requirement: 6.2.3-25426 or later version
- DSM version requirement for RS18017xs+, RS4017xs+, RS3618xs, RS3617xs+, RS3617RPxs, DS3617xs and DS3617xsII: 7.0.1 or later version
***
### M2D20
https://www.synology.com/en-global/products/M2D20#specs
```
NVMe SSD
SA series: SA6400, SA3610, SA3600, SA3410, SA3400
25 series: RS2825RP+
23 series: RS2423RP+, RS2423+
22 series: RS822RP+, RS822+, DS3622xs+, DS2422+
21 series: RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421RP+, RS2421+, RS1221RP+, RS1221+
20 series: RS820RP+, RS820+
19 series: DS2419+, DS2419+II, DS1819+
18 series: RS3618xs, RS2818RP+, RS2418RP+, RS2418+, DS3018xs, DS1618+
17 series: RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII
```
***
### M2D18
https://www.synology.com/en-global/products/M2D18#specs
```
NVMe & SATA SSD
FS series: FS1018
22 series: RS822RP+, RS822+
21 series: RS1221RP+, RS1221+
20 series: RS820RP+, RS820+
19 series: DS2419+, DS2419+II, DS1819+
18 series: RS2818RP+, RS2418RP+, RS2418+, DS3018xs, DS1618+
```
```
SATA SSD
FS series: FS2017
19 series: RS1219+
18 series: RS3618xs, RS818RP+, RS818+
17 series: RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, DS3617xs, DS3617xsII, DS1817+, DS1517+
```
**Notes**
- DSM version requirement: 6.2-23739-2 onward (or 6.1-15284-2 onward with DSM 6.1)
- Operating system requirement for RS1221RP+, RS1221+, RS822RP+, and RS822+: DSM 7.2-64551 or later.
- RS1221RP+, RS1221+, RS822RP+, and RS822+ support M.2 NVMe SSD with the M2D18 add-in card.
| 2,410 | Models-that-support-PCIe-M.2-cards | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.07441016, "qsc_doc_num_sentences": 21.0, "qsc_doc_num_words": 331, "qsc_doc_num_chars": 2410.0, "qsc_doc_num_lines": 78.0, "qsc_doc_mean_word_length": 5.18126888, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.38066465, "qsc_doc_entropy_unigram": 4.56822003, "qsc_doc_frac_words_all_caps": 0.19782214, "qsc_doc_frac_lines_dupe_lines": 0.55, "qsc_doc_frac_chars_dupe_lines": 0.39279438, "qsc_doc_frac_chars_top_2grams": 0.04081633, "qsc_doc_frac_chars_top_3grams": 0.0606414, "qsc_doc_frac_chars_top_4grams": 0.03323615, "qsc_doc_frac_chars_dupe_5grams": 0.66355685, "qsc_doc_frac_chars_dupe_6grams": 0.56559767, "qsc_doc_frac_chars_dupe_7grams": 0.53294461, "qsc_doc_frac_chars_dupe_8grams": 0.47172012, "qsc_doc_frac_chars_dupe_9grams": 0.4361516, "qsc_doc_frac_chars_dupe_10grams": 0.4361516, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 23.11, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.56393925, "qsc_doc_frac_chars_digital": 0.27633513, "qsc_doc_frac_chars_whitespace": 0.15311203, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 1, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Linux-Kernel-in-each-platform-arch.md | ### Linux Kernel in each platform that supports DSM 7.2
Any recently released Synology NAS that uses a CPU that Synology had not previously used use kernel 5.10, like the SA6400, DS124, DS423, DS223j and DS223.
Any Synology with the following CPU architectures use kernel 4.4
- apollolake, armada37xx, broadwell, broadwellnk, broadwellnkv2, broadwellntbap, denverton, geminilake, kvmcloud, kvmx64, purley, r1000, rtd1296 and v1000
Synology's with older CPU architectures use kernel 3.10
| [Platform arch](https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have) | Kernel | Models |
|----------|--------|--------|
| v1000nk | 5.10.55+ | DS1825+, DS1525+ and DS925+ |
| geminilakenk | 5.10.55+ | DS425+, DS225+ |
| epyc7002 | 5.10.x | SA6400 |
| rtd1619b | 5.10.x | DS124, DS423, DS223j and DS223 |
| | | |
| apollolake | 4.4.x |
| armada37xx | 4.4.x |
| broadwell | 4.4.x |
| broadwellnk | 4.4.x |
| broadwellnkv2 | 4.4.x |
| broadwellntbap | 4.4.x |
| denverton | 4.4.x |
| geminilake | 4.4.x |
| kvmcloud | 4.4.x |
| kvmx64 | 4.4.x |
| purley | 4.4.x |
| r1000 | 4.4.x |
| rtd1296 | 4.4.x |
| v1000 | 4.4.x |
| | | |
| avoton | 3.10.x |
| braswell | 3.10.x |
| bromolow | 3.10.x |
| grantley | 3.10.x |
| | | |
| alpine | 3.10.x-bsp |
| alpine4k | 3.10.x-bsp |
| armada38x | 3.10.x-bsp |
| monaco | 3.10.x-bsp |
| 1,343 | Linux-Kernel-in-each-platform-arch | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.12098765, "qsc_doc_num_sentences": 60.0, "qsc_doc_num_words": 213, "qsc_doc_num_chars": 1343.0, "qsc_doc_num_lines": 40.0, "qsc_doc_mean_word_length": 4.03286385, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.41314554, "qsc_doc_entropy_unigram": 3.859744, "qsc_doc_frac_words_all_caps": 0.04691358, "qsc_doc_frac_lines_dupe_lines": 0.08333333, "qsc_doc_frac_chars_dupe_lines": 0.01611665, "qsc_doc_frac_chars_top_2grams": 0.03492433, "qsc_doc_frac_chars_top_3grams": 0.04889406, "qsc_doc_frac_chars_top_4grams": 0.03259604, "qsc_doc_frac_chars_dupe_5grams": 0.05587893, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 12.44, "qsc_doc_frac_chars_hyperlink_html_tag": 0.06105733, "qsc_doc_frac_chars_alphabet": 0.62034514, "qsc_doc_frac_chars_digital": 0.15985468, "qsc_doc_frac_chars_whitespace": 0.1801936, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-Immutable-Snapshots.md | Synology says Immutable Snapshots and WORM are only available on '20 series and newer models.
https://kb.synology.com/en-global/DSM/tutorial/which_synology_nas_models_support_WriteOnce_and_secure_snapshots
| Series | Models |
|-----------|--|
| HD-series | HD6500 |
| FS-series | FS6400, FS3600, FS3410, FS3400, FS2500, FS2017, FS1018 |
| SA-series | SA6400, SA3610, SA3600, SA3410, SA3400, SA3400D, SA3200D |
| 24-series | DS224+ |
| 23-series | RS2423RP+, RS2423+, DS1823xs+, DS923+, DS723+, DS423+ |
| 22-series | RS822+, RS822RP+, RS422+, DS3622xs+, DS2422+, DS1522+ |
| 21-series | RS4021xs+, RS3621xs+, RS3621RPxs, RS2821RP+, RS2421+, RS2421RP+, RS1221+, RS1221RP+ <br> DS1821+, DS1621xs+, DS1621+ |
| 20-series | RS820+, RS820RP+ <br> DS1520+, DS920+, DS720+, DS620slim, DS420+, DS220+ |
<br>**NOTE:** I've had a report of the following causing issues on older models. https://github.com/007revad/Synology_HDD_db/issues/127
We can enable them on other models that are using DSM 7.2 by running the following command:
```YAML
sudo synosetkeyvalue /etc.defaults/synoinfo.conf support_worm yes
sudo synosetkeyvalue /etc/synoinfo.conf support_worm yes
```
Will that work on all models using DSM 7.2... I don't know. I've had reports that this does NOT work on older models.
| 1,285 | Models-that-support-Immutable-Snapshots | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.13559322, "qsc_doc_num_sentences": 13.0, "qsc_doc_num_words": 185, "qsc_doc_num_chars": 1285.0, "qsc_doc_num_lines": 26.0, "qsc_doc_mean_word_length": 4.97837838, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.69189189, "qsc_doc_entropy_unigram": 4.66671999, "qsc_doc_frac_words_all_caps": 0.17966102, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.01737242, "qsc_doc_frac_chars_top_3grams": 0.01302932, "qsc_doc_frac_chars_top_4grams": 0.02171553, "qsc_doc_frac_chars_dupe_5grams": 0.05646037, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 29.61904762, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00933852, "qsc_doc_frac_chars_alphabet": 0.65492322, "qsc_doc_frac_chars_digital": 0.1770551, "qsc_doc_frac_chars_whitespace": 0.1385214, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-RAID-F1.md | Synology's RAID F1 uses Diff-RAID
All these models that support RAID F1 have support_**diffraid**="yes" in synoinfo.conf
All models, even 2 bay models, seem to have the same RaidF1 related files in /usr/syno/ <br>
Models checked: DS1821+, DS1520+, DS720+
<br>
https://kb.synology.com/en-global/DSM/tutorial/Which_Synology_NAS_models_support_RAID_F1
*Synology stopped updating this list in Oct 2022*
Updated by 007revad July 2023 - Added SA6400, SA3610, SA3410 and DS1823xs+
**Which Synology server models support RAID F1?**
- UC3200
- FS6400, FS3600, FS3410, FS3400, FS3017, FS2500, FS2017, FS1018
- SA6400, SA3610, SA3600, SA3410, SA3400, SA36200D
- DS1823xs+
- DS3622xs+
- RS4021xs+, RS3621xs+, RS3621RPxs, DS1621xs+
- RS1619xs+
- RS3618xs, DS3018xs
- RS18017xs+, RS4017xs+, RS3617xs+, RS3617RPxs, RS3617xs, DS3617xsII, DS3617xs
- RS18016xs+
- RC18015xs+, DS3615xs
- RS3614xs+, RS3614RPxs, RS3614xs
- RS10613xs+, RS3413xs+
https://global.download.synology.com/download/Document/WhitePaper/Synology_RAID_F1_WP.pdf
| 1,024 | Models-that-support-RAID-F1 | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.09174312, "qsc_doc_num_sentences": 9.0, "qsc_doc_num_words": 138, "qsc_doc_num_chars": 1024.0, "qsc_doc_num_lines": 31.0, "qsc_doc_mean_word_length": 5.61594203, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.7173913, "qsc_doc_entropy_unigram": 4.40972608, "qsc_doc_frac_words_all_caps": 0.13302752, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.03870968, "qsc_doc_frac_chars_top_3grams": 0.05032258, "qsc_doc_frac_chars_top_4grams": 0.04903226, "qsc_doc_frac_chars_dupe_5grams": 0.0, "qsc_doc_frac_chars_dupe_6grams": 0.0, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 24.625, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0078125, "qsc_doc_frac_chars_alphabet": 0.63575419, "qsc_doc_frac_chars_digital": 0.2301676, "qsc_doc_frac_chars_whitespace": 0.12597656, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/NVMe-speed.md | ### NVMe read speeds per Synology model
If you want to check the read speed of your NVMe drive in your Synology NAS use:
```
sudo hdparm -tT --direct /dev/nvme0n1
```
or
```
sudo hdparm -tT --direct /dev/nvme1n1
```
To get your Synology's NVMe read speed added please [reply to this discussion](https://github.com/007revad/Synology_Information_Wiki/discussions/21).
<br>
| Model | PCIe info | Read Speed | NVMe brand/model | Notes |
|---------|-----------|------------|----------------------|-------|
| DS1823xs+ | 3.0 x8 slot (x4 link) | 2400 MB/s | | E10M20-T1 |
| DS1823xs+ | 3.0 x8 slot (x4 link) | 2400 MB/s | | M2D20 |
| DS1823xs+ | PCIe 3.0 x2 | 715 MB/s | WD Black SN850x 8TB | |
| DS1821+ | 3.0 x8 slot (x4 link) | 2350 MB/s | WD Black SN770 500GB | E10M20-T1 |
| DS1821+ | 3.0 x8 slot (x4 link) | 2350 MB/s | WD Black SN770 500GB | M2D20 |
| DS1821+ | PCIe 3.0 x2 | 1300 MB/s | WD Black SN770 500GB | |
| DS1621xs+ | PCIe 3.0 x2 | 2400 MB/s | WD Black SN850 | |
| DS1621xs+ | PCIe 3.0 x2 | 2400 MB/s | Samsung SSD PM883 | |
| DS1621+ | PCIe 3.0 x2 | 1300 MB/s | 500GB | assumed to be the same as DS1821+ |
| DS1522+ | PCIe 3.0 x1 | 750 MB/s | Samsung 980 Pro SSD 1TB | |
| DS1520+ | PCIe 2.0 x1 | 400 MB/s | Kingston KC3000 2048 GB | |
| DS1019+ | PCIe 2.0 x1 | 380 MB/s | Intel SSDPEKKF512G8 512GB | |
| DS1019+ | PCIe 2.0 x1 | 153 MB/s | Inland Premium 1TB | |
| DS925+ | PCIe 3.0 x1 | 670 MB/s | Crucial P3 plus 500GB | |
| DS923+ | PCIe 3.0 x1 | 750 MB/s | | assumed to be the same as DS1522+ |
| DS920+ | PCIe 2.0 x1 | 390 MB/s | Kingston NVME-SSD 1TB | |
| DS918+ | PCIe 2.0 x1 | 400 MB/s | | |
| DS723+ | PCIe 3.0 x1 | 730 MB/s | | assumed to be the same as DS1522+ |
| DS720+ | PCIe 2.0 x1 | 400 MB/s | Phison SPCC 500GB | |
| DS720+ | PCIe 2.0 x1 | 390 MB/s | WD Black SN770 500GB | |
| DS720+ | PCIe 2.0 x1 | 390 MB/s | Samsung Evo 970 2TB | |
| DS423+ | PCIe 2.0 x1 | 740 MB/s | Crucial P3 plus 2TB | |
| | | | | |
| RS3617RPxs | 3.0 x8 slot | 2055 MB/s | Samsung 970 EVO plus 1TB | [AliExpress cheap sinlge M2 adaptor card](https://www.aliexpress.com/item/1005002603686315.html) |
| RS1221+ | 3.0 x8 slot (x4 link) | 1465 MB/s | Samsung 980 1TB | E10M20-T1 |
| | | | | |
| AS5404T | PCIe 3.0 x1 | 2108 MB/s | WD Black SN770 500GB | Asustor |
| 2,344 | NVMe-speed | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.09011628, "qsc_doc_num_sentences": 31.0, "qsc_doc_num_words": 395, "qsc_doc_num_chars": 2344.0, "qsc_doc_num_lines": 44.0, "qsc_doc_mean_word_length": 3.51139241, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.34683544, "qsc_doc_entropy_unigram": 4.33664799, "qsc_doc_frac_words_all_caps": 0.14389535, "qsc_doc_frac_lines_dupe_lines": 0.15, "qsc_doc_frac_chars_dupe_lines": 0.01913043, "qsc_doc_frac_chars_top_2grams": 0.05407354, "qsc_doc_frac_chars_top_3grams": 0.04325883, "qsc_doc_frac_chars_top_4grams": 0.0519106, "qsc_doc_frac_chars_dupe_5grams": 0.43186734, "qsc_doc_frac_chars_dupe_6grams": 0.35472242, "qsc_doc_frac_chars_dupe_7grams": 0.29488104, "qsc_doc_frac_chars_dupe_8grams": 0.2148522, "qsc_doc_frac_chars_dupe_9grams": 0.18168709, "qsc_doc_frac_chars_dupe_10grams": 0.10526316, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.26666667, "qsc_doc_frac_chars_hyperlink_html_tag": 0.05503413, "qsc_doc_frac_chars_alphabet": 0.55737705, "qsc_doc_frac_chars_digital": 0.22668174, "qsc_doc_frac_chars_whitespace": 0.24530717, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/DSM-versions-per-model.md | ### First and latest DSM version per model
<details>
<summary>Click here to see CS models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| CS407 | 3.1-1594 | 3.1-1639 | EOL |
| CS407e | 3.1-1594 | 3.1-1639 | EOL |
| CS-406 | 2.0-0731 | 2.0-0731 | EOL |
| CS-406e | 2.0-0731 | 2.0-0731 | EOL |
</details>
<details>
<summary>Click here to see DS models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| DS3622xs+ | 7.0.1-42218 | 7.3-81180 | |
| DS3617xsII | 6.2.4-25556 | 7.3-81180 | EOL |
| DS3617xs | 6.0.2-8451 | 7.3-81180 | EOL |
| DS3615xs | 5.1-5004 | 7.1.1-42962 | EOL |
| DS3612xs | 3.2-1963 | 6.2.4-25556 | EOL |
| DS3611xs | 3.1-1746 | 6.2.4-25556 | EOL |
| DS3018xs | 6.1.3-15152 | 7.3-81180 | EOL |
| DS2422+ | 7.0.1-42218 | 7.3-81180 | |
| DS2419+II | 6.2.4-25556 | 7.3-81180 | EOL |
| DS2419+ | 6.2.1-23824 | 7.3-81180 | EOL |
| DS2415+ | 5.1-5022 | 7.1.1-42962 | EOL |
| DS2413+ | 4.1-2636 | 7.1.1-42962 | EOL |
| DS2411+ | 3.1-1742 | 6.2.4-25556 | EOL |
| DS2015xs | 5.1-5010 | 7.1.1-42962 | EOL |
| DS1823xs+ | 7.1.1-42962 | 7.3-81180 | |
| DS1821+ | 6.2.3-25426 | 7.3-81180 | |
| DS1819+ | 6.2.1-23824 | 7.3-81180 | EOL |
| DS1817+ | 6.1.1-15095 | 7.3-81180 | EOL |
| DS1817 | 6.1.2-15132 | 7.3-81180 | EOL |
| DS1815+ | 5.0-4528 | 7.1.1-42962 | EOL |
| DS1813+ | 4.2-3214 | 7.1.1-42962 | EOL |
| DS1812+ | 3.2-2031 | 6.2.4-25556 | EOL |
| DS1621xs+ | 6.2.3-25426 | 7.3-81180 | |
| DS1621+ | 6.2.3-25426 | 7.3-81180 | |
| DS1618+ | 6.1.6-15266 | 7.3-81180 | EOL |
| DS1522+ | 7.1-42661 | 7.3-81180 | |
| DS1520+ | 6.2.3-25426 | 7.3-81180 | |
| DS1517+ | 6.1.1-15095 | 7.3-81180 | EOL |
| DS1517 | 6.1.1-15101 | 7.3-81180 | EOL |
| DS1515+ | 5.0-4528 | 7.1.1-42962 | EOL |
| DS1515 | 5.1-5022 | 7.1.1-42962 | EOL |
| DS1513+ | 4.2-3211 | 7.1.1-42962 | EOL |
| DS1512+ | 3.2-2031 | 6.2.4-25556 | EOL |
| DS1511+ | 3.1-1594 | 6.2.4-25556 | EOL |
| DS1019+ | 6.2.1-23824 | 7.3-81180 | EOL |
| DS1010+ | 2.2-1041 | 5.2-5967 | EOL |
| DS925+ | 7.2-72723 | 7.3-81180 | |
| DS923+ | 7.1.1-42962 | 7.3-81180 | |
| DS920+ | 6.2.3-25426 | 7.3-81180 | |
| DS918+ | 6.1.3-15152 | 7.3-81180 | EOL |
| DS916+ | 6.0-7321 | 7.3-81180 | EOL |
| DS723+ | 7.1.1-42962 | 7.3-81180 | |
| DS720+ | 6.2.3-25426 | 7.3-81180 | |
| DS718+ | 6.1.3-15152 | 7.3-81180 | EOL |
| DS716+II | 6.0-7321 | 7.3-81180 | EOL |
| DS716+ | 5.2-5644 | 7.3-81180 | EOL |
| DS715 | 5.2-5565 | 7.1.1-42962 | EOL |
| DS713+ | 4.1-2647 | 7.1.1-42962 | EOL |
| DS712+ | 3.2-1922 | 6.2.4-25556 | EOL |
| DS710+ | 3.1-1594 | 5.2-5967 | EOL |
| DS620slim | 6.2.2-24922 | 7.3-81180 | |
| DS509+ | 3.1-1594 | 4.2-3259 | EOL |
| DS508 | 3.1-1594 | 4.0-2265 | EOL |
| DS423+ | 7.1.1-42962 | 7.3-81180 | |
| DS423 | 7.1.1-42962 | 7.3-81180 | |
| DS420j | 6.2.2-24922 | 7.3-81180 | |
| DS420+ | 6.2.3-25426 | 7.3-81180 | |
| DS419slim | 6.2.2-24922 | 7.3-81180 | EOL |
| DS418play | 6.1.3-15152 | 7.3-81180 | EOL |
| DS418j | 6.1.3-15152 | 7.3-81180 | EOL |
| DS418 | 6.1.3-15152 | 7.3-81180 | EOL |
| DS416slim | 6.0-7321 | 7.3-81180 | EOL |
| DS416play | 6.0-7321 | 7.3-81180 | EOL |
| DS416j | 5.2-5644 | 7.3-81180 | EOL |
| DS416 | 5.2-5592 | 7.3-81180 | EOL |
| DS415play | 5.0-4493 | 7.1.1-42962 | EOL |
| DS415+ | 5.0-4519 | 7.1.1-42962 | EOL |
| DS414slim | 5.0-4482 | 7.1.1-42962 | EOL |
| DS414j | 5.0-4482 | 7.1.1-42962 | EOL |
| DS414 | 4.3-3776 | 7.1.1-42962 | EOL |
| DS413j | 4.1-2636 | 6.2.4-25556 | EOL |
| DS413 | 4.1-2636 | 6.2.4-25556 | EOL |
| DS412+ | 4.0-2198 | 6.2.4-25556 | EOL |
| DS411slim | 3.1-1594 | 6.2.4-25556 | EOL |
| DS411j | 3.1-1594 | 6.2.4-25556 | EOL |
| DS411+II | 3.1-1613 | 6.2.4-25556 | EOL |
| DS411+ | 3.1-1594 | 6.2.4-25556 | EOL |
| DS411 | 3.1-1748 | 6.2.4-25556 | EOL |
| DS410j | 3.1-1594 | 5.2-5967 | EOL |
| DS410 | 3.1-1594 | 5.2-5967 | EOL |
| DS409slim | 3.1-1594 | 4.2-3259 | EOL |
| DS409+ | 3.1-1594 | 4.2-3259 | EOL |
| DS409 | 3.1-1594 | 4.2-3259 | EOL |
| DS408 | 3.1-1594 | 4.0-2265 | EOL |
| DS224+ | 7.2-64570 | 7.3-81180 | |
| DS223j | 7.1.1-42962 | 7.3-81180 | |
| DS223 | 7.1.1-42962 | 7.3-81180 | |
| DS220j | 6.2.2-24922 | 7.3-81180 | |
| DS220+ | 6.2.3-25426 | 7.3-81180 | |
| DS218play | 6.1.3-15152 | 7.3-81180 | EOL |
| DS218j | 6.1.3-15152 | 7.3-81180 | EOL |
| DS218+ | 6.1.3-15152 | 7.3-81180 | EOL |
| DS218 | 6.1.4-15217 | 7.3-81180 | EOL |
| DS216se | 5.2-5620 | 7.1.1-42962 | EOL |
| DS216play | 5.2-5620 | 7.3-81180 | EOL |
| DS216j | 5.2-5644 | 7.3-81180 | EOL |
| DS216+II | 6.0-7321 | 7.3-81180 | EOL |
| DS216+ | 5.2-5644 | 7.3-81180 | EOL |
| DS216 | 5.2-5644 | 7.3-81180 | EOL |
| DS215j | 5.1-5004 | 7.1.1-42962 | EOL |
| DS215+ | 5.2-5565 | 7.1.1-42962 | EOL |
| DS214se | 4.3-3781 | 7.1.1-42962 | EOL |
| DS214play | 4.3-3803 | 7.1.1-42962 | EOL |
| DS214+ | 4.3-3805 | 7.1.1-42962 | EOL |
| DS214 | 4.3-3776 | 7.1.1-42962 | EOL |
| DS213j | 4.2-3211 | 7.1.1-42962 | EOL |
| DS213air | 4.1-2636 | 6.2.4-25556 | EOL |
| DS213+ | 4.0-2254 | 6.2.4-25556 | EOL |
| DS213 | 4.0-2243 | 6.2.4-25556 | EOL |
| DS212j | 3.2-1944 | 6.2.4-25556 | EOL |
| DS212+ | 3.2-1944 | 6.2.4-25556 | EOL |
| DS212 | 3.2-1944 | 6.2.4-25556 | EOL |
| DS211j | 3.1-1594 | 6.2.4-25556 | EOL |
| DS211+ | 3.1-1594 | 6.2.4-25556 | EOL |
| DS211 | 3.1-1594 | 6.2.4-25556 | EOL |
| DS210j | 3.1-1594 | 5.2-5967 | EOL |
| DS210+ | 3.1-1594 | 5.2-5967 | EOL |
| DS209j | 3.1-1594 | 4.2-3259 | EOL |
| DS209+II | 3.1-1594 | 4.2-3259 | EOL |
| DS209+ | 3.1-1594 | 4.2-3259 | EOL |
| DS209 | 3.1-1594 | 4.2-3259 | EOL |
| DS207+ | 3.1-1594 | 3.1-1639 | EOL |
| DS207 | 3.1-1594 | 3.1-1639 | EOL |
| DS124 | 7.2-64570 | 7.3-81180 | |
| DS120j | 6.2.2-24922 | 7.3-81180 | |
| DS119j | 6.2.1-23824 | 7.3-81180 | EOL |
| DS118 | 6.1.3-15152 | 7.3-81180 | EOL |
| DS116 | 6.0-7321 | 7.3-81180 | EOL |
| DS115j | 5.0-4493 | 7.1.1-42962 | EOL |
| DS115 | 5.1-5022 | 7.1.1-42962 | EOL |
| DS114 | 4.3-3776 | 7.1.1-42962 | EOL |
| DS112j | 4.0-2198 | 6.2.4-25556 | EOL |
| DS112+ | 4.0-2228 | 6.2.4-25556 | EOL |
| DS112 | 4.0-2198 | 6.2.4-25556 | EOL |
| DS111 | 3.1-1594 | 6.2.4-25556 | EOL |
| DS110j | 3.1-1594 | 5.2-5967 | EOL |
| DS110+ | 3.1-1594 | 5.2-5967 | EOL |
| DS-109j | 3.1-1594 | 3.2-1944 | EOL |
| DS109j | 3.2-1955 | 4.2-3259 | EOL |
| DS109+ | 3.1-1594 | 4.2-3259 | EOL |
| DS109 | 3.1-1594 | 4.2-3259 | EOL |
| DS108j | 3.1-1594 | 4.0-2265 | EOL |
| DS107e | 3.1-1594 | 3.1-1639 | EOL |
| DS107+ | 3.1-1594 | 3.1-1639 | EOL |
| DS107 | 3.1-1594 | 3.1-1639 | EOL |
| DS-106j | 2.1-0844 | 2.1-0844 | EOL |
| DS-106e | 2.0-0731 | 2.0-0731 | EOL |
| DS-106 | 2.0-0731 | 2.0-0731 | EOL |
| DS-101j | 2.0-0731 | 2.0-0731 | EOL |
</details>
<details>
<summary>Click here to see DVA models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| DVA3221 | 6.2.3-25426 | 7.3-81180 | |
| DVA3219 | 6.2.2-24922 | 7.3-81180 | |
| DVA1622 | 7.1-42661 | 7.3-81180 | |
</details>
<details>
<summary>Click here to see EDS models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| EDS14 | 4.3-4244 | 6.0.3-8754 | EOL |
</details>
<details>
<summary>Click here to see FS models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| FS6400 | 6.2.2-24922 | 7.3-81180 | |
| FS3600 | 6.2.3-25426 | 7.3-81180 | |
| FS3400 | 6.2.2-24922 | 7.3-81180 | |
| FS3410 | 7.1-42661 | 7.3-81180 | |
| FS3017 | 6.0.2-8575 | 7.3-81180 | EOL |
| FS2500 | 7.0.1-42218 | 7.3-81180 | |
| FS2017 | 6.1.1-15101 | 7.3-81180 | EOL |
| FS1018 | 6.1.4-15217 | 7.3-81180 | EOL |
</details>
<details>
<summary>Click here to see HD models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| HD6500 | 7.1-42661 | 7.3-81180 | |
</details>
<details>
<summary>Click here to see NVR models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| NVR1218 | 6.1.3-15152 | 6.2.4-25556 | EOL |
| NVR216 | 5.2-5644 | 6.2.4-25556 | EOL |
</details>
<details>
<summary>Click here to see RC models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| RC18015xs+ | 5.1-5358 | 7.1.1-42962 | EOL |
</details>
<details>
<summary>Click here to see RS models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| RS18017xs+ | 6.0.2-8451 | 7.3-81180 | EOL |
| RS18016xs+ | 5.2-5592 | 7.3-81180 | EOL |
| RS10613xs+ | 4.1-2846 | 7.1.1-42962 | EOL |
| RS4021xs+ | 6.2.3-25426 | 7.3-81180 | |
| RS4017xs+ | 6.0.2-8451 | 7.3-81180 | EOL |
| RS3621xs+ | 6.2.3-25426 | 7.3-81180 | |
| RS3621RPxs | 6.2.3-25426 | 7.3-81180 | |
| RS3618xs | 6.1.5-15254 | 7.3-81180 | EOL |
| RS3617xs+ | 6.0.2-8451 | 7.3-81180 | EOL |
| RS3617xs | 6.0.1-7393 | 7.3-81180 | EOL |
| RS3617RPxs | 6.0.2-8451 | 7.3-81180 | EOL |
| RS3614xs+ | 4.3-3805 | 7.1.1-42962 | EOL |
| RS3614xs | 5.0-4493 | 7.1.1-42962 | EOL |
| RS3614RPxs | 5.0-4493 | 7.1.1-42962 | EOL |
| RS3413xs+ | 4.1-2842 | 7.1.1-42962 | EOL |
| RS3412xs | 3.2-1963 | 6.2.4-25556 | EOL |
| RS3412RPxs | 3.2-1963 | 6.2.4-25556 | EOL |
| RS3411xs | 3.1-1746 | 6.2.4-25556 | EOL |
| RS3411RPxs | 3.1-1746 | 6.2.4-25556 | EOL |
| RS2821RP+ | 6.2.4-25556 | 7.3-81180 | |
| RS2423RP+ | 7.1.1-42962 | 7.3-81180 | |
| RS2423+ | 7.1.1-42962 | 7.3-81180 | |
| RS2421RP+ | 6.2.4-25556 | 7.3-81180 | |
| RS2421+ | 6.2.4-25556 | 7.3-81180 | |
| RS2418RP+ | 6.1.5-15254 | 7.3-81180 | EOL |
| RS2418+ | 6.1.5-15254 | 7.3-81180 | EOL |
| RS2416RP+ | 5.2-5592 | 7.3-81180 | EOL |
| RS2416+ | 5.2-5592 | 7.3-81180 | EOL |
| RS2414rp+ | 4.2-3320 | 7.1.1-42962 | EOL |
| RS2414+ | 4.2-3320 | 7.1.1-42962 | EOL |
| RS2212RP+ | 4.0-2198 | 6.2.4-25556 | EOL |
| RS2212+ | 4.0-2198 | 6.2.4-25556 | EOL |
| RS2211RP+ | 3.1-1605 | 6.2.4-25556 | EOL |
| RS2211+ | 3.1-1605 | 6.2.4-25556 | EOL |
| RS1221RP+ | 6.2.3-25426 | 7.3-81180 | |
| RS1221+ | 6.2.3-25426 | 7.3-81180 | |
| RS1219+ | 6.2-23739 | 7.3-81180 | EOL |
| RS822RP+ | 7.1-42661 | 7.3-81180 | |
| RS822+ | 7.1-42661 | 7.3-81180 | |
| RS820RP+ | 6.2.2-24922 | 7.3-81180 | |
| RS820+ | 6.2.2-24922 | 7.3-81180 | |
| RS819 | 6.2.1-23824 | 7.3-81180 | EOL |
| RS818RP+ | 6.1.4-15217 | 7.3-81180 | EOL |
| RS818+ | 6.1.4-15217 | 7.3-81180 | EOL |
| RS816 | 6.0.1-7393 | 7.3-81180 | EOL |
| RS815RP+ | 5.1-5022 | 7.1.1-42962 | EOL |
| RS815+ | 5.1-5022 | 7.1.1-42962 | EOL |
| RS815 | 5.1-5022 | 7.1.1-42962 | EOL |
| RS814RP+ | 4.3-3810 | 7.1.1-42962 | EOL |
| RS814+ | 4.3-3810 | 7.1.1-42962 | EOL |
| RS814 | 4.3-3810 | 7.1.1-42962 | EOL |
| RS812RP+ | 4.0-2198 | 6.2.4-25556 | EOL |
| RS812+ | 4.0-2198 | 6.2.4-25556 | EOL |
| RS812 | 3.2-1947 | 6.2.4-25556 | EOL |
| RS810RP+ | 3.1-1594 | 5.2-5967 | EOL |
| RS810+ | 3.1-1594 | 5.2-5967 | EOL |
| RS422+ | 7.1-42661 | 7.3-81180 | |
| RS411 | 3.1-1594 | 6.2.4-25556 | EOL |
| RS409RP+ | 3.1-1594 | 4.2-3259 | EOL |
| RS409+ | 3.1-1594 | 4.2-3259 | EOL |
| RS409 | 3.1-1594 | 4.2-3259 | EOL |
| RS408-RP | 3.1-1594 | 3.2-1944 | EOL |
| RS408RP | 3.2-1955 | 4.0-2265 | EOL |
| RS408 | 3.1-1594 | 4.0-2265 | EOL |
| RS407 | 3.1-1594 | 3.1-1639 | EOL |
| RS-406 | 2.0-0731 | 2.0-0731 | EOL |
| RS217 | 6.0.2-8451 | 7.3-81180 | EOL |
| RS214 | 4.2-3235 | 7.1.1-42962 | EOL |
| RS212 | 3.2-1947 | 6.2.4-25556 | EOL |
</details>
<details>
<summary>Click here to see SA models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| SA6400 | 7.1.1-42962 | 7.3-81180 | |
| SA3610 | 7.1.1-42962 | 7.3-81180 | |
| SA3600 | 6.2.2-24922 | 7.3-81180 | |
| SA3410 | 7.1.1-42962 | 7.3-81180 | |
| SA3400D | 7.1.1-42962 | 7.3-81180 | |
| SA3400 | 6.2.2-24922 | 7.3-81180 | |
| SA3200D | 6.2.2-25044 | 7.3-81180 | |
</details>
<details>
<summary>Click here to see USB Station models</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| USB_Station_2 | 3.1-1742 | 3.2-1983 | EOL |
</details>
<details>
<summary>Click here to see Virtual DSM versions</summary>
| Model | First DSM version | Latest DSM version | Note |
|-------|-----------|-----------|------|
| VirtualDSM | 6.0-7321 | 7.3-81180 | |
| DockerDSM | 6.0-7321 | 6.2.3-25426 | EOL |
| C2DSM | 6.1.2-15132 | 6.1.6-15266 | EOL |
| SkyNAS | 6.1.5-15254 | 6.2.3-25426 | EOL |
</details>
<br>
**Some statistics - 08-Dec-2024**
There have been 247 different Synology models to date (not counting Virtual DSM).
```
48 models were EOL before 6.2.4 was released
41 models were EOL before 7.1 was released
43 models were EOL before 7.2 was released
```
```
115 models can use DSM 7.2
155 models can use DSM 7.1.1
175 models can use DSM 6.2.4
```
| 12,914 | DSM-versions-per-model | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.01122291, "qsc_doc_num_sentences": 689.0, "qsc_doc_num_words": 2432, "qsc_doc_num_chars": 12914.0, "qsc_doc_num_lines": 365.0, "qsc_doc_mean_word_length": 2.88486842, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.14802632, "qsc_doc_entropy_unigram": 3.93628686, "qsc_doc_frac_words_all_caps": 0.08068885, "qsc_doc_frac_lines_dupe_lines": 0.16049383, "qsc_doc_frac_chars_dupe_lines": 0.11209581, "qsc_doc_frac_chars_top_2grams": 0.03249715, "qsc_doc_frac_chars_top_3grams": 0.11374002, "qsc_doc_frac_chars_top_4grams": 0.08124287, "qsc_doc_frac_chars_dupe_5grams": 0.7232041, "qsc_doc_frac_chars_dupe_6grams": 0.68372292, "qsc_doc_frac_chars_dupe_7grams": 0.66391106, "qsc_doc_frac_chars_dupe_8grams": 0.50213797, "qsc_doc_frac_chars_dupe_9grams": 0.2427309, "qsc_doc_frac_chars_dupe_10grams": 0.21778791, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 11.25332068, "qsc_doc_frac_chars_hyperlink_html_tag": 0.03562026, "qsc_doc_frac_chars_alphabet": 0.26040347, "qsc_doc_frac_chars_digital": 0.42335055, "qsc_doc_frac_chars_whitespace": 0.20543596, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 1, "qsc_doc_frac_chars_dupe_6grams": 1, "qsc_doc_frac_chars_dupe_7grams": 1, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 1, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 1, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-with-a-GPU.md | ### Models with a GPU
| DS Model | CPU version | iGPU version | Notes |
|----------|-------------|--------------|------|
| DS224+ | Intel Celeron J4125 | UHD Graphics 600 | |
| DS124 | Realtek RTD1619B | ARM Mali G57 | |
| DS423+ | Intel Celeron J4125 | UHD Graphics 600 | |
| DS423 | Realtek RTD1619B | ARM Mali G57 | |
| DS223j | Realtek RTD1619B | ARM Mali G57 | |
| DS223 | Realtek RTD1619B | ARM Mali G57 | |
| DS1520+ | Intel Celeron J4125 | UHD Graphics 600 | |
| DS920+ | Intel Celeron J4125 | UHD Graphics 600 | |
| DS720+ | Intel Celeron J4125 | UHD Graphics 600 | |
| DS620slim | Intel Celeron J3355 | HD Graphics 500 | |
| DS420+ | Intel Celeron J4025 | UHD Graphics 600 | |
| DS420j | Realtek RTD1296 | ARM Mali-T820 | |
| DS220+ | Intel Celeron J4025 | UHD Graphics 600 | |
| DS220j | Realtek RTD1296 | ARM Mali-T820 | |
| DS1019+ | Intel Celeron J3455 | HD Graphics 500 | |
| DS918+ | Intel Celeron J3455 | HD Graphics 500 | |
| DS718+ | Intel Celeron J3455 | HD Graphics 500 | |
| DS418 | Realtek RTD1296 | ARM Mali-T820 | |
| DS418play | Intel Celeron J3355 | HD Graphics 500 | |
| DS218+ | Intel Celeron J3355 | HD Graphics 500 | |
| DS218 | Realtek RTD1296 | ARM Mali-T820 | |
| DS218play | Realtek RTD1296 | ARM Mali-T820 | |
| DS118 | Realtek RTD1296 | ARM Mali-T820 | |
| DS2413+ | Intel Atom D2700 | GMA 3650 | |
| DS1813+ | Intel Atom D2700 | GMA 3650 | |
| DS1513+ | Intel Atom D2700 | GMA 3650 | |
| DS713+ | Intel Atom D2700 | GMA 3650 | |
| DS1812+ | Intel Atom D2700 | GMA 3650 | |
| DS1512+ | Intel Atom D2700 | GMA 3650 | |
| DS712+ | Intel Atom D425 | GMA 3150 | |
| DS412+ | Intel Atom D2700 | GMA 3650 | |
| DS2411+ | Intel Atom D525 | GMA 3150 | |
| DS1511+ | Intel Atom D525 | GMA 3150 | |
| DS411+II | Intel Atom D525 | GMA 3150 | |
| DS411+ | Intel Atom D510 | GMA 3150 | |
| DS1010+ | Intel Atom D510 | GMA 3150 | |
| DS710+ | Intel Atom D410 | GMA 3150 | |
| RS Model | CPU version | iGPU version | Notes |
|----------|-------------|--------------|------|
| RS819 | Realtek RTD1296 | ARM Mali-T820 | |
| RS2414+ | Intel Atom D2700 | GMA 3650 | |
| RS2414RP+ | Intel Atom D2700 | GMA 3650 | |
| RS814+ | Intel Atom D2700 | GMA 3650 | |
| RS814RP+ | Intel Atom D2700 | GMA 3650 | |
| RS1212+ | Intel Atom D2700 | GMA 3650 | |
| RS1212RP+ | Intel Atom D2700 | GMA 3650 | |
| RS812+ | Intel Atom D2700 | GMA 3650 | |
| RS812RP+ | Intel Atom D2700 | GMA 3650 | |
| RS2211+ | Intel Atom D525 | GMA 3150 | |
| RS2211RP+ | Intel Atom D525 | GMA 3150 | |
| RS810+ | Intel Atom D510 | GMA 3150 | |
| RS810RP+ | Intel Atom D510 | GMA 3150 | |
| DVA Model | CPU version | iGPU version | GPU version |
|-----------|-------------|--------------|------|
| DVA1622 | Intel Celeron J4125 | UHD Graphics 600 | |
| DVA3221 | Intel Atom C3538 | | NVIDIA GeForce GTX 1650 |
| DVA3219 | Intel Atom C3538 | | NVIDIA GeForce GTX 1050 Ti |
The DVA3219 was announced by Synology as the DS1419dva
<br>
**Resources**
https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have
https://www.synology-wiki.de/index.php/Hardware_der_Synology_Stations
https://techinfodepot.shoutwiki.com/wiki/Marvell
https://ark.intel.com/content/www/us/en/ark.html
https://www.cpu-world.com/CPUs/CPU.html
https://en.wikipedia.org/wiki/List_of_Intel_Atom_processors
| 3,344 | Models-with-a-GPU | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.01383648, "qsc_doc_num_sentences": 16.0, "qsc_doc_num_words": 436, "qsc_doc_num_chars": 3344.0, "qsc_doc_num_lines": 81.0, "qsc_doc_mean_word_length": 4.76146789, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.3233945, "qsc_doc_entropy_unigram": 4.20370819, "qsc_doc_frac_words_all_caps": 0.22389937, "qsc_doc_frac_lines_dupe_lines": 0.02898551, "qsc_doc_frac_chars_dupe_lines": 0.02942078, "qsc_doc_frac_chars_top_2grams": 0.12572254, "qsc_doc_frac_chars_top_3grams": 0.10115607, "qsc_doc_frac_chars_top_4grams": 0.12283237, "qsc_doc_frac_chars_dupe_5grams": 0.65799615, "qsc_doc_frac_chars_dupe_6grams": 0.2938343, "qsc_doc_frac_chars_dupe_7grams": 0.03371869, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 33.48453608, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00119617, "qsc_doc_frac_chars_alphabet": 0.57458985, "qsc_doc_frac_chars_digital": 0.21747425, "qsc_doc_frac_chars_whitespace": 0.21620813, "qsc_doc_frac_chars_hex_words": 0.0} | 0 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 1, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 1, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/2025plus_autoupdate.md | DSM on 2025 and later Plus series (and probably also DSM 8 for all models) does not allow you to:
- Set DSM to "Notify me and let me decide whether to install the new update".
- Set Package Center to not update packages automatically.
Synology have a provided a way, via SSH, to stop DSM or packages from updating automatically, but it stops both DSM and packages from auto updating.
https://kb.synology.com/en-global/DSM/tutorial/stop_system_package_auto_update
**Disable Package Center Auto Updates and DSM Auto Updates**
```
sudo /usr/libexec/syno-update-settings --set-autoupdatetype-notify
```
**Enable Package Center Auto Updates and DSM Auto Updates**
```
sudo /usr/libexec/syno-update-settings --unset-autoupdatetype-notify
```
<br>
## To prevent just DSM from auto updating:
**Disable DSM Auto Updates**
- Removes the schedule options in Control Panel > DSM Update > Settings
- We'll also disable those sneaky smart nano auto-updates
- Edit /usr/syno/etc/update.conf to <br>
```
{"autoupdate_type":"notify","smart_nano_enabled":false}
```
You can use:
```
sudo echo -n '{"autoupdate_type":"notify","smart_nano_enabled":false}' > /usr/syno/etc/update.conf
```
**Enable DSM Auto Updates**
- Restores the schedule options in Control Panel > DSM Update > Settings
- Edit /usr/syno/etc/update.conf to <br>
```
{"autoupdate_type":"hotfix-security","smart_nano_enabled":true}
```
You can use:
```
sudo echo -n '{"autoupdate_type":"hotfix-security","smart_nano_enabled":true}' > /usr/syno/etc/update.conf
```
<br>
## To prevent just packages from auto updating:
**Disable Package Center Auto Updates**
- Shows "Disable auto-update" option in Package Center > Setting > Auto-update
```
sudo synosetkeyvalue /etc/synoinfo.conf show_autoupdatetype_notify yes
```
**Enable Package Center Auto Updates**
- Removes "Disable auto-update" option in Package Center > Setting > Auto-update
```
sudo synosetkeyvalue /etc/synoinfo.conf show_autoupdatetype_notify no
```
| 1,971 | 2025plus_autoupdate | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.00405885, "qsc_doc_frac_words_redpajama_stop": 0.16, "qsc_doc_num_sentences": 12.0, "qsc_doc_num_words": 290, "qsc_doc_num_chars": 1971.0, "qsc_doc_num_lines": 59.0, "qsc_doc_mean_word_length": 5.02758621, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.35517241, "qsc_doc_entropy_unigram": 4.27076377, "qsc_doc_frac_words_all_caps": 0.03294118, "qsc_doc_frac_lines_dupe_lines": 0.45833333, "qsc_doc_frac_chars_dupe_lines": 0.0837258, "qsc_doc_frac_chars_top_2grams": 0.06790123, "qsc_doc_frac_chars_top_3grams": 0.04663923, "qsc_doc_frac_chars_top_4grams": 0.06584362, "qsc_doc_frac_chars_dupe_5grams": 0.58573388, "qsc_doc_frac_chars_dupe_6grams": 0.50754458, "qsc_doc_frac_chars_dupe_7grams": 0.50754458, "qsc_doc_frac_chars_dupe_8grams": 0.47050754, "qsc_doc_frac_chars_dupe_9grams": 0.37997257, "qsc_doc_frac_chars_dupe_10grams": 0.3127572, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 26.77464789, "qsc_doc_frac_chars_hyperlink_html_tag": 0.00811771, "qsc_doc_frac_chars_alphabet": 0.84871495, "qsc_doc_frac_chars_digital": 0.00292056, "qsc_doc_frac_chars_whitespace": 0.13140538, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Information_Wiki | pages/Models-that-support-Expansion-Units.md | ### Synology Models that support Expansion Units
[Which Synology NAS model can I use with Synology Expansion Units?](https://kb.synology.com/en-us/DSM/tutorial/Which_Synology_DiskStation_RackStation_can_I_use_with_Synology_Expansion_Units)
See also https://www.synology.com/en-global/compatibility?search_by=category&category=expansion_units
<br>
### Expansion Unit speed
| Model | Port Type | Speed | Comment |
|-----------|-----------|----------|----------------------------------|
| DX517 | eSATA | 6 Gbps | 750 MB/s shared between 5 drives |
| RX418 | eSATA | 6 Gbps | 750 MB/s shared between 4 drives |
| RX415 | eSATA | 6 Gbps | 750 MB/s shared between 4 drives |
| DX513 | eSATA | 3 Gbps | 375 MB/s shared between 5 drives |
| DX213 | eSATA | 3 Gbps | 375 MB/s shared between 2 drives |
| DX510 | eSATA | 1.5 Gbps | 187 MB/s shared between 5 drives |
| RX410 | eSATA | 1.5 Gbps | 187 MB/s shared between 4 drives |
<br>
### Expansion Unit cable type
https://www.synology.com/en-global/products/spare_parts?search_by=category&category=Cable
**6Gbps eSATA Cable**
* RX418, RX415, RX410, DX517, DX513, DX213, DX510
**External MiniSAS HD Cable**
* FX2421, RX6022sas, RX1223RP, RX1222sas, RXD1219sas, RX2417sas, RX1217sas, DX1222
**External MiniSAS HD Cable 200cm**
* RX6022sas, RX1223RP
**External MiniSAS Cable**
* RX1216sas, RXD1215sas, RX1213sas
**InfiniBand SATAx4 Cable**
* RX1217RP, RX1217, RX1214RP, RX1214, RX1211RP, RX1211, DX1215II, DX1215, DX1211
<br>
| 1,583 | Models-that-support-Expansion-Units | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.07142857, "qsc_doc_num_sentences": 12.0, "qsc_doc_num_words": 206, "qsc_doc_num_chars": 1583.0, "qsc_doc_num_lines": 47.0, "qsc_doc_mean_word_length": 4.98058252, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.4368932, "qsc_doc_entropy_unigram": 4.2327245, "qsc_doc_frac_words_all_caps": 0.12111801, "qsc_doc_frac_lines_dupe_lines": 0.10714286, "qsc_doc_frac_chars_dupe_lines": 0.0078125, "qsc_doc_frac_chars_top_2grams": 0.02046784, "qsc_doc_frac_chars_top_3grams": 0.06140351, "qsc_doc_frac_chars_top_4grams": 0.10916179, "qsc_doc_frac_chars_dupe_5grams": 0.35769981, "qsc_doc_frac_chars_dupe_6grams": 0.35769981, "qsc_doc_frac_chars_dupe_7grams": 0.27777778, "qsc_doc_frac_chars_dupe_8grams": 0.21345029, "qsc_doc_frac_chars_dupe_9grams": 0.12865497, "qsc_doc_frac_chars_dupe_10grams": 0.07017544, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 25.84745763, "qsc_doc_frac_chars_hyperlink_html_tag": 0.08528111, "qsc_doc_frac_chars_alphabet": 0.67563291, "qsc_doc_frac_chars_digital": 0.13607595, "qsc_doc_frac_chars_whitespace": 0.20151611, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
000pp/Pinkerton | src/pinkerton/modules/secret.py | from rich.console import Console
console = Console()
from requests import get
from jsbeautifier import beautify
from re import findall
regex_list = {
'Google API': r'AIza[0-9A-Za-z-_]{35}',
"Artifactory API Token": r'(?:\s|=|:|"|^)AKC[a-zA-Z0-9]{10,}',
"Artifactory Password": r'(?:\s|=|:|"|^)AP[\dABCDEF][a-zA-Z0-9]{8,}',
"Cloudinary Basic Auth": r"cloudinary:\/\/[0-9]{15}:[0-9A-Za-z]+@[a-z]+",
'Firebase Key': r'AAAA[A-Za-z0-9_-]{7}:[A-Za-z0-9_-]{140}',
"LinkedIn Secret Key": r"(?i)linkedin(.{0,20})?['\"][0-9a-z]{16}['\"]",
"Mailto String": r"(?<=mailto:)[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9.-]+",
"Picatic API Key": r"sk_live_[0-9a-z]{32}",
"Firebase URL": r".*firebaseio\.com",
"PGP Private Key Block": r"-----BEGIN PGP PRIVATE KEY BLOCK-----",
"SSH (DSA) Private Key": r"-----BEGIN DSA PRIVATE KEY-----",
"SSH (EC) Private Key": r"-----BEGIN EC PRIVATE KEY-----",
"SSH (RSA) Private Key": r"-----BEGIN OPENSSH PRIVATE KEY-----",
"SSH (ssh-ed25519) Public Key": r"ssh-ed25519",
'Google Captcha Key': r'6L[0-9A-Za-z-_]{38}|^6[0-9a-zA-Z_-]{39}$',
"Amazon AWS Access Key ID": r"AKIA[0-9A-Z]{16}",
"Amazon MWS Auth Token": r"amzn\\.mws\\.[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}",
"Amazon AWS API Key": r"AKIA[0-9A-Z]{16}",
'Amazon AWS URL' : r's3\.amazonaws.com[/]+|[a-zA-Z0-9_-]*\.s3\.amazonaws.com',
"Generic API Key": r"(?i)api[_]?key.*['|\"]\w{32,45}['|\"]",
"Generic Secret": r"(?i)secret.*['|\"]\w{32,45}['|\"]",
'Authorization Bearer': r'bbearer [a-zA-Z0-9_\\-\\.=]+',
'Authorization Basic': r'basic [a-zA-Z0-9=:_\+\/-]{5,100}',
'Authorization API Key' : r'api[key|_key|\s+]+[a-zA-Z0-9_\-]{5,100}',
'PayPal Braintree Access Token' : r'access_token\$production\$[0-9a-z]{16}\$[0-9a-f]{32}',
'Mailgun API Key' : r'key-[0-9a-zA-Z]{32}',
"MailChimp API Key": r"[0-9a-f]{32}-us[0-9]{1,2}",
'RSA Private Key' : r'-----BEGIN RSA PRIVATE KEY-----',
"JWT Token": r'ey[A-Za-z0-9-_=]+\.[A-Za-z0-9-_=]+\.?[A-Za-z0-9-_.+/=]*$',
"Facebook Access Token": r"EAACEdEose0cBA[0-9A-Za-z]+",
"Facebook OAuth": r"(?i)facebook.*['|\"][0-9a-f]{32}['|\"]",
"Google OAuth" : r'ya29\.[0-9A-Za-z\-_]+',
"Facebook Client ID": r"""(?i)(facebook|fb)(.{0,20})?['\"][0-9]{13,17}""",
"Google Cloud Platform API Key": r"(?i)\b(AIza[0-9A-Za-z\\-_]{35})(?:['|\"|\n|\r|\s|\x60]|$)",
"Google Cloud Platform OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com",
"Google Drive API Key": r"AIza[0-9A-Za-z\\-_]{35}",
"Google Drive OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com",
"Google (GCP) Service-account": r"\"type\": \"service_account\"",
"Google Gmail API Key": r"AIza[0-9A-Za-z\\-_]{35}",
"Google Gmail OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com",
"Google OAuth Access Token": r"ya29\\.[0-9A-Za-z\\-_]+",
"Google YouTube API Key": r"AIza[0-9A-Za-z\\-_]{35}",
"Google YouTube OAuth": r"[0-9]+-[0-9A-Za-z_]{32}\\.apps\\.googleusercontent\\.com",
'GitHub Access Token' : r'[a-zA-Z0-9_-]*:[a-zA-Z0-9_\-]+@github\.com*',
"GitHub Personal Access Token": r"ghp_[0-9a-zA-Z]{36}",
"GitHub URL": r"(?i)github.*['|\"][0-9a-zA-Z]{35,40}['|\"]",
"GitHub App Token": r"(ghu|ghs)_[0-9a-zA-Z]{36}",
"Slack Token": r"(xox[p|b|o|a]-[0-9]{12}-[0-9]{12}-[0-9]{12}-[a-z0-9]{32})",
"Slack Webhook": r"https://hooks.slack.com/services/T\w{8}/B\w{8}/\w{24}",
"Slack Webhook 2": r"T[a-zA-Z0-9_]{8}/B[a-zA-Z0-9_]{8}/[a-zA-Z0-9_]{24}",
"Slack OAuth v2 Username/Bot Access Token": r"xoxb-[0-9]{11}-[0-9]{11}-[0-9a-zA-Z]{24}",
"Slack OAuth v2 Configuration Token": r"xoxe.xoxp-1-[0-9a-zA-Z]{166}",
"Picatic API Key": r"sk_live_[0-9a-z]{32}",
"Stripe API Key": r"sk_live_[0-9a-zA-Z]{24}",
"Stripe Restricted API Key": r"rk_live_[0-9a-zA-Z]{24}",
"Twitter Access Token": r"(?i)twitter.*[1-9][0-9]+-\w{40}",
"Twitter OAuth": r"(?i)twitter.*['|\"]\w{35,44}['|\"]",
"Twitter Client ID": r"(?i)twitter(.{0,20})?['\"][0-9a-z]{18,25}",
"URL Parameter": r"(?<=\?|\&)[a-zA-Z0-9_]+(?=\=)",
"Twilio API Key": r"SK[0-9a-fA-F]{32}",
"Square Access Token": r"sq0atp-[0-9A-Za-z\\-_]{22}",
"Square OAuth Secret": r"sq0csp-[0-9A-Za-z\\-_]{43}",
"URL": r'(https?|ftp)://(-\.)?([^\s/?\.#-]+\.?)+(/[^\s]*)?$iS',
"Adobe Client Secret": r'''(?i)\b((p8e-)[a-zA-Z0-9]{32})(?:['|\"|\n|\r|\s|\x60]|$)''',
"Alibaba AccessKey ID": r"(?i)\b((LTAI)[a-zA-Z0-9]{20})(?:['|\"|\n|\r|\s|\x60]|$)",
"Clojars API Token": r"(?i)(CLOJARS_)[a-z0-9]{60}",
"Doppler API Token": r"(dp\.pt\.)[a-zA-Z0-9]{43}",
"Dynatrace API Token": r"dt0c01\.[a-zA-Z0-9]{24}\.[a-z0-9]{64}",
"EasyPost API Token": r"EZAK[a-zA-Z0-9]{54}",
"GitLab Personal Access Token": r"glpat-[0-9a-zA-Z\-\_]{20}",
"NPM Access Token": r"(?i)\b(npm_[a-z0-9]{36})(?:['|\"|\n|\r|\s|\x60]|$)",
"Shopify Private APP Access Token": r"shppa_[a-fA-F0-9]{32}",
"Shopify Shared Secret": r"shpss_[a-fA-F0-9]{32}",
"Shopify Custom Access Token": r"shpca_[a-fA-F0-9]{32}",
"Shopify Access Token": r"shpat_[a-fA-F0-9]{32}",
"Asana Client ID": r"""(?i)(?:asana)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)""",
"Asana Client Secret": r"""(?i)(?:asana)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:=|\|\|:|<=|=>|:)(?:'|\"|\s|=|\x60){0,5}([a-z0-9]{32})(?:['|\"|\n|\r|\s|\x60|;]|$)"""
}
def scan(url, custom_headers) -> None:
" Open JavaScript file without parsing URL before requesting "
response: function = get(url, headers=custom_headers, timeout=30)
content: str = response.text
content: str = beautify(content)
for key, value in regex_list.items():
pattern = value
match = findall(pattern, content)
if(match):
console.print(f"\n[[green]+[/]] [yellow]{key}[/] found in [yellow]{url}[/]: {match}\n", highlight=False) | 6,029 | secret | py | en | python | code | {"qsc_code_num_words": 1035, "qsc_code_num_chars": 6029.0, "qsc_code_mean_word_length": 3.06086957, "qsc_code_frac_words_unique": 0.22028986, "qsc_code_frac_chars_top_2grams": 0.04166667, "qsc_code_frac_chars_top_3grams": 0.04103535, "qsc_code_frac_chars_top_4grams": 0.04924242, "qsc_code_frac_chars_dupe_5grams": 0.25315657, "qsc_code_frac_chars_dupe_6grams": 0.20044192, "qsc_code_frac_chars_dupe_7grams": 0.16003788, "qsc_code_frac_chars_dupe_8grams": 0.13320707, "qsc_code_frac_chars_dupe_9grams": 0.12941919, "qsc_code_frac_chars_dupe_10grams": 0.12941919, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.07980145, "qsc_code_frac_chars_whitespace": 0.1311992, "qsc_code_size_file_byte": 6029.0, "qsc_code_num_lines": 99.0, "qsc_code_num_chars_line_max": 184.0, "qsc_code_num_chars_line_mean": 60.8989899, "qsc_code_frac_chars_alphabet": 0.52500955, "qsc_code_frac_chars_comments": 0.00962017, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0212766, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.14893617, "qsc_code_frac_chars_string_length": 0.70895522, "qsc_code_frac_chars_long_word_length": 0.35837479, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0106383, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0106383, "qsc_codepython_frac_lines_import": 0.04255319, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.05319149, "qsc_codepython_frac_lines_print": 0.0106383} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 1, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | util.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
AI截图分析工具模块
包含配置管理、日志管理、错误处理等功能
"""
import os
import logging
import time
import glob
from datetime import datetime
from typing import Dict, Any, Optional
from PyQt6.QtWidgets import QMessageBox
from PyQt6.QtCore import QObject, pyqtSignal
try:
import tomllib
import tomli_w
TOML_AVAILABLE = True
except ImportError:
TOML_AVAILABLE = False
print("警告: tomllib/tomli_w 模块未安装,将使用默认配置")
class ConfigManager(QObject):
"""配置文件管理器"""
config_changed = pyqtSignal()
def __init__(self):
super().__init__()
self.config_file = "config.toml"
self.config = self._get_hardcoded_config()
@property
def config_file_path(self) -> str:
"""获取配置文件路径"""
return os.path.abspath(self.config_file)
def _get_hardcoded_config(self) -> Dict[str, Any]:
"""获取硬编码配置(与_save_config_with_comments保持一致)"""
return {
# AI模型配置 - 定义使用的AI模型相关参数
"ai_model": {
"name": "内置Qwen3模型", # 模型显示名称
"model_id": "qwen3-235b-a22b", # 模型标识符
"api_endpoint": "http://127.0.0.1:58888/v1/chat/completions", # API端点地址,支持本地Flask服务
"api_key": "sk-example-key", # API密钥
"max_tokens": 0, # 最大令牌数,0表示使用模型默认值
"temperature": 0.3, # 生成温度,控制回答的随机性(0-2)
"vision_support": False, # 是否支持图像输入
"enable_streaming": True # 是否启用流式响应
},
# 提示词配置 - 预定义的AI交互提示词模板
"prompts": [
{
"name": "OCR并解释内容", # 提示词名称
"content": "请简要解释给出的文字内容。给出的内容由OCR获得,若不影响判断,则请忽略可能存在错误的换行符、空格与错别字。回复的内容请勿包含任何markdown标记,以简洁明了为主,不要长篇大论。" # 提示词内容
},
{
"name": "OCR并解答题目",
"content": "请解答给出的题目。给出的题目内容由OCR获得,若不影响判断,则请忽略可能存在错误的换行符、空格与错别字。回复的内容请勿包含任何markdown标记,把答案放在最前面,且简短讲解即可。"
},
{
"name": "OCR并翻译文本",
"content": "请中英互译给出的文本。给出的题目内容由OCR获得,若不影响判断,则请忽略可能存在错误的换行符、空格与错别字。请按原格式输出。"
},
{
"name": "AI直接提取文字",
"content": "请识别图片中的文字内容,并格式化后给我。"
},
{
"name": "AI直接解答题目",
"content": "请解答给出的截图中的题目。回复的内容请勿包含任何markdown标记,把答案放在最前面,且简短讲解即可。"
}
],
# OCR配置 - 光学字符识别相关设置
"ocr": {
"engine": "vision_model", # OCR引擎类型:xinyew(新野OCR)、tencent(腾讯云OCR)、vision_model(AI视觉模型)
"type": "ocr_then_text", # 处理类型:ocr_then_text(先OCR再分析)、direct_vision(直接视觉分析)
# 腾讯云OCR配置
"tencent": {
"secret_id": "", # 腾讯云SecretId
"secret_key": "", # 腾讯云SecretKey
"region": "ap-beijing", # 服务区域
"language": "zh" # 识别语言
},
# AI视觉模型OCR配置
"vision_model": {
"name": "OCR专用模型", # 模型名称
"model_id": "qwen2.5-vl-32b-instruct", # 模型ID
"api_endpoint": "http://127.0.0.1:58888/v1/chat/completions", # API端点
"api_key": "sk-example-key", # API密钥
"max_tokens": 4096, # 最大令牌数
"temperature": 0.1, # 生成温度,OCR任务使用较低温度
"prompt": "请识别图片中的文字内容,并格式化后给我。只返回识别到的文字,不要添加任何解释或说明。" # OCR专用提示词
}
},
# 通知配置 - 结果展示方式设置
"notification": {
"type": "large_popup", # 通知类型:none(不额外通知)、large_popup(大弹窗)、small_popup(小弹窗)、email(邮件)
# SMTP邮件配置
"smtp": {
"server": "smtp.qq.com", # SMTP服务器地址
"port": 587, # SMTP端口
"username": "", # 邮箱用户名
"password": "", # 邮箱密码或授权码
"to_email": "" # 接收邮箱地址
}
},
# 快捷键配置 - 全局热键设置
"hotkey": {
"screenshot": "alt+shift+d" # 截图快捷键组合
},
# 截图配置 - 截图质量和格式设置
"screenshot": {
"quality": "high", # 截图质量:high(高质量)、medium(中等)、low(低质量)
"format": "PNG" # 截图格式:PNG、JPEG
},
# 日志配置 - 应用程序日志记录设置
"logging": {
"level": "INFO" # 日志级别:DEBUG、INFO、WARNING、ERROR、CRITICAL
}
}
def load_config(self) -> bool:
"""加载配置文件"""
try:
if not TOML_AVAILABLE:
logging.warning("TOML模块不可用,使用默认配置")
return True
if os.path.exists(self.config_file):
with open(self.config_file, 'rb') as f:
loaded_config = tomllib.load(f)
self.config = self._merge_config(self._get_hardcoded_config(), loaded_config)
logging.info("配置文件加载成功")
else:
logging.info("配置文件不存在,使用默认配置")
self.save_config()
self.config_changed.emit()
return True
except Exception as e:
logging.error(f"加载配置文件失败: {e}")
return False
def load_config_from_file(self, file_path: str) -> bool:
"""从指定文件加载配置"""
try:
if not TOML_AVAILABLE:
logging.warning("TOML模块不可用,无法加载配置文件")
return False
if not os.path.exists(file_path):
logging.error(f"配置文件不存在: {file_path}")
return False
with open(file_path, 'rb') as f:
loaded_config = tomllib.load(f)
# 更新当前配置文件路径
self.config_file = file_path
self.config = self._merge_config(self._get_hardcoded_config(), loaded_config)
self.config_changed.emit()
logging.info(f"从文件加载配置成功: {file_path}")
return True
except Exception as e:
logging.error(f"从文件加载配置失败: {e}")
return False
def save_config(self) -> bool:
"""保存配置文件"""
try:
if not TOML_AVAILABLE:
logging.warning("TOML模块不可用,无法保存配置")
return False
# 检查是否是首次创建配置文件
is_first_time = not os.path.exists(self.config_file)
if is_first_time:
# 首次创建时生成带注释的配置文件
self._save_config_with_comments()
else:
# 后续保存时使用标准方式
with open(self.config_file, 'wb') as f:
tomli_w.dump(self.config, f)
logging.info("配置文件保存成功")
self.config_changed.emit()
return True
except Exception as e:
logging.error(f"保存配置文件失败: {e}")
return False
def _save_config_with_comments(self) -> None:
"""保存带详细注释的配置文件"""
# 使用硬编码配置生成带注释的TOML文件
config = self._get_hardcoded_config()
config_content = '''# AI截图分析工具配置文件
# 本文件包含应用程序的所有配置选项,每个选项都有详细说明
# ==================== AI模型配置 ====================
[ai_model]
# 定义使用的AI模型相关参数
# ◆ 模型显示名称
name = "{ai_model_name}"
# ◆ 模型标识符,用于API调用
model_id = "{ai_model_id}"
# ◆ API端点地址,支持内置Qwen API服务或远程第三方API
# 内置服务:http://127.0.0.1:58888/v1/chat/completions
# 第三方服务示例:https://api.openai.com/v1/chat/completions
# 当您填写了第三方服务时,内置的服务将不会运行
api_endpoint = "{ai_api_endpoint}"
# ◆ API密钥,用于身份验证
# 使用内置服务时可以随便填
api_key = "{ai_api_key}"
# ◆ 最大令牌数,0表示使用模型默认值
max_tokens = {ai_max_tokens}
# ◆ 生成温度,控制回答的随机性(0-1),值越低越确定
temperature = {ai_temperature}
# ◆ 模型是否有视觉
# 不知道就填false
vision_support = {ai_vision_support}
# ◆ 是否启用流式响应
# 秘塔AI请填false,响应速度较快的模型也推荐填false。深度思考一定填true。
enable_streaming = {ai_enable_streaming}
# ==================== 提示词配置 ====================
# ◆ 预定义的AI交互提示词模板,可根据不同场景,在软件内使用
{prompts_section}
# ==================== OCR配置 ====================
[ocr]
# ◆ 图片处理方式:
# - ocr_then_text: 先OCR提取文字再分析
# - direct_vision: 直接使用视觉AI分析图片
type = "{ocr_type}"
# ◆ OCR引擎类型:
# - xinyew: 新野OCR(免费,推荐)
# - tencent: 腾讯云OCR(需要配置密钥)
# - vision_model: AI视觉模型OCR
engine = "{ocr_engine}"
[ocr.tencent]
# 腾讯云OCR配置(仅当engine=tencent时需要)
# ◆ 腾讯云SecretId
secret_id = "{tencent_secret_id}"
# ◆ 腾讯云SecretKey
secret_key = "{tencent_secret_key}"
# ◆ 服务区域
# 推荐保持默认
region = "{tencent_region}"
# ◆ 识别语言:zh(中文)、en(英文)
# 推荐保持默认
language = "{tencent_language}"
[ocr.vision_model]
# AI视觉模型OCR配置(仅当engine=vision_model时需要)
# ◆ 模型名称
name = "{vision_model_name}"
# ◆ 模型ID
model_id = "{vision_model_id}"
# ◆ API端点
api_endpoint = "{vision_api_endpoint}"
# ◆ API密钥
api_key = "{vision_api_key}"
# ◆ 最大令牌数
max_tokens = {vision_max_tokens}
# ◆ 生成温度,OCR任务推荐使用较低温度
temperature = {vision_temperature}
# ◆ OCR专用提示词
prompt = "{vision_prompt}"
# ==================== 通知配置 ====================
[notification]
# 结果展示方式设置
# ◆ 通知类型:
# - none: 不额外通知
# - large_popup: 屏幕中心大弹窗
# - small_popup: 屏幕左下角小弹窗
# - email: 邮件通知
type = "{notification_type}"
[notification.smtp]
# SMTP邮件配置(仅当type=email时需要)
# 小贴士:邮件可以发给自己
# ◆ SMTP服务器地址
server = "{smtp_server}"
# ◆ SMTP端口
port = {smtp_port}
# ◆ 邮箱用户名
username = "{smtp_username}"
# ◆ 邮箱密码或授权码
password = "{smtp_password}"
# ◆ 接收邮箱地址
to_email = "{smtp_to_email}"
# ==================== 快捷键配置 ====================
[hotkey]
# 全局热键设置
# ◆ 截图快捷键组合
# 支持的修饰键:ctrl、alt、shift
# 示例:"alt+shift+d"、"ctrl+alt+s"
# 建议事先验证您的快捷键是否已经被占用
screenshot = "{hotkey_screenshot}"
# ==================== 截图配置 ====================
[screenshot]
# 截图质量和格式设置
# ◆ 截图质量:high(高质量)、medium(中等)、low(低质量)
quality = "{screenshot_quality}"
# ◆ 截图格式:PNG、JPEG
format = "{screenshot_format}"
# ==================== 日志配置 ====================
[logging]
# ◆ 应用程序日志记录设置
# 日志级别:DEBUG、INFO、WARNING、ERROR、CRITICAL
# DEBUG: 详细调试信息
# INFO: 一般信息(推荐)
# WARNING: 警告信息
# ERROR: 错误信息
# CRITICAL: 严重错误
level = "{logging_level}"
'''
# 生成提示词部分
prompts_section = ""
for prompt in config["prompts"]:
prompts_section += f'''[[prompts]]
name = "{prompt["name"]}"
content = "{prompt["content"]}"
'''
# 格式化配置内容
formatted_content = config_content.format(
ai_model_name=config["ai_model"]["name"],
ai_model_id=config["ai_model"]["model_id"],
ai_api_endpoint=config["ai_model"]["api_endpoint"],
ai_api_key=config["ai_model"]["api_key"],
ai_max_tokens=config["ai_model"]["max_tokens"],
ai_temperature=config["ai_model"]["temperature"],
ai_vision_support=str(config["ai_model"]["vision_support"]).lower(),
ai_enable_streaming=str(config["ai_model"]["enable_streaming"]).lower(),
prompts_section=prompts_section.strip(),
ocr_type=config["ocr"]["type"],
ocr_engine=config["ocr"]["engine"],
tencent_secret_id=config["ocr"]["tencent"]["secret_id"],
tencent_secret_key=config["ocr"]["tencent"]["secret_key"],
tencent_region=config["ocr"]["tencent"]["region"],
tencent_language=config["ocr"]["tencent"]["language"],
vision_model_name=config["ocr"]["vision_model"]["name"],
vision_model_id=config["ocr"]["vision_model"]["model_id"],
vision_api_endpoint=config["ocr"]["vision_model"]["api_endpoint"],
vision_api_key=config["ocr"]["vision_model"]["api_key"],
vision_max_tokens=config["ocr"]["vision_model"]["max_tokens"],
vision_temperature=config["ocr"]["vision_model"]["temperature"],
vision_prompt=config["ocr"]["vision_model"]["prompt"],
notification_type=config["notification"]["type"],
smtp_server=config["notification"]["smtp"]["server"],
smtp_port=config["notification"]["smtp"]["port"],
smtp_username=config["notification"]["smtp"]["username"],
smtp_password=config["notification"]["smtp"]["password"],
smtp_to_email=config["notification"]["smtp"]["to_email"],
hotkey_screenshot=config["hotkey"]["screenshot"],
screenshot_quality=config["screenshot"]["quality"],
screenshot_format=config["screenshot"]["format"],
logging_level=config["logging"]["level"]
)
with open(self.config_file, 'w', encoding='utf-8') as f:
f.write(formatted_content)
def _merge_config(self, default: Dict, loaded: Dict) -> Dict:
"""合并配置,确保所有默认键都存在"""
result = default.copy()
for key, value in loaded.items():
if key in result and isinstance(result[key], dict) and isinstance(value, dict):
result[key] = self._merge_config(result[key], value)
else:
result[key] = value
return result
def get_config(self, path: str = None) -> Any:
"""获取配置值"""
if path is None:
return self.config
keys = path.split('.')
value = self.config
for key in keys:
if isinstance(value, dict) and key in value:
value = value[key]
else:
return None
return value
def set_config(self, path: str, value: Any) -> bool:
"""设置配置值"""
try:
keys = path.split('.')
config = self.config
for key in keys[:-1]:
if key not in config:
config[key] = {}
config = config[key]
config[keys[-1]] = value
return True
except Exception as e:
logging.error(f"设置配置失败: {e}")
return False
def export_config(self, file_path: str) -> bool:
"""导出配置文件"""
try:
if not TOML_AVAILABLE:
return False
with open(file_path, 'wb') as f:
tomli_w.dump(self.config, f)
return True
except Exception as e:
logging.error(f"导出配置失败: {e}")
return False
def import_config(self, file_path: str) -> bool:
"""导入配置文件"""
try:
if not TOML_AVAILABLE:
return False
with open(file_path, 'rb') as f:
imported_config = tomllib.load(f)
self.config = self._merge_config(self._get_hardcoded_config(), imported_config)
self.save_config()
return True
except Exception as e:
logging.error(f"导入配置失败: {e}")
return False
def reset_config(self) -> bool:
"""重置为默认配置"""
try:
self.config = self._get_hardcoded_config()
self.save_config()
return True
except Exception as e:
logging.error(f"重置配置失败: {e}")
return False
def delete_config(self) -> bool:
"""删除配置文件"""
try:
if os.path.exists(self.config_file):
os.remove(self.config_file)
logging.info("配置文件已删除")
return True
except Exception as e:
logging.error(f"删除配置文件失败: {e}")
return False
class LogManager:
"""日志管理器"""
def __init__(self):
self.log_dir = "logs"
def setup_logging(self, level: str = "INFO"):
"""设置日志"""
# 创建日志目录
if not os.path.exists(self.log_dir):
os.makedirs(self.log_dir)
# 清理旧日志
self._cleanup_old_logs()
# 设置日志格式
log_format = '%(asctime)s - %(name)s - %(levelname)s - %(message)s'
# 设置日志文件名
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
log_file = os.path.join(self.log_dir, f"app_{timestamp}.log")
# 配置日志
logging.basicConfig(
level=getattr(logging, level.upper(), logging.INFO),
format=log_format,
handlers=[
logging.FileHandler(log_file, encoding='utf-8'),
logging.StreamHandler()
]
)
def _cleanup_old_logs(self):
"""清理旧日志文件,保留最近10个"""
try:
log_files = glob.glob(os.path.join(self.log_dir, "app_*.log"))
log_files.sort(key=os.path.getmtime, reverse=True)
# 删除超过10个的旧日志
for old_log in log_files[10:]:
os.remove(old_log)
except Exception as e:
print(f"清理日志文件失败: {e}")
class ErrorHandler:
"""错误处理器"""
def __init__(self):
pass
def handle_error(self, error: Exception, context: str = "", show_dialog: bool = True):
"""处理错误"""
error_msg = f"{context}: {str(error)}" if context else str(error)
logging.error(error_msg, exc_info=True)
if show_dialog:
self.show_error_dialog(error_msg)
def show_error_dialog(self, message: str):
"""显示错误对话框"""
try:
msg_box = QMessageBox()
msg_box.setIcon(QMessageBox.Icon.Critical)
msg_box.setWindowTitle("错误")
msg_box.setText(message)
msg_box.setStandardButtons(QMessageBox.StandardButton.Ok)
msg_box.exec()
except Exception as e:
print(f"显示错误对话框失败: {e}")
class TaskManager(QObject):
"""任务管理器"""
task_started = pyqtSignal()
task_finished = pyqtSignal()
def __init__(self):
super().__init__()
self._is_running = False
self._current_task = None
def is_running(self) -> bool:
"""检查是否有任务在运行"""
return self._is_running
def start_task(self, task_name: str) -> bool:
"""开始任务"""
if self._is_running:
logging.warning(f"任务 {self._current_task} 正在运行,无法启动新任务 {task_name}")
return False
self._is_running = True
self._current_task = task_name
self.task_started.emit()
logging.info(f"任务开始: {task_name}")
return True
def finish_task(self):
"""完成任务"""
if self._is_running:
logging.info(f"任务完成: {self._current_task}")
self._is_running = False
self._current_task = None
self.task_finished.emit()
def get_current_task(self) -> Optional[str]:
"""获取当前任务名称"""
return self._current_task | 18,578 | util | py | en | python | code | {"qsc_code_num_words": 1875, "qsc_code_num_chars": 18578.0, "qsc_code_mean_word_length": 5.06666667, "qsc_code_frac_words_unique": 0.24213333, "qsc_code_frac_chars_top_2grams": 0.02526316, "qsc_code_frac_chars_top_3grams": 0.01473684, "qsc_code_frac_chars_top_4grams": 0.01894737, "qsc_code_frac_chars_dupe_5grams": 0.21978947, "qsc_code_frac_chars_dupe_6grams": 0.18642105, "qsc_code_frac_chars_dupe_7grams": 0.14621053, "qsc_code_frac_chars_dupe_8grams": 0.12831579, "qsc_code_frac_chars_dupe_9grams": 0.09621053, "qsc_code_frac_chars_dupe_10grams": 0.06621053, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00643604, "qsc_code_frac_chars_whitespace": 0.33092906, "qsc_code_size_file_byte": 18578.0, "qsc_code_num_lines": 611.0, "qsc_code_num_chars_line_max": 134.0, "qsc_code_num_chars_line_mean": 30.40589198, "qsc_code_frac_chars_alphabet": 0.75526951, "qsc_code_frac_chars_comments": 0.05926365, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.20750552, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.2919366, "qsc_code_frac_chars_long_word_length": 0.05396807, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.05518764, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.00883002, "qsc_codepython_frac_lines_import": 0.03090508, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.17218543, "qsc_codepython_frac_lines_print": 0.00662252} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | main.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
AI截图分析主程序
作者: AI Assistant
版本: 1.0.0-simplified
"""
import sys
import logging
import threading
import time
from PyQt6.QtWidgets import QApplication
from main_window import MainWindow
from util import ConfigManager, LogManager, ErrorHandler
from core import ScreenshotManager, OCRManager, AIClientManager
from ai import app as flask_app
class Application:
"""应用程序主类"""
def __init__(self):
self.app = None
self.main_window = None
self.config_manager = ConfigManager()
self.log_manager = LogManager()
self.error_handler = ErrorHandler()
self.screenshot_manager = None
self.ocr_manager = None
self.ai_client_manager = None
self.flask_thread = None
self.flask_port = 58888
def start_flask_server(self):
"""在后台线程中启动Flask服务"""
try:
logging.info(f"正在启动Flask服务于端口 {self.flask_port}...")
flask_app.run(host='127.0.0.1', port=self.flask_port, debug=False, use_reloader=False)
except Exception as e:
logging.error(f"Flask服务启动失败: {e}")
def initialize(self):
"""初始化应用程序"""
try:
# 初始化日志
self.log_manager.setup_logging()
logging.info("应用程序启动")
# 加载配置
self.config_manager.load_config()
# 检查是否需要启动Flask服务
# 同时检测分析AI和OCR AI的API端点是否指向内置AI服务
ai_config = self.config_manager.get_config("ai_model")
ocr_config = self.config_manager.get_config("ocr.vision_model")
local_endpoint = f"http://127.0.0.1:{self.flask_port}"
# 检查分析AI是否指向内置服务
ai_uses_local = ai_config and ai_config.get("api_endpoint", "").startswith(local_endpoint)
# 检查OCR AI是否指向内置服务
ocr_uses_local = ocr_config and ocr_config.get("api_endpoint", "").startswith(local_endpoint)
if ai_uses_local or ocr_uses_local:
# 至少有一个配置指向内置服务,启动Flask服务
services_using_local = []
if ai_uses_local:
services_using_local.append("分析AI")
if ocr_uses_local:
services_using_local.append("OCR AI")
logging.info(f"检测到以下服务使用内置AI: {', '.join(services_using_local)},启动Flask服务...")
self.flask_thread = threading.Thread(target=self.start_flask_server, daemon=True)
self.flask_thread.start()
# 等待Flask服务启动
time.sleep(2)
else:
logging.info("分析AI和OCR AI均未指向内置服务,跳过Flask服务启动")
# 初始化各个管理器
self.screenshot_manager = ScreenshotManager(self.config_manager)
self.ocr_manager = OCRManager(self.config_manager)
self.ai_client_manager = AIClientManager(self.config_manager)
# 创建Qt应用
self.app = QApplication(sys.argv)
self.app.setApplicationName("AI截图分析")
self.app.setApplicationVersion("1.0.0-simplified")
# 创建主窗口
self.main_window = MainWindow(
self.config_manager,
self.screenshot_manager,
self.ocr_manager,
self.ai_client_manager
)
return True
except Exception as e:
self.error_handler.handle_error(e, "应用程序初始化失败")
return False
def run(self):
"""运行应用程序"""
if not self.initialize():
return 1
try:
self.main_window.show()
return self.app.exec()
except Exception as e:
self.error_handler.handle_error(e, "应用程序运行失败")
return 1
def cleanup(self):
"""清理资源"""
try:
if self.screenshot_manager:
self.screenshot_manager.cleanup()
logging.info("应用程序退出")
except Exception as e:
self.error_handler.handle_error(e, "清理资源失败")
def main():
"""主函数"""
app = Application()
try:
exit_code = app.run()
finally:
app.cleanup()
sys.exit(exit_code)
if __name__ == "__main__":
main() | 4,371 | main | py | en | python | code | {"qsc_code_num_words": 443, "qsc_code_num_chars": 4371.0, "qsc_code_mean_word_length": 5.29571106, "qsc_code_frac_words_unique": 0.31828442, "qsc_code_frac_chars_top_2grams": 0.0341006, "qsc_code_frac_chars_top_3grams": 0.05797101, "qsc_code_frac_chars_top_4grams": 0.03069054, "qsc_code_frac_chars_dupe_5grams": 0.17306053, "qsc_code_frac_chars_dupe_6grams": 0.15089514, "qsc_code_frac_chars_dupe_7grams": 0.09548167, "qsc_code_frac_chars_dupe_8grams": 0.05882353, "qsc_code_frac_chars_dupe_9grams": 0.05882353, "qsc_code_frac_chars_dupe_10grams": 0.05882353, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01018974, "qsc_code_frac_chars_whitespace": 0.34889041, "qsc_code_size_file_byte": 4371.0, "qsc_code_num_lines": 142.0, "qsc_code_num_chars_line_max": 106.0, "qsc_code_num_chars_line_mean": 30.78169014, "qsc_code_frac_chars_alphabet": 0.81412509, "qsc_code_frac_chars_comments": 0.06566003, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.12222222, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.07657993, "qsc_code_frac_chars_long_word_length": 0.01586121, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.06666667, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.1, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.23333333, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | main_window.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
AI截图分析主窗口界面
只包含主页、配置文件选择、关于页
"""
import os
import logging
from PyQt6.QtWidgets import (
QMainWindow, QWidget, QVBoxLayout, QHBoxLayout, QTabWidget,
QLabel, QPushButton, QTextEdit, QLineEdit, QGroupBox,
QFileDialog, QComboBox, QFormLayout
)
from PyQt6.QtCore import QThread, pyqtSignal
from PyQt6.QtGui import QIcon, QPixmap
from custom_window import CustomMessageBox, MarkdownViewer, NotificationWindow
from util import TaskManager
from core import EmailManager
class WorkerThread(QThread):
"""工作线程"""
status_update = pyqtSignal(str)
task_completed = pyqtSignal(str)
task_failed = pyqtSignal(str)
def __init__(self, task_func, *args, **kwargs):
super().__init__()
self.task_func = task_func
self.args = args
self.kwargs = kwargs
def run(self):
try:
result = self.task_func(*self.args, **self.kwargs)
self.task_completed.emit(result)
except Exception as e:
self.task_failed.emit(str(e))
class MainWindow(QMainWindow):
"""主窗口"""
def __init__(self, config_manager, screenshot_manager, ocr_manager, ai_client_manager):
super().__init__()
self.config_manager = config_manager
self.screenshot_manager = screenshot_manager
self.ocr_manager = ocr_manager
self.ai_client_manager = ai_client_manager
self.task_manager = TaskManager()
# 初始化邮件管理器和通知窗口
self.email_manager = EmailManager(config_manager)
self.notification_window = NotificationWindow()
self.current_image = None
self.worker_thread = None
self.init_ui()
self.connect_signals()
self.setup_hotkey()
self.load_config_to_ui()
def init_ui(self):
"""初始化界面"""
self.setWindowTitle("AI截图分析")
self.setGeometry(100, 100, 800, 500)
# 设置窗口图标
try:
from icon_data import get_icon_data
icon_data = get_icon_data()
pixmap = QPixmap()
pixmap.loadFromData(icon_data)
self.setWindowIcon(QIcon(pixmap))
except ImportError:
if os.path.exists('favicon.ico'):
self.setWindowIcon(QIcon('favicon.ico'))
# 设置样式
self.setStyleSheet("""
QMainWindow {
background-color: #f8fffe;
font-size: 16px;
}
QTabWidget::pane {
border: 1px solid #c0c4cc;
background-color: white;
}
QTabBar::tab {
background-color: #e8f5e8;
padding: 10px 18px;
margin-right: 2px;
border-top-left-radius: 4px;
border-top-right-radius: 4px;
font-size: 16px;
}
QTabBar::tab:selected {
background-color: #a8d8a8;
color: white;
}
QPushButton {
background-color: #a8d8a8;
color: white;
border: none;
padding: 12px 20px;
border-radius: 4px;
font-weight: bold;
font-size: 16px;
min-height: 20px;
}
QPushButton:hover {
background-color: #90c890;
}
QPushButton:pressed {
background-color: #78b878;
}
QPushButton:disabled {
background-color: #cccccc;
color: #666666;
}
QLineEdit {
font-size: 16px;
padding: 8px 12px;
min-height: 20px;
border: 1px solid #ddd;
border-radius: 4px;
}
QLineEdit:focus {
outline: none;
border: 2px solid #a8d8a8;
}
QLabel {
font-size: 16px;
padding: 4px;
}
QTextEdit {
font-size: 16px;
padding: 8px;
border: 1px solid #ddd;
border-radius: 4px;
}
QTextEdit:focus {
outline: none;
border: 2px solid #a8d8a8;
}
QSpinBox, QDoubleSpinBox {
font-size: 16px;
padding: 8px 12px;
min-height: 20px;
border: 1px solid #ddd;
border-radius: 4px;
}
QSpinBox:focus, QDoubleSpinBox:focus {
outline: none;
border: 2px solid #a8d8a8;
}
QCheckBox {
font-size: 16px;
padding: 4px;
}
QComboBox {
font-size: 17px;
padding: 8px 8px;
min-height: 14px;
border: 1px solid #ddd;
border-radius: 4px;
background-color: white;
}
QComboBox:focus {
outline: none;
border: 2px solid #a8d8a8;
}
QComboBox::drop-down {
border: none;
width: 20px;
}
QComboBox::down-arrow {
image: none;
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #666;
margin-right: 5px;
}
QComboBox QAbstractItemView {
font-size: 18px;
background-color: white;
border: 1px solid #ddd;
selection-background-color: #a8d8a8;
selection-color: white;
outline: none;
}
QComboBox QAbstractItemView::item {
height: 25px;
padding: 8px 8px;
border-bottom: 1px solid #f0f0f0;
}
QComboBox QAbstractItemView::item:hover {
background-color: #e8f5e8;
}
QComboBox QAbstractItemView::item:selected {
background-color: #a8d8a8;
color: white;
}
""")
# 创建中央部件
central_widget = QWidget()
self.setCentralWidget(central_widget)
# 创建主布局
main_layout = QVBoxLayout(central_widget)
# 创建标签页
self.tab_widget = QTabWidget()
main_layout.addWidget(self.tab_widget)
# 添加页面
self.create_home_page()
self.create_config_page()
self.create_about_page()
def create_home_page(self):
"""创建主页"""
home_widget = QWidget()
self.tab_widget.addTab(home_widget, "主页")
layout = QHBoxLayout(home_widget)
# 左侧控制台
control_panel = QGroupBox("控制台")
control_panel.setMaximumWidth(300)
control_layout = QVBoxLayout(control_panel)
# 截图按钮
self.screenshot_btn = QPushButton("开始截图")
self.screenshot_btn.clicked.connect(self.start_screenshot)
control_layout.addWidget(self.screenshot_btn)
# 从剪贴板导入按钮
self.clipboard_btn = QPushButton("从剪贴板导入图片")
self.clipboard_btn.setStyleSheet("""
QPushButton {
background-color: white;
color: #333;
border: 1px solid #ccc;
padding: 12px 20px;
border-radius: 4px;
}
QPushButton:hover {
background-color: #f5f5f5;
border-color: #999;
}
QPushButton:pressed {
background-color: #e0e0e0;
}
""")
self.clipboard_btn.clicked.connect(self.import_from_clipboard)
control_layout.addWidget(self.clipboard_btn)
# 提示词选择
prompt_group = QGroupBox("提示词选择")
prompt_layout = QVBoxLayout(prompt_group)
self.prompt_combo = QComboBox()
self.prompt_combo.setToolTip("选择要使用的提示词")
prompt_layout.addWidget(self.prompt_combo)
control_layout.addWidget(prompt_group)
# 强制停止按钮
self.stop_btn = QPushButton("强制停止任务")
self.stop_btn.setEnabled(False)
self.stop_btn.clicked.connect(self.stop_task)
control_layout.addWidget(self.stop_btn)
control_layout.addStretch()
layout.addWidget(control_panel)
# 右侧输出区
output_panel = QGroupBox("输出区")
output_layout = QVBoxLayout(output_panel)
# 状态标签
self.status_label = QLabel("就绪")
self.status_label.setStyleSheet("""
font-weight: bold;
color: #666;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
""")
output_layout.addWidget(self.status_label)
# 输出文本区
self.output_text = MarkdownViewer()
self.output_text.setPlaceholderText("AI分析结果将在这里显示...")
output_layout.addWidget(self.output_text)
layout.addWidget(output_panel)
def create_config_page(self):
"""创建配置文件选择页面"""
config_widget = QWidget()
self.tab_widget.addTab(config_widget, "配置文件")
layout = QVBoxLayout(config_widget)
# 当前配置文件信息
current_group = QGroupBox("当前配置文件")
current_layout = QFormLayout(current_group)
self.current_config_path = QLineEdit()
self.current_config_path.setReadOnly(True)
self.current_config_path.setText(self.config_manager.config_file_path)
self.config_status_label = QLabel("配置有效")
self.config_status_label.setStyleSheet("color: green; font-weight: bold;")
current_layout.addRow("配置文件路径:", self.current_config_path)
current_layout.addRow("配置状态:", self.config_status_label)
layout.addWidget(current_group)
# 配置文件操作
file_group = QGroupBox("配置文件操作")
file_layout = QVBoxLayout(file_group)
# 选择配置文件
select_layout = QHBoxLayout()
self.select_config_btn = QPushButton("选择配置文件")
self.select_config_btn.clicked.connect(self.select_config_file)
self.validate_config_btn = QPushButton("验证配置")
self.validate_config_btn.clicked.connect(self.validate_config)
select_layout.addWidget(self.select_config_btn)
select_layout.addWidget(self.validate_config_btn)
file_layout.addLayout(select_layout)
# 其他操作
other_layout = QHBoxLayout()
self.export_config_btn = QPushButton("导出配置")
self.export_config_btn.clicked.connect(self.export_config)
self.reset_config_btn = QPushButton("重置为默认")
self.reset_config_btn.clicked.connect(self.reset_config)
other_layout.addWidget(self.export_config_btn)
other_layout.addWidget(self.reset_config_btn)
file_layout.addLayout(other_layout)
layout.addWidget(file_group)
# 配置文件内容预览
preview_group = QGroupBox("配置文件内容预览")
preview_layout = QVBoxLayout(preview_group)
self.config_preview = QTextEdit()
self.config_preview.setReadOnly(True)
self.config_preview.setMaximumHeight(200)
self.config_preview.setStyleSheet("font-family: 'Consolas', 'Monaco', monospace;")
preview_layout.addWidget(self.config_preview)
layout.addWidget(preview_group)
layout.addStretch()
# 加载当前配置预览
self.load_config_preview()
def create_about_page(self):
"""创建关于页面"""
about_widget = QWidget()
self.tab_widget.addTab(about_widget, "关于")
layout = QVBoxLayout(about_widget)
# 程序信息
info_text = QTextEdit()
info_text.setReadOnly(True)
info_text.setHtml("""
<style>
table {
border-collapse: collapse;
width: 100%;
}
table, th, td {
border: 1px solid black;
padding: 8px;
}
</style>
<h2 style="color: #a8d8a8;">AI截图分析 v2.2</h2>
<p>一个方便的AI截图分析工具,快速识别屏幕上看到的东西,然后让他帮你解释、答题、翻译。</p>
<p>软件目前处于测试版,可能存在Bug,若有问题,欢迎前往 Github 提交 issue。</p>
<h2>功能特点</h2>
<ul>
<li><strong>核心功能</strong>:截图后,将图片OCR为文字或直接提交给AI,并自动显示AI回复结果</li>
<li><strong>可扩展性</strong>:使用提示词自定义功能,例如 一键截图做题、解释、翻译 等功能</li>
<li><strong>开箱即用</strong>:内置原创 Qwen API 逆向,开箱即用</li>
<li><strong>高度自由</strong>:可自行配置使用的AI接口、OCR接口、提示词</li>
</ul>
<h2>更新日志</h2>
<h3>v2.2</h3>
<ul>
<li>修复:SMTP邮件通知功能异常</li>
<li>修复:额外通知设置为小窗时,会同时弹出大窗口</li>
<li>新增:Qwen API逆向新增多账号负载均衡,确保不会引发并发异常导致被检测封禁</li>
</ul>
<h3>v2.1</h3>
<ul>
<li>Qwen API 上传图片功能,可使用这个AI上传图片进行OCR</li>
<li>替换限制次数的云智OCR引擎为内置 Qwen API,使用“Qwen-2.5vl-32b-instruct”作为OCR引擎。
<ul>
<li>老版本用户如果想用这个AI,可以删除配置文件后重启软件,以自动生成新配置。</li>
</ul>
</li>
</ul>
<h3>v2.0</h3>
<ul>
<li>移除可能导致问题的前端配置部分,请自行编辑<code>config.toml</code>文件以自定义配置</li>
<li>新增:内置原创 Qwen API 逆向,允许开箱即用</li>
</ul>
<h2>注意事项</h2>
<ul>
<li>只有多模态模型允许直接提交图片,目前常用的多模态模型有 Claude 3/4 ,gpt-4o,Qwen-2.5vl。而Qwen3全系列、Deepseek系列、Kimi-K2都不是多模态模型,需要先OCR后再提交。若发现模型报错400,请检查此配置是否正确。</li>
<li>若需要联网功能,请使用秘塔API,赠送额度不少,且付费很便宜。</li>
</ul>
<h2>推荐AI服务商</h2>
<table style="width: 100%;border-collapse: collapse;">
<thead>
<tr>
<th>名称</th>
<th>推荐理由</th>
<th>链接地址</th>
</tr>
</thead>
<tbody>
<tr>
<td>硅基流动</td>
<td>模型齐全,稳定,价格合理</td>
<td>https://cloud.siliconflow.cn/models</td>
</tr>
<tr>
<td>魔搭社区</td>
<td>Qwen3全系列,每日2000次免费</td>
<td>https://www.modelscope.cn/my/myaccesstoken</td>
</tr>
<tr>
<td>秘塔AI</td>
<td>超强、超快联网搜索</td>
<td>https://metaso.cn/search-api/playground</td>
</tr>
<tr>
<td>V3 API</td>
<td>最全中转商,400+模型</td>
<td>https://api.gpt.ge/register?aff=TVyz</td>
</tr>
</tbody>
</table>
<h2>腾讯OCR配置步骤</h2>
<p>腾讯云OCR每月有1000次OCR调用次数,如果对精度有要求,推荐使用此OCR</p>
<ol>
<li>
<p><strong>登录腾讯云</strong>:前往链接,登录控制台。https://console.cloud.tencent.com</p>
</li>
<li>
<p><strong>开通OCR服务</strong>:前往链接,开通OCR服务。https://console.cloud.tencent.com/ocr/overview</p>
</li>
<li>
<p><strong>获取密钥对</strong>:前往链接,获取 <code>SecretID</code> 和 <code>SecretKey</code> ,保存到本地。https://console.cloud.tencent.com/cam/capi</p>
</li>
<li>
<p><strong>等待额度到账</strong>:回到开通服务界面,持续刷新,等待免费的1000额度到账,然后在软件中配置密钥对,开始使用OCR服务。</p>
</li>
</ol>
<h2>许可证</h2>
<p>MIT License</p>
<p>本项目仅供学习和个人使用,不得用于任何商业化用途。</p>
<p>Github项目地址:https://github.com/00000O00000/ask-ai-screenshot</p>
<p>软件图标来源:iconfont</p>
<p>https://www.iconfont.cn/collections/detail?spm=a313x.user_detail.i1.dc64b3430.6b413a81uspeMj&cid=17714</p>
""")
layout.addWidget(info_text)
def connect_signals(self):
"""连接信号"""
# 截图管理器信号
self.screenshot_manager.screenshot_taken.connect(self.on_screenshot_taken)
self.screenshot_manager.screenshot_failed.connect(self.on_screenshot_failed)
self.screenshot_manager.screenshot_cancelled.connect(self.on_screenshot_cancelled)
# OCR管理器信号
self.ocr_manager.ocr_completed.connect(self.on_ocr_completed)
self.ocr_manager.ocr_failed.connect(self.on_ocr_failed)
# AI客户端管理器信号
self.ai_client_manager.response_completed.connect(self.on_ai_response_completed)
self.ai_client_manager.request_failed.connect(self.on_ai_request_failed)
self.ai_client_manager.streaming_response.connect(self.on_ai_streaming_response)
self.ai_client_manager.reasoning_content.connect(self.on_ai_reasoning_content)
# 任务管理器信号
self.task_manager.task_started.connect(self.on_task_started)
self.task_manager.task_finished.connect(self.on_task_finished)
# 配置管理器信号
self.config_manager.config_changed.connect(self.load_config_to_ui)
def setup_hotkey(self):
"""设置快捷键"""
self.screenshot_manager.setup_hotkey()
def load_config_to_ui(self):
"""加载配置到界面"""
# 更新配置文件路径显示
if hasattr(self, 'current_config_path'):
self.current_config_path.setText(self.config_manager.config_file_path)
# 验证配置并更新状态
self.validate_config()
# 更新配置预览
self.load_config_preview()
# 加载提示词到下拉框
self.load_prompts_to_combo()
def load_prompts_to_combo(self):
"""加载提示词到下拉框"""
try:
# 清空现有选项
self.prompt_combo.clear()
# 获取提示词配置
prompts = self.config_manager.get_config("prompts")
if prompts and isinstance(prompts, list):
for prompt in prompts:
if isinstance(prompt, dict) and "name" in prompt:
self.prompt_combo.addItem(prompt["name"])
# 默认选择第一个
if self.prompt_combo.count() > 0:
self.prompt_combo.setCurrentIndex(0)
else:
# 如果没有配置或格式错误,添加默认选项
self.prompt_combo.addItem("默认提示词")
except Exception as e:
logging.error(f"加载提示词失败: {e}")
self.prompt_combo.clear()
self.prompt_combo.addItem("默认提示词")
def get_selected_prompt_content(self):
"""获取当前选中的提示词内容"""
try:
selected_name = self.prompt_combo.currentText()
prompts = self.config_manager.get_config("prompts")
if prompts and isinstance(prompts, list):
for prompt in prompts:
if isinstance(prompt, dict) and prompt.get("name") == selected_name:
return prompt.get("content", "")
# 如果没找到,返回默认内容
return "请分析这张图片或OCR识别的文字内容,并提供详细的解释和分析。"
except Exception as e:
logging.error(f"获取提示词内容失败: {e}")
return "请分析这张图片或OCR识别的文字内容,并提供详细的解释和分析。"
def select_config_file(self):
"""选择配置文件"""
file_path, _ = QFileDialog.getOpenFileName(
self, "选择配置文件", "", "TOML files (*.toml);;All files (*.*)"
)
if file_path:
if self.config_manager.load_config_from_file(file_path):
self.current_config_path.setText(file_path)
self.validate_config()
self.load_config_preview()
CustomMessageBox(self, "成功", "配置文件加载成功!", "success").exec()
else:
CustomMessageBox(self, "错误", "配置文件加载失败!请检查文件格式。", "error").exec()
def validate_config(self):
"""验证配置"""
try:
# 检查必要的配置项
ai_config = self.config_manager.get_config("ai_model")
prompts_config = self.config_manager.get_config("prompts")
if not ai_config:
self.config_status_label.setText("配置无效:缺少AI模型配置")
self.config_status_label.setStyleSheet("color: red; font-weight: bold;")
return False
if not prompts_config or not isinstance(prompts_config, list) or len(prompts_config) == 0:
self.config_status_label.setText("配置无效:缺少提示词配置")
self.config_status_label.setStyleSheet("color: red; font-weight: bold;")
return False
# 检查关键字段
required_ai_fields = ['model_id', 'api_endpoint', 'api_key']
for field in required_ai_fields:
if not ai_config.get(field):
self.config_status_label.setText(f"配置无效:AI模型缺少{field}")
self.config_status_label.setStyleSheet("color: red; font-weight: bold;")
return False
# 检查提示词配置格式
for i, prompt in enumerate(prompts_config):
if not isinstance(prompt, dict) or not prompt.get('name') or not prompt.get('content'):
self.config_status_label.setText(f"配置无效:第{i+1}个提示词格式错误")
self.config_status_label.setStyleSheet("color: red; font-weight: bold;")
return False
self.config_status_label.setText("配置有效")
self.config_status_label.setStyleSheet("color: green; font-weight: bold;")
return True
except Exception as e:
self.config_status_label.setText(f"配置验证失败:{str(e)}")
self.config_status_label.setStyleSheet("color: red; font-weight: bold;")
return False
def load_config_preview(self):
"""加载配置文件内容预览"""
try:
import os
if os.path.exists(self.config_manager.config_file_path):
with open(self.config_manager.config_file_path, 'r', encoding='utf-8') as f:
content = f.read()
self.config_preview.setPlainText(content)
else:
self.config_preview.setPlainText("配置文件不存在")
except Exception as e:
self.config_preview.setPlainText(f"读取配置文件失败:{str(e)}")
def export_config(self):
"""导出配置"""
file_path, _ = QFileDialog.getSaveFileName(
self, "导出配置文件", "config.toml", "TOML files (*.toml)"
)
if file_path:
if self.config_manager.export_config(file_path):
CustomMessageBox(self, "成功", "配置导出成功!", "success").exec()
else:
CustomMessageBox(self, "错误", "配置导出失败!", "error").exec()
def import_config(self):
"""导入配置文件(复制到当前配置目录)"""
file_path, _ = QFileDialog.getOpenFileName(
self, "导入配置文件", "", "TOML files (*.toml);;All files (*.*)"
)
if file_path:
try:
import shutil
import os
# 复制文件到当前配置目录
config_dir = os.path.dirname(self.config_manager.config_file_path)
if not os.path.exists(config_dir):
os.makedirs(config_dir)
target_path = self.config_manager.config_file_path
shutil.copy2(file_path, target_path)
# 重新加载配置
if self.config_manager.load_config():
self.load_config_to_ui()
CustomMessageBox(self, "成功", "配置文件导入成功!", "success").exec()
else:
CustomMessageBox(self, "错误", "配置文件格式错误!", "error").exec()
except Exception as e:
CustomMessageBox(self, "错误", f"配置导入失败:{str(e)}", "error").exec()
def reset_config(self):
"""重置配置"""
reply = CustomMessageBox(
self, "确认", "确定要重置为默认配置吗?这将恢复默认设置。", "question", ["确定", "取消"]
).exec()
if reply == "确定":
if self.config_manager.reset_config():
self.load_config_to_ui()
CustomMessageBox(self, "成功", "配置重置成功!", "success").exec()
else:
CustomMessageBox(self, "错误", "配置重置失败!", "error").exec()
def start_screenshot(self):
"""开始截图"""
if self.task_manager.start_task("截图"):
self.screenshot_manager.start_screenshot()
def import_from_clipboard(self):
"""从剪贴板导入图片"""
if self.task_manager.start_task("剪贴板导入"):
try:
image = self.screenshot_manager.screenshot_from_clipboard()
if image:
self.on_screenshot_taken(image)
else:
self.update_status("剪贴板中没有图片")
self.task_manager.finish_task()
except Exception as e:
self.on_screenshot_failed(str(e))
def stop_task(self):
"""停止任务"""
if self.worker_thread and self.worker_thread.isRunning():
self.worker_thread.terminate()
self.worker_thread.wait()
if hasattr(self.ai_client_manager, 'stop_request'):
self.ai_client_manager.stop_request()
self.task_manager.finish_task()
self.update_status("任务已停止")
def on_screenshot_taken(self, image):
"""截图完成处理"""
self.current_image = image
# 获取OCR配置
ocr_config = self.config_manager.get_config("ocr")
ocr_type = ocr_config.get("type", "ocr_then_text") if ocr_config else "ocr_then_text"
if ocr_type == "direct_image":
# 直接提交图片给AI
self.update_status("截图完成,正在请求AI分析...")
self._send_ai_request_with_image()
else:
# OCR后提交文字
self.update_status("截图完成,开始OCR识别...")
# 启动OCR工作线程
self.worker_thread = WorkerThread(self.ocr_manager.recognize_image, image)
self.worker_thread.task_completed.connect(self.on_ocr_completed)
self.worker_thread.task_failed.connect(self.on_ocr_failed)
self.worker_thread.start()
def on_screenshot_failed(self, error_msg):
"""截图失败处理"""
self.update_status(f"截图失败: {error_msg}")
self.task_manager.finish_task()
def on_screenshot_cancelled(self):
"""截图取消处理"""
self.update_status("截图已取消")
self.task_manager.finish_task()
def _send_ai_request_with_image(self):
"""直接发送图片给AI分析"""
# 获取配置
ai_config = self.config_manager.get_config("ai_model")
if not ai_config:
self.on_ai_request_failed("配置不完整,请检查AI模型配置")
return
# 获取选中的提示词内容
prompt_content = self.get_selected_prompt_content()
if ai_config.get("vision_support", False):
# 支持视觉的模型直接发送图片
self.ai_client_manager.send_request("default", prompt_content, self.current_image)
else:
self.on_ai_request_failed("当前AI模型不支持图像输入,请选择支持视觉的模型或使用OCR模式")
def on_ocr_completed(self, ocr_text):
"""OCR完成处理"""
self.update_status("OCR完成,正在请求AI分析...")
# 获取配置
ai_config = self.config_manager.get_config("ai_model")
if not ai_config:
self.on_ai_request_failed("配置不完整,请检查AI模型配置")
return
# 获取选中的提示词内容
prompt_content = self.get_selected_prompt_content()
# 发送AI请求(OCR后提交文字模式)
full_prompt = f"{prompt_content}\n\n以下是OCR识别的文字内容:\n{ocr_text}"
self.ai_client_manager.send_request("default", full_prompt)
def on_ocr_failed(self, error_msg):
"""OCR失败处理"""
self.update_status(f"OCR失败: {error_msg}")
self.task_manager.finish_task()
def on_ai_response_completed(self, response):
"""AI响应完成处理"""
self.output_text.set_markdown(response)
self.update_status("AI分析完成")
# 显示通知
self.show_notification("AI分析完成", response)
# 如果有大窗口正在显示,完成最终渲染
if hasattr(self, 'large_window') and self.large_window:
# 流式请求完成后进行一次完整的markdown渲染
if hasattr(self.large_window, 'current_response_content'):
self.large_window._batch_update_display(force_markdown=True)
self.task_manager.finish_task()
def on_ai_reasoning_content(self, reasoning_content):
"""AI推理内容处理"""
# 检查通知配置,只有在large_popup时才创建大窗口
notification_type = self.config_manager.get_config("notification.type") or "small_popup"
if notification_type == "large_popup":
# 如果没有大窗口,创建一个
if not hasattr(self, 'large_window') or not self.large_window:
self.large_window = self.show_large_window("AI正在分析...")
# 添加推理内容到大窗口
if self.large_window and hasattr(self.large_window, 'append_reasoning_content'):
self.large_window.append_reasoning_content(reasoning_content)
def on_ai_streaming_response(self, content_type, content):
"""AI流式响应处理"""
if content_type == "content":
# 更新主窗口输出
self.output_text.append_text(content)
# 检查通知配置,只有在large_popup时才创建大窗口
notification_type = self.config_manager.get_config("notification.type") or "small_popup"
if notification_type == "large_popup":
# 如果没有大窗口,创建一个
if not hasattr(self, 'large_window') or not self.large_window:
self.large_window = self.show_large_window("AI正在分析...")
# 添加响应内容到大窗口
if self.large_window and hasattr(self.large_window, 'append_response_content'):
self.large_window.append_response_content(content)
def on_ai_request_failed(self, error_msg):
"""AI请求失败处理"""
self.output_text.set_markdown(f"**错误**: {error_msg}")
self.update_status(f"AI请求失败: {error_msg}")
self.task_manager.finish_task()
def on_task_started(self):
"""任务开始处理"""
self.screenshot_btn.setEnabled(False)
self.clipboard_btn.setEnabled(False)
self.stop_btn.setEnabled(True)
# 清空输出区域,准备显示新的AI分析结果
self.output_text.set_markdown("")
# 关闭之前的大窗口(如果存在)
if hasattr(self, 'large_window') and self.large_window:
self.large_window.close()
self.large_window = None
def on_task_finished(self):
"""任务完成处理"""
self.screenshot_btn.setEnabled(True)
self.clipboard_btn.setEnabled(True)
self.stop_btn.setEnabled(False)
def update_status(self, message):
"""更新状态"""
self.status_label.setText(message)
logging.info(message)
def show_notification(self, title: str, content: str):
"""显示通知 - 小窗口只显示AI回复内容"""
notification_type = self.config_manager.get_config("notification.type") or "small_popup"
if notification_type == "none":
# 不显示通知
return
elif notification_type == "small_popup":
# 显示小型弹窗通知 - 只显示AI回复内容,不显示推理内容
self.notification_window.show_small_notification(content)
elif notification_type == "large_popup":
# 显示大型弹窗通知
self.notification_window.show_large_notification(content)
elif notification_type == "email":
# 发送邮件通知
self.send_email_notification(title, content)
else:
# 默认使用小型弹窗
self.notification_window.show_small_notification(content)
def show_large_window(self, initial_message: str):
"""显示大窗口(统一用于推理内容和流式响应)"""
try:
from custom_window import NotificationWindow
# 关闭之前的大窗口
if hasattr(self, 'large_window') and self.large_window:
self.large_window.close()
# 创建新的大窗口
self.large_window = NotificationWindow.show_large_notification_streaming(initial_message, self)
if self.large_window:
self.large_window.setWindowTitle("AI分析结果")
return self.large_window
except Exception as e:
logging.error(f"显示大窗口失败: {e}")
return None
def send_email_notification(self, title: str, content: str):
"""发送邮件通知"""
try:
# 连接邮件管理器信号
self.email_manager.email_sent.connect(self.on_email_sent)
self.email_manager.email_failed.connect(self.on_email_failed)
# 发送邮件
self.email_manager.send_email(title, content)
except Exception as e:
logging.error(f"邮件通知失败: {e}")
# 邮件失败时回退到小型通知
self.notification_window.show_small_notification(f"邮件发送失败: {e}")
def on_email_sent(self):
"""邮件发送成功"""
# 邮件发送成功时不显示额外弹窗,只记录日志
logging.info("邮件通知发送成功")
def on_email_failed(self, error_msg: str):
"""邮件发送失败"""
# 邮件发送失败时显示小弹窗提示
self.notification_window.show_small_notification(f"邮件发送失败: {error_msg}")
logging.error(f"邮件通知发送失败: {error_msg}") | 32,806 | main_window | py | en | python | code | {"qsc_code_num_words": 3300, "qsc_code_num_chars": 32806.0, "qsc_code_mean_word_length": 5.38181818, "qsc_code_frac_words_unique": 0.20939394, "qsc_code_frac_chars_top_2grams": 0.0259009, "qsc_code_frac_chars_top_3grams": 0.02280405, "qsc_code_frac_chars_top_4grams": 0.01773649, "qsc_code_frac_chars_dupe_5grams": 0.31565315, "qsc_code_frac_chars_dupe_6grams": 0.25185811, "qsc_code_frac_chars_dupe_7grams": 0.1848536, "qsc_code_frac_chars_dupe_8grams": 0.14009009, "qsc_code_frac_chars_dupe_9grams": 0.12905405, "qsc_code_frac_chars_dupe_10grams": 0.11278153, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01288672, "qsc_code_frac_chars_whitespace": 0.33295739, "qsc_code_size_file_byte": 32806.0, "qsc_code_num_lines": 939.0, "qsc_code_num_chars_line_max": 146.0, "qsc_code_num_chars_line_mean": 34.9371672, "qsc_code_frac_chars_alphabet": 0.79870219, "qsc_code_frac_chars_comments": 0.03538987, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.30735294, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.01323529, "qsc_code_frac_chars_string_length": 0.3084279, "qsc_code_frac_chars_long_word_length": 0.04771771, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.05735294, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.025, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.11029412, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | icon_data.py | """内置图标模块
包含应用程序图标的base64编码数据
"""
import base64
import io
from PIL import Image
# 图标的base64编码数据
ICON_BASE64 = """AAABAAEAAAAAAAEAIAAoIAQAFgAAACgAAAAAAQAAAAIAAAEAIAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E/v7+CP///w7+/v4S////Fv///x7///8y/v7+UP///2r///+D////l/7+/q3+/v69////zf7+/tv+/v7l////7f////X////7/v7+/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v3////7////9f///+3+/v7l/v7+2////83+/v69/v7+rf///5f///+D////av7+/lD///8y////Hv///xb+/v4S////Dv7+/gj///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wL///8K////GP///yT///8u/v7+TP///3L+/v6b////u/7+/t3////1//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////X+/v7d////u/7+/pv///9y/v7+TP///y7///8k////GP///wr///8CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8G/v7+Hv///zT+/v5M////dP///5/////H////7f////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////t////x////5////90/v7+TP///zT+/v4e////BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+Cv///yj+/v5K////cv///6H////N////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H////N////of///3L///9K////KP7+/goAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wb+/v4i////Uv///4X+/v6z////2/////v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7////2////7P///+F////Uv7+/iL///8GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////BP///0D///+B/v7+t////9v////3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9////9v+/v63////gf///0D///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8M////UP///6X////V////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H////V////pf///1D///8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///w7///9W////vf///+X////5//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n////l////vf///1b///8OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////Cv///0z///+/////8/////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////z////v////0z///8K////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD+/v4M////Nv7+/rP////9///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/v7+s////zb+/v4M////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wT+/v4m////if///+f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n////if7+/ib///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///xb///9Q////v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/////UP///xYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yj+/v6H////5f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+X+/v6H////KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////CP///0D+/v6n////8f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8f7+/qf///9A////CAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+EP///2D+/v7J////9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3/v7+yf///2D+/v4QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Ev///3T////h/////f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////h////dP///xIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Dv///4H////t/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3///+B////DgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+CP///4v+/v73/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+9////4v+/v4IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Dv///4v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////i////w4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Ev///4H+/v73//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/vf///+B////EgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+EP///3T////t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7f///3T+/v4QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////CP///2D////h///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////h////YP///wgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///0D+/v7J/////f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f7+/sn///9AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yj+/v6n////9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3/v7+p////ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///xb+/v6H////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H+/v6H////FgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wT///9Q////5f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5f///1D///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD+/v4m////v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+//v7+Jv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4M////if///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4n+/v4MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8A////Nv///+f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+7u7uva2trrz8/P/dra2uvu7u7Z///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n////Nv///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Cv7+/rP//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+vr6+d/f4C7Pj5Ayz4+QPc/P0DNWFhZl+np6c////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/rP///8KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///0z////9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////T09NuHh4ixPj5A5T8/QP8/P0D/Pz9A/z8/P/FoaGiR+fn5tf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9////TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///w7///+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Nzc3LPz8/wT8/QP8/P0D/Pz9A/z8/QP8/Pz/9Pz8/ybOztIn//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7////8OAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///9W////8//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////u7u7fdHR1tT8/QPM/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P/VcXF2x7Ozssf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z////VgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8M////vf////3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3ZjIyMZj4+P9U/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj//Pj4/1a+vr7n//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f///73///8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////UP///+X/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vr4T8/P5k/Pz/7Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P/tOTk+33d3dt//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////l////UAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////BP///6X////5////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+vr660tLTFw+Pj/zPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/5aysrN38/Pz7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+f///6X///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///0D////V/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/+Xl5dk/P0C9Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj+9ysrLt/7+/vX////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////V////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wb///+B////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v8+PkB2Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/SUlK/0BAQf8/P0D/Pz9A/z8/QP8/P0D/Pj4/8z09P3bx8fHJ////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8f///4H///8GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4i/v7+t//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////e3t7LPz8/1z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/4ODhP9FRUb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/Pz/Tu7u7tfz8/PP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v63/v7+IgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Uv///9v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////39/elTk5Pmz8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1dXWP/Nzc3/a2ts/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P5Xv7+/n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2////1IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+Cv///4X////3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kpKTdD4+P98/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQf+bm5v/8/Pz/8LCwv9AQEH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj/lpaWlqfz8/Pn///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f///+F/v7+CgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yj+/v6z////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5OTknU9PT70+Pj/7Pz9A/z8/QP8/P0D/Pz9A/z8/QP9oaGn/1tbW//39/f/19fb/enp7/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QLX29vb5////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////s////ygAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v5K////2////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5WVla0/Pz/lPz8//z8/QP8/P0D/Pz9A/z8/QP9JSUr/sLCw//n5+f///////v7+/9jY2P9PT1D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkD1h4eHof///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9v///9KAAAAAAAAAAAAAAAAAAAAAAAAAAD///8G////cv////v//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////87OzqFHR0jHPj4//T8/QP8/P0D/Pz9A/z8/QP8/P0D/d3d4/9/f3//////////////////19fX/lZWW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQdnS0tJQ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7////cv///wYAAAAAAAAAAAAAAAAAAAAA/v7+Hv///6H///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/mSkpPVPj4/7T8/QP8/P0D/Pz9A/z8/QP8/P0D/VlZX/729vf/+/v7//////////////////v7+/+Dg4P9nZ2j/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkD7Y2Nkqfv7+/H//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6H+/v4eAAAAAAAAAAAAAAAAAAAAAP///zT////N//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////39/e20tLWrPj4/yz8/QP8/P0D/Pz9A/z8/QP8/P0D/Q0NE/4eHh//t7e3////////////////////////////39/f/ra2u/0dHSP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QOeenp98///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////N////NAAAAAAAAAAAAAAAAP///wL+/v5M////8f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n5+exPz8/jz8/P/U/P0D/Pz9A/z8/QP8/P0D/Pz9A/2BgYf/Kysr//////////////////////////////////////+Li4v98fHz/QEBB/z8/QP8/P0D/Pz9A/z8/QP8/P0D3aGhoze/v7+H/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8f7+/kz///8CAAAAAAAAAAD///8K////dP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vrnpKSksz4+P9s/P0D/Pz9A/z8/QP8/P0D/Pz9A/0hISf+VlZb/9/f3///////////////////////////////////////6+vr/uLi5/1RUVf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/P+OcnJyz//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////90////CgAAAAAAAAAA////GP///5//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4uLi1T4+P6U+PkD9Pz9A/z8/QP8/P0D/Pz9A/0BAQf9qamr/3t7f/////////////////////////////////////////////////+vr6/+MjI3/RERF/z8/QP8/P0D/Pz9A/z8/QP8/Pz/5ZWVm2+Dg4N3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n////xgAAAAAAAAAAP///yT////H////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f365CQkas/P0DpPz9A/z8/QP8/P0D/Pz9A/z8/QP9ISEn/q6us////////////////////////////////////////////////////////////yMjI/19fYP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P+t0dHWj+Pj4wf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8f///8kAAAAAAAAAAD///8u////7f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+bm5u0/Pz+9Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/dHR0/+7u7v////////////////////////////////////////////////////////////T09P+YmJj/SUlK/z8/QP8/P0D/Pz9A/z8/QP8+Pj/9Pj4/wcnJycP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t////LgAAAAD///8E/v7+TP////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////j4+PVwcHChPz8/9z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/8jIyP//////////////////////////////////////////////////////////////////////2NjY/2FhYv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/P/dfX2Gj7u7uyf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f7+/kz///8E/v7+CP///3L///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Hh4hEPj4/3z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/4CAgf/7+/v///////////////////////////////////////////////////////////////////////z8/P+oqKj/S0tM/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/18nJyeX+/v7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9y/v7+CP///w7+/v6b///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vrtQkJDpT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1NTVP/g4OD/////////////////////////////////////////////////////////////////////////////////8fHx/21tbv9AQEH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj+h5ubm2////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+m////w7+/v4S////u///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////dnZ2aD8/QP0/P0D/Pz9A/z8/QP8/P0D/Pz9A/0RERf+hoaH/9/f4///////////////////////////////////////////////////////////////////////////////////////Gxsb/TU1O/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/7729vuX7+/v7/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7v+/v4S////Fv7+/t3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vr11JSU8k/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9tbW7/5eXm/////////////////////////////////////////////////////////////////////////////////////////////////4WFhv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkC/3Nzct/7+/vv////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7d////Fv///x7////1/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39uWtra40+Pj/xPz9A/z8/QP8/P0D/Pz9A/z8/QP9OTk//srKy//f39//////////////////////////////////////////////////////////////////////////////////////////////////W1tb/VVVV/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z09QW77+/v3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9f///x7///8y/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7u7u3w/Pz/DPz8//T8/QP8/P0D/Pz9A/z8/QP8/P0D/f3+A/+Xl5f//////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/5ubm/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkDb0dHRpf////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8y/v7+UP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Hx8bFjY2OpPz9A8T8/QP8/P0D/Pz9A/z8/QP8/P0D/WVlZ/729vf/6+vr///////////////////////////////////////////////////////////////////////////////////////////////////////7+/v/d3d3/ZmZn/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1BQUJ///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+UP///2r///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+zs7WxPj5Azz8/QP0/P0D/Pz9A/z8/QP8/P0D/RUVG/5GRkv/u7u7/////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Pj4/7Cwsf9GRkf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9CQkPrt7e3o////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2r///+D///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////j4+S1U1NVsz4+QPk/P0D/Pz9A/z8/QP8/P0D/Pz9A/2NjZP/Ly8z//f39//////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v/j4+P/enp6/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/WJiY9n///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+D////l//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v79s7Oz1z4+P90/P0D/Pz9A/z8/QP8/P0D/Pz9A/0xMTf+jo6P/+/v7/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39/8bGxv9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQULtlpaYrf7+/v3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////l/7+/q3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v730tLStz8/QLM/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQf9tbW7/39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////r6+v/jY2O/0JCQ/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P8nOzs56//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/q3+/v69////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9PT0wz8/QGo/P0DtPz9A/z8/QP8/P0D/Pz9A/z8/QP9RUVL/tbW2/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////87Ozv9kZGX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/Pz/tgoKDy+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPm5ubj5ubm4+bm5uPo6Ojh7u7u2ff398/9/f3x///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v69////zf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f3988TExLM+PkDHPz9A/z8/QP8/P0D/Pz9A/z8/QP9CQkP/e3t7/+3t7f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////y8vL/l5eY/0hISf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QOE+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj5Aqz4+QKs+PkCrPj4/oz4+QIs+Pj9stLS0z83Nzenu7u7B////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////zf7+/tv///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Ly8uE+PkCBPj4/+T8/QP8/P0D/Pz9A/z8/QP8/P0D/VVVW/8zMzP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9jY2P9vb3D/QUFC/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P/M+Pj/XR0dIi9nZ2sn///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/tv+/v7l///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////m5ubzPz8/yT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTk//6+vr////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5+fn/qqqq/09PUP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P/dQUFG9xMTE3f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7l////7f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////39/f/T8/P/M/P0D/Pz9A/z8/QP8/P0D/Pz9A/1xcXf/j4+P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+rq6v97e3z/Q0NE/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A+1RUVc/U1NTB////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7f////X//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+JiYn//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////vb2+/05OT/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D1WVlare7u7qf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////X////7///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39/+dnZ7/QkJD/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P9mvr7DD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7/v7+/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+fn5/7i4uP+JiYn/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/cXFy/3Fxcv9xcXL/bGxt/1dXWP9EREX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkD9RkZHtdnZ2bn//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////w8PD/nZ2e/1JSU/9AQEH/Pz9A/z8/QP8/P0D/Pz9A/z4+QM/BwcHR///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+fn6D/SEhJ/z8/QP8/P0D/Pz9A/z8/QP8/P0DrpKSly/7+/uv/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////ysrK/1JSU/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QIH19fWx/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3/+Tk5P/V1dX/1tbX/+Pj4//8/Pz////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3/6+vr/7W1tv93d3j/UlJT/1dXWP92dnf/wsLC/+3t7f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v/0dHR/5CQkf9VVVb/Pz9A/z8/QP8/P0D/Pz9A/1ZWVv+RkZH/1tbX//r6+v///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////y8vL/s7Oz/2pqa/9GRkf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Q0NE/3Bwcf+xsbL/6enp///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////a2tr/jY2O/1RUVf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQUL/U1NU/4eHh//U1NT/+/v7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9////////////////////////////////////////////////1tbWne3t7V7+/v77/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Jycr/bGxt/0ZGR/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9GRkf/bGxt/7y8vf/19fX//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////////////////////GxsfLc3Nz10pKS9k/P0DBh4eIw//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////X19f+0tLT/X19g/0FBQv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0FBQv9RUVL/o6Oj//T09P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3////////////////////////////////Dw8PbS0tM1T4+P/k+Pj//Pz9A/0FBQu+Hh4jD////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39/+Pj4/+SkpP/TU1O/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Q0VE/0NFRP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0FBQv+FhYb/7+/v//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9//////////////////////7+/vva2tq7QkJErT8/QP0/P0D/Pz9A/z8/QP8/P0D/QEBB4aCgoI/+/v7z/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/9TU1f93d3f/QEBB/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQkL/UFhR/4CegP+CoYL/VF5V/0BBQf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/29vcP/S0tL/+Pj4/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf/////////////////////4+PjBPj4/Xj4+P+k/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QPc+Pj+j4uLidP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Pz8/83Nzv9tbW7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9FSEb/YG9h/5C1kP+o2Kj/qNio/5jBmP9hcWL/R0tI/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/X19g/7i4uP/y8vL////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3////////////////9/f31zs7OtT8/QL0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/44+Pj6v6+vrh////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8fHx/9nZ2j/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQf9QWFH/copy/5nCmf+o2Kj/qNio/6jYqP+o2Kj/o9Cj/3iReP9QWFD/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9UVFX/pqam/+vr6///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9////////////////9PT04T8/QHY/P0D1Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/P/s/Pz+1zs7Op////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/7u7vP9fX2D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z9AQP9da17/iKmI/6PRo/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+k06T/hqaG/1toW/9ERkX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1BQUf+ZmZr/5+fn/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf///////////f39+b6+v6c/P0DVPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz8/64KCgrnz8/Pb///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3/6Ojo/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0lOSv9qfmv/lbyV/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6XUpf+TuZP/bYFt/0lNSv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Tk5P/4+PkP/l5eX////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3///////////j4+Pc+PkCRPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj/FysrLzf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7e3t/5eXl/9LS0z/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1FaUv9/nYD/ncie/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/p9an/53Inf93kHf/SlBL/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9KSkv/hISE/+fn5///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9//////////+pqamVPz9A6T8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj5A83Bwcbft7e3f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v/5SUlP9JSUr/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1hkWP+Lrov/pNKk/6fXp/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/oc6h/36cfv9LUUz/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0VFRv+IiIn/8PDw/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV6Ojovf//////////SUlKtz8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1ZhV/9CREP/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/Pz/XhYWFaP39/df////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/5qam/9GRkf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1xpXP+St5L/ptWm/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+k06T/lLuU/1FaUv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/RERF/5aWlv/7+/v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Alejo6L3/////jo6PkT8/QPU/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+BoIL/SU9K/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz8//T8/P53q6urj////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/8vLy/5+fn/9BQUL/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QUJC/2JzY/+bxJv/p9en/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6fXp/+n1qf/YnNj/0FBQv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/pKSk//n5+f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QJXo6Oi9x8fHWj4+P88+Pj//Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ldmb/nMed/36bfv9BQkL/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj/3QkJDXvr6+uv//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/9PT0/6ysrf9ISEn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QUNC/2JyY/+bxZv/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6XUpf9jc2P/QkRD/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0RERf+oqKn/9PT0/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0CV3d3do3Z2dq0/Pz/xPz9A/z8/QP8/P0D/Pz9A/z8/QP9MUk3/jbGN/6jYqP+o2Kj/V2NY/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QMHj4+PX/v7+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+fn5/7a2t/9PT1D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QUJC/2JyY/+bxZv/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/n8yg/2Z3Zv9ERkX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/TExN/6qqqv/y8vL////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9AlT8/P0w/Pz/VPz9A/z8/QP8/P0D/Pz9A/z8/QP9CREP/boRv/5/Kn/+o2Kj/qNio/4ipiP9FSUb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9AfP7+/v//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8HBwv9WVlf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2NzY/+bxZv/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+cxpz/Z3po/0RHRf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9SUlP/q6us//Ly8v//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QKM/Pz+hPz8/8T8/QP8/P0D/Pz9A/z8/QP8/P0D/VV9V/4+zj/+o2Kj/qNio/6jYqP+j0aP/Z3po/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QN3a2trL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9TU1f9eXl//Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2FxYv+bxZv/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5rDmv9oe2n/REZF/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/11dXf/AwMH/+/v7/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/Pz/PPz8/4T8/QP8/P0D/Pz9A/z8/QP8/P0D/RklH/3SNdf+iz6L/qNio/6jYqP+o2Kj/p9an/4+0j/9OVU//Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/TExNofT09KP////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Li4v90dHX/QEBB/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1toXP+Xv5f/p9en/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/mcKZ/2JzY/9BQUL/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9DQ0T/fHx9/97e3v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/9T8/P/k/P0D/Pz9A/z8/QP8/P0D/Pz9A/1pmW/+VvZb/qNio/6jYqP+o2Kj/qNio/6jYqP+iz6L/dI11/0BBQf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P+OOjo58////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Ly8v+Tk5P/RkZH/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1FaUv+NsI3/ptWm/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Uu5T/V2JX/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0lJSv+ampv/7+/v////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0hNSf97l3z/pdSl/6jYqP+o2Kj/qNio/6jYqP+o2Kj/p9en/5O6lP9YZFn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D7Tk5Oxd/f353//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+1tbX/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/05VT/+Gpob/pdOl/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/ptam/4yvjP9OVU//Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/WFhZ/8DAwf/6+vr//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BBQf9hcGH/oc6h/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+l1KX/f52A/0ZKR/8/P0D/Pz9A/z8/QP8/P0D/Pj5A/z4+QOmRkZOx///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v/W1tf/a2ts/0BAQf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0pPS/+CoIL/pdSl/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+m1ab/gqKC/0dLSP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQf9zc3T/5OTk//7+/v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9JTUr/iKmI/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5nCmf9hcGL/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkD9RUVHy8nJyqP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7/D/j4+Q/0VFRv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0hNSf95lHr/o9Cj/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP96lnv/Q0VE/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/46Oj//w8PD//v7+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQkL/a4Bs/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/h6mI/05WT/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P++Pj4/Z+vr69////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vr/u7u8/1lZWv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0FDQv9ldmX/nMec/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/2R2Zf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ISEn/ubm5//39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/S1FM/5a+lv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5/Mn/9pfGn/QkND/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9Az7CwsK39/f3t///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4ODh/3l5ef8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0BAQf9VYFb/j7SP/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+SuJL/TFJN/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2NjZP/p6en////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QEFB/3iSeP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/j7OP/1ReVP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QPc/P0CV5OTktf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3/7Ozs/9PT1D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9GSUf/eZR5/6bVpv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/ptWm/36cf/9GSkf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/pKSk////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1ReVf+eyZ7/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6XTpf9zinP/RUhG/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A3Z+foLP5+fnn/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Li4v90dHT/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQUH/YHBh/5zGnP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+fy5//Znhm/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2BgYf/g4OD//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0VIRv+EpIT/p9an/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/mcKZ/1llWv9AQEH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj+r4ODg1//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39/+urq//SUlK/z8/QP8/P0D/Pz9A/z8/QP8/P0D/TFJN/46zj/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/ptWm/42xjf9TXFT/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9EREX/m5uc///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ic2P/n8yf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP9/nH//REdF/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj4/64uLjK329vbr////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////r6+v/cXFx/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/3KKcv+l1KX/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+k0qT/fZp+/0ZKR/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2NjZP/i4uL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9NU07/i66L/6bVpv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/oM2g/2FxYf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0DDt7e3XP7+/u///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/w8PD/0VFRv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0pQS/+cxpz/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5S7lP9aZ1v/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9PT1D/tra3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/bYJt/5/Ln/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Os47/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pj5A+T8/QH74+Pjx///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+Pj5/4mJiv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9tgm7/ptWm/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+k0qT/d5F4/0RHRf8/P0D/Pz9A/z8/QP8/P0D/RERF/4qKi//+/v7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/T1dQ/42wjf+n16f/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/ptWm/2l9av8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj/ndnZ5SP//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+fn5/9PT1D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ITEn/lLuU/6fXp/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5G2kf9XYlj/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9jY2T/2NjY////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2V3Zv+cxpz/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Zw5n/TlVP/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0NDQ6v5+fnp/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+2trb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Y3Nk/6DNoP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+gzaD/aHxp/0FCQv8/P0D/Pz9A/z8/QP8/P0D/U1NU/7W1tv///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/pNOk/3mUef9DRUT/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D9c3NzbP/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////kpKT/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QkND/3+cf/+l06X/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Gggv9LUUz/Pz9A/z8/QP8/P0D/Pz9A/0ZGR/+VlZX/+vr6///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+bxZv/XGpd/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1FRUsvo6OnV////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2xsbP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/09XUP+UvJT/p9en/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Uu5T/VmFW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/d3d3/+fn5///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/pNKk/4Gegf9JTUr/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+Pj/zaGhpkfz8/Lf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Pz8/9NTU7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9icmP/m8ac/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/otCi/2JzY/9AQUH/Pz9A/z8/QP8/P0D/Pz9A/2NjY//MzMz//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+bxpv/ZXdm/z9AQP8/P0D/Pz9A/z8/QP8/P0D/Pz8//T8/P8e4uLiD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////X19f/RUVG/z8/QP8/P0D/Pz9A/z8/QP8/P0D/c4t0/6HPov+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP9yinP/REdF/z8/QP8/P0D/Pz9A/z8/QP9TU1T/t7e4///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/pdWl/4eoh/9PV1D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0DzYGBgre7u7rH/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////wMDA/0RERf8/P0D/Pz9A/z8/QP8/P0D/P0BA/4Khgv+m1qb/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqCC/0pPS/8/P0D/Pz9A/z8/QP8/P0D/TExN/66urv//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+gzKD/b4Zw/0NGRP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QNOxsbKz/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////62trv9DQ0T/Pz9A/z8/QP8/P0D/Pz9A/0NFRP+HqIf/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4qsiv9MU03/Pz9A/z8/QP8/P0D/Pz9A/0hISf+oqKj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/p9en/46yjv9UXlX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8+PkD5UVFSteHh4bX////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+ZmZr/QkJD/z8/QP8/P0D/Pz9A/z8/QP9ITEn/iq2K/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n16f/m8Wb/3KKcv9QWFD/UFhR/2l9av+hzqH/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+PtJD/TlVP/z8/QP8/P0D/Pz9A/z8/QP9EREX/oqKj///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+m1qb/eZN5/0dLSP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P9m4uLjT////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////h4eH/0FBQv8/P0D/Pz9A/z8/QP8/P0D/TFNN/42wjf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/mcKZ/2FwYv8/P0D/Pz9A/z8/QP8/P0D/Z3ln/6XUpf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/lbyV/1BYUf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5ycnf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5jCmP9aZ1v/QEBB/z8/QP8/P0D/Pz9A/z8/QP8+Pj/5paWm9////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4WFhv9BQUL/Pz9A/z8/QP8/P0D/Pz9A/01UTv+NsY7/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4ywjf9JTkr/Pz9A/z8/QP8/P0D/Pz9A/0BBQf+QtpH/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5W8lf9QWFH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+bm5z//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/fJh8/0dLSP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+QkJH/QUFC/z8/QP8/P0D/Pz9A/z8/QP9NVE7/jbGO/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6fXp/+FpYX/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQEH/dpB3/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Oso7/TlVP/z8/QP8/P0D/Pz9A/z8/QP8/P0D/m5uc///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////oaGh/0JCQ/8/P0D/Pz9A/z8/QP8/P0D/S1FM/4yvjP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+l06X/fZp+/z8/QP8/P0D/Pz9A/z8/QP8/P0D/P0BA/22Dbv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/h6mI/0tRTP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5ubnP//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7m5uf9ERET/Pz9A/z8/QP8/P0D/Pz9A/0NFRP+Bn4H/pdSl/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/os+i/3SMdP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ic2L/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/3eReP9GSUf/Pz9A/z8/QP8/P0D/Pz9A/0FBQv+fn5///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Y2Nj/RUVG/z8/QP8/P0D/Pz9A/z8/QP8/P0D/a4Bs/5/Ln/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/5zGnP9gcGH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/UFlR/6DNoP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6DMoP9hcGH/QEBB/z8/QP8/P0D/Pz9A/z8/QP9PT1D/srKy///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/05OT/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1RdVf+Xv5f/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+VvZX/S1FM/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0dLSP+Kror/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+NsY3/UltS/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Y2Nk/83Nzf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v9ra2v/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQkL/gZ+C/6XUpf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+j0aP/c4t0/0BAQf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9CQ0P/aHtp/6XUpf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/epZ7/0dLSP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/3h4eP/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////qqqq/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1NdU/+YwZj/p9en/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n16f/k7mU/0pQS/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0tRTP+FpYX/p9an/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n16f/kbeS/1llWv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/01NTv+oqKn//v7+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+np6f9WVlf/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/W2hc/57Knv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/o9Cj/2JxY/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/VmFX/5K3kv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n16f/mcOZ/2N0ZP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9mZmf/2NjY////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6+vr/lpaX/0FBQv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9rfmv/n8uf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/nMac/3iSeP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0FDQv9nemj/nMac/6fWp/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n16f/nsqe/3WOdf9FSEb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9HR0j/lZWV//z8/P///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39/9TU1P9hYWL/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QUNC/26Eb/+SuJL/otCi/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+k0qT/lLuU/2d6aP9BQ0L/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/REdF/2Z4Z/+Ps4//pNKk/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+n1qf/k7mT/3GIcf9LUUz/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQEH/ZGRl/9LS0//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////39/f/s7Oz/1BQUf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQ0L/V2JX/3eReP+WvZb/pNKk/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6XUpf+XwJf/e5d7/1tnXP9CREP/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/WFhZ/1BQUf9AQEH/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQUH/VmBW/3qWev+VvZX/p9an/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+eyZ7/g6OE/1pnW/9CREP/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/RkZH/62trf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+vr6/+Ojo//RkZH/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9HSkf/W2hc/2uAbP95k3n/haaG/5S7lP+Uu5T/jrOO/4Wlhf9xiXL/XWtd/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/U1NU/6mpqv+pqar/T09Q/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9HTEj/W2hb/3CHcP+CoIL/jrOO/5W8lf+VvJX/i66L/4Gfgv93kXf/ZHVk/0xSTf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/3x8ff/t7e3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/2dnZ/3x8ff9DQ0T/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQUH/RklH/01UTv9WYFf/VmBX/1JcU/9NVE7/Q0VE/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/TU1O/56en//v7+//9PT0/6SkpP9FRUb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9BQ0L/S1FM/1JcU/9WYVf/VmFX/1FZUf9LUEz/RUhG/z9AQP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/35+f//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+//S0tL/bm5u/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/R0dI/4yMjP/p6en////////////y8vL/lpaX/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/35+f//g4OD//v7+////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/9bW1v+EhIX/SEhJ/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/S0tM/5eXmP/l5eX//v7+//////////////////Pz8/+bm5z/TExN/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/3x8ff/f3+D//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7//Pz8/7e3uP9WVlf/RERF/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9DQ0T/Y2Nk/8PDw//8/Pz//v7+///////////////////////+/v7/+fn5/8zMzP9ycnP/RERF/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9CQkP/Tk5P/5GRkv/n5+f//v7+///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4eHi/5eXmP9VVVb/RkZH/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QUFC/0xMTf9ZWVn/jY2O/+bm5v//////////////////////////////////////////////////////6Ojo/5ubnP9iYmP/TExN/0FBQv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0hISf9ZWVr/gYGC/8LCw//y8vL/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/zs7O/5KSk/9sbG3/W1tb/05OT/9ISEn/RERF/0FBQv9CQkP/SEhI/05OT/9UVFT/Xl5e/3h4eP+rq6v/3t7e//z8/P/////////////////////////////////////////////////////////////////9/f3/4ODg/6qqq/95eXn/XFxd/1RUVf9OTk//SEhJ/0JCQ/9AQEH/RERF/0hISf9OTk//Xl5f/29vcP+ampv/z8/P//f39////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/6enp/8bGxv+qqqr/nZ2d/5WVlf+MjI3/j4+Q/5ycnP+pqar/tra3/83Nzf/x8fH/////////////////////////////////////////////////////////////////////////////////////////////////8/Pz/8rKyv+4uLj/qqqr/52dnf+QkJH/jIyM/5SUlf+dnZ3/q6ur/83Nzv/u7u7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////93d3v8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Tk5T//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9vb2/9VVVb/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9qfmv/n8qf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d3d7/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/k5OU//39/f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////b29v/VVVW/z8/QP8/P0D/Pz9A/z8/QP8/P0D/an5r/5/Kn/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3d3e/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5OTlP/9/f3/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////29vb/1VVVv8/P0D/Pz9A/z8/QP8/P0D/Pz9A/2p+a/+fyp//qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f3/0/P0D1Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Li4z//f39/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9PT0/9UVFT/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9uhG7/oc6h/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////l5eX1Pz8/0T8/QP8/P0D/Pz9A/z8/QP8/P0D/ZWVm//f3+P////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+0tLT/TU1O/z8/QP8/P0D/Pz9A/z8/QP9CREP/e5d7/6bWp/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////6urq7T8/P68/P0D/Pz9A/z8/QP8/P0D/Pz9A/0JCQ/+xsbL/8fHy//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f39//Ozs7/dnZ3/0RERf8/P0D/Pz9A/z8/QP8/P0D/TVNO/4eoh/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////Dw8OU/P0CPPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/U1NU/4SEhf+fn6D/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6ioqP+oqKj/qKio/6Skpf+RkZL/ZmZm/0RERf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/1hkWf+SuJL/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5+fnZPz9AVj4+QOs/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9AQEH/SUlK/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9NTU7/TU1O/01NTv9LS0z/RERF/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0RHRf9whnD/oM2g/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+99/f37M/P0CfPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9WYVf/kriS/6fXp/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f37x8fHzUBAQck/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ITUn/fJh9/6bWpv+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////++vr/dSUlK1T4+P/U+Pj//Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9GSUf/aHpo/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/f36dTU1WXPj4/2z4+P/c+PkD/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/QEBB/0VHRf9RWVH/f5x//6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7i6GhoZ2BgYPlPz9AwT4+QNM+PkDlPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkDrPj5A6z4+QOs+PkD1Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/RUhG/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0dLSP9HS0j/R0tI/0hNSf9PVlD/V2JX/2JxYv9zi3P/lbyV/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9PT0420tLSvoaGiz5ubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53Zm5ud2Zubndmbm53ZQUFDvT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/22Cbv95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev95lXr/eZV6/3mVev99mX3/iauJ/5e/l/+k0qT/p9en/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+t2q3/xuXG/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/N6M3/zejN/83ozf/J58n/v+K//6vZq/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+x3LH/6vXq//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//z9/P/8/fz//P38//v9+//O6c7/qtmq/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+q2Kr/8vjy/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8nnyf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/tN20///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////d793/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/7Xdtf//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3/Hf/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+r2av/5/Tn////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8/rz/8Pkw/+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/7rguv/o9Oj/+Pz4///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7/fv/8fnx/8jmyP+p2Kn/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+p2Kn/t9+3/8Ljwv/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/xeXF/8Xlxf/F5cX/w+TD/73hvf+r2av/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v3////7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7////9f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9f///+3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3+/v7l////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7l/v7+2////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+2////83///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////83+/v69////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v69/v7+rf///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+rf///5f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5f///+D////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////R0dJjT8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/5G3kf+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/4Khg/9ITUn/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+jo6P///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+D////av///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////0dHSY0/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP+Rt5H/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+CoYP/SE1J/z8/QP8/P0D/Pz9A/z8/QP8/P0D/o6Oj////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////av7+/lD///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9HR0mNPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/kbeR/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/gqGD/0hNSf8/P0D/Pz9A/z8/QP8/P0D/Pz9A/6Ojo/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/lD///8y////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////SUlKfj8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/42wjf+n16f/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/36bfv9HS0j/Pz9A/z8/QP8/P0D/Pz9A/z4+QPmlpab5//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////8y////Hv////X//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////09PUVI/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP93kHf/pNKk/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP9yinP/REdF/z8/QP8/P0D/Pz9A/z8/QP8+PkDlsLCw4f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////1////Hv///xb+/v7d///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////j4+PBPj5A7T8/QP8/P0D/Pz9A/z8/QP8/P0D/TFJN/5a+lv+n16f/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+o2Kj/qNio/6jYqP+Rt5L/V2NY/0BAQf8/P0D/Pz9A/z8/QP8/P0D/Pz8/y8HBwsP//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+3f///xb+/v4S////u///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9PT0+T09QL8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9PV1D/boRv/3uWe/99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/32afv99mn7/fZp+/3uXe/9tg27/U11U/0JDQ/8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/P7HZ2dmn/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7v+/v4S////Dv7+/pv///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////j4+PU+PkCFPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/0JEQ/9ERkX/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ER0X/REdF/0RHRf9ERkX/QkND/z9AQP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+P+2VlZXV/Pz89f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v6b////Dv7+/gj///9y///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v7/5ubm7z4+PsE/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP1HR0e92tral///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////cv7+/gj///8E/v7+TP////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8/N9+fn9uPz9A7T8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9ISEnnu7u7s////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f7+/kz///8EAAAAAP///y7////t////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7e3t43V1dqc+Pj/dPj4//T8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP9GRkftlpaW/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+3///8uAAAAAAAAAAD///8k////x//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////09PTRhoaHjz4+P70+Pj/zPz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/P/tAQEHLqKip2//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H////JAAAAAAAAAAA////GP///5////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////z8/MXLy8uxa2trsz8/P7c+PkDPPj4/5z4+P/s/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z8/QP8/P0D/Pz9A/z4+QPs+PkDnPj4/zT4+QLU/Pz+Xu7u7t///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////n////xgAAAAAAAAAAP///wr///90/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+vr68/U1NTHx8fI2by8veu0tLX7s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+zs7P/s7Oz/7Ozs/+1tbX7vLy97cjIyNfV1dXH5ubmsf39/ff//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3T///8KAAAAAAAAAAD///8C/v7+TP////H///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H+/v5M////AgAAAAAAAAAAAAAAAP///zT////N///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////N////NAAAAAAAAAAAAAAAAAAAAAD+/v4e////of//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////of7+/h4AAAAAAAAAAAAAAAAAAAAA////Bv///3L////7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+////3L///8GAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v5K////2////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9v///9KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////KP7+/rP///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+z////KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/gr///+F////9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////hf7+/goAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Uv///9v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////2////1IAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP7+/iL+/v63//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/rf+/v4iAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8G////gf////H///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H///+B////BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///0D////V///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////V////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E////pf////n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5////pf///wQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///1D////l////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5f///1AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8M////vf////3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f///73///8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///1b////z//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////P///9WAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8O////v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/////DgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///0z////9///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9////TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8K/v7+s////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////v7+s////woAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP///zb////n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5////zb///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4M////if///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////4n+/v4MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AP7+/ib///+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7/+/v4m////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E////UP///+X//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+X///9Q////BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///xb+/v6H////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H+/v6H////FgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////KP7+/qf////3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f+/v6n////KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///9A/v7+yf////3///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3+/v7J////QAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////CP///2D////h///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////h////YP///wgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4Q////dP///+3////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t////dP7+/hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///xL///+B/v7+9//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v73////gf///xIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Dv///4v/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////i////w4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4I////i/7+/vf////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+/v73////i/7+/ggAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///w7///+B////7f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////t////gf///w4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Ev///3T////h/////f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////h////dP///xIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+/v4Q////YP7+/sn////3//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f+/v7J////YP7+/hAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wj///9A/v7+p/////H///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H+/v6n////QP///wgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///yj+/v6H////5f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+X+/v6H////KAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////Fv///1D///+//////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7////9Q////FgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E/v7+Jv///4n////n////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5////4n+/v4m////BAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD+/v4M////Nv7+/rP////9///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////9/v7+s////zb+/v4M////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wD///8K////TP///7/////z/////f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f////P///+/////TP///wr///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8O////Vv///73////l////+f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////5////5f///73///9W////DgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8M////UP///6X////V////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H////V////pf///1D///8MAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E////QP///4H+/v63////2/////f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////3////2/7+/rf///+B////QP///wQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8G/v7+Iv///1L///+F/v7+s////9v////7////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////+////9v///+z////hf///1L+/v4i////BgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/v7+Cv///yj+/v5K////cv///6H////N////8f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////H////N////of///3L///9K////KP7+/goAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///wb+/v4e////NP7+/kz///90////n////8f////t/////f///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////f///+3////H////n////3T+/v5M////NP7+/h7///8GAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8C////Cv///xj///8k////Lv7+/kz///9y/v7+m////7v+/v7d////9f/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////1/v7+3f///7v+/v6b////cv7+/kz///8u////JP///xj///8K////AgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8E/v7+CP///w7+/v4S////Fv///x7///8y/v7+UP///2r///+D////l/7+/q3+/v69////zf7+/tv+/v7l////7f////X////7/v7+/f////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////7+/v3////7////9f///+3+/v7l/v7+2////83+/v69/v7+rf///5f///+D////av7+/lD///8y////Hv///xb+/v4S////Dv7+/gj///8EAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//////////AAAAAAAAAAAAAAAAAAAAAAD//////////////////4AAAAAAAAAAAAAAAAAAAAAAAAH////////////////wAAAAAAAAAAAAAAAAAAAAAAAAAA///////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAB///////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB///////////gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//////////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////////gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH///////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP///gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//gAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/wAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/4AAAAAAAEABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/wAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAIAAAAAAAAAAAAAAAAAAAAAAAAAAAYAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAgAAAAAAAAAAAAAAAAAAAAAAAAAAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAPgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAfgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH/gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD//4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB///AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP//8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA///4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH///wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf///8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB//////4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf//////wAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD///////gAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf///////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB/////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf/////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAH//////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAB///////////+AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAf////////////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAP/////////////wAAAAAAAAAAAAAAAAAAAAAAAAAAAP//////////////8AAAAAAAAAAAAAAAAAAAAAAAAAAP////////////////gAAAAAAAAAAAAAAAAAAAAAAAAf//////////////////AAAAAAAAAAAAAAAAAAAAAAD/////////8="""
def get_icon_data():
"""获取图标的二进制数据"""
return base64.b64decode(ICON_BASE64)
def get_icon_image():
"""获取PIL Image对象"""
icon_data = get_icon_data()
return Image.open(io.BytesIO(icon_data))
def save_icon_to_file(filepath):
"""将图标保存到文件"""
with open(filepath, 'wb') as f:
f.write(get_icon_data())
| 360,981 | icon_data | py | en | python | code | {"qsc_code_num_words": 17503, "qsc_code_num_chars": 360981.0, "qsc_code_mean_word_length": 5.31925956, "qsc_code_frac_words_unique": 0.08261441, "qsc_code_frac_chars_top_2grams": 0.18706164, "qsc_code_frac_chars_top_3grams": 0.29657476, "qsc_code_frac_chars_top_4grams": 0.40000859, "qsc_code_frac_chars_dupe_5grams": 0.62555449, "qsc_code_frac_chars_dupe_6grams": 0.62294448, "qsc_code_frac_chars_dupe_7grams": 0.60958294, "qsc_code_frac_chars_dupe_8grams": 0.58960506, "qsc_code_frac_chars_dupe_9grams": 0.57383758, "qsc_code_frac_chars_dupe_10grams": 0.56050825, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.04341634, "qsc_code_frac_chars_whitespace": 0.00022162, "qsc_code_size_file_byte": 360981.0, "qsc_code_num_lines": 24.0, "qsc_code_num_chars_line_max": 360553.0, "qsc_code_num_chars_line_mean": 15040.875, "qsc_code_frac_chars_alphabet": 0.21455745, "qsc_code_frac_chars_comments": 0.00020777, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.08333333, "qsc_code_frac_chars_string_length": 0.99903016, "qsc_code_frac_chars_long_word_length": 0.99902462, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 1.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.25, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.25, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.66666667, "qsc_codepython_frac_lines_print": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 1, "qsc_code_num_chars_line_mean": 1, "qsc_code_frac_chars_alphabet": 1, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 1, "qsc_code_frac_chars_long_word_length": 1, "qsc_code_cate_encoded_data": 1, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 1, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 1, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | README.md | # AI截图分析 v2.1
一个方便的AI截图分析工具,快速使用AI解释你在屏幕上看到的东西,或让他帮你解题。
exe网盘链接:[https://o-zwz-o.lanzouq.com/b002v8ande](https://o-zwz-o.lanzouq.com/b002v8ande) 密码:52pj
Github 项目地址:[https://github.com/00000O00000/ask-ai-screenshot](https://github.com/00000O00000/ask-ai-screenshot)
软件目前处于测试版,可能存在Bug,若有问题,欢迎前往 Github 提交 issue。
本软件使用 Trae + Claude 4 编写,然后由我和 Claude 4 共同进行用户体验优化。
## 功能特点
- **核心功能**:截图后,将图片OCR为文字或直接提交给AI,并自动显示AI回复结果
- **可扩展性**:使用提示词自定义功能,例如 一键截图做题、解释、翻译 等功能
- **开箱即用**:内置原创 Qwen API 逆向,开箱即用
- **高度自由**:可自行配置使用的AI接口、OCR接口、提示词
## 更新日志
### v2.1
- Qwen API 上传图片功能,可使用这个AI上传图片进行OCR
- 替换限制次数的云智OCR引擎为内置 Qwen API,使用“Qwen-2.5vl-32b-instruct”作为OCR引擎。
- 老版本用户如果想用这个AI,可以删除配置文件后重启软件,以自动生成新配置。
### v2.0
- 移除可能导致问题的前端配置部分,请自行编辑`config.toml`文件以自定义配置
- 新增:内置原创 Qwen API 逆向,允许开箱即用
## 注意事项
- 只有多模态模型允许直接提交图片,目前常用的多模态模型为 Claude 3/4 系列,gpt-4o,Qwen-2.5vl。现在常见的Qwen3全系列、Deepseek系列、Kimi-K2都不是多模态模型,需要先OCR后再提交。如果你发现模型报错400,请检查此配置是否正确。
- 需要联网功能,请使用秘塔API,有赠送额度,且付费很便宜。
## 技术架构
- 语言:Python
- GUI:PyQt6
- 截图:PIL
- 快捷键:pynput
- AI引擎:Requests
## 推荐AI服务商
| 名称 | 推荐理由 | 链接地址 |
| -------- | --------------------------- | ------------------------------------------ |
| 硅基流动 | 模型齐全,稳定,价格合理 | https://cloud.siliconflow.cn/models |
| 魔搭社区 | Qwen3全系列,每日2000次免费 | https://www.modelscope.cn/my/myaccesstoken |
| 秘塔AI | 超强、超快联网搜索 | https://metaso.cn/search-api/playground |
| V3 API | 最全中转商,400+模型 | https://api.gpt.ge/register?aff=TVyz |
## 腾讯OCR配置步骤
腾讯云OCR每月有1000次OCR调用次数,如果对精度有要求,推荐使用此OCR
1. **登录腾讯云**:前往链接,登录控制台。https://console.cloud.tencent.com
2. **开通OCR服务**:前往链接,开通OCR服务。https://console.cloud.tencent.com/ocr/overview
3. **获取密钥对**:前往链接,获取 `SecretID` 和 `SecretKey` ,保存到本地。https://console.cloud.tencent.com/cam/capi
4. **等待额度到账**:回到开通服务界面,持续刷新,等待免费的1000额度到账,然后在软件中配置密钥对,开始使用OCR服务。
## 许可证
本项目仅供学习和个人使用,不得用于任何商业化用途。
图标来源iconfont,[链接](https://www.iconfont.cn/collections/detail?spm=a313x.user_detail.i1.dc64b3430.6b413a81uspeMj&cid=17714)
## 更新日志
### v1.0.0
- 初始版本发布
- 支持基本的截图、OCR和AI分析功能
- 完整的配置管理系统
- 多种通知方式
- 现代化的用户界面
## 计划添加的功能
- 多模型同时提问 | 2,128 | README | md | zh | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": null, "qsc_doc_num_sentences": 57.0, "qsc_doc_num_words": 552, "qsc_doc_num_chars": 2128.0, "qsc_doc_num_lines": 80.0, "qsc_doc_mean_word_length": 2.60869565, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.54528986, "qsc_doc_entropy_unigram": 5.40709588, "qsc_doc_frac_words_all_caps": 0.04454865, "qsc_doc_frac_lines_dupe_lines": 0.03773585, "qsc_doc_frac_chars_dupe_lines": 0.00683928, "qsc_doc_frac_chars_top_2grams": 0.01944444, "qsc_doc_frac_chars_top_3grams": 0.01041667, "qsc_doc_frac_chars_top_4grams": 0.05, "qsc_doc_frac_chars_dupe_5grams": 0.17152778, "qsc_doc_frac_chars_dupe_6grams": 0.09722222, "qsc_doc_frac_chars_dupe_7grams": 0.09722222, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 16.45081967, "qsc_doc_frac_chars_hyperlink_html_tag": 0.09116541, "qsc_doc_frac_chars_alphabet": null, "qsc_doc_frac_chars_digital": 0.05323194, "qsc_doc_frac_chars_whitespace": 0.13486842, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_full_bracket": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
00000O00000/ask-ai-screenshot | ai.py | # ai.py
# pip install requests flask flask-cors oss2
# 使用Qwen3 Coder写的chat.qwen.ai网页API逆向,AI的刀先插在自己身上了说是。
# 扒源码的哥们,网页端token数上传限制为96000,我没有对大于这个token的请求做错误处理,别被坑了。
import requests
import uuid
import time
import json
import os
import warnings
import base64
import hashlib
import random
from urllib.parse import urlparse
from flask import Flask, request, jsonify, Response, stream_with_context
from flask_cors import CORS
import oss2
# ==================== 配置区域 ====================
# 负载均衡token池
# 来扒源码的人就别抄这个Token了,你随便去chat.qwen.ai注册几个新号,都比用下面这些万人token好。
# 逆向源码摆在这了,就被用这个token了。
# 后面代码的注释全是AI写的,我也懒得管这个逆向有哪些报错,你看着办吧。
QWEN_AUTH_TOKENS = [
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjlkYzNkNGI0LWE2ZGYtNGNjMi1iM2U4LWQwM2MzZGRhOWJlYSIsImxhc3RfcGFzc3dvcmRfY2hhbmdlIjoxNzU1MTM1NzQwLCJleHAiOjE3NTc3Mjc3ODV9.BbLfc-uPkiuXg5EtGQ8PBk9OEYAeTGunr043feyPxm4",
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhjMTI2NjU0LTNiN2ItNDhhYi1hMDlkLTdjYWRhYmIzMWNiOCIsImxhc3RfcGFzc3dvcmRfY2hhbmdlIjoxNzU1MTQwOTgyLCJleHAiOjE3NTc3MzMwMTd9.grDFRe5JEg_q2NAy7rFIRQXhph3T8VmUpkgeJMC4nBY",
"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjNlNWYzZTQ4LWNmMGYtNDE0Yy04Yzc0LWRlZjA1YWUxNzZhMyIsImxhc3RfcGFzc3dvcmRfY2hhbmdlIjoxNzU1MTQxMTA4LCJleHAiOjE3NTc3MzMxMzJ9.e2zfnKgLHXPeEYr4fHz9wP_IF4UeAUqXJZh4bxX9XdQ"
]
# 随机选择一个token
QWEN_AUTH_TOKEN = random.choice(QWEN_AUTH_TOKENS)
PORT = 58888 # 服务端绑定的端口
DEBUG_STATUS = False # 是否输出debug信息
# =================================================
os.environ['FLASK_ENV'] = 'production'
warnings.filterwarnings("ignore", message=".*development server.*")
def debug_print(message):
if DEBUG_STATUS:
print(f"[DEBUG] {message}")
class QwenSimpleClient:
def __init__(self, auth_token: str, base_url: str = "https://chat.qwen.ai"):
self.auth_token = auth_token
self.base_url = base_url.rstrip('/')
self.session = requests.Session()
self.session.headers.update({
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8",
"content-type": "application/json",
"source": "web",
"authorization": f"Bearer {self.auth_token}"
})
self.models_info = {}
self._fetch_models()
def _fetch_models(self):
try:
models_res = self.session.get(f"{self.base_url}/api/models")
models_res.raise_for_status()
self.models_info = {model['id']: model for model in models_res.json()['data']}
debug_print(f"获取到 {len(self.models_info)} 个模型")
except Exception as e:
print(f"获取模型列表失败: {e}")
def _get_qwen_model_id(self, openai_model: str) -> str:
if openai_model in self.models_info:
return openai_model
else:
default_model = "qwen3-235b-a22b"
print(f"模型 '{openai_model}' 未找到,使用默认模型 '{default_model}'")
return default_model
def create_chat(self, model_id: str, title: str = "API临时对话") -> str:
url = f"{self.base_url}/api/v2/chats/new"
payload = {
"title": title,
"models": [model_id],
"chat_mode": "normal",
"chat_type": "t2t",
"timestamp": int(time.time() * 1000)
}
try:
response = self.session.post(url, json=payload)
response.raise_for_status()
chat_id = response.json()['data']['id']
debug_print(f"成功创建对话: {chat_id}")
return chat_id
except requests.exceptions.RequestException as e:
debug_print(f"创建对话失败: {e}")
raise
def delete_chat(self, chat_id: str):
url = f"{self.base_url}/api/v2/chats/{chat_id}"
try:
delete_session = requests.Session()
delete_session.headers.update({
"authorization": f"Bearer {self.auth_token}",
"content-type": "application/json"
})
response = delete_session.delete(url)
response.raise_for_status()
res_data = response.json()
if res_data.get('success', False):
debug_print(f"成功删除对话: {chat_id}")
else:
debug_print(f"删除对话 {chat_id} 可能未成功: {res_data}")
except requests.exceptions.RequestException as e:
debug_print(f"删除对话失败 {chat_id} (可能已自动删除): {e}")
except json.JSONDecodeError:
debug_print(f"删除对话时无法解析 JSON 响应 {chat_id}")
def get_sts_token(self, filename: str, filesize: int, filetype: str):
"""获取用于上传图片的STS令牌"""
url = f"{self.base_url}/api/v2/files/getstsToken"
# 为每个请求生成唯一的 x-request-id
x_request_id = str(uuid.uuid4())
headers = {
"authorization": f"Bearer {self.auth_token}",
"content-type": "application/json",
"source": "web",
"x-request-id": x_request_id
}
data = {
"filename": filename,
"filesize": filesize,
"filetype": filetype
}
try:
response = self.session.post(url, headers=headers, json=data)
response.raise_for_status()
res_data = response.json()
if res_data.get("success") and "data" in res_data:
debug_print(f"成功获取STS令牌 for {filename}")
# 返回整个 data 字典,包含所有上传所需信息
return res_data["data"]
else:
raise Exception(f"获取STS令牌失败: {res_data}")
except requests.exceptions.RequestException as e:
debug_print(f"获取STS令牌请求失败: {e}")
raise
def upload_image_via_sts(self, image_data: bytes, sts_info: dict):
"""使用STS信息上传图片到OSS"""
# oss2.StsAuth 用于使用临时凭证
auth = oss2.StsAuth(
sts_info['access_key_id'],
sts_info['access_key_secret'],
sts_info['security_token']
)
# 注意:sts_info['endpoint'] 可能是 'oss-accelerate.aliyuncs.com'
# 而 bucket.endpoint 通常需要完整的 'http://' 或 'https://' 前缀
# 这里我们假设 sts_info['endpoint'] 是域名部分
bucket_endpoint = f"https://{sts_info['endpoint']}"
bucket = oss2.Bucket(auth, bucket_endpoint, sts_info['bucketname'])
object_name = sts_info['file_path']
# 上传文件对象 (BytesIO)
result = bucket.put_object(object_name, image_data)
if result.status == 200:
debug_print(f"图片上传成功: {sts_info['file_url']}")
return sts_info # 返回包含URL等信息的原始 sts_info
else:
raise Exception(f"图片上传到OSS失败, 状态码: {result.status}")
def prepare_qwen_files(self, openai_messages: list):
"""解析OpenAI消息中的图片,准备Qwen的files数组"""
qwen_files = []
for message in openai_messages:
if message.get("role") == "user" and isinstance(message.get("content"), list):
for content_item in message["content"]:
if content_item.get("type") == "image_url":
image_url = content_item["image_url"]["url"]
# 解析 image_url
# 支持两种格式:
# 1. data:image/png;base64,...
# 2. https://... (由 /v1/uploads 返回的完整URL,需从中提取file_id)
if image_url.startswith("data:image/"):
# Base64 数据 (客户端直接发送图片数据)
header, encoded = image_url.split(",", 1)
mime_type = header.split(";")[0].split(":")[1] # e.g., image/png
file_extension = mime_type.split("/")[-1] # e.g., png
try:
image_data = base64.b64decode(encoded)
file_size = len(image_data)
# 生成一个临时文件名
file_hash = hashlib.md5(image_data[:100]).hexdigest()[:8]
temp_filename = f"temp_upload_{file_hash}.{file_extension}"
# 1. 获取 STS 令牌
sts_info = self.get_sts_token(temp_filename, file_size, "image")
# 2. 上传图片
upload_result = self.upload_image_via_sts(image_data, sts_info)
# 3. 构造 Qwen 格式的 file 对象
qwen_file_obj = self._build_qwen_file_object(upload_result, temp_filename, file_size, mime_type)
qwen_files.append(qwen_file_obj)
except Exception as e:
print(f"处理Base64图片数据失败: {e}")
# 可以选择跳过此图片或返回错误
elif image_url.startswith(("http://", "https://")):
# 假设这是由 /v1/uploads 返回的URL,需要从中提取信息
# 实际上,更稳健的方法是客户端在调用 /v1/chat/completions 时,
# 直接提供从 /v1/uploads 返回的 file_id 或完整对象。
# 这里我们简化处理,假设 URL 结构可以解析出 file_id
# 但这很脆弱。更好的方式是客户端传递 file_id。
# 为了兼容性,我们假设客户端会传递一个特殊的标识符或结构
# 例如,一个包含 file_id 的 JSON 对象字符串化后作为 URL
# 或者,客户端直接在 image_url 中放入 file_id
# 这里我们采用一种更直接的假设:URL 参数中包含 file_id
# 但这需要与前端约定。
# *** 更推荐的方式:***
# 客户端在调用 /v1/chat/completions 时,对于已上传的图片,
# `image_url` 字段直接使用从 `/v1/uploads` 返回的 `file_id`
# 例如: "image_url": {"url": "file-id-returned-by-uploads"}
# 为了演示,我们假设 URL 最后一部分是 file_id
# (这在实际中可能不成立,需要根据实际情况调整)
try:
parsed_url = urlparse(image_url)
path_parts = parsed_url.path.strip("/").split("/")
if path_parts:
file_id_from_url = path_parts[-1].split("_")[0] # 简单提取
# 这里缺少了从 file_id 反查完整信息的步骤
# 在实际应用中,你需要在 /v1/uploads 时将 file_id 和 info 存储起来
# 例如在内存字典或临时缓存中
# 为简化,我们这里无法直接从 file_id 构造 qwen_file_obj
# 因此,此路径下的处理是不完整的,除非有额外的存储机制
print("警告:通过URL解析file_id的方式不推荐且不完整。请在客户端传递完整的file对象或file_id并由服务端维护映射。")
# 如果有存储机制,可以这样:
# stored_info = self.get_stored_file_info(file_id_from_url)
# if stored_info:
# qwen_files.append(stored_info)
# else:
# print(f"未找到file_id {file_id_from_url} 对应的信息")
except Exception as e:
print(f"解析图片URL失败: {e}")
else:
print(f"不支持的图片URL格式: {image_url}")
return qwen_files
def _build_qwen_file_object(self, upload_result: dict, filename: str, filesize: int, content_type: str):
"""根据上传结果构建Qwen API需要的文件对象"""
# upload_result 包含了 getstsToken 返回的所有 data 字段
return {
"type": "image",
"file": {
"created_at": int(time.time() * 1000),
"data": {}, # 通常为空
"filename": filename,
"hash": None, # 通常由服务端计算
"id": upload_result["file_id"],
"user_id": "...", # 用户ID,如果需要可以从token解析或由服务端管理
"meta": {
"name": filename,
"size": filesize,
"content_type": content_type
},
"update_at": int(time.time() * 1000)
},
"id": upload_result["file_id"],
"url": upload_result["file_url"],
"name": filename,
"collection_name": "",
"progress": 0,
"status": "uploaded",
"greenNet": "success", # 假设审核通过
"size": filesize,
"error": "",
"itemId": str(uuid.uuid4()), # 临时ID
"file_type": content_type,
"showType": "image",
"file_class": "vision",
"uploadTaskId": str(uuid.uuid4()) # 临时任务ID
}
def chat_completions(self, openai_request: dict):
model = openai_request.get("model", "qwen3")
messages = openai_request.get("messages", [])
stream = openai_request.get("stream", False)
qwen_model_id = self._get_qwen_model_id(model)
debug_print(f"处理请求: 模型={qwen_model_id}, 消息数={len(messages)}, 流式={stream}")
# 处理图片上传
qwen_files = self.prepare_qwen_files(messages)
# 准备文本内容和最终消息列表
final_messages = []
for msg in messages:
if isinstance(msg.get("content"), list):
# 过滤掉图片内容,只保留文本
text_content_parts = [item for item in msg["content"] if item.get("type") == "text"]
text_content = "\n".join([item["text"] for item in text_content_parts])
new_msg = msg.copy()
new_msg["content"] = text_content
final_messages.append(new_msg)
else:
final_messages.append(msg)
# 拼接所有文本消息作为输入
formatted_history = "\n\n".join([f"{msg['role']}: {msg['content']}" for msg in final_messages])
if final_messages and final_messages[0]['role'] != "system":
formatted_history = "system:\n\n" + formatted_history
user_input = formatted_history
chat_id = self.create_chat(qwen_model_id, title=f"API_对话_{int(time.time())}")
debug_print(f"为请求创建新会话: {chat_id}")
try:
timestamp_ms = int(time.time() * 1000)
payload = {
"stream": True,
"incremental_output": True,
"chat_id": chat_id,
"chat_mode": "normal",
"model": qwen_model_id,
"parent_id": None,
"messages": [{
"fid": str(uuid.uuid4()),
"parentId": None,
"childrenIds": [str(uuid.uuid4())],
"role": "user",
"content": user_input,
"user_action": "chat",
"files": qwen_files, # 注入处理好的文件列表
"timestamp": timestamp_ms,
"models": [qwen_model_id],
"chat_type": "t2t",
"feature_config": {"output_schema": "phase"},
"extra": {"meta": {"subChatType": "t2t"}},
"sub_chat_type": "t2t",
"parent_id": None
}],
"timestamp": timestamp_ms
}
headers = { "x-accel-buffering": "no" }
url = f"{self.base_url}/api/v2/chat/completions?chat_id={chat_id}"
if stream:
def generate():
try:
with self.session.post(url, json=payload, headers=headers, stream=True) as r:
r.raise_for_status()
finish_reason = "stop"
for line in r.iter_lines(decode_unicode=True):
if line.startswith("data: "):
data_str = line[6:]
if data_str.strip() == "[DONE]":
final_chunk = {
"id": f"chatcmpl-{chat_id[:10]}",
"object": "chat.completion.chunk",
"created": int(time.time()),
"model": model,
"choices": [{ "index": 0, "delta": {}, "finish_reason": finish_reason }]
}
yield f"data: {json.dumps(final_chunk)}\n\n"
yield "data: [DONE]\n\n"
break
try:
data = json.loads(data_str)
if "choices" in data and len(data["choices"]) > 0:
choice = data["choices"][0]
delta = choice.get("delta", {})
content = delta.get("content", "")
if content:
openai_chunk = {
"id": f"chatcmpl-{chat_id[:10]}",
"object": "chat.completion.chunk",
"created": int(time.time()),
"model": model,
"choices": [{ "index": 0, "delta": {"content": content}, "finish_reason": None }]
}
yield f"data: {json.dumps(openai_chunk)}\n\n"
if delta.get("status") == "finished":
finish_reason = delta.get("finish_reason", "stop")
except json.JSONDecodeError:
continue
except requests.exceptions.RequestException as e:
debug_print(f"流式请求失败: {e}")
error_chunk = {
"id": f"chatcmpl-error", "object": "chat.completion.chunk",
"created": int(time.time()), "model": model,
"choices": [{ "index": 0, "delta": {"content": f"Error during streaming: {str(e)}"}, "finish_reason": "error" }]
}
yield f"data: {json.dumps(error_chunk)}\n\n"
finally:
debug_print(f"流式请求结束,准备删除会话: {chat_id}")
self.delete_chat(chat_id)
return generate()
else:
response_text = ""
finish_reason = "stop"
usage_data = {"prompt_tokens": 0, "completion_tokens": 0, "total_tokens": 0}
try:
with self.session.post(url, json=payload, headers=headers, stream=True) as r:
r.raise_for_status()
for line in r.iter_lines(decode_unicode=True):
if line.startswith("data: "):
data_str = line[6:]
if data_str.strip() == "[DONE]":
break
try:
data = json.loads(data_str)
if "choices" in data and len(data["choices"]) > 0:
delta = data["choices"][0].get("delta", {})
if delta.get("content"):
response_text += delta["content"]
if "usage" in data:
qwen_usage = data["usage"]
usage_data = {
"prompt_tokens": qwen_usage.get("input_tokens", 0),
"completion_tokens": qwen_usage.get("output_tokens", 0),
"total_tokens": qwen_usage.get("total_tokens", 0),
}
if "choices" in data and len(data["choices"]) > 0:
delta = data["choices"][0].get("delta", {})
if delta.get("status") == "finished":
finish_reason = delta.get("finish_reason", "stop")
except json.JSONDecodeError:
continue
openai_response = {
"id": f"chatcmpl-{chat_id[:10]}",
"object": "chat.completion",
"created": int(time.time()),
"model": model,
"choices": [{
"index": 0,
"message": { "role": "assistant", "content": response_text },
"finish_reason": finish_reason
}],
"usage": usage_data
}
return jsonify(openai_response)
finally:
debug_print(f"非流式请求结束,准备删除会话: {chat_id}")
self.delete_chat(chat_id)
except requests.exceptions.RequestException as e:
debug_print(f"聊天补全失败: {e}")
self.delete_chat(chat_id)
return jsonify({
"error": {
"message": f"内部服务器错误: {str(e)}",
"type": "server_error",
"param": None,
"code": None
}
}), 500
# --- Flask 应用 ---
app = Flask(__name__)
CORS(app)
qwen_client = QwenSimpleClient(auth_token=QWEN_AUTH_TOKEN)
# 用于存储上传文件信息的简单内存字典 (生产环境请使用数据库或缓存)
# 格式: {file_id: {file_info}}
uploaded_files_store = {}
@app.route('/v1/models', methods=['GET'])
def list_models():
try:
openai_models = []
for model_id, model_info in qwen_client.models_info.items():
openai_models.append({
"id": model_info['info']['id'],
"object": "model",
"created": model_info['info']['created_at'],
"owned_by": model_info['owned_by']
})
return jsonify({"object": "list", "data": openai_models})
except Exception as e:
print(f"列出模型时出错: {e}")
return jsonify({
"error": { "message": f"获取模型列表失败: {e}", "type": "server_error", "param": None, "code": None }
}), 500
@app.route('/v1/uploads', methods=['POST'])
def upload_file():
"""处理文件上传请求"""
data = request.get_json()
if not data:
return jsonify({"error": {"message": "请求体无效", "type": "invalid_request_error"}}), 400
# 期望客户端发送 base64 编码的图片数据
# 例如: {"file_data": "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgA..."}
file_data_url = data.get("file_data")
if not file_data_url or not file_data_url.startswith("data:image/"):
return jsonify({"error": {"message": "缺少有效的 base64 图片数据 (file_data)", "type": "invalid_request_error"}}), 400
try:
header, encoded = file_data_url.split(",", 1)
mime_type = header.split(";")[0].split(":")[1]
file_extension = mime_type.split("/")[-1]
image_data = base64.b64decode(encoded)
file_size = len(image_data)
file_hash = hashlib.md5(image_data[:100]).hexdigest()[:8]
temp_filename = f"uploaded_via_api_{file_hash}.{file_extension}"
# 1. 获取 STS 令牌
sts_info = qwen_client.get_sts_token(temp_filename, file_size, "image")
# 2. 上传图片
upload_result = qwen_client.upload_image_via_sts(image_data, sts_info)
# 3. 存储文件信息 (简化版内存存储)
file_id = upload_result["file_id"]
file_info_to_store = {
"file_id": file_id,
"url": upload_result["file_url"],
"name": temp_filename,
"size": file_size,
"type": mime_type
}
uploaded_files_store[file_id] = file_info_to_store
# 4. 返回成功信息,包含 file_id,供后续 /v1/chat/completions 使用
return jsonify({
"id": file_id,
"object": "file",
"bytes": file_size,
"created_at": int(time.time()),
"filename": temp_filename,
"purpose": "vision", # 或其他用途
"status": "uploaded",
"url": upload_result["file_url"] # 也可以只返回 file_id
}), 200
except Exception as e:
print(f"文件上传处理失败: {e}")
return jsonify({
"error": { "message": f"文件上传失败: {str(e)}", "type": "server_error", "param": None, "code": None }
}), 500
@app.route('/v1/chat/completions', methods=['POST'])
def chat_completions():
openai_request = request.get_json()
if not openai_request:
return jsonify({
"error": { "message": "请求体中 JSON 无效", "type": "invalid_request_error", "param": None, "code": None }
}), 400
# --- 修改点:增强对图片消息的处理 ---
messages = openai_request.get("messages", [])
processed_messages = []
for message in messages:
if message.get("role") == "user" and isinstance(message.get("content"), list):
processed_content = []
for item in message["content"]:
if item.get("type") == "text":
processed_content.append(item)
elif item.get("type") == "image_url":
image_url = item["image_url"]["url"]
# --- 关键逻辑:处理图片 ---
# 假设客户端在 image_url 中直接提供了从 /v1/uploads 返回的 file_id
if image_url in uploaded_files_store:
# 如果 URL 看起来像一个 file_id (简单检查)
# 在实际应用中,你可能需要更严格的验证
stored_file_info = uploaded_files_store[image_url]
# 我们不需要在这里做太多,因为 prepare_qwen_files 会处理
# 但我们可以记录或转换格式
# 为了兼容性,我们保持 image_url 不变,让 prepare_qwen_files 处理
processed_content.append(item)
else:
# 如果不是已知的 file_id,则假定是 base64 data URL
# 并在 prepare_qwen_files 中处理上传
processed_content.append(item)
else:
# 未知类型,跳过或原样保留?
# 为了安全,最好跳过未知类型
print(f"警告:消息中包含未知内容类型 {item.get('type')}, 已跳过。")
new_message = message.copy()
new_message["content"] = processed_content
processed_messages.append(new_message)
else:
processed_messages.append(message)
# 更新请求中的 messages
openai_request["messages"] = processed_messages
# --- 修改点结束 ---
stream = openai_request.get("stream", False)
try:
result = qwen_client.chat_completions(openai_request)
if stream:
return Response(stream_with_context(result), content_type='text/event-stream')
else:
return result
except Exception as e:
debug_print(f"处理聊天补全请求时发生未预期错误: {e}")
return jsonify({
"error": { "message": f"内部服务器错误: {str(e)}", "type": "server_error", "param": None, "code": None }
}), 500
@app.route('/v1/chats/<chat_id>', methods=['DELETE'])
def delete_chat(chat_id):
try:
qwen_client.delete_chat(chat_id)
return jsonify({"message": f"尝试删除会话 {chat_id}", "success": True})
except Exception as e:
debug_print(f"删除会话时发生错误: {e}")
return jsonify({
"error": { "message": f"删除会话失败: {str(e)}", "type": "server_error", "param": None, "code": None }
}), 500
@app.route('/', methods=['GET'])
def index():
return jsonify({
"message": "简化版千问 (Qwen) OpenAI API 代理正在运行 (支持图片上传)。",
"docs": "https://platform.openai.com/docs/api-reference/chat"
})
@app.route('/health', methods=['GET'])
def health_check():
return jsonify({"status": "healthy"}), 200
if __name__ == '__main__':
# 显示选择的token信息(只显示前8位和后8位,保护隐私)
token_index = QWEN_AUTH_TOKENS.index(QWEN_AUTH_TOKEN) + 1
token_preview = f"{QWEN_AUTH_TOKEN[:8]}...{QWEN_AUTH_TOKEN[-8:]}"
print(f"正在启动简化版服务器于端口 {PORT}...")
print(f"Debug模式: {'开启' if DEBUG_STATUS else '关闭'}")
print(f"负载均衡: 使用Token #{token_index}/{len(QWEN_AUTH_TOKENS)} ({token_preview})")
app.run(host='0.0.0.0', port=PORT, debug=False)
| 28,707 | ai | py | zh | python | code | {"qsc_code_num_words": 3314, "qsc_code_num_chars": 28707.0, "qsc_code_mean_word_length": 4.03439952, "qsc_code_frac_words_unique": 0.18949909, "qsc_code_frac_chars_top_2grams": 0.01480927, "qsc_code_frac_chars_top_3grams": 0.01480927, "qsc_code_frac_chars_top_4grams": 0.01495886, "qsc_code_frac_chars_dupe_5grams": 0.32954375, "qsc_code_frac_chars_dupe_6grams": 0.27606582, "qsc_code_frac_chars_dupe_7grams": 0.22774869, "qsc_code_frac_chars_dupe_8grams": 0.20613313, "qsc_code_frac_chars_dupe_9grams": 0.2013463, "qsc_code_frac_chars_dupe_10grams": 0.18204936, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01528787, "qsc_code_frac_chars_whitespace": 0.39617515, "qsc_code_size_file_byte": 28707.0, "qsc_code_num_lines": 645.0, "qsc_code_num_chars_line_max": 217.0, "qsc_code_num_chars_line_mean": 44.50697674, "qsc_code_frac_chars_alphabet": 0.75602861, "qsc_code_frac_chars_comments": 0.09328735, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.32040816, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0122449, "qsc_code_frac_chars_string_length": 0.19154603, "qsc_code_frac_chars_long_word_length": 0.05508589, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.03673469, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.02653061, "qsc_codepython_frac_lines_simplefunc": 0.004081632653061225, "qsc_codepython_score_lines_no_logic": 0.11428571, "qsc_codepython_frac_lines_print": 0.06530612} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
00000O00000/ask-ai-screenshot | custom_window.py | #!/usr/bin/env python3
# -*- coding: utf-8 -*-
"""
AI截图分析 - 自定义窗口组件
包含自定义消息框、通知窗口、Markdown渲染器等
"""
import re
import logging
from typing import Optional
from PyQt6.QtWidgets import (
QDialog, QVBoxLayout, QHBoxLayout, QLabel, QPushButton,
QTextEdit, QWidget, QFrame, QScrollArea, QApplication
)
from PyQt6.QtCore import Qt, QTimer, pyqtSignal, QPropertyAnimation, QRect, QEasingCurve
from PyQt6.QtGui import QFont, QPalette, QColor, QPixmap, QPainter, QBrush, QIcon
try:
import markdown
MARKDOWN_AVAILABLE = True
except ImportError:
MARKDOWN_AVAILABLE = False
logging.warning("Markdown模块未安装,将使用纯文本显示")
class CustomMessageBox(QDialog):
"""自定义消息框"""
def __init__(self, parent=None, title="", message="", icon_type="info", buttons=None):
super().__init__(parent)
self.result = None
self.init_ui(title, message, icon_type, buttons or ["确定"])
def init_ui(self, title, message, icon_type, buttons):
"""初始化界面"""
self.setWindowTitle(title)
self.setModal(True)
self.setFixedSize(400, 200)
# 设置窗口图标
try:
from icon_data import get_icon_data
icon_data = get_icon_data()
pixmap = QPixmap()
pixmap.loadFromData(icon_data)
self.setWindowIcon(QIcon(pixmap))
except ImportError:
# 如果icon_data模块不存在,回退到文件方式
import os
if os.path.exists('favicon.ico'):
self.setWindowIcon(QIcon('favicon.ico'))
# 设置样式
self.setStyleSheet("""
QDialog {
background-color: #f8fffe;
border: 2px solid #a8d8a8;
border-radius: 8px;
}
QLabel {
color: #333333;
font-size: 14px;
}
QPushButton {
background-color: #a8d8a8;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
font-weight: bold;
min-width: 80px;
}
QPushButton:hover {
background-color: #90c890;
}
QPushButton:pressed {
background-color: #78b878;
}
""")
layout = QVBoxLayout(self)
layout.setSpacing(20)
layout.setContentsMargins(20, 20, 20, 20)
# 图标和消息区域
content_layout = QHBoxLayout()
# 图标
icon_label = QLabel()
icon_label.setFixedSize(48, 48)
icon_label.setAlignment(Qt.AlignmentFlag.AlignCenter)
# 根据类型设置图标颜色
icon_colors = {
"info": "#3498db",
"warning": "#f39c12",
"error": "#e74c3c",
"question": "#9b59b6",
"success": "#27ae60"
}
icon_color = icon_colors.get(icon_type, "#3498db")
icon_label.setStyleSheet(f"""
QLabel {{
background-color: {icon_color};
border-radius: 24px;
color: white;
font-size: 24px;
font-weight: bold;
}}
""")
# 设置图标文字
icon_texts = {
"info": "ℹ",
"warning": "⚠",
"error": "✕",
"question": "?",
"success": "✓"
}
icon_label.setText(icon_texts.get(icon_type, "ℹ"))
content_layout.addWidget(icon_label)
# 消息文本
message_label = QLabel(message)
message_label.setWordWrap(True)
message_label.setAlignment(Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignVCenter)
content_layout.addWidget(message_label, 1)
layout.addLayout(content_layout)
# 按钮区域
button_layout = QHBoxLayout()
button_layout.addStretch()
for button_text in buttons:
button = QPushButton(button_text)
button.clicked.connect(lambda checked, text=button_text: self.button_clicked(text))
button_layout.addWidget(button)
layout.addLayout(button_layout)
# 居中显示
if self.parent():
parent_rect = self.parent().geometry()
x = parent_rect.x() + (parent_rect.width() - self.width()) // 2
y = parent_rect.y() + (parent_rect.height() - self.height()) // 2
self.move(x, y)
def button_clicked(self, button_text):
"""按钮点击处理"""
self.result = button_text
self.accept()
@staticmethod
def information(parent, title, message):
"""信息对话框"""
dialog = CustomMessageBox(parent, title, message, "info")
dialog.exec()
return dialog.result
@staticmethod
def warning(parent, title, message):
"""警告对话框"""
dialog = CustomMessageBox(parent, title, message, "warning")
dialog.exec()
return dialog.result
@staticmethod
def critical(parent, title, message):
"""错误对话框"""
dialog = CustomMessageBox(parent, title, message, "error")
dialog.exec()
return dialog.result
@staticmethod
def question(parent, title, message):
"""询问对话框"""
dialog = CustomMessageBox(parent, title, message, "question", ["是", "否"])
dialog.exec()
return dialog.result == "是"
class MarkdownViewer(QTextEdit):
"""Markdown渲染器"""
def __init__(self, parent=None):
super().__init__(parent)
self.setReadOnly(True)
self.setup_style()
# 性能优化:批量更新
self._pending_content = None
self._update_timer = QTimer()
self._update_timer.setSingleShot(True)
self._update_timer.timeout.connect(self._do_update)
self._update_timer.setInterval(50) # 50ms延迟批量更新
def setup_style(self):
"""设置样式"""
self.setStyleSheet("""
QTextEdit {
background-color: white;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 10px;
font-family: 'Segoe UI Emoji', 'Microsoft YaHei', 'Noto Color Emoji', 'Apple Color Emoji', Arial, sans-serif;
font-size: 14px;
line-height: 1.6;
}
""")
def set_markdown(self, markdown_text: str):
"""设置Markdown内容(支持批量更新优化)"""
self._pending_content = markdown_text
self._update_timer.start() # 重启定时器
def _do_update(self):
"""执行实际的内容更新"""
if self._pending_content is None:
return
markdown_text = self._pending_content
self._pending_content = None
if MARKDOWN_AVAILABLE:
try:
# 配置markdown扩展
html = markdown.markdown(
markdown_text,
extensions=['codehilite', 'fenced_code', 'tables', 'toc'],
extension_configs={
'codehilite': {
'css_class': 'highlight',
'use_pygments': False
}
}
)
# 添加CSS样式
styled_html = f"""
<style>
body {{
font-family: 'Microsoft YaHei', Arial, sans-serif;
line-height: 1.6;
color: #333;
margin: 0;
padding: 0;
}}
h1, h2, h3, h4, h5, h6 {{
color: #2c3e50;
margin-top: 1.5em;
margin-bottom: 0.5em;
}}
h1 {{ font-size: 1.8em; border-bottom: 2px solid #a8d8a8; padding-bottom: 0.3em; }}
h2 {{ font-size: 1.5em; border-bottom: 1px solid #e0e0e0; padding-bottom: 0.3em; }}
h3 {{ font-size: 1.3em; }}
p {{ margin: 0.8em 0; }}
code {{
background-color: #f8f8f8;
border: 1px solid #e0e0e0;
border-radius: 3px;
padding: 2px 4px;
font-family: 'Consolas', 'Monaco', monospace;
font-size: 0.9em;
}}
pre {{
background-color: #f8f8f8;
border: 1px solid #e0e0e0;
border-radius: 4px;
padding: 10px;
overflow-x: auto;
margin: 1em 0;
}}
pre code {{
background: none;
border: none;
padding: 0;
}}
blockquote {{
border-left: 4px solid #a8d8a8;
margin: 1em 0;
padding-left: 1em;
color: #666;
font-style: italic;
}}
ul, ol {{ margin: 0.8em 0; padding-left: 2em; }}
li {{ margin: 0.3em 0; }}
table {{
border-collapse: collapse;
width: 100%;
margin: 1em 0;
}}
th, td {{
border: 1px solid #e0e0e0;
padding: 8px 12px;
text-align: left;
}}
th {{
background-color: #f8f8f8;
font-weight: bold;
}}
a {{
color: #a8d8a8;
text-decoration: none;
}}
a:hover {{
text-decoration: underline;
}}
</style>
{html}
"""
self.setHtml(styled_html)
except Exception as e:
logging.error(f"Markdown渲染失败: {e}")
self.setPlainText(markdown_text)
else:
self.setPlainText(markdown_text)
# 滚动到底部
scrollbar = self.verticalScrollBar()
scrollbar.setValue(scrollbar.maximum())
def append_text(self, text: str):
"""追加文本(流式显示)"""
cursor = self.textCursor()
cursor.movePosition(cursor.MoveOperation.End)
cursor.insertText(text)
self.setTextCursor(cursor)
# 滚动到底部
scrollbar = self.verticalScrollBar()
scrollbar.setValue(scrollbar.maximum())
class SmallNotificationWindow(QWidget):
"""小通知窗口"""
def __init__(self, message: str):
super().__init__()
self.message = message
self.init_ui()
self.setup_animation()
def init_ui(self):
"""初始化界面"""
self.setWindowFlags(
Qt.WindowType.FramelessWindowHint |
Qt.WindowType.WindowStaysOnTopHint |
Qt.WindowType.Tool
)
self.setAttribute(Qt.WidgetAttribute.WA_TranslucentBackground)
# 设置可变大小,支持滚动
self.setMinimumSize(300, 80)
self.setMaximumSize(400, 300)
# 处理连续换行
processed_message = self._process_text(self.message)
# 设置样式 - 纯白背景,黑色文字,小字体
self.setStyleSheet("""
QWidget {
background-color: white;
border-radius: 8px;
border: 1px solid #cccccc;
}
QScrollArea {
background-color: white;
border: none;
}
QLabel {
color: black;
font-size: 12px;
padding: 8px;
background-color: transparent;
}
""")
layout = QVBoxLayout(self)
layout.setContentsMargins(2, 2, 2, 2)
# 创建滚动区域
scroll_area = QScrollArea()
scroll_area.setWidgetResizable(True)
scroll_area.setHorizontalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAlwaysOff)
scroll_area.setVerticalScrollBarPolicy(Qt.ScrollBarPolicy.ScrollBarAsNeeded)
# 消息标签
message_label = QLabel(processed_message)
message_label.setWordWrap(True)
message_label.setAlignment(Qt.AlignmentFlag.AlignLeft | Qt.AlignmentFlag.AlignTop)
scroll_area.setWidget(message_label)
layout.addWidget(scroll_area)
# 根据内容调整窗口大小
self._adjust_size(message_label)
# 定位到屏幕右下角
screen = QApplication.primaryScreen().geometry()
x = screen.width() - self.width() - 20
y = screen.height() - self.height() - 60
self.move(x, y)
def _process_text(self, text):
"""处理文本,将连续换行合并为一个"""
import re
# 将连续的换行符替换为单个换行符
processed = re.sub(r'\n+', '\n', text.strip())
return processed
def _adjust_size(self, label):
"""固定窗口大小"""
# 固定小窗大小为350x200
self.setFixedSize(350, 200)
def append_content(self, content):
"""追加内容到小窗"""
# 获取当前的消息标签
scroll_area = self.layout().itemAt(0).widget()
message_label = scroll_area.widget()
# 追加新内容
current_text = message_label.text()
new_text = current_text + content
processed_text = self._process_text(new_text)
message_label.setText(processed_text)
# 重新调整大小
self._adjust_size(message_label)
# 滚动到底部
scrollbar = scroll_area.verticalScrollBar()
scrollbar.setValue(scrollbar.maximum())
# 重新定位到屏幕右下角
screen = QApplication.primaryScreen().geometry()
x = screen.width() - self.width() - 20
y = screen.height() - self.height() - 60
self.move(x, y)
def setup_animation(self):
"""设置动画"""
# 淡入动画
self.setWindowOpacity(0)
self.fade_in_animation = QPropertyAnimation(self, b"windowOpacity")
self.fade_in_animation.setDuration(300)
self.fade_in_animation.setStartValue(0)
self.fade_in_animation.setEndValue(1)
self.fade_in_animation.setEasingCurve(QEasingCurve.Type.OutCubic)
# 淡出动画
self.fade_out_animation = QPropertyAnimation(self, b"windowOpacity")
self.fade_out_animation.setDuration(300)
self.fade_out_animation.setStartValue(1)
self.fade_out_animation.setEndValue(0)
self.fade_out_animation.setEasingCurve(QEasingCurve.Type.InCubic)
self.fade_out_animation.finished.connect(self.close)
# 自动关闭定时器
self.close_timer = QTimer()
self.close_timer.setSingleShot(True)
self.close_timer.timeout.connect(self.start_fade_out)
def show_notification(self):
"""显示通知"""
self.show()
self.fade_in_animation.start()
self.close_timer.start(10000) # 10秒后自动关闭
def start_fade_out(self):
"""开始淡出"""
self.fade_out_animation.start()
def mousePressEvent(self, event):
"""鼠标点击关闭"""
self.start_fade_out()
class LargeNotificationWindow(QDialog):
"""大通知窗口"""
def __init__(self, message: str, parent=None):
super().__init__(parent)
self.message = message
self.current_text = ""
self.init_ui()
def init_ui(self):
"""初始化界面"""
self.setWindowTitle("AI分析结果")
self.setModal(False) # 设置为非模态窗口,允许主窗口操作
# 设置为完全独立的窗口,不与任何父窗口关联
self.setWindowFlags(
Qt.WindowType.Window |
Qt.WindowType.WindowStaysOnTopHint |
Qt.WindowType.WindowCloseButtonHint |
Qt.WindowType.WindowMinimizeButtonHint |
Qt.WindowType.WindowMaximizeButtonHint
)
self.resize(800, 600)
# 设置窗口图标
try:
from icon_data import get_icon_data
icon_data = get_icon_data()
pixmap = QPixmap()
pixmap.loadFromData(icon_data)
self.setWindowIcon(QIcon(pixmap))
except ImportError:
# 如果icon_data模块不存在,回退到文件方式
import os
if os.path.exists('favicon.ico'):
self.setWindowIcon(QIcon('favicon.ico'))
# 设置样式
self.setStyleSheet("""
QDialog {
background-color: #f8fffe;
}
QPushButton {
background-color: #a8d8a8;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
font-weight: bold;
min-width: 80px;
}
QPushButton:hover {
background-color: #90c890;
}
QPushButton:pressed {
background-color: #78b878;
}
""")
layout = QVBoxLayout(self)
layout.setSpacing(10)
layout.setContentsMargins(20, 20, 20, 20)
# 标题
title_label = QLabel("AI分析结果")
title_label.setStyleSheet("""
QLabel {
font-size: 18px;
font-weight: bold;
color: #2c3e50;
margin-bottom: 10px;
}
""")
layout.addWidget(title_label)
# 内容区域
self.content_viewer = MarkdownViewer()
layout.addWidget(self.content_viewer)
# 按钮区域
button_layout = QHBoxLayout()
button_layout.addStretch()
self.copy_btn = QPushButton("复制内容")
self.copy_btn.clicked.connect(self.copy_content)
button_layout.addWidget(self.copy_btn)
self.close_btn = QPushButton("关闭")
self.close_btn.clicked.connect(self.accept)
button_layout.addWidget(self.close_btn)
layout.addLayout(button_layout)
# 居中显示
if self.parent():
parent_rect = self.parent().geometry()
x = parent_rect.x() + (parent_rect.width() - self.width()) // 2
y = parent_rect.y() + (parent_rect.height() - self.height()) // 2
self.move(x, y)
# 设置初始内容
self.set_content(self.message)
def set_content(self, content: str):
"""设置内容"""
self.current_text = content
self.content_viewer.set_markdown(content)
def append_content(self, content: str):
"""追加内容(流式显示)"""
if not hasattr(self, 'current_response_content'):
self.current_response_content = ""
if not hasattr(self, 'current_reasoning_content'):
self.current_reasoning_content = ""
self.current_response_content += content
self._update_display_content()
def append_reasoning_content(self, reasoning: str):
"""追加推理内容"""
if not hasattr(self, 'current_reasoning_content'):
self.current_reasoning_content = ""
if not hasattr(self, 'current_response_content'):
self.current_response_content = ""
self.current_reasoning_content += reasoning
self._update_display_content()
def _update_display_content(self, force_render=False):
"""更新显示内容(使用批量更新优化)"""
if not hasattr(self, '_update_pending'):
self._update_pending = False
self._update_timer = QTimer()
self._update_timer.setSingleShot(True)
self._update_timer.timeout.connect(self._batch_update_display)
self._update_timer.setInterval(100) # 100ms批量更新
if force_render:
# 强制立即渲染
self._batch_update_display()
elif not self._update_pending:
self._update_pending = True
self._update_timer.start()
def _batch_update_display(self, force_markdown=False):
"""批量更新显示内容"""
if hasattr(self, '_update_pending'):
self._update_pending = False
display_content = ""
if hasattr(self, 'current_reasoning_content') and self.current_reasoning_content:
display_content += f"<div style='background-color: #f0f8ff; padding: 15px; border-left: 4px solid #4a90e2; margin-bottom: 20px; border-radius: 6px;'>\n"
display_content += f"<h3 style='color: #4a90e2; margin: 0 0 10px 0; font-family: \"Microsoft YaHei\", sans-serif;'>🤔 思考内容</h3>\n"
display_content += f"<div style='font-family: \"Consolas\", \"Monaco\", monospace; font-size: 14px; color: #666; line-height: 1.6; white-space: pre-wrap;'>{self.current_reasoning_content}</div>\n"
display_content += f"</div>\n\n"
if hasattr(self, 'current_response_content') and self.current_response_content:
if force_markdown:
# 流式完成后,进行完整的markdown渲染
display_content += f"<div style='background-color: #f8fff8; padding: 15px; border-left: 4px solid #28a745; border-radius: 6px;'>\n"
display_content += f"<h3 style='color: #28a745; margin: 0 0 10px 0; font-family: \"Microsoft YaHei\", sans-serif;'>💬 回复内容</h3>\n"
display_content += f"<div style='font-family: \"Microsoft YaHei\", sans-serif; line-height: 1.6; white-space: pre-wrap;'>{self.current_response_content}</div>\n"
display_content += f"</div>"
else:
# 流式过程中,显示纯文本避免频繁渲染
display_content += f"<div style='background-color: #f8fff8; padding: 15px; border-left: 4px solid #28a745; border-radius: 6px;'>\n"
display_content += f"<h3 style='color: #28a745; margin: 0 0 10px 0; font-family: \"Microsoft YaHei\", sans-serif;'>💬 回复内容</h3>\n"
display_content += f"<div style='font-family: \"Microsoft YaHei\", sans-serif; line-height: 1.6; white-space: pre-wrap;'>{self.current_response_content}</div>\n"
display_content += f"</div>"
self.current_text = display_content
if force_markdown:
# 强制进行markdown渲染
self.content_viewer.set_markdown(display_content)
else:
# 流式过程中使用简单的HTML显示
self.content_viewer.setHtml(display_content)
# 确保滚动条始终在底部
scrollbar = self.content_viewer.verticalScrollBar()
scrollbar.setValue(scrollbar.maximum())
def append_response_content(self, content):
"""追加回复内容(用于流式响应)"""
if not hasattr(self, 'current_response_content'):
self.current_response_content = ""
self.current_response_content += content
# 流式过程中不进行markdown渲染,只更新文本
self._update_display_content(force_render=False)
def append_reasoning_content(self, content):
"""追加推理内容"""
if not hasattr(self, 'current_reasoning_content'):
self.current_reasoning_content = ""
self.current_reasoning_content += content
# 推理内容立即显示
self._update_display_content(force_render=False)
def copy_content(self):
"""复制内容到剪贴板"""
clipboard = QApplication.clipboard()
clipboard.setText(self.current_text)
# 临时改变按钮文字
original_text = self.copy_btn.text()
self.copy_btn.setText("已复制")
QTimer.singleShot(1000, lambda: self.copy_btn.setText(original_text))
class NotificationWindow:
"""通知窗口管理器"""
_small_notifications = []
_large_notification = None
@classmethod
def show_small_notification(cls, message: str):
"""显示小通知"""
try:
# 清理已关闭的通知
cls._small_notifications = [n for n in cls._small_notifications if n.isVisible()]
# 限制同时显示的通知数量
if len(cls._small_notifications) >= 3:
oldest = cls._small_notifications.pop(0)
oldest.start_fade_out()
# 创建新通知
notification = SmallNotificationWindow(message)
cls._small_notifications.append(notification)
# 调整位置(避免重叠)
screen = QApplication.primaryScreen().geometry()
x = screen.width() - notification.width() - 20
y = screen.height() - notification.height() - 60 - (len(cls._small_notifications) - 1) * 110
notification.move(x, y)
notification.show_notification()
except Exception as e:
logging.error(f"显示小通知失败: {e}")
@classmethod
def show_large_notification(cls, message: str, parent=None):
"""显示大通知"""
try:
# 关闭之前的大通知
if cls._large_notification and cls._large_notification.isVisible():
cls._large_notification.close()
# 创建新的大通知,不设置父窗口以确保完全独立
cls._large_notification = LargeNotificationWindow(message, None)
cls._large_notification.show()
except Exception as e:
logging.error(f"显示大通知失败: {e}")
@classmethod
def show_large_notification_streaming(cls, initial_message: str, parent=None):
"""显示流式大通知"""
try:
# 关闭之前的大通知
if cls._large_notification and cls._large_notification.isVisible():
cls._large_notification.close()
# 创建新的大通知(用于流式显示),不设置父窗口以确保完全独立
cls._large_notification = LargeNotificationWindow(initial_message, None)
cls._large_notification.setWindowTitle("AI流式响应")
cls._large_notification.current_reasoning_content = ""
cls._large_notification.current_response_content = ""
cls._large_notification.show()
return cls._large_notification
except Exception as e:
logging.error(f"显示流式大通知失败: {e}")
return None
@classmethod
def show_large_notification_reasoning(cls, reasoning_content: str, parent=None):
"""显示推理内容大通知"""
try:
# 创建新的推理内容窗口,不关闭现有窗口以支持同时显示
reasoning_window = LargeNotificationWindow("", None)
reasoning_window.setWindowTitle("AI推理过程")
reasoning_window.current_reasoning_content = reasoning_content
reasoning_window.current_response_content = ""
reasoning_window._batch_update_display()
reasoning_window.show()
return reasoning_window
except Exception as e:
logging.error(f"显示推理内容大通知失败: {e}")
return None
@classmethod
def close_all_notifications(cls):
"""关闭所有通知"""
try:
# 关闭小通知
for notification in cls._small_notifications:
if notification.isVisible():
notification.start_fade_out()
cls._small_notifications.clear()
# 关闭大通知
if cls._large_notification and cls._large_notification.isVisible():
cls._large_notification.close()
cls._large_notification = None
except Exception as e:
logging.error(f"关闭通知失败: {e}")
class ThinkingIndicator(QWidget):
"""思考指示器"""
def __init__(self, parent=None):
super().__init__(parent)
self.init_ui()
self.setup_animation()
def init_ui(self):
"""初始化界面"""
self.setFixedSize(200, 50)
layout = QHBoxLayout(self)
layout.setContentsMargins(10, 10, 10, 10)
self.label = QLabel("正在深入思考")
self.label.setStyleSheet("""
QLabel {
color: #666666;
font-size: 14px;
font-style: italic;
}
""")
layout.addWidget(self.label)
# 动画点
self.dots = []
for i in range(3):
dot = QLabel("●")
dot.setStyleSheet("""
QLabel {
color: #a8d8a8;
font-size: 16px;
}
""")
self.dots.append(dot)
layout.addWidget(dot)
layout.addStretch()
def setup_animation(self):
"""设置动画"""
self.animation_timer = QTimer()
self.animation_timer.timeout.connect(self.animate_dots)
self.animation_step = 0
def start_thinking(self):
"""开始思考动画"""
self.show()
self.animation_timer.start(500) # 每500ms更新一次
def stop_thinking(self):
"""停止思考动画"""
self.animation_timer.stop()
self.hide()
def animate_dots(self):
"""动画点"""
for i, dot in enumerate(self.dots):
if i == self.animation_step % 3:
dot.setStyleSheet("""
QLabel {
color: #a8d8a8;
font-size: 16px;
}
""")
else:
dot.setStyleSheet("""
QLabel {
color: #e0e0e0;
font-size: 16px;
}
""")
self.animation_step += 1 | 29,524 | custom_window | py | en | python | code | {"qsc_code_num_words": 2672, "qsc_code_num_chars": 29524.0, "qsc_code_mean_word_length": 5.66317365, "qsc_code_frac_words_unique": 0.20247006, "qsc_code_frac_chars_top_2grams": 0.01962728, "qsc_code_frac_chars_top_3grams": 0.02379064, "qsc_code_frac_chars_top_4grams": 0.02061856, "qsc_code_frac_chars_dupe_5grams": 0.43398097, "qsc_code_frac_chars_dupe_6grams": 0.34787206, "qsc_code_frac_chars_dupe_7grams": 0.32804652, "qsc_code_frac_chars_dupe_8grams": 0.28079566, "qsc_code_frac_chars_dupe_9grams": 0.24636532, "qsc_code_frac_chars_dupe_10grams": 0.22799366, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0246443, "qsc_code_frac_chars_whitespace": 0.3691573, "qsc_code_size_file_byte": 29524.0, "qsc_code_num_lines": 878.0, "qsc_code_num_chars_line_max": 209.0, "qsc_code_num_chars_line_mean": 33.62642369, "qsc_code_frac_chars_alphabet": 0.78743624, "qsc_code_frac_chars_comments": 0.03874814, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.43949045, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.01910828, "qsc_code_frac_chars_string_length": 0.27192139, "qsc_code_frac_chars_long_word_length": 0.0157001, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.06687898, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.02388535, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.11942675, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007revad/Synology_CPU_temperature | syno_cpu_temp.sh | #!/usr/bin/env bash
#----------------------------------------------------------
# Display CPU temperature and each core's temperature
#
# Github: https://github.com/007revad/Synology_CPU_temp
# Script verified at https://www.shellcheck.net/
#----------------------------------------------------------
scriptver="v2.3.9"
script=Synology_CPU_temp
repo="007revad/Synology_CPU_temp"
scriptname=syno_cpu_temp
# Show script version
#echo -e "$script $scriptver\ngithub.com/$repo\n"
echo "$script $scriptver"
# Get NAS model
model=$(cat /proc/sys/kernel/syno_hw_version)
# Get DSM full version
productversion=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION productversion)
buildphase=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildphase)
buildnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildnumber)
smallfixnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION smallfixnumber)
# Show DSM full version and model
if [[ $buildphase == GM ]]; then buildphase=""; fi
if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi
echo -e "${model} DSM $productversion-$buildnumber$smallfix $buildphase"
# Show CPU arch
synogetkeyvalue /etc.defaults/synoinfo.conf unique
# Get DSM major version
dsm=$(get_key_value /etc.defaults/VERSION majorversion)
# Read variables from syno_cpu_temp.conf
if [[ -f $(dirname -- "$0";)/${scriptname}.conf ]];then
Log_Directory=$(synogetkeyvalue "$(dirname -- "$0";)/${scriptname}.conf" Log_Directory)
Log=$(synogetkeyvalue "$(dirname -- "$0";)/${scriptname}.conf" Log)
else
echo "${scriptname}.conf file missing!"
exit 1
fi
# Check if backup directory exists
if [[ ${Log,,} == "yes" ]]; then
if [[ ! -d $Log_Directory ]]; then
echo -e "\nWARNING Log directory not found: $Log_Directory"
echo -e "Check your setting in syno_cpu_temp.conf\n"
exit 1
else
echo -e "Logging to $Log_Directory\n"
now="$(date +"%Y-%m-%d %H:%M:%S") - "
Log_File="${Log_Directory}/${scriptname}.log"
fi
fi
#------------------------------------------------------------------------------
# Check latest release with GitHub API
# Get latest release info
# Curl timeout options:
# https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
#release=$(curl --silent -m 10 --connect-timeout 5 \
# "https://api.github.com/repos/$repo/releases/latest")
# Use wget to avoid installing curl in Ubuntu
release=$(wget -qO- -q --connect-timeout=5 \
"https://api.github.com/repos/$repo/releases/latest")
# Release version
tag=$(echo "$release" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
#shorttag="${tag:1}"
if ! printf "%s\n%s\n" "$tag" "$scriptver" |
sort --check=quiet --version-sort >/dev/null ; then
echo -e "\nThere is a newer version of this script available." |& tee -a "$Log_File"
echo -e "Current version: ${scriptver}\nLatest version: $tag" |& tee -a "$Log_File"
fi
#------------------------------------------------------------------------------
pad_len(){
#echo ${1} # debug
#echo ${#1} # debug
if [[ ${#1} -eq "1" ]]; then
pad=" "
elif [[ ${#1} -eq "2" ]]; then
pad=" "
else
pad=""
fi
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
pad_len_amd(){
#echo ${1} # debug
#echo ${#1} # debug
# AMD k10 temps can have 3 decimal places
if [[ ${#1} -eq "1" ]]; then
pad=" "
elif [[ ${#1} -eq "2" ]]; then
pad=" "
elif [[ ${#1} -eq "3" ]]; then
pad=" "
elif [[ ${#1} -eq "4" ]]; then
pad=" "
elif [[ ${#1} -eq "5" ]]; then
pad=" "
elif [[ ${#1} -eq "6" ]]; then
pad=" "
else
pad=""
fi
}
c2f(){
# Celsius to Fahrenheit
# F = (C x 9/5) + 32
local a
local b
a=$(echo "${1%.*}" | awk '{print ($1 * 1.8)}')
#echo "a: $a" # debug
if [[ $1 == *.* ]]; then
d="${1##*.}"
fi
if [[ ${#d} -eq 1 ]]; then
b=$(echo "${1##*.}" | awk '{print (($1 * 1.8) / 10)}')
elif [[ ${#d} -eq 2 ]]; then
b=$(echo "${1##*.}" | awk '{print (($1 * 1.8) / 100)}')
elif [[ ${#d} -eq 3 ]]; then
b=$(echo "${1##*.}" | awk '{print (($1 * 1.8) / 1000)}')
fi
#echo "b: $b" # debug
if [[ -n $b ]]; then
f=$(echo "$a" "$b" | awk '{print (($1 + $2) + 32)}')
else
f=$(echo "$a" | awk '{print ($1 + 32)}')
fi
#echo "f: $f" # debug
echo "$f"
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
f2c(){
# Fahrenheit to Celsius - not used
# C = (F - 32) x 5/9
#c=$(($((1 -32)) * 1.8))
echo "$f"
}
# Get CPU model
cpu_model=$(grep -E '^model name' /proc/cpuinfo | uniq | cut -d":" -f2 | xargs)
if [[ -z $cpu_model ]]; then
cpu_model=$(grep -E '^Processor' /proc/cpuinfo | uniq | cut -d":" -f2 | xargs)
fi
if [[ -z $cpu_model ]]; then
cpu_model=$(synogetkeyvalue /etc.defaults/synoinfo.conf unique | cut -d"_" -f2)
fi
# Failed to get CPU model
if [[ -z $cpu_model ]]; then
echo "Your CPU is not supported yet." |& tee -a "$Log_File"
echo "Create a Github issue to get your CPU added." |& tee -a "$Log_File"
exit
fi
# Get CPU max temp (high threshold)
max=$(grep . /sys/class/hwmon/hwmon*/temp*_max 2>/dev/null | cut -d":" -f2 | uniq)
crit=$(grep . /sys/class/hwmon/hwmon*/temp*_crit 2>/dev/null | cut -d":" -f2 | uniq)
marvl=$(cat /sys/class/hwmon/hwmon0/device/temp1_max 2>/dev/null)
if [[ -n $max ]]; then
#maxtemp="Max temp threshold: $((max /1000))°C $(c2f $((max /1000)))°F"
pad_len "$((max /1000))"
max_temp="$((max /1000))°C"
max_tempf="$(c2f $((max /1000)))°F"
elif [[ -n $crit ]]; then
#maxtemp="Critical threshold: $((crit /1000))°C $(c2f $((crit /1000)))°F"
pad_len "$((crit /1000))"
max_temp="$((crit /1000))°C"
max_tempf="$(c2f $((crit /1000)))°F"
elif [[ -n $marvl ]]; then
#maxtemp="Max temp threshold: ${marvl}°C $(c2f "$marvl")°F"
pad_len "$marvl"
max_temp="${marvl}°C"
max_tempf="$(c2f "$marvl")°F"
fi
if [[ ${max}${crit}${marvl} ]]; then
maxtemp="Max temp threshold: $max_temp $pad $max_tempf"
fi
# Get DSM shutdown temp
# Old style scemd.xml
sdt1=$(grep -i shutdown /usr/syno/etc.defaults/scemd.xml |\
grep cpu_temperature | uniq | cut -d">" -f2 | cut -d"<" -f1)
# New style scemd.xml
sdt2=$(grep -i shutdown_temp /usr/syno/etc.defaults/scemd.xml |\
grep cpu | uniq | awk '{print $(NF-1)}' | cut -d"\"" -f2)
#echo "sdt1: $sdt1" # debug
#echo "sdt2: $sdt2" # debug
#sdt2="123" # debug test 3 digit temp toasty
#sdt2="9" # debug test 1 digit temp brrr!
if [[ -n $sdt1 ]]; then
pad_len "$sdt1"
shutdown_temp="${sdt1}°C"
shutdown_tempf="$(c2f "$sdt1")°F"
elif [[ -n $sdt2 ]]; then
pad_len "$sdt2"
shutdown_temp="${sdt2}°C"
shutdown_tempf="$(c2f "$sdt2")°F"
fi
if [[ ${Log,,} == "yes" ]]; then
# Add header to log if log file does not already exist
if [[ ! -f "$Log_File" ]]; then
echo "$script $scriptver" > "$Log_File"
echo -e "${model} DSM $productversion-$buildnumber$smallfix $buildphase" >> "$Log_File"
# Log CPU model
#echo >> "$Log_File"
if [[ -n $cpu_model ]]; then
echo "$cpu_model" >> "$Log_File"
else
echo "Unknown CPU model" >> "$Log_File"
fi
# Log CPU max temp (high threshold)
if [[ -n $maxtemp ]]; then echo "$maxtemp" >> "$Log_File"; fi
# Log DSM shutdown temp
if [[ -n $shutdown_temp ]]; then
echo "DSM shutdown Temp: $shutdown_temp $pad $shutdown_tempf" >> "$Log_File"
fi
echo "" >> "$Log_File"
fi
else
echo ""
Log_File="/dev/null"
fi
# Get CPU vendor & set style
if grep Intel /proc/cpuinfo >/dev/null; then
vendor="Intel"
style="intel"
elif grep AMD /proc/cpuinfo >/dev/null; then
vendor="AMD"
style="amd"
elif grep Realtek /proc/cpuinfo >/dev/null; then
vendor="Realtek"
style="realtek"
elif [[ $cpu_model == "rtd1619b" ]]; then
vendor="Realtek"
style="realtek"
elif grep Marvell /proc/cpuinfo >/dev/null; then
vendor="Marvell"
style="marvell"
elif grep Annapurna /proc/cpuinfo >/dev/null; then
vendor="Annapurna"
style="intel"
elif grep STM /proc/cpuinfo >/dev/null; then
vendor="STM"
style="intel"
elif grep Mindspeed /proc/cpuinfo >/dev/null; then
vendor="Mindspeed"
style="intel"
elif grep Freescale /proc/cpuinfo >/dev/null; then
vendor="Freescale"
style="intel"
else
vendor="$(grep 'vendor_id' /proc/cpuinfo | uniq | cut -d":" -f2 | xargs)"
fi
supported_vendors=("intel" "amd" "realtek" "marvell" "annapurna" "stm" "mindspeed" "freescale")
if [[ ! ${supported_vendors[*]} =~ ${vendor,,} ]]; then
echo "$vendor not supported yet." |& tee -a "$Log_File"
echo "Create a Github issue to get $vendor CPUs added." |& tee -a "$Log_File"
exit
fi
# Show CPU model
grep 'model name' /proc/cpuinfo | uniq | cut -d":" -f2 | xargs
# Show CPU max temp (high threshold)
if [[ -n $maxtemp ]]; then echo "$maxtemp"; fi
# Show DSM shutdown temp
if [[ -n $shutdown_temp ]]; then
echo "DSM shutdown Temp: $shutdown_temp $pad $shutdown_tempf"
fi
# Get number of CPUs
cpu_qty=$(grep 'physical id' /proc/cpuinfo | uniq | awk '{printf $4}')
#cpu_qty=$((cpu_qty +1)) # test multiple CPUs
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
show_cpu_number(){
# echo [CPU 0] or [CPU 1] etc if more than 1 CPU
if [[ $cpu_qty -gt "0" ]]; then
# Show CPU number
echo -en "\n${now}" >> "$Log_File"
echo -e "[CPU $c]" >> "$Log_File"
echo -e "\n[CPU $c]"
else
#if [[ ${vendor,,} != "amd" ]]; then
#echo "" |& tee -a "$Log_File"
echo ""
#fi
fi
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
show_intel_temps(){
# $1 for DSM 7 is "/sys/class/hwmon/hwmon"
# $1 for DSM 6 is "/sys/bus/platform/devices/coretemp."
# $2 is "/device" or null
c=0
while [[ ! $c -gt $cpu_qty ]]; do
show_cpu_number
x=1
while [ "$x" -lt $(($(nproc) +2)) ]; do
# Show core $x temp for CPU $c
if [ -f "${1}$c${2}/temp${x}_input" ]; then
echo -n "${now}" >> "$Log_File"
if [ -f "${1}$c${2}/temp${x}_label" ]; then
printf %s "$(cat "${1}$c${2}/temp${x}_label"): " |& tee -a "$Log_File"
else
# Some Intel CPUs don't have tempN_label
echo -n "Core $((x -1)): " |& tee -a "$Log_File"
fi
ctmp="$(awk '{printf $1/1000}' "${1}$c${2}/temp${x}_input")"
ftmp="$(c2f "$ctmp")"
echo "${ctmp}°C ${ftmp}°F" |& tee -a "$Log_File"
fi
x=$((x +1))
done
c=$((c +1))
done
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
show_amd_temps(){
# $1 for DSM 7 is "/sys/class/hwmon/hwmon"
# $1 for DSM 6 is "/sys/bus/platform/devices/coretemp."
c=0
while [[ ! $c -gt $cpu_qty ]]; do
show_cpu_number
# Show k10temp
if [[ -f "${1}$c/name" ]]; then
echo -n "${now}" >> "$Log_File"
printf %s "$(cat "${1}$c/name"): " |& tee -a "$Log_File"
#ctmp="$(awk '{printf $1/1000}' "${1}$c/temp1_input")"
#ftmp="$(c2f "$ctmp")"
#echo "${ctmp}°C ${ftmp}°F" |& tee -a "$Log_File"
ctmp1="$(awk '{printf $1/1000}' "${1}$c/temp1_input")"
pad_len_amd "$ctmp1"
ctmp="${ctmp1}°C"
ftmp="$(c2f "$ctmp")°F"
# Show k10 temp
echo "$ctmp $ftmp"
# Log k10 temp
echo "$ctmp $pad $ftmp" >> "$Log_File"
fi
c=$((c +1))
done
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
show_marvell_temps(){
# $1 for DSM 7 is "/sys/class/hwmon/hwmon0/device"
# $1 for DSM 6 is "/sys/bus/platform/devices/coretemp." ???
# Show T-junction temp
if [[ -f "${1}/temp1_label" ]]; then
echo -n "${now}" >> "$Log_File"
printf %s "$(cat "${1}/temp1_label"): " |& tee -a "$Log_File"
ctmp="$(printf %s "$(cat "${1}/temp1_input")")"
ftmp="$(c2f "$ctmp")"
echo "${ctmp}°C ${ftmp}°F" |& tee -a "$Log_File"
fi
}
# shellcheck disable=SC2329 # Don't warn This function is never invoked
# shellcheck disable=SC2317 # Don't warn Command appears unreachable
show_realtek_temps(){
# $1 for DSM 7 is "/sys/class/hwmon/hwmon0/device"
# $1 for DSM 6 is "/sys/bus/platform/devices/coretemp." ???
# Show cpu_thermal temp
if [[ -f "${1}/type" ]]; then
echo -n "${now}" >> "$Log_File"
printf %s "$(cat "${1}/type"): " |& tee -a "$Log_File"
ctmp1="$(awk '{printf $1/1000}' "${1}/temp")"
pad_len_amd "$ctmp1"
ctmp="${ctmp1}°C"
ftmp="$(c2f "$ctmp")°F"
# Show k10 temp
echo "$ctmp $ftmp"
# Log k10 temp
echo "$ctmp $pad $ftmp" >> "$Log_File"
fi
}
if [[ $dsm -ge "6" ]]; then
if [[ $style == "realtek" ]]; then
show_"${style}"_temps "/sys/class/thermal/thermal_zone0"
elif [[ $style == "marvell" ]]; then
show_"${style}"_temps "/sys/class/hwmon/hwmon0/device"
else
if [[ -f "/sys/class/hwmon/hwmon0/device/temp2_input" ]]; then
device="/device"
fi
show_"${style}"_temps "/sys/class/hwmon/hwmon" "$device"
fi
else
echo "Unknown or unsupported DSM version ${dsm}!" |& tee -a "$Log_File"
fi
echo ""
exit
| 14,153 | syno_cpu_temp | sh | en | shell | code | {"qsc_code_num_words": 1959, "qsc_code_num_chars": 14153.0, "qsc_code_mean_word_length": 3.94333844, "qsc_code_frac_words_unique": 0.14344053, "qsc_code_frac_chars_top_2grams": 0.03262136, "qsc_code_frac_chars_top_3grams": 0.01449838, "qsc_code_frac_chars_top_4grams": 0.02278317, "qsc_code_frac_chars_dupe_5grams": 0.54200647, "qsc_code_frac_chars_dupe_6grams": 0.48699029, "qsc_code_frac_chars_dupe_7grams": 0.38304207, "qsc_code_frac_chars_dupe_8grams": 0.33644013, "qsc_code_frac_chars_dupe_9grams": 0.30265372, "qsc_code_frac_chars_dupe_10grams": 0.28543689, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.03258028, "qsc_code_frac_chars_whitespace": 0.24312867, "qsc_code_size_file_byte": 14153.0, "qsc_code_num_lines": 442.0, "qsc_code_num_chars_line_max": 96.0, "qsc_code_num_chars_line_mean": 32.02036199, "qsc_code_frac_chars_alphabet": 0.68614638, "qsc_code_frac_chars_comments": 0.2942839, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.39857651, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.2711525, "qsc_code_frac_chars_long_word_length": 0.03524582, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_CPU_temperature | how_to_schedule.md | # How to schedule a script in Synology Task Scheduler
To schedule a script to run on your Synology at boot-up or shutdown follow these steps:
**Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Scheduled Task**.
2. Select **User-defined script**.
3. Enter a task name.
4. Leave **Enable** ticked.
5. Click **Schedule** and set a schedule.
6. Click **Task Settings**.
7. Optionally you can tick **Send run details by email** then enter your email address.
8. In the box under **User-defined script** type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type: **/volume1/scripts/syno_cpu_temp.sh**
9. Click **OK** to save the settings.
Here's some screenshots showing what needs to be set:
<p align="leftr"><img src="images/schedule1.png"></p>
<p align="leftr"><img src="images/schedule2.png"></p>
<p align="leftr"><img src="images/schedule3.png"></p>
<p align="leftr"><img src="images/schedule4.png"></p>
| 1,162 | how_to_schedule | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.22866894, "qsc_doc_num_sentences": 27.0, "qsc_doc_num_words": 200, "qsc_doc_num_chars": 1162.0, "qsc_doc_num_lines": 26.0, "qsc_doc_mean_word_length": 4.115, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.525, "qsc_doc_entropy_unigram": 4.36387557, "qsc_doc_frac_words_all_caps": 0.00341297, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.0291616, "qsc_doc_frac_chars_top_3grams": 0.05346294, "qsc_doc_frac_chars_top_4grams": 0.06804374, "qsc_doc_frac_chars_dupe_5grams": 0.12636695, "qsc_doc_frac_chars_dupe_6grams": 0.12636695, "qsc_doc_frac_chars_dupe_7grams": 0.09842041, "qsc_doc_frac_chars_dupe_8grams": 0.09842041, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 20.94339623, "qsc_doc_frac_chars_hyperlink_html_tag": 0.18244406, "qsc_doc_frac_chars_alphabet": 0.82533197, "qsc_doc_frac_chars_digital": 0.01532176, "qsc_doc_frac_chars_whitespace": 0.15748709, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Clear_Drive_Error | syno_clear_drive_error.sh | #!/usr/bin/env bash
#------------------------------------------------------------------------------
# Clear drive critical errors so DSM will let you use the drive
#
# GitHub: https://github.com/007revad/Synology_clear_drive_error
# Script verified at https://www.shellcheck.net/
#
# To run in a shell (replace /volume1/scripts/ with path to script):
# sudo /volume1/scripts/syno_clear_drive_error.sh
#------------------------------------------------------------------------------
# References:
# https://new.reddit.com/r/synology/comments/1cdco8a/critical_drive_error/
# https://community.synology.com/enu/forum/1/post/151784?page=1&sort=oldest
#
# https://www.squash.io/executing-multiple-sqlite-statements-in-bash-scripts-on-linux/
# https://www.tutorialspoint.com/sqlite/sqlite_and_or_clauses.htm
#------------------------------------------------------------------------------
file="/var/log/synolog/.SYNODISKDB"
msg="status_critical"
level="err"
scriptver="v1.0.3"
script=Synology_Clear_Drive_Error
repo="007revad/Synology_Clear_Drive_Error"
# Show script version
#echo -e "$script $scriptver\ngithub.com/$repo\n"
echo "$script $scriptver"
# Shell Colors
#Black='\e[0;30m' # ${Black}
#Red='\e[0;31m' # ${Red}
#Green='\e[0;32m' # ${Green}
#Yellow='\e[0;33m' # ${Yellow}
#Blue='\e[0;34m' # ${Blue}
#Purple='\e[0;35m' # ${Purple}
Cyan='\e[0;36m' # ${Cyan}
#White='\e[0;37m' # ${White}
Error='\e[41m' # ${Error}
Off='\e[0m' # ${Off}
ding(){
printf \\a
}
# Check script is running as root
if [[ $( whoami ) != "root" ]]; then
ding
echo -e "\n${Error}ERROR${Off} This script must be run as sudo or root!\n"
exit 1 # Not running as root
fi
if [[ ! -f "$file" ]]; then
ding
echo -e "\n${Error}ERROR${Off} $file not found!\n"
exit 1
fi
#------------------------------------------------------------------------------
# Check latest release with GitHub API
# Get latest release info
# Curl timeout options:
# https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
#release=$(curl --silent -m 10 --connect-timeout 5 \
# "https://api.github.com/repos/$repo/releases/latest")
# Use wget to avoid installing curl in Ubuntu
release=$(wget -qO- -q --connect-timeout=5 \
"https://api.github.com/repos/$repo/releases/latest")
# Release version
tag=$(echo "$release" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
#shorttag="${tag:1}"
if ! printf "%s\n%s\n" "$tag" "$scriptver" |
sort --check=quiet --version-sort >/dev/null ; then
echo -e "\n${Cyan}There is a newer version of this script available.${Off}"
echo -e "Current version: ${scriptver}\nLatest version: $tag"
fi
#------------------------------------------------------------------------------
# Assign status_critical entries to array
readarray -t tmp_array < <(sqlite3 "${file}" <<EOF
SELECT * FROM logs WHERE level ="${level}" AND msg ="${msg}";
.quit
EOF
)
# Get number of status_critical entries found
found="${#tmp_array[@]}"
# Assign drive|serial to array
for e in "${tmp_array[@]}"; do
c=$(echo "$e" | cut -d"|" -f5-6)
if [[ $c != "|" ]]; then
new_array+=("$c")
fi
done
# Sort array into new array to remove duplicates
if [[ ${#new_array[@]} -gt "0" ]]; then
while IFS= read -r -d '' x; do
sorted_array+=("$x")
done < <(printf "%s\0" "${new_array[@]}" | sort -uz)
fi
if [[ ${#sorted_array[@]} -lt 1 ]]; then
# Exit if no status_critical entries found
echo -e "\n${#sorted_array[@]} $msg entries found\n"
exit 1
else
# Show number of status_critical entries found
echo -e "\n$found $msg entries found"
fi
# Let user select drive
echo -e "\n[Drive Model|Serial Number]"
PS3="Select the drive: "
select choice in "${sorted_array[@]}"; do
case "$choice" in
Quit)
exit
;;
*\|*)
model=$(echo "$choice" | cut -d"|" -f1)
serial=$(echo "$choice" | cut -d"|" -f2)
echo -e "You selected ${Cyan}$model${Off} with serial number ${Cyan}$serial${Off}"
break
;;
*)
ding
echo -e "Invalid choice!"
;;
esac
done
# Delete matching entries of selected drive
echo -e "\nEditing sqlite database"
sqlite3 "${file}" <<EOF
DELETE FROM logs WHERE level ="${level}" AND msg ="${msg}" AND serial ="${serial}";
.quit
EOF
code="$?"
echo -e "sqlite3 exit code: $code"
#echo -e "\nserial: $serial\n" # debug
# Get remaining number of status_critical entries
readarray -t edited_array < <(sqlite3 "${file}" <<EOF
SELECT * FROM logs WHERE level ="${level}" AND msg ="${msg}";
.quit
EOF
)
#echo -e "\nfound: $found" # debug
#echo "after edit: ${#edited_array[@]}" # debug
#echo "edited: $((found -${#edited_array[@]}))" # debug
# Show result
#echo "${#edited_array[@]} entries after deletion"
if [[ $found -gt "${#edited_array[@]}" ]]; then
deleted=$((found -${#edited_array[@]}))
if [[ $deleted -eq "0" ]]; then
echo -e "\n$deleted $msg entry deleted"
else
echo -e "\n$deleted $msg entries deleted"
fi
echo -e "\nYou can now use ${Cyan}$model${Off} with serial number ${Cyan}$serial${Off}"
echo -e "\nIf Storage Manager is already open, close it then open it again.\n"
else
echo -e "\nNo staus_critical entries were deleted!"
echo -e "\n${#edited_array[@]} $msg entries remain\n"
fi
exit
| 5,420 | syno_clear_drive_error | sh | en | shell | code | {"qsc_code_num_words": 725, "qsc_code_num_chars": 5420.0, "qsc_code_mean_word_length": 4.23310345, "qsc_code_frac_words_unique": 0.34068966, "qsc_code_frac_chars_top_2grams": 0.0342131, "qsc_code_frac_chars_top_3grams": 0.01759531, "qsc_code_frac_chars_top_4grams": 0.02248289, "qsc_code_frac_chars_dupe_5grams": 0.20690779, "qsc_code_frac_chars_dupe_6grams": 0.16682959, "qsc_code_frac_chars_dupe_7grams": 0.15314435, "qsc_code_frac_chars_dupe_8grams": 0.13229065, "qsc_code_frac_chars_dupe_9grams": 0.10426849, "qsc_code_frac_chars_dupe_10grams": 0.07754969, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.01696065, "qsc_code_frac_chars_whitespace": 0.18413284, "qsc_code_size_file_byte": 5420.0, "qsc_code_num_lines": 181.0, "qsc_code_num_chars_line_max": 95.0, "qsc_code_num_chars_line_mean": 29.94475138, "qsc_code_frac_chars_alphabet": 0.6770692, "qsc_code_frac_chars_comments": 0.45073801, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.3125, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.01041667, "qsc_code_frac_chars_string_length": 0.40288978, "qsc_code_frac_chars_long_word_length": 0.04939516, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_Clear_Drive_Error | README.md | # Synology Clear Drive Error
<a href="https://github.com/007revad/Synology_Clear_Drive_Error/releases"><img src="https://img.shields.io/github/release/007revad/Synology_Clear_Drive_Error.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Clear [critical drive errors](critical-drive.md) so DSM will let you use the drive
If DSM decides a drive is critical DSM stores "status critical" in a database and will not let you use the drive again. If you run an extended S.M.A.R.T. test on the drive in a computer and it says there is nothing wrong with the drive DSM will still refuse to let you use the drive. You can use this script on the Synology to delete that drive's "status critical" entries from DSM's database. Then DSM will let you use the drive again.
**NOTE** The script does **not** fix a faulty drive.
### If this script does not work use the following method:
**NAS with hotswap drive bays:**
1. Open Storage Manager and select the drive.
2. Click on Actions then select Deactivate.
3. Remove the drive from the NAS.
4. Reboot.
5. Insert the drive.
6. Open Storage Manager and click on Repair.
7. Select the drive, click Next then Repair.
**NVMe drives or NAS without hotswap drive bays:**
1. Open Storage Manager and select the drive.
2. Click on Actions then select Deactivate.
3. Shut down the NAS.
4. Remove the drive from the NAS.
5. Boot the NAS.
6. Shut down the NAS.
7. Insert the drive.
8. Boot the NAS.
9. Open Storage Manager and click on Repair.
10. Select the drive, click Next then Repair.
## Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_clear_drive_error/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.
## How to run the script
### Run the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
Run the script:
```bash
sudo -s /volume1/scripts/syno_clear_drive_error.sh
```
> **Note** <br>
> Replace /volume1/scripts/ with the path to where the script is located.
### After running the script
If Storage Manager is already open, close it and then open it again.
## Screenshots
<p align="center">Clearing critical error for 2 drives</p>
<p align="center"><img src="/images/script-4.png"></p>
| 2,914 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.20226308, "qsc_doc_num_sentences": 84.0, "qsc_doc_num_words": 497, "qsc_doc_num_chars": 2914.0, "qsc_doc_num_lines": 69.0, "qsc_doc_mean_word_length": 4.39839034, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.37826962, "qsc_doc_entropy_unigram": 4.77067177, "qsc_doc_frac_words_all_caps": 0.04243281, "qsc_doc_frac_lines_dupe_lines": 0.08333333, "qsc_doc_frac_chars_dupe_lines": 0.06190644, "qsc_doc_frac_chars_top_2grams": 0.05123513, "qsc_doc_frac_chars_top_3grams": 0.04117109, "qsc_doc_frac_chars_top_4grams": 0.042086, "qsc_doc_frac_chars_dupe_5grams": 0.30878317, "qsc_doc_frac_chars_dupe_6grams": 0.28682525, "qsc_doc_frac_chars_dupe_7grams": 0.25251601, "qsc_doc_frac_chars_dupe_8grams": 0.12900274, "qsc_doc_frac_chars_dupe_9grams": 0.12900274, "qsc_doc_frac_chars_dupe_10grams": 0.08051235, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 18.05228758, "qsc_doc_frac_chars_hyperlink_html_tag": 0.30233356, "qsc_doc_frac_chars_alphabet": 0.83293932, "qsc_doc_frac_chars_digital": 0.02836879, "qsc_doc_frac_chars_whitespace": 0.12903226, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
0015/Grid_Board | README.md | # Grid Board Project
Grid Board is an advanced, large-screen animated character display system based on the **ESP32-P4** platform. This project leverages the **DSI interface** of ESP32-P4 to drive a 10.1" LCD panel at high speed, allowing smooth, visually impressive character animations—including emoji—across a 12×5 grid.
<div align="center">
[](https://youtu.be/5czM1kHfi98)
<p>ESP32-P4 Grid Board: BLE Text UI on a 10.1" Display (LVGL + Flutter App)</p>
</div>
---
## Features
- **12×5 grid** for displaying custom characters, numbers, and emoji
- **Animated "card falling" effect** for character updates
- **Unicode & emoji support** via hand-curated font sets
- **BLE communications** using [NimBLE](https://docs.espressif.com/projects/esp-idf/en/latest/esp32/api-reference/bluetooth/nimble/index.html) stack (see below)
- **DSI high-speed screen refresh** for flicker-free animations on large LCDs
- **Touch support** (GT911) and optional sound effect playback (ES8311, card.pcm)
---
## Hardware & Architecture
- **Main Board:** [Waveshare ESP32-P4 Nano](https://www.waveshare.com/esp32-p4-nano.htm)
- **Display:** 10.1” JD9365 LCD panel, driven via MIPI DSI
- **Touch Panel:** GT911 via I2C
- **BLE Connectivity:**
- ESP32-P4 lacks native Bluetooth/Wi-Fi
- BLE is enabled by connecting an **ESP32-C6** via **SDIO** using [esp-hosted](https://github.com/espressif/esp-hosted) and [esp_wifi_remote](https://github.com/espressif/esp-hosted/tree/main/components/esp_wifi_remote)
- Firmware uses **NimBLE** stack for robust BLE GATT server implementation
---
## Major Components Used
- `ESP-IDF` **v5.4.2** (project developed and tested with this version)
- `lvgl/lvgl` **v9.2.\***: UI, animation, and grid rendering
- `waveshare/esp_lcd_jd9365_10_1`: LCD panel driver
- `waveshare/esp32_p4_nano`: Board support package
- `esp_lcd_touch_gt911`: Touch controller
- `espressif/esp_hosted` & `esp_wifi_remote`: BLE over SDIO
- `espressif/es8311`: Optional I2S sound
- **Custom fonts:** `ShareTech140.c` (pixel mono), `NotoEmoji64.c` (emoji set)
See [`idf_component.yml`](idf_component.yml) for full dependency list.
---
## Custom Character & Emoji Rendering
A major highlight of Grid Board is the **custom-designed character set**:
- **Character Set:** Includes all uppercase English letters, digits, common punctuation, and hand-picked emoji.
- **Font Creation:** The main grid font (`ShareTech140`) is pixel-based, optimized for readability at large sizes on the LCD.
- **Emoji Support:** Emoji glyphs from [Noto Emoji](https://fonts.google.com/noto/specimen/Noto+Emoji) are rasterized into a separate C array, with efficient lookups for fast drawing.
This careful curation and rasterization allow for:
- Lightning-fast grid updates (no glyph loading at runtime)
- Consistent style and alignment across the grid
- Rendering even on resource-constrained MCUs
---
## Animation Technique: Card Falling Effect
The signature animation is the **"card falling"** transition when updating grid characters.
### How it works:
1. **Grid Representation:** Each cell in the 12×5 grid holds a character or emoji, rendered via LVGL's canvas API for pixel-perfect control.
2. **Animation Trigger:** When a new message is received over BLE, each character or emoji is sequentially inserted into the grid, one by one, following the intended order of the message. The firmware determines the target grid slots for each character, and schedules an animation for each slot as it is updated.
3. **Card Fall Algorithm:**
- A "card" representing the next character or emoji is created above the target grid slot.
- Using LVGL’s animation system, the card’s Y position is animated from above the slot down into place, using a linear or ease-in curve.
- Each column or cell may be animated independently or with a small delay for a staggered, dynamic effect.
- To optimize performance and avoid screen lag on large displays, the animation engine updates and animates only 10 slots at a time. Once the first batch of 10 slots completes its card-falling animation, the process continues with the next batch, repeating until the entire message is displayed. This batching approach ensures smooth and responsive animations even on high-resolution screens.
4. **Slot Completion:** When the falling card reaches the grid slot, it "lands" and replaces the previous content, possibly with a subtle bounce or sound.
5. **Efficient Redraw:** Only affected cells are updated, minimizing framebuffer operations—critical for large screens.
---
## BLE Communications (NimBLE, SDIO)
**Important:**
ESP32-P4 does **not** have built-in Wi-Fi or Bluetooth.
BLE functionality is achieved by:
- **Connecting ESP32-C6** as a slave over SDIO
- Running **esp-hosted** and **esp_wifi_remote** to expose Bluetooth to the main MCU
- Using **NimBLE** for a GATT server, so the board can receive messages, characters, and control commands from external BLE central devices (like a mobile app)
BLE integration is seamless for the user; the technical complexity is fully abstracted by this architecture.
---
## Build Structure
```bash
esp-idf_project/
├── main.cpp # Project entry point, grid logic
├── grid_board.cpp # Animation and display routines
├── ble_server.c # NimBLE BLE server logic
├── gatt_svr.c # BLE GATT service and characteristics
├── ShareTech140.c # Pixel font
├── NotoEmoji64.c # Emoji font
├── card.pcm # Optional sound effect
├── CMakeLists.txt # ESP-IDF build system configuration and source/component list
├── idf_component.yml # Component dependency manifest (external and internal components, versions)
├── sdkconfig # ESP-IDF project configuration (target, display size, memory, etc)
```
---
## Additional Notes
- The combination of **LVGL v9**'s animation engine and custom C array fonts enables smooth, high-fidelity graphics even for large-scale displays.
- All code and assets are tailored for performance and stability on Waveshare’s ESP32-P4 Nano platform.
- Touch input and audio feedback are supported but optional.
---
## Author
**Eric Nam**
GitHub: [@0015](https://github.com/0015)
YouTube: [@thatproject](https://youtube.com/@thatproject)
---
## Tags
`esp32-p4`, `grid-board`, `lvgl`, `emoji`, `ble`, `nimble`, `sdio`, `animation`, `display`, `waveshare`, `custom-font`, `pixel-art`
| 6,371 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16257225, "qsc_doc_num_sentences": 66.0, "qsc_doc_num_words": 949, "qsc_doc_num_chars": 6371.0, "qsc_doc_num_lines": 137.0, "qsc_doc_mean_word_length": 5.02528978, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.41306639, "qsc_doc_entropy_unigram": 5.49228568, "qsc_doc_frac_words_all_caps": 0.05130058, "qsc_doc_frac_lines_dupe_lines": 0.10638298, "qsc_doc_frac_chars_dupe_lines": 0.00483793, "qsc_doc_frac_chars_top_2grams": 0.01467813, "qsc_doc_frac_chars_top_3grams": 0.00922625, "qsc_doc_frac_chars_top_4grams": 0.0050325, "qsc_doc_frac_chars_dupe_5grams": 0.02201719, "qsc_doc_frac_chars_dupe_6grams": 0.02201719, "qsc_doc_frac_chars_dupe_7grams": 0.0, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 30.38916256, "qsc_doc_frac_chars_hyperlink_html_tag": 0.06906294, "qsc_doc_frac_chars_alphabet": 0.84625276, "qsc_doc_frac_chars_digital": 0.02314475, "qsc_doc_frac_chars_whitespace": 0.14550306, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/chat.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from dingtalk.client.api.base import DingTalkBaseAPI
from dingtalk.model.message import BodyBase
class Chat(DingTalkBaseAPI):
def create(self, name, owner, useridlist, show_history_type=False, searchable=0,
validation_type=0, mention_all_authority=0, chat_banned_type=0, management_type=0):
"""
创建会话
:param name: 群名称。长度限制为1~20个字符
:param owner: 群主userId,员工唯一标识ID;必须为该会话useridlist的成员之一
:param useridlist: 群成员列表,每次最多支持40人,群人数上限为1000
:param show_history_type: 新成员是否可查看聊天历史消息(新成员入群是否可查看最近100条聊天记录)
:param searchable: 群可搜索,0-默认,不可搜索,1-可搜索
:param validation_type: 入群验证,0:不入群验证(默认) 1:入群验证
:param mention_all_authority: @all 权限,0-默认,所有人,1-仅群主可@all
:param chat_banned_type: 群禁言,0-默认,不禁言,1-全员禁言
:param management_type: 管理类型,0-默认,所有人可管理,1-仅群主可管理
:return: 群会话的id
"""
return self._post(
'/chat/create',
{
'name': name,
'owner': owner,
'useridlist': useridlist,
'showHistoryType': 1 if show_history_type else 0,
'chatBannedType': chat_banned_type,
'searchable': searchable,
'validationType': validation_type,
'mentionAllAuthority': mention_all_authority,
'managementType': management_type
},
result_processor=lambda x: x['chatid']
)
def update(self, chatid, name=None, owner=None, add_useridlist=(), del_useridlist=(), icon='', chat_banned_type=0,
searchable=0, validation_type=0, mention_all_authority=0, show_history_type=False, management_type=0):
"""
修改会话
:param chatid: 群会话的id
:param name: 群名称。长度限制为1~20个字符,不传则不修改
:param owner: 群主userId,员工唯一标识ID;必须为该会话成员之一;不传则不修改
:param add_useridlist: 添加成员列表,每次最多支持40人,群人数上限为1000
:param del_useridlist: 删除成员列表,每次最多支持40人,群人数上限为1000
:param icon: 群头像mediaid
:param chat_banned_type: 群禁言,0-默认,不禁言,1-全员禁言
:param searchable: 群可搜索,0-默认,不可搜索,1-可搜索
:param validation_type: 入群验证,0:不入群验证(默认) 1:入群验证
:param mention_all_authority: @all 权限,0-默认,所有人,1-仅群主可@all
:param show_history_type: 新成员是否可查看聊天历史消息(新成员入群是否可查看最近100条聊天记录)
:param management_type: 管理类型,0-默认,所有人可管理,1-仅群主可管理
:return:
"""
return self._post(
'/chat/update',
{
'chatid': chatid,
'name': name,
'owner': owner,
'add_useridlist': add_useridlist,
'del_useridlist': del_useridlist,
'icon': icon,
'chatBannedType': chat_banned_type,
'searchable': searchable,
'validationType': validation_type,
'mentionAllAuthority': mention_all_authority,
'showHistoryType': 1 if show_history_type else 0,
'managementType': management_type
}
)
def get(self, chatid):
"""
获取会话
:param chatid: 群会话的id
:return: 群会话信息
"""
return self._get(
'/chat/get',
{'chatid': chatid},
result_processor=lambda x: x['chat_info']
)
def send(self, chatid, msg_body):
"""
发送群消息
:param chatid: 群会话的id
:param msg_body: BodyBase 消息体
:return: 加密的消息id
"""
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msg_body['chatid'] = chatid
return self._post(
'/chat/send',
msg_body,
result_processor=lambda x: x['messageId']
)
def get_read_list(self, message_id, cursor=0, size=100):
"""
查询群消息已读人员列表
:param message_id: 发送群消息接口返回的加密消息id
:param cursor: 分页查询的游标,第一次传0,后续传返回结果中的next_cursor。返回结果中没有next_cursor时,表示没有后续的数据了
:param size: 分页查询的大小,最大可以传100
:return:
"""
return self._get(
'/chat/getReadList',
{"messageId": message_id, "cursor": cursor, "size": size}
)
| 4,237 | chat | py | zh | python | code | {"qsc_code_num_words": 641, "qsc_code_num_chars": 4237.0, "qsc_code_mean_word_length": 3.72074883, "qsc_code_frac_words_unique": 0.2574103, "qsc_code_frac_chars_top_2grams": 0.01006289, "qsc_code_frac_chars_top_3grams": 0.03773585, "qsc_code_frac_chars_top_4grams": 0.00838574, "qsc_code_frac_chars_dupe_5grams": 0.51614256, "qsc_code_frac_chars_dupe_6grams": 0.47253669, "qsc_code_frac_chars_dupe_7grams": 0.47253669, "qsc_code_frac_chars_dupe_8grams": 0.44737945, "qsc_code_frac_chars_dupe_9grams": 0.41551363, "qsc_code_frac_chars_dupe_10grams": 0.3769392, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0251118, "qsc_code_frac_chars_whitespace": 0.31390135, "qsc_code_size_file_byte": 4237.0, "qsc_code_num_lines": 121.0, "qsc_code_num_chars_line_max": 119.0, "qsc_code_num_chars_line_mean": 35.01652893, "qsc_code_frac_chars_alphabet": 0.79532164, "qsc_code_frac_chars_comments": 0.31154118, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.35, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.13870334, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.08333333, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.05, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.23333333, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/__init__.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
from dingtalk.client.api.attendance import Attendance # NOQA
from dingtalk.client.api.blackboard import BlackBoard # NOQA
from dingtalk.client.api.bpms import Bpms # NOQA
from dingtalk.client.api.calendar import Calendar # NOQA
from dingtalk.client.api.callback import Callback # NOQA
from dingtalk.client.api.chat import Chat # NOQA
from dingtalk.client.api.checkin import Checkin # NOQA
from dingtalk.client.api.cspace import Cspace # NOQA
from dingtalk.client.api.department import Department # NOQA
from dingtalk.client.api.ext import Ext # NOQA
from dingtalk.client.api.extcontact import ExtContact # NOQA
from dingtalk.client.api.employeerm import Employeerm # NOQA
from dingtalk.client.api.health import Health # NOQA
from dingtalk.client.api.message import Message # NOQA
from dingtalk.client.api.microapp import MicroApp # NOQA
from dingtalk.client.api.report import Report # NOQA
from dingtalk.client.api.role import Role # NOQA
from dingtalk.client.api.user import User # NOQA
from dingtalk.client.api.workrecord import WorkRecord # NOQA
| 1,150 | __init__ | py | en | python | code | {"qsc_code_num_words": 162, "qsc_code_num_chars": 1150.0, "qsc_code_mean_word_length": 5.64197531, "qsc_code_frac_words_unique": 0.19753086, "qsc_code_frac_chars_top_2grams": 0.24945295, "qsc_code_frac_chars_top_3grams": 0.37417943, "qsc_code_frac_chars_top_4grams": 0.43654267, "qsc_code_frac_chars_dupe_5grams": 0.49234136, "qsc_code_frac_chars_dupe_6grams": 0.0, "qsc_code_frac_chars_dupe_7grams": 0.0, "qsc_code_frac_chars_dupe_8grams": 0.0, "qsc_code_frac_chars_dupe_9grams": 0.0, "qsc_code_frac_chars_dupe_10grams": 0.0, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00099404, "qsc_code_frac_chars_whitespace": 0.12521739, "qsc_code_size_file_byte": 1150.0, "qsc_code_num_lines": 22.0, "qsc_code_num_chars_line_max": 62.0, "qsc_code_num_chars_line_mean": 52.27272727, "qsc_code_frac_chars_alphabet": 0.90755467, "qsc_code_frac_chars_comments": 0.10086957, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.0, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.0, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.0, "qsc_codepython_cate_var_zero": true, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 1.0, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 1.0, "qsc_codepython_frac_lines_print": 0.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 1, "qsc_code_frac_chars_top_3grams": 1, "qsc_code_frac_chars_top_4grams": 1, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 1, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 1, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 1, "qsc_codepython_frac_lines_print": 0} |
007gzs/dingtalk-sdk | dingtalk/client/api/message.py | # -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import json
from optionaldict import optionaldict
from dingtalk.core.utils import to_text
from six.moves.urllib.parse import urlencode
from dingtalk.client.api.base import DingTalkBaseAPI
from dingtalk.model.message import BodyBase
class Message(DingTalkBaseAPI):
@staticmethod
def get_pc_url(url, pc_slide=True):
"""
消息链接能在PC端打开
:param url: 要打开的链接
:param pc_slide: 如果为true代表在PC客户端打开,为false或者不写代表用浏览器打开
:return:
"""
params = {'url': url}
if pc_slide:
params['pc_slide'] = 'true'
return "dingtalk://dingtalkclient/page/link?%s" % urlencode(params)
def media_upload(self, media_type, media_file):
"""
上传媒体文件
:param media_type: 媒体文件类型,分别有图片(image)、语音(voice)、普通文件(file)
:param media_file: 要上传的文件,一个 File-object
:return:
"""
return self._post(
'/media/upload',
params={'type': media_type},
files={'media': media_file}
)
def media_download_file(self, media_id):
"""
获取媒体文件
:param media_id: 媒体文件的唯一标示
:return: requests 的 Response 实例
"""
return self._get(
'/media/downloadFile',
{'media_id': media_id}
)
def send_to_conversation(self, sender, cid, msg_body):
"""
发送普通消息
:param sender: 消息发送者员工ID
:param cid: 群消息或者个人聊天会话Id
:param msg_body: BodyBase 消息体
:return:
"""
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msg_body['sender'] = sender
msg_body['cid'] = cid
return self._post('/message/send_to_conversation', msg_body)
def send(self, agentid, msg_body, touser_list=(), toparty_list=()):
"""
发送企业通知消息
:param agentid: 企业应用id,这个值代表以哪个应用的名义发送消息
:param msg_body: BodyBase 消息体
:param touser_list: 员工id列表
:param toparty_list: 部门id列表
:return:
"""
touser = "|".join(map(to_text, touser_list))
toparty = "|".join(map(to_text, toparty_list))
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msg_body['touser'] = touser
msg_body['toparty'] = toparty
msg_body['agentid'] = agentid
return self._post('/message/send', msg_body)
def list_message_status(self, message_id):
"""
获取企业通知消息已读未读状态
:param message_id: 消息id
:return:
"""
return self._post('/message/list_message_status', {"messageId": message_id})
def send_by_code(self, code, msg_body):
"""
企业通知消息接口(用户反馈式)
:param code: 用户操作产生的授权码
:param msg_body: BodyBase 消息体
:return:
"""
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msg_body['code'] = code
return self._post('/message/sendByCode', msg_body)
def asyncsend(self, msg_body, agent_id, userid_list=(), dept_id_list=(), to_all_user=False):
"""
企业会话消息异步发送
:param msg_body: BodyBase 消息体
:param agent_id: 微应用的id
:param userid_list: 接收者的用户userid列表
:param dept_id_list: 接收者的部门id列表
:param to_all_user: 是否发送给企业全部用户
:return: 任务id
"""
userid_list = ",".join(map(to_text, userid_list))
dept_id_list = ",".join(map(to_text, dept_id_list))
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msgtype = msg_body['msgtype']
msgcontent = json.dumps(msg_body[msgtype])
return self._top_request(
'dingtalk.corp.message.corpconversation.asyncsend',
{
'msgtype': msgtype,
'agent_id': agent_id,
'msgcontent': msgcontent,
'userid_list': userid_list,
'dept_id_list': dept_id_list,
'to_all_user': to_all_user
},
result_processor=lambda x: x['task_id']
)
def asyncsend_v2(self, msg_body, agent_id, userid_list=(), dept_id_list=(), to_all_user=False):
"""
企业会话消息异步发送
:param msg_body: BodyBase 消息体
:param agent_id: 微应用的id
:param userid_list: 接收者的用户userid列表
:param dept_id_list: 接收者的部门id列表
:param to_all_user: 是否发送给企业全部用户
:return: 任务id
"""
if isinstance(userid_list, (list, tuple, set)):
userid_list = ",".join(map(to_text, userid_list))
if isinstance(dept_id_list, (list, tuple, set)):
dept_id_list = ",".join(map(to_text, dept_id_list))
if not userid_list:
userid_list = None
if not dept_id_list:
dept_id_list = None
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
return self._top_request(
'dingtalk.oapi.message.corpconversation.asyncsend_v2',
optionaldict({
"msg": msg_body,
'agent_id': agent_id,
'userid_list': userid_list,
'dept_id_list': dept_id_list,
'to_all_user': 'true' if to_all_user else 'false'
}),
result_processor=lambda x: x['task_id']
)
def recall(self, agent_id, msg_task_id):
"""
撤回工作通知消息
:param agent_id: 发送工作通知的微应用agentId
:param msg_task_id: 发送工作通知返回的taskId
"""
return self._top_request(
"dingtalk.oapi.message.corpconversation.recall",
{"agent_id": agent_id, "msg_task_id": msg_task_id}
)
def getsendprogress(self, agent_id, task_id):
"""
获取异步发送企业会话消息的发送进度
:param agent_id: 发送消息时使用的微应用的id
:param task_id: 发送消息时钉钉返回的任务id
:return:
"""
return self._top_request(
'dingtalk.corp.message.corpconversation.getsendprogress',
{'agent_id': agent_id, 'task_id': task_id},
result_processor=lambda x: x['progress']
)
def getsendresult(self, agent_id=None, task_id=None):
"""
获取异步向企业会话发送消息的结果
:param agent_id: 微应用的agentid
:param task_id: 异步任务的id
:return:
"""
return self._top_request(
'dingtalk.corp.message.corpconversation.getsendresult',
{'agent_id': agent_id, 'task_id': task_id},
result_processor=lambda x: x['send_result']
)
def asyncsendbycode(self, code, msg_body, agent_id, userid_list=(), dept_id_list=(), to_all_user=False):
"""
通过用户授权码异步向企业会话发送消息
:param code: 用户操作产生的授权码
:param msg_body: BodyBase 消息体
:param agent_id: 微应用的id
:param userid_list: 接收者的用户userid列表
:param dept_id_list: 接收者的部门id列表
:param to_all_user: 是否发送给企业全部用户
:return: 任务id
"""
userid_list = ",".join(map(to_text, userid_list))
dept_id_list = ",".join(map(to_text, dept_id_list))
if isinstance(msg_body, BodyBase):
msg_body = msg_body.get_dict()
msgtype = msg_body['msgtype']
msgcontent = json.dumps(msg_body[msgtype])
return self._top_request(
'dingtalk.corp.message.corpconversation.asyncsendbycode',
{
'msgtype': msgtype,
'code': code,
'agent_id': agent_id,
'msgcontent': msgcontent,
'userid_list': userid_list,
'dept_id_list': dept_id_list,
'to_all_user': to_all_user
},
result_processor=lambda x: x['task_id']
)
| 7,738 | message | py | en | python | code | {"qsc_code_num_words": 852, "qsc_code_num_chars": 7738.0, "qsc_code_mean_word_length": 4.95422535, "qsc_code_frac_words_unique": 0.18075117, "qsc_code_frac_chars_top_2grams": 0.07296849, "qsc_code_frac_chars_top_3grams": 0.04975124, "qsc_code_frac_chars_top_4grams": 0.039801, "qsc_code_frac_chars_dupe_5grams": 0.51528074, "qsc_code_frac_chars_dupe_6grams": 0.49585406, "qsc_code_frac_chars_dupe_7grams": 0.48448235, "qsc_code_frac_chars_dupe_8grams": 0.48448235, "qsc_code_frac_chars_dupe_9grams": 0.43330964, "qsc_code_frac_chars_dupe_10grams": 0.40440654, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00056604, "qsc_code_frac_chars_whitespace": 0.31506849, "qsc_code_size_file_byte": 7738.0, "qsc_code_num_lines": 250.0, "qsc_code_num_chars_line_max": 109.0, "qsc_code_num_chars_line_mean": 30.952, "qsc_code_frac_chars_alphabet": 0.79584906, "qsc_code_frac_chars_comments": 0.19320238, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.384, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.14844172, "qsc_code_frac_chars_long_word_length": 0.07187894, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codepython_cate_ast": 1.0, "qsc_codepython_frac_lines_func_ratio": 0.104, "qsc_codepython_cate_var_zero": false, "qsc_codepython_frac_lines_pass": 0.0, "qsc_codepython_frac_lines_import": 0.056, "qsc_codepython_frac_lines_simplefunc": 0.0, "qsc_codepython_score_lines_no_logic": 0.272, "qsc_codepython_frac_lines_print": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_lines_long_string": 0, "qsc_code_frac_chars_string_length": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0, "qsc_code_frac_lines_assert": 0, "qsc_codepython_cate_ast": 0, "qsc_codepython_frac_lines_func_ratio": 0, "qsc_codepython_cate_var_zero": 0, "qsc_codepython_frac_lines_pass": 0, "qsc_codepython_frac_lines_import": 0, "qsc_codepython_frac_lines_simplefunc": 0, "qsc_codepython_score_lines_no_logic": 0, "qsc_codepython_frac_lines_print": 0} |
007revad/Synology_enable_Deduplication | syno_enable_dedupe.sh | #!/usr/bin/env bash
#-------------------------------------------------------------------------------
# Enables data deduplication with non-Synology drives and unsupported NAS models
#
# Github: https://github.com/007revad/Synology_enable_Deduplication
# Script verified at https://www.shellcheck.net/
#
# To run in a shell (replace /volume1/scripts/ with path to script):
# sudo /volume1/scripts/syno_enable_dedupe.sh
#-------------------------------------------------------------------------------
# Added support for DSM 7.0.1 to 7.2 (untested)
scriptver="v1.4.31"
script=Synology_enable_Deduplication
repo="007revad/Synology_enable_Deduplication"
scriptname=syno_enable_dedupe
# Prevent Entware or user edited PATH causing issues
# shellcheck disable=SC2155 # Declare and assign separately to avoid masking return values
export PATH=$(echo "$PATH" | sed -e 's/\/opt\/bin:\/opt\/sbin://')
# Check BASH variable is bash
if [ ! "$(basename "$BASH")" = bash ]; then
echo "This is a bash script. Do not run it with $(basename "$BASH")"
printf \\a
exit 1
fi
# Check script is running on a Synology NAS
if ! /usr/bin/uname -a | grep -i synology >/dev/null; then
echo "This script is NOT running on a Synology NAS!"
echo "Copy the script to a folder on the Synology"
echo "and run it from there."
exit 1
fi
ding(){
printf \\a
}
usage(){
cat <<EOF
$script $scriptver - by 007revad
Usage: $(basename "$0") [options]
Options:
-c, --check Check value in file and backup file
-r, --restore Undo all changes made by the script
-t, --tiny Enable tiny data deduplication (only needs 4GB RAM)
DSM 7.2.1 and later only
--hdd Enable data deduplication for HDDs.
Can cause files to become more fragmented,
resulting in decreased access performance.
-e, --email Disable colored text in output for scheduler emails
--autoupdate=AGE Auto update script (useful when script is scheduled)
AGE is how many days old a release must be before
auto-updating. AGE must be a number: 0 or greater
-s, --skip Skip memory amount check (for testing)
-h, --help Show this help message
-v, --version Show the script version
EOF
exit 0
}
scriptversion(){
cat <<EOF
$script $scriptver - by 007revad
See https://github.com/$repo
EOF
exit 0
}
# Save options used
args=("$@")
autoupdate=""
# Check for flags with getopt
if options="$(getopt -o abcdefghijklmnopqrstuvwxyz0123456789 -l \
skip,check,restore,help,version,tiny,hdd,email,autoupdate:,log,debug -- "$@")"; then
eval set -- "$options"
while true; do
case "${1,,}" in
-h|--help) # Show usage options
usage
;;
-v|--version) # Show script version
scriptversion
;;
-t|--tiny) # Enable tiny deduplication
tiny=yes
;;
--hdd) # Enable deduplication for HDDs (dangerous)
hdd=yes
;;
-s|--skip) # Skip memory amount check (for testing)
skip=yes
;;
-l|--log) # Log
#log=yes
;;
-d|--debug) # Show and log debug info
debug=yes
;;
-c|--check) # Check value in file and backup file
check=yes
break
;;
-r|--restore) # Restore from backups to undo changes
restore=yes
break
;;
-e|--email) # Disable colour text in task scheduler emails
color=no
;;
--autoupdate) # Auto update script
autoupdate=yes
if [[ $2 =~ ^[0-9]+$ ]]; then
delay="$2"
shift
else
delay="0"
fi
;;
--)
shift
break
;;
*) # Show usage options
echo -e "Invalid option '$1'\n"
usage "$1"
;;
esac
shift
done
else
echo
usage
fi
if [[ $debug == "yes" ]]; then
set -x
export PS4='`[[ $? == 0 ]] || echo "\e[1;31;40m($?)\e[m\n "`:.$LINENO:'
fi
# Shell Colors
if [[ $color != "no" ]]; then
#Black='\e[0;30m' # ${Black}
Red='\e[0;31m' # ${Red}
#Green='\e[0;32m' # ${Green}
Yellow='\e[0;33m' # ${Yellow}
#Blue='\e[0;34m' # ${Blue}
#Purple='\e[0;35m' # ${Purple}
Cyan='\e[0;36m' # ${Cyan}
#White='\e[0;37m' # ${White}
Error='\e[41m' # ${Error}
Off='\e[0m' # ${Off}
else
echo "" # For task scheduler email readability
fi
# Check script is running as root
if [[ $( whoami ) != "root" ]]; then
ding
echo -e "${Error}ERROR${Off} This script must be run as sudo or root!"
exit 1
fi
# Get DSM major, minor and micro versions
major=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION majorversion)
minor=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION minorversion)
micro=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION micro)
# Get NAS model
model=$(cat /proc/sys/kernel/syno_hw_version)
#modelname="$model"
# Show script version
#echo -e "$script $scriptver\ngithub.com/$repo\n"
echo "$script $scriptver"
# Get DSM full version
productversion=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION productversion)
buildphase=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildphase)
buildnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION buildnumber)
smallfixnumber=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/VERSION smallfixnumber)
# Show DSM full version and model
if [[ $buildphase == GM ]]; then buildphase=""; fi
if [[ $smallfixnumber -gt "0" ]]; then smallfix="-$smallfixnumber"; fi
echo -e "$model DSM $productversion-$buildnumber$smallfix $buildphase\n"
# Get StorageManager version
storagemgrver=$(/usr/syno/bin/synopkg version StorageManager)
# Show StorageManager version
if [[ $storagemgrver ]]; then echo -e "StorageManager $storagemgrver \n"; fi
# Show options used
if [[ ${#args[@]} -gt "0" ]]; then
#echo -e "Using options: ${args[*]}\n"
echo -e "Using options: ${args[*]}"
fi
if [[ $major$minor$micro -lt "701" ]]; then
ding
#echo "This script only works for DSM 7.0.1 and later."
echo "Btrfs Data Deduplication only works in DSM 7.0.1 and later."
exit 1
fi
# Check model (and DSM version for that model) supports dedupe
if [[ ! -f /usr/syno/sbin/synobtrfsdedupe ]]; then
arch=$(/usr/syno/bin/synogetkeyvalue /etc.defaults/synoinfo.conf platform_name)
#echo "Your model or DSM version does not support Btrfs Data Deduplication."
echo "Models with $arch CPUs do not support Btrfs Data Deduplication."
echo "Only models with V1000, R1000, Geminilake, Broadwellnkv2, "
echo "Broadwellnk, Broadwell, Purley and Epyc7002 CPUs are supported."
exit
fi
#------------------------------------------------------------------------------
# Check latest release with GitHub API
syslog_set(){
if [[ ${1,,} == "info" ]] || [[ ${1,,} == "warn" ]] || [[ ${1,,} == "err" ]]; then
if [[ $autoupdate == "yes" ]]; then
# Add entry to Synology system log
/usr/syno/bin/synologset1 sys "$1" 0x11100000 "$2"
fi
fi
}
# Get latest release info
# Curl timeout options:
# https://unix.stackexchange.com/questions/94604/does-curl-have-a-timeout
release=$(curl --silent -m 10 --connect-timeout 5 \
"https://api.github.com/repos/$repo/releases/latest")
# Release version
tag=$(echo "$release" | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/')
shorttag="${tag:1}"
# Release published date
published=$(echo "$release" | grep '"published_at":' | sed -E 's/.*"([^"]+)".*/\1/')
published="${published:0:10}"
published=$(date -d "$published" '+%s')
# Today's date
now=$(date '+%s')
# Days since release published
age=$(((now - published)/(60*60*24)))
# Get script location
# https://stackoverflow.com/questions/59895/
source=${BASH_SOURCE[0]}
while [ -L "$source" ]; do # Resolve $source until the file is no longer a symlink
scriptpath=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
source=$(readlink "$source")
# If $source was a relative symlink, we need to resolve it
# relative to the path where the symlink file was located
[[ $source != /* ]] && source=$scriptpath/$source
done
scriptpath=$( cd -P "$( dirname "$source" )" >/dev/null 2>&1 && pwd )
scriptfile=$( basename -- "$source" )
echo "Running from: ${scriptpath}/$scriptfile"
# Warn if script located on M.2 drive
scriptvol=$(echo "$scriptpath" | cut -d"/" -f2)
vg=$(lvdisplay | grep /volume_"${scriptvol#volume}" | cut -d"/" -f3)
md=$(pvdisplay | grep -B 1 -E '[ ]'"$vg" | grep /dev/ | cut -d"/" -f3)
if cat /proc/mdstat | grep "$md" | grep nvme >/dev/null; then
echo -e "${Yellow}WARNING${Off} Don't store this script on an NVMe volume!"
fi
cleanup_tmp(){
cleanup_err=
# Delete downloaded .tar.gz file
if [[ -f "/tmp/$script-$shorttag.tar.gz" ]]; then
if ! rm "/tmp/$script-$shorttag.tar.gz"; then
echo -e "${Error}ERROR${Off} Failed to delete"\
"downloaded /tmp/$script-$shorttag.tar.gz!" >&2
cleanup_err=1
fi
fi
# Delete extracted tmp files
if [[ -d "/tmp/$script-$shorttag" ]]; then
if ! rm -r "/tmp/$script-$shorttag"; then
echo -e "${Error}ERROR${Off} Failed to delete"\
"downloaded /tmp/$script-$shorttag!" >&2
cleanup_err=1
fi
fi
# Add warning to DSM log
if [[ $cleanup_err ]]; then
syslog_set warn "$script update failed to delete tmp files"
fi
}
if ! printf "%s\n%s\n" "$tag" "$scriptver" |
sort --check=quiet --version-sort >/dev/null ; then
echo -e "\n${Cyan}There is a newer version of this script available.${Off}"
echo -e "Current version: ${scriptver}\nLatest version: $tag"
scriptdl="$scriptpath/$script-$shorttag"
if [[ -f ${scriptdl}.tar.gz ]] || [[ -f ${scriptdl}.zip ]]; then
# They have the latest version tar.gz downloaded but are using older version
echo "You have the latest version downloaded but are using an older version"
sleep 10
elif [[ -d $scriptdl ]]; then
# They have the latest version extracted but are using older version
echo "You have the latest version extracted but are using an older version"
sleep 10
else
if [[ $autoupdate == "yes" ]]; then
if [[ $age -gt "$delay" ]] || [[ $age -eq "$delay" ]]; then
echo "Downloading $tag"
reply=y
else
echo "Skipping as $tag is less than $delay days old."
fi
else
echo -e "${Cyan}Do you want to download $tag now?${Off} [y/n]"
read -r -t 30 reply
fi
if [[ ${reply,,} == "y" ]]; then
# Delete previously downloaded .tar.gz file and extracted tmp files
cleanup_tmp
if cd /tmp; then
url="https://github.com/$repo/archive/refs/tags/$tag.tar.gz"
if ! curl -JLO -m 30 --connect-timeout 5 "$url"; then
echo -e "${Error}ERROR${Off} Failed to download"\
"$script-$shorttag.tar.gz!"
syslog_set warn "$script $tag failed to download"
else
if [[ -f /tmp/$script-$shorttag.tar.gz ]]; then
# Extract tar file to /tmp/<script-name>
if ! tar -xf "/tmp/$script-$shorttag.tar.gz" -C "/tmp"; then
echo -e "${Error}ERROR${Off} Failed to"\
"extract $script-$shorttag.tar.gz!"
syslog_set warn "$script failed to extract $script-$shorttag.tar.gz!"
else
# Set script sh files as executable
if ! chmod a+x "/tmp/$script-$shorttag/"*.sh ; then
permerr=1
echo -e "${Error}ERROR${Off} Failed to set executable permissions"
syslog_set warn "$script failed to set permissions on $tag"
fi
# Copy new script sh file to script location
if ! cp -p "/tmp/$script-$shorttag/${scriptname}.sh" "${scriptpath}/${scriptfile}";
then
copyerr=1
echo -e "${Error}ERROR${Off} Failed to copy"\
"$script-$shorttag sh file(s) to:\n $scriptpath/${scriptfile}"
syslog_set warn "$script failed to copy $tag to script location"
fi
# Copy new CHANGES.txt file to script location (if script on a volume)
if [[ $scriptpath =~ /volume* ]]; then
# Set permissions on CHANGES.txt
if ! chmod 664 "/tmp/$script-$shorttag/CHANGES.txt"; then
permerr=1
echo -e "${Error}ERROR${Off} Failed to set permissions on:"
echo "$scriptpath/CHANGES.txt"
fi
# Copy new CHANGES.txt file to script location
if ! cp -p "/tmp/$script-$shorttag/CHANGES.txt"\
"${scriptpath}/${scriptname}_CHANGES.txt";
then
if [[ $autoupdate != "yes" ]]; then copyerr=1; fi
echo -e "${Error}ERROR${Off} Failed to copy"\
"$script-$shorttag/CHANGES.txt to:\n $scriptpath"
else
changestxt=" and changes.txt"
fi
fi
# Delete downloaded tmp files
cleanup_tmp
# Notify of success (if there were no errors)
if [[ $copyerr != 1 ]] && [[ $permerr != 1 ]]; then
echo -e "\n$tag ${scriptfile}$changestxt downloaded to: ${scriptpath}\n"
syslog_set info "$script successfully updated to $tag"
# Reload script
printf -- '-%.0s' {1..79}; echo # print 79 -
exec "${scriptpath}/$scriptfile" "${args[@]}"
else
syslog_set warn "$script update to $tag had errors"
fi
fi
else
echo -e "${Error}ERROR${Off}"\
"/tmp/$script-$shorttag.tar.gz not found!"
#ls /tmp | grep "$script" # debug
syslog_set warn "/tmp/$script-$shorttag.tar.gz not found"
fi
fi
cd "$scriptpath" || echo -e "${Error}ERROR${Off} Failed to cd to script location!"
else
echo -e "${Error}ERROR${Off} Failed to cd to /tmp!"
syslog_set warn "$script update failed to cd to /tmp"
fi
fi
fi
fi
#------------------------------------------------------------------------------
# Set file variables
synoinfo="/etc.defaults/synoinfo.conf"
synoinfo2="/etc/synoinfo.conf"
#strgmgr="/var/packages/StorageManager/target/ui/storage_panel.js"
libhw="/usr/lib/libhwcontrol.so.1"
if [[ $buildnumber -gt 64570 ]]; then
# DSM 7.2.1 and later
#strgmgr="/var/packages/StorageManager/target/ui/storage_panel.js"
strgmgr="/usr/local/packages/@appstore/StorageManager/ui/storage_panel.js"
else
# DSM 7.0.1 to 7.2
strgmgr="/usr/syno/synoman/webman/modules/StorageManager/storage_panel.js"
fi
if [[ ! -f ${libhw} ]]; then
ding
echo -e "${Error}ERROR${Off} $(basename -- $libhw) not found!"
exit 1
fi
rebootmsg(){
# Reboot prompt
echo -e "\n${Cyan}The Synology needs to restart.${Off}"
echo -e "Type ${Cyan}yes${Off} to reboot now."
echo -e "Type anything else to quit (if you will restart it yourself)."
read -r -t 10 answer
if [[ ${answer,,} != "yes" ]]; then exit; fi
# # Reboot in the background so user can see DSM's "going down" message
# reboot &
if [[ -x /usr/syno/sbin/synopoweroff ]]; then
/usr/syno/sbin/synopoweroff -r || reboot
else
reboot
fi
}
reloadmsg(){
# Reload browser prompt
echo -e "\nFinished"
echo -e "\nIf you have DSM open in a browser you need to"
echo "refresh the browser window or tab."
echo "You may also need to reboot."
exit
}
#----------------------------------------------------------
# Restore changes from backup file
compare_md5(){
# $1 is file 1
# $2 is file 2
if [[ -f "$1" ]] && [[ -f "$2" ]]; then
if [[ $(md5sum -b "$1" | awk '{print $1}') == $(md5sum -b "$2" | awk '{print $1}') ]];
then
return 0
else
return 1
fi
else
restoreerr=$((restoreerr+1))
return 2
fi
}
if [[ $restore == "yes" ]]; then
echo ""
if [[ -f ${synoinfo}.bak ]] || [[ -f ${libhw}.bak ]] ||\
[[ -f ${strgmgr}.${storagemgrver} ]]; then
# Restore synoinfo.conf from backup
if [[ -f ${synoinfo}.bak ]]; then
keyvalues=("support_btrfs_dedupe" "support_tiny_btrfs_dedupe")
for v in "${!keyvalues[@]}"; do
defaultval="$(/usr/syno/bin/synogetkeyvalue ${synoinfo}.bak "${keyvalues[v]}")"
if [[ -z $defaultval ]]; then defaultval="no"; fi
currentval="$(/usr/syno/bin/synogetkeyvalue ${synoinfo} "${keyvalues[v]}")"
if [[ $currentval != "$defaultval" ]]; then
if /usr/syno/bin/synosetkeyvalue "$synoinfo" "${keyvalues[v]}" "$defaultval";
then
restored="yes"
echo "Restored ${keyvalues[v]} = $defaultval"
fi
fi
/usr/syno/bin/synosetkeyvalue "$synoinfo2" "${keyvalues[v]}" "$defaultval"
done
fi
# Restore storage_panel.js from backup
if [[ -f "${strgmgr}.$storagemgrver" ]]; then
string1="(SYNO.SDS.StorageUtils.supportBtrfsDedupe,)"
string2="(SYNO.SDS.StorageUtils.supportBtrfsDedupe&&e.dedup_info.show_config_btn)"
if grep -o "$string1" "${strgmgr}" >/dev/null; then
# Restore string in file
sed -i "s/${string1}/${string2/&&/\\&\\&}/g" "$strgmgr"
# Check we restored string in file
if grep -o "string2" "${strgmgr}" >/dev/null; then
restored="yes"
echo "Restored $(basename -- "$strgmgr")"
else
restoreerr=1
echo -e "${Error}ERROR${Off} Failed to restore $(basename -- "$strgmgr")!"
fi
fi
else
echo "No backup of $(basename -- "$strgmgr") found."
fi
if [[ -f "${libhw}.bak" ]]; then
# Check if backup libhwcontrol size matches
# in case backup is from previous DSM version
filesize=$(wc -c "${libhw}" | awk '{print $1}')
filebaksize=$(wc -c "${libhw}.bak" | awk '{print $1}')
if [[ ! $filesize -eq "$filebaksize" ]]; then
echo -e "${Yellow}WARNING Backup file size is different to file!${Off}"
echo "Do you want to restore this backup? [yes/no]:"
read -r -t 20 answer
if [[ $answer != "yes" ]]; then
exit
fi
fi
# Restore from backup
if ! compare_md5 "$libhw".bak "$libhw"; then
if cp -p "$libhw".bak "$libhw" ; then
restored="yes"
reboot="yes"
echo "Restored $(basename -- "$libhw")"
else
restoreerr=1
echo -e "${Error}ERROR${Off} Failed to restore $(basename -- "$libhw")!"
fi
fi
else
echo "No backup of $(basename -- "$libhw") found."
fi
if [[ -z $restoreerr ]]; then
if [[ $restored == "yes" ]]; then
echo -e "\nRestore successful."
reloadmsg
else
echo -e "Nothing to restore."
fi
fi
if [[ $reboot == "yes" ]]; then
rebootmsg
fi
else
echo -e "No backups to restore from."
fi
exit
fi
#----------------------------------------------------------
# Check NAS has enough memory
if [[ $restore != "yes" ]] && [[ $skip != "yes" ]]; then
IFS=$'\n' read -r -d '' -a array < <(dmidecode -t memory | grep -E "[Ss]ize: [0-9]+ [MG]{1}[B]{1}$")
if [[ ${#array[@]} -gt "0" ]]; then
num="0"
while [[ $num -lt "${#array[@]}" ]]; do
memcheck=$(printf %s "${array[num]}" | awk '{print $1}')
if [[ ${memcheck,,} == "size:" ]]; then
ramsize=$(printf %s "${array[num]}" | awk '{print $2}')
bytes=$(printf %s "${array[num]}" | awk '{print $3}')
if [[ $ramsize =~ ^[0-9]+$ ]]; then # Check $ramsize is numeric
if [[ $bytes == "GB" ]]; then # DSM 7.2 dmidecode returned GB
ramsize=$((ramsize * 1024)) # Convert to MB
fi
if [[ $ramtotal ]]; then
ramtotal=$((ramtotal +ramsize))
else
ramtotal="$ramsize"
fi
fi
fi
num=$((num +1))
done
ramgb=$((ramtotal / 1024))
if [[ $storagemgrver ]]; then
# Only DSM 7.2.1 and later supports tiny dedupe
if [[ $tiny == "yes" ]] || [[ $ramtotal -lt 16384 ]]; then
ramneeded="4096" # Tiny dedupe only needs 4GB ram
tiny="yes"
else
ramneeded="16384" # Needs 16GB ram
tiny=""
fi
else
ramneeded="16384" # Needs 16GB ram
tiny=""
fi
if [[ $ramtotal -lt "$ramneeded" ]]; then
ding
echo -e "\n${Error}ERROR${Off} Not enough memory installed for deduplication: $ramgb GB"
exit 1
else
echo -e "\nNAS has $ramgb GB of memory."
fi
else
ding
echo -e "\n${Error}ERROR${Off} Unable to determine the amount of installed memory!"
exit 1
fi
fi
#----------------------------------------------------------
# Edit libhwcontrol.so.1
findbytes(){
# Get decimal position of matching hex string
match=$(od -v -t x1 "$1" |
sed 's/[^ ]* *//' |
tr '\012' ' ' |
grep -b -i -o "$hexstring" |
#grep -b -i -o "$hexstring ".. |
cut -d ':' -f 1 |
xargs -I % expr % / 3)
# Convert decimal position of matching hex string to hex
array=("$match")
if [[ ${#array[@]} -gt "1" ]]; then
num="0"
while [[ $num -lt "${#array[@]}" ]]; do
poshex=$(printf "%x" "${array[$num]}")
if [[ $debug == "yes" ]]; then
echo "${array[$num]} = $poshex" # debug
fi
seek="${array[$num]}"
xxd=$(xxd -u -l 12 -s "$seek" "$1")
#echo "$xxd" # debug
if [[ $debug == "yes" ]]; then
printf %s "$xxd" | cut -d" " -f1-7
else
printf %s "$xxd" | cut -d" " -f1-7 >/dev/null
fi
bytes=$(printf %s "$xxd" | cut -d" " -f6)
#echo "$bytes" # debug
num=$((num +1))
done
elif [[ -n $match ]]; then
poshex=$(printf "%x" "$match")
if [[ $debug == "yes" ]]; then
echo "$match = $poshex" # debug
fi
seek="$match"
xxd=$(xxd -u -l 12 -s "$seek" "$1")
#echo "$xxd" # debug
if [[ $debug == "yes" ]]; then
printf %s "$xxd" | cut -d" " -f1-7
else
printf %s "$xxd" | cut -d" " -f1-7 >/dev/null
fi
bytes=$(printf %s "$xxd" | cut -d" " -f6)
#echo "$bytes" # debug
else
bytes=""
fi
}
# Check value in file and backup file
if [[ $check == "yes" ]]; then
err=0
# Check if deduplication enabled in synoinfo.conf
sbd=support_btrfs_dedupe
stbd=support_tiny_btrfs_dedupe
setting="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${sbd})"
setting2="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${stbd})"
# if [[ $tiny != "yes" ]] || [[ $ramtotal -lt 16384 ]]; then
if [[ $setting == "yes" ]]; then
echo -e "\nBtrfs Data Deduplication is ${Cyan}enabled${Off}."
else
echo -e "\nBtrfs Data Deduplication is ${Cyan}not${Off} enabled."
fi
# else
if [[ $setting2 == "yes" ]]; then
echo -e "\nTiny Btrfs Data Deduplication is ${Cyan}enabled${Off}."
else
echo -e "\nTiny Btrfs Data Deduplication is ${Cyan}not${Off} enabled."
fi
# fi
# DSM 7.2.1 only and only if --hdd option used
# Dedupe config button for HDDs and 2.5 inch SSDs in DSM 7.2.1
# if [[ -f "$strgmgr" ]] && [[ $hdd == "yes" ]]; then
if [[ -f "$strgmgr" ]]; then
# StorageManager package is installed and --hdd option used
if ! grep '&&e.dedup_info.show_config_btn' "$strgmgr" >/dev/null; then
echo -e "\nDedupe config menu for HDDs and 2.5\" SSDs is ${Cyan}enabled${Off}."
else
echo -e "\nDedupe config menu for HDDs and 2.5\" SSDs is ${Cyan}not${Off} enabled."
echo "Run the script with the --hdd option if you want it enabled."
fi
fi
# Check value in file
echo -e "\nChecking non-Synology drive supported."
hexstring="80 3E 00 B8 01 00 00 00 90 90 48 8B"
findbytes "$libhw"
if [[ $bytes == "9090" ]]; then
echo -e "File is already edited."
else
hexstring="80 3E 00 B8 01 00 00 00 75 2. 48 8B"
findbytes "$libhw"
if [[ $bytes =~ "752"[0-9] ]]; then
echo -e "File is ${Cyan}not${Off} edited."
else
echo -e "${Red}hex string not found!${Off}"
err=1
fi
fi
# Check value in backup file
if [[ -f ${libhw}.bak ]]; then
echo -e "\nChecking value in backup file."
hexstring="80 3E 00 B8 01 00 00 00 75 2. 48 8B"
findbytes "${libhw}.bak"
if [[ $bytes =~ "752"[0-9] ]]; then
echo -e "Backup file is okay."
else
hexstring="80 3E 00 B8 01 00 00 00 90 90 48 8B"
findbytes "${libhw}.bak"
if [[ $bytes == "9090" ]]; then
echo -e "${Red}Backup file has been edited!${Off}"
else
echo -e "${Red}hex string not found!${Off}"
err=1
fi
fi
else
echo "No backup file found."
fi
exit "$err"
fi
#----------------------------------------------------------
# Backup libhwcontrol
if [[ ! -f ${libhw}.bak ]]; then
if cp -p "$libhw" "$libhw".bak ; then
echo "Backup successful."
else
ding
echo -e "${Error}ERROR${Off} Backup failed!"
exit 1
fi
else
# Check if backup size matches file size
filesize=$(wc -c "$libhw" | awk '{print $1}')
filebaksize=$(wc -c "${libhw}.bak" | awk '{print $1}')
if [[ ! $filesize -eq "$filebaksize" ]]; then
echo -e "${Yellow}WARNING Backup file size is different to file!${Off}"
echo "Maybe you've updated DSM since last running this script?"
echo "Renaming file.bak to file.bak.old"
mv "${libhw}.bak" "$libhw".bak.old
if cp -p "$libhw" "$libhw".bak ; then
echo "Backup successful."
else
ding
echo -e "${Error}ERROR${Off} Backup failed!"
exit 1
fi
#else
# echo "$(basename -- "$libhw") already backed up."
fi
fi
#----------------------------------------------------------
# Edit libhwcontrol
#echo -e "\nChecking $(basename -- "$libhw")."
# Check if the file is already edited
hexstring="80 3E 00 B8 01 00 00 00 90 90 48 8B"
findbytes "$libhw"
if [[ $bytes == "9090" ]]; then
#echo -e "\n$(basename -- "$libhw") already edited."
echo -e "\nNon-Synology drive support already enabled."
else
# Check if the file is okay for editing
hexstring="80 3E 00 B8 01 00 00 00 75 2. 48 8B"
findbytes "$libhw"
if ! [[ $bytes =~ "752"[0-9] ]]; then
ding
echo -e "\n${Red}hex string not found!${Off}"
exit 1
fi
# Replace bytes in file
posrep=$(printf "%x\n" $((0x${poshex}+8)))
if ! printf %s "${posrep}: 9090" | xxd -r - "$libhw"; then
ding
echo -e "${Error}ERROR${Off} Failed to edit $(basename -- "$libhw")!"
exit 1
else
# Check if libhwcontrol.so.1 was successfully edited
#echo -e "\nChecking if file was successfully edited."
hexstring="80 3E 00 B8 01 00 00 00 90 90 48 8B"
findbytes "$libhw"
if [[ $bytes == "9090" ]]; then
#echo -e "File successfully edited."
echo -e "\nEnabled non-Synology drive support."
#echo -e "\n${Cyan}You can now enable data deduplication"\
# "pool in Storage Manager.${Off}"
reboot="yes"
fi
fi
fi
#------------------------------------------------------------------------------
# Edit /etc.defaults/synoinfo.conf
# Backup synoinfo.conf if needed
if [[ ! -f ${synoinfo}.bak ]]; then
if cp -p "$synoinfo" "$synoinfo.bak"; then
echo -e "\nBacked up $(basename -- "$synoinfo")" >&2
else
ding
echo -e "\n${Error}ERROR 5${Off} Failed to backup $(basename -- "$synoinfo")!"
exit 1
fi
fi
enabled=""
sbd=support_btrfs_dedupe
stbd=support_tiny_btrfs_dedupe
# Enable dedupe support if needed
setting="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${sbd})"
if [[ $tiny != "yes" ]]; then
if [[ ! $setting ]] || [[ $setting == "no" ]]; then
if [[ -n $sbd ]]; then
/usr/syno/bin/synosetkeyvalue "$synoinfo" "$sbd" yes
/usr/syno/bin/synosetkeyvalue "$synoinfo2" "$sbd" yes
enabled="yes"
fi
elif [[ $setting == "yes" ]]; then
echo -e "\nBtrfs Data Deduplication already enabled."
fi
# Disable support_tiny_btrfs_dedupe
if [[ $enabled == "yes" ]]; then
if grep "$stbd" "$synoinfo" >/dev/null; then
/usr/syno/bin/synosetkeyvalue "$synoinfo" "$stbd" no
fi
if grep "$stbd" "$synoinfo2" >/dev/null; then
/usr/syno/bin/synosetkeyvalue "$synoinfo2" "$stbd" no
fi
fi
fi
# Enable tiny dedupe support if needed
setting="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${stbd})"
if [[ $tiny == "yes" ]]; then
if [[ ! $setting ]] || [[ $setting == "no" ]]; then
if [[ -n $stbd ]]; then
/usr/syno/bin/synosetkeyvalue "$synoinfo" "$stbd" yes
/usr/syno/bin/synosetkeyvalue "$synoinfo2" "$stbd" yes
enabled="yes"
fi
elif [[ $setting == "yes" ]]; then
echo -e "\nTiny Btrfs Data Deduplication already enabled."
fi
# Disable support_btrfs_dedupe
if [[ $enabled == "yes" ]]; then
if grep "$sbd" "$synoinfo" >/dev/null; then
/usr/syno/bin/synosetkeyvalue "$synoinfo" "$sbd" no
fi
if grep "$sbd" "$synoinfo2" >/dev/null; then
/usr/syno/bin/synosetkeyvalue "$synoinfo2" "$sbd" no
fi
fi
fi
# Check if we enabled deduplication
setting="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${sbd})"
setting2="$(/usr/syno/bin/synogetkeyvalue "$synoinfo" ${stbd})"
if [[ $enabled == "yes" ]]; then
if [[ $tiny != "yes" ]]; then
if [[ $setting == "yes" ]]; then
echo -e "\nEnabled Btrfs Data Deduplication."
reload="yes"
else
ding
echo -e "\n${Error}ERROR${Off} Failed to enable Btrfs Data Deduplication!"
fi
else
if [[ $setting2 == "yes" ]]; then
echo -e "\nEnabled Tiny Btrfs Data Deduplication."
reload="yes"
else
ding
echo -e "\n${Error}ERROR${Off} Failed to enable Tiny Btrfs Data Deduplication!"
fi
fi
fi
#------------------------------------------------------------------------------
# Edit /var/packages/StorageManager/target/ui/storage_panel.js
# Enable dedupe config button for HDDs in DSM 7.2.1
if [[ -f "$strgmgr" ]] && [[ $hdd == "yes" ]]; then
# StorageManager package is installed
if grep '&&e.dedup_info.show_config_btn' "$strgmgr" >/dev/null; then
# Backup storage_panel.js"
storagemgrver="$(synopkg version StorageManager)"
echo ""
if [[ ! -f "${strgmgr}.$storagemgrver" ]]; then
if cp -p "$strgmgr" "${strgmgr}.$storagemgrver"; then
echo -e "Backed up $(basename -- "$strgmgr")"
else
ding
echo -e "${Error}ERROR${Off} Failed to backup $(basename -- "$strgmgr")!"
fi
fi
sed -i 's/&&e.dedup_info.show_config_btn//g' "$strgmgr"
# Check if we edited file
if ! grep '&&e.dedup_info.show_config_btn' "$strgmgr" >/dev/null; then
echo -e "Enabled dedupe config menu for HDDs and 2.5\" SSDs."
reload="yes"
else
ding
echo -e "${Error}ERROR${Off} Failed to enable dedupe config menu for HDDs and 2.5\" SSDs!"
fi
else
echo -e "\nDedupe config menu for HDDs and 2.5\" SSDs already enabled."
fi
elif [[ -f "$strgmgr" ]]; then
if ! grep '&&e.dedup_info.show_config_btn' "$strgmgr" >/dev/null; then
echo -e "\nDedupe config menu for HDDs and 2.5\" SSDs is enabled."
else
echo -e "\nDedupe config menu for HDDs and 2.5\" SSDs not enabled."
echo "Run the script with the --hdd option if you want it enabled."
fi
fi
# Make sure xpe's storage_manager.js.gz includes our changes. Issue #88
if [[ -f "${strgmgr}.gz" ]]; then
gzip -c "${strgmgr}" > "${strgmgr}.gz"
fi
#----------------------------------------------------------
# Finished
if [[ $reboot == "yes" ]]; then
rebootmsg
elif [[ $reload == "yes" ]]; then
reloadmsg
else
echo -e "\nFinished"
fi
exit
| 35,445 | syno_enable_dedupe | sh | en | shell | code | {"qsc_code_num_words": 4132, "qsc_code_num_chars": 35445.0, "qsc_code_mean_word_length": 4.3196999, "qsc_code_frac_words_unique": 0.14762827, "qsc_code_frac_chars_top_2grams": 0.02269035, "qsc_code_frac_chars_top_3grams": 0.0151269, "qsc_code_frac_chars_top_4grams": 0.01680766, "qsc_code_frac_chars_dupe_5grams": 0.42971595, "qsc_code_frac_chars_dupe_6grams": 0.36892823, "qsc_code_frac_chars_dupe_7grams": 0.32651689, "qsc_code_frac_chars_dupe_8grams": 0.27620595, "qsc_code_frac_chars_dupe_9grams": 0.2195081, "qsc_code_frac_chars_dupe_10grams": 0.1763124, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.02354436, "qsc_code_frac_chars_whitespace": 0.33375652, "qsc_code_size_file_byte": 35445.0, "qsc_code_num_lines": 1016.0, "qsc_code_num_chars_line_max": 112.0, "qsc_code_num_chars_line_mean": 34.88681102, "qsc_code_frac_chars_alphabet": 0.7322888, "qsc_code_frac_chars_comments": 0.1875864, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.49080622, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.00282885, "qsc_code_frac_chars_string_length": 0.29432193, "qsc_code_frac_chars_long_word_length": 0.06247612, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.00034728, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_frac_chars_comments": 0, "qsc_code_cate_xml_start": 0, "qsc_code_cate_autogen": 0, "qsc_code_frac_chars_long_word_length": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_code_frac_lines_prompt_comments": 0} |
007revad/Synology_enable_Deduplication | README.md | # Synology enable Deduplication
<a href="https://github.com/007revad/Synology_enable_Deduplication/releases"><img src="https://img.shields.io/github/release/007revad/Synology_enable_Deduplication.svg"></a>

[](https://www.paypal.com/paypalme/007revad)
[](https://github.com/sponsors/007revad)
[](https://user-badge.committers.top/australia/007revad)
### Description
Enable data deduplication with non-Synology SSDs and unsupported NAS models
- Works for any brand SATA SSD, SAS SSD and M.2 SSD drives in DSM 7.01 and later.
- Now works for HDDs in DSM 7.2.1 and later.
- Now works for M.2 drives in a PCIe adapter card (E10M20-T1, M2D20, M2D18 or M2D17) in DSM 7.2.1 and later.
It works on [Synology models that do offically support data deduplication](https://kb.synology.com/en-global/DSM/tutorial/Which_models_support_data_deduplication).
It works in DSM 7.0.1 and later on models with one of the following [CPU architectures](https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have): V1000, R1000, Geminilake and Broadwellnk.
It works in DSM 7.2.2 and later on models with one of the following [CPU architectures](https://kb.synology.com/en-global/DSM/tutorial/What_kind_of_CPU_does_my_NAS_have): V1000nk, R1000nk and Geminilakenk.
It only works in DSM 7.2.1 and later on models with a Broadwellnkv2, Broadwell, Purley, Epyc7002 CPU.
It does **NOT** work for models with Apollolake, Avoton or Denverton CPUs.
Please [leave a comment in this discussion](https://github.com/007revad/Synology_enable_Deduplication/discussions/31) if it works, or doesn't work, for you.
### Requirements
- Btrfs Tiny Data Deduplication requires 4GB of memory or more.
- Btrfs Data Deduplication requires 16GB of memory or more.
- The volume needs **Usage detail analysis** enabled. See [Enable and View Usage Details](https://kb.synology.com/en-global/DSM/help/DSM/StorageManager/volume_view_usage?version=7).
### Works in DSM 7.2.1 and 7.2.2 for the following models
<details>
<summary>Click here to see list</summary>
| Model | CPU Arch | DSM version | Works | Notes |
|------------|---------------|-------------------------------|--------|-------|
| DS224+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1823xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS923+ | R1000 | DSM 7.2.2-72806 Update 2 | yes | Use v1.2.14 or later |
| DS923+ | R1000 | DSM 7.3-81180 | yes | Use v1.2.14 or later |
| DS923+ | R1000 | DSM 7.2.2-72806 | yes | Use v1.2.14 or later |
| DS923+ | R1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS723+ | R1000 | DSM 7.2.2-72806 Update 3 | yes | Use v1.2.14 or later |
| DS723+ | R1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS423+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS3622xs+ | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS2422xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1821+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1621+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1621xs+ | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1522+ | R1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS1520+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS920+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS720+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS420+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS220+ | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS3018xs | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS3017xsII | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| DS3017xs | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| | | | | |
| DVA1622 | Geminilake | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| | | | | |
| RS2423xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS822xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS422xs+ | R1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS4021xs+ | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS3621RPxs | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS3621xs+ | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS2821RPxs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS2421xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS1221xs+ | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS1619xs+ | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS3618xs | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS3617xs+ | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS3617RPxs | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS18017xs+ | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| RS4017xs+ | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| | | | | |
| FS6400 | Purley | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS3600 | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS3410 | Broadwellnkv2 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS3400 | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS2500 | V1000 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS2017 | Broadwell | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| FS1018 | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| | | | | |
| HD6500 | Purley | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| | | | | |
| SA6400 | Epyc7002 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| SA3610 | Broadwellnkv2 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| SA3600 | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| SA3410 | Broadwellnkv2 | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
| SA3400 | Broadwellnk | DSM 7.2.1-69057 Update 1 to 5 | yes | Use v1.2.14 or later |
</details>
### Models confirmed working with older DSM versions
<details>
<summary>Click here to see list</summary>
| Model | CPU Arch | DSM version | Works | Notes |
|------------|---------------|-------------------------------|--------|-------|
| DS923+ | R1000 | DSM 7.2-64570 Update 1 to 3 | yes | |
| DS923+ | R1000 | DSM 7.2-64570 | yes | |
| DS3622xs+ | Broadwellnk | DSM 7.2-64570 | **No** | Update to DSM 7.2.1 |
| DS3622xs+ | Broadwellnk | DSM 7.2-64561 | yes | |
| DS3622xs+ | Broadwellnk | DSM 7.1.1-42962 Update 1 | **No** | Update to DSM 7.2.1 |
| RS4021xs+ | Broadwellnk | DSM 7.2-64570 | **No** | Update to DSM 7.2.1 |
| RS4021xs+ | Broadwellnk | DSM 7.1.1-42962 Update 2 | yes | |
| DS1821+ | V1000 | DSM 7.2-64570 Update 1 to 3 | yes | |
| DS1821+ | V1000 | DSM 7.2-64570 | yes | |
| DS1821+ | V1000 | DSM 7.2-64561 | yes | |
| DS1821+ | V1000 | DSM 7.1.1-42962 Update 4 | yes | |
| DS1621xs+ | Broadwellnk | DSM 7.2-64570 Update 3 | yes | |
| DS1621xs+ | Broadwellnk | DSM 7.2-64570 | yes | |
| DS920+ | Geminilake | DSM 7.2-64570 Update 1 to 3 | yes | |
| DS920+ | Geminilake | DSM 7.2-64570 | yes | |
| DS720+ | Geminilake | DSM 7.2-64570 Update 1 to 3 | yes | |
| DS720+ | Geminilake | DSM 7.2-64570 | yes | |
| DS3617xs | Broadwell | | **No** | Update to DSM 7.2.1 |
| | | | | |
| | Apollolake | | **No** | DSM missing many required files |
| | Avoton | | **No** | DSM missing many required files |
| | Denverton | | **No** | DSM missing many required files |
</details>
## Download the script
1. Download the latest version _Source code (zip)_ from https://github.com/007revad/Synology_enable_Deduplication/releases
2. Save the download zip file to a folder on the Synology.
3. Unzip the zip file.
## How to run the script
### Running the script via SSH
[How to enable SSH and login to DSM via SSH](https://kb.synology.com/en-global/DSM/tutorial/How_to_login_to_DSM_with_root_permission_via_SSH_Telnet)
**Note:** Replace /volume1/scripts/ with the path to where the script is located.
Run the script then reboot the Synology:
```YAML
sudo -s /volume1/scripts/syno_enable_dedupe.sh
```
**Options:**
```YAML
-c, --check Check value in file and backup file
-r, --restore Undo all changes made by the script
-t, --tiny Enable tiny data deduplication (only needs 4GB RAM)
DSM 7.2.1 and later only
--hdd Enable data deduplication for HDDs.
Can cause files to become more fragmented,
resulting in decreased access performance.
-e, --email Disable colored text in output for scheduler emails
--autoupdate=AGE Auto update script (useful when script is scheduled)
AGE is how many days old a release must be before
auto-updating. AGE must be a number: 0 or greater
-s, --skip Skip memory amount check (for testing)
-h, --help Show this help message
-v, --version Show the script version
```
**Extra Steps:**
To get rid of <a href="images/notification.png">drive database outdated</a> notifications and <a href=images/before_running_syno_hdd_db.png>unrecognised firmware</a> warnings run <a href=https://github.com/007revad/Synology_HDD_db>Synology_HDD_db</a> which will add your drives to DSM's compatibile drive databases, and prevent the drive compatability databases being updated between DSM updates.
```YAML
sudo -s /path-to-script/syno_hdd_db.sh --noupdate
```
### What about DSM updates?
After any DSM update you will need to run this script, and the Synology_HDD_db script again.
### Schedule the script to run at shutdown
Or you can schedule both Synology_enable_Deduplication and Synology_HDD_db to run when the Synology shuts down, to avoid having to remember to run both scripts after a DSM update.
See <a href=how_to_schedule.md/>How to schedule a script in Synology Task Scheduler</a>
<br>
## Screenshots
Here's the result after running the script and rebooting. Note that the DS1821+ is not officially listed as supporting deduplication, and non-Synology SSDs are being used.
<p align="center">Unsupported NAS model with enough memory</p>
<p align="center"><img src="/images/0_ds1821+.png"></p>
<p align="center">Non-Synology SSDs setup as a volume</p>
<p align="center"><img src="/images/1_ds1821+_dedupe_nvmes.png"></p>
<p align="center">Enable Data Deduplication option available after running this script and rebooting</p>
<p align="center"><img src="/images/3_ds1821+_dedupe_option_enabled.png"></p>
<p align="center">Configure Data Deduplication</p>
<p align="center"><img src="/images/4_ds1821+_dedupe_configure.png"></p>
<p align="center">Deduplication finished notification</p>
<p align="center"><img src="/images/5b_ds1821+_dedupe_notification.png"></p>
<p align="center">Deduplications works.</p>
<p align="center"><img src="/images/6b_ds1821+_dedupe_works.png"></p>
<p align="center">Deduplication for HDDs too.</p>
<p align="center"><img src="/images/hdd_dedupe.png"></p>
| 13,226 | README | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.15093778, "qsc_doc_num_sentences": 337.0, "qsc_doc_num_words": 2102, "qsc_doc_num_chars": 13226.0, "qsc_doc_num_lines": 216.0, "qsc_doc_mean_word_length": 3.84823977, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.18744053, "qsc_doc_entropy_unigram": 4.72719536, "qsc_doc_frac_words_all_caps": 0.06073236, "qsc_doc_frac_lines_dupe_lines": 0.13095238, "qsc_doc_frac_chars_dupe_lines": 0.041404, "qsc_doc_frac_chars_top_2grams": 0.04005439, "qsc_doc_frac_chars_top_3grams": 0.04635925, "qsc_doc_frac_chars_top_4grams": 0.04227964, "qsc_doc_frac_chars_dupe_5grams": 0.54283595, "qsc_doc_frac_chars_dupe_6grams": 0.5135369, "qsc_doc_frac_chars_dupe_7grams": 0.48374336, "qsc_doc_frac_chars_dupe_8grams": 0.39844233, "qsc_doc_frac_chars_dupe_9grams": 0.37520089, "qsc_doc_frac_chars_dupe_10grams": 0.36951416, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 1.0, "qsc_doc_num_chars_sentence_length_mean": 22.91862568, "qsc_doc_frac_chars_hyperlink_html_tag": 0.15953425, "qsc_doc_frac_chars_alphabet": 0.67725617, "qsc_doc_frac_chars_digital": 0.14113719, "qsc_doc_frac_chars_whitespace": 0.25268411, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_enable_Deduplication | how_to_schedule.md | # How to schedule a script in Synology Task Scheduler
To schedule a script to run on your Synology at boot-up or shutdown follow these steps:
**Note:** You can setup a schedule task and leave it disabled, so it only runs when you select the task in the Task Scheduler and click on the Run button.
1. Go to **Control Panel** > **Task Scheduler** > click **Create** > and select **Triggered Task**.
2. Select **User-defined script**.
3. Enter a task name.
4. Select **root** as the user (The script needs to run as root).
5. Select **Shutdown** as the event that triggers the task.
6. Leave **Enable** ticked.
7. Click **Task Settings**.
8. Optionally you can tick **Send run details by email** and **Send run details only when the script terminates abnormally** then enter your email address.
9. In the box under **User-defined script** type the path to the script.
- e.g. If you saved the script to a shared folder on volume1 called "scripts" you'd type: **/volume1/scripts/syno_enable_dedupe.sh**
11. Click **OK** to save the settings.
Here's some screenshots showing what needs to be set:
<p align="leftr"><img src="images/schedule1.png"></p>
<p align="leftr"><img src="images/schedule2b.png"></p>
<p align="leftr"><img src="images/schedule3.png"></p>
| 1,266 | how_to_schedule | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.24595469, "qsc_doc_num_sentences": 28.0, "qsc_doc_num_words": 217, "qsc_doc_num_chars": 1266.0, "qsc_doc_num_lines": 25.0, "qsc_doc_mean_word_length": 4.1843318, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.51152074, "qsc_doc_entropy_unigram": 4.40830511, "qsc_doc_frac_words_all_caps": 0.00323625, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.03964758, "qsc_doc_frac_chars_top_3grams": 0.03634361, "qsc_doc_frac_chars_top_4grams": 0.04625551, "qsc_doc_frac_chars_dupe_5grams": 0.08480176, "qsc_doc_frac_chars_dupe_6grams": 0.08480176, "qsc_doc_frac_chars_dupe_7grams": 0.05947137, "qsc_doc_frac_chars_dupe_8grams": 0.05947137, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 22.90566038, "qsc_doc_frac_chars_hyperlink_html_tag": 0.12638231, "qsc_doc_frac_chars_alphabet": 0.84071631, "qsc_doc_frac_chars_digital": 0.01508011, "qsc_doc_frac_chars_whitespace": 0.16192733, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Download_Station_Chrome_Extension | download-dialog.html | <!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="css/download-dialog.css" />
</head>
<body>
<div id="add-download" class="modal fade" data-keyboard="false" autocomplete="off">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 class="modal-title" data-message="dialogAdvancedTitle"></h3>
</div>
<div class="modal-body row">
<form class="col-md-6">
<div class="form-group">
<label class="control-label" for="urls" data-message="dialogAdvancedLblUrls"></label>
<textarea class="form-control"
id="urls"
data-bind="value: urls, event: { input: setUrlsTextareaHeight, change: extractUrls }"
data-attr-message="placeholder|dialogAdvancedTooltipUrls"
required></textarea>
</div>
<div class="form-group">
<label class="control-label" for="username" data-message="dialogAdvancedLblUsername"></label>
<input class="form-control" type="text" id="username"
data-bind="value: username"
data-attr-message="placeholder|dialogAdvancedTooltipUsername">
</div>
<div class="form-group">
<label class="control-label" for="password" data-message="dialogAdvancedLblPassword"></label>
<div class="input-group">
<input class="form-control" type="password" id="password"
data-bind="value: password"
data-attr-message="placeholder|dialogAdvancedTooltipPassword">
<span class="input-group-btn">
<button class="btn btn-default" data-toggle-show-password="password" tabindex="-1">
<i class="fa fa-eye"></i>
</button>
</span>
</div>
</div>
<div class="form-group">
<label class="control-label" for="unzip-password" data-message="dialogAdvancedLblUnzipPassword"></label>
<div class="input-group">
<input class="form-control" type="password" id="unzip-password"
data-bind="value: unzipPassword"
data-attr-message="placeholder|dialogAdvancedLblUnzipPassword,data-content|dialogAdvancedTooltipUnzipPassword">
<span class="input-group-btn">
<button class="btn btn-default" data-toggle-show-password="unzip-password" tabindex="-1">
<i class="fa fa-eye"></i>
</button>
</span>
</div>
</div>
</form>
<!-- Folder selection -->
<div class="col-md-6">
<label class="control-label" data-message="dialogAdvancedLblDestinationFolder"></label>
<div class="alert alert-warning"
data-bind="visible: customDestinationFolderSupported() === false">
Your Download Station package version does not support destination folder selection.
</div>
<!-- ko if: customDestinationFolderSupported() !== false -->
<div class="checkbox">
<label>
<input type="checkbox" data-bind="checked: useCustomDestinationFolder, disabled: customDestinationFolderSupported() == null" checked>
<span data-message="dialogAdvancedCheckboxDestinationFolder"></span>
</label>
</div>
<div class="folder-selection" data-bind="click: enableCustomDestinationFolder, css: { disabled: !useCustomDestinationFolder() }">
<div class="folder-selection-overlay"></div>
<ul class="breadcrumb folderpath" data-bind="foreach: folderPath">
<li data-bind="click: $root.setCurrentFolder, attr: { title: path }">
<!-- ko if: $data.path() == $root.currentFolder().path() -->
<span>
<i class="fa fa-home fa-fw" data-bind="visible: !parentFolder"></i>
<span data-bind="visible: parentFolder, text: name"></span>
</span>
<!-- /ko -->
<!-- ko if: $data.path() != $root.currentFolder().path() -->
<a href="#" data-bind="visible: $data.path() != $root.currentFolder().path()">
<i class="fa fa-home fa-fw" data-bind="visible: !parentFolder"></i>
<span data-bind="visible: parentFolder, text: name"></span>
</a>
<!-- /ko -->
</li>
</ul>
<!-- Current folder contents -->
<div class="file-list" data-bind="with: currentFolder">
<div class="list-group">
<!-- ko with: parentFolder -->
<!--a href="#" class="list-group-item list-group-item-info" data-bind="click: $root.setCurrentFolder, attr: { title: path }">
<i class="fa fa-fw fa-level-up fa-flip-horizontal"></i>
<span data-bind="text: name"></span>
</a-->
<!-- /ko -->
<!-- ko if: loadingFolders -->
<span class="list-group-item list-group-item-warning">
<i class="fa fa-fw fa-spinner fa-spin"></i>
<span data-message="dialogAdvancedFolderSelectionLoadingFolders"></span>
</span>
<!-- /ko -->
<!-- ko if: !loadingFolders() && !errorMessage() && folders().length == 0 -->
<span class="list-group-item list-group-item-warning">This folder does not contain any subfolders</span>
<!-- /ko -->
<!-- ko if: !loadingFolders() && errorMessage -->
<span class="list-group-item list-group-item-danger error-message">
<i class="fa fa-fw fa-exclamation-triangle"></i>
<span data-bind="text: errorMessage"></span>
</span>
<!-- /ko -->
<!-- ko foreach: folders -->
<a href="#" class="list-group-item" data-bind="click: $root.setCurrentFolder, attr: { title: path }, css: { 'list-group-item-danger': remove.confirm(), editing: name.editing }">
<i class="fa fa-fw fa-folder-o"></i>
<i class="fa fa-fw fa-folder-open-o"></i>
<!-- ko if: !name.editing() -->
<span class="text-label" data-bind="text: name"></span>
<!-- ko if: !remove.confirm() -->
<!--button data-bind="visible: !$parent.readOnly(), click: remove, clickBubble: false"
class="btn btn-xs btn-link pull-right hover-button">
<i class="fa fa-fw fa-trash-o"></i>
</button-->
<button data-bind="visible: !$parent.readOnly(), click: rename, clickBubble: false"
class="btn btn-xs btn-link pull-right hover-button">
<i class="fa fa-fw fa-pencil"></i>
</button>
<!-- /ko -->
<!-- ko if: remove.confirm() -->
<button data-bind="click: removeCancel, clickBubble: false, disable: remove.removing"
class="btn btn-xs btn-link pull-right">
<i class="fa fa-fw fa-times"></i>
</button>
<button data-bind="click: removeConfirm, clickBubble: false, disable: remove.removing, bsTooltip: { visible: remove.error, title: remove.error, viewport: '#folder-list' }"
class="btn btn-xs btn-link pull-right">
<i class="fa fa-fw fa-check"></i>
</button>
<!-- /ko -->
<!-- /ko -->
<!-- ko if: name.editing() -->
<input data-bind="value: name.unsaved, valueUpdate: 'input', hasFocus: name.focus, disable: name.saving, bsTooltip: { visible: name.error, title: name.error, viewport: '#folder-list' }, event: {keyup: renameKeyUp }" type="text" />
<button data-bind="click: renameCancel, clickBubble: false, disable: name.saving,"
class="btn btn-xs btn-link pull-right">
<i class="fa fa-fw fa-times"></i>
</button>
<button data-bind="click: renameSave, clickBubble: false, disable: name.saving,"
class="btn btn-xs btn-link pull-right">
<i class="fa fa-fw fa-check"></i>
</button>
<!-- /ko -->
</a>
<!-- /ko -->
</div>
</div>
<div class="row" data-bind="visible: !currentFolder().readOnly() && !currentFolder().errorMessage()">
<div class="col-xs-12">
<form class="input-group" data-bind="submit: createNewFolder, css: { 'has-error': newFolderName() && !newFolderNameValid() }">
<input data-bind="value: newFolderName, valueUpdate: 'input', attr: { disabled: newFolderSubmitting() }" type="text" class="form-control" placeholder="New folder name" maxlength="255" />
<span class="input-group-btn">
<button class="btn btn-primary" type="submit" data-bind="click: createNewFolder, attr: { disabled: !newFolderNameValid() || newFolderSubmitting() }">
<i class="fa fa-fw fa-plus" data-bind="visible: !newFolderSubmitting()"></i>
<i class="fa fa-fw fa-spinner fa-spin" data-bind="visible: newFolderSubmitting()"></i>
<span>Create folder</span>
</button>
</span>
</form>
<div class="alert alert-danger" data-bind="visible: newFolderErrorMessage, text: newFolderErrorMessage"></div>
</div>
</div>
<div class="alert alert-danger" data-bind="visible: useCustomDestinationFolder() && !currentFolder().loadingFolders() && !currentFolder().errorMessage() && currentFolder().readOnly">The current folder is read-only. It can't be used as a destination folder.</div>
</div>
<!-- /ko -->
</div>
</div>
<div class="modal-footer">
<span data-bind="visible: submitDownloadError(), text: submitDownloadError" class="text-danger"></span>
<!-- <button type="button" class="btn btn-danger" data-dismiss="modal" data-message="dialogAdvancedBtnCancel"></button> -->
<button data-bind="click: submitDownload, attr: { disabled: !formValid() || submittingDownload() }"
type="button"
class="btn btn-primary">
<i data-bind="visible: !submittingDownload()" class="fa fa-fw fa-plus"></i>
<i data-bind="visible: submittingDownload()" class="fa fa-fw fa-spinner fa-spin"></i>
<span data-message="dialogAdvancedBtnAddDownload"></span>
</button>
</div>
</div>
</div>
</div>
<script src="js/variables.js"></script>
<script src="js/lib/jquery.js"></script>
<script src="js/lib/jquery.deparam.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/knockout.js"></script>
<script src="js/browser-functions.js"></script>
<script src="js/download-dialog.js"></script>
</body>
</html> | 11,354 | download-dialog | html | en | html | code | {"qsc_code_num_words": 1175, "qsc_code_num_chars": 11354.0, "qsc_code_mean_word_length": 5.33702128, "qsc_code_frac_words_unique": 0.1906383, "qsc_code_frac_chars_top_2grams": 0.04975283, "qsc_code_frac_chars_top_3grams": 0.02726838, "qsc_code_frac_chars_top_4grams": 0.02710891, "qsc_code_frac_chars_dupe_5grams": 0.44554298, "qsc_code_frac_chars_dupe_6grams": 0.37649498, "qsc_code_frac_chars_dupe_7grams": 0.34555892, "qsc_code_frac_chars_dupe_8grams": 0.29405199, "qsc_code_frac_chars_dupe_9grams": 0.24844522, "qsc_code_frac_chars_dupe_10grams": 0.20554935, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00146699, "qsc_code_frac_chars_whitespace": 0.27954906, "qsc_code_size_file_byte": 11354.0, "qsc_code_num_lines": 224.0, "qsc_code_num_chars_line_max": 274.0, "qsc_code_num_chars_line_mean": 50.6875, "qsc_code_frac_chars_alphabet": 0.76515892, "qsc_code_frac_chars_comments": 0.11942928, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.37804878, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.01829268, "qsc_code_frac_chars_string_length": 0.42974297, "qsc_code_frac_chars_long_word_length": 0.13661366, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.03928131, "qsc_codehtml_num_chars_text": 446.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 1, "qsc_codehtml_num_chars_text": 0} |
007revad/Synology_Download_Station_Chrome_Extension | my-other-scripts.md | ## All my scripts, tools and guides
<img src="https://hitscounter.dev/api/hit?url=https%3A%2F%2F007revad.github.io%2F&label=Visitors&icon=github&color=%23198754&message=&style=flat&tz=UTC">
#### Contents
- [Plex](#plex)
- [Synology docker](#synology-docker)
- [Synology recovery](#synology-recovery)
- [Other Synology scripts](#other-synology-scripts)
- [Synology hardware restrictions](#synology-hardware-restrictions)
- [2025 plus models](#2025-plus-models)
- [How To Guides](#how-to-guides)
- [Synology dev](#synology-dev)
***
### Plex
- **<a href="https://github.com/007revad/Synology_Plex_Backup">Synology_Plex_Backup</a>**
- A script to backup Plex to a tgz file foror DSM 7 and DSM 6.
- Works for Plex Synology package and Plex in docker.
- **<a href="https://github.com/007revad/Asustor_Plex_Backup">Asustor_Plex_Backup</a>**
- Backup your Asustor's Plex Media Server settings and database.
- **<a href="https://github.com/007revad/Linux_Plex_Backup">Linux_Plex_Backup</a>**
- Backup your Linux Plex Media Server's settings and database.
- **<a href="https://github.com/007revad/Plex_Server_Sync">Plex_Server_Sync</a>**
- Sync your main Plex server database & metadata to a backup Plex server.
- Works for Synology, Asustor, Linux and supports Plex package or Plex in docker.
[Back to Contents](#contents)
### Synology docker
- **<a href="https://github.com/007revad/Synology_Docker_Export">Synology_Docker_export</a>**
- Export all Synology Container Manager or Docker containers' settings as json files to your docker shared folder.
- **<a href="https://github.com/007revad/Synology_ContainerManager_IPv6">Synology_ContainerManager_IPv6</a>**
- Enable IPv6 for Container Manager's bridge network.
- **<a href="https://github.com/007revad/ContainerManager_for_all_armv8">ContainerManager_for_all_armv8</a>**
- Script to install Container Manager on a RS819, DS119j, DS418, DS418j, DS218, DS218play or DS118.
- **<a href="https://github.com/007revad/Docker_Autocompose">Docker_Autocompose</a>**
- Create .yml files from your docker existing containers.
- **<a href="https://github.com/007revad/Synology_docker_cleanup">Synology_docker_cleanup</a>**
- Remove orphan docker btrfs subvolumes and images in Synology DSM 7 and DSM 6.
[Back to Contents](#contents)
### Synology recovery
- **<a href="https://github.com/007revad/Synology_DSM_reinstall">Synology_DSM_reinstall</a>**
- Easily re-install the same DSM version without losing any data or settings.
- **<a href="https://github.com/007revad/Synology_Recover_Data">Synology_Recover_Data</a>**
- A script to make it easy to recover your data from your Synology's drives using a computer.
- **<a href="https://github.com/007revad/Synology_clear_drive_error">Synology clear drive error</a>**
- Clear drive critical errors so DSM will let you use the drive.
- **<a href="https://github.com/007revad/Synology_DSM_Telnet_Password">Synology_DSM_Telnet_Password</a>**
- Synology DSM Recovery Telnet Password of the Day generator.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/Synoboot_backup">Synoboot_backup</a>**
- Back up synoboot after each DSM update so you can recover from a corrupt USBDOM.
[Back to Contents](#contents)
### Other Synology scripts
- **<a href="https://github.com/007revad/Synology_app_mover">Synology_app_mover</a>**
- Easily move Synology packages from one volume to another volume.
- **<a href="https://github.com/007revad/Video_Station_for_DSM_722">Video_Station_for_DSM_722</a>**
- Script to install Video Station in DSM 7.2.2
- **<a href="https://github.com/007revad/SS_Motion_Detection">SS_Motion_Detection</a>**
- Installs previous Surveillance Station and Advanced Media Extensions versions so motion detection and HEVC are supported.
- **<a href="https://github.com/007revad/Synology_Config_Backup">Synology_Config_Backup</a>**
- Backup and export your Synology DSM configuration.
- **<a href="https://github.com/007revad/Synology_CPU_temperature">Synology_CPU_temperature</a>**
- Get and log Synology NAS CPU temperature via SSH.
- **<a href="https://github.com/007revad/Synology_SMART_info">Synology_SMART_info</a>**
- Show Synology smart test progress or smart health and attributes.
- **<a href="https://github.com/007revad/Synology_Cleanup_Coredumps">Synology_Cleanup_Coredumps</a>**
- Cleanup memory core dumps from crashed processes.
- **<a href="https://github.com/007revad/Synology_toggle_reset_button">Synology_toggle_reset_button</a>**
- Script to disable or enable the reset button and show current setting.
- **<a href="https://github.com/007revad/Synology_Download_Station_Chrome_Extension">Synology_Download_Station_Chrome_Extension</a>**
- Download Station Chrome Extension.
- **<a href="https://github.com/007revad/Seagate_lowCurrentSpinup">Seagate_lowCurrentSpinup</a>**
- This script avoids the need to buy and install a higher wattage power supply when using multiple large Seagate SATA HDDs.
[Back to Contents](#contents)
### Synology hardware restrictions
- **<a href="https://github.com/007revad/Synology_HDD_db">Synology_HDD_db</a>**
- Add your SATA or SAS HDDs and SSDs plus SATA and NVMe M.2 drives to your Synology's compatible drive databases, including your Synology M.2 PCIe card and Expansion Unit databases.
- **<a href="https://github.com/007revad/Synology_enable_M2_volume">Synology_enable_M2_volume</a>**
- Enable creating volumes with non-Synology M.2 drives.
- Enable Health Info for non-Synology NVMe drives (not in DSM 7.2.1 or later).
- **<a href="https://github.com/007revad/Synology_M2_volume">Synology_M2_volume</a>**
- Easily create an M.2 volume on Synology NAS.
- **<a href="https://github.com/007revad/Synology_enable_M2_card">Synology_enable_M2_card</a>**
- Enable Synology M.2 PCIe cards in Synology NAS that don't officially support them.
- **<a href="https://github.com/007revad/Synology_enable_eunit">Synology_enable_eunit</a>**
- Enable an unsupported Synology eSATA Expansion Unit models.
- **<a href="https://github.com/007revad/Synology_enable_Deduplication">Synology_enable_Deduplication</a>**
- Enable deduplication with non-Synology SSDs and unsupported NAS models.
- **<a href="https://github.com/007revad/Synology_SHR_switch">Synology_SHR_switch</a>**
- Easily switch between SHR and RAID Groups, or enable RAID F1.
- **<a href="https://github.com/007revad/Synology_enable_sequential_IO">Synology_enable_sequential_IO</a>**
- Enables sequential I/O for your SSD caches, like DSM 6 had.
- **<a href="https://github.com/007revad/Synology_Information_Wiki">Synology_Information_Wiki</a>**
- Information about Synology hardware.
[Back to Contents](#contents)
### 2025 plus models
- **<a href="https://github.com/007revad/Transcode_for_x25">Transcode_for_x25</a>**
- Installs the modules needed for Plex or Jellyfin hardware transcoding in DS425+ and DS225+.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md">2025 series or later Plus models</a>**
- Unverified 3rd party drive limitations and unofficial solutions.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#setting-up-a-new-2025-or-later-plus-model-with-only-unverified-hdds">Setup with only 3rd party drives</a>**
- Setting up a new 2025 or later plus model with only unverified HDDs.
- **<a href="https://github.com/007revad/Synology_HDD_db/blob/main/2025_plus_models.md#deleting-and-recreating-your-storage-pool-on-unverified-hdds">Recreating storage pool on migrated drives</a>**
- Deleting and recreating your storage pool on unverified HDDs.
[Back to Contents](#contents)
### How To Guides
- **<a href="https://github.com/007revad/Synology_SSH_key_setup">Synology_SSH_key_setup</a>**
- How to setup SSH key authentication for your Synology.
[Back to Contents](#contents)
### Synology dev
- **<a href="https://github.com/007revad/Download_Synology_Archive">Download_Synology_Archive</a>**
- Download all or part of the Synology archive.
- **<a href="https://github.com/007revad/Syno_DSM_Extractor_GUI">Syno_DSM_Extractor_GUI</a>**
- Windows GUI for extracting Synology DSM 7 pat files and spk package files.
- **<a href="https://github.com/007revad/ScriptNotify">ScriptNotify</a>**
- DSM 7 package to allow your scripts to send DSM notifications.
- **<a href="https://github.com/007revad/DTC_GUI_for_Windows">DTC_GUI_for_Windows</a>**
- GUI for DTC.exe for Windows.
[Back to Contents](#contents)
| 9,099 | my-other-scripts | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.16632653, "qsc_doc_num_sentences": 107.0, "qsc_doc_num_words": 1341, "qsc_doc_num_chars": 9099.0, "qsc_doc_num_lines": 180.0, "qsc_doc_mean_word_length": 4.94630872, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.23191648, "qsc_doc_entropy_unigram": 4.76529845, "qsc_doc_frac_words_all_caps": 0.02908163, "qsc_doc_frac_lines_dupe_lines": 0.1025641, "qsc_doc_frac_chars_dupe_lines": 0.10911978, "qsc_doc_frac_chars_top_2grams": 0.05789236, "qsc_doc_frac_chars_top_3grams": 0.06482738, "qsc_doc_frac_chars_top_4grams": 0.10372381, "qsc_doc_frac_chars_dupe_5grams": 0.39981909, "qsc_doc_frac_chars_dupe_6grams": 0.36891301, "qsc_doc_frac_chars_dupe_7grams": 0.34041912, "qsc_doc_frac_chars_dupe_8grams": 0.25569124, "qsc_doc_frac_chars_dupe_9grams": 0.20624152, "qsc_doc_frac_chars_dupe_10grams": 0.15829941, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 30.70731707, "qsc_doc_frac_chars_hyperlink_html_tag": 0.34762062, "qsc_doc_frac_chars_alphabet": 0.79007303, "qsc_doc_frac_chars_digital": 0.03094442, "qsc_doc_frac_chars_whitespace": 0.11210023, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Download_Station_Chrome_Extension | license.html | <div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h3 id="myModalLabel">License</h3>
</div>
<div class="modal-body">
<p>THE WORK (AS DEFINED BELOW) IS PROVIDED UNDER THE TERMS
OF THIS CREATIVE COMMONS PUBLIC LICENSE ("CCPL" OR
"LICENSE"). THE WORK IS PROTECTED BY COPYRIGHT AND/OR OTHER
APPLICABLE LAW. ANY USE OF THE WORK OTHER THAN AS
AUTHORIZED UNDER THIS LICENSE OR COPYRIGHT LAW IS
PROHIBITED.</p>
<p>BY EXERCISING ANY RIGHTS TO THE WORK PROVIDED HERE, YOU
ACCEPT AND AGREE TO BE BOUND BY THE TERMS OF THIS LICENSE.
TO THE EXTENT THIS LICENSE MAY BE CONSIDERED TO BE A
CONTRACT, THE LICENSOR GRANTS YOU THE RIGHTS CONTAINED HERE
IN CONSIDERATION OF YOUR ACCEPTANCE OF SUCH TERMS AND
CONDITIONS.</p>
<p><strong>1. Definitions</strong></p>
<ol type="a">
<li><strong>"Adaptation"</strong> means a work based upon
the Work, or upon the Work and other pre-existing works,
such as a translation, adaptation, derivative work,
arrangement of music or other alterations of a literary
or artistic work, or phonogram or performance and
includes cinematographic adaptations or any other form in
which the Work may be recast, transformed, or adapted
including in any form recognizably derived from the
original, except that a work that constitutes a
Collection will not be considered an Adaptation for the
purpose of this License. For the avoidance of doubt,
where the Work is a musical work, performance or
phonogram, the synchronization of the Work in
timed-relation with a moving image ("synching") will be
considered an Adaptation for the purpose of this
License.</li>
<li><strong>"Collection"</strong> means a collection of
literary or artistic works, such as encyclopedias and
anthologies, or performances, phonograms or broadcasts,
or other works or subject matter other than works listed
in Section 1(f) below, which, by reason of the selection
and arrangement of their contents, constitute
intellectual creations, in which the Work is included in
its entirety in unmodified form along with one or more
other contributions, each constituting separate and
independent works in themselves, which together are
assembled into a collective whole. A work that
constitutes a Collection will not be considered an
Adaptation (as defined above) for the purposes of this
License.</li>
<li><strong>"Distribute"</strong> means to make available
to the public the original and copies of the Work through
sale or other transfer of ownership.</li>
<li><strong>"Licensor"</strong> means the individual,
individuals, entity or entities that offer(s) the Work
under the terms of this License.</li>
<li><strong>"Original Author"</strong> means, in the case
of a literary or artistic work, the individual,
individuals, entity or entities who created the Work or
if no individual or entity can be identified, the
publisher; and in addition (i) in the case of a
performance the actors, singers, musicians, dancers, and
other persons who act, sing, deliver, declaim, play in,
interpret or otherwise perform literary or artistic works
or expressions of folklore; (ii) in the case of a
phonogram the producer being the person or legal entity
who first fixes the sounds of a performance or other
sounds; and, (iii) in the case of broadcasts, the
organization that transmits the broadcast.</li>
<li><strong>"Work"</strong> means the literary and/or
artistic work offered under the terms of this License
including without limitation any production in the
literary, scientific and artistic domain, whatever may be
the mode or form of its expression including digital
form, such as a book, pamphlet and other writing; a
lecture, address, sermon or other work of the same
nature; a dramatic or dramatico-musical work; a
choreographic work or entertainment in dumb show; a
musical composition with or without words; a
cinematographic work to which are assimilated works
expressed by a process analogous to cinematography; a
work of drawing, painting, architecture, sculpture,
engraving or lithography; a photographic work to which
are assimilated works expressed by a process analogous to
photography; a work of applied art; an illustration, map,
plan, sketch or three-dimensional work relative to
geography, topography, architecture or science; a
performance; a broadcast; a phonogram; a compilation of
data to the extent it is protected as a copyrightable
work; or a work performed by a variety or circus
performer to the extent it is not otherwise considered a
literary or artistic work.</li>
<li><strong>"You"</strong> means an individual or entity
exercising rights under this License who has not
previously violated the terms of this License with
respect to the Work, or who has received express
permission from the Licensor to exercise rights under
this License despite a previous violation.</li>
<li><strong>"Publicly Perform"</strong> means to perform
public recitations of the Work and to communicate to the
public those public recitations, by any means or process,
including by wire or wireless means or public digital
performances; to make available to the public Works in
such a way that members of the public may access these
Works from a place and at a place individually chosen by
them; to perform the Work to the public by any means or
process and the communication to the public of the
performances of the Work, including by public digital
performance; to broadcast and rebroadcast the Work by any
means including signs, sounds or images.</li>
<li><strong>"Reproduce"</strong> means to make copies of
the Work by any means including without limitation by
sound or visual recordings and the right of fixation and
reproducing fixations of the Work, including storage of a
protected performance or phonogram in digital form or
other electronic medium.</li>
</ol>
<p><strong>2. Fair Dealing Rights.</strong> Nothing in this
License is intended to reduce, limit, or restrict any uses
free from copyright or rights arising from limitations or
exceptions that are provided for in connection with the
copyright protection under copyright law or other
applicable laws.</p>
<p><strong>3. License Grant.</strong> Subject to the terms
and conditions of this License, Licensor hereby grants You
a worldwide, royalty-free, non-exclusive, perpetual (for
the duration of the applicable copyright) license to
exercise the rights in the Work as stated below:</p>
<ol type="a">
<li>to Reproduce the Work, to incorporate the Work into
one or more Collections, and to Reproduce the Work as
incorporated in the Collections; and,</li>
<li>to Distribute and Publicly Perform the Work including
as incorporated in Collections.</li>
<li>
<p>For the avoidance of doubt:</p>
<ol type="i">
<li><strong>Non-waivable Compulsory License
Schemes</strong>. In those jurisdictions in which the
right to collect royalties through any statutory or
compulsory licensing scheme cannot be waived, the
Licensor reserves the exclusive right to collect such
royalties for any exercise by You of the rights
granted under this License;</li>
<li><strong>Waivable Compulsory License
Schemes</strong>. In those jurisdictions in which the
right to collect royalties through any statutory or
compulsory licensing scheme can be waived, the
Licensor waives the exclusive right to collect such
royalties for any exercise by You of the rights
granted under this License; and,</li>
<li><strong>Voluntary License Schemes</strong>. The
Licensor waives the right to collect royalties,
whether individually or, in the event that the
Licensor is a member of a collecting society that
administers voluntary licensing schemes, via that
society, from any exercise by You of the rights
granted under this License.</li>
</ol>
</li>
</ol>
<p>The above rights may be exercised in all media and
formats whether now known or hereafter devised. The above
rights include the right to make such modifications as are
technically necessary to exercise the rights in other media
and formats, but otherwise you have no rights to make
Adaptations. Subject to Section 8(f), all rights not
expressly granted by Licensor are hereby reserved.</p>
<p><strong>4. Restrictions.</strong> The license granted in
Section 3 above is expressly made subject to and limited by
the following restrictions:</p>
<ol type="a">
<li>You may Distribute or Publicly Perform the Work only
under the terms of this License. You must include a copy
of, or the Uniform Resource Identifier (URI) for, this
License with every copy of the Work You Distribute or
Publicly Perform. You may not offer or impose any terms
on the Work that restrict the terms of this License or
the ability of the recipient of the Work to exercise the
rights granted to that recipient under the terms of the
License. You may not sublicense the Work. You must keep
intact all notices that refer to this License and to the
disclaimer of warranties with every copy of the Work You
Distribute or Publicly Perform. When You Distribute or
Publicly Perform the Work, You may not impose any
effective technological measures on the Work that
restrict the ability of a recipient of the Work from You
to exercise the rights granted to that recipient under
the terms of the License. This Section 4(a) applies to
the Work as incorporated in a Collection, but this does
not require the Collection apart from the Work itself to
be made subject to the terms of this License. If You
create a Collection, upon notice from any Licensor You
must, to the extent practicable, remove from the
Collection any credit as required by Section 4(b), as
requested.</li>
<li>If You Distribute, or Publicly Perform the Work or
Collections, You must, unless a request has been made
pursuant to Section 4(a), keep intact all copyright
notices for the Work and provide, reasonable to the
medium or means You are utilizing: (i) the name of the
Original Author (or pseudonym, if applicable) if
supplied, and/or if the Original Author and/or Licensor
designate another party or parties (e.g., a sponsor
institute, publishing entity, journal) for attribution
("Attribution Parties") in Licensor's copyright notice,
terms of service or by other reasonable means, the name
of such party or parties; (ii) the title of the Work if
supplied; (iii) to the extent reasonably practicable, the
URI, if any, that Licensor specifies to be associated
with the Work, unless such URI does not refer to the
copyright notice or licensing information for the Work.
The credit required by this Section 4(b) may be
implemented in any reasonable manner; provided, however,
that in the case of a Collection, at a minimum such
credit will appear, if a credit for all contributing
authors of the Collection appears, then as part of these
credits and in a manner at least as prominent as the
credits for the other contributing authors. For the
avoidance of doubt, You may only use the credit required
by this Section for the purpose of attribution in the
manner set out above and, by exercising Your rights under
this License, You may not implicitly or explicitly assert
or imply any connection with, sponsorship or endorsement
by the Original Author, Licensor and/or Attribution
Parties, as appropriate, of You or Your use of the Work,
without the separate, express prior written permission of
the Original Author, Licensor and/or Attribution
Parties.</li>
<li>Except as otherwise agreed in writing by the Licensor
or as may be otherwise permitted by applicable law, if
You Reproduce, Distribute or Publicly Perform the Work
either by itself or as part of any Collections, You must
not distort, mutilate, modify or take other derogatory
action in relation to the Work which would be prejudicial
to the Original Author's honor or reputation.</li>
</ol>
<p><strong>5. Representations, Warranties and
Disclaimer</strong></p>
<p>UNLESS OTHERWISE MUTUALLY AGREED TO BY THE PARTIES IN
WRITING, LICENSOR OFFERS THE WORK AS-IS AND MAKES NO
REPRESENTATIONS OR WARRANTIES OF ANY KIND CONCERNING THE
WORK, EXPRESS, IMPLIED, STATUTORY OR OTHERWISE, INCLUDING,
WITHOUT LIMITATION, WARRANTIES OF TITLE, MERCHANTIBILITY,
FITNESS FOR A PARTICULAR PURPOSE, NONINFRINGEMENT, OR THE
ABSENCE OF LATENT OR OTHER DEFECTS, ACCURACY, OR THE
PRESENCE OF ABSENCE OF ERRORS, WHETHER OR NOT DISCOVERABLE.
SOME JURISDICTIONS DO NOT ALLOW THE EXCLUSION OF IMPLIED
WARRANTIES, SO SUCH EXCLUSION MAY NOT APPLY TO YOU.</p>
<p><strong>6. Limitation on Liability.</strong> EXCEPT TO
THE EXTENT REQUIRED BY APPLICABLE LAW, IN NO EVENT WILL
LICENSOR BE LIABLE TO YOU ON ANY LEGAL THEORY FOR ANY
SPECIAL, INCIDENTAL, CONSEQUENTIAL, PUNITIVE OR EXEMPLARY
DAMAGES ARISING OUT OF THIS LICENSE OR THE USE OF THE WORK,
EVEN IF LICENSOR HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.</p>
<p><strong>7. Termination</strong></p>
<ol type="a">
<li>This License and the rights granted hereunder will
terminate automatically upon any breach by You of the
terms of this License. Individuals or entities who have
received Collections from You under this License,
however, will not have their licenses terminated provided
such individuals or entities remain in full compliance
with those licenses. Sections 1, 2, 5, 6, 7, and 8 will
survive any termination of this License.</li>
<li>Subject to the above terms and conditions, the
license granted here is perpetual (for the duration of
the applicable copyright in the Work). Notwithstanding
the above, Licensor reserves the right to release the
Work under different license terms or to stop
distributing the Work at any time; provided, however that
any such election will not serve to withdraw this License
(or any other license that has been, or is required to
be, granted under the terms of this License), and this
License will continue in full force and effect unless
terminated as stated above.</li>
</ol>
<p><strong>8. Miscellaneous</strong></p>
<ol type="a">
<li>Each time You Distribute or Publicly Perform the Work
or a Collection, the Licensor offers to the recipient a
license to the Work on the same terms and conditions as
the license granted to You under this License.</li>
<li>If any provision of this License is invalid or
unenforceable under applicable law, it shall not affect
the validity or enforceability of the remainder of the
terms of this License, and without further action by the
parties to this agreement, such provision shall be
reformed to the minimum extent necessary to make such
provision valid and enforceable.</li>
<li>No term or provision of this License shall be deemed
waived and no breach consented to unless such waiver or
consent shall be in writing and signed by the party to be
charged with such waiver or consent.</li>
<li>This License constitutes the entire agreement between
the parties with respect to the Work licensed here. There
are no understandings, agreements or representations with
respect to the Work not specified here. Licensor shall
not be bound by any additional provisions that may appear
in any communication from You. This License may not be
modified without the mutual written agreement of the
Licensor and You.</li>
<li>The rights granted under, and the subject matter
referenced, in this License were drafted utilizing the
terminology of the Berne Convention for the Protection of
Literary and Artistic Works (as amended on September 28,
1979), the Rome Convention of 1961, the WIPO Copyright
Treaty of 1996, the WIPO Performances and Phonograms
Treaty of 1996 and the Universal Copyright Convention (as
revised on July 24, 1971). These rights and subject
matter take effect in the relevant jurisdiction in which
the License terms are sought to be enforced according to
the corresponding provisions of the implementation of
those treaty provisions in the applicable national law.
If the standard suite of rights granted under applicable
copyright law includes additional rights not granted
under this License, such additional rights are deemed to
be included in the License; this License is not intended
to restrict the license of any rights under applicable
law.</li>
</ol>
</div> | 16,989 | license | html | en | html | code | {"qsc_code_num_words": 2620, "qsc_code_num_chars": 16989.0, "qsc_code_mean_word_length": 4.88435115, "qsc_code_frac_words_unique": 0.23320611, "qsc_code_frac_chars_top_2grams": 0.02953817, "qsc_code_frac_chars_top_3grams": 0.01828554, "qsc_code_frac_chars_top_4grams": 0.01203407, "qsc_code_frac_chars_dupe_5grams": 0.20270376, "qsc_code_frac_chars_dupe_6grams": 0.15863093, "qsc_code_frac_chars_dupe_7grams": 0.10729077, "qsc_code_frac_chars_dupe_8grams": 0.10439947, "qsc_code_frac_chars_dupe_9grams": 0.08345706, "qsc_code_frac_chars_dupe_10grams": 0.08345706, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.0034694, "qsc_code_frac_chars_whitespace": 0.20260168, "qsc_code_size_file_byte": 16989.0, "qsc_code_num_lines": 358.0, "qsc_code_num_chars_line_max": 88.0, "qsc_code_num_chars_line_mean": 47.45530726, "qsc_code_frac_chars_alphabet": 0.94109397, "qsc_code_frac_chars_comments": 0.0, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.06521739, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.0, "qsc_code_frac_chars_string_length": 0.01077104, "qsc_code_frac_chars_long_word_length": 0.0, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.00310559, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.93295662, "qsc_codehtml_num_chars_text": 15850.0} | 1 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 0, "qsc_codehtml_num_chars_text": 0} |
007revad/Synology_Download_Station_Chrome_Extension | changelog.md | # Changelog
## 3.0.15
- Moved Icon-xx.png images to images folder
## 3.0.14
- Removed Analytics that 15 out 65 virus scanners flagged as a Trojan
## 2.2.13
- Resolved JavaScript error in SVG documents
- Removed social media buttons from options page
- Internal changes for compatibility with future browser versions
- Improved error handling when signing in with an account without Download Station permissions
## 2.2.12
- Resolved an issue causing JavaScript errors in the Chrome developer tools.
- Improved device name detection
- Small bugfixes
## 2.2.11
- Session conflicts with the extension and DSM 6.0 have been resolved. You can now use a different user in DSM without being signed out by the extension.
- Bugfixes
## 2.2.10
- DSM 6.0 beta 2 compatibility
- Fixed a Safari issue where the extension could open links to websites or the settings page in an existing pinned tab instead of a new tab
## 2.2.9
- Improved compatibility with the Synology Router (RT1900AC)
- Safari extension signed with a new certificate
## 2.2.8
- Improved error handling when the user doesn't have permissions for the Download Station package
- Added changelog to the settings page
- Prevent Safari from showing a message about unsaved changes when the settings page is closed
- Opening the Download Station web interface now also works with DSM 6.0
- Removing downloads and clearing all finished downloads now works with DSM 6.0
## 2.2.7
- Fixed an issue with user accounts that do not have File Station permissions. The issue caused a "Permission denied" error after opening the "Download advanced" dialog. File Station permissions are required if you want to select a destination folder.
- Other small bugfixes
## 2.2.6
- Removed YouTube video and playlist download buttons to comply with Chrome Web Store policies.
- Improved compatibility with rutracker
## 2.2.5
- Fixed an issue that caused the selected destination folder to be ignored when adding a .torrent or .nzb file.
## 2.2.4
- Added error message for time-outs
- Fixed disappearing settings button in popover in Safari 7 (this was caused by a bug in Safari)
## 2.2.3
- Fixed an issue where the option page became unresponsive when testing/saving connection settings that do not point to a Synology device
## 2.2.2
- Improved DSM version detection for DSM 3.0 - 4.1
- Better error message for unsupported DSM versions
- Added message to settings page about the supported DSM versions
## 2.2.1
- Changes to comply with Opera store
## 2.2.0
- Dropped support for DSM version 4.1 and older.
- The extension now uses DSM's encryption API to encrypt your username and password when logging in. This also applies when you use the extension without SSL (HTTPS).
- The extension will not wake your DiskStation anymore if you disable background status updates. The extension will appear as disconnected after 30 seconds of inactivity.
- Select a destination folder for your download when using the "advanced" option in the context menu.
- Create new folders on your DiskStation (when selecting a destination folder)
- You can now see the ETA for downloads, based on the current download speed and progress
- Background refresh settings moved to the "Connection" tab of the settings page
- New icon and updated design (Bootstrap 3)
- Show the notification for finished torrents after downloading has finished (not after seeding)
- Improved support for torrent URL's that have GET-parameters
- Added Japanese, Slovak and Ukrainian translations
- Fixed an issue where the YouTube button could disappear when navigating between pages on YouTube.
- Fixed an issue that could cause the finished downloads counter to remain visible after the connection to the device was lost.
## 2.1.8
- YouTube download button updated for new YouTube layout
- The extension can now handle download URL's containing a comma
## 2.1.7
- Fixed an issue where in certain cases the finished tasks counter would not be removed from the toolbar button when the connection to the device is lost.
- Improved compatibility with Chrome 38 (keep in mind that the extension may not work properly in pre-release versions of Chrome, use the stable version of Chrome for best compatibility)
## 2.1.6
- Fixed desktop notifications for recent Chrome versions
## 2.1.5
- Replaced Serbian translation with a translation in the cyrillic alphabet
- Fixed small interface bug when the pop-up contains 100 downloads
- Fixed an issue that could cause the dialog from opening behind website content on some websites
- Removed Flattr button from settings page
- Added Reddit sharing button to settings page
## 2.1.4
- Fixed YouTube button for videos with an ID that start with a "-"
- Added Finnish, Slovak and Serbian translation
- Updated the existing translations
## 2.1.3
- Fixed disappearing YouTube button
- Added error message "No destination folder set"
- Show "download finished" notification based on download percentage instead of task status "finished"
## 2.1.2
- Improved DSM 5.0 beta support
## 2.1.1
- Support for the latest DSM 4.3 update
## 2.1.0
- Advanced downloading dialog
- HTTP/FTP username and password
- Unzip password
- Preview of URL's that will be submitted (especially useful when adding multiple links from a selection)
- Fixed an issue that could cause the download button on YouTube to disappear when switching to another video
- Limit the maximum number of visible downloads to 100 to reduce performance impact
- New translations: Arabic, Czech, Indonesian, Korean, Portuguese, Turkish
- Updated the other translations
## 2.0.5
- Fixed an issue that could cause the extensions session to be shared with the users browser session
## 2.0.4
- Correctly determine DSM version number for DSM 4.3
- Added a link to the FAQ-page to the settings page
- Added Brazilian, Chinese and Taiwanese translations
- Updated Danish, Norwegian, Dutch, Russian and Swedish translations
## 2.0.3
- Added Danish, German, Hungarian, Norwegian, Polish, Russian, Spanish and Swedish translation
- Dropped support for settings sync in Chrome because many users like to have different settings on their devices
- Password field on settings page not required
- Better naming of uploaded torrents/nzb's that don't have a correct filename in their URL (/download.php?id=1)
- Show correct icon in Safari toolbar when opening a new window
- Fix for "Adding task" message not disappearing when adding torrent/nzb task
- Fixed sorting of tasks (sorted by date added)
- Small performance/efficiency improvements
## 2.0.2
- Bug fixes for old Chrome versions
## 2.0.1
- Fix for saving settings in older Chrome versions
## 2.0
- Support for the official Download Station API
- Fallback to the Download Redirector API for old devices (DSM < 4.2)
- Redesigned pop-up
- Google Chrome: Settings are synced with your Google account
- Safari: Settings are stored in the secure storage space for extensions
- Pop-up shows the progress of seeding torrents (share ratio)
- Confirm deletion of download tasks
- Buttons to pause/resume all tasks
- The pop-up shows the name of your DiskStation
- Torrents and NZB files are uploaded directly to Download Station
- Toolbar icon indicates if the extension is connected to Download Station
- Download button for YouTube playlists (DSM 4.2 and newer)
- Full support for magnet torrents (DSM 4.2 and newer)
- Magnet, Thunder, QQDL and Emule links are opened with the extension by default (you can change this behaviour in your settings)
- Contextmenu-item will be disabled (Chrome) or hidden (Safari) if the extension is not connected to Download Station
- Added license information to settings page
- Removed the in-page buttons from the Piratebay and Isohunt because magnet links can now be opened with the extension
- Total download/upload speed in the pop-up
- Italian translation
## 1.6.2
- Support for DSM 4.2 beta
- Icon in YouTube button
## 1.6.1
- Fixed the YouTube download button for the new YouTube website
- Added status text for "unpacking" (status 10)
## 1.6.0
- French translation (Thanks to 'secretliar' from the Synology forum!)
- Updated to Chrome Extension manifest version 2
- Fixed a bug that caused all connection tests to fail for usernames that contain a space
- Other minor bug fixes and styling fixes for the new French translation
## 1.5.8
- Private tracker support for Safari 6
- Updated to remove usage of old and deprecated API's
## 1.5.7
- Added missing status message
- Minor translation and bug fixes
## 1.5.6
- Improved support for torrents from The Piratebay
## 1.5.5
- Fixed missing icon in Chrome desktop notifications
## 1.5.4
- Download button on isoHunt.com
- Hide tasks immediately when removing or clearing
- New toolbar icon for Safari
- Last version with support for Chrome 17 and older, update if you are still using an old version!
- Dutch translation for the settings page
## 1.5.3
- Tested with DSM 4.1 beta
- Notification Center support for OS X 10.8 Mountain Lion
- Fixed missing icon in notifications in Safari on OS X 10.7 and older
## 1.5.2
- Added Torcache.net as source for torrent files for magnet links
- Fixed a bug that caused every failed task to show the same error message in stead of more specific errors
## 1.5.0 & 1.5.1
- More responsive status pop-up
- Animations in pop-up (progress bar, adding/removing tasks)
- Smoother adjustment of the pop-up height in Safari when adding/removing tasks
- Updated the Piratebay button for changes on their site
- Visual feedback when a tasks is being submitted to Download Station
- More detailed error messages when a task can't be added
- New option to disable uploading of torrents to a temporary location (disabling will disable support for private trackers)
- Minor bug fixes
## 1.4.6
- Fix for problems with torrent URL's that contain parameters
## 1.4.5
- Support for private torrent sites! The extension will upload the torrent to a temporary location from where Download Station grabs the torrent file. Uploads are deleted after 10 minutes from the temporary location.
- More efficient communication with Download Station.
## 1.4.4
- Added a button to the options page to test your settings
- Hiding YouTube download button if you have a DSM version older than 3.2
- Minor bugfixes
## 1.4.3
- Added support for multiple links
- Updated icons
- Fixed an issue that could cause the pop-up to become unresponsive in Safari
## 1.4.2
- Added partial magnet support using zoink.it.
## 1.4.0
- Bug fixes
## 1.3.0
- Fixed button on thepiratebay.org
- Added button on MegaUpload download page
| 10,568 | changelog | md | en | markdown | text | {"qsc_doc_frac_chars_curly_bracket": 0.0, "qsc_doc_frac_words_redpajama_stop": 0.25774135, "qsc_doc_num_sentences": 151.0, "qsc_doc_num_words": 1720, "qsc_doc_num_chars": 10568.0, "qsc_doc_num_lines": 248.0, "qsc_doc_mean_word_length": 4.78081395, "qsc_doc_frac_words_full_bracket": 0.0, "qsc_doc_frac_lines_end_with_readmore": 0.0, "qsc_doc_frac_lines_start_with_bullet": 0.0, "qsc_doc_frac_words_unique": 0.27965116, "qsc_doc_entropy_unigram": 5.39273741, "qsc_doc_frac_words_all_caps": 0.02094718, "qsc_doc_frac_lines_dupe_lines": 0.0, "qsc_doc_frac_chars_dupe_lines": 0.0, "qsc_doc_frac_chars_top_2grams": 0.0036483, "qsc_doc_frac_chars_top_3grams": 0.01459321, "qsc_doc_frac_chars_top_4grams": 0.01167457, "qsc_doc_frac_chars_dupe_5grams": 0.04171227, "qsc_doc_frac_chars_dupe_6grams": 0.01763347, "qsc_doc_frac_chars_dupe_7grams": 0.01763347, "qsc_doc_frac_chars_dupe_8grams": 0.0, "qsc_doc_frac_chars_dupe_9grams": 0.0, "qsc_doc_frac_chars_dupe_10grams": 0.0, "qsc_doc_frac_chars_replacement_symbols": 0.0, "qsc_doc_cate_code_related_file_name": 0.0, "qsc_doc_num_chars_sentence_length_mean": 25.4887218, "qsc_doc_frac_chars_hyperlink_html_tag": 0.0, "qsc_doc_frac_chars_alphabet": 0.91397235, "qsc_doc_frac_chars_digital": 0.02547698, "qsc_doc_frac_chars_whitespace": 0.17174489, "qsc_doc_frac_chars_hex_words": 0.0} | 1 | {"qsc_doc_frac_chars_replacement_symbols": 0, "qsc_doc_entropy_unigram": 0, "qsc_doc_frac_chars_top_2grams": 0, "qsc_doc_frac_chars_top_3grams": 0, "qsc_doc_frac_chars_top_4grams": 0, "qsc_doc_frac_chars_dupe_5grams": 0, "qsc_doc_frac_chars_dupe_6grams": 0, "qsc_doc_frac_chars_dupe_7grams": 0, "qsc_doc_frac_chars_dupe_8grams": 0, "qsc_doc_frac_chars_dupe_9grams": 0, "qsc_doc_frac_chars_dupe_10grams": 0, "qsc_doc_frac_chars_dupe_lines": 0, "qsc_doc_frac_lines_dupe_lines": 0, "qsc_doc_frac_lines_end_with_readmore": 0, "qsc_doc_frac_lines_start_with_bullet": 0, "qsc_doc_frac_words_all_caps": 0, "qsc_doc_mean_word_length": 0, "qsc_doc_num_chars": 0, "qsc_doc_num_lines": 0, "qsc_doc_num_sentences": 0, "qsc_doc_num_words": 0, "qsc_doc_frac_chars_hex_words": 0, "qsc_doc_frac_chars_hyperlink_html_tag": 0, "qsc_doc_frac_chars_alphabet": 0, "qsc_doc_frac_chars_digital": 0, "qsc_doc_frac_chars_whitespace": 0} |
007revad/Synology_Download_Station_Chrome_Extension | options.html | <!DOCTYPE HTML>
<html>
<head>
<title>Synology Download Station extension settings</title>
<meta charset="utf-8" />
<meta name="twitter:widgets:csp" content="on">
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
<link rel="stylesheet" type="text/css" href="css/font-awesome.css" />
<link rel="stylesheet" type="text/css" href="css/options.css" />
<script src="js/variables.js"></script>
<script src="js/lib/jquery.js"></script>
<script src="js/lib/bootstrap.min.js"></script>
<script src="js/lib/showdown.min.js"></script>
<script src="js/browser-functions.js"></script>
<script src="js/options.js"></script>
</head>
<body>
<div class="container">
<h1><img src="Icon-128.png" alt="" style="width: 64px; height: 64px;" /> Synology Download Station</h1>
<a id="donate-button" href="#" target="_blank"><img src="css/img/btn_donate.gif" alt="Donate" /></a>
<hr />
<div class="alert alert-warning">
<strong>Important:</strong> This extension only supports DSM 4.2 and later. Is your device running an older DSM version? Please check <a href="https://www.synology.com/support/download" target="_blank">Synology.com</a> to see if you can update your DSM version or download an old version of this extension from <a href="https://www.download-station-extension.com/" target="_blank">download-station-extension.com</a>.
</div>
<div class="tabbable tabs-left">
<ul id="menu" class="nav nav-tabs" style="margin-top: 40px; height: 450px;">
<li class="active"><a href="#connection" data-toggle="tab" data-message="settingsGroupConnection"></a></li>
<li><a href="#other-settings" data-toggle="tab" data-message="settingsGroupOther"></a></li>
<li><a href="https://www.download-station-extension.com/faq" target="_blank">FAQ <i class="fa fa-external-link"></i></a></li>
<li><a href="#about" data-toggle="tab" data-message="settingsGroupHelp"></a></li>
<li><a href="#changelog" data-toggle="tab">Changelog</a></li>
</ul>
<div class="tab-content">
<form id="connection" class="tab-pane fade in active form-horizontal" autocomplete="off">
<fieldset>
<legend data-message="settingsGroupConnection"></legend>
<div class="form-group row hidden">
<div class="col-sm-offset-3 col-sm-9 btn-group">
<button id="disableQuickConnect" type="button" class="btn btn-default">Manual connection</button>
<button id="enableQuickConnect" type="button" class="btn btn-default">
<span>QuickConnect</span>
<span class="label label-warning">Experimental</span>
</button>
</div>
</div>
<!--div id="quickconnect-settings" style="display: none;">
<div class="form-group row">
<label class="control-label col-sm-3" for="quickConnectId">QuickConnect ID</label>
<div class="col-sm-6">
<input class="form-control" type="text" id="quickConnectId" name="quickConnectId" placeholder="QuickConnect ID" required />
</div>
</div>
</div-->
<div id="manual-settings">
<div class="form-group row">
<label class="control-label col-sm-3" data-message="lblProtocol"></label>
<div class="col-sm-2" data-attr-message="title|lblProtocol,data-content|tooltipProtocol">
<div class="radio">
<label><input type="radio" name="protocol" value="http://" required> HTTP</label>
</div>
<div class="radio">
<label><input type="radio" name="protocol" value="https://" required> HTTPS</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" for="url" data-message="lblDomain"></label>
<div class="col-sm-6">
<input class="form-control" type="text" id="url" name="url" data-attr-message="placeholder|placeholderDomain,title|lblDomain,data-content|tooltipDomain" />
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" for="port" data-message="lblPort"></label>
<div class="col-sm-2">
<input class="form-control" type="text" id="port" name="port" value="5000" data-attr-message="title|lblPort,data-content|tooltipPort" />
</div>
</div>
</div>
<hr>
<div class="form-group row">
<label class="control-label col-sm-3" for="username" data-message="lblUsername"></label>
<div class="col-sm-6">
<input class="form-control" type="text" id="username" name="username" required data-attr-message="title|lblUsername,data-content|tooltipUsername" />
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" for="password" data-message="lblPassword"></label>
<div class="col-sm-6">
<input class="form-control" type="password" id="password" name="password" autocomplete="off" />
</div>
</div>
<hr>
<div class="form-group row">
<div class="col-sm-offset-3 col-sm-9">
<div class="checkbox">
<label>
<input type="checkbox" id="updateInBackground" name="updateInBackground" checked />
<span data-message="lblUpdateInBackground"></span>
</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" for="backgroundUpdateInterval" data-message="lblRefreshInterval"></label>
<div class="col-sm-2">
<input class="form-control" type="number" id="backgroundUpdateInterval" name="backgroundUpdateInterval" value="20" min="5" max="10000" step="5" required />
</div>
</div>
<div class="form-group row">
<div class="col-sm-offset-3 col-sm-9">
<button class="btn btn-default" id="test-connection" type="button">
<i class="fa fa-flask"></i><i class="fa fa-spinner fa-spin" style="display: none;"></i> <span data-message="btnTestConnection"></span>
</button>
<button class="btn btn-primary" type="submit">
<i class="fa fa-save"></i><i class="fa fa-spinner fa-spin" style="display: none;"></i> <span data-message="btnSaveSettings"></span>
</button>
</div>
</div>
</fieldset>
</form>
<form class="tab-pane fade in form-horizontal" id="other-settings">
<fieldset>
<legend data-message="settingsGroupOther"></legend>
<div class="form-group row">
<div class="col-sm-offset-3 col-sm-9">
<div class="checkbox">
<label>
<input type="checkbox" id="hideSeedingTorrents" name="hideSeedingTorrents" />
<span data-message="lblHideSeedingTorrents"></span>
</label>
</div>
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" for="email" data-message="lblEmail"></label>
<div class="col-sm-6">
<div class="input-group">
<span class="input-group-addon">
<i id="email-addon" class="fa fa-envelope-o fa-fw"></i>
<i id="email-addon-checking" class="hidden fa fa-spinner fa-spin fa-fw"></i>
<i id="email-addon-success" class="hidden fa fa-check fa-fw"></i>
</span>
<input class="form-control" type="email" id="email" name="email" data-attr-message="title|lblEmail,data-content|tooltipEmail" placeholder="Email address used for donation" />
</div>
<span id="email-check-failed" class="hidden help-block text-warning">A donation with your email address could not be found. You can find the correct address in your confirmation email. Haven't received the confirmation yet? It can sometimes take a while for PayPal or Bitcoin to process the payment. You can check the status in your PayPal account.</span>
</div>
</div>
<div class="form-group row">
<label class="control-label col-sm-3" data-message="lblOpenWithDownloadStation"></label>
<div class="col-sm-6">
<span class="help-block" data-message="tooltipOpenWithDownloadStation"></span>
<div class="checkbox">
<label><input type="checkbox" name="openProtocols" value="magnet:?" /> Magnet torrents (magnet:?)</label>
</div>
<div class="checkbox">
<label><input type="checkbox" name="openProtocols" value="ed2k://" /> Emule (ed2k://)</label>
</div>
<div class="checkbox">
<label><input type="checkbox" name="openProtocols" value="thunder://" /> Thunder (thunder://)</label>
</div>
<div class="checkbox">
<label><input type="checkbox" name="openProtocols" value="flashget://" /> Flashget (flashget://)</label>
</div>
<div class="checkbox">
<label><input type="checkbox" name="openProtocols" value="qqdl://" /> QQDL (qqdl://)</label>
</div>
</div>
</div>
<div class="form-group row">
<div class="col-sm-offset-3 col-sm-9">
<button class="btn btn-primary">
<i class="fa fa-save"></i> <span data-message="btnSaveSettings"></span>
</button>
</div>
</div>
</fieldset>
</form>
<div class="tab-pane fade in" id="about">
<fieldset>
<legend data-message="settingsGroupHelp"></legend>
<p>If you've got questions, bugs to report or requests for new features, please contact me via the Synology forum. You can use <a href="http://forum.synology.com/enu/viewtopic.php?f=10&t=39713" target="_blank">this topic</a> for the Safari version and <a href="http://forum.synology.com/enu/viewtopic.php?f=10&t=44074" target="_blank">this topic</a> for the Google Chrome version of the extension. Please check the <a href="https://www.download-station-extension.com/faq" target="_blank">FAQ-section</a> before posting your question!</p>
<h4>Translation</h4>
<p>Special thanks to the following people for translating this extension:</p>
<div class="row">
<ul class="col-sm-6 list-unstyled">
<li><strong>Arabic:</strong> <a href="https://www.linkedin.com/in/laithsaid" target="_blank">Laith Said</a></li>
<li><strong>Brazilian Portuguese:</strong> Iury Russowsky</li>
<li><strong>Chinese:</strong> Redtank</li>
<li><strong>Finnish:</strong> Seppo Mäki-Torkko</li>
<li><strong>French:</strong> <a href="https://www.linkedin.com/in/romainarquilliere" target="_blank">Romain Arquillière</a></li>
<li><strong>German:</strong> Jonah</li>
<li><strong>Hungarian:</strong> Fabon Imre</li>
<li><strong>Italian:</strong> <a href="http://www.turbino.net" target="_blank">Walter</a></li>
</ul>
<ul class="col-sm-6 list-unstyled">
<li><strong>Japanese:</strong> Takagi Yasuyuki</li>
<li><strong>Polish:</strong> Mikhnal</li>
<li><strong>Portuguese:</strong> Luis Faria</li>
<li><strong>Serbian:</strong> Djura Topalov</li>
<li><strong>Spanish:</strong> <a href="https://unamenos.wordpress.com" target="_blank">Unamenos</a></li>
<li><strong>Swedish:</strong> Henrik Malinowski</li>
<li><strong>Taiwanese:</strong> Noah.Lu</li>
</ul>
</div>
<p>Have you found a mistake in the translation or do you want to help translating the extension into your language? Check <a href="http://www.download-station-extension.com/translate" target="_blank">this website</a> for more information.</p>
<h4>License info</h4>
<p>This work is licensed under a <a rel="license" href="https://creativecommons.org/licenses/by-nd/3.0/">Creative Commons Attribution-NoDerivs 3.0 Unported License</a> (<a data-toggle="modal" href="license.html" data-target="#license-modal">full license text</a>).</p>
<p>This extension uses the following open-source projects:</p>
<ul>
<li><a href="https://jquery.com/" target="_blank">jQuery</a></li>
<li><a href="http://knockoutjs.com/" target="_blank">Knockout</a></li>
<li><a href="http://getbootstrap.com/" target="_blank">Bootstrap</a></li>
<li><a href="http://fontawesome.io/" target="_blank">Font Awesome</a></li>
<li><a href="https://github.com/showdownjs/showdown" target="_blank">Showdown</a></li>
<li><a href="http://www.typescriptlang.org/" target="_blank">TypeScript</a></li>
</ul>
</fieldset>
</div>
<div class="tab-pane fade in" id="changelog">
<fieldset id="changelog-content"></fieldset>
</div>
</div>
</div>
<div class="text-center muted"><small>Version <span id="about-extension-version"></span></small></div>
</div>
<div id="license-modal" class="modal fade out" tabindex="-1" role="dialog" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content"></div>
</div>
</div>
</body>
</html> | 12,971 | options | html | en | html | code | {"qsc_code_num_words": 1694, "qsc_code_num_chars": 12971.0, "qsc_code_mean_word_length": 4.7420307, "qsc_code_frac_words_unique": 0.229634, "qsc_code_frac_chars_top_2grams": 0.04780281, "qsc_code_frac_chars_top_3grams": 0.02240757, "qsc_code_frac_chars_top_4grams": 0.02962779, "qsc_code_frac_chars_dupe_5grams": 0.38391635, "qsc_code_frac_chars_dupe_6grams": 0.34856218, "qsc_code_frac_chars_dupe_7grams": 0.30623677, "qsc_code_frac_chars_dupe_8grams": 0.28855969, "qsc_code_frac_chars_dupe_9grams": 0.26926428, "qsc_code_frac_chars_dupe_10grams": 0.24735466, "qsc_code_frac_chars_replacement_symbols": 0.0, "qsc_code_frac_chars_digital": 0.00814723, "qsc_code_frac_chars_whitespace": 0.19566726, "qsc_code_size_file_byte": 12971.0, "qsc_code_num_lines": 270.0, "qsc_code_num_chars_line_max": 553.0, "qsc_code_num_chars_line_mean": 48.04074074, "qsc_code_frac_chars_alphabet": 0.76181348, "qsc_code_frac_chars_comments": 0.03029836, "qsc_code_cate_xml_start": 0.0, "qsc_code_frac_lines_dupe_lines": 0.45535714, "qsc_code_cate_autogen": 0.0, "qsc_code_frac_lines_long_string": 0.04464286, "qsc_code_frac_chars_string_length": 0.31353844, "qsc_code_frac_chars_long_word_length": 0.04714206, "qsc_code_frac_lines_string_concat": 0.0, "qsc_code_cate_encoded_data": 0.0, "qsc_code_frac_chars_hex_words": 0.0, "qsc_code_frac_lines_prompt_comments": 0.0, "qsc_code_frac_lines_assert": 0.0, "qsc_codehtml_cate_ast": 1.0, "qsc_codehtml_frac_words_text": 0.1592013, "qsc_codehtml_num_chars_text": 2065.0} | 0 | {"qsc_code_frac_chars_replacement_symbols": 0, "qsc_code_num_words": 0, "qsc_code_num_chars": 0, "qsc_code_mean_word_length": 0, "qsc_code_frac_chars_top_2grams": 0, "qsc_code_frac_chars_top_3grams": 0, "qsc_code_frac_chars_top_4grams": 0, "qsc_code_frac_chars_dupe_5grams": 0, "qsc_code_frac_chars_dupe_6grams": 0, "qsc_code_frac_chars_dupe_7grams": 0, "qsc_code_frac_chars_dupe_8grams": 0, "qsc_code_frac_chars_dupe_9grams": 0, "qsc_code_frac_chars_dupe_10grams": 0, "qsc_code_size_file_byte": 0, "qsc_code_num_lines": 0, "qsc_code_num_chars_line_max": 0, "qsc_code_num_chars_line_mean": 0, "qsc_code_frac_chars_alphabet": 0, "qsc_code_frac_chars_digital": 0, "qsc_code_frac_chars_whitespace": 0, "qsc_code_cate_xml_start": 0, "qsc_code_frac_lines_dupe_lines": 0, "qsc_code_cate_autogen": 0, "qsc_code_cate_encoded_data": 0, "qsc_code_frac_chars_hex_words": 0, "qsc_codehtml_cate_ast": 0, "qsc_codehtml_frac_words_text": 1, "qsc_codehtml_num_chars_text": 0} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.