(function(e){"use strict";function n(e){e.stopPropagation();e.preventDefault()}function r(t){if(e.isFunction(t)){var n={};n.onFileRead=t;t=n}var r=e.extend({},e.fn.fileDrop.defaults,t);r.decodeBase64&&(r.removeDataUriScheme=!0);r.addClassTo=e(r.addClassTo);if(!e.isFunction(r.onFileRead))throw'The option "onFileRead" is not set to a function!';return r}function s(t,n){var r=e(t);t.addEventListener("dragenter",function(e){i.over(e,r,n)},!1);t.addEventListener("dragover",function(e){i.exit(e,r,n)},!1);t.addEventListener("drop",function(e){i.drop(e,r,n)},!1)}function o(t,n,r,i){return function(s){var o=s.target.result;i.removeDataUriScheme&&(o=e.removeUriScheme(o));i.decodeBase64&&(o=u(o));n.push({name:t.name,size:t.size,type:t.type,lastModified:t.lastModifiedDate,data:o});n.length===r&&e.isFunction(i.onFileRead)&&i.onFileRead(n,i)}}function u(e){var t=window.atob(e);try{return decodeURIComponent(window.escape(t))}catch(n){return""}}var t=null,i={over:function(t,r,i){e(i.addClassTo).addClass(i.overClass);n(t)},exit:function(r,i,s){clearTimeout(t);t=setTimeout(function(){e(s.addClassTo).removeClass(s.overClass)},100);n(r)},drop:function(t,r,i){e(i.addClassTo).removeClass(i.overClass);n(t);var s=t.dataTransfer.files,u=[];for(var a=0;a<=s.length;a++){var f=new window.FileReader,l=o(s[a],u,s.length,i);f.addEventListener?f.addEventListener("loadend",l,!1):f.onloadend=l;f.readAsDataURL(s[a])}}};e.fn.fileDrop=function(t){var n=r(t);return this.each(function(){var t=n;t.addClassTo.length===0&&(t.addClassTo=e(this));s(this,t)})};e.fn.fileDrop.defaults={overClass:"state-over",addClassTo:null,onFileRead:null,removeDataUriScheme:!0,decodeBase64:!1};e.removeUriScheme=function(e){return e.replace(/^data:.*;base64,/,"")};e.support.fileDrop=function(){return!!window.FileList}()})(jQuery);(function(e){function t(e){var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",n,r,i,s,o,u,a,f,l=0,c=0,h="",p=[];if(!e)return e;e+="";do{s=t.indexOf(e.charAt(l++));o=t.indexOf(e.charAt(l++));u=t.indexOf(e.charAt(l++));a=t.indexOf(e.charAt(l++));f=s<<18|o<<12|u<<6|a;n=f>>16&255;r=f>>8&255;i=f&255;u==64?p[c++]=String.fromCharCode(n):a==64?p[c++]=String.fromCharCode(n,r):p[c++]=String.fromCharCode(n,r,i)}while(l