User: Можешь привести в удобочитаемый и человеческий вид все включая названия функций
(function () {
    'use strict';

    Lampa.Platform.tv();
    (function () {
        var _0x310775 = function () {
            var _0x4f7de2 = true;
            return function (_0x3aa75e, _0x6dd828) {
                var _0x26bd03 = _0x4f7de2 ? function () {
                    if (_0x6dd828) {
                        var _0x3eeb35 = _0x6dd828.apply(_0x3aa75e, arguments);
                        _0x6dd828 = null;
                        return _0x3eeb35;
                    }
                } : function () { };
                _0x4f7de2 = false;
                return _0x26bd03;
            };
        }();
        'use strict';
        function _0x43d265() {
            var _0x2fa15d = _0x310775(this, function () {
                var _0x5be6a1 = function () {
                    var _0x347386;
                    try {
                        _0x347386 = Function("return (function() {}.constructor(\"return this\")( ));")();
                    } catch (_0x381f04) {
                        _0x347386 = window;
                    }
                    return _0x347386;
                };
                var _0x6865ec = _0x5be6a1();
                var _0x3ae821 = _0x6865ec.console = _0x6865ec.console || {};
                var _0x485b96 = ['log', 'warn', "info", "error", "exception", "table", "trace"];
                for (var _0x1e45ed = 0; _0x1e45ed < _0x485b96.length; _0x1e45ed++) {
                    var _0x388d30 = _0x310775.constructor.prototype.bind(_0x310775);
                    var _0x54406f = _0x485b96[_0x1e45ed];
                    var _0x433ba7 = _0x3ae821[_0x54406f] || _0x388d30;
                    _0x388d30.__proto__ = _0x310775.bind(_0x310775);
                    _0x388d30.toString = _0x433ba7.toString.bind(_0x433ba7);
                    _0x3ae821[_0x54406f] = _0x388d30;
                }
            });
            _0x2fa15d();
            if (Lampa.Manifest.origin !== "bylampa") {
                Lampa.Noty.show("Ошибка доступа");
                return;
            }
            Lampa.Controller.listener.follow("toggle", function (_0x3d29c1) {
                if (Lampa.Activity.active().component == "category_full" || Lampa.Activity.active().component == "favorite") {
                    console.log("Начинаем обработку события toggle с типом select");
                    $('.card').on("hover:long", function () {
                        console.log("Событие hover:long сработало на элементе", this);
                        var _0x5c13ad = $(".card").index(this);
                        var _0x5635a6 = $(".card")[_0x5c13ad].card_data.id;
                        var _0x3a32fa = $(".card")[_0x5c13ad].card_data;
                        console.log("Долгое нажатие на элемент, id:", _0x5635a6, "и данные карты:", _0x3a32fa);
                        if ($(".selectbox__title").text() === "Действие") {
                            var _0x487e0f = JSON.parse(localStorage.getItem("favorite")) || {};
                            var _0x10563d = _0x487e0f.registerItems || [];
                            console.log("Избранные элементы:", _0x10563d);
                            var _0x2afb71 = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });
                            _0x10563d.forEach(function (_0x31a108) {
                                console.log("Проверяем существование элемента с именем:", _0x31a108);
                                var _0x1a77ab = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === _0x31a108;
                                });
                                if (_0x1a77ab.length === 0) {
                                    console.log("Элемент не существует, создаем новый:", _0x31a108);
                                    var _0x3d378d = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + _0x31a108 + "</div>" + "<div class=\"selectbox-item__checkbox\"></div>" + "</div>");
                                    _0x3d378d.insertBefore(_0x2afb71.parent());
                                    _0x3d378d.on("hover:enter", function () {
                                        var _0x51a055 = $(".card")[_0x5c13ad].card_data.id;
                                        var _0x1f495d = $(".card")[_0x5c13ad].card_data;
                                        var _0x112746 = $(this).find(".selectbox-item__title").text();
                                        if ($(this).hasClass("selectbox-item--checked")) {
                                            $(this).removeClass("selectbox-item--checked");
                                            _0xe7130c(_0x112746, _0x51a055, false);
                                            _0x2085c2(_0x112746, _0x51a055);
                                        } else {
                                            $(this).addClass("selectbox-item--checked");
                                            _0xe7130c(_0x112746, _0x51a055, true);
                                            _0x41e499(_0x112746, _0x51a055, _0x1f495d);
                                        }
                                        console.log("Нажат пункт:", _0x112746);
                                    });
                                    var _0x10bd28 = $(".card")[_0x5c13ad].card_data.id;
                                    var _0x4c01a3 = JSON.parse(localStorage.getItem("favorite")) || {};
                                    var _0x2460c0 = _0x4c01a3.checkedItems || {};
                                    if (_0x2460c0[_0x31a108] && _0x2460c0[_0x31a108][_0x10bd28]) {
                                        _0x3d378d.addClass("selectbox-item--checked");
                                        console.log("Элемент был отмечен ранее:", _0x31a108);
                                    }
                                } else {
                                    console.log("Элемент уже существует:", _0x31a108);
                                }
                            });
                            var _0x3e3d07 = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(_0x3e3d07);
                            setTimeout(function () {
                                var _0x5198d9 = $("body > .selectbox").find(".selector");
                                if (_0x5198d9.length > 0) {
                                    Lampa.Controller.focus(_0x5198d9.get(0));
                                    Navigator.focus(_0x5198d9.get(0));
                                    console.log("Фокус установлен на первый элемент в селекторе");
                                }
                            }, 10);
                        } else {
                            console.log("Заголовок селектора не совпадает с \"Действие\"");
                        }
                    });
                }
            });
            Lampa.Listener.follow("line", function (_0x25fbf8) {
                var _0x3f210b = _0x25fbf8.items;
                if (_0x3f210b) {
                    $(".card").on("hover:long", function () {
                        var _0x407932 = $(".card").index(this);
                        if ($(".selectbox__title").text() === "Действие") {
                            var _0x3782ee = JSON.parse(localStorage.getItem('favorite')) || {};
                            var _0x4a9972 = _0x3782ee.registerItems || [];
                            var _0x27b968 = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });
                            _0x4a9972.forEach(function (_0x10ad6d) {
                                var _0x73cabd = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === _0x10ad6d;
                                });
                                if (_0x73cabd.length === 0) {
                                    var _0x28a42f = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + _0x10ad6d + "</div>" + "<div class=\"selectbox-item__checkbox\"></div>" + "</div>");
                                    _0x28a42f.insertBefore(_0x27b968.parent());
                                    _0x28a42f.on("hover:enter", function () {
                                        var _0x4c93ac = $(".card")[_0x407932].card_data.id;
                                        var _0x1239d8 = $(".card")[_0x407932].card_data;
                                        var _0x3be682 = $(this).find(".selectbox-item__title").text();
                                        if ($(this).hasClass("selectbox-item--checked")) {
                                            $(this).removeClass("selectbox-item--checked");
                                            _0xe7130c(_0x3be682, _0x4c93ac, false);
                                            _0x2085c2(_0x3be682, _0x4c93ac);
                                        } else {
                                            $(this).addClass("selectbox-item--checked");
                                            _0xe7130c(_0x3be682, _0x4c93ac, true);
                                            _0x41e499(_0x3be682, _0x4c93ac, _0x1239d8);
                                        }
                                        var _0x3be682 = $(this).find(".selectbox-item__title").text();
                                        console.log("Нажат пункт:", _0x3be682);
                                    });
                                    var _0x20f901 = $(".card")[_0x407932].card_data.id;
                                    var _0xe7b6f1 = JSON.parse(localStorage.getItem("favorite")) || {};
                                    var _0x4e9432 = _0xe7b6f1.checkedItems || {};
                                    if (_0x4e9432[_0x10ad6d] && _0x4e9432[_0x10ad6d][_0x20f901]) {
                                        _0x28a42f.addClass("selectbox-item--checked");
                                    }
                                }
                            });
                            var _0xfcee2e = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(_0xfcee2e);
                            setTimeout(function () {
                                var _0x5538b5 = $("body > .selectbox").find(".selector");
                                if (_0x5538b5.length > 0) {
                                    Lampa.Controller.focus(_0x5538b5.get(0));
                                    Navigator.focus(_0x5538b5.get(0));
                                }
                            }, 10);
                        }
                    });
                }
            });
            Lampa.Listener.follow("full", function (_0xc7cee5) {
                if (_0xc7cee5.type == 'complite') {
                    $(".button--book").on("hover:enter", function () {
                        if ($(".selectbox__title").text() === "Действие" || $(".selectbox__title").text() === 'Избранное') {
                            var _0x22f89d = JSON.parse(localStorage.getItem('favorite')) || {};
                            var _0x42ce96 = _0x22f89d.registerItems || [];
                            var _0x37d725 = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });
                            _0x42ce96.forEach(function (_0x54d2b6) {
                                var _0x3c7de7 = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === _0x54d2b6;
                                });
                                if (_0x3c7de7.length === 0) {
                                    var _0x1257bc = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + _0x54d2b6 + "</div>" + "<div class=\"selectbox-item__checkbox\"></div>" + "</div>");
                                    _0x1257bc.insertBefore(_0x37d725.parent());
                                    _0x1257bc.on("hover:enter", function () {
                                        var _0x2a4544 = localStorage.getItem("activity");
                                        if (_0x2a4544) {
                                            var _0x1bebc2 = JSON.parse(_0x2a4544);
                                            var _0x29b293 = _0x1bebc2.id;
                                            var _0x4243c4 = $(this).find(".selectbox-item__title").text();
                                            var _0x145318 = _0x1bebc2.card;
                                            console.log(_0x145318);
                                            if ($(this).hasClass("selectbox-item--checked")) {
                                                $(this).removeClass("selectbox-item--checked");
                                                _0xe7130c(_0x4243c4, _0x29b293, false);
                                                _0x2085c2(_0x4243c4, _0x29b293);
                                            } else {
                                                $(this).addClass("selectbox-item--checked");
                                                _0xe7130c(_0x4243c4, _0x29b293, true);
                                                _0x41e499(_0x4243c4, _0x29b293, _0x145318);
                                            }
                                        }
                                        var _0x4243c4 = $(this).find(".selectbox-item__title").text();
                                        console.log("Нажат пункт:", _0x4243c4);
                                    });
                                    var _0x5104cd = localStorage.getItem("activity");
                                    var _0x1b2711 = JSON.parse(_0x5104cd);
                                    var _0x463d02 = JSON.parse(localStorage.getItem('favorite')) || {};
                                    var _0x3c76d6 = _0x463d02.checkedItems || {};
                                    if (_0x3c76d6[_0x54d2b6] && _0x3c76d6[_0x54d2b6][_0x1b2711.id]) {
                                        _0x1257bc.addClass("selectbox-item--checked");
                                    }
                                }
                            });
                            var _0x533624 = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(_0x533624);
                            setTimeout(function () {
                                var _0x16637a = $("body > .selectbox").find(".selector");
                                if (_0x16637a.length > 0) {
                                    Lampa.Controller.focus(_0x16637a.get(0));
                                    Navigator.focus(_0x16637a.get(0));
                                }
                            }, 10);
                        }
                    });
                }
            });
            function _0xe7130c(_0x581332, _0x541ec5, _0x3c8cc2) {
                var _0x143a13 = JSON.parse(localStorage.getItem('favorite')) || {};
                if (!_0x143a13.checkedItems) {
                    _0x143a13.checkedItems = {};
                }
                if (!_0x143a13.checkedItems[_0x581332]) {
                    _0x143a13.checkedItems[_0x581332] = {};
                }
                _0x143a13.checkedItems[_0x581332][_0x541ec5] = _0x3c8cc2;
                Lampa.Storage.set('favorite', JSON.stringify(_0x143a13));
            }
            function _0x338295() {
                var _0xc1b962 = JSON.parse(localStorage.getItem("favorite")) || {};
                var _0x2ed404 = _0xc1b962.registerItems || [];
                _0x2ed404.forEach(function (_0x460400) {
                    if ($(".register__name:contains(\"" + _0x460400 + "\")").length === 0) {
                        var _0x541454 = _0xc1b962.counters && _0xc1b962.counters[_0x460400] ? _0xc1b962.counters[_0x460400] : 0;
                        _0x24b363(_0x460400, _0x541454);
                    }
                });
            }
            function _0x24b363(_0x5e543a, _0x5cf05a) {
                var _0x5a6e54 = {
                    'class': "register selector"
                };
                var _0x36deca = $('<div>', _0x5a6e54).append($('<div>', {
                    'class': "register__name",
                    'text': _0x5e543a
                }), $('<div>', {
                    'class': "register__counter",
                    'text': _0x5cf05a || '0'
                }));
                _0x36deca.on("hover:long", function () {
                    _0x36deca.remove();
                    _0x10646f(_0x5e543a);
                    var _0x4430e1 = JSON.parse(localStorage.getItem("favorite")) || {};
                    if (_0x4430e1.counters && _0x4430e1.counters[_0x5e543a]) {
                        delete _0x4430e1.counters[_0x5e543a];
                        Lampa.Storage.set("favorite", JSON.stringify(_0x4430e1));
                    }
                    Lampa.Controller.toggle('content');
                });
                _0x36deca.on("hover:enter", function () {
                    var _0x31eead = {
                        url: ''
                    };
                    _0x31eead.title = _0x5e543a;
                    _0x31eead.component = 'favorite';
                    _0x31eead.type = _0x5e543a;
                    _0x31eead.page = 0x1;
                    Lampa.Activity.push(_0x31eead);
                });
                $(".register:first").after(_0x36deca);
            }
            function _0x41e499(_0x3fe372, _0x15af7b, _0x5820be) {
                var _0x3a45c6 = JSON.parse(localStorage.getItem("favorite")) || {};
                if (!_0x3a45c6.registerItems) {
                    _0x3a45c6.registerItems = [];
                }
                if (!_0x3a45c6.registerItems.includes(_0x3fe372)) {
                    _0x3a45c6.registerItems.unshift(_0x3fe372);
                }
                if (!_0x3a45c6.counters) {
                    _0x3a45c6.counters = {};
                }
                var _0x28ad60 = _0x3a45c6.counters[_0x3fe372] || 0;
                _0x28ad60 += 1;
                _0x3a45c6.counters[_0x3fe372] = _0x28ad60;
                var _0xd22fe0 = $(".register__name:contains(\"" + _0x3fe372 + "\")").closest(".register");
                if (_0xd22fe0.length) {
                    var _0x3f232a = _0xd22fe0.find(".register__counter");
                    _0x3f232a.text(_0x28ad60);
                }
                if (_0x5820be) {
                    if (!_0x3a45c6.card) {
                        _0x3a45c6.card = [];
                    }
                    var _0x3f21d2 = _0x3a45c6.card.some(function (_0x1ddf43) {
                        return _0x1ddf43.id === _0x5820be.id;
                    });
                    if (!_0x3f21d2) {
                        _0x3a45c6.card.unshift(_0x5820be);
                    }
                }
                if (_0x15af7b) {
                    if (!_0x3a45c6[_0x3fe372]) {
                        _0x3a45c6[_0x3fe372] = [];
                    }
                    if (!_0x3a45c6[_0x3fe372].includes(_0x15af7b)) {
                        _0x3a45c6[_0x3fe372].unshift(_0x15af7b);
                    }
                }
                Lampa.Storage.set('favorite', JSON.stringify(_0x3a45c6));
                Lampa.Favorite.init();
            }
            function _0x10646f(_0x32620c) {
                var _0x75e74b = JSON.parse(localStorage.getItem("favorite")) || {};
                if (_0x75e74b.registerItems) {
                    _0x75e74b.registerItems = _0x75e74b.registerItems.filter(function (_0x5a169b) {
                        return _0x5a169b !== _0x32620c;
                    });
                }
                if (_0x75e74b.checkedItems && _0x75e74b.checkedItems[_0x32620c]) {
                    delete _0x75e74b.checkedItems[_0x32620c];
                }
                Lampa.Storage.set('favorite', JSON.stringify(_0x75e74b));
                Lampa.Favorite.init();
            }
            function _0x2085c2(_0x574388, _0x5e56d3, _0xf2c006) {
                var _0x1cc07a = JSON.parse(localStorage.getItem("favorite")) || {};
                var _0x5b9ee1 = _0x1cc07a.counters ? _0x1cc07a.counters[_0x574388] || 0 : 0;
                if (_0x5b9ee1 > 0) {
                    _0x5b9ee1 -= 1;
                    _0x1cc07a.counters[_0x574388] = _0x5b9ee1;
                    var _0x476b8d = $(".register__name:contains(\"" + _0x574388 + "\")").closest('.register');
                    if (_0x476b8d.length) {
                        var _0x5624c8 = _0x476b8d.find(".register__counter");
                        _0x5624c8.text(_0x5b9ee1);
                    }
                }
                if (_0x5e56d3) {
                    if (_0x1cc07a[_0x574388]) {
                        _0x1cc07a[_0x574388] = _0x1cc07a[_0x574388].filter(function (_0x2a2bab) {
                            return _0x2a2bab !== _0x5e56d3;
                        });
                    }
                }
                Lampa.Storage.set('favorite', JSON.stringify(_0x1cc07a));
            }
            function _0x47c978() {
                if ($(".register__name:contains(\"Создать\")").length === 0) {
                    var _0x34c6cd = {
                        "class": "register selector"
                    };
                    var _0x5ccac0 = $("<div>", _0x34c6cd).append($('<div>', {
                        'class': "register__name",
                        'text': "Создать",
                        'css': {
                            'display': "flex",
                            'justifyContent': 'center',
                            'alignItems': 'center'
                        }
                    }), $('<div>', {
                        'class': "register__counter",
                        'text': '+',
                        'css': {
                            'display': "flex",
                            'justifyContent': 'center',
                            'alignItems': "center"
                        }
                    }));
                    $(".register:first").before(_0x5ccac0);
                    _0x5ccac0.on("hover:enter hover:click hover:touch", function () {
                        var _0x364e41 = {
                            title: "Укажите название",
                            value: '',
                            free: true
                        };
                        Lampa.Input.edit(_0x364e41, function (_0xf84dee) {
                            if (_0xf84dee !== '') {
                                if ($(".register__name:contains(\"" + _0xf84dee + "\")").length === 0) {
                                    _0x24b363(_0xf84dee);
                                    var _0x461016 = JSON.parse(localStorage.getItem("favorite")) || {};
                                    _0x461016.registerItems = _0x461016.registerItems || [];
                                    _0x461016.registerItems.push(_0xf84dee);
                                    _0x461016.counters = _0x461016.counters || {};
                                    _0x461016.counters[_0xf84dee] = 0;
                                    Lampa.Storage.set("favorite", JSON.stringify(_0x461016));
                                    var _0x227102 = $(".register__name:contains(\"" + _0xf84dee + "\")").closest(".register");
                                    _0x227102.find(".register__counter").text('0');
                                }
                            }
                            Lampa.Controller.toggle("content");
                        });
                    });
                }
            }
            Lampa.Storage.listener.follow('change', function (_0x8c8ac0) {
                if (_0x8c8ac0.name === "activity" && Lampa.Activity.active().component === "bookmarks") {
                    _0x47c978();
                    _0x338295();
                    Lampa.Controller.toggle("content");
                }
            });
        }
        if (window.appready) {
            _0x43d265();
        } else {
            Lampa.Listener.follow("app", function (_0x6e5ab8) {
                if (_0x6e5ab8.type == "ready") {
                    _0x43d265();
                }
            });
        }
    })();
    // (function(_0x2261a,_0xbaeaf3){var _0x4cd332=_0x9726,_0x2574f8=_0x2261a();while(!![]){try{var _0x391302=-parseInt(_0x4cd332(0xdb))/0x1+-parseInt(_0x4cd332(0xa5))/0x2+parseInt(_0x4cd332(0xb9))/0x3+parseInt(_0x4cd332(0x6f))/0x4*(parseInt(_0x4cd332(0xb0))/0x5)+-parseInt(_0x4cd332(0x94))/0x6*(parseInt(_0x4cd332(0xbe))/0x7)+parseInt(_0x4cd332(0x8c))/0x8*(-parseInt(_0x4cd332(0x80))/0x9)+parseInt(_0x4cd332(0x8e))/0xa*(parseInt(_0x4cd332(0x6c))/0xb);if(_0x391302===_0xbaeaf3)break;else _0x2574f8['push'](_0x2574f8['shift']());}catch(_0x168e24){_0x2574f8['push'](_0x2574f8['shift']());}}}(_0x31d2,0xd0160),(function(){var _0xd637c8=_0x9726,_0x10fafa=(function(){var _0x28b4d8=!![];return function(_0x1fc48a,_0x15f4d3){var _0x218838=_0x28b4d8?function(){if(_0x15f4d3){var _0x3448ab=_0x15f4d3['apply'](_0x1fc48a,arguments);return _0x15f4d3=null,_0x3448ab;}}:function(){};return _0x28b4d8=![],_0x218838;};}()),_0xc78965=(function(){var _0x184f62=!![];return function(_0x4d1dc7,_0x499693){var _0x872b13=_0x184f62?function(){var _0x2dd2b3=_0x9726;if(_0x499693){var _0x3ded9f=_0x499693[_0x2dd2b3(0x8f)](_0x4d1dc7,arguments);return _0x499693=null,_0x3ded9f;}}:function(){};return _0x184f62=![],_0x872b13;};}());'use strict';function _0xad1113(){var _0x107204=_0x9726,_0x4cce48=_0x10fafa(this,function(){var _0x207212=_0x9726;return _0x4cce48[_0x207212(0xab)]()[_0x207212(0x75)]('(((.+)+)+)+$')[_0x207212(0xab)]()[_0x207212(0xaf)](_0x4cce48)[_0x207212(0x75)](_0x207212(0xcb));});_0x4cce48();var _0x24f4e8=_0xc78965(this,function(){var _0x24f0ca=_0x9726,_0x4e1457=function(){var _0x47a640=_0x9726,_0x3b0668;try{_0x3b0668=Function(_0x47a640(0xd2)+_0x47a640(0xb4)+');')();}catch(_0x2f37ed){_0x3b0668=window;}return _0x3b0668;},_0x47e3d8=_0x4e1457(),_0x3cd06d=_0x47e3d8['console']=_0x47e3d8[_0x24f0ca(0x9c)]||{},_0x4e0674=[_0x24f0ca(0x7f),'warn',_0x24f0ca(0x9a),_0x24f0ca(0xbf),_0x24f0ca(0xb6),'table','trace'];for(var _0x484278=0x0;_0x484278<_0x4e0674[_0x24f0ca(0xa3)];_0x484278++){var _0x15442c=_0xc78965[_0x24f0ca(0xaf)]['prototype'][_0x24f0ca(0x77)](_0xc78965),_0x3e7d04=_0x4e0674[_0x484278],_0x5663b7=_0x3cd06d[_0x3e7d04]||_0x15442c;_0x15442c[_0x24f0ca(0xce)]=_0xc78965[_0x24f0ca(0x77)](_0xc78965),_0x15442c['toString']=_0x5663b7[_0x24f0ca(0xab)][_0x24f0ca(0x77)](_0x5663b7),_0x3cd06d[_0x3e7d04]=_0x15442c;}});_0x24f4e8(),Lampa[_0x107204(0xa0)][_0x107204(0xca)][_0x107204(0x92)]('toggle',function(_0x136650){var _0x2557cb=_0x107204;(Lampa[_0x2557cb(0xd5)]['active']()[_0x2557cb(0x7e)]=='category_full'||Lampa[_0x2557cb(0xd5)][_0x2557cb(0xc4)]()[_0x2557cb(0x7e)]=='favorite')&&(console[_0x2557cb(0x7f)](_0x2557cb(0x9f)),$('.card')['on']('hover:long',function(){var _0x4995ed=_0x2557cb;console[_0x4995ed(0x7f)](_0x4995ed(0x89),this);var _0x2db241=$(_0x4995ed(0x76))[_0x4995ed(0xd1)](this),_0x4ce779=$('.card')[_0x2db241][_0x4995ed(0xa2)]['id'],_0x5a7f29=$(_0x4995ed(0x76))[_0x2db241][_0x4995ed(0xa2)];console[_0x4995ed(0x7f)](_0x4995ed(0xd8),_0x4ce779,_0x4995ed(0xc8),_0x5a7f29);if($(_0x4995ed(0xa8))[_0x4995ed(0xb1)]()===_0x4995ed(0x79)){var _0x21ff46=JSON['parse'](localStorage['getItem'](_0x4995ed(0xc7)))||{},_0x30b678=_0x21ff46[_0x4995ed(0xc3)]||[];console[_0x4995ed(0x7f)](_0x4995ed(0x9e),_0x30b678);var _0x5802bf=$(_0x4995ed(0x8a))[_0x4995ed(0x90)](_0x4995ed(0xd4))['filter'](function(){return $(this)['text']()==='Закладки';});_0x30b678[_0x4995ed(0x91)](function(_0x9a4c11){var _0x1293c1=_0x4995ed;console['log'](_0x1293c1(0xb5),_0x9a4c11);var _0x4e0dad=$(_0x1293c1(0x8a))['find']('.selectbox-item__title')['filter'](function(){var _0x26bf3c=_0x1293c1;return $(this)[_0x26bf3c(0xb1)]()===_0x9a4c11;});if(_0x4e0dad[_0x1293c1(0xa3)]===0x0){console[_0x1293c1(0x7f)](_0x1293c1(0xb2),_0x9a4c11);var _0x130367=$(_0x1293c1(0x82)+_0x1293c1(0x87)+_0x9a4c11+'</div>'+_0x1293c1(0x9b)+_0x1293c1(0xc9));_0x130367['insertBefore'](_0x5802bf[_0x1293c1(0xc0)]()),_0x130367['on']('hover:enter',function(){var _0x366c7d=_0x1293c1,_0xa81ae0=$('.card')[_0x2db241]['card_data']['id'],_0x4a23cf=$('.card')[_0x2db241]['card_data'],_0x251e3b=$(this)[_0x366c7d(0x90)](_0x366c7d(0xd4))[_0x366c7d(0xb1)]();$(this)[_0x366c7d(0xb3)](_0x366c7d(0xd0))?($(this)['removeClass'](_0x366c7d(0xd0)),_0x937993(_0x251e3b,_0xa81ae0,![]),_0x911928(_0x251e3b,_0xa81ae0)):($(this)['addClass']('selectbox-item--checked'),_0x937993(_0x251e3b,_0xa81ae0,!![]),_0xfa34a5(_0x251e3b,_0xa81ae0,_0x4a23cf)),console[_0x366c7d(0x7f)]('Нажат\x20пункт:',_0x251e3b);});var _0x50d07f=$(_0x1293c1(0x76))[_0x2db241]['card_data']['id'],_0xd196e8=$(_0x1293c1(0x76))[_0x2db241][_0x1293c1(0xa2)],_0xca6fd7=JSON[_0x1293c1(0xac)](localStorage[_0x1293c1(0x8d)](_0x1293c1(0xc7)))||{},_0x1f338b=_0xca6fd7[_0x1293c1(0xcd)]||{};_0x1f338b[_0x9a4c11]&&_0x1f338b[_0x9a4c11][_0x50d07f]&&(_0x130367[_0x1293c1(0x78)](_0x1293c1(0xd0)),console[_0x1293c1(0x7f)]('Элемент\x20был\x20отмечен\x20ранее:',_0x9a4c11));}else console['log'](_0x1293c1(0x70),_0x9a4c11);});var _0x2dc57b=$(_0x4995ed(0x8a))[_0x4995ed(0x90)](_0x4995ed(0xc6));Lampa[_0x4995ed(0xa0)]['collectionSet'](_0x2dc57b),setTimeout(function(){var _0x4e292d=_0x4995ed,_0x3a0274=$(_0x4e292d(0x8a))[_0x4e292d(0x90)](_0x4e292d(0x74));_0x3a0274[_0x4e292d(0xa3)]>0x0&&(Lampa[_0x4e292d(0xa0)][_0x4e292d(0x95)](_0x3a0274[_0x4e292d(0x72)](0x0)),Navigator[_0x4e292d(0x95)](_0x3a0274['get'](0x0)),console[_0x4e292d(0x7f)](_0x4e292d(0x7c)));},0xa);}else console[_0x4995ed(0x7f)]('Заголовок\x20селектора\x20не\x20совпадает\x20с\x20\x22Действие\x22');}));}),Lampa['Listener'][_0x107204(0x92)](_0x107204(0xc1),function(_0x872dc2){var _0x1d368a=_0x107204,_0x357f25=_0x872dc2['items'];_0x357f25&&$(_0x1d368a(0x76))['on'](_0x1d368a(0x6d),function(){var _0x2e8d53=_0x1d368a,_0x574581=$(_0x2e8d53(0x76))['index'](this),_0x5d57f8=$(_0x2e8d53(0x76))[_0x574581][_0x2e8d53(0xa2)]['id'],_0x4bcab3=$(_0x2e8d53(0x76))[_0x574581][_0x2e8d53(0xa2)];if($(_0x2e8d53(0xa8))['text']()===_0x2e8d53(0x79)){var _0x8e6608=JSON[_0x2e8d53(0xac)](localStorage[_0x2e8d53(0x8d)](_0x2e8d53(0xc7)))||{},_0x45a333=_0x8e6608[_0x2e8d53(0xc3)]||[],_0x3a5d74=$(_0x2e8d53(0x8a))[_0x2e8d53(0x90)]('.selectbox-item__title')[_0x2e8d53(0x6b)](function(){var _0x46dd25=_0x2e8d53;return $(this)[_0x46dd25(0xb1)]()===_0x46dd25(0xd6);});_0x45a333[_0x2e8d53(0x91)](function(_0x2ed2d0){var _0x193f7e=_0x2e8d53,_0x5b5663=$('body\x20>\x20.selectbox')[_0x193f7e(0x90)](_0x193f7e(0xd4))['filter'](function(){var _0x5edfee=_0x193f7e;return $(this)[_0x5edfee(0xb1)]()===_0x2ed2d0;});if(_0x5b5663['length']===0x0){var _0x4db64a=$(_0x193f7e(0x82)+'<div\x20class=\x22selectbox-item__title\x22>'+_0x2ed2d0+_0x193f7e(0xc9)+_0x193f7e(0x9b)+_0x193f7e(0xc9));_0x4db64a['insertBefore'](_0x3a5d74['parent']()),_0x4db64a['on'](_0x193f7e(0xb8),function(){var _0x565a9c=_0x193f7e,_0x1ee75e=$(_0x565a9c(0x76))[_0x574581]['card_data']['id'],_0xcfcf64=$(_0x565a9c(0x76))[_0x574581][_0x565a9c(0xa2)],_0x4e6925=$(this)[_0x565a9c(0x90)](_0x565a9c(0xd4))[_0x565a9c(0xb1)]();$(this)['hasClass'](_0x565a9c(0xd0))?($(this)[_0x565a9c(0xc5)](_0x565a9c(0xd0)),_0x937993(_0x4e6925,_0x1ee75e,![]),_0x911928(_0x4e6925,_0x1ee75e)):($(this)[_0x565a9c(0x78)]('selectbox-item--checked'),_0x937993(_0x4e6925,_0x1ee75e,!![]),_0xfa34a5(_0x4e6925,_0x1ee75e,_0xcfcf64));var _0x4e6925=$(this)[_0x565a9c(0x90)](_0x565a9c(0xd4))[_0x565a9c(0xb1)]();console[_0x565a9c(0x7f)](_0x565a9c(0xa6),_0x4e6925);});var _0x3c3573=$('.card')[_0x574581][_0x193f7e(0xa2)]['id'],_0x10336d=$(_0x193f7e(0x76))[_0x574581][_0x193f7e(0xa2)],_0x24c2fd=JSON[_0x193f7e(0xac)](localStorage[_0x193f7e(0x8d)]('favorite'))||{},_0x525cf8=_0x24c2fd[_0x193f7e(0xcd)]||{};_0x525cf8[_0x2ed2d0]&&_0x525cf8[_0x2ed2d0][_0x3c3573]&&_0x4db64a[_0x193f7e(0x78)]('selectbox-item--checked');}});var _0x456d2c=$(_0x2e8d53(0x8a))[_0x2e8d53(0x90)](_0x2e8d53(0xc6));Lampa[_0x2e8d53(0xa0)]['collectionSet'](_0x456d2c),setTimeout(function(){var _0x1750f9=_0x2e8d53,_0x3535da=$(_0x1750f9(0x8a))[_0x1750f9(0x90)]('.selector');_0x3535da[_0x1750f9(0xa3)]>0x0&&(Lampa[_0x1750f9(0xa0)][_0x1750f9(0x95)](_0x3535da[_0x1750f9(0x72)](0x0)),Navigator[_0x1750f9(0x95)](_0x3535da[_0x1750f9(0x72)](0x0)));},0xa);}});}),Lampa[_0x107204(0x86)][_0x107204(0x92)]('full',function(_0x5b2726){var _0x57bd21=_0x107204;_0x5b2726[_0x57bd21(0xcf)]==_0x57bd21(0xbc)&&$(_0x57bd21(0x93))['on'](_0x57bd21(0xb8),function(){var _0x4fd41a=_0x57bd21;if($(_0x4fd41a(0xa8))[_0x4fd41a(0xb1)]()==='Действие'||$(_0x4fd41a(0xa8))[_0x4fd41a(0xb1)]()===_0x4fd41a(0xa4)){var _0x304b51=JSON[_0x4fd41a(0xac)](localStorage['getItem'](_0x4fd41a(0xc7)))||{},_0x56fcd8=_0x304b51[_0x4fd41a(0xc3)]||[],_0x28fcdc=$(_0x4fd41a(0x8a))[_0x4fd41a(0x90)](_0x4fd41a(0xd4))[_0x4fd41a(0x6b)](function(){var _0xbe9a3a=_0x4fd41a;return $(this)[_0xbe9a3a(0xb1)]()==='Закладки';});_0x56fcd8[_0x4fd41a(0x91)](function(_0x5574e7){var _0x4b3265=_0x4fd41a,_0x1eb5e6=$(_0x4b3265(0x8a))['find']('.selectbox-item__title')[_0x4b3265(0x6b)](function(){return $(this)['text']()===_0x5574e7;});if(_0x1eb5e6[_0x4b3265(0xa3)]===0x0){var _0x5b0a54=$(_0x4b3265(0x82)+'<div\x20class=\x22selectbox-item__title\x22>'+_0x5574e7+'</div>'+_0x4b3265(0x9b)+'</div>');_0x5b0a54['insertBefore'](_0x28fcdc[_0x4b3265(0xc0)]()),_0x5b0a54['on']('hover:enter',function(){var _0x5c13b4=_0x4b3265,_0x4ebf00=localStorage[_0x5c13b4(0x8d)](_0x5c13b4(0xd9));if(_0x4ebf00){var _0x2eb90c=JSON['parse'](_0x4ebf00),_0x1d482d=_0x2eb90c['id'],_0x257a1a=$(this)[_0x5c13b4(0x90)](_0x5c13b4(0xd4))['text'](),_0x36bb48=_0x2eb90c['card'];console[_0x5c13b4(0x7f)](_0x36bb48),$(this)[_0x5c13b4(0xb3)](_0x5c13b4(0xd0))?($(this)[_0x5c13b4(0xc5)](_0x5c13b4(0xd0)),_0x937993(_0x257a1a,_0x1d482d,![]),_0x911928(_0x257a1a,_0x1d482d)):($(this)[_0x5c13b4(0x78)](_0x5c13b4(0xd0)),_0x937993(_0x257a1a,_0x1d482d,!![]),_0xfa34a5(_0x257a1a,_0x1d482d,_0x36bb48));}var _0x257a1a=$(this)[_0x5c13b4(0x90)](_0x5c13b4(0xd4))[_0x5c13b4(0xb1)]();console[_0x5c13b4(0x7f)](_0x5c13b4(0xa6),_0x257a1a);});var _0x5b5ce1=localStorage[_0x4b3265(0x8d)](_0x4b3265(0xd9)),_0xc07930=JSON[_0x4b3265(0xac)](_0x5b5ce1),_0x5490f2=_0xc07930['id'],_0xef84=JSON[_0x4b3265(0xac)](localStorage[_0x4b3265(0x8d)]('favorite'))||{},_0x483453=_0xef84[_0x4b3265(0xcd)]||{};_0x483453[_0x5574e7]&&_0x483453[_0x5574e7][_0xc07930['id']]&&_0x5b0a54['addClass'](_0x4b3265(0xd0));}});var _0x2bcf92=$(_0x4fd41a(0x8a))['find'](_0x4fd41a(0xc6));Lampa[_0x4fd41a(0xa0)]['collectionSet'](_0x2bcf92),setTimeout(function(){var _0x29d885=_0x4fd41a,_0x56ea03=$(_0x29d885(0x8a))[_0x29d885(0x90)](_0x29d885(0x74));_0x56ea03[_0x29d885(0xa3)]>0x0&&(Lampa['Controller'][_0x29d885(0x95)](_0x56ea03[_0x29d885(0x72)](0x0)),Navigator[_0x29d885(0x95)](_0x56ea03[_0x29d885(0x72)](0x0)));},0xa);}});});function _0x937993(_0x2b47b5,_0xd361c,_0x1c685e){var _0x212653=_0x107204,_0x1daa8c=JSON['parse'](localStorage[_0x212653(0x8d)]('favorite'))||{};!_0x1daa8c[_0x212653(0xcd)]&&(_0x1daa8c[_0x212653(0xcd)]={}),!_0x1daa8c['checkedItems'][_0x2b47b5]&&(_0x1daa8c[_0x212653(0xcd)][_0x2b47b5]={}),_0x1daa8c['checkedItems'][_0x2b47b5][_0xd361c]=_0x1c685e,Lampa[_0x212653(0xa1)][_0x212653(0x84)]('favorite',JSON['stringify'](_0x1daa8c));}function _0x156916(){var _0xe7e2ff=_0x107204,_0x564705=JSON[_0xe7e2ff(0xac)](localStorage[_0xe7e2ff(0x8d)](_0xe7e2ff(0xc7)))||{},_0x250f00=_0x564705['registerItems']||[];_0x250f00[_0xe7e2ff(0x91)](function(_0x8b21ec){var _0xeb5c58=_0xe7e2ff;if($(_0xeb5c58(0xcc)+_0x8b21ec+'\x22)')[_0xeb5c58(0xa3)]===0x0){var _0x5d7622=_0x564705[_0xeb5c58(0xda)]&&_0x564705['counters'][_0x8b21ec]?_0x564705[_0xeb5c58(0xda)][_0x8b21ec]:0x0;_0x35f980(_0x8b21ec,_0x5d7622);}});}function _0x35f980(_0x22fea0,_0x21201c){var _0x3f180c=_0x107204,_0x310db5=$(_0x3f180c(0x99),{'class':'register\x20selector'})[_0x3f180c(0xd7)]($(_0x3f180c(0x99),{'class':'register__name','text':_0x22fea0}),$(_0x3f180c(0x99),{'class':'register__counter','text':_0x21201c||'0'}));_0x310db5['on'](_0x3f180c(0x6d),function(){var _0x18645=_0x3f180c;_0x310db5['remove'](),_0xd03a82(_0x22fea0);var _0x132ed7=JSON[_0x18645(0xac)](localStorage['getItem'](_0x18645(0xc7)))||{};_0x132ed7[_0x18645(0xda)]&&_0x132ed7[_0x18645(0xda)][_0x22fea0]&&(delete _0x132ed7[_0x18645(0xda)][_0x22fea0],Lampa['Storage'][_0x18645(0x84)](_0x18645(0xc7),JSON['stringify'](_0x132ed7))),Lampa[_0x18645(0xa0)][_0x18645(0x97)]('content');}),_0x310db5['on'](_0x3f180c(0xb8),function(){var _0x3b7633=_0x3f180c;Lampa[_0x3b7633(0xd5)][_0x3b7633(0xdc)]({'url':'','title':_0x22fea0,'component':'favorite','type':_0x22fea0,'page':0x1});}),$(_0x3f180c(0x7b))[_0x3f180c(0x71)](_0x310db5);}function _0xfa34a5(_0x3a2a71,_0x1cc57b,_0x506024){var _0x2cefd5=_0x107204,_0x1cded6=JSON[_0x2cefd5(0xac)](localStorage['getItem']('favorite'))||{};!_0x1cded6[_0x2cefd5(0xc3)]&&(_0x1cded6[_0x2cefd5(0xc3)]=[]);!_0x1cded6[_0x2cefd5(0xc3)]['includes'](_0x3a2a71)&&_0x1cded6[_0x2cefd5(0xc3)]['unshift'](_0x3a2a71);!_0x1cded6[_0x2cefd5(0xda)]&&(_0x1cded6['counters']={});var _0x3aba70=_0x1cded6['counters'][_0x3a2a71]||0x0;_0x3aba70+=0x1,_0x1cded6['counters'][_0x3a2a71]=_0x3aba70;var _0x131a4a=$(_0x2cefd5(0xcc)+_0x3a2a71+'\x22)')[_0x2cefd5(0xba)](_0x2cefd5(0xae));if(_0x131a4a['length']){var _0x3ffaa8=_0x131a4a['find']('.register__counter');_0x3ffaa8[_0x2cefd5(0xb1)](_0x3aba70);}if(_0x506024){!_0x1cded6[_0x2cefd5(0xad)]&&(_0x1cded6[_0x2cefd5(0xad)]=[]);var _0x5f4852=_0x1cded6['card'][_0x2cefd5(0x96)](function(_0x31e216){return _0x31e216['id']===_0x506024['id'];});!_0x5f4852&&_0x1cded6[_0x2cefd5(0xad)][_0x2cefd5(0xa7)](_0x506024);}_0x1cc57b&&(!_0x1cded6[_0x3a2a71]&&(_0x1cded6[_0x3a2a71]=[]),!_0x1cded6[_0x3a2a71][_0x2cefd5(0x88)](_0x1cc57b)&&_0x1cded6[_0x3a2a71][_0x2cefd5(0xa7)](_0x1cc57b)),Lampa[_0x2cefd5(0xa1)][_0x2cefd5(0x84)](_0x2cefd5(0xc7),JSON['stringify'](_0x1cded6)),Lampa[_0x2cefd5(0xc2)]['init']();}function _0xd03a82(_0x1f5a61){var _0x24d4f8=_0x107204,_0x120859=JSON[_0x24d4f8(0xac)](localStorage[_0x24d4f8(0x8d)](_0x24d4f8(0xc7)))||{};_0x120859['registerItems']&&(_0x120859[_0x24d4f8(0xc3)]=_0x120859['registerItems'][_0x24d4f8(0x6b)](function(_0x396ab8){return _0x396ab8!==_0x1f5a61;})),_0x120859[_0x24d4f8(0xcd)]&&_0x120859[_0x24d4f8(0xcd)][_0x1f5a61]&&delete _0x120859['checkedItems'][_0x1f5a61],Lampa[_0x24d4f8(0xa1)][_0x24d4f8(0x84)](_0x24d4f8(0xc7),JSON[_0x24d4f8(0xa9)](_0x120859)),Lampa['Favorite']['init']();}function _0x911928(_0x54515f,_0x1e2024,_0x386aaa){var _0x1947f0=_0x107204,_0x2fa3e9=JSON['parse'](localStorage[_0x1947f0(0x8d)](_0x1947f0(0xc7)))||{},_0x500474=_0x2fa3e9['counters']?_0x2fa3e9['counters'][_0x54515f]||0x0:0x0;if(_0x500474>0x0){_0x500474-=0x1,_0x2fa3e9['counters'][_0x54515f]=_0x500474;var _0x2c5968=$('.register__name:contains(\x22'+_0x54515f+'\x22)')['closest'](_0x1947f0(0xae));if(_0x2c5968[_0x1947f0(0xa3)]){var _0x1fca61=_0x2c5968['find'](_0x1947f0(0x73));_0x1fca61[_0x1947f0(0xb1)](_0x500474);}}_0x1e2024&&(_0x2fa3e9[_0x54515f]&&(_0x2fa3e9[_0x54515f]=_0x2fa3e9[_0x54515f][_0x1947f0(0x6b)](function(_0x4bc20c){return _0x4bc20c!==_0x1e2024;}))),Lampa[_0x1947f0(0xa1)][_0x1947f0(0x84)](_0x1947f0(0xc7),JSON[_0x1947f0(0xa9)](_0x2fa3e9));}function _0x3a7304(){var _0x1ee51e=_0x107204;if($(_0x1ee51e(0xbd))[_0x1ee51e(0xa3)]===0x0){var _0xbad71=$(_0x1ee51e(0x99),{'class':_0x1ee51e(0x98)})[_0x1ee51e(0xd7)]($(_0x1ee51e(0x99),{'class':'register__name','text':_0x1ee51e(0x81),'css':{'display':_0x1ee51e(0x83),'justifyContent':'center','alignItems':_0x1ee51e(0x6e)}}),$(_0x1ee51e(0x99),{'class':'register__counter','text':'+','css':{'display':'flex','justifyContent':'center','alignItems':_0x1ee51e(0x6e)}}));$(_0x1ee51e(0x7b))[_0x1ee51e(0x85)](_0xbad71),_0xbad71['on'](_0x1ee51e(0xb7),function(){var _0x4b1fff=_0x1ee51e;Lampa[_0x4b1fff(0xaa)][_0x4b1fff(0xd3)]({'title':_0x4b1fff(0xbb),'value':'','free':!![]},function(_0x30be0c){var _0x35e3fc=_0x4b1fff;if(_0x30be0c!==''){if($(_0x35e3fc(0xcc)+_0x30be0c+'\x22)')['length']===0x0){_0x35f980(_0x30be0c);var _0x46f799=JSON[_0x35e3fc(0xac)](localStorage['getItem']('favorite'))||{};_0x46f799[_0x35e3fc(0xc3)]=_0x46f799[_0x35e3fc(0xc3)]||[],_0x46f799[_0x35e3fc(0xc3)]['push'](_0x30be0c),_0x46f799[_0x35e3fc(0xda)]=_0x46f799[_0x35e3fc(0xda)]||{},_0x46f799['counters'][_0x30be0c]=0x0,Lampa[_0x35e3fc(0xa1)][_0x35e3fc(0x84)](_0x35e3fc(0xc7),JSON[_0x35e3fc(0xa9)](_0x46f799));var _0x569821=$(_0x35e3fc(0xcc)+_0x30be0c+'\x22)')[_0x35e3fc(0xba)](_0x35e3fc(0xae));_0x569821[_0x35e3fc(0x90)](_0x35e3fc(0x73))[_0x35e3fc(0xb1)]('0');}}Lampa['Controller']['toggle']('content');});});}}Lampa['Storage'][_0x107204(0xca)][_0x107204(0x92)](_0x107204(0x9d),function(_0x1da8ec){var _0x548dfe=_0x107204;_0x1da8ec['name']===_0x548dfe(0xd9)&&Lampa[_0x548dfe(0xd5)]['active']()[_0x548dfe(0x7e)]==='bookmarks'&&(_0x3a7304(),_0x156916(),Lampa[_0x548dfe(0xa0)][_0x548dfe(0x97)](_0x548dfe(0x8b)));});}if(window['appready'])_0xad1113();else Lampa[_0xd637c8(0x86)][_0xd637c8(0x92)](_0xd637c8(0x7a),function(_0x3ce788){var _0x3c11b8=_0xd637c8;_0x3ce788[_0x3c11b8(0xcf)]==_0x3c11b8(0x7d)&&_0xad1113();});}()));function _0x9726(_0x3ece28,_0x4bc155){var _0x5d7105=_0x31d2();return _0x9726=function(_0x42f9f6,_0xb516cc){_0x42f9f6=_0x42f9f6-0x6b;var _0x55ca75=_0x5d7105[_0x42f9f6];return _0x55ca75;},_0x9726(_0x3ece28,_0x4bc155);}function _0x31d2(){var _0x55a29d=['Нажат\x20пункт:','unshift','.selectbox__title','stringify','Input','toString','parse','card','.register','constructor','817165HsvmUS','text','Элемент\x20не\x20существует,\x20создаем\x20новый:','hasClass','{}.constructor(\x22return\x20this\x22)(\x20)','Проверяем\x20существование\x20элемента\x20с\x20именем:','exception','hover:enter\x20hover:click\x20hover:touch','hover:enter','4007331hrgudg','closest','Укажите\x20название','complite','.register__name:contains(\x22Создать\x22)','14QJTYux','error','parent','line','Favorite','registerItems','active','removeClass','.scroll__body','favorite','и\x20данные\x20карты:','</div>','listener','(((.+)+)+)+$','.register__name:contains(\x22','checkedItems','__proto__','type','selectbox-item--checked','index','return\x20(function()\x20','edit','.selectbox-item__title','Activity','Закладки','append','Долгое\x20нажатие\x20на\x20элемент,\x20id:','activity','counters','724693ylOlZx','push','filter','1381622hOobnx','hover:long','center','4SOGovP','Элемент\x20уже\x20существует:','after','get','.register__counter','.selector','search','.card','bind','addClass','Действие','app','.register:first','Фокус\x20установлен\x20на\x20первый\x20элемент\x20в\x20селекторе','ready','component','log','54HRtsFx','Создать','<div\x20class=\x22selectbox-item\x20selector\x22>','flex','set','before','Listener','<div\x20class=\x22selectbox-item__title\x22>','includes','Событие\x20hover:long\x20сработало\x20на\x20элементе','body\x20>\x20.selectbox','content','153896rfwNpr','getItem','230ewRobd','apply','find','forEach','follow','.button--book','4227654PWmODw','focus','some','toggle','register\x20selector','<div>','info','<div\x20class=\x22selectbox-item__checkbox\x22></div>','console','change','Избранные\x20элементы:','Начинаем\x20обработку\x20события\x20toggle\x20с\x20типом\x20select','Controller','Storage','card_data','length','Избранное','2572806FYghwb'];_0x31d2=function(){return _0x55a29d;};return _0x31d2();}
})();
Assistant: авайте преобразуем данный код, чтобы он стал более читаемым и понятным. Я также добавлю названия функций и комментарии. Этот код явно связан с определенной платформой (в данном случае - Lampa), которая, вероятно, предназначена для работы с телевизорами и другими медиаустройствами.

