(function(n){"use strict";var i=window.MozBlobBuilder||window.WebKitBlobBuilder||window.BlobBuilder,r=/^image\/(jpeg|png)$/,t=function(n,u,f){if(f=f||{},n.toBlob)return n.toBlob(u,f.type),!0;if(n.mozGetAsFile){var e=f.name;return u(n.mozGetAsFile(r.test(f.type)&&e||(e&&e.replace(/\..+$/,"")||"blob")+".png",f.type)),!0}return n.toDataURL&&i&&window.atob&&window.ArrayBuffer&&window.Uint8Array?(u(t.dataURItoBlob(n.toDataURL(f.type))),!0):!1};t.dataURItoBlob=function(n){var r,u,e,t,f,o;for(r=n.split(",")[0].indexOf("base64")>=0?atob(n.split(",")[1]):decodeURIComponent(n.split(",")[1]),u=new ArrayBuffer(r.length),e=new Uint8Array(u),t=0;t<\/form>'),r.attr("accept-charset",i.formAcceptCharset),f=/\?/.test(i.url)?"&":"?",i.type==="DELETE"?(i.url=i.url+f+"_method=DELETE",i.type="POST"):i.type==="PUT"?(i.url=i.url+f+"_method=PUT",i.type="POST"):i.type==="PATCH"&&(i.url=i.url+f+"_method=PATCH",i.type="POST"),t+=1,u=n('