1var cnjQuery=jQuery.noConflict(),CN_ANSWER_UNDER_BLOCK=!0;function visibleButton(n,e){e&&(n.removeClass(e+"_disabled"),n.addClass(e))}function hiddenButton(n,e){e&&(n.removeClass(e),n.addClass(e+"_disabled"))}function visibleAuthorize(){cnjQuery(".cn_authorize_box").slideDown(400)}function resizeTextInput(){var n=cnjQuery(".cn_enter_text_input");""!==n.html()&&n.length>0&&(n[0].style.height="auto",n[0].style.height=n[0].scrollHeight+"px",visibleButton(cnjQuery(".cn_enter_text_submit_disabled"),"cn_enter_text_submit"))}function cnMoreText(n){var e=function(n){n.scrollHeight>204&&0===cnjQuery(n).next(".cn_more_text").length&&0===cnjQuery(n).next(".cn_more_text_close").length&&(cnjQuery(n).after('<div class="cn_more_text"></div>'),cnjQuery(n).append('<div class="cn_more_text_details"></div>'))};n.each((function(n,t){e(t),cnjQuery(t).find("img").length>0&&cnjQuery(t).find("img").on("load",(function(){e(t)}))}))}function cnMoreTextPanel(n){var e=function(n){n.scrollHeight>126&&0===cnjQuery(n).next(".cn_more_text").length&&0===cnjQuery(n).next(".cn_more_text_close").length&&(cnjQuery(n).after('<div class="cn_more_text"></div>'),cnjQuery(n).append('<div class="cn_more_text_details"></div>'))};n.each((function(n,t){e(t),cnjQuery(t).find("img").length>0&&cnjQuery(t).find("img").on("load",(function(){e(t)}))}))}function sortAnswer(){function n(n,e){return n.time-e.time}cnjQuery(".cn_last_answer").each((function(){var e=function(e){var t=[],i=[];e.children(".cn_comment_box").each((function(n,e){t[n]={value:e,time:cnjQuery(this).find(".cn_date").data("timeSecond")}})),t.sort(n);for(var c=0;c<t.length;c++)i[c]=t[c].value;return i}(cnjQuery(this));cnjQuery(this).empty().append(e)}))}function noticeModal(n,e){var t=cnjQuery(".cn_block_notice_modal");t.animate({left:"0"},200),t.children(".cn_notice_modal").html('<div class="cn_notice_modal_'+n+'">'+e+"</div>"),t.delay(2500).animate({left:"-280px"},200,(function(){t.stop(!0,!0)}))}function resizeBox(n){cnjQuery(window).on("resize",(function(){var e=n.find("textarea"),t=cnjQuery(this).height();e[0].scrollHeight>=Math.round(t/100*60-(0|e.next().height()))?e.height(t/100*60-(0|e.next().height())):e.height(e[0].scrollHeight)}))}!function(n){n(document).ready((function(){var e=n("body"),t=n(".commenton_box");resizeTextInput(),e.on("click",".cn_authorize_box_show",(function(){visibleAuthorize()})),e.on("click",".cn_answer_deploy",(function(){n(this).removeClass("cn_answer_deploy"),n(this).addClass("cn_answer_mini"),n(this).parent().removeClass("cn_answer_input_box_alternative"),n(this).parent().wrap('<div class="cn_screen_answer" style="display: block"></div>'),n(this).parent().find(".cn_enter_answer_input").focus()})),e.on("click",".cn_answer_mini",(function(){n(this).removeClass("cn_answer_mini"),n(this).addClass("cn_answer_deploy"),n(this).parent().addClass("cn_answer_input_box_alternative"),n(this).parent().unwrap(),n(this).parent().find(".cn_enter_answer_input").focus()})),e.on("click",".cn_answer_button, .cn_complain",(function(){var e;if(!0===n(this).hasClass("cn_answer_button"))if(CN_ANSWER_UNDER_BLOCK){if(n(this).parents(".cn_comment_box").find(".cn_answer_input_box").length>0)return!1;var i=n(".cn_screen_answer").find(".cn_answer_input_box").clone();n(this).parents(".cn_comment_box").append(i),i.prepend('<div class="cn_answer_deploy"></div>'),(e=n(this).parents(".cn_comment_box").find(".cn_answer_input_box")).addClass("cn_answer_input_box_alternative")}else e=n(".cn_answer_input_box"),n(".cn_screen_answer").show();!0===n(this).hasClass("cn_complain")&&(e=n(".cn_complain_box"),n(".cn_screen_complain").show());var c=n(this).parents(".cn_comment_box").attr("id"),a=n(this).parents(".cn_comment_box").data("cnCommentType"),o=n(this).parents(".cn_main_comment_block").data("cnMainCommentId")||n(this).parents(".cn_comment_box").data("cnMainCommentId"),_=n(this).parents(".cn_comment_box").find(".cn_uri").data("cnPageUri")||t.data("documentUrl"),s=n(this).parents(".cn_comment_box").data("cnBindId")||t.data("documentId"),r=n(this).parents(".cn_comment_box").find(".cn_uri").text()||n("head").find("title").text();e.data("cnParentId",c),e.data("cnCommentType",a),e.data("cnMainCommentId",o),e.data("cnPageUri",_),e.data("cnPageBindId",s),e.data("cnPageTitle",r),e.find(".cn_complain_input, .cn_enter_answer_input").focus(),resizeBox(e)}
1)),e.on("click",".cn_answer_close, .cn_complain_close, .cn_update_close",(function(){var e;if(!0===n(this).hasClass("cn_answer_close")){if(CN_ANSWER_UNDER_BLOCK)return e=n(this).parents(".cn_comment_box").find(".cn_answer_input_box"),!1;e=n(".cn_answer_input_box"),n(".cn_screen_answer").hide()}!0===n(this).hasClass("cn_complain_close")&&(e=n(".cn_complain_box"),n(".cn_screen_complain").hide()),!0===n(this).hasClass("cn_update_close")&&(e=n(".cn_update_box"),n(".cn_screen_update").hide(),e.data("cnCommentId",""),e.find("textarea").val(""),e.find("textarea").removeAttr("style"),e.find(".cn_attach_panel_update").empty(),e.find(".cn_attach_panel_update").removeAttr("style")),e.data("cnParentId",""),e.data("cnCommentType",""),e.data("cnMainCommentId",""),e.data("cnPageUri",""),e.data("cnPageBindId",""),e.data("cnPageTitle","")})),e.on("click",".cn_delete_button",(function(){var e=n(".cn_delete_confirm_block");n(".cn_screen_delete_confirm").show();var i=n(this).parents(".cn_comment_box").attr("id"),c=n(this).parents(".cn_comment_box").data("cnCommentType"),a=n(this).parents(".cn_main_comment_block").data("cnMainCommentId")||n(this).parents(".cn_comment_box").data("cnMainCommentId"),o=n(this).parents(".cn_comment_box").data("cnBindId")||t.data("documentId");e.data("cnCommentId",i),e.data("cnCommentType",c),e.data("cnMainCommentId",a),e.data("cnPageBindId",o)})),e.on("click",".cn_delete_confirm_cancel",(function(){var e=n(".cn_delete_confirm_block");n(".cn_screen_delete_confirm").hide(),e.data("cnCommentId",""),e.data("cnCommentType",""),e.data("cnMainCommentId",""),e.data("cnPageBindId","")})),e.on("click",".cn_social_button",(function(e){e.preventDefault();var t=(screen.width-800)/2,i=(screen.height-600)/2,c=n(this).data("cnLink");window.open(c,"authorize","width=840, height=620, top="+i+", left="+t)})),e.on("click",".cn_show_answer_button",(function(){n(this).next().next(".cn_answer_hidden").css({visibility:"visible",height:"auto",overflow:"visible"}),n(this).hide(),n(this).next().show()})),e.on("click",".cn_hide_answer_button",(function(){n(this).next(".cn_answer_hidden").removeAttr("style"),n(this).hide(),n(this).prev().show()})),e.on("click",".cn_options_button",(function(){var e=n(this).parent(),t=n(this).next(".cn_options_box");!1===t.is(":visible")?(n(this).addClass("cn_options_button_hover"),t.show(),e.css({display:"block"})):(n(this).removeClass("cn_options_button_hover"),t.hide(),e.removeAttr("style"))})),e.on("input",".cn_complain_input",(function(){var e=n(".cn_length_string"),t=n(this).val();e.text(t.length+"/150"),t.length>150?e.css({color:"red"}):e.removeAttr("style")})),e.on("click",".cn_share_box span",(function(e){e.preventDefault();var t=(screen.width-800)/2,i=(screen.height-400)/2,c=n(this).data("cnSh");window.open(c,"share","width=840, height=420, top="+i+", left="+t)})),e.on("click",".cn_image_attach_link",(function(){n(".cn_screen_attach_image").show();var e=n(this).parents(".cn_attach_block").data("typeComment"),t=n(this).parents(".cn_comment_box").find(".cn_answer_input_box").data("cnParentId");n(".cn_attach_link_block").data("typeComment",e).data("cnParentId",t),n("#cn_image_attach_link").trigger("focus")})),e.on("click",".cn_attach_link_block_close",(function(){n(".cn_screen_attach_image, .cn_screen_attach_video").hide(),n(".cn_attach_link_block, .cn_attach_video_link_block").removeData("typeComment").removeData("cnParentId")})),e.on("click",".cn_video_attach",(function(){n(".cn_screen_attach_video").show();var e=n(this).parents(".cn_attach_block").data("typeComment"),t=n(this).parents(".cn_comment_box").find(".cn_answer_input_box").data("cnParentId");n(".cn_attach_video_link_block").data("typeComment",e).data("cnParentId",t),n("#cn_video_attach_link").trigger("focus")})),e.on("click",".cn_image_attach_upload",(function(){n(this).next().children(".cn_
1image_attach_upload_hidden").click()})),e.on("click",".cn_image_preview",(function(){var e=n(this).data("imageBig"),t=n(this).data("imageBigSize"),i=n(".cn_image_view"),c=window.innerWidth,a=window.innerHeight;n(".cn_screen_image_view").show();var o=function(n,e,t,i,c){if(i[0]>=e/100*c||i[1]>=t/100*c){var a=i[0]/i[1],o=t/100*c*a,_=e/100*c/a;o/a>_?o=_*a:_=o/a,n.css({width:o+"px",height:_+"px",margin:t/2-_/2+"px "+(e/2-o/2)+"px"})}else n.css({width:i[0]+"px",height:i[1]+"px",margin:t/2-i[1]/2+"px "+(e/2-i[0]/2)+"px"})};void 0!==t&&(t=t.split("x"),o(i,c,a,t,80)),i.css({background:"url("+e+") center / contain no-repeat"}),n(window).resize((function(){var n=window.innerWidth,e=window.innerHeight;void 0!==t&&o(i,n,e,t,80)}))})),e.on("click",".cn_screen_image_view",(function(e){n(e.target).hasClass("cn_screen_image_view")&&(n(".cn_image_view").removeAttr("style"),n(".cn_screen_image_view").hide())})),e.on("click",".cn_video_preview",(function(){var e,t=n(this).children("img").data("cnVideoType"),i=n(this).children("img").data("cnVideoCode");"vimeo"===t?e="//player.vimeo.com/video/"+i:"youtube"===t?e="//www.youtube.com/embed/"+i:"rutube"===t&&(e="//rutube.ru/play/embed/"+i);var c=n(".cn_video_view"),a=window.innerWidth,o=window.innerHeight;n(".cn_screen_video_view").show();var _=function(n,e,t){n.css({width:e/100*70+"px",height:t/100*70+"px",margin:t/100*30/2+"px "+e/100*30/2+"px"})};_(c,a,o),c.append('<iframe width="'+a/100*70+'px" height="'+o/100*70+'px" src="'+e+'" frameborder="0" allowfullscreen></iframe>'),n(window).resize((function(){var n=window.innerWidth,e=window.innerHeight;_(c,n,e),c.children("iframe").attr({width:n/100*70+"px",height:e/100*70+"px"})}))})),e.on("click",".cn_screen_video_view",(function(e){n(e.target).hasClass("cn_screen_video_view")&&(n(".cn_video_view").children("iframe").remove(),n(".cn_screen_video_view").hide())})),e.on("click",".cn_emoji_view",(function(){var e,t=n(this).parents(".cn_attach_block");"main"===t.data("typeComment")&&(e=n(".cn_enter_text_input")),"answer"===t.data("typeComment")&&(e=CN_ANSWER_UNDER_BLOCK?n(this).parents(".cn_comment_box").find(".cn_enter_answer_input"):n(".cn_enter_answer_input")),"update"===t.data("typeComment")&&(e=n(".cn_update_input"));var i,c,a,o,_=n(this).attr("alt");i=_,c=e[0],a=c.selectionStart,o=c.selectionEnd,c.value=c.value.substring(0,a)+i+c.value.substring(o),c.focus(),c.selectionEnd=a+i.length})),e.on("click",".cn_bbcode_select",(function(){var e,t=n(this).parents(".cn_attach_block");"main"===t.data("typeComment")&&(e=n(".cn_enter_text_input")),"answer"===t.data("typeComment")&&(e=CN_ANSWER_UNDER_BLOCK?n(this).parents(".cn_comment_box").find(".cn_enter_answer_input"):n(".cn_enter_answer_input")),"update"===t.data("typeComment")&&(e=n(".cn_update_input")),function(n,e,t){var i=n[0],c=i.selectionStart,a=i.selectionEnd;i.value=i.value.substring(0,c)+e+i.value.substring(c,a)+t+i.value.substring(a),i.focus(),i.selectionStart=c+e.length,i.selectionEnd=c+e.length+i.value.substring(c,a).length,n.trigger("input")}(e,n(this).data("code1"),n(this).data("code2"))})),e.on("input",".cn_enter_text_input",(function(){this.style.height="auto",this.style.height=this.scrollHeight+"px"})),e.on("input",".cn_enter_answer_input, .cn_complain_input, .cn_update_input",(function(){this.scrollHeight<=Math.round(window.innerHeight/100*60-(0|n(this).next().height()))?(this.style.height="auto",this.style.height=this.scrollHeight+"px"):(this.style.overflow="auto",this.style.height=Math.round(window.innerHeight/100*60-(0|n(this).next().height()))+"px")})),e.on("focus",".cn_enter_text_input",(function(){var e,t,i=n(".cn_enter_text_submit"),c=n(".cn_enter_text_submit_disabled");i.length>0&&(e=i,t=void 0),c.length>0&&(e=c,t="cn_enter_text_submit"),visibleAuthorize(),visibleButton(e,t)})),e.on("focus",".cn_enter_answer_input",(function(){var e,t,i,c;CN_ANSWER_UNDER_BLOCK?(e=n(this).parents(".cn_comment_box").find(".cn_enter_answer_submit"),t=n(this).parents(".cn_comment_box").find(".cn_enter_answer_submit_disabled")):(e=n(".cn_enter_answer_submit"),t=n(".cn_enter_answer_submit_disabled")),e.length>0&&(i=e,c=void 0),t.length>0&&(i=t,c="cn_enter_answer_submit"),visibleButton(i,c)}
1)),e.on("focus",".cn_complain_input",(function(){var e,t,i=n(".cn_complain_submit"),c=n(".cn_complain_submit_disabled");i.length>0&&(e=i,t=void 0),c.length>0&&(e=c,t="cn_complain_submit"),visibleButton(e,t)})),e.on("focus",".cn_update_input",(function(){var e,t,i=n(".cn_update_submit"),c=n(".cn_update_submit_disabled");i.length>0&&(e=i,t=void 0),c.length>0&&(e=c,t="cn_update_submit"),visibleButton(e,t)})),e.on("click",".cn_more_text",(function(){var e=this.previousSibling.scrollHeight;n(this).prev().animate({"max-height":e+"px"},200),n(this).removeClass("cn_more_text"),n(this).addClass("cn_more_text_close"),n(this).prev().children(".cn_more_text_details").animate({height:"0"},400)})),e.on("click",".cn_more_text_close",(function(){var e=204;"cn_content_comment"===this.previousSibling.className&&(e=126),n(this).prev().animate({"max-height":e+"px"},200),n(this).removeClass("cn_more_text_close"),n(this).addClass("cn_more_text"),n(this).prev().children(".cn_more_text_details").animate({height:"100px"},400)})),e.on("click",".cn_more_text_details",(function(){var e=this.parentNode.scrollHeight;void 0!==e&&null!=e&&(n(this).parent().next().removeClass("cn_more_text"),n(this).parent().next().addClass("cn_more_text_close"),n(this).parent().animate({"max-height":e+"px"},200),n(this).animate({height:"0"},400))})),e.on("click",".cn_name_quote",(function(){var e=n(this).data("parentId"),t=n("#"+e),i=t.offset().top-200;t.addClass("cn_animate"),t.css({"border-left-color":"#ffc004"}),n("html,body").stop(!0,!0).animate({scrollTop:i},1e3),setTimeout((function(){n("#"+e).removeAttr("style")}),2e3)})),e.on("mouseenter",".cn_emoji_block",(function(){var e=n(this).children(".cn_emoji_box"),t=n(window).scrollTop(),i=n(window).height(),c=e.prop("scrollHeight"),a=e.offset().top;(a-=t)>i-c&&e.css({bottom:"0"}),a<=0&&e.removeAttr("style")})),e.on("click",".cn_attach_item_edit",(function(){var e=n(this);e.removeClass("cn_attach_item_edit"),e.addClass("cn_attach_item_remove")})),e.on("click",".cn_authorize",(function(){n(".cn_screen_authorize").show()})),e.on("click",".cn_authorize_block_close",(function(){n(".cn_screen_authorize").hide()})),e.on("click",".cn_reply_box",(function(i){var c=n(this);if(0===c.parents(".cn_comment_box").prev(".cn_popup_reply_box").length){if(void 0!==t.find(".cn_popup_reply")[0])10!==i.target.compareDocumentPosition(t.find(".cn_popup_reply")[0])&&t.find(".cn_popup_reply_box").remove();var a=c.data("parentId"),o=t.find("#"+a).clone();o.find(".cn_string_3").remove(),o.find(".cn_options").remove(),o.removeAttr("id"),c.parents(".cn_comment_box").before('<div class="cn_popup_reply_box"></div>'),c.parents(".cn_comment_box").prev(".cn_popup_reply_box").html('<div class="cn_popup_reply"></div>'),c.parents(".cn_comment_box").prev(".cn_popup_reply_box").find(".cn_popup_reply").html(o),c.parents(".cn_comment_box").prev(".cn_popup_reply_box").find(".cn_more_text_close").click(),e.on("click",(function(e){if(void 0!==t.find(".cn_popup_reply")[0]){var i=e.target.compareDocumentPosition(t.find(".cn_popup_reply")[0]),c=n(e.target).hasClass("cn_reply_box"),a=n(e.target).hasClass("cn_reply_name"),o=n(e.target).hasClass("cn_screen_image_view"),_=n(e.target).hasClass("cn_image_view");0===i||10===i||c||a||o||_||t.find(".cn_popup_reply_box").remove()}}))}}))}))}(cnjQuery);
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.