/**handles:um_jquery_form**/
!function(e){"use strict";"function"==typeof define&amp;&amp;define.amd?define(["jquery"],e):e("undefined"!=typeof jQuery?jQuery:window.Zepto)}(function(L){"use strict";var h={},t=(h.fileapi=void 0!==L("").get(0).files,h.formdata=void 0!==window.FormData,!!L.fn.prop);function a(e){var t=e.data;e.isDefaultPrevented()||(e.preventDefault(),L(e.target).ajaxSubmit(t))}function r(e){var t=e.target,a=L(t);if(!a.is("[type=submit],[type=image]")){var r=a.closest("[type=submit]");if(0===r.length)return;t=r[0]}var n=this;"image"==(n.clk=t).type&amp;&amp;(void 0!==e.offsetX?(n.clk_x=e.offsetX,n.clk_y=e.offsetY):"function"==typeof L.fn.offset?(r=a.offset(),n.clk_x=e.pageX-r.left,n.clk_y=e.pageY-r.top):(n.clk_x=e.pageX-t.offsetLeft,n.clk_y=e.pageY-t.offsetTop)),setTimeout(function(){n.clk=n.clk_x=n.clk_y=null},100)}function M(){var e;L.fn.ajaxSubmit.debug&amp;&amp;(e="[jquery.form] "+Array.prototype.join.call(arguments,""),window.console&amp;&amp;window.console.log?window.console.log(e):window.opera&amp;&amp;window.opera.postError&amp;&amp;window.opera.postError(e))}L.fn.attr2=function(){var e;return t&amp;&amp;((e=this.prop.apply(this,arguments))&amp;&amp;e.jquery||"string"==typeof e)?e:this.attr.apply(this,arguments)},L.fn.ajaxSubmit=function(c){if(this.length){var A,E=this,e=("function"==typeof c?c={success:c}:void 0===c&amp;&amp;(c={}),A=c.type||this.attr2("method"),e=(e=(e="string"==typeof(e=c.url||this.attr2("action"))?L.trim(e):"")||window.location.href||"")&amp;&amp;(e.match(/^([^#]+)/)||[])[1],c=L.extend(!0,{url:e,success:L.ajaxSettings.success,type:A||L.ajaxSettings.type,iframeSrc:/^https/i.test(window.location.href||"")?"javascript:false":"about:blank"},c),{});if(this.trigger("form-pre-serialize",[this,c,e]),e.veto)M("ajaxSubmit: submit vetoed via form-pre-serialize trigger");else if(c.beforeSerialize&amp;&amp;!1===c.beforeSerialize(this,c))M("ajaxSubmit: submit aborted via beforeSerialize callback");else{var t=c.traditional,n=(void 0===t&amp;&amp;(t=L.ajaxSettings.traditional),[]),a=this.formToArray(c.semantic,n);if(c.data&amp;&amp;(c.extraData=c.data,u=L.param(c.data,t)),c.beforeSubmit&amp;&amp;!1===c.beforeSubmit(a,this,c))M("ajaxSubmit: submit aborted via beforeSubmit callback");else if(this.trigger("form-submit-validate",[a,this,c,e]),e.veto)M("ajaxSubmit: submit vetoed via form-submit-validate trigger");else{var r,o,i,e=L.param(a,t),s=(u&amp;&amp;(e=e?e+"&amp;"+u:u),"GET"==c.type.toUpperCase()?(c.url+=(0&lt;=c.url.indexOf(&quot;?&quot;)?&quot;&amp;&quot;:&quot;?&quot;)+e,c.data=null):c.data=e,[]);c.resetForm&amp;&amp;s.push(function(){E.resetForm()}),c.clearForm&amp;&amp;s.push(function(){E.clearForm(c.includeHidden)}),!c.dataType&amp;&amp;c.target?(r=c.success||function(){},s.push(function(e){var t=c.replaceTarget?&quot;replaceWith&quot;:&quot;html&quot;;L(c.target)[t](e).each(r,arguments)})):c.success&amp;&amp;s.push(c.success),c.success=function(e,t,a){for(var r=c.context||this,n=0,o=s.length;n&lt;o;n++)s[n].apply(r,[e,t,a||E,E])},c.error&amp;&amp;(o=c.error,c.error=function(e,t,a){var r=c.context||this;o.apply(r,[e,t,a,E])}),c.complete&amp;&amp;(i=c.complete,c.complete=function(e,t){var a=c.context||this;i.apply(a,[e,t,E])});var l,t=0&lt;L(&quot;input[type=file]:enabled&quot;,this).filter(function(){return&quot;&quot;!==L(this).val()}).length,u=&quot;multipart/form-data&quot;,e=E.attr(&quot;enctype&quot;)==u||E.attr(&quot;encoding&quot;)==u,u=h.fileapi&amp;&amp;h.formdata;M(&quot;fileAPI :&quot;+u),!1!==c.iframe&amp;&amp;(c.iframe||(t||e)&amp;&amp;!u)?c.closeKeepAlive?L.get(c.closeKeepAlive,function(){l=m(a)}):l=m(a):l=(t||e)&amp;&amp;u?function(e){for(var a=new FormData,t=0;t&lt;e.length;t++)a.append(e[t].name,e[t].value);if(c.extraData){var r=function(e){var t,a,r=L.param(e,c.traditional).split(&quot;&amp;&quot;),n=r.length,o=[];for(t=0;t&lt;n;t++)r[t]=r[t].replace(/\+/g,&quot; &quot;),a=r[t].split(&quot;=&quot;),o.push([decodeURIComponent(a[0]),decodeURIComponent(a[1])]);return o}(c.extraData);for(t=0;t&lt;r.length;t++)r[t]&amp;&amp;a.append(r[t][0],r[t][1])}c.data=null;var n=L.extend(!0,{},L.ajaxSettings,c,{contentType:!1,processData:!1,cache:!1,type:A||&quot;POST&quot;});c.uploadProgress&amp;&amp;(n.xhr=function(){var e=L.ajaxSettings.xhr();return e.upload&amp;&amp;e.upload.addEventListener(&quot;progress&quot;,function(e){var t=0,a=e.loaded||e.position,r=e.total;e.lengthComputable&amp;&amp;(t=Math.ceil(a/r*100)),c.uploadProgress(e,a,r,t)},!1),e});n.data=null;var o=n.beforeSend;return n.beforeSend=function(e,t){c.formData?t.data=c.formData:t.data=a,o&amp;&amp;o.call(this,e,t)},L.ajax(n)}(a):L.ajax(c),E.removeData(&quot;jqxhr&quot;).data(&quot;jqxhr&quot;,l);for(var f=0;f&lt;n.length;f++)n[f]=null;this.trigger(&quot;form-submit-notify&quot;,[this,c])}}}else M(&quot;ajaxSubmit: skipping submit process - no element selected&quot;);return this;function m(e){var t,l,u,o,f,m,p,d,h,g,v,a,x,b,y,T,j,i,w,s=E[0],S=L.Deferred();if(S.abort=function(e){p.abort(e)},e)for(t=0;t&lt;n.length;t++)L(n[t]).prop(&quot;disabled&quot;,!1);return(l=L.extend(!0,{},L.ajaxSettings,c)).context=l.context||l,o=&quot;jqFormIO&quot;+(new Date).getTime(),l.iframeTarget?(a=(f=L(l.iframeTarget)).attr2(&quot;name&quot;))?o=a:f.attr2(&quot;name&quot;,o):(f=L(&#039;')).css({position:"absolute",top:"-1000px",left:"-1000px"}),m=f[0],p={aborted:0,responseText:null,responseXML:null,status:0,statusText:"n/a",getAllResponseHeaders:function(){},getResponseHeader:function(){},setRequestHeader:function(){},abort:function(e){var t="timeout"===e?"timeout":"aborted";M("aborting upload... "+t),this.aborted=1;try{m.contentWindow.document.execCommand&amp;&amp;m.contentWindow.document.execCommand("Stop")}catch(e){}f.attr("src",l.iframeSrc),p.error=t,l.error&amp;&amp;l.error.call(l.context,p,t,e),u&amp;&amp;L.event.trigger("ajaxError",[p,l,t]),l.complete&amp;&amp;l.complete.call(l.context,p,t)}},(u=l.global)&amp;&amp;0==L.active++&amp;&amp;L.event.trigger("ajaxStart"),u&amp;&amp;L.event.trigger("ajaxSend",[p,l]),l.beforeSend&amp;&amp;!1===l.beforeSend.call(l.context,p,l)?(l.global&amp;&amp;L.active--,S.reject()):p.aborted?S.reject():((e=s.clk)&amp;&amp;(a=e.name)&amp;&amp;!e.disabled&amp;&amp;(l.extraData=l.extraData||{},l.extraData[a]=e.value,"image"==e.type)&amp;&amp;(l.extraData[a+".x"]=s.clk_x,l.extraData[a+".y"]=s.clk_y),g=1,v=2,e=L("meta[name=csrf-token]").attr("content"),(a=L("meta[name=csrf-param]").attr("content"))&amp;&amp;e&amp;&amp;(l.extraData=l.extraData||{},l.extraData[a]=e),l.forceSync?r():setTimeout(r,10),y=50,j=L.parseXML||function(e,t){return window.ActiveXObject?((t=new ActiveXObject("Microsoft.XMLDOM")).async="false",t.loadXML(e)):t=(new DOMParser).parseFromString(e,"text/xml"),t&amp;&amp;t.documentElement&amp;&amp;"parsererror"!=t.documentElement.nodeName?t:null},i=L.parseJSON||function(e){return window.eval("("+e+")")},w=function(e,t,a){var r=e.getResponseHeader("content-type")||"",n="xml"===t||!t&amp;&amp;0&lt;=r.indexOf(&quot;xml&quot;),e=n?e.responseXML:e.responseText;return n&amp;&amp;&quot;parsererror&quot;===e.documentElement.nodeName&amp;&amp;L.error&amp;&amp;L.error(&quot;parsererror&quot;),&quot;string&quot;==typeof(e=a&amp;&amp;a.dataFilter?a.dataFilter(e,t):e)&amp;&amp;(&quot;json&quot;===t||!t&amp;&amp;0&lt;=r.indexOf(&quot;json&quot;)?e=i(e):(&quot;script&quot;===t||!t&amp;&amp;0&lt;=r.indexOf(&quot;javascript&quot;))&amp;&amp;L.globalEval(e)),e}),S;function k(t){var a=null;try{t.contentWindow&amp;&amp;(a=t.contentWindow.document)}catch(e){M(&quot;cannot get iframe.contentWindow document: &quot;+e)}if(!a)try{a=t.contentDocument||t.document}catch(e){M(&quot;cannot get iframe.contentDocument: &quot;+e),a=t.document}return a}function r(){var e=E.attr2(&quot;target&quot;),t=E.attr2(&quot;action&quot;),a=E.attr(&quot;enctype&quot;)||E.attr(&quot;encoding&quot;)||&quot;multipart/form-data&quot;;s.setAttribute(&quot;target&quot;,o),A&amp;&amp;!/post/i.test(A)||s.setAttribute(&quot;method&quot;,&quot;POST&quot;),t!=l.url&amp;&amp;s.setAttribute(&quot;action&quot;,l.url),l.skipEncodingOverride||A&amp;&amp;!/post/i.test(A)||E.attr({encoding:&quot;multipart/form-data&quot;,enctype:&quot;multipart/form-data&quot;}),l.timeout&amp;&amp;(h=setTimeout(function(){d=!0,D(g)},l.timeout));var r=[];try{if(l.extraData)for(var n in l.extraData)l.extraData.hasOwnProperty(n)&amp;&amp;(L.isPlainObject(l.extraData[n])&amp;&amp;l.extraData[n].hasOwnProperty(&quot;name&quot;)&amp;&amp;l.extraData[n].hasOwnProperty(&quot;value&quot;)?r.push(L(&#039;').val(l.extraData[n].value).appendTo(s)[0]):r.push(L('').val(l.extraData[n]).appendTo(s)[0]));l.iframeTarget||f.appendTo("body"),m.attachEvent?m.attachEvent("onload",D):m.addEventListener("load",D,!1),setTimeout(function e(){try{var t=k(m).readyState;M("state = "+t),t&amp;&amp;"uninitialized"==t.toLowerCase()&amp;&amp;setTimeout(e,50)}catch(e){M("Server abort: ",e," (",e.name,")"),D(v),h&amp;&amp;clearTimeout(h),h=void 0}},15);try{s.submit()}catch(e){document.createElement("form").submit.apply(s)}}finally{s.setAttribute("action",t),s.setAttribute("enctype",a),e?s.setAttribute("target",e):E.removeAttr("target"),L(r).remove()}}function D(t){if(!p.aborted&amp;&amp;!T)if((b=k(m))||(M("cannot access response document"),t=v),t===g&amp;&amp;p)p.abort("timeout"),S.reject(p,"timeout");else if(t==v&amp;&amp;p)p.abort("server abort"),S.reject(p,"error","server abort");else if(b&amp;&amp;b.location.href!=l.iframeSrc||d){m.detachEvent?m.detachEvent("onload",D):m.removeEventListener("load",D,!1);var a,t="success";try{if(d)throw"timeout";var e="xml"==l.dataType||b.XMLDocument||L.isXMLDoc(b);if(M("isXml="+e),!e&amp;&amp;window.opera&amp;&amp;(null===b.body||!b.body.innerHTML)&amp;&amp;--y)return M("requeing onLoad callback, DOM not available"),void setTimeout(D,250);var r,n,o,i=b.body||b.documentElement,s=(p.responseText=i?i.innerHTML:null,p.responseXML=b.XMLDocument||b,e&amp;&amp;(l.dataType="xml"),p.getResponseHeader=function(e){return{"content-type":l.dataType}[e.toLowerCase()]},i&amp;&amp;(p.status=Number(i.getAttribute("status"))||p.status,p.statusText=i.getAttribute("statusText")||p.statusText),(l.dataType||"").toLowerCase()),c=/(json|script|text)/.test(s);c||l.textarea?(r=b.getElementsByTagName("textarea")[0])?(p.responseText=r.value,p.status=Number(r.getAttribute("status"))||p.status,p.statusText=r.getAttribute("statusText")||p.statusText):c&amp;&amp;(n=b.getElementsByTagName("pre")[0],o=b.getElementsByTagName("body")[0],n?p.responseText=n.textContent||n.innerText:o&amp;&amp;(p.responseText=o.textContent||o.innerText)):"xml"==s&amp;&amp;!p.responseXML&amp;&amp;p.responseText&amp;&amp;(p.responseXML=j(p.responseText));try{x=w(p,s,l)}catch(e){t="parsererror",p.error=a=e||t}}catch(e){M("error caught: ",e),t="error",p.error=a=e||t}p.aborted&amp;&amp;(M("upload aborted"),t=null),"success"===(t=p.status?200&lt;=p.status&amp;&amp;p.status&lt;300||304===p.status?&quot;success&quot;:&quot;error&quot;:t)?(l.success&amp;&amp;l.success.call(l.context,x,&quot;success&quot;,p),S.resolve(p.responseText,&quot;success&quot;,p),u&amp;&amp;L.event.trigger(&quot;ajaxSuccess&quot;,[p,l])):t&amp;&amp;(void 0===a&amp;&amp;(a=p.statusText),l.error&amp;&amp;l.error.call(l.context,p,t,a),S.reject(p,&quot;error&quot;,a),u)&amp;&amp;L.event.trigger(&quot;ajaxError&quot;,[p,l,a]),u&amp;&amp;L.event.trigger(&quot;ajaxComplete&quot;,[p,l]),u&amp;&amp;!--L.active&amp;&amp;L.event.trigger(&quot;ajaxStop&quot;),l.complete&amp;&amp;l.complete.call(l.context,p,t),T=!0,l.timeout&amp;&amp;clearTimeout(h),setTimeout(function(){l.iframeTarget?f.attr(&quot;src&quot;,l.iframeSrc):f.remove(),p.responseXML=null},100)}}}},L.fn.ajaxForm=function(e){var t;return(e=e||{}).delegation=e.delegation&amp;&amp;L.isFunction(L.fn.on),e.delegation||0!==this.length?e.delegation?(L(document).off(&quot;submit.form-plugin&quot;,this.selector,a).off(&quot;click.form-plugin&quot;,this.selector,r).on(&quot;submit.form-plugin&quot;,this.selector,e,a).on(&quot;click.form-plugin&quot;,this.selector,e,r),this):this.ajaxFormUnbind().bind(&quot;submit.form-plugin&quot;,e,a).bind(&quot;click.form-plugin&quot;,e,r):(t={s:this.selector,c:this.context},!L.isReady&amp;&amp;t.s?(M(&quot;DOM not ready, queuing ajaxForm&quot;),L(function(){L(t.s,t.c).ajaxForm(e)})):M(&quot;terminating; zero elements found by selector&quot;+(L.isReady?&quot;&quot;:&quot; (DOM not ready)&quot;)),this)},L.fn.ajaxFormUnbind=function(){return this.unbind(&quot;submit.form-plugin click.form-plugin&quot;)},L.fn.formToArray=function(e,t){var a=[];if(0!==this.length){var r=this[0],n=this.attr(&quot;id&quot;),o=e?r.getElementsByTagName(&quot;*&quot;):r.elements;if(o&amp;&amp;!/MSIE [678]/.test(navigator.userAgent)&amp;&amp;(o=L(o).get()),(o=n&amp;&amp;(n=L(&#039;:input[form=&quot;&#039;+n+&#039;&quot;]&#039;).get()).length?(o||[]).concat(n):o)&amp;&amp;o.length){for(var i,s,c,l,u,f,m=0,p=o.length;m&lt;p;m++)if((f=(c=o[m]).name)&amp;&amp;!c.disabled)if(e&amp;&amp;r.clk&amp;&amp;&quot;image&quot;==c.type)r.clk==c&amp;&amp;(a.push({name:f,value:L(c).val(),type:c.type}),a.push({name:f+&quot;.x&quot;,value:r.clk_x},{name:f+&quot;.y&quot;,value:r.clk_y}));else if((s=L.fieldValue(c,!0))&amp;&amp;s.constructor==Array)for(t&amp;&amp;t.push(c),i=0,l=s.length;i&lt;l;i++)a.push({name:f,value:s[i]});else if(h.fileapi&amp;&amp;&quot;file&quot;==c.type){t&amp;&amp;t.push(c);var d=c.files;if(d.length)for(i=0;i&lt;d.length;i++)a.push({name:f,value:d[i],type:c.type});else a.push({name:f,value:&quot;&quot;,type:c.type})}else null!=s&amp;&amp;(t&amp;&amp;t.push(c),a.push({name:f,value:s,type:c.type,required:c.required}));!e&amp;&amp;r.clk&amp;&amp;(f=(u=(n=L(r.clk))[0]).name)&amp;&amp;!u.disabled&amp;&amp;&quot;image&quot;==u.type&amp;&amp;(a.push({name:f,value:n.val()}),a.push({name:f+&quot;.x&quot;,value:r.clk_x},{name:f+&quot;.y&quot;,value:r.clk_y}))}}return a},L.fn.formSerialize=function(e){return L.param(this.formToArray(e))},L.fn.fieldSerialize=function(n){var o=[];return this.each(function(){var e=this.name;if(e){var t=L.fieldValue(this,n);if(t&amp;&amp;t.constructor==Array)for(var a=0,r=t.length;a&lt;r;a++)o.push({name:e,value:t[a]});else null!=t&amp;&amp;o.push({name:this.name,value:t})}}),L.param(o)},L.fn.fieldValue=function(e){for(var t=[],a=0,r=this.length;a&lt;r;a++){var n=this[a],n=L.fieldValue(n,e);null==n||n.constructor==Array&amp;&amp;!n.length||(n.constructor==Array?L.merge(t,n):t.push(n))}return t},L.fieldValue=function(e,t){var a=e.name,r=e.type,n=e.tagName.toLowerCase();if((t=void 0===t?!0:t)&amp;&amp;(!a||e.disabled||&quot;reset&quot;==r||&quot;button&quot;==r||(&quot;checkbox&quot;==r||&quot;radio&quot;==r)&amp;&amp;!e.checked||(&quot;submit&quot;==r||&quot;image&quot;==r)&amp;&amp;e.form&amp;&amp;e.form.clk!=e||&quot;select&quot;==n&amp;&amp;-1==e.selectedIndex))return null;if(&quot;select&quot;!=n)return L(e).val();t=e.selectedIndex;if(t&lt;0)return null;for(var o=[],i=e.options,s=&quot;select-one&quot;==r,c=s?t+1:i.length,l=s?t:0;l&lt;c;l++){var u=i[l];if(u.selected){var f=(f=u.value)||(u.attributes&amp;&amp;u.attributes.value&amp;&amp;!u.attributes.value.specified?u.text:u.value);if(s)return f;o.push(f)}}return o},L.fn.clearForm=function(e){return this.each(function(){L(&quot;input,select,textarea&quot;,this).clearFields(e)})},L.fn.clearFields=L.fn.clearInputs=function(a){var r=/^(?:color|date|datetime|email|month|number|password|range|search|tel|text|time|url|week)$/i;return this.each(function(){var e=this.type,t=this.tagName.toLowerCase();r.test(e)||&quot;textarea&quot;==t?this.value=&quot;&quot;:&quot;checkbox&quot;==e||&quot;radio&quot;==e?this.checked=!1:&quot;select&quot;==t?this.selectedIndex=-1:&quot;file&quot;==e?/MSIE/.test(navigator.userAgent)?L(this).replaceWith(L(this).clone(!0)):L(this).val(&quot;&quot;):a&amp;&amp;(!0===a&amp;&amp;/hidden/.test(e)||&quot;string&quot;==typeof a&amp;&amp;L(this).is(a))&amp;&amp;(this.value=&quot;&quot;)})},L.fn.resetForm=function(){return this.each(function(){&quot;function&quot;!=typeof this.reset&amp;&amp;(&quot;object&quot;!=typeof this.reset||this.reset.nodeType)||this.reset()})},L.fn.enable=function(e){return void 0===e&amp;&amp;(e=!0),this.each(function(){this.disabled=!e})},L.fn.selected=function(t){return void 0===t&amp;&amp;(t=!0),this.each(function(){var e=this.type;&quot;checkbox&quot;==e||&quot;radio&quot;==e?this.checked=t:&quot;option&quot;==this.tagName.toLowerCase()&amp;&amp;(e=L(this).parent(&quot;select&quot;),t&amp;&amp;e[0]&amp;&amp;&quot;select-one&quot;==e[0].type&amp;&amp;e.find(&quot;option&quot;).selected(!1),this.selected=t)})},L.fn.ajaxSubmit.debug=!1});