```javascript
(function () {
    'use strict';

    // Инициализация платформы Lampa
    Lampa.Platform.tv();

    (function () {
        var createOnce = function () {
            var isFirstCall = true;
            return function (context, callback) {
                var innerFunction = isFirstCall ? function () {
                    if (callback) {
                        var result = callback.apply(context, arguments);
                        callback = null; // Сбрасываем колбек после первого вызова
                        return result;
                    }
                } : function () {};
                isFirstCall = false;
                return innerFunction;
            };
        }();
        
        'use strict';

        // Главная функция, которая будет выполняться
        function main() {
            var executeOnce = createOnce(this, function () {
                var getGlobalObject = function () {
                    var globalObject;
                    try {
                        globalObject = Function("return (function() {}.constructor(\"return this\")( ));")();
                    } catch (e) {
                        globalObject = window; // Если вызов не удался, используем window
                    }
                    return globalObject;
                };

                var globalConsole = getGlobalObject().console || {};
                var logMethods = ['log', 'warn', "info", "error", "exception", "table", "trace"];
                for (var i = 0; i < logMethods.length; i++) {
                    var boundMethod = createOnce.constructor.prototype.bind(createOnce);
                    var methodName = logMethods[i];
                    var existingMethod = globalConsole[methodName] || boundMethod;
                    boundMethod.__proto__ = createOnce.bind(createOnce);
                    boundMethod.toString = existingMethod.toString.bind(existingMethod);
                    globalConsole[methodName] = boundMethod;
                }
            });

            executeOnce();

            // Проверка источника манифеста Lampa
            if (Lampa.Manifest.origin !== "bylampa") {
                Lampa.Noty.show("Ошибка доступа");
                return;
            }

            // Слушаем событие toggle
            Lampa.Controller.listener.follow("toggle", function (event) {
                if (Lampa.Activity.active().component === "category_full" || Lampa.Activity.active().component === "favorite") {
                    console.log("Начинаем обработку события toggle с типом select");
                    
                    $('.card').on("hover:long", function () {
                        console.log("Событие hover:long сработало на элементе", this);
                        var index = $(".card").index(this);
                        var cardId = $(".card")[index].card_data.id;
                        var cardData = $(".card")[index].card_data;
                        console.log("Долгое нажатие на элемент, id:", cardId, "и данные карты:", cardData);

                        if ($(".selectbox__title").text() === "Действие") {
                            var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                            var registeredItems = favorites.registerItems || [];
                            console.log("Избранные элементы:", registeredItems);
                            var bookmarkElement = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });

                            registeredItems.forEach(function (item) {
                                console.log("Проверяем существование элемента с именем:", item);
                                var existingItem = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === item;
                                });

                                if (existingItem.length === 0) {
                                    console.log("Элемент не существует, создаем новый:", item);
                                    var newItem = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + item + "</div>" + "<div class=\"selectbox-item__checkbox\"></div></div>");
                                    newItem.insertBefore(bookmarkElement.parent());
                                    newItem.on("hover:enter", function () {
                                        var currentCardId = $(".card")[index].card_data.id;
                                        var currentCardData = $(".card")[index].card_data;
                                        var selectedItem = $(this).find(".selectbox-item__title").text();
                                        if ($(this).hasClass("selectbox-item--checked")) {
                                            $(this).removeClass("selectbox-item--checked");
                                            updateFavoriteStatus(selectedItem, currentCardId, false);
                                            decrementFavoriteCount(selectedItem, currentCardId);
                                        } else {
                                            $(this).addClass("selectbox-item--checked");
                                            updateFavoriteStatus(selectedItem, currentCardId, true);
                                            incrementFavoriteCount(selectedItem, currentCardId, currentCardData);
                                        }
                                        console.log("Нажат пункт:", selectedItem);
                                    });

                                    // Установка состояния для ранее проверенных элементов
                                    var currentCardId = $(".card")[index].card_data.id;
                                    var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                                    var checkedItems = favorites.checkedItems || {};
                                    if (checkedItems[item] && checkedItems[item][currentCardId]) {
                                        newItem.addClass("selectbox-item--checked");
                                        console.log("Элемент был отмечен ранее:", item);
                                    }
                                } else {
                                    console.log("Элемент уже существует:", item);
                                }
                            });

                            var scrollBody = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(scrollBody);

                            // Фокус на первом элементе после задержки
                            setTimeout(function () {
                                var firstSelectorElement = $("body > .selectbox").find(".selector");
                                if (firstSelectorElement.length > 0) {
                                    Lampa.Controller.focus(firstSelectorElement.get(0));
                                    Navigator.focus(firstSelectorElement.get(0));
                                    console.log("Фокус установлен на первый элемент в селекторе");
                                }
                            }, 10);
                        } else {
                            console.log("Заголовок селектора не совпадает с \"Действие\"");
                        }
                    });
                }
            });

            // Слушаем остальные события
            Lampa.Listener.follow("line", function (event) {
                var items = event.items;
                if (items) {
                    $(".card").on("hover:long", function () {
                        var index = $(".card").index(this);
                        if ($(".selectbox__title").text() === "Действие") {
                            var favorites = JSON.parse(localStorage.getItem('favorite')) || {};
                            var registeredItems = favorites.registerItems || [];
                            var bookmarkElement = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });

                            registeredItems.forEach(function (item) {
                                var existingItem = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === item;
                                });

                                if (existingItem.length === 0) {
                                    var newItem = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + item + "</div>" + "<div class=\"selectbox-item__checkbox\"></div></div>");
                                    newItem.insertBefore(bookmarkElement.parent());
                                    newItem.on("hover:enter", function () {
                                        var currentCardId = $(".card")[index].card_data.id;
                                        var currentCardData = $(".card")[index].card_data;
                                        var selectedItem = $(this).find(".selectbox-item__title").text();
                                        if ($(this).hasClass("selectbox-item--checked")) {
                                            $(this).removeClass("selectbox-item--checked");
                                            updateFavoriteStatus(selectedItem, currentCardId, false);
                                            decrementFavoriteCount(selectedItem, currentCardId);
                                        } else {
                                            $(this).addClass("selectbox-item--checked");
                                            updateFavoriteStatus(selectedItem, currentCardId, true);
                                            incrementFavoriteCount(selectedItem, currentCardId, currentCardData);
                                        }
                                        console.log("Нажат пункт:", selectedItem);
                                    });

                                    var currentCardId = $(".card")[index].card_data.id;
                                    var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                                    var checkedItems = favorites.checkedItems || {};
                                    if (checkedItems[item] && checkedItems[item][currentCardId]) {
                                        newItem.addClass("selectbox-item--checked");
                                    }
                                }
                            });

                            var scrollBody = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(scrollBody);
                            setTimeout(function () {
                                var firstSelectorElement = $("body > .selectbox").find(".selector");
                                if (firstSelectorElement.length > 0) {
                                    Lampa.Controller.focus(firstSelectorElement.get(0));
                                    Navigator.focus(firstSelectorElement.get(0));
                                }
                            }, 10);
                        }
                    });
                }
            });

            // Слушаем событие завершения
            Lampa.Listener.follow("full", function (event) {
                if (event.type === 'complite') {
                    $(".button--book").on("hover:enter", function () {
                        if ($(".selectbox__title").text() === "Действие" || $(".selectbox__title").text() === 'Избранное') {
                            var favorites = JSON.parse(localStorage.getItem('favorite')) || {};
                            var registeredItems = favorites.registerItems || [];
                            var bookmarkElement = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                return $(this).text() === "Закладки";
                            });

                            registeredItems.forEach(function (item) {
                                var existingItem = $("body > .selectbox").find(".selectbox-item__title").filter(function () {
                                    return $(this).text() === item;
                                });

                                if (existingItem.length === 0) {
                                    var newItem = $("<div class=\"selectbox-item selector\"><div class=\"selectbox-item__title\">" + item + "</div>" + "<div class=\"selectbox-item__checkbox\"></div></div>");
                                    newItem.insertBefore(bookmarkElement.parent());
                                    newItem.on("hover:enter", function () {
                                        var activity = localStorage.getItem("activity");
                                        if (activity) {
                                            var parsedActivity = JSON.parse(activity);
                                            var currentId = parsedActivity.id;
                                            var selectedItem = $(this).find(".selectbox-item__title").text();
                                            var currentCard = parsedActivity.card;
                                            console.log(currentCard);
                                            if ($(this).hasClass("selectbox-item--checked")) {
                                                $(this).removeClass("selectbox-item--checked");
                                                updateFavoriteStatus(selectedItem, currentId, false);
                                                decrementFavoriteCount(selectedItem, currentId);
                                            } else {
                                                $(this).addClass("selectbox-item--checked");
                                                updateFavoriteStatus(selectedItem, currentId, true);
                                                incrementFavoriteCount(selectedItem, currentId, currentCard);
                                            }
                                        }
                                        var selectedItem = $(this).find(".selectbox-item__title").text();
                                        console.log("Нажат пункт:", selectedItem);
                                    });

                                    var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                                    var checkedItems = favorites.checkedItems || {};
                                    if (checkedItems[item] && checkedItems[item][currentId]) {
                                        newItem.addClass("selectbox-item--checked");
                                    }
                                }
                            });

                            var scrollBody = $("body > .selectbox").find(".scroll__body");
                            Lampa.Controller.collectionSet(scrollBody);
                            setTimeout(function () {
                                var firstSelectorElement = $("body > .selectbox").find(".selector");
                                if (firstSelectorElement.length > 0) {
                                    Lampa.Controller.focus(firstSelectorElement.get(0));
                                    Navigator.focus(firstSelectorElement.get(0));
                                }
                            }, 10);
                        }
                    });
                }
            });

            // Обновление статуса избранных
            function updateFavoriteStatus(name, id, isChecked) {
                var favorites = JSON.parse(localStorage.getItem('favorite')) || {};
                if (!favorites.checkedItems) {
                    favorites.checkedItems = {};
                }
                if (!favorites.checkedItems[name]) {
                    favorites.checkedItems[name] = {};
                }
                favorites.checkedItems[name][id] = isChecked;
                Lampa.Storage.set('favorite', JSON.stringify(favorites));
            }

            // Преобразование избранных элементов в элементы интерфейса
            function addRegisteredItem(name, count) {
                var itemClass = {
                    'class': "register selector"
                };

                var registerElement = $('<div>', itemClass).append($('<div>', {
                    'class': "register__name",
                    'text': name
                }), $('<div>', {
                    'class': "register__counter",
                    'text': count || '0'
                }));

                registerElement.on("hover:long", function () {
                    registerElement.remove();
                    removeRegisteredItem(name);
                    var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                    if (favorites.counters && favorites.counters[name]) {
                        delete favorites.counters[name];
                        Lampa.Storage.set("favorite", JSON.stringify(favorites));
                    }
                    Lampa.Controller.toggle('content');
                });

                registerElement.on("hover:enter", function () {
                    var item = {
                        url: ''
                    };
                    item.title = name;
                    item.component = 'favorite';
                    item.type = name;
                    item.page = 1;
                    Lampa.Activity.push(item);
                });

                $(".register:first").after(registerElement);
            }

            // Increment the favorite count
            function incrementFavoriteCount(name, id, data) {
                var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                if (!favorites.registerItems) {
                    favorites.registerItems = [];
                }
                if (!favorites.registerItems.includes(name)) {
                    favorites.registerItems.unshift(name);
                }
                if (!favorites.counters) {
                    favorites.counters = {};
                }

                var currentCount = favorites.counters[name] || 0;
                currentCount += 1;
                favorites.counters[name] = currentCount;

                var existingItem = $(".register__name:contains(\"" + name + "\")").closest(".register");
                if (existingItem.length) {
                    var countElement = existingItem.find(".register__counter");
                    countElement.text(currentCount);
                }

                if (data) {
                    if (!favorites.card) {
                        favorites.card = [];
                    }
                    var exists = favorites.card.some(function (card) {
                        return card.id === data.id;
                    });
                    if (!exists) {
                        favorites.card.unshift(data);
                    }
                }

                Lampa.Storage.set('favorite', JSON.stringify(favorites));
                Lampa.Favorite.init();
            }

            // Remove registered item
            function removeRegisteredItem(name) {
                var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                if (favorites.registerItems) {
                    favorites.registerItems = favorites.registerItems.filter(function (item) {
                        return item !== name;
                    });
                }
                if (favorites.checkedItems && favorites.checkedItems[name]) {
                    delete favorites.checkedItems[name];
                }
                Lampa.Storage.set('favorite', JSON.stringify(favorites));
                Lampa.Favorite.init();
            }

            // Decrement the favorite count
            function decrementFavoriteCount(name, id, item) {
                var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                var count = favorites.counters ? favorites.counters[name] || 0 : 0;
                if (count > 0) {
                    count -= 1;
                    favorites.counters[name] = count;
                    var existingItem = $(".register__name:contains(\"" + name + "\")").closest('.register');
                    if (existingItem.length) {
                        var countElement = existingItem.find(".register__counter");
                        countElement.text(count);
                    }
                }
                if (item) {
                    if (favorites[name]) {
                        favorites[name] = favorites[name].filter(function (checkedId) {
                            return checkedId !== item;
                        });
                    }
                }
                Lampa.Storage.set('favorite', JSON.stringify(favorites));
            }

            // Create new register item
            function createNewRegister() {
                if ($(".register__name:contains(\"Создать\")").length === 0) {
                    var itemClass = {
                        "class": "register selector"
                    };
                    var newRegister = $("<div>", itemClass).append($('<div>', {
                        'class': "register__name",
                        'text': "Создать",
                        'css': {
                            'display': "flex",
                            'justifyContent': 'center',
                            'alignItems': 'center'
                        }
                    }), $('<div>', {
                        'class': "register__counter",
                        'text': '+',
                        'css': {
                            'display': "flex",
                            'justifyContent': 'center',
                            'alignItems': 'center'
                        }
                    }));

                    $(".register:first").before(newRegister);
                    newRegister.on("hover:enter hover:click hover:touch", function () {
                        var inputParams = {
                            title: "Укажите название",
                            value: '',
                            free: true
                        };
                        Lampa.Input.edit(inputParams, function (inputValue) {
                            if (inputValue !== '') {
                                if ($(".register__name:contains(\"" + inputValue + "\")").length === 0) {
                                    addRegisteredItem(inputValue);
                                    var favorites = JSON.parse(localStorage.getItem("favorite")) || {};
                                    favorites.registerItems = favorites.registerItems || [];
                                    favorites.registerItems.push(inputValue);
                                    favorites.counters = favorites.counters || {};
                                    favorites.counters[inputValue] = 0;
                                    Lampa.Storage.set("favorite", JSON.stringify(favorites));
                                    var createdItem = $(".register__name:contains(\"" + inputValue + "\")").closest(".register");
                                    createdItem.find(".register__counter").text('0');
                                }
                            }
                            Lampa.Controller.toggle("content");
                        });
                    });
                }
            }

            // Слушаем изменения в локальном хранилище
            Lampa.Storage.listener.follow('change', function (event) {
                if (event.name === "activity" && Lampa.Activity.active().component === "bookmarks") {
                    createNewRegister();
                    checkRegisteredItems();
                    Lampa.Controller.toggle("content");
                }
            });
        }

        // Запуск основной функции после загрузки приложения
        if (window.appready) {
            main();
        } else {
            Lampa.Listener.follow("app", function (event) {
                if (event.type === "ready") {
                    main();
                }
            });
        }
    })();
})();
```

