PageSourceSearch

https://topzdraw.ru/js/app.js?v.1.4

js topzdraw.ru collected 2026-10-10 02:27:52 UTC 31,841 bytes, 324 lines download raw bytes

1function setcookie(e, t, n, o, a, r) {
2    n instanceof Date ? n = n.toGMTString() : "number" == typeof n && (n = new Date(+new Date + 1e3 * n).toGMTString());
3    var i, p, s = [e + "=" + escape(t)];
4    for (p in i = {expires: n, path: o, domain: a}) i[p] && s.push(p + "=" + i[p]);
5    return r && s.push("secure"), document.cookie = s.join(";"), !0
6}
7
8function getcookie(e) {
9    e = e.replace(/([\.$?*|{}\(\)\[\]\\\/\+^])/g, "\\$1"), e = document.cookie.match(new RegExp("/(?:^|; )" + e + "=([^;]*)/"));
10    return e ? decodeURIComponent(e[1]) : void 0
11}
12
13App = {
14    local: {},
15    theme: {},
16    beforeInit: function () {
17    },
18    afterInit: function () {
19    },
20    loading: !1,
21    init: function () {
22        App.beforeInit(), $(".popup .ico-close").click(App.hidePopup), $(".popup form.cart-common, .popup.order-popup form, .popup.callback-popup form, .popup.know-price-callback-popup form").on("submit", function () {
23            if (App.loading) return !1;
24            App.loading = !0;
25            var t = $(this), n = t.data("successClose"), o = t.data("yaTarget"), a = t.find('[type="submit"]');
26            return a.attr("disabled") || (a.prop("disabled", !0), $(this).postForm(function (e) {
27                App.loading = !1, e.success && t.find('[type="checkbox"]').prop("checked") ? (window.yaCounter23377309 && o && window.yaCounter23377309.reachGoal(o), t.find('[type="submit"]').hasClass("CallMe_Send") && (yaCounter23377309.reachGoal("callme_send"), ga("send", "event", "CallMe", "Send")), t.find('[type="submit"]').hasClass("OneClickItemSend") && (yaCounter23377309.reachGoal("fast_order_step2"), ga("send", "event", "fast_order_step2", "send")), t.find('[type="submit"]').hasClass("OptPriceSend") && (yaCounter23377309.reachGoal("opt_price_step2"), ga("send", "event", "opt_price_step2", "send")), t.find('[type="submit"]').hasClass("KnowPriceSend") && (yaCounter23377309.reachGoal("know_price_step2"), ga("send", "event", "know_price_step2", "send")), t.find(".success-text").length && (t.find(".success-text").show(), t.find('[type="submit"]').hide()), n ? window.setTimeout(App.hidePopup, n) : (e.url && (location.href = e.url), App.hidePopup())) : a.prop("disabled", !1)
28            })), !1
29        }),
30
31
32
33
34            jQuery(".popup.saleclick-popup form").on("submit", function (e) {
35            e.preventDefault();
36            let t = jQuery(this),
37                n = jQuery(this).find('[type="submit"]'),
38                o = jQuery(this).find('input[name="phone"]').val(),
39                c = jQuery(this).find('input[name="_csrf"]').val(),
40                q = jQuery(this).find('input[name="saleclick"]').val();
41
42            if ("" != o) {
43                if (n.attr("disabled")) return !1;
44                e = {
45                    amount: 1,
46                    name: "Заказ по акции",
47                    phone: o,
48                    _csrf: c,
49                    variant: jQuery(this).find('input[name="variant"]').val(),
50                    comment: "",
51                    saleclick: q
52                };
53                jQuery.ajax({
54                    type: "post",
55                    url: "/ajax/speed_zakaz.php",
56                    data: e,
57                    dataType: "text",
58                    beforeSend: function () {
59                        n.prop("disabled", !0)
60                    },
61                    success: function (e) {
62                        n.prop("disabled", !1), t.css("display", "none"), t.parent().find(".zam_h2").css("display", "none"), t.parent().append(jQuery('<div class="BOCAjaxAnswer"><p>Спасибо, Ваш заказ принят!</p> <p>Ожидайте звонка</p></div>')), yaCounter23377309.reachGoal("sale_order_step2"), ga("send", "event", "sale_order_step2", "send")
63                    }
64                })
65            } else t.find(".error-block").html("Не заполнено поле номер телефона").css("display", "block");
66            return !1
67        })
68
69
70
71
72            jQuery(".popup.oneclick-popup form").on("submit", function (e) {
73            e.preventDefault();
74            let t = jQuery(this),
75                n = jQuery(this).find('[type="submit"]'),
76                o = jQuery(this).find('input[name="phone"]').val(),
77                c = jQuery(this).find('input[name="_csrf"]').val(),
78                q = jQuery(this).find('input[name="oneclick"]').val();
79
80            if ("" != o) {
81                if (n.attr("disabled")) return !1;
82                e = {
83                    amount: 1,
84                    name: "Быстрый заказ",
85                    phone: o,
86                    _csrf: c,
87                    variant: jQuery(this).find('input[name="variant"]').val(),
88                    comment: "Быстрый заказ (номер товара: " + jQuery(this).find('input[name="comment"]').val() + ")",
89                    oneclick: q
90                };
91                jQuery.ajax({
92                    type: "post",
93                    url: "/ajax/speed_zakaz.php",
94                    data: e,
95                    dataType: "text",
96                    beforeSend: function () {
97                        n.prop("disabled", !0)
98                    },
99                    success: function (e) {
100                        n.prop("disabled", !1), t.css("display", "none"), t.parent().find(".zam_h2").css("display", "none"), t.parent().append(jQuery('<div class="BOCAjaxAnswer"><p>Спасибо, Ваш заказ принят!</p> <p>Ожидайте звонка</p></div>')), yaCounter23377309.reachGoal("buy_one_click_cart"), ga("send", "event", "fast_order", "send")
101                    }
102                })
103            } else t.find(".error-block").html("Не заполнено поле номер телефона").css("display", "block");
104            return !1
105        })
106
107
108
109
110
111
112            , $(".popup.contact-popup form").submit(function () {
113            return App.loading || (App.loading = !0, $(this).postForm(function (e) {
114                App.loading = !1, yaCounter23377309.reachGoal("contacts_send_mail"), ga("send", "event", "contacts_send_mail", "send"), e.success && $("#user_agreement4").prop("checked") && App.hidePopup()
115            })), !1
116        }), $("form#quick-order-form-cart").submit(function (e) {
117            $(e.target).find("button#quick-order-form-cart-btn").prop("disabled", !0)
118        }), $(".freeForm form").submit(function () {
119            return App.loading || (App.loading = !0, $(this).postForm(function (e) {
120                App.loading = !1, e.success && $("#user_agreement_question").prop("checked") && (yaCounter23377309.reachGoal("EXPERT"), ga("send", "event", "EXPERT", "send"), $(".freeForm").html('<p class="formAjaxAnswer">Ваша заявка принята в ближайшее время с вами свяжится менеджер!</p>'))
121            })), !1
122        }), $(".popup").hover(function () {
123            App.mouse_inside_popup = !0
124        }, function () {
125            App.mouse_inside_popup = !1
126        }), $(document).click(function () {
127            App.popup_opening || App.mouse_inside_popup || App.hidePopup(), App.popup_opening = !1
128        }), App.afterInit()
129    },
130    showMessages: function (e, t) {
131        if (t = t || {}, e.redirect || t.redirect) return location.href = t.redirect || e.redirect;
132        var n = $("BODY");
133        if ((n = t.container ? "string" == typeof t.container ? $(t.container) : t.container : n).find(".ffe").each(function () {
134            $(this).html(""), $(this).hasClass("placeholder") || $(this).hide()
135        }), n.find(".te").hide().html(""), e && void 0 !== e.msg && e.msg && !$(this).find('[type="checkbox"]').prop("")) for (var o, a = 0; a < e.msg.length; a++) "field-error" == e.msg[a].type ? ((o = n.find(".ffe_" + e.msg[a].field)).html('<span class="error-field">' + e.msg[a].text + "</span>"), o.hasClass("placeholder") ? o.next("INPUT").val("").change() : o.show()) : "text-error" == e.msg[a].type ? n.find(".te").html(e.msg[a].text).show() : App.alert(e.msg[a].text)
136    },
137    alert: function (e) {
138        alert(e)
139    },
140    confirmAction: null,
141    confirm: function (e, t) {
142        return App.confirmAction = t, App.showPopup("approve-popup"), $(".approve-popup .text").text(e), !1
143    },
144    confirmClick: function (e) {
145        App.hidePopup(), e && ("function" == typeof App.confirmAction ? App.confirmAction() : App.confirmAction.attr("href") && (window.location.href = App.confirmAction.attr("href")))
146    },
147    mouse_inside_popup: !1,
148    popup_opening: !1,
149    showPopup: function (e, t) {
150        App.popup_opening = !0, App.hidePopup(), $(".popup .te").html("");
151        var n = $(".popup." + e);
152        if (n.css("top", $(document).scrollTop() + 100), $("BODY").append(n), "oneclick-popup" == e) {
153            let e = t.hasClass("product-popup-info") ? t : t.find(".product-popup-info");
154            n.find("form").removeAttr("style"), n.find(".BOCAjaxAnswer").remove(), n.find(".error-block").html("").css("display", "none"), n.find('input[name="comment"]').val(e.attr("data-product-id"))
155        }
156        if (n.find('[name]:not([type="hidden"],[type="radio"],[type="checkbox"],[type="submit"],[readonly])').val("").change().removeClass("error").blur(), t) {
157            var o = (t = $(t)).find(".product-popup-info").data();
158            if (t.find(".product-photo-main").length ? n.find(".image IMG").attr("src", t.find(".product-photo-main").attr("src")).show() : n.find(".image IMG").hide(), t.find(".product-popup-info H1").length ? n.find(".info H3 A").html(t.find(".product-popup-info H1").html()).attr("href", o.url || document.location.toString()) : t.find(".product-popup-info .product-info-h1").length ? (a = t.find(".product-popup-info  .product-info-h1").attr("href"), n.find(".info .zam_h3 a").html(t.find(".product-popup-info  .product-info-h1").html()).attr("href", a)) : n.find(".info H3 A").html("").attr("href", "#"), t.find(".product-popup-info .sku .value").length ? (n.find(".info .sku .value").html(t.find(".product-popup-info .sku .value").html()).show(), n.find(".info .sku").show()) : n.find(".info .sku").hide(), t.find(".product-popup-info .prod .value").length ? (n.find(".info .prod .value").html(t.find(".product-popup-info .prod .value").html()).show(), n.find(".info .prod").show()) : n.find(".info .prod").hide(), t.find(".product-popup-info .brand .value").length ? (n.find(".info .brand .value").html(t.find(".product-popup-info .brand .value").html()).show(), n.find(".info .brand").show()) : n.find(".info .brand").hide(), t.find(".product-popup-info .warr .value").length ? (n.find(".info .warr .value").html(t.find(".product-popup-info .warr .value").html()).show(), n.find(".info .warr").show()) : n.find(".info .warr").hide(), t.find(".product-popup-info .price DIV").length ? n.find(".info .price").html(t.find(".product-popup-info .price .product__price_new, .product-popup-info .price .newPrice").html()).show() : n.find(".info .price").hide(), t.find('.product-popup-info [name="variant"]').length) {
159                e = parseInt(t.find('.product-popup-info [name="variant"]').val());
160                if (e) {
161                    n.find('[name="variant"]').val(e);
162                    var a = parseInt(t.find('.product-popup-info [name="amount"]').val()) || 1;
163                    n.find('[name="amounts"]').attr("name", "amounts[" + e + "]").val(a);
164                    t = parseInt(o.price) || 0;
165                    if (1 < a && (e = o.currency, n.find(".info .price").html((t * a).formatMoney(0, ",", " ") + " <span>" + e + "</span>").show()), o.minPrice && t * a < o.minPrice) return void (o.minPriceAlert && alert(o.minPriceAlert))
166                }
167            }
168            o && o.material ? (n.find(".info .material .value").html(o.material), n.find(".info .material").show()) : n.find(".info .material").hide()
169        }
170        return $(".popup-background").fadeIn(200), n.fadeIn(600), !1
171    },
172    hidePopup: function () {
173        return $(".popup-background").fadeOut(600), $(".popup").fadeOut(200), $(".popup .placeholder").html(""), !1
174    },
175    mkad_coords: [[[55.897702887224796, 37.67240905761718], [55.89664192633831, 37.6752414703369], [55.89591852721012, 37.67807388305662], [55.8956291637662, 37.6829662322998], [55.89538802590739, 37.687686920166], [55.89553270880329, 37.69146347045898], [55.89529157034246, 37.69669914245605], [55.89466460330075, 37.69996070861816], [55.89312125646775, 37.705282211303704], [55.89215663339145, 37.70751380920409], [55.89152961547806, 37.70957374572752], [55.89046848506115, 37.712148666381815], [55.888635554797155, 37.715324401855455], [55.8874296322104, 37.71798515319823], [55.88622367199341, 37.720216751098604], [55.88545183770592, 37.722448348999016], [55.884872951875, 37.72493743896484], [55.884872951875, 37.73025894165038], [55.88279853978146, 37.73025894165038], [55.8811582281455, 37.73111724853514], [55.880000319199695, 37.7330913543701], [55.87903536858371, 37.735065460205064], [55.87816689243558, 37.737468719482415], [55.87464453915709, 37.743562698364244], [55.86373768471359, 37.76553535461424], [55.84804765603748, 37.79574775695799], [55.833558904954586, 37.8228702545166], [55.83148173964286, 37.82776260375975], [55.83090204571783, 37.83093833923339], [55.82925953247555, 37.831968307495096], [55.824331574788744, 37.83746147155761], [55.82186736083274, 37.83866310119629], [55.81930634494508, 37.83995056152341], [55.81640687737011, 37.84115219116209], [55.815923611680155, 37.84321212768552], [55.815198701844565, 37.84458541870117], [55.814038817900894, 37.84381294250486], [55.81244392079273, 37.84252548217771], [55.81075229152879, 37.84063720703125], [55.80698210925112, 37.84106636047361], [55.80209966167469, 37.841667175292955], [55.80011750252675, 37.84192466735837], [55.780193594328715, 37.84381294250486], [55.77913351008552, 37.844783264391616], [55.77845628577709, 37.84701486229202], [55.77792417267178, 37.84813066124222], [55.776618045932416, 37.84778733848831], [55.77526349769469, 37.84581323265335], [55.773812143546046, 37.844697433703146], [55.75997317538473, 37.84426828026078], [55.753487486017335, 37.84435411094925], [55.75198691106874, 37.8441824495723], [55.74898558725352, 37.84383912681839], [55.74675864876349, 37.845555740587926], [55.7449673229946, 37.84950395225785], [55.74482207674487, 37.85173555015823], [55.74332116703625, 37.85019059776566], [55.741481263136315, 37.844869095080114], [55.736784271297495, 37.8430666506221], [55.73179612239952, 37.84289498924515], [55.731166504711425, 37.844697433703146], [55.72898698012023, 37.84177919029495], [55.72491820726679, 37.841521698229506], [55.72080056319119, 37.84092088341019], [55.71818442163351, 37.845126587145536], [55.716585581821896, 37.84435411094925], [55.71571345967627, 37.840405899279325], [55.713823794608125, 37.84135003685256], [55.7119340377362, 37.84461160301467], [55.710722606838814, 37.84461160301467], [55.709414219096786, 37.84169335960648], [55.70985035323334, 37.83731599449416], [55.70849347541899, 37.83851762413284], [55.70645806996491, 37.83971925377152], [55.70587650599171, 37.83774514793656], [55.705149538801436, 37.83551355003615], [55.70350169621928, 37.8343119203975], [55.701708376470975, 37.833110290758825], [55.69758827484921, 37.83216615318557], [55.69356469588598, 37.83156533836623], [55.6894922165988, 37.832766968004904], [55.686631530014225, 37.83499856590531], [55.684207054812255, 37.83748765587111], [55.6821703789833, 37.83499856590531], [55.680279084622, 37.834655243151396], [55.678775682559596, 37.83620019554396], [55.675235183954115, 37.83723016380569], [55.667182989135455, 37.840405899279325], [55.66053624948339, 37.84203668236037], [55.65641179002368, 37.84263749717971], [55.6535972024768, 37.84014840721388], [55.64859838232795, 37.83448358177445], [55.64529783914648, 37.83027787803908], [55.64243390621512, 37.82572885154982], [55.63913284127208, 37.824613052599645], [55.637919144215985, 37.818604904406286], [55.62854813179519, 37.80358453392288], [55.61820341705874, 37.78667588829299], [55.617086218110366, 37.78899331688187], [55.614948878859664, 37.78959413170121], [55.61509461025296, 37.7873625338008], [55.61
1754997456051206, 37.784444290392614], [55.614997456051206, 37.78075357078811], [55.61120825360195, 37.773543792956076], [55.60217097907149, 37.75852342247268], [55.59726276567736, 37.74642129539749], [55.59342323822858, 37.736464935534215], [55.59118739019748, 37.733718353502965], [55.58875697549044, 37.73251672386429], [55.58875697549044, 37.72891183494826], [55.5889514142296, 37.72530694603226], [55.58584027831145, 37.71826882957717], [55.58345814747422, 37.7134623110225], [55.58127034840715, 37.7057375490596], [55.57845033787414, 37.69964357017777], [55.577088880670665, 37.695094543688505], [55.575532871526356, 37.692691284411154], [55.57358777301203, 37.692262130968786], [55.57120489546283, 37.69234796165726], [55.57188573243677, 37.689773041002965], [55.57266381732086, 37.68642564415238], [55.572128885626164, 37.68239160179398], [55.57057267908735, 37.67071862816117], [55.57042678154921, 37.655612426989286], [55.57086447253071, 37.645570236437536], [55.571496684188844, 37.63930459617874], [55.57208025510925, 37.63381143211625], [55.57208025510925, 37.62437005638381], [55.57266381732086, 37.621108490221694], [55.57353914430943, 37.61527200340529], [55.57383091561797, 37.61115213035842], [55.573879543957716, 37.606860595934606], [55.573101483264445, 37.603684860460966], [55.57144805288571, 37.60196824669143], [55.56896777623045, 37.60308404564163], [55.56648734226576, 37.601624923937536], [55.5659036878825, 37.59759088157914], [55.56673052902162, 37.59467263817092], [55.57008635184344, 37.593642669909215], [55.57378228721773, 37.59252687095901], [55.57601913103611, 37.58969445823929], [55.57699163191336, 37.5841154634883], [55.57854758300307, 37.577163177721715], [55.579617263456626, 37.5727858126094], [55.58039519449406, 37.569524246447294], [55.58195101012762, 37.56188531517287], [55.58972915951208, 37.530900436632834], [55.58919446129312, 37.52729554771683], [55.590652711931135, 37.52592225670121], [55.592256724782665, 37.52223153709671], [55.59313161313196, 37.5185408174922], [55.59415229144777, 37.51373429893752], [55.59677677040253, 37.50738282799025], [55.599012298609146, 37.50369210838577], [55.60192801271931, 37.49931474327346], [55.604843509200315, 37.49776979088089], [55.60722433656079, 37.494594055407255], [55.6090220079864, 37.491332489245146], [55.60790454629169, 37.48910089134476], [55.60596105848462, 37.48747010826369], [55.611256835447605, 37.488585907213896], [55.61412305735588, 37.48686929344436], [55.61834913630358, 37.48111863731642], [55.62340040051834, 37.47622628807327], [55.62786828167662, 37.47099061607619], [55.632044316744654, 37.46661325096388], [55.63592859929264, 37.46172090172073], [55.63665685921782, 37.458373504870146], [55.63626845561624, 37.45622773765824], [55.63578294567616, 37.45348115562697], [55.63811333828267, 37.455111938708036], [55.64068631839994, 37.455541092150426], [55.64660838237857, 37.44910379051468], [55.6556353723766, 37.43837495445512], [55.65903208541546, 37.43416925071975], [55.659905478070506, 37.431079345934585], [55.66063329033317, 37.42884774803421], [55.660875891400586, 37.426616150133825], [55.66330181902196, 37.429105240099624], [55.66655232529556, 37.427817779772475], [55.680279084622, 37.4175180971553], [55.688910399066174, 37.41305490135452], [55.69293445909798, 37.407990890734396], [55.698994005599275, 37.40052362083694], [55.70049662715336, 37.39691873192091], [55.702726216740054, 37.39503045677445], [55.705343398046864, 37.393142181627965], [55.70626421627299, 37.39176889061234], [55.70960805709442, 37.3874773561885], [55.71144946990421, 37.38567491173048], [55.71237014362427, 37.382413345568374], [55.712757789198164, 37.38078256248733], [55.714938223574464, 37.3838724672725], [55.718620457447926, 37.38224168419143], [55.72307743204297, 37.38009591697952], [55.72661358103612, 37.378207641833036], [55.72985880462025, 37.37657685875199], [55.72981037043872, 37.37219949363968], [55.72951976408239, 37.36653466820022], [55.73005254074289, 37.3611273348262], [55.731892985754094, 37.37134118675492], [55.734992485659596, 37.373057800524435], [55.74501573829052, 37.368680435412145], [55.751212398090566, 37.36773629783889], [55.76215096246012, 37.36799378990431], [55.76418345353268, 37.36550469993851], [55.76655455864643, 37.36610551475785], [55.76849004730127, 37.368251281969755], [55.77158662843581, 37.36567636131546], [55.77361862555876, 37.36893792747757], [55.77739205226982, 37.36893792747757], [55.7812134822765, 37.36885209678909], [55.78493780505847, 37.369023758166044], [55.787404367494126, 37.37031121849319], [55.78943553645033, 37.36885209678909], [55.791369884195, 37.36430307029983], [55.792530446538024, 37.374259430163114], [55.79562510967724, 37.377520996325224], [55.800314987
17574618, 37.381898361437536], [55.80442420841985, 37.38533158897659], [55.808484657453775, 37.387563186876974], [55.82303110743136, 37.39185472130082], [55.83076121703942, 37.39417214988967], [55.831727372273825, 37.39099641441603], [55.83192060042838, 37.388421493761754], [55.831775679402845, 37.38558908104201], [55.83414265491183, 37.38576074241899], [55.83568835674609, 37.38782067894242], [55.834625693362945, 37.392369705431676], [55.835640054497695, 37.39554544090529], [55.839648936077, 37.39468713402053], [55.84394715517475, 37.391940551989286], [55.84814832383642, 37.39133973716995], [55.85452164003844, 37.39460130333206], [55.85959057388015, 37.39674707054397], [55.86311429845631, 37.399665313952184], [55.866782492613076, 37.40378518699905], [55.86924384891148, 37.407733398668974], [55.8718980772097, 37.41219659446976], [55.873876565242476, 37.418204742663114], [55.875565438348396, 37.4226679384639], [55.87947369034666, 37.43477006553909], [55.88121056442022, 37.44077821373244], [55.884442872291174, 37.4417223513057], [55.88285087383534, 37.4453272402217], [55.88285087383534, 37.44970460533402], [55.882995603677216, 37.458287674181676], [55.883815729211854, 37.46661325096388], [55.885745367711415, 37.47339387535355], [55.888784352998634, 37.48257775902054], [55.889122003279596, 37.48549600242873], [55.889218474246576, 37.488500076525426], [55.89119607599798, 37.492619949572294], [55.89433109088146, 37.49450822471878], [55.894041715548205, 37.50043054222366], [55.90055213634929, 37.51373429893752], [55.90416856273664, 37.52214570640823], [55.9071096731802, 37.532445389025426], [55.90826676999187, 37.54059930443069], [55.91115936034281, 37.54471917747756], [55.90870067235796, 37.5464357912471], [55.91038802410236, 37.56274362205765], [55.91130398417253, 37.57338662742874], [55.91140039975807, 37.58248468040726], [55.91072548560348, 37.58737702965042], [55.91279839869436, 37.59055276512405], [55.90870067235796, 37.594071823351584], [55.90720609923871, 37.6005949556758], [55.90508467033431, 37.60797639488478], [55.90064857878059, 37.626687484972685], [55.89789987512875, 37.64428277611039], [55.89621197772044, 37.65990396141311], [55.89577793503864, 37.668057876818395], [55.897702887224796, 37.67240905761718]]],
176    polygon: null,
177    myMap: null,
178    initAddressAutocomplite: function (e, t) {
179        if (!ymaps) return !1;
180
181        function n(e, t) {
182            var n = "", o = e.name.toLowerCase();
183            if (t = t.toLowerCase(), o = 0 < (o = o.indexOf(t)) ? o : 0, e.typeShort && (n += '<span class="ac-s2">' + e.typeShort + ". </span>"), t.length < e.name.length ? (n += '<span class="ac-s2">' + e.name.substr(0, o) + "</span>", n += '<span class="ac-s">' + e.name.substr(o, t.length) + "</span>", n += '<span class="ac-s2">' + e.name.substr(o + t.length, e.name.length - t.length - o) + "</span>") : n += '<span class="ac-s">' + e.name + "</span>", e.parents) for (var a = e.parents.length - 1; -1 < a; a--) {
184                var r = e.parents[a];
185                r.name && (n && (n += '<span class="ac-st">, </span>'), n += '<span class="ac-st">' + r.name + " " + r.typeShort + ".</span>")
186            }
187            return n
188        }
189
190        function o(e, t, n) {
191            var o = "";
192            if (t && e.parents) for (var a = e.parents.length - 1; -1 < a; a--) {
193                var r = e.parents[a];
194                r.name && (o && (o += ", "), o += r.name + " " + r.typeShort + ". ")
195            }
196            return o && (o += ", "), n && e.typeShort && (o += e.typeShort + ". "), o += e.name
197        }
198
199        var a = "53c381f5fca916304948bb42", r = "cc384dcf8d64b6591a053293c57c11980e4d3aea",
200            i = e.find('[name="address_parts[city]"]'), p = e.find('[name="address_parts[street]"]');
201        i.kladr({
202            token: a,
203            key: r,
204            type: $.kladr.type.city,
205            parentType: $.kladr.type.region,
206            parentId: 5e12,
207            withParents: !0,
208            labelFormat: n,
209            verify: !0,
210            select: function (e) {
211                i.val(o(e)).data("geoShow", o(e)).data("geo", o(e, !0, !0)).change(), p.kladr("parentType", $.kladr.type.city), p.kladr("parentId", e.id)
212            },
213            check: function (e) {
214                var t;
215                e && (t = o(e, !0, !0), i.data("geo") != t && (i.val(o(e)).data("geoShow", o(e)).data("geo", t).change(), p.focus()), p.kladr("parentType", $.kladr.type.city), p.kladr("parentId", e.id))
216            }
217        }), p.kladr({
218            token: a, key: r, type: $.kladr.type.street, labelFormat: n, select: function (e) {
219                p.val(o(e)).data("geoShow", o(e)).data("geo", o(e)).change()
220            }
221        }), i.change(function () {
222            $(this).data("oldVal") != $(this).val() && ($(this).data("oldVal", $(this).val()), p.val("").data("geo", "").data("geoShow", "").change())
223        }), p.change(function () {
224            $(this).data("oldVal") != $(this).val() && ($(this).data("oldVal", $(this).val()), e.find('[name="address_parts[house]"]').val("").data("geo", "").data("geoShow", "").change())
225        })
226    },
227    distanceFromMkad: function (e, o) {
228        ymaps.geocode(e).then(function (e) {
229            var n, e = e.geoObjects.get(0);
230            e && e.geometry && "house" == e.properties.get("metaDataProperty").GeocoderMetaData.kind && (n = e.geometry.getCoordinates()) ? App.polygon.geometry.contains(n) ? o(0) : ymaps.route([[55.752277349454076, 37.62085099815628], n]).then(function (e) {
231                var t = ymaps.geoQuery(e.getPaths()), a = [];
232                t.each(function (e) {
233                    for (var t = e.geometry.getCoordinates(), n = 1, o = t.length; n < o; n++) a.push({
234                        type: "LineString",
235                        coordinates: [t[n], t[n - 1]]
236                    })
237                });
238                e = ymaps.geoQuery(a).setOptions("visible", !1).addToMap(App.myMap), t = e.searchInside(App.polygon), t = e.remove(t).get(0).geometry.getCoordinates()[1];
239                e.removeFromMap(App.myMap), ymaps.route([t, n]).then(function (e) {
240                    e = Math.round(e.getLength() / 1e3);
241                    o(e)
242                }, function (e) {
243                    o(-1)
244                })
245            }, function (e) {
246                o(-1)
247            }) : o(-1)
248        }, function (e) {
249            o(-1)
250        })
251    }
252}, $.postJSON = function (e, t, n, o) {
253    $.post(e, t, function (e) {
254        n = n || function () {
255        }, App.showMessages(e, o), n(e, o)
256    }, "json")
257}, $.ourGetJSON = function (e, t, n) {
258    $.get(e, t, function (e) {
259        n = n || function () {
260        }, App.showMessages(e), n(e)
261    }, "json")
262}, $.fn.reloadImg = function () {
263    var e = $(this).attr("src").toString();
264    -1 != (e = e.replace(/[?&]nocache=.*?(&|$)/g, "$1")).indexOf("?") ? e += "&" : e += "?", $(this).attr("src", e + "nocache=" + new Date)
265}, $.fn.postForm = function (e, t, n, o) {
266    if (formData = $(this).serializeArray(), (o = o || {}).container = $(this), t) for (idx in t) formData.push({
267        name: idx,
268        value: t[idx]
269    });
270    if (n) for (idx in n) formData.push(n[idx]);
271    $.postJSON($(this).attr("action"), formData, e, o)
272}, $.fn.htmlPostForm = function (e, t, n, o) {
273    return formData = $(this).serializeForm(n, o), $(e).load($(this).attr("action"), formData, function (e) {
274        (t = t || function () {
275        })(e)
276    }), !1
277}, $.fn.serializeForm = function (e, t) {
278    if (formData = $(this).serializeArray(), e) for (idx in e) formData.push({name: idx, value: e[idx]});
279    if (t) for (idx in t) formData.push(t[idx]);
280    return formData
281}, $.fn.serializeHash = function () {
282    for (var e = this.serializeArray(), t = {}, n = 0; n < e.length; n++) t[e[n].name] = e[n].value;
283    return t
284}, $.fn.applyParams = function (e) {
285    var t = jQuery.queryString(), n = this.serializeHash();
286    for (o in n) "" == n[o] ? delete t[o] : t[o] = n[o];
287    if (void 0 === e || "" == e) location.search = "?" + jQuery.queryString(t); else {
288        var o, a = "";
289        for (o in t) a += o + "/" + encodeURI(t[o]) + "/";
290        location.href = "/" + function (e, t) {
291            t = t ? t.replace(/([\[\]\(\)\.\?\/\*\{\}\+\$\^\:])/g, "$1") : " s ";
292            t = new RegExp("^[" + t + "]+|[" + t + "]+$", "g");
293            return e.replace(t, "")
294        }(e, "/") + "/" + a
295    }
296}, $.fn.totalHeight = function () {
297    var e = $(this), t = e.height();
298    return t += (parseInt(e.css("padding-top"), 10) || 0) + (parseInt(e.css("padding-bottom"), 10) || 0), t += (parseInt(e.css("margin-top"), 10) || 0) + (parseInt(e.css("margin-bottom"), 10) || 0), t += (parseInt(e.css("borderTopHeight"), 10) || 0) + (parseInt(e.css("borderBottomHeight"), 10) || 0)
299}, $.fn.totalWidth = function () {
300    var e = $(this), t = e.width();
301    return t += (parseInt(e.css("padding-left"), 10) || 0) + (parseInt(e.css("padding-right"), 10) || 0), t += (parseInt(e.css("margin-left"), 10) || 0) + (parseInt(e.css("margin-right"), 10) || 0), t += (parseInt(e.css("borderLeftWidth"), 10) || 0) + (parseInt(e.css("borderRightWidth"), 10) || 0)
302}, $.fn.placeholder = function () {
303    $(this).find("[placeholder]").each(function () {
304        var t = $(this), e = t.data(), n = t.attr("placeholder"), o = $('<div class="placeholder">' + n + "</div>");
305        if (t.attr("placeholder", null).before(o), o.data("placeholderText", n), t.val() && o.hide(), e.placeholderClass) for (var a = e.placeholderClass.split(","), r = 0; r < a.length; r++) o.addClass(a[r]);
306        t.prev(".placeholder").click(function (e) {
307            t.focus(), t.trigger(e)
308        }), t.focus(function () {
309            $(this).prevAll(".placeholder").hide()
310        }).blur(function () {
311            var e;
312            $(this).val() ? $(this).prevAll(".placeholder").hide() : ("" == (e = $(this).prevAll(".placeholder")).html() && e.html(e.data("placeholderText")), e.show())
313        }), t.change(function () {
314            $(this).val() || $(this).prevAll(".placeholder").show()
315        })
316    })
317}, $(function () {
318    App.init()
319}), Number.prototype.formatMoney = function (e, t, n) {
320    var o, e = isNaN(e = Math.abs(e)) ? 2 : e, t = null == t ? "," : t, n = null == n ? " " : n,
321        a = this < 0 ? "-" : "", r = parseInt(o = Math.abs(+this || 0).toFixed(e)) + "",
322        i = 3 < (i = r.length) ? i % 3 : 0;
323    return a + (i ? r.substr(0, i) + n : "") + r.substr(i).replace(/(\d{3})(?=\d)/g, "$1" + n) + (e ? t + Math.abs(o - r).toFixed(e).slice(2) : "")
324};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.