!function(t){t.fn.bootstrapFileInput=function(){this.each(function(e,i){var n=t(i);if("undefined"==typeof n.attr("data-bfi-disabled")){var p="Browse";"undefined"!=typeof n.attr("title")&&(p=n.attr("title"));var a="";n.attr("class")&&(a=" "+n.attr("class")),n.wrap('<a class="file-input-wrapper btn btn-sm btn-info '+a+'"></a>').parent().prepend(t("<span></span>").html(p))}}).promise().done(function(){t(".file-input-wrapper").mousemove(function(e){var i,n,p,a,r,l,s,o;n=t(this),i=n.find("input"),p=n.offset().left,a=n.offset().top,r=i.width(),l=i.height(),s=e.pageX,o=e.pageY,moveInputX=s-p-r+20,moveInputY=o-a-l/2,i.css({left:moveInputX,top:moveInputY})}),t("body").on("change",".file-input-wrapper input[type=file]",function(){var e;if(e=t(this).val(),t(this).parent().next(".file-input-name").remove(),e=t(this).prop("files")&&t(this).prop("files").length>1?t(this)[0].files.length+" files":e.substring(e.lastIndexOf("\\")+1,e.length)){var i=t(this).data("filename-placement");"inside"===i?(t(this).siblings("span").html(e),t(this).attr("title",e)):t(this).parent().after('<span class="file-input-name">'+e+"</span>")}})})};var e="<style>.file-input-wrapper { overflow: hidden; position: relative; cursor: pointer; z-index: 1; text-align: center; }.file-input-wrapper span { color: #FFF !important; font-size: 13px; font-weight: bold; text-align: center; }.file-input-wrapper input[type=file], .file-input-wrapper input[type=file]:focus, .file-input-wrapper input[type=file]:hover { position: absolute; top: 0; left: 0; cursor: pointer; opacity: 0; filter: alpha(opacity=0); z-index: 99; outline: 0; }.file-input-name { margin-left: 8px; }</style>";t("link[rel=stylesheet]").eq(0).before(e)}(jQuery);