text: (function() {/*
   Copyright (c) 2012 Attila Losonc
   Licensed under the MS-PL license: https://bitbucket.org/attilax/jqueryuihelpers/src/9051d0806182/license.txt
  */
  var l=!1;
  (function(d){function p(a){a.filter('[data-jqui-type="dialog"]').each(function(){var c=d(this),a=e(c,"data-jqui-dialog-","autoOpen,closeOnEscape,closeText,dialogClass,disabled,draggable,height,maxHeight,maxWidth,minHeight,minWidth,modal,resizable,stack,title,width,zIndex".split(","),["position"],"beforeClose,close,create,drag,dragStart,dragStop,focus,open,resize,resizeStart,resizeStop".split(","),[],[]);u(c,a);c.dialog(a);v(c)});a.filter('[data-jqui-type="slider"]').each(function(){var a=d(this),
  b=e(a,"data-jqui-slider-","animate,disabled,max,min,orientation,range,step,value".split(","),["values"],["create","start","slide","change","stop"]);w(a,b);a.slider(b)});a.filter('[data-jqui-type="button"]').each(function(){var a=d(this),b=e(a,"data-jqui-button-",["disabled","text","label"],[],["create"],["icons"]);a.button(b)});a.filter('[data-jqui-type="buttonset"]').each(function(){d(this).buttonset()});a.filter('[data-jqui-type="accordion"]').each(function(){var a=d(this),b=e(a,"data-jqui-acc-",
  "disabled,active,animated,autoHeight,clearStyle,collapsible,event,fillSpace,header,heightStyle,navigation".split(","),[],["navigationFilter","create","activate","beforeActivate"],["animate","icons"]);a.accordion(b)});a.filter('[data-jqui-type="tabs"]').each(function(){var a=d(this),b=e(a,"data-jqui-tabs-","active,cache,collapsible,deselectable,event,heightStyle,idPrefix,panelTemplate,selected,spinner,tabTemplate".split(","),[],"add,create,disable,enable,load,remove,beforeActivate,activate,beforeLoad".split(","),
  ["ajaxOptions","cookie","fx","hide","show"],["disabled"]);q(b.ajaxOptions);a.tabs(b)});a.filter('[data-jqui-type="menu"]').each(function(){var a=d(this),b=e(a,"data-jqui-menu-",["disabled","role"],[],["blur","create","focus","select"],["icons","position"]);a.menu(b)});a.filter('[data-jqui-type="progressbar"]').each(function(){var a=d(this),b=e(a,"data-jqui-pbar-",["disabled","value"],[],["change","complete","create"]);a.progressbar(b)});a.filter('[data-jqui-type="datepicker"]').each(function(){var a=
  d(this),b=e(a,"data-jqui-dpicker-","altField,altFormat,appendText,autoSize,buttonImage,buttonImageOnly,buttonText,changeMonth,changeYear,closeText,constrainInput,currentText,dateFormat,defaultDate,disabled,duration,firstDay,gotoCurrent,hideIfNoPrevNext,isRTL,maxDate,minDate,navigationAsDateFormat,nextText,prevText,selectOtherMonths,shortYearCutoff,showAnim,showButtonPanel,showCurrentAtPos,showMonthAfterYear,showOn,showOptions,showOtherMonths,showWeek,stepMonths,weekHeader,yearRange,yearSuffix".split(","),
  ["dayNames","dayNamesMin","dayNamesShort","monthNames","monthNamesShort"],"calculateWeek,beforeShow,beforeShowDay,onChangeMonthYear,onClose,onSelect".split(","),[],["numberOfMonths"]);a.datepicker(b)});a.filter('[data-jqui-type="autocomplete"]').each(function(){var a=d(this),b=e(a,"data-jqui-acomp-",["appendTo","autoFocus","delay","disabled","minLength"],[],"create,search,open,focus,select,close,change,response".split(","),["position"]);x(a,b);a.autocomplete(b)});a.filter('[data-jqui-type="spinner"]').each(function(){var a=
  d(this),b=e(a,"data-jqui-spinner-","culture,disabled,incremental,max,min,numberFormat,page,step".split(","),[],["create","change","start","spin","stop"],["icons"]);a.spinner(b)});a.filter('[data-jqui-type="sortable"]').each(function(){var a=d(this),b=e(a,"data-jqui-sort-","appendTo,axis,cancel,connectWith,containment,cursor,delay,disabled,distance,dropOnEmpty,forceHelperSize,forcePlaceholderSize,handle,items,opacity,placeholder,revert,scroll,scrollSensitivity,scrollSpeed,tolerance,zIndex".split(","),
  ["grid"],"activate,beforeStop,change,create,deactivate,out,over,receive,remove,sort,start,stop,update".split(","),["cursorAt"]);r("data-jqui-sort-helper",a,b);a.sortable(b)});a.filter('[data-jqui-type="resizable"]').each(function(){var a=d(this),b=e(a,"data-jqui-resiz-","alsoResize,animate,animateDuration,animateEasing,aspectRatio,autoHide,cancel,containment,delay,disabled,distance,ghost,helper,maxHeight,maxWidth,minHeight,minWidth,handles".split(","),["grid"],["create","resize","start","stop"],[]);
  a.resizable(b)});a.filter('[data-jqui-type="draggable"]').each(function(){var a=d(this),b=e(a,"data-jqui-drag-","addClasses,appendTo,axis,cancel,connectToSortable,cursor,delay,disabled,distance,handle,iframeFix,opacity,refreshPositions,revert,revertDuration,scope,scroll,scrollSensitivity,scrollSpeed,snap,snapMode,snapTolerance,stack,zIndex".split(","),["grid"],["create","drag","start","stop"],["cursorAt"],["containment"]);r("data-jqui-drag-helper",a,b);a.draggable(b)});a.filter('[data-jqui-type="droppable"]').each(function(){var a=
  d(this),b=e(a,"data-jqui-drop-","activeClass,addClasses,disabled,greedy,hoverClass,scope,tolerance".split(","),[],"activate,create,deactivate,drop,out,over".split(","));s("data-jqui-drop-accept","accept",a,b);a.droppable(b)});a.filter('[data-jqui-type="selectable"]').each(function(){var a=d(this),b=e(a,"data-jqui-select-","autoRefresh,cancel,delay,disabled,distance,filter,tolerance".split(","),[],"create,selected,selecting,start,stop,unselected,unselecting".split(","));a.selectable(b)});a.filter('[data-jqui-type="tooltip"]').each(function(){var a=
  d(this),b=e(a,"data-jqui-ttip-",["disabled","items","tooltipClass","track"],[],["create","close","open"],["hide","position","show"]);s("data-jqui-ttip-content","content",a,b);(a=d(this).attr("data-jqui-ttip-selector"))?d(a).tooltip(b):d(document).tooltip(b)})}function e(a,c,b,h,d,n,e){var j={},f,g,m;for(g=0;g<b.length;g++)f=c+b[g].toLowerCase(),f=a.attr(f),void 0!==f&&(j[b[g]]=k(f));if(h)for(g=0;g<h.length;g++)if(f=c+h[g].toLowerCase(),f=a.attr(f),void 0!==f){b=f.split(",");f=[];for(m=0;m<b.length;m++)f.push(k(b[m]));
  j[h[g]]=f}if(e)for(g=0;g<e.length;g++)if(f=c+e[g].toLowerCase(),f=a.attr(f),void 0!==f)if(b=f.split(","),1===b.length)j[e[g]]=k(f);else{f=[];for(m=0;m<b.length;m++)f.push(k(b[m]));j[e[g]]=f}if(d)for(g=0;g<d.length;g++)f=c+d[g].toLowerCase(),f=a.attr(f),void 0!==f&&(j[d[g]]=o(f));if(n)for(g=0;g<n.length;g++)f=c+n[g].toLowerCase(),f=a.attr(f),void 0!==f&&(j[n[g]]="{"===f.substring(0,1)?JSON.parse(f):k(f));return j}function k(a){return"false"===a.toLowerCase()?l:"true"===a.toLowerCase()?!0:"(null)"===
  a?null:/^-?\d+$/.test(a)?parseInt(a,10):t(a)}function t(a){return 0<=a.indexOf("<script")?d("<div/>").text(a).html():a}function o(a){for(var a=a.split("."),c=window[a[0]],b=1;b<a.length;b++)c&&(c=c[a[b]]);return c}function q(a){var c="beforeSend,complete,dataFilter,error,success,xhr".split(",");if(a)for(var b,d=0;d<c.length;d++)b=c[d],a[b]&&(a[b]=o(a[b]))}function x(a,c){var b=a.attr("data-jqui-acomp-source");if(b)0>b.indexOf("/")&&(b=o(b)),c.source=b;if(b=a.attr("data-jqui-acomp-hiddenvalue")){var h=
  a.closest("form").data("validator");h&&(h.settings.ignore="");var i=d("#"+b),n=c.focus;c.focus=function(a,b){n&&n.call(this,a,b);return l};var e=c.change;c.change=function(a,b){if(e&&e.call(this,a,b)===l)return l;b.item||i.val("")};var j=c.select;c.select=function(b,c){if(j&&j.call(this,b,c)===l)return l;c.item.value&&(a.val(c.item.label),i.val(c.item.value));return l};a.blur(function(){a.val()||i.val("")})}}function w(a,c){var b=a.attr("data-jqui-slider-names");if(b){var h=c.slide;c.slide=function(a,
  c){if(h&&h.call(this,a,c)===l)return l;var e=b.split(",");if(c.values){for(var j="",f=2<c.values.length?", ":"-",g=0;g<c.values.length;g++)j+=c.values[g],g!==c.values.length-1&&(j+=f),d("#"+e[g]).val(c.values[g]);d(this).prev().html(j)}else d(this).prev().html(c.value),d("#"+e[0]).val(c.value)}}}function u(a,c){var b,h;b=a.attr("data-jqui-dialog-buttons");var i=[];if(b){b=b.split("|");for(h=0;h<b.length;h++)i[h]=JSON.parse(b[h]),i[h].click=o(i[h].click);c.buttons=i}if(a.attr("data-jqui-dialog-confirm"))b=
  a.attr("data-jqui-dialog-confirm-accept"),h=a.attr("data-jqui-dialog-confirm-cancel"),i.push({text:b,click:function(){a.dialog("close");window.location=a.data("href")}}),i.push({text:h,click:function(){a.dialog("close")}}),c.buttons=i;if(a.attr("data-jqui-dialog-confirmajax"))b=a.attr("data-jqui-dialog-confirm-accept"),h=a.attr("data-jqui-dialog-confirm-cancel"),i.push({text:b,click:function(){a.dialog("close");var b=a.data("ajaxSettings");d.ajax(a.data("href"),b)}}),i.push({text:h,click:function(){a.dialog("close")}}),
  c.buttons=i;(i=a.attr("data-jqui-dialog-hide"))&&(c.hide="{"===i.substring(0,1)?JSON.parse(i):k(i));(i=a.attr("data-jqui-dialog-show"))&&(c.show="{"===i.substring(0,1)?JSON.parse(i):k(i))}function v(a){attrValue=a.attr("data-jqui-dialog-triggerclick");var c;if(attrValue&&(c=d(attrValue),c.length))c.on("click.jqueryuihelpers",function(b){b.preventDefault();a.dialog("isOpen")||a.dialog("open")});if(attrValue=a.attr("data-jqui-dialog-triggerhover"))c=d(attrValue),c.length&&(c.on("mouseenter.jqueryuihelpers",
  function(b){b.preventDefault();a.dialog("isOpen")||a.dialog("open")}),c.on("mouseleave.jqueryuihelpers",function(b){b.preventDefault();a.dialog("isOpen")&&a.dialog("close")}));if(attrValue=a.attr("data-jqui-dialog-confirm"))if(c=d(attrValue),c.length)c.on("click.jqueryuihelpers",function(b){b.preventDefault();a.data("href",b.target.href);a.dialog("isOpen")||a.dialog("open")});if(attrValue=a.attr("data-jqui-dialog-confirmajax")){c=JSON.parse(a.attr("data-jqui-dialog-confirm-ajaxsettings"));q(c);var b=
  d('input[name="__RequestVerificationToken"]').val();if(b)c.data=c.data||{},c.data.__RequestVerificationToken=b;a.data("ajaxSettings",c);d(document).on("click.jqueryuihelpers",attrValue,function(b){b.preventDefault();a.data("href",b.target.href);a.dialog("isOpen")||a.dialog("open")})}}function s(a,c,b,d){if(a=b.attr(a))b=o(a),d[c]=b&&"function"===typeof b?b:t(a)}function r(a,c,b){if(a=c.attr(a))"original"!==a&&"clone"!==a&&(a=o(a)),b.helper=a}d(function(){var a=d("[data-jqui-type]");p(a);if(d.validator&&
  d.validator.methods){var c=d.validator.methods.date;d.validator.methods.date=function(a,b){var e=d(b).data("jqui-dpicker-dateformat");if(e){var k=null;try{k=d.datepicker.parseDate(e,a)}catch(j){}return this.optional(b)||null!=k}return c.call(this,a,b)};if("undefined"!==typeof Globalize){var b=d.validator.methods.number;d.validator.methods.number=function(a,c){var e=d(c).data("jqui-spinner-culture");return e?(e=Globalize.parseFloat(a,10,e),this.optional(c)||!isNaN(e)):b.call(this,a,c)}}}});d.fn.jQueryUIHelpers=
  function(){var a=this.find("[data-jqui-type]").andSelf();p(a);return this}})(jQuery);}());
  