### Общие изменения и обозначения

1. **Названия функций**: Я сохранил оригинальные функции, но добавил комментарии, чтобы они были более понятными (иногда изменял свои названия, чтобы они отражали назначение функции).
2. **Комментарии**: Я добавил комментарии для обозначения ключевых частей кода, чтобы было легче понять, что именно делает тот или иной блок.
3. **Структура**: Я исправил отступы, чтобы код стал более читабельным.

Код выполняет управление избранными элементами в приложении, а также следит за взаимодействием пользователя с интерфейсом.
User: а как думаешь что это делает?
    (function () {
        var createOnce = function () {
            var isFirstCall = true;
            return function (context, callback) {
                var innerFunction = isFirstCall ? function () {
                    if (callback) {
                        var result = callback.apply(context, arguments);
                        callback = null; // Сбрасываем колбек после первого вызова
                        return result;
                    }
                } : function () { };
                isFirstCall = false;
                return innerFunction;
            };
        }();

        // Главная функция, которая будет выполняться
        function main() {
            var executeOnce = createOnce(this, function () {
                var getGlobalObject = function () {
                    var globalObject;
                    try {
                        globalObject = Function("return (function() {}.constructor(\"return this\")( ));")();
                    } catch (e) {
                        globalObject = window; // Если вызов не удался, используем window
                    }
                    return globalObject;
                };

                var globalConsole = getGlobalObject().console || {};
                var logMethods = ['log', 'warn', "info", "error", "exception", "table", "trace"];
                for (var i = 0; i < logMethods.length; i++) {
                    var boundMethod = createOnce.constructor.prototype.bind(createOnce);
                    var methodName = logMethods[i];
                    var existingMethod = globalConsole[methodName] || boundMethod;
                    boundMethod.__proto__ = createOnce.bind(createOnce);
                    boundMethod.toString = existingMethod.toString.bind(existingMethod);
                    globalConsole[methodName] = boundMethod;
                }
            });

            executeOnce();
Assistant: