!function(t){t.fn.printPreview=function(e){var i=this,n=t.extend({obj2print:"body",style:"",width:"670",height:screen.height-105,top:0,left:"center",resizable:"yes",scrollbars:"yes",status:"no",title:"Print Preview"},e);return"center"==n.left&&(n.left=screen.width/2-n.width/2),t(n.obj2print+" input").each((function(){t(this).attr("value",t(this).val())})),t(n.obj2print+" textarea").each((function(){t(this).html(t(this).val())})),i.bind("click.printPreview",(function(){var e=i[0].outerHTML,r="<!DOCTYPE html><html><head>"+t("head").html()+n.style+"</head><body>";r+=t(n.obj2print)[0].outerHTML.replace(e,"")+"</body></html>";var l="newWindow"+(new Date).getMilliseconds(),s=window.open("",l,"width="+n.width+",top="+n.top+",height="+n.height+",left="+n.left+",resizable="+n.resizable+",scrollbars="+n.scrollbars+",status="+n.status);s.document.write(r),s.document.title=n.title,setTimeout((()=>{s.print()}),200)}))}}(jQuery);