@atlassian/aui 9.3.20 → 9.3.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aui/aui-prototyping.css +1 -1
- package/dist/aui/aui-prototyping.js +20 -17
- package/dist/aui/aui-prototyping.js.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.css +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +25 -22
- package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.css +797 -0
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-base-themes.js +26 -0
- package/entry/token-themes-generated/npm/aui-prototyping-design-tokens-theme-import-map.js +51 -0
- package/entry/token-themes-generated/npm/themes/dark-future.js +7 -0
- package/entry/token-themes-generated/npm/themes/dark-new-input-border.js +7 -0
- package/entry/token-themes-generated/npm/themes/dark.js +395 -0
- package/entry/token-themes-generated/npm/themes/legacy-dark.js +395 -0
- package/entry/token-themes-generated/npm/themes/legacy-light.js +395 -0
- package/entry/token-themes-generated/npm/themes/light-future.js +7 -0
- package/entry/token-themes-generated/npm/themes/light-new-input-border.js +7 -0
- package/entry/token-themes-generated/npm/themes/light.js +395 -0
- package/entry/token-themes-generated/npm/themes/shape.js +15 -0
- package/entry/token-themes-generated/npm/themes/spacing.js +27 -0
- package/entry/token-themes-generated/npm/themes/typography-adg3.js +50 -0
- package/entry/token-themes-generated/npm/themes/typography-minor3.js +41 -0
- package/package.json +1 -1
- package/src/js/aui/forms/create-forms-component-body.js +3 -3
- package/src/js/aui/forms/custom-checkbox.js +1 -1
- package/src/js/aui/forms/custom-radio.js +1 -1
- package/src/js/aui/tables-sortable.js +1 -0
- package/src/js-vendor/jquery/jquery.tablesorter.js +1920 -1891
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!!
|
|
2
2
|
* @atlassian/aui - Atlassian User Interface library
|
|
3
|
-
* @version v9.3.
|
|
3
|
+
* @version v9.3.21
|
|
4
4
|
* @link https://aui.atlassian.com
|
|
5
5
|
* @license Apache-2.0
|
|
6
6
|
* @author Atlassian Pty Ltd.
|
|
@@ -61,22 +61,25 @@ t.exports=function(){"use strict";function t(e){return t="function"==typeof Symb
|
|
|
61
61
|
* http://jquery.org/license
|
|
62
62
|
*/!function(a){"use strict";r=[i(3),i(5),i(29)],n=function(t){var e;function i(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=r(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function r(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,s)}function s(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}return t.extend(t.ui,{datepicker:{version:"1.13.2"}}),t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,r,s;r="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(s=this._newInst(t(e),r)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,s):r&&this._inlineDatepicker(e,s)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?r(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,r,s,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span>").addClass(this._appendClass).text(a),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(r=this._get(i,"buttonText"),s=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:s,alt:r,title:r}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),s?i.trigger.html(t("<img>").attr({src:s,alt:r,title:r})):i.trigger.text(r)),e[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1})))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,r,s=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,r=0;r<t.length;r++)t[r].length>i&&(i=t[r].length,n=r);return n},s.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),s.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-s.getDay())),t.input.attr("size",this._formatDate(t,s).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,r,s){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,r||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=s?s.length?s:[s.pageX,s.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,r=t(i),s=t.data(i,"datepicker");r.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(s.append.remove(),s.trigger.remove(),r.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||r.removeClass(this.markerClassName).empty(),e===s&&(e=null,this._curInst=null))},_enableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=r.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n,r=t(e),s=t.data(e,"datepicker");r.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=r.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var r,s,o,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):this._get(c,i):null;r=i||{},"string"==typeof i&&((r={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),s=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,r),null!==o&&void 0!==r.dateFormat&&void 0===r.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==r.dateFormat&&void 0===r.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in r&&(r.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,s),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,r,s=t.datepicker._getInst(e.target),a=!0,o=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(r=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,r[0]),(i=t.datepicker._get(s,"onSelect"))?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,r=t.datepicker._getInst(e.target);if(t.datepicker._get(r,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(r,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var n,r,s,o,l,c,u;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(s=(r=t.datepicker._get(n,"beforeShow"))?r.apply(e,[e,n]):{})&&(a(n.settings,s),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each((function(){return!(o|="fixed"===t(this).css("position"))})),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=t.datepicker._get(n,"showAnim"),u=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?n.dpDiv.show(c,t.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,e=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,r=this._getNumberOfMonths(i),a=r[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=t.datepicker._get(i,"onUpdateDatepicker");l.length>0&&s.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&i.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",o*a+"em"),i.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout((function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null}),0)),c&&c.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var r=e.dpDiv.outerWidth(),s=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?r-a:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+r>l&&l>r?Math.abs(i.left+r-l):0),i.top-=Math.min(i.top,i.top+s>c&&c>s?Math.abs(s+o):0),i},_findPos:function(e){for(var i,n=this._getInst(e),r=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[r?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,r,s,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),r=function(){t.datepicker._tidyDialog(a)},t.effects&&(t.effects.effect[i]||t.effects[i])?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,r):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,r),i||r(),this._datepickerShowing=!1,(s=this._get(a,"onClose"))&&s.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var r=t(e),s=this._getInst(r[0]);this._isDisabledDatepicker(r[0])||(this._adjustInstDate(s,i,n),this._updateDatepicker(s))},_gotoToday:function(e){var i,n=t(e),r=this._getInst(n[0]);this._get(r,"gotoCurrent")&&r.currentDay?(r.selectedDay=r.currentDay,r.drawMonth=r.selectedMonth=r.currentMonth,r.drawYear=r.selectedYear=r.currentYear):(i=new Date,r.selectedDay=i.getDate(),r.drawMonth=r.selectedMonth=i.getMonth(),r.drawYear=r.selectedYear=i.getFullYear()),this._notifyChange(r),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var r=t(e),s=this._getInst(r[0]);s["selected"+("M"===n?"Month":"Year")]=s["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(s),this._adjustDate(r)},_selectDay:function(e,i,n,r){var s,a=t(e);t(r).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((s=this._getInst(a[0])).selectedDay=s.currentDay=parseInt(t("a",r).attr("data-date")),s.selectedMonth=s.currentMonth=i,s.selectedYear=s.currentYear=n,this._selectDate(e,this._formatDate(s,s.currentDay,s.currentMonth,s.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,r=t(e),s=this._getInst(r[0]);i=null!=i?i:this._formatDate(s),s.input&&s.input.val(i),this._updateAlternate(s),(n=this._get(s,"onSelect"))?n.apply(s.input?s.input[0]:null,[i,s]):s.input&&s.input.trigger("change"),s.inline?this._updateDatepicker(s):(this._hideDatepicker(),this._lastInput=s.input[0],"object"!=typeof s.input[0]&&s.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,r,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),r=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(s).val(r))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var r,s,a,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,h=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,y=!1,w=function(t){var i=r+1<e.length&&e.charAt(r+1)===t;return i&&r++,i},_=function(t){var e=w(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,r=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),s=i.substring(l).match(r);if(!s)throw"Missing number at position "+l;return l+=s[0].length,parseInt(s[0],10)},x=function(e,n,r){var s=-1,a=t.map(w(e)?r:n,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(a,(function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return s=e[0],l+=n.length,!1})),-1!==s)return s+1;throw"Unknown name at position "+l},k=function(){if(i.charAt(l)!==e.charAt(r))throw"Unexpected literal at position "+l;l++};for(r=0;r<e.length;r++)if(y)"'"!==e.charAt(r)||w("'")?k():y=!1;else switch(e.charAt(r)){case"d":v=_("d");break;case"D":x("D",d,h);break;case"o":b=_("o");break;case"m":m=_("m");break;case"M":m=x("M",p,f);break;case"y":g=_("y");break;case"@":g=(o=new Date(_("@"))).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"!":g=(o=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"'":w("'")?k():y=!0;break;default:k()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(s=this._getDaysInMonth(g,m-1)))break;m++,v-=s}if((o=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,s=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},d="",h=!1;if(e)for(n=0;n<t.length;n++)if(h)"'"!==t.charAt(n)||l("'")?d+=t.charAt(n):h=!1;else switch(t.charAt(n)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),r,s);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),a,o);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(n)}return d},_possibleChars:function(t){var e,i="",n=!1,r=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||r("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":r("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,r=this._getDefaultDate(t),s=r,a=this._getFormatConfig(t);try{s=this.parseDate(i,n,a)||r}catch(t){n=e?"":n}t.selectedDay=s.getDate(),t.drawMonth=t.selectedMonth=s.getMonth(),t.drawYear=t.selectedYear=s.getFullYear(),t.currentDay=n?s.getDate():0,t.currentMonth=n?s.getMonth():0,t.currentYear=n?s.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var r=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},s=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,r=n.getFullYear(),s=n.getMonth(),a=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":s+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,s));break;case"y":case"Y":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(r,s))}l=o.exec(i)}return new Date(r,s,a)},a=null==i||""===i?n:"string"==typeof i?s(i):"number"==typeof i?isNaN(i)?n:r(i):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,r=t.selectedMonth,s=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),r===t.selectedMonth&&s===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var i,n,r,s,a,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,x,k,C,E,T,A,D,S,O,N,I,M,P,L,R,j,$,F,H,B=new Date,U=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),W=this._get(e,"isRTL"),V=this._get(e,"showButtonPanel"),z=this._get(e,"hideIfNoPrevNext"),q=this._get(e,"navigationAsDateFormat"),Y=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),G=this._get(e,"stepMonths"),J=1!==Y[0]||1!==Y[1],Q=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(e,"min"),Z=this._getMinMaxDate(e,"max"),tt=e.drawMonth-K,et=e.drawYear;if(tt<0&&(tt+=12,et--),Z)for(i=this._daylightSavingAdjust(new Date(Z.getFullYear(),Z.getMonth()-Y[0]*Y[1]+1,Z.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(et,tt,1))>i;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,n=this._get(e,"prevText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt-G,1)),this._getFormatConfig(e)):n,r=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML,s=this._get(e,"nextText"),s=q?this.formatDate(s,this._daylightSavingAdjust(new Date(et,tt+G,1)),this._getFormatConfig(e)):s,a=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:s}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(s))[0].outerHTML:z?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:s}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(s))[0].outerHTML,o=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?Q:U,o=q?this.formatDate(o,l,this._getFormatConfig(e)):o,c="",e.inline||(c=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),u="",V&&(u=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?c:"").append(this._isInRange(e,l)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(W?"":c)[0].outerHTML),d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),b=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),w=this._getDefaultDate(e),_="",k=0;k<Y[0];k++){for(C="",this.maxRows=4,E=0;E<Y[1];E++){if(T=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),A=" ui-corner-all",D="",J){if(D+="<div class='ui-datepicker-group",Y[1]>1)switch(E){case 0:D+=" ui-datepicker-group-first",A=" ui-corner-"+(W?"right":"left");break;case Y[1]-1:D+=" ui-datepicker-group-last",A=" ui-corner-"+(W?"left":"right");break;default:D+=" ui-datepicker-group-middle",A=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===k?W?a:r:"")+(/all|right/.test(A)&&0===k?W?r:a:"")+this._generateMonthYearHeader(e,tt,et,X,Z,k>0||E>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)S+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[O=(x+d)%7]+"'>"+f[O]+"</span></th>";for(D+=S+"</tr></thead><tbody>",N=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,N)),I=(this._getFirstDayOfMonth(et,tt)-d+7)%7,M=Math.ceil((I+N)/7),P=J&&this.maxRows>M?this.maxRows:M,this.maxRows=P,L=this._daylightSavingAdjust(new Date(et,tt,1-I)),R=0;R<P;R++){for(D+="<tr>",j=h?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(L)+"</td>":"",x=0;x<7;x++)$=v?v.apply(e.input?e.input[0]:null,[L]):[!0,""],H=(F=L.getMonth()!==tt)&&!y||!$[0]||X&&L<X||Z&&L>Z,j+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(F?" ui-datepicker-other-month":"")+(L.getTime()===T.getTime()&&tt===e.selectedMonth&&e._keyEvent||w.getTime()===L.getTime()&&w.getTime()===T.getTime()?" "+this._dayOverClass:"")+(H?" "+this._unselectableClass+" ui-state-disabled":"")+(F&&!b?"":" "+$[1]+(L.getTime()===Q.getTime()?" "+this._currentClass:"")+(L.getTime()===U.getTime()?" ui-datepicker-today":""))+"'"+(F&&!b||!$[2]?"":" title='"+$[2].replace(/'/g,"'")+"'")+(H?"":" data-handler='selectDay' data-event='click' data-month='"+L.getMonth()+"' data-year='"+L.getFullYear()+"'")+">"+(F&&!b?" ":H?"<span class='ui-state-default'>"+L.getDate()+"</span>":"<a class='ui-state-default"+(L.getTime()===U.getTime()?" ui-state-highlight":"")+(L.getTime()===Q.getTime()?" ui-state-active":"")+(F?" ui-priority-secondary":"")+"' href='#' aria-current='"+(L.getTime()===Q.getTime()?"true":"false")+"' data-date='"+L.getDate()+"'>"+L.getDate()+"</a>")+"</td>",L.setDate(L.getDate()+1),L=this._daylightSavingAdjust(L);D+=j+"</tr>"}++tt>11&&(tt=0,et++),C+=D+="</tbody></table>"+(J?"</div>"+(Y[0]>0&&E===Y[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=C}return _+=u,e._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,n,r,s,a,o){var l,c,u,d,h,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),w=this._get(t,"selectYearLabel"),_="<div class='ui-datepicker-title'>",x="";if(s||!m)x+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=r&&r.getFullYear()===i,x+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=r.getMonth())&&(x+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+o[u]+"</option>");x+="</select>"}if(b||(_+=x+(!s&&m&&v?"":" ")),!t.yearshtml)if(t.yearshtml="",s||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=r?Math.min(g,r.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),b&&(_+=(!s&&m&&v?"":" ")+x),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),r=t.selectedMonth+("M"===i?e:0),s=Math.min(t.selectedDay,this._getDaysInMonth(n,r))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,r,s)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),r=i&&e<i?i:e;return n&&r>n?n:r},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var r=this._getNumberOfMonths(t),s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:r[0]*r[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i,n,r=this._getMinMaxDate(t,"min"),s=this._getMinMaxDate(t,"max"),a=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!r||e.getTime()>=r.getTime())&&(!s||e.getTime()<=s.getTime())&&(!a||e.getFullYear()>=a)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var r=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),r,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)})):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.2",t.datepicker},void 0===(s="function"==typeof n?n.apply(e,r):n)||(t.exports=s)}()},function(t,e,i){var n,r,s;r=[e,t,i(11),i(13),i(14),i(25),i(8)],n=function(t,e,i,n,r,s,a){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=a.getClosestIgnoredElement;function h(t){for(var e=t.length,i=0;i<e;i++){var n=t[i],r=n.addedNodes,s=n.removedNodes;r&&r.length&&!d(r[0].parentNode)&&c(r),s&&s.length&&u(s)}}function p(){var t=new window.MutationObserver(h);return t.observe(document,{childList:!0,subtree:!0}),t}e.exports={register:function(t){return t&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}},void 0===(s="function"==typeof n?n.apply(e,r):n)||(t.exports=s)},function(t,e,i){var n,r,s;r=[e,t],n=function(t,e){"use strict";e.exports=function(t){var e=void 0===arguments[1]?"":arguments[1],i=t.__SKATE_DATA||(t.__SKATE_DATA={});return e&&(i[e]||(i[e]={}))||i}},void 0===(s="function"==typeof n?n.apply(e,r):n)||(t.exports=s)},function(t,e,i){var n,r,s;r=[e],void 0===(s="function"==typeof(n=function(t){"use strict";var e=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=e||i,r=window.HTMLElement.prototype;function s(t,e){var i=t.childNodes;if(i)for(var n=i.length,r=0;r<n;r++){var a=i[r];e(a,t),s(a,e)}}function a(){var t=Object.getOwnPropertyDescriptor(r,"innerHTML"),e=function(){return t.get.call(this)};e._hasBeenEnhanced=!0,Object.defineProperty(r,"innerHTML",{get:e,set:function(e){s(this,(function(t,e){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,e,null,null,null,null),t.dispatchEvent(i)})),t.set.call(this,e)}})}if(n){var o=Object.getOwnPropertyDescriptor(r,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),a())}})?n.apply(e,r):n)||(t.exports=s)},function(t,e,i){(function(t){Object.defineProperty(e,"__esModule",{value:!0});var i="1.13.1",n="object"==typeof self&&self.self===self&&self||"object"==typeof t&&t.global===t&&t||Function("return this")()||{},r=Array.prototype,s=Object.prototype,a="undefined"!=typeof Symbol?Symbol.prototype:null,o=r.push,l=r.slice,c=s.toString,u=s.hasOwnProperty,d="undefined"!=typeof ArrayBuffer,h="undefined"!=typeof DataView,p=Array.isArray,f=Object.keys,g=Object.create,m=d&&ArrayBuffer.isView,v=isNaN,b=isFinite,y=!{toString:null}.propertyIsEnumerable("toString"),w=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],_=Math.pow(2,53)-1;function x(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),r=0;r<i;r++)n[r]=arguments[r+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var s=Array(e+1);for(r=0;r<e;r++)s[r]=arguments[r];return s[e]=n,t.apply(this,s)}}function k(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function C(t){return null===t}function E(t){return void 0===t}function T(t){return!0===t||!1===t||"[object Boolean]"===c.call(t)}function A(t){return!(!t||1!==t.nodeType)}function D(t){var e="[object "+t+"]";return function(t){return c.call(t)===e}}var S=D("String"),O=D("Number"),N=D("Date"),I=D("RegExp"),M=D("Error"),P=D("Symbol"),L=D("ArrayBuffer"),R=D("Function"),j=n.document&&n.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&(R=function(t){return"function"==typeof t||!1});var $=R,F=D("Object"),H=h&&F(new DataView(new ArrayBuffer(8))),B="undefined"!=typeof Map&&F(new Map),U=D("DataView");var W=H?function(t){return null!=t&&$(t.getInt8)&&L(t.buffer)}:U,V=p||D("Array");function z(t,e){return null!=t&&u.call(t,e)}var q=D("Arguments");!function(){q(arguments)||(q=function(t){return z(t,"callee")})}();var Y=q;function K(t){return!P(t)&&b(t)&&!isNaN(parseFloat(t))}function G(t){return O(t)&&v(t)}function J(t){return function(){return t}}function Q(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=_}}function X(t){return function(e){return null==e?void 0:e[t]}}var Z=X("byteLength"),tt=Q(Z),et=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var it=d?function(t){return m?m(t)&&!W(t):tt(t)&&et.test(c.call(t))}:J(!1),nt=X("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=w.length,n=t.constructor,r=$(n)&&n.prototype||s,a="constructor";for(z(t,a)&&!e.contains(a)&&e.push(a);i--;)(a=w[i])in t&&t[a]!==r[a]&&!e.contains(a)&&e.push(a)}function st(t){if(!k(t))return[];if(f)return f(t);var e=[];for(var i in t)z(t,i)&&e.push(i);return y&&rt(t,e),e}function at(t){if(null==t)return!0;var e=nt(t);return"number"==typeof e&&(V(t)||S(t)||Y(t))?0===e:0===nt(st(t))}function ot(t,e){var i=st(e),n=i.length;if(null==t)return!n;for(var r=Object(t),s=0;s<n;s++){var a=i[s];if(e[a]!==r[a]||!(a in r))return!1}return!0}function lt(t){return t instanceof lt?t:this instanceof lt?void(this._wrapped=t):new lt(t)}function ct(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,Z(t))}lt.VERSION=i,lt.prototype.value=function(){return this._wrapped},lt.prototype.valueOf=lt.prototype.toJSON=lt.prototype.value,lt.prototype.toString=function(){return String(this._wrapped)};var ut="[object DataView]";function dt(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var r=typeof t;return("function"===r||"object"===r||"object"==typeof e)&&ht(t,e,i,n)}function ht(t,e,i,n){t instanceof lt&&(t=t._wrapped),e instanceof lt&&(e=e._wrapped);var r=c.call(t);if(r!==c.call(e))return!1;if(H&&"[object Object]"==r&&W(t)){if(!W(e))return!1;r=ut}switch(r){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0==+t?1/+t==1/e:+t==+e;case"[object Date]":case"[object Boolean]":return+t==+e;case"[object Symbol]":return a.valueOf.call(t)===a.valueOf.call(e);case"[object ArrayBuffer]":case ut:return ht(ct(t),ct(e),i,n)}var s="[object Array]"===r;if(!s&&it(t)){if(Z(t)!==Z(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;s=!0}if(!s){if("object"!=typeof t||"object"!=typeof e)return!1;var o=t.constructor,l=e.constructor;if(o!==l&&!($(o)&&o instanceof o&&$(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var u=(i=i||[]).length;u--;)if(i[u]===t)return n[u]===e;if(i.push(t),n.push(e),s){if((u=t.length)!==e.length)return!1;for(;u--;)if(!dt(t[u],e[u],i,n))return!1}else{var d,h=st(t);if(u=h.length,st(e).length!==u)return!1;for(;u--;)if(!z(e,d=h[u])||!dt(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function pt(t,e){return dt(t,e)}function ft(t){if(!k(t))return[];var e=[];for(var i in t)e.push(i);return y&&rt(t,e),e}function gt(t){var e=nt(t);return function(i){if(null==i)return!1;var n=ft(i);if(nt(n))return!1;for(var r=0;r<e;r++)if(!$(i[t[r]]))return!1;return t!==wt||!$(i[mt])}}var mt="forEach",vt=["clear","delete"],bt=["get","has","set"],yt=vt.concat(mt,bt),wt=vt.concat(bt),_t=["add"].concat(vt,mt,"has"),xt=B?gt(yt):D("Map"),kt=B?gt(wt):D("WeakMap"),Ct=B?gt(_t):D("Set"),Et=D("WeakSet");function Tt(t){for(var e=st(t),i=e.length,n=Array(i),r=0;r<i;r++)n[r]=t[e[r]];return n}function At(t){for(var e=st(t),i=e.length,n=Array(i),r=0;r<i;r++)n[r]=[e[r],t[e[r]]];return n}function Dt(t){for(var e={},i=st(t),n=0,r=i.length;n<r;n++)e[t[i[n]]]=i[n];return e}function St(t){var e=[];for(var i in t)$(t[i])&&e.push(i);return e.sort()}function Ot(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var r=1;r<n;r++)for(var s=arguments[r],a=t(s),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=s[c])}return i}}var Nt=Ot(ft),It=Ot(st),Mt=Ot(ft,!0);function Pt(t){if(!k(t))return{};if(g)return g(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Lt(t,e){var i=Pt(t);return e&&It(i,e),i}function Rt(t){return k(t)?V(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function $t(t){return V(t)?t:[t]}function Ft(t){return lt.toPath(t)}function Ht(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Bt(t,e,i){var n=Ht(t,Ft(e));return E(n)?i:n}function Ut(t,e){for(var i=(e=Ft(e)).length,n=0;n<i;n++){var r=e[n];if(!z(t,r))return!1;t=t[r]}return!!i}function Wt(t){return t}function Vt(t){return t=It({},t),function(e){return ot(e,t)}}function zt(t){return t=Ft(t),function(e){return Ht(e,t)}}function qt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,r){return t.call(e,i,n,r)};case 4:return function(i,n,r,s){return t.call(e,i,n,r,s)}}return function(){return t.apply(e,arguments)}}function Yt(t,e,i){return null==t?Wt:$(t)?qt(t,e,i):k(t)&&!V(t)?Vt(t):zt(t)}function Kt(t,e){return Yt(t,e,1/0)}function Gt(t,e,i){return lt.iteratee!==Kt?lt.iteratee(t,e):Yt(t,e,i)}function Jt(t,e,i){e=Gt(e,i);for(var n=st(t),r=n.length,s={},a=0;a<r;a++){var o=n[a];s[o]=e(t[o],o,t)}return s}function Qt(){}function Xt(t){return null==t?Qt:function(e){return Bt(t,e)}}function Zt(t,e,i){var n=Array(Math.max(0,t));e=qt(e,i,1);for(var r=0;r<t;r++)n[r]=e(r);return n}function te(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}lt.toPath=$t,lt.iteratee=Kt;var ee=Date.now||function(){return(new Date).getTime()};function ie(t){var e=function(e){return t[e]},i="(?:"+st(t).join("|")+")",n=RegExp(i),r=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(r,e):t}}var ne={"&":"&","<":"<",">":">",'"':""","'":"'","`":"`"},re=ie(ne),se=ie(Dt(ne)),ae=lt.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},oe=/(.)^/,le={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ce=/\\|'|\r|\n|\u2028|\u2029/g;function ue(t){return"\\"+le[t]}var de=/^\s*(\w|\$)+\s*$/;function he(t,e,i){!e&&i&&(e=i),e=Mt({},e,lt.templateSettings);var n=RegExp([(e.escape||oe).source,(e.interpolate||oe).source,(e.evaluate||oe).source].join("|")+"|$","g"),r=0,s="__p+='";t.replace(n,(function(e,i,n,a,o){return s+=t.slice(r,o).replace(ce,ue),r=o+e.length,i?s+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?s+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(s+="';\n"+a+"\n__p+='"),e})),s+="';\n";var a,o=e.variable;if(o){if(!de.test(o))throw new Error("variable is not a bare identifier: "+o)}else s="with(obj||{}){\n"+s+"}\n",o="obj";s="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+s+"return __p;\n";try{a=new Function(o,"_",s)}catch(t){throw t.source=s,t}var l=function(t){return a.call(this,t,lt)};return l.source="function("+o+"){\n"+s+"}",l}function pe(t,e,i){var n=(e=Ft(e)).length;if(!n)return $(i)?i.call(t):i;for(var r=0;r<n;r++){var s=null==t?void 0:t[e[r]];void 0===s&&(s=i,r=n),t=$(s)?s.call(t):s}return t}var fe=0;function ge(t){var e=++fe+"";return t?t+e:e}function me(t){var e=lt(t);return e._chain=!0,e}function ve(t,e,i,n,r){if(!(n instanceof e))return t.apply(i,r);var s=Pt(t.prototype),a=t.apply(s,r);return k(a)?a:s}var be=x((function(t,e){var i=be.placeholder,n=function(){for(var r=0,s=e.length,a=Array(s),o=0;o<s;o++)a[o]=e[o]===i?arguments[r++]:e[o];for(;r<arguments.length;)a.push(arguments[r++]);return ve(t,n,this,this,a)};return n}));be.placeholder=lt;var ye=x((function(t,e,i){if(!$(t))throw new TypeError("Bind must be called on a function");var n=x((function(r){return ve(t,n,e,this,i.concat(r))}));return n})),we=Q(nt);function _e(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var r=n.length,s=0,a=nt(t);s<a;s++){var o=t[s];if(we(o)&&(V(o)||Y(o)))if(e>1)_e(o,e-1,i,n),r=n.length;else for(var l=0,c=o.length;l<c;)n[r++]=o[l++];else i||(n[r++]=o)}return n}var xe=x((function(t,e){var i=(e=_e(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=ye(t[n],t)}return t}));function ke(t,e){var i=function(n){var r=i.cache,s=""+(e?e.apply(this,arguments):n);return z(r,s)||(r[s]=t.apply(this,arguments)),r[s]};return i.cache={},i}var Ce=x((function(t,e,i){return setTimeout((function(){return t.apply(null,i)}),e)})),Ee=be(Ce,lt,1);function Te(t,e,i){var n,r,s,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ee(),n=null,a=t.apply(r,s),n||(r=s=null)},c=function(){var c=ee();o||!1!==i.leading||(o=c);var u=e-(c-o);return r=this,s=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(r,s),n||(r=s=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=r=s=null},c}function Ae(t,e,i){var n,r,s,a,o,l=function(){var c=ee()-r;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,s)),n||(s=o=null))},c=x((function(c){return o=this,s=c,r=ee(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,s))),a}));return c.cancel=function(){clearTimeout(n),n=s=o=null},c}function De(t,e){return be(e,t)}function Se(t){return function(){return!t.apply(this,arguments)}}function Oe(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Ie(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Me=be(Ie,2);function Pe(t,e,i){e=Gt(e,i);for(var n,r=st(t),s=0,a=r.length;s<a;s++)if(e(t[n=r[s]],n,t))return n}function Le(t){return function(e,i,n){i=Gt(i,n);for(var r=nt(e),s=t>0?0:r-1;s>=0&&s<r;s+=t)if(i(e[s],s,e))return s;return-1}}var Re=Le(1),je=Le(-1);function $e(t,e,i,n){for(var r=(i=Gt(i,n,1))(e),s=0,a=nt(t);s<a;){var o=Math.floor((s+a)/2);i(t[o])<r?s=o+1:a=o}return s}function Fe(t,e,i){return function(n,r,s){var a=0,o=nt(n);if("number"==typeof s)t>0?a=s>=0?s:Math.max(s+o,a):o=s>=0?Math.min(s+1,o):s+o+1;else if(i&&s&&o)return n[s=i(n,r)]===r?s:-1;if(r!=r)return(s=e(l.call(n,a,o),G))>=0?s+a:-1;for(s=t>0?a:o-1;s>=0&&s<o;s+=t)if(n[s]===r)return s;return-1}}var He=Fe(1,Re,$e),Be=Fe(-1,je);function Ue(t,e,i){var n=(we(t)?Re:Pe)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function We(t,e){return Ue(t,Vt(e))}function Ve(t,e,i){var n,r;if(e=qt(e,i),we(t))for(n=0,r=t.length;n<r;n++)e(t[n],n,t);else{var s=st(t);for(n=0,r=s.length;n<r;n++)e(t[s[n]],s[n],t)}return t}function ze(t,e,i){e=Gt(e,i);for(var n=!we(t)&&st(t),r=(n||t).length,s=Array(r),a=0;a<r;a++){var o=n?n[a]:a;s[a]=e(t[o],o,t)}return s}function qe(t){var e=function(e,i,n,r){var s=!we(e)&&st(e),a=(s||e).length,o=t>0?0:a-1;for(r||(n=e[s?s[o]:o],o+=t);o>=0&&o<a;o+=t){var l=s?s[o]:o;n=i(n,e[l],l,e)}return n};return function(t,i,n,r){var s=arguments.length>=3;return e(t,qt(i,r,4),n,s)}}var Ye=qe(1),Ke=qe(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),Ve(t,(function(t,i,r){e(t,i,r)&&n.push(t)})),n}function Je(t,e,i){return Ge(t,Se(Gt(e)),i)}function Qe(t,e,i){e=Gt(e,i);for(var n=!we(t)&&st(t),r=(n||t).length,s=0;s<r;s++){var a=n?n[s]:s;if(!e(t[a],a,t))return!1}return!0}function Xe(t,e,i){e=Gt(e,i);for(var n=!we(t)&&st(t),r=(n||t).length,s=0;s<r;s++){var a=n?n[s]:s;if(e(t[a],a,t))return!0}return!1}function Ze(t,e,i,n){return we(t)||(t=Tt(t)),("number"!=typeof i||n)&&(i=0),He(t,e,i)>=0}var ti=x((function(t,e,i){var n,r;return $(e)?r=e:(e=Ft(e),n=e.slice(0,-1),e=e[e.length-1]),ze(t,(function(t){var s=r;if(!s){if(n&&n.length&&(t=Ht(t,n)),null==t)return;s=t[e]}return null==s?s:s.apply(t,i)}))}));function ei(t,e){return ze(t,zt(e))}function ii(t,e){return Ge(t,Vt(e))}function ni(t,e,i){var n,r,s=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=we(t)?t:Tt(t)).length;o<l;o++)null!=(n=t[o])&&n>s&&(s=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((r=e(t,i,n))>a||r===-1/0&&s===-1/0)&&(s=t,a=r)}));return s}function ri(t,e,i){var n,r,s=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=we(t)?t:Tt(t)).length;o<l;o++)null!=(n=t[o])&&n<s&&(s=n);else e=Gt(e,i),Ve(t,(function(t,i,n){((r=e(t,i,n))<a||r===1/0&&s===1/0)&&(s=t,a=r)}));return s}function si(t,e,i){if(null==e||i)return we(t)||(t=Tt(t)),t[te(t.length-1)];var n=we(t)?Rt(t):Tt(t),r=nt(n);e=Math.max(Math.min(e,r),0);for(var s=r-1,a=0;a<e;a++){var o=te(a,s),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function ai(t){return si(t,1/0)}function oi(t,e,i){var n=0;return e=Gt(e,i),ei(ze(t,(function(t,i,r){return{value:t,index:n++,criteria:e(t,i,r)}})).sort((function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index})),"value")}function li(t,e){return function(i,n,r){var s=e?[[],[]]:{};return n=Gt(n,r),Ve(i,(function(e,r){var a=n(e,r,i);t(s,e,a)})),s}}var ci=li((function(t,e,i){z(t,i)?t[i].push(e):t[i]=[e]})),ui=li((function(t,e,i){t[i]=e})),di=li((function(t,e,i){z(t,i)?t[i]++:t[i]=1})),hi=li((function(t,e,i){t[i?0:1].push(e)}),!0),pi=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function fi(t){return t?V(t)?l.call(t):S(t)?t.match(pi):we(t)?ze(t,Wt):Tt(t):[]}function gi(t){return null==t?0:we(t)?t.length:st(t).length}function mi(t,e,i){return e in i}var vi=x((function(t,e){var i={},n=e[0];if(null==t)return i;$(n)?(e.length>1&&(n=qt(n,e[1])),e=ft(t)):(n=mi,e=_e(e,!1,!1),t=Object(t));for(var r=0,s=e.length;r<s;r++){var a=e[r],o=t[a];n(o,a,t)&&(i[a]=o)}return i})),bi=x((function(t,e){var i,n=e[0];return $(n)?(n=Se(n),e.length>1&&(i=e[1])):(e=ze(_e(e,!1,!1),String),n=function(t,i){return!Ze(e,i)}),vi(t,n,i)}));function yi(t,e,i){return l.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function wi(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:yi(t,t.length-e)}function _i(t,e,i){return l.call(t,null==e||i?1:e)}function xi(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:_i(t,Math.max(0,t.length-e))}function ki(t){return Ge(t,Boolean)}function Ci(t,e){return _e(t,e,!1)}var Ei=x((function(t,e){return e=_e(e,!0,!0),Ge(t,(function(t){return!Ze(e,t)}))})),Ti=x((function(t,e){return Ei(t,e)}));function Ai(t,e,i,n){T(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var r=[],s=[],a=0,o=nt(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&s===c||r.push(l),s=c):i?Ze(s,c)||(s.push(c),r.push(l)):Ze(r,l)||r.push(l)}return r}var Di=x((function(t){return Ai(_e(t,!0,!0))}));function Si(t){for(var e=[],i=arguments.length,n=0,r=nt(t);n<r;n++){var s=t[n];if(!Ze(e,s)){var a;for(a=1;a<i&&Ze(arguments[a],s);a++);a===i&&e.push(s)}}return e}function Oi(t){for(var e=t&&ni(t,nt).length||0,i=Array(e),n=0;n<e;n++)i[n]=ei(t,n);return i}var Ni=x(Oi);function Ii(t,e){for(var i={},n=0,r=nt(t);n<r;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Mi(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),r=Array(n),s=0;s<n;s++,t+=i)r[s]=t;return r}function Pi(t,e){if(null==e||e<1)return[];for(var i=[],n=0,r=t.length;n<r;)i.push(l.call(t,n,n+=e));return i}function Li(t,e){return t._chain?lt(e).chain():e}function Ri(t){return Ve(St(t),(function(e){var i=lt[e]=t[e];lt.prototype[e]=function(){var t=[this._wrapped];return o.apply(t,arguments),Li(this,i.apply(lt,t))}})),lt}Ve(["pop","push","reverse","shift","sort","splice","unshift"],(function(t){var e=r[t];lt.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Li(this,i)}})),Ve(["concat","join","slice"],(function(t){var e=r[t];lt.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Li(this,t)}}));var ji=Ri({__proto__:null,VERSION:i,restArguments:x,isObject:k,isNull:C,isUndefined:E,isBoolean:T,isElement:A,isString:S,isNumber:O,isDate:N,isRegExp:I,isError:M,isSymbol:P,isArrayBuffer:L,isDataView:W,isArray:V,isFunction:$,isArguments:Y,isFinite:K,isNaN:G,isTypedArray:it,isEmpty:at,isMatch:ot,isEqual:pt,isMap:xt,isWeakMap:kt,isSet:Ct,isWeakSet:Et,keys:st,allKeys:ft,values:Tt,pairs:At,invert:Dt,functions:St,methods:St,extend:Nt,extendOwn:It,assign:It,defaults:Mt,create:Lt,clone:Rt,tap:jt,get:Bt,has:Ut,mapObject:Jt,identity:Wt,constant:J,noop:Qt,toPath:$t,property:zt,propertyOf:Xt,matcher:Vt,matches:Vt,times:Zt,random:te,now:ee,escape:re,unescape:se,templateSettings:ae,template:he,result:pe,uniqueId:ge,chain:me,iteratee:Kt,partial:be,bind:ye,bindAll:xe,memoize:ke,delay:Ce,defer:Ee,throttle:Te,debounce:Ae,wrap:De,negate:Se,compose:Oe,after:Ne,before:Ie,once:Me,findKey:Pe,findIndex:Re,findLastIndex:je,sortedIndex:$e,indexOf:He,lastIndexOf:Be,find:Ue,detect:Ue,findWhere:We,each:Ve,forEach:Ve,map:ze,collect:ze,reduce:Ye,foldl:Ye,inject:Ye,reduceRight:Ke,foldr:Ke,filter:Ge,select:Ge,reject:Je,every:Qe,all:Qe,some:Xe,any:Xe,contains:Ze,includes:Ze,include:Ze,invoke:ti,pluck:ei,where:ii,max:ni,min:ri,shuffle:ai,sample:si,sortBy:oi,groupBy:ci,indexBy:ui,countBy:di,partition:hi,toArray:fi,size:gi,pick:vi,omit:bi,first:wi,head:wi,take:wi,initial:yi,last:xi,rest:_i,tail:_i,drop:_i,compact:ki,flatten:Ci,without:Ti,uniq:Ai,unique:Ai,union:Di,intersection:Si,difference:Ei,unzip:Oi,transpose:Oi,zip:Ni,object:Ii,range:Mi,chunk:Pi,mixin:Ri,default:lt});ji._=ji,e.VERSION=i,e._=ji,e._escape=re,e._unescape=se,e.after=Ne,e.allKeys=ft,e.before=Ie,e.bind=ye,e.bindAll=xe,e.chain=me,e.chunk=Pi,e.clone=Rt,e.compact=ki,e.compose=Oe,e.constant=J,e.contains=Ze,e.countBy=di,e.create=Lt,e.debounce=Ae,e.defaults=Mt,e.defer=Ee,e.delay=Ce,e.difference=Ei,e.each=Ve,e.every=Qe,e.extend=Nt,e.extendOwn=It,e.filter=Ge,e.find=Ue,e.findIndex=Re,e.findKey=Pe,e.findLastIndex=je,e.findWhere=We,e.first=wi,e.flatten=Ci,e.functions=St,e.get=Bt,e.groupBy=ci,e.has=Ut,e.identity=Wt,e.indexBy=ui,e.indexOf=He,e.initial=yi,e.intersection=Si,e.invert=Dt,e.invoke=ti,e.isArguments=Y,e.isArray=V,e.isArrayBuffer=L,e.isBoolean=T,e.isDataView=W,e.isDate=N,e.isElement=A,e.isEmpty=at,e.isEqual=pt,e.isError=M,e.isFinite=K,e.isFunction=$,e.isMap=xt,e.isMatch=ot,e.isNaN=G,e.isNull=C,e.isNumber=O,e.isObject=k,e.isRegExp=I,e.isSet=Ct,e.isString=S,e.isSymbol=P,e.isTypedArray=it,e.isUndefined=E,e.isWeakMap=kt,e.isWeakSet=Et,e.iteratee=Kt,e.keys=st,e.last=xi,e.lastIndexOf=Be,e.map=ze,e.mapObject=Jt,e.matcher=Vt,e.max=ni,e.memoize=ke,e.min=ri,e.mixin=Ri,e.negate=Se,e.noop=Qt,e.now=ee,e.object=Ii,e.omit=bi,e.once=Me,e.pairs=At,e.partial=be,e.partition=hi,e.pick=vi,e.pluck=ei,e.property=zt,e.propertyOf=Xt,e.random=te,e.range=Mi,e.reduce=Ye,e.reduceRight=Ke,e.reject=Je,e.rest=_i,e.restArguments=x,e.result=pe,e.sample=si,e.shuffle=ai,e.size=gi,e.some=Xe,e.sortBy=oi,e.sortedIndex=$e,e.tap=jt,e.template=he,e.templateSettings=ae,e.throttle=Te,e.times=Zt,e.toArray=fi,e.toPath=$t,e.union=Di,e.uniq=Ai,e.uniqueId=ge,e.unzip=Oi,e.values=Tt,e.where=ii,e.without=Ti,e.wrap=De,e.zip=Ni}).call(this,i(16))},function(t,e){var i;void 0===(i=jQuery).fn.each2&&i.extend(i.fn,{each2:function(t){for(var e=i([0]),n=-1,r=this.length;++n<r&&(e.context=e[0]=this[n])&&!1!==t.call(e[0],n,e););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,n,r,s,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h="<div class='select2-measure-scrollbar'></div>",p={"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A","Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D","Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H","Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M","Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O","Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T","Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y","Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av","ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e","ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k","ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o","õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r","ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u","ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z"};o=t(document),c=1,s=function(){return c++},o.on("mousemove",(function(t){u.x=t.pageX,u.y=t.pageY})),i=N(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,r,a,o,c,d=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+s()),this.containerSelector="#"+this.containerId.replace(/([;&,\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.body=(a=function(){return i.element.closest("body")},c=!1,function(){return!1===c&&(o=a(),c=!0),o}),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(S(i.containerCss)),this.container.addClass(S(i.containerCssClass)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(i.dropdownCssClass)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=n=this.container.find(d),this.search=r=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",(function(i){var n=u;n!==e&&n.x===i.pageX&&n.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)})),this.dropdown.on("mousemove-filtered touchstart touchmove touchend",d,this.bind(this.highlightUnderEvent)),function(t,e){var i=w(t,(function(t){e.trigger("scroll-debounced",t)}));e.on("scroll",(function(t){g(t.target,e.get())>=0&&i(t)}))}(80,this.results),this.dropdown.on("scroll-debounced",d,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",(function(t){t.stopPropagation()})),t(this.dropdown).on("change",".select2-input",(function(t){t.stopPropagation()})),t.fn.mousewheel&&n.mousewheel((function(t,e,i,r){var s=n.scrollTop();r>0&&s-r<=0?(n.scrollTop(0),_(t)):r<0&&n.get(0).scrollHeight-n.scrollTop()+r<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),_(t))})),y(r),r.on("keyup-change input paste",this.bind(this.updateResults)),r.on("focus",(function(){r.addClass("select2-focused")})),r.on("blur",(function(){r.removeClass("select2-focused")})),this.dropdown.on("mouseup",d,this.bind((function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))}))),this.dropdown.on("click mouseup mousedown",(function(t){t.stopPropagation()})),t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var p=i.element.prop("disabled");p===e&&(p=!1),this.enable(!p);var f=i.element.prop("readonly");f===e&&(f=!1),this.readonly(f),l=l||function(){var e=t(h);e.appendTo("body");var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.nextSearchTerm=e},destroy:function(){var t=this.opts.element,i=t.data("select2");this.close(),this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),i!==e&&(i.container.remove(),i.dropdown.remove(),t.removeClass("select2-offscreen").removeData("select2").off(".select2").prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:m(t.attr("locked"),"locked")||m(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,r,s,a,o=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=r=i.element),r&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],(function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")})),"function"!=typeof(i=t.extend({},{populateResults:function(n,r,s){var a,l=this.opts.id;a=function(n,r,c){var u,d,h,p,f,g,m,v,b,y;for(u=0,d=(n=i.sortResults(n,r,s)).length;u<d;u+=1)p=!(f=!0===(h=n[u]).disabled)&&l(h)!==e,g=h.children&&h.children.length>0,(m=t("<li></li>")).addClass("select2-results-dept-"+c),m.addClass("select2-result"),m.addClass(p?"select2-result-selectable":"select2-result-unselectable"),f&&m.addClass("select2-disabled"),g&&m.addClass("select2-result-with-children"),m.addClass(o.opts.formatResultCssClass(h)),(v=t(document.createElement("div"))).addClass("select2-result-label"),(y=i.formatResult(h,v,s,o.opts.escapeMarkup))!==e&&v.html(y),m.append(v),g&&((b=t("<ul></ul>")).addClass("select2-result-sub"),a(h.children,b,c+1),m.append(b)),m.data("select2-data",h),r.append(m)},a(r,n,0)}},t.fn.select2.defaults,i)).id&&(s=i.id,i.id=function(t){return t[s]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(r?(i.query=this.bind((function(t){var i,r,s,a={results:[],more:!1},l=t.term;s=function(e,i){var n;e.is("option")?t.matcher(l,e.text(),e)&&i.push(o.optionToData(e)):e.is("optgroup")&&(n=o.optionToData(e),e.children().each2((function(t,e){s(e,n.children)})),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(r=this.getPlaceholderOption())&&(i=i.not(r)),i.each2((function(t,e){s(e,a.results)})),t.callback(a)})),i.id=function(t){return t.id},i.formatResultCssClass=function(t){return t.css}):"query"in i||("ajax"in i?((a=i.element.data("ajax-url"))&&a.length>0&&(i.ajax.url=a),i.query=E.call(i.element,i.ajax)):"data"in i?i.query=T(i.data):"tags"in i&&(i.query=A(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var r=[];t(v(e.val(),i.separator)).each((function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each((function(){if(m(this.id,e.id))return e=this,!1})),r.push(e)})),n(r)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");return i},monitorSource:function(){var t,i,n=this.opts.element;n.on("change.select2",this.bind((function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()}))),t=this.bind((function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass)),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass))})),n.on("propertychange.select2",t),this.mutationCallback===e&&(this.mutationCallback=function(e){e.forEach(t)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(this.mutationCallback),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){return t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface(),!0)},opened:function(){return this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,r,s,a=this.dropdown,o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),h=t(window),p=h.width(),f=h.height(),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,b=o.left,y=v+d<=m,w=o.top-d>=this.body().scrollTop(),_=a.outerWidth(!1),x=b+_<=g;a.hasClass("select2-drop-above")?(i=!0,!w&&y&&(n=!0,i=!1)):(i=!1,!y&&w&&(n=!0,i=!0)),n&&(a.hide(),o=this.container.offset(),c=this.container.outerHeight(!1),u=this.container.outerWidth(!1),d=a.outerHeight(!1),g=h.scrollLeft()+p,m=h.scrollTop()+f,v=o.top+c,x=(b=o.left)+(_=a.outerWidth(!1))<=g,a.show()),this.opts.dropdownAutoWidth?(s=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(_=a.outerWidth(!1)+(s.scrollHeight===s.clientHeight?0:l.width))>u?u=_:_=u,x=b+_<=g):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body().css("position")&&(v-=(e=this.body().offset()).top,b-=e.left),x||(b=o.left+u-_),r={left:b,width:u},i?(r.bottom=f-o.top,r.top="auto",this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above")):(r.top=v,r.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),r=t.extend(r,S(this.opts.dropdownCss)),a.css(r)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),!0)},opening:function(){var e,i=this.containerId,n="scroll."+i,r="resize."+i,s="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body().children().last()[0]&&this.dropdown.detach().appendTo(this.body()),0==(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body()),e.on("mousedown touchstart click",(function(e){var i,n=t("#select2-drop");n.length>0&&((i=n.data("select2")).opts.selectOnBlur&&i.selectHighlighted({noFocus:!0}),i.close({focus:!0}),e.preventDefault(),e.stopPropagation())}))),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each((function(){t(this).on(r+" "+n+" "+s,(function(t){a.positionDropdown()}))}))},close:function(){if(this.opened()){var e=this.containerId,i="scroll."+e,n="resize."+e,r="orientationchange."+e;this.container.parents().add(window).each((function(){t(this).off(i).off(n).off(r)})),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),this.clearSearch(),this.search.removeClass("select2-active"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize)},ensureHighlightVisible:function(){var e,i,n,r,s,a,o,l=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),r=(n=t(e[i])).offset().top+n.outerHeight(!0),i===e.length-1&&(o=l.find("li.select2-more-results")).length>0&&(r=o.offset().top+o.outerHeight(!0)),r>(s=l.offset().top+l.outerHeight(!0))&&l.scrollTop(l.scrollTop()+(r-s)),(a=n.offset().top-l.offset().top)<0&&"none"!=n.css("display")&&l.scrollTop(l.scrollTop()+a)):l.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled, .select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var r=t(i[n+=e]);if(r.hasClass("select2-result-selectable")&&!r.hasClass("select2-disabled")&&!r.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,r=this.findHighlightableChoices();if(0===arguments.length)return g(r.filter(".select2-highlighted")[0],r.get());e>=r.length&&(e=r.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(r[e])).addClass("select2-highlighted"),this.ensureHighlightVisible(),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,r=this.search.val(),s=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:r,page:i,context:s,matcher:this.opts.matcher,callback:this.bind((function(a){n.opened()&&(n.opts.populateResults.call(this,t,a.results,{term:r,page:i,context:s}),n.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).text(n.opts.formatLoadMore(i+1)),window.setTimeout((function(){n.loadMoreIfNeeded()}),10)):e.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))}))}))},tokenize:function(){},updateResults:function(i){var n,r,s,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!m(u,d))&&(t.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){s=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),t.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+l.formatInputTooShort(a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+l.formatInputTooLong(a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+l.formatSearching()+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(r=this.tokenize())!=e&&null!=r&&a.val(r),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind((function(n){var r;s==this.queryCount&&(this.opened()?(this.context=n.context===e?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(r=this.opts.createSearchChoice.call(c,a.val(),n.results))!==e&&null!==r&&c.id(r)!==e&&null!==c.id(r)&&0===t(n.results).filter((function(){return m(c.id(this),c.id(r))})).length&&n.results.unshift(r),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches")?f("<li class='select2-no-results'>"+l.formatNoMatches(a.val())+"</li>"):(o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+c.opts.escapeMarkup(l.formatLoadMore(this.resultsPage))+"</li>"),window.setTimeout((function(){c.loadMoreIfNeeded()}),10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n}))):this.search.removeClass("select2-active"))}))})));f("<li class='select2-selection-limit'>"+l.formatSelectionTooBig(h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown()}function f(t){o.html(t),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout((function(){var e,i=t[0],n=t.val().length;t.focus(),t.is(":visible")&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))}),0)},selectHighlighted:function(t){var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var t=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&t||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.text()&&""===t.val())return t}},initContainerWidth:function(){var i=function(){var i,n,r,s,a;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if((i=this.opts.element.attr("style"))!==e)for(s=0,a=(n=i.split(";")).length;s<a;s+=1)if(null!==(r=n[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&r.length>=1)return r[1];return"resolve"===this.opts.width?(i=this.opts.element.css("width")).indexOf("%")>0?i:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==i&&this.container.css("width",i)}}),n=N(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'> </span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow'><b></b></span>","</a>","<input class='select2-focusser select2-offscreen' type='text'/>","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'/>"," </div>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var i,n,r;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.search.focus(),(i=this.search.get(0)).createTextRange?((n=i.createTextRange()).collapse(!1),n.select()):i.setSelectionRange&&(r=this.search.val().length,i.setSelectionRange(r,r)),""===this.search.val()&&this.nextSearchTerm!=e&&(this.search.val(this.nextSearchTerm),this.search.select()),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(t){this.opened()&&(this.parent.close.apply(this,arguments),t=t||{focus:!0},this.focusser.removeAttr("disabled"),t.focus&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.removeAttr("disabled"),this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.removeAttr("disabled"),this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=this.container,n=this.dropdown;this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=i.find(".select2-choice"),this.focusser=i.find(".select2-focusser"),this.focusser.attr("id","s2id_autogen"+s()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.focusser.attr("id")),this.focusser.attr("tabindex",this.elementTabIndex),this.search.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled())if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void _(t);case d.ENTER:return this.selectHighlighted(),void _(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void _(t)}else _(t)}))),this.search.on("blur",this.bind((function(t){document.activeElement===this.body().get(0)&&window.setTimeout(this.bind((function(){this.search.focus()})),0)}))),this.focusser.on("keydown",this.bind((function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void _(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(t)):void 0}_(t)}}))),y(this.focusser),this.focusser.on("keyup-change input",this.bind((function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}}))),e.on("mousedown","abbr",this.bind((function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection.focus())}))),e.on("mousedown",this.bind((function(e){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(e)}))),n.on("mousedown",this.bind((function(){this.search.focus()}))),e.on("focus",this.bind((function(t){_(t)}))),this.focusser.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))).on("blur",this.bind((function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))}))),this.search.on("focus",this.bind((function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var r=this.getPlaceholderOption();this.opts.element.val(r?r.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder())}))}},isPlaceholderOptionSelected:function(){var t;return!!this.getPlaceholder()&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter((function(){return this.selected}));e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var r=i.val(),s=null;e.query({matcher:function(t,i,n){var a=m(r,e.id(n));return a&&(s=n),a},callback:t.isFunction(n)?function(){n(s)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,r=this;if(this.findHighlightableChoices().each2((function(t,e){if(m(r.id(e.data("select2-data")),r.opts.element.val()))return n=t,!1})),!1!==i&&(!0===e&&n>=0?this.highlight(n):this.highlight(0)),!0===e){var s=this.opts.minimumResultsForSearch;s>=0&&this.showSearch(O(t.results)>=s)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.nextSearchTerm=this.opts.nextSearchTerm(t,this.search.val()),this.close(),e&&e.noFocus||this.focusser.focus(),m(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,r=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),r.empty(),null!==t&&(i=this.opts.formatSelection(t,r,this.opts.escapeMarkup)),i!==e&&r.append(i),(n=this.opts.formatSelectionCssClass(t,r))!==e&&r.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,r=this,s=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1]),this.select)this.select.val(t).find("option").filter((function(){return this.selected})).each2((function(t,e){return n=r.optionToData(e),!1})),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:s});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,(function(t){r.opts.element.val(t?r.id(t):""),r.updateSelection(t),r.setPlaceholder(),i&&r.triggerChange({added:t,removed:s})}))}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;arguments.length>1&&(n=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)}}),r=N(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter((function(){return this.selected})).each2((function(t,e){n.push(i.optionToData(e))})),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var r=v(i.val(),e.separator),s=[];e.query({matcher:function(i,n,a){var o=t.grep(r,(function(t){return m(t,e.id(a))})).length;return o&&s.push(a),o},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<r.length;i++)for(var a=r[i],o=0;o<s.length;o++){var l=s[o];if(m(a,e.id(l))){t.push(l),s.splice(o,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments)},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-search-choice:not(.select2-locked)",(function(e){n.search[0].focus(),n.selectChoice(t(this))})),this.search.attr("id","s2id_autogen"+s()),t("label[for='"+this.opts.element.attr("id")+"']").attr("for",this.search.attr("id")),this.search.on("input paste",this.bind((function(){this.isInterfaceEnabled()&&(this.opened()||this.open())}))),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind((function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=e.find(".select2-search-choice-focus"),r=n.prev(".select2-search-choice:not(.select2-locked)"),s=n.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var r=document.selection.createRange();n=document.selection.createRange().text.length,r.moveStart("character",-e.value.length),i=r.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&r.length?o=r:i.which==d.RIGHT?o=s.length?s:null:i.which===d.BACKSPACE?(this.unselect(n.first()),this.search.width(10),o=r.length?r:s):i.which==d.DELETE?(this.unselect(n.first()),this.search.width(10),o=s.length?s:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),_(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void _(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void _(i);case d.ENTER:return this.selectHighlighted(),void _(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void _(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||_(i),i.which===d.ENTER&&_(i)}}}))),this.search.on("keyup",this.bind((function(t){this.keydowns=0,this.resizeSearch()}))),this.search.on("blur",this.bind((function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))}))),this.container.on("click",i,this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))}))),this.container.on("focus",i,this.bind((function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())}))),this.initContainerWidth(),this.opts.element.addClass("select2-offscreen"),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,(function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())}))}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.updateResults(!0),this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i=[],n=[],r=this;t(e).each((function(){g(r.id(this),i)<0&&(i.push(r.id(this)),n.push(this))})),e=n,this.selection.find(".select2-search-choice").remove(),t(e).each((function(){r.addSelectedChoice(this)})),r.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()&&this.updateResults(!0),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(i){var n,r,s=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=s?a:o,c=this.id(i),u=this.getVal();(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith("<div>"+n+"</div>"),(r=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(r),s&&l.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind((function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").fadeOut("fast",this.bind((function(){this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),this.close(),this.focusSearch()}))).dequeue(),_(e))}))).on("focus",this.bind((function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))}))),l.data("select2-data",i),l.insertBefore(this.searchContainer),u.push(c),this.setVal(u)},unselect:function(e){var i,n,r=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){for(;(n=g(this.id(i),r))>=0;)r.splice(n,1),this.setVal(r),this.select&&this.postprocessResults();var s=t.Event("select2-removing");s.val=this.id(i),s.choice=i,this.opts.element.trigger(s),s.isDefaultPrevented()||(e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},postprocessResults:function(t,e,i){var n=this.getVal(),r=this.results.find(".select2-result"),s=this.results.find(".select2-result-with-children"),a=this;r.each2((function(t,e){g(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))})),s.each2((function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")})),-1==this.highlight()&&!1!==i&&a.highlight(0),!this.opts.createSearchChoice&&!r.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+a.opts.formatNoMatches(a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-b(this.search)},resizeSearch:function(){var e,i,n,r,s=b(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t("body").append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(r=(n=this.selection.width())-(i-this.selection.offset().left)-s)<e&&(r=n-s),r<40&&(r=n-s),r<=0&&(r=e),this.search.width(Math.floor(r))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:v(t=this.opts.element.val(),this.opts.separator)},setVal:function(e){var i;this.select?this.select.val(e):(i=[],t(e).each((function(){g(this,i)<0&&i.push(this)})),this.opts.element.val(0===i.length?"":i.join(this.opts.separator)))},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var n=0;n<t.length;n++)m(this.opts.id(e[i]),this.opts.id(t[n]))&&(e.splice(i,1),i>0&&i--,t.splice(n,1),n--);return{added:e,removed:t}},val:function(i,n){var r,s=this;if(0===arguments.length)return this.getVal();if((r=this.data()).length||(r=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:r}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(r,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,(function(e){var i=t.map(e,s.id);s.setVal(i),s.updateSelection(e),s.clearSearch(),n&&s.triggerChange(s.buildChangeDetails(r,s.data()))}))}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each((function(){e.push(i.opts.id(t(this).data("select2-data")))})),this.setVal(e),this.triggerChange()},data:function(e,i){var n,r,s=this;if(0===arguments.length)return this.selection.find(".select2-search-choice").map((function(){return t(this).data("select2-data")})).get();r=this.data(),e||(e=[]),n=t.map(e,(function(t){return s.opts.id(t)})),this.setVal(n),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(r,this.data()))}}),t.fn.select2=function(){var i,s,a,o,l,c=Array.prototype.slice.call(arguments,0),u=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],d=["opened","isFocused","container","dropdown"],h=["val","data"],p={search:"externalSearch"};return this.each((function(){if(0===c.length||"object"==typeof c[0])(i=0===c.length?{}:t.extend({},c[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?l=i.element.prop("multiple"):(l=i.multiple||!1,"tags"in i&&(i.multiple=l=!0)),(s=l?new r:new n).init(i);else{if("string"!=typeof c[0])throw"Invalid arguments to select2 plugin: "+c;if(g(c[0],u)<0)throw"Unknown method: "+c[0];if(o=e,(s=t(this).data("select2"))===e)return;if("container"===(a=c[0])?o=s.container:"dropdown"===a?o=s.dropdown:(p[a]&&(a=p[a]),o=s[a].apply(s,c.slice(1))),g(c[0],d)>=0||g(c[0],h)&&1==c.length)return!1}})),o===e?this:o},t.fn.select2.defaults={width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var r=[];return k(t.text,i.term,r,n),r.join("")},formatSelection:function(t,i,n){return t?n(t.text):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return e},formatSelectionCssClass:function(t,i){return e},formatNoMatches:function(){return"No matches found"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results..."},formatSearching:function(){return"Searching..."},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t.id},matcher:function(t,e){return f(""+e).toUpperCase().indexOf(f(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,n,r){var s,a,o,l,c,u=t,d=!1;if(!r.createSearchChoice||!r.tokenSeparators||r.tokenSeparators.length<1)return e;for(;;){for(a=-1,o=0,l=r.tokenSeparators.length;o<l&&(c=r.tokenSeparators[o],!((a=t.indexOf(c))>=0));o++);if(a<0)break;if(s=t.substring(0,a),t=t.substring(a+c.length),s.length>0&&(s=r.createSearchChoice.call(this,s,i))!==e&&null!==s&&r.id(s)!==e&&null!==r.id(s)){for(d=!1,o=0,l=i.length;o<l;o++)if(m(r.id(s),r.id(i[o]))){d=!0;break}d||n(s)}}return u!==t?t:void 0},escapeMarkup:C,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e}},t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:T,tags:A},util:{debounce:w,markMatch:k,escapeMarkup:C,stripDiacritics:f},class:{abstract:i,single:n,multi:r}}}function f(t){var e,i,n,r;if(!t||t.length<1)return t;for(e="",i=0,n=t.length;i<n;i++)r=t.charAt(i),e+=p[r]||r;return e}function g(t,e){for(var i=0,n=e.length;i<n;i+=1)if(m(t,e[i]))return i;return-1}function m(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function v(e,i){var n,r,s;if(null===e||e.length<1)return[];for(r=0,s=(n=e.split(i)).length;r<s;r+=1)n[r]=t.trim(n[r]);return n}function b(t){return t.outerWidth(!1)-t.width()}function y(i){var n="keyup-change-value";i.on("keydown",(function(){t.data(i,n)===e&&t.data(i,n,i.val())})),i.on("keyup",(function(){var r=t.data(i,n);r!==e&&i.val()!==r&&(t.removeData(i,n),i.trigger("keyup-change"))}))}function w(t,i,n){var r;return n=n||e,function(){var e=arguments;window.clearTimeout(r),r=window.setTimeout((function(){i.apply(n,e)}),t)}}function _(t){t.preventDefault(),t.stopPropagation()}function x(e,i,n){var r,s,a=[];(r=e.attr("class"))&&t((r=""+r).split(" ")).each2((function(){0===this.indexOf("select2-")&&a.push(this)})),(r=i.attr("class"))&&t((r=""+r).split(" ")).each2((function(){0!==this.indexOf("select2-")&&(s=n(this))&&a.push(s)})),e.attr("class",a.join(" "))}function k(t,e,i,n){var r=f(t.toUpperCase()).indexOf(f(e.toUpperCase())),s=e.length;r<0?i.push(n(t)):(i.push(n(t.substring(0,r))),i.push("<span class='select2-match'>"),i.push(n(t.substring(r,r+s))),i.push("</span>"),i.push(n(t.substring(r+s,t.length))))}function C(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))}function E(i){var n,r=null,s=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout((function(){var n=i.data,s=a,c=i.transport||t.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,s="function"==typeof s?s.call(o,l.term,l.page,l.context):s,r&&r.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(o)):t.extend(d,i.params)),t.extend(d,{url:s,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page);l.callback(e)}}),r=c.call(o,d)}),s)}}function T(e){var i,n,r=e,s=function(t){return""+t.text};t.isArray(r)&&(r={results:n=r}),!1===t.isFunction(r)&&(n=r,r=function(){return n});var a=r();return a.text&&(s=a.text,t.isFunction(s)||(i=a.text,s=function(t){return t[i]})),function(e){var i,n=e.term,a={results:[]};""!==n?(i=function(r,a){var o,l;if((r=r[0]).children){for(l in o={},r)r.hasOwnProperty(l)&&(o[l]=r[l]);o.children=[],t(r.children).each2((function(t,e){i(e,o.children)})),(o.children.length||e.matcher(n,s(o),r))&&a.push(o)}else e.matcher(n,s(r),r)&&a.push(r)},t(r().results).each2((function(t,e){i(e,a.results)})),e.callback(a)):e.callback(r())}}function A(i){var n=t.isFunction(i);return function(r){var s=r.term,a={results:[]};t(n?i():i).each((function(){var t=this.text!==e,i=t?this.text:this;(""===s||r.matcher(s,i))&&a.results.push(t?this:{id:this,text:this})})),r.callback(a)}}function D(e,i){if(t.isFunction(e))return!0;if(!e)return!1;throw new Error(i+" must be a function or a falsy value")}function S(e){return t.isFunction(e)?e():e}function O(e){var i=0;return t.each(e,(function(t,e){e.children?i+=O(e.children):i++})),i}function N(e,i){var n=function(){};return(n.prototype=new e).constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}}(jQuery)},function(t,e){
|
|
63
63
|
/**!
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
64
|
+
* TableSorter 2.17.8 - Client-side table sorting with ease!
|
|
65
|
+
* @requires jQuery v1.2.6+
|
|
66
|
+
*
|
|
67
|
+
* Copyright (c) 2007 Christian Bach
|
|
68
|
+
* Examples and docs at: http://tablesorter.com
|
|
69
|
+
* Dual licensed under the MIT and GPL licenses:
|
|
70
|
+
* http://www.opensource.org/licenses/mit-license.php
|
|
71
|
+
* http://www.gnu.org/licenses/gpl.html
|
|
72
|
+
*
|
|
73
|
+
* @type jQuery
|
|
74
|
+
* @name tablesorter
|
|
75
|
+
* @cat Plugins/Tablesorter
|
|
76
|
+
* @author Christian Bach/christian.bach@polyester.se
|
|
77
|
+
* @contributor Rob Garrison/https://github.com/Mottie/tablesorter
|
|
78
|
+
*/
|
|
79
|
+
/**!
|
|
80
|
+
* Modified by Atlassian.
|
|
78
81
|
*/
|
|
79
|
-
!function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function r(t){for(var e in t)return!1;return!0}function s(i,n,r){if(!n)return"";var s,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,r):"function"==typeof(s=e.getColumnData(i,o,r))?s(n,i,r):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,r,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++r]?(u=s(t,c=n[r].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+r+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var r,s,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),s={extractors:[],parsers:[]};v<y;){if((r=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top"),g.strings[l]=e.getData(c,u,"string")||g.stringTo||"max",d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,r,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),s.parsers[l]=h,s.extractors[l]=p;v+=s.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=s.parsers,g.extractors=s.extractors}function l(r){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=r.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(r,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=s(r,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,r,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,r,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(r),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,s){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(r(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),s||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(r){var s,a,o,l,c,d,h,f=r.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(r).find(f.selectorHeaders).each((function(i){a=t(this),s=e.getColumnData(r,f.headers,i,!0),f.headerContent[i]=t(this).html(),c=f.headerTemplate.replace(/\{content\}/g,t(this).html()).replace(/\{icon\}/g,l),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>"),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,s,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,s,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(r),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,r,s,a=i.config;a.$headers.each((function(o,l){r=t(l),s=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,s,"sorter")||"false"===e.getData(l,s,"parser"),l.sortDisabled=n,r[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?r.removeAttr("aria-controls"):r.attr("aria-controls",i.id))}))}function f(i){var n,r,s,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),r=0;r<l;r++)if(2!==o[r][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[r][0]+'"]'+(1===l?":last":""))).length){for(s=0;s<n.length;s++)n[s].sortDisabled||n.eq(s).removeClass(c).addClass(u[o[r][1]]).attr("aria-sort",d[o[r][1]]);h.length&&h.filter('[data-column="'+o[r][0]+'"]').removeClass(c).addClass(u[o[r][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],r=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",r)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,r){if(i.isUpdating)return setTimeout((function(){m(i,n,r)}),50);var s,a,o,l,u,d=i.config,h=!r[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=r[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(s=d.sortForce,o=0;o<s.length;o++)s[o][0]!==a&&d.sortList.push(s[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(s=d.sortAppend,o=0;o<s.length;o++)s[o][0]!==a&&d.sortList.push(s[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,s,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!r(m.cache)){for(m.debug&&(l=new Date),s=0;s<w;s++)c=m.cache[s].colMax,m.cache[s].normalized.sort((function(n,r){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===r[o]&&1===y)return n[m.columns].order-r[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],r[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],r[o],a,c[o],o,t)):(h=f?n:r,p=f?r:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],r[o],o,t,m)),d)return d}return n[m.columns].order-r[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){e[0].isUpdating&&e.trigger("updateComplete"),t.isFunction(i)&&i(e[0])}function y(t,i,n){var r=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&r.length?t.trigger("sorton",[r,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,r){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(r)&&r(i)})).bind("updateAll"+n.namespace,(function(t,r,s){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,r,s)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,r,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(r),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");r=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?s(i,r,h):n.extractors[h].format(s(i,r,h),i,r,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,r,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,r(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?s(i,l[d].cells[f],f):n.extractors[f].format(s(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,s,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,r,s,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),s=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(r=(r=(""+i[1]).match(/^(1|d|s|o|n)/))?r[0]:""){case"1":case"d":r=1;break;case"s":r=o||0;break;case"o":n=s.order[(o||0)%(l.sortReset?3:2)],r=0===n?1:1===n?0:2;break;case"n":s.count=s.count+1,r=s.order[s.count%(l.sortReset?3:2)];break;default:r=0}o=0===e?r:o,n=[a,parseInt(r,10)||0],l.sortList.push(n),r=t.inArray(n[1],s.order),s.count=r>=0?r:n[1]%(l.sortReset?3:2)}}))}(i,s),f(i),d.delayInit&&r(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,r){e.stopPropagation(),c(i,r),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,r){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(r)&&r(i)})).bind("applyWidgetId"+n.namespace,(function(t,r){t.stopPropagation(),e.getWidgetById(r).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,r){t.stopPropagation(),e.refreshWidgets(i,n,r)})).bind("destroy"+n.namespace,(function(t,n,r){t.stopPropagation(),e.destroy(i,n,r)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.7",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,r=t.extend(!0,{},e.defaults,i);r.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,r):e.setup(n,r)}))},e.setup=function(n,r){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return r.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var s,a="",c=t(n),u=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=r,t.data(n,"tablesorter",r),r.debug&&t.data(n,"startoveralltimer",new Date),r.supportsDataObject=((s=t.fn.jquery.split("."))[0]=parseInt(s[0],10),s[0]>1||1===s[0]&&parseInt(s[1],10)>=4),r.string={max:1,min:-1,emptyMin:1,emptyMax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},/tablesorter\-/.test(c.attr("class"))||(a=""!==r.theme?" tablesorter-"+r.theme:""),r.table=n,r.$table=c.addClass(e.css.table+" "+r.tableClass+a).attr("role","grid"),r.$headers=c.find(r.selectorHeaders),r.namespace?r.namespace="."+r.namespace.replace(/\W/g,""):r.namespace=".tablesorter"+Math.random().toString(16).slice(2),r.$table.children().children("tr").attr("role","row"),r.$tbodies=c.children("tbody:not(."+r.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),r.$table.find("caption").length&&r.$table.attr("aria-labelledby","theCaption"),r.widgetInit={},r.textExtraction=r.$table.attr("data-text-extraction")||r.textExtraction||"basic",d(n),function(e){if(e.config.widthFixed&&0===t(e).find("colgroup").length){var i=t("<colgroup>"),n=t(e).width();t(e.tBodies[0]).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),t(e).prepend(i)}}(n),o(n),r.totalRows=0,r.delayInit||l(n),e.bindEvents(n,r.$headers,!0),w(n),r.supportsDataObject&&void 0!==c.data().sortlist?r.sortList=c.data().sortlist:u&&c.metadata()&&c.metadata().sortlist&&(r.sortList=c.metadata().sortlist),e.applyWidget(n,!0),r.sortList.length>0?c.trigger("sorton",[r.sortList,{},!r.initWidgets,!0]):(f(n),r.initWidgets&&e.applyWidget(n,!1)),r.showProcessing&&c.unbind("sortBegin"+r.namespace+" sortEnd"+r.namespace).bind("sortBegin"+r.namespace+" sortEnd"+r.namespace,(function(t){clearTimeout(r.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(r.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,r.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),c.trigger("tablesorter-initialized",n),"function"==typeof r.initialized&&r.initialized(n)},e.getColumnData=function(e,i,n,r){if(null!=i){var s,a=(e=t(e)[0]).config;if(i[n])return r?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(s in i)if("string"==typeof s&&(r?a.$headers.eq(n).filter(s):a.$headers.filter('[data-column="'+n+'"]:last').filter(s)).length)return i[s]}},e.computeColumnIndex=function(e){var i,n,r,s,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),r=0;r<g[c].length+1;r++)if(void 0===g[c][r]){p=r;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),r=c;r<c+d;r++)for(void 0===g[r]&&(g[r]=[]),f=g[r],s=p;s<p+h;s++)f[s]="x"}return v+1},e.isProcessing=function(i,n,r){var s=(i=t(i))[0].config,a=r||i.find("."+e.css.header);n?(void 0!==r&&s.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),s.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+s.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+s.cssProcessing)},e.processTbody=function(e,i,n){var r;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),r=t.fn.detach?i.detach():i.remove();r=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(r),r.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var s,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-s>250)){if("mousedown"===u)return s=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&r(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,r){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var s=t(i),a=i.config,o=s.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=s.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(s.trigger("applyWidgetId",["uitheme"]),s.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),s.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),s.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof r&&r(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,r,s,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((r=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(r>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),s=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,s.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(s[c])?s[c]||0:parseFloat(s[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,r,s){if(t===i)return 0;var a=s.string[s.empties[n]||s.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,r,s){if(t===i)return 0;var a=s.string[s.empties[n]||s.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,r=t?t.length:0,s=i+e;for(n=0;n<r;n++)s+=t.charCodeAt(n);return e*s}return 0},e.sortNumericAsc=function(t,i,n,r,s,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[s]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,r)),isNaN(i)&&(i=e.getTextValue(i,n,r)),t-i)},e.sortNumericDesc=function(t,i,n,r,s,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[s]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,r)),isNaN(i)&&(i=e.getTextValue(i,n,r)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",r=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},r)"string"==typeof i&&(n+=r[i],e.characterRegexArray[i]=new RegExp("["+r[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in r)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,r=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(r=!1);r&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,r=e.widgets.length;for(i=0;i<r;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,r){var s,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==r&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(s=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!r&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!r&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===r?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),s)))},e.refreshWidgets=function(n,r,s){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(r||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==s&&e.applyWidget(n,r)},e.getData=function(e,i,n){var r,s,a="",o=t(e);return o.length?(r=!!t.metadata&&o.metadata(),s=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):r&&void 0!==r[n]?a+=r[n]:i&&void 0!==i[n]?a+=i[n]:" "!==s&&s.match(" "+n+"-")&&(a=s.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var r=n.config;return i&&(i=t.trim(r.ignoreCase?i.toLocaleLowerCase():i),i=r.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var r=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof r?r:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var r=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof r?r:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,r=t?t.split("."):"",s="",a=r.length;for(n=0;n<a;n++)s+=("00"+r[n]).slice(-3);return t?e.formatFloat(s,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,r){if(t){var s=i.config,a=s.$headers.filter("[data-column="+r+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,s.headers,r),"dateFormat")||s.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var r=i.config,s=r.parserMetadataName?r.parserMetadataName:"sortValue";return t(n).metadata()[s]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,r){var s,a,o,l,c,u,d=new RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(c=new Date),u=0;u<h.length;u++)(s=h.eq(u)).children("tr").length>1&&(o=0,s.children("tr:visible").not(n.selectorRemove).each((function(){a=t(this),d.test(this.className)||o++,l=o%2==0,a.removeClass(r.zebra[l?1:0]).addClass(r.zebra[l?0:1])})));n.debug&&e.benchmark("Applying Zebra widget",c)},remove:function(e,i,n){var r,s,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(r=0;r<a.length;r++)(s=t.tablesorter.processTbody(e,a.eq(r),!0)).children().removeClass(o),t.tablesorter.processTbody(e,s,!1)}})}(jQuery)},function(t,e,i){var n,r,s;
|
|
82
|
+
!function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function r(t){for(var e in t)return!1;return!0}function s(i,n,r){if(!n)return"";var s,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,r):"function"==typeof(s=e.getColumnData(i,o,r))?s(n,i,r):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,r,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++r]?(u=s(t,c=n[r].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+r+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var r,s,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),s={extractors:[],parsers:[]};v<y;){if((r=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=(e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(e.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,r,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),s.parsers[l]=h,s.extractors[l]=p;v+=s.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=s.parsers,g.extractors=s.extractors}function l(r){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=r.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(r,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=s(r,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,r,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,r,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(r),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,s){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(r(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),s||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(r){var s,a,o,l,c,d,h,f=r.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(r).find(f.selectorHeaders).each((function(i){a=t(this),s=e.getColumnData(r,f.headers,i,!0),f.headerContent[i]=t(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,t(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,s,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,s,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&a.attr("tabindex",0)})).attr({scope:"col",role:"columnheader"}),p(r),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,r,s,a=i.config;a.$headers.each((function(o,l){r=t(l),s=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,s,"sorter")||"false"===e.getData(l,s,"parser"),l.sortDisabled=n,r[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?r.removeAttr("aria-controls"):r.attr("aria-controls",i.id))}))}function f(i){var n,r,s,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),r=0;r<l;r++)if(2!==o[r][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[r][0]+'"]'+(1===l?":last":""))).length){for(s=0;s<n.length;s++)n[s].sortDisabled||n.eq(s).removeClass(c).addClass(u[o[r][1]]).attr("aria-sort",d[o[r][1]]);h.length&&h.filter('[data-column="'+o[r][0]+'"]').removeClass(c).addClass(u[o[r][1]])}a.$headers.not(".sorter-false").each((function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],r=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",r)}))}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,r){if(i.isUpdating)return setTimeout((function(){m(i,n,r)}),50);var s,a,o,l,u,d=i.config,h=!r[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=r[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each((function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)}))),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(s=d.sortForce,o=0;o<s.length;o++)s[o][0]!==a&&d.sortList.push(s[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(s=d.sortAppend,o=0;o<s.length;o++)s[o][0]!==a&&d.sortList.push(s[o]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(t){var i,s,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!r(m.cache)){for(m.debug&&(l=new Date),s=0;s<w;s++)c=m.cache[s].colMax,m.cache[s].normalized.sort((function(n,r){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===r[o]&&1===y)return n[m.columns].order-r[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],r[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],r[o],a,c[o],o,t)):(h=f?n:r,p=f?r:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],r[o],o,t,m)),d)return d}return n[m.columns].order-r[m.columns].order}));m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(e,i){var n=e[0];n.isUpdating&&e.trigger("updateComplete",n),t.isFunction(i)&&i(e[0])}function y(t,i,n){var r=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&r.length?t.trigger("sorton",[r,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,(function(e,r){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(r)&&r(i)})).bind("updateAll"+n.namespace,(function(t,r,s){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,r,s)})).bind("update"+n.namespace+" updateRows"+n.namespace,(function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)})).bind("updateCell"+n.namespace,(function(e,r,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(r),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");r=f[0],p.length&&g>=0&&(d=p.eq(g).find("tr").index(m),h=f.index(),n.cache[g].normalized[d][n.columns].$row=m,u=void 0===n.extractors[h].id?s(i,r,h):n.extractors[h].format(s(i,r,h),i,r,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,r,h),n.cache[g].normalized[d][h]=n.ignoreCase&&"string"==typeof c?c.toLowerCase():c,"numeric"===(n.parsers[h].type||"").toLowerCase()&&(n.cache[g].colMax[h]=Math.max(Math.abs(c)||0,n.cache[g].colMax[h]||0)),y(a,o,l))})).bind("addRows"+n.namespace,(function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,r(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l).attr("role","row")).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?s(i,l[d].cells[f],f):n.extractors[f].format(s(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,s,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,r,s,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,(function(e,i){if(a=parseInt(i[0],10),s=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(r=(r=(""+i[1]).match(/^(1|d|s|o|n)/))?r[0]:""){case"1":case"d":r=1;break;case"s":r=o||0;break;case"o":n=s.order[(o||0)%(l.sortReset?3:2)],r=0===n?1:1===n?0:2;break;case"n":s.count=s.count+1,r=s.order[s.count%(l.sortReset?3:2)];break;default:r=0}o=0===e?r:o,n=[a,parseInt(r,10)||0],l.sortList.push(n),r=t.inArray(n[1],s.order),s.count=r>=0?r:n[1]%(l.sortReset?3:2)}}))}(i,s),f(i),d.delayInit&&r(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)})).bind("appendCache"+n.namespace,(function(e,n,r){e.stopPropagation(),c(i,r),t.isFunction(n)&&n(i)})).bind("updateCache"+n.namespace,(function(e,r){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(r)&&r(i)})).bind("applyWidgetId"+n.namespace,(function(t,r){t.stopPropagation(),e.getWidgetById(r).format(i,n,n.widgetOptions)})).bind("applyWidgets"+n.namespace,(function(t,n){t.stopPropagation(),e.applyWidget(i,n)})).bind("refreshWidgets"+n.namespace,(function(t,n,r){t.stopPropagation(),e.refreshWidgets(i,n,r)})).bind("destroy"+n.namespace,(function(t,n,r){t.stopPropagation(),e.destroy(i,n,r)})).bind("resetToLoadState"+n.namespace,(function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)}))}e.version="2.17.8",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each((function(){var n=this,r=t.extend(!0,{},e.defaults,i);r.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,r):e.setup(n,r)}))},e.setup=function(n,r){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return r.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var s=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);var a,c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=r[u];h&&(a=h,!s.test(a))&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return r.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=t(n),v=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=r,t.data(n,"tablesorter",r),r.debug&&t.data(n,"startoveralltimer",new Date),r.supportsDataObject=((p=t.fn.jquery.split("."))[0]=parseInt(p[0],10),p[0]>1||1===p[0]&&parseInt(p[1],10)>=4),r.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},r.emptyTo=r.emptyTo.toLowerCase(),r.stringTo=r.stringTo.toLowerCase(),/tablesorter\-/.test(m.attr("class"))||(g=""!==r.theme?" tablesorter-"+r.theme:""),r.table=n,r.$table=m.addClass(e.css.table+" "+r.tableClass+g).attr("role","grid"),r.$headers=m.find(r.selectorHeaders),r.namespace?r.namespace="."+r.namespace.replace(/\W/g,""):r.namespace=".tablesorter"+Math.random().toString(16).slice(2),r.$table.children().children("tr").attr("role","row"),r.$tbodies=m.children("tbody:not(."+r.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),r.$table.find("caption").length&&r.$table.attr("aria-labelledby","theCaption"),r.widgetInit={},r.textExtraction=r.$table.attr("data-text-extraction")||r.textExtraction||"basic",d(n),function(e){var i,n,r=e.config;r.widthFixed&&0===r.$table.find("colgroup").length&&(i=t("<colgroup>"),n=t(e).width(),t(e.tBodies).not("."+r.cssInfoBlock).find("tr:first").children(":visible").each((function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))})),r.$table.prepend(i))}(n),o(n),r.totalRows=0,r.delayInit||l(n),e.bindEvents(n,r.$headers,!0),w(n),r.supportsDataObject&&void 0!==m.data().sortlist?r.sortList=m.data().sortlist:v&&m.metadata()&&m.metadata().sortlist&&(r.sortList=m.metadata().sortlist),e.applyWidget(n,!0),r.sortList.length>0?m.trigger("sorton",[r.sortList,{},!r.initWidgets,!0]):(f(n),r.initWidgets&&e.applyWidget(n,!1)),r.showProcessing&&m.unbind("sortBegin"+r.namespace+" sortEnd"+r.namespace).bind("sortBegin"+r.namespace+" sortEnd"+r.namespace,(function(t){clearTimeout(r.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(r.processTimer=setTimeout((function(){e.isProcessing(n,!0)}),500))})),n.hasInitialized=!0,n.isProcessing=!1,r.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof r.initialized&&r.initialized(n)},e.getColumnData=function(e,i,n,r){if(null!=i){var s,a=(e=t(e)[0]).config;if(i[n])return r?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(s in i)if("string"==typeof s&&(r?a.$headers.eq(n).filter(s):a.$headers.filter('[data-column="'+n+'"]:last').filter(s)).length)return i[s]}},e.computeColumnIndex=function(e){var i,n,r,s,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),r=0;r<g[c].length+1;r++)if(void 0===g[c][r]){p=r;break}for(m[u]=p,v=Math.max(p,v),a.attr({"data-column":p}),r=c;r<c+d;r++)for(void 0===g[r]&&(g[r]=[]),f=g[r],s=p;s<p+h;s++)f[s]="x"}return v+1},e.isProcessing=function(i,n,r){var s=(i=t(i))[0].config,a=r||i.find("."+e.css.header);n?(void 0!==r&&s.sortList.length>0&&(a=a.filter((function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),s.sortList)>=0}))),i.add(a).addClass(e.css.processing+" "+s.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+s.cssProcessing)},e.processTbody=function(e,i,n){var r;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),r=t.fn.detach?i.detach():i.remove();r=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(r),r.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var s,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),(function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-s>250)){if("mousedown"===u)return s=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&r(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}})),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each((function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])}))},e.destroy=function(i,n,r){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var s=t(i),a=i.config,o=s.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=s.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(s.trigger("applyWidgetId",["uitheme"]),s.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),s.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),s.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof r&&r(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,r,s,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((r=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(r>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),s=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,s.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(s[c])?s[c]||0:parseFloat(s[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,r,s){if(t===i)return 0;var a=s.string[s.empties[n]||s.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,r,s){if(t===i)return 0;var a=s.string[s.empties[n]||s.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,r=t?t.length:0,s=i+e;for(n=0;n<r;n++)s+=t.charCodeAt(n);return e*s}return 0},e.sortNumericAsc=function(t,i,n,r,s,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[s]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,r)),isNaN(i)&&(i=e.getTextValue(i,n,r)),t-i)},e.sortNumericDesc=function(t,i,n,r,s,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[s]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,r)),isNaN(i)&&(i=e.getTextValue(i,n,r)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",r=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},r)"string"==typeof i&&(n+=r[i],e.characterRegexArray[i]=new RegExp("["+r[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in r)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,r=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(r=!1);r&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,r=e.widgets.length;for(i=0;i<r;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,r){var s,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==r&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(s=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,(function(e,i){return t.inArray(e,l.widgets)===i})),t.each(l.widgets||[],(function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)})),u.sort((function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1})),t.each(u,(function(e,n){n&&(!r&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!r&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))}))),setTimeout((function(){i.isApplyingWidgets=!1}),0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===r?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),s)))},e.refreshWidgets=function(n,r,s){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(r||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==s&&e.applyWidget(n,r)},e.getData=function(e,i,n){var r,s,a="",o=t(e);return o.length?(r=!!t.metadata&&o.metadata(),s=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):r&&void 0!==r[n]?a+=r[n]:i&&void 0!==i[n]?a+=i[n]:" "!==s&&s.match(" "+n+"-")&&(a=s.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var r=n.config;return i&&(i=t.trim(r.ignoreCase?i.toLocaleLowerCase():i),i=r.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var r=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof r?r:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var r=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof r?r:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,r=t?t.split("."):"",s="",a=r.length;for(n=0;n<a;n++)s+=("00"+r[n]).slice(-3);return t?e.formatFloat(s,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},parsed:!0,type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,r){if(t){var s=i.config,a=s.$headers.filter("[data-column="+r+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,s.headers,r),"dateFormat")||s.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var r=i.config,s=r.parserMetadataName?r.parserMetadataName:"sortValue";return t(n).metadata()[s]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,r){var s,a,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)a=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each((function(){s=t(this),u.test(this.className)||a++,o=a%2==0,s.removeClass(r.zebra[o?1:0]).addClass(r.zebra[o?0:1])}));n.debug&&e.benchmark("Applying Zebra widget",l)},remove:function(e,i,n){var r,s,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(r=0;r<a.length;r++)(s=t.tablesorter.processTbody(e,a.eq(r),!0)).children().removeClass(o),t.tablesorter.processTbody(e,s,!1)}})}(jQuery)},function(t,e,i){var n,r,s;
|
|
80
83
|
/*!
|
|
81
84
|
* jQuery UI Keycode 1.13.2
|
|
82
85
|
* http://jqueryui.com
|
|
@@ -100,5 +103,5 @@ t.exports=function(){"use strict";function t(e){return t="function"==typeof Symb
|
|
|
100
103
|
* Copyright jQuery Foundation and other contributors
|
|
101
104
|
* Released under the MIT license.
|
|
102
105
|
* http://jquery.org/license
|
|
103
|
-
*/!function(a){"use strict";r=[i(3),i(10),i(18),i(17),i(19),i(5),i(9)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,s.widgetName+"-item")===s)return n=t(this),!1})),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(r=!0)})),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,s,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(s)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,r,s,a=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(r=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,a=s+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>s&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:s<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!r)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,s,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(r=t(l[i],this.document[0])).length-1;n>=0;n--)(s=t.data(r[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&o.push(["function"==typeof s.options.items?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function c(){a.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,a,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(r=t(h[i],this.document[0])).length-1;n>=0;n--)(s=t.data(r[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(d.push(["function"==typeof s.options.items?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,r,s;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+n+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===n?e._createTrPlaceholder(e.currentItem,r):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,s){i&&!r.forcePlaceholderSize||(s.height()&&(!r.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,r,s,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,s=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<r&&(r=Math.abs(e[d]-l),s=this.items[n],this.direction=c?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(r("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(r("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(s="function"==typeof n?n.apply(e,r):n)||(t.exports=s)}()},function(t,e){jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},function(t,e){!function(t){function e(t){this.num=0,this.timer=t>0&&t}function i(i){if(t.isPlainObject(i.data)||t.isArray(i.data)||"string"==typeof i.data){var r,s=i.handler,a={timer:700,combo:[]};"string"==typeof(r=i.data)?a.combo=[r]:t.isArray(r)?a.combo=r:t.extend(a,r),a.combo=t.map(a.combo,(function(t){return t.toLowerCase()})),i.index=new e(a.timer),i.handler=function(e){if(this===e.target||!/textarea|select|input/i.test(e.target.nodeName)&&"true"!==t(e.target).prop("contenteditable")){var r="keypress"!==e.type?t.hotkeys.specialKeys[e.which]:null,o=String.fromCharCode(e.which).toLowerCase(),l="",c={};e.altKey&&"alt"!==r&&(l+="alt+"),e.ctrlKey&&"ctrl"!==r&&(l+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==r&&(l+="meta+"),e.shiftKey&&"shift"!==r&&(l+="shift+"),e.metaKey&&"["===o&&(o=null),r&&(c[l+r]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+t.hotkeys.shiftNums[r||o]]=!0);var u=i.index,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),s.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(t,e){for(var i=t.split(" "),n=0,r=i.length;n<r;n++)if(e[i[n]])return!0;return!1}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(t.hotkeys.keypressKeys,(function(e,i){t.hotkeys.shiftNums[i]=i})),e.prototype.val=function(){return this.num},e.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(t.proxy(e.prototype.reset,this),this.timer)),this.num++},e.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},t.each(["keydown","keyup","keypress"],(function(){t.event.special[this]={add:i}}))}(jQuery)},function(t,e){jQuery.fn.moveTo=function(t){var e,i=jQuery.extend({transition:!1,scrollOffset:35},t),n=this,r=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<r||jQuery(window).scrollTop()+i.scrollOffset>r)&&jQuery(window).height()>i.scrollOffset){if(e=jQuery(window).scrollTop()+i.scrollOffset>r?r-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:r-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:e},1e3,(function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating})),this;var s=jQuery("html, body");return s.is(":animated")&&(s.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(e),setTimeout((function(){jQuery(document).trigger("moveToFinished",n)}),100),this}return jQuery(document).trigger("moveToFinished",this),this}},function(t,e,i){"use strict";i.r(e),i.d(e,"format",(function(){return y})),i.d(e,"version",(function(){return _})),i.d(e,"bind",(function(){return C})),i.d(e,"unbind",(function(){return E})),i.d(e,"trigger",(function(){return T})),i.d(e,"$",(function(){return Ut})),i.d(e,"toInit",(function(){return Vt})),i.d(e,"log",(function(){return g})),i.d(e,"error",(function(){return v})),i.d(e,"warn",(function(){return m})),i.d(e,"banner",(function(){return Jt})),i.d(e,"dialog2",(function(){return ve})),i.d(e,"DropdownEl",(function(){return _n})),i.d(e,"ItemLinkEl",(function(){return vn})),i.d(e,"ItemRadioEl",(function(){return yn})),i.d(e,"ItemCheckboxEl",(function(){return bn})),i.d(e,"SectionEl",(function(){return wn})),i.d(e,"flag",(function(){return Bn})),i.d(e,"CheckboxMultiselectEl",(function(){return mr})),i.d(e,"FancyFileInput",(function(){return br})),i.d(e,"LabelEl",(function(){return kr})),i.d(e,"SelectEl",(function(){return cs})),i.d(e,"ToggleEl",(function(){return Cs})),i.d(e,"InlineDialogEl",(function(){return qs})),i.d(e,"MessageEl",(function(){return Mn})),i.d(e,"navigation",(function(){return Js})),i.d(e,"NavigationEl",(function(){return Gs})),i.d(e,"progressBars",(function(){return ha})),i.d(e,"ProgressBarEl",(function(){return ua})),i.d(e,"SpinnerEl",(function(){return se})),i.d(e,"TabContainerEl",(function(){return Ra})),i.d(e,"TabPaneEl",(function(){return $a})),i.d(e,"TabItemEl",(function(){return ja})),i.d(e,"I18n",(function(){})),i.d(e,"Header",(function(){return Vo})),i.d(e,"DatePicker",(function(){return tl})),i.d(e,"CalendarWidget",(function(){return Qo})),i.d(e,"RestfulTable",(function(){return _l})),i.d(e,"sidebar",(function(){return Yl})),i.d(e,"whenIType",(function(){return nc})),i.d(e,"FocusManager",(function(){return rc})),i.d(e,"InlineDialog2",(function(){return sc})),i.d(e,"LayerManager",(function(){return ac})),i.d(e,"ProgressiveDataSet",(function(){return oc})),i.d(e,"clone",(function(){return lc})),i.d(e,"debounce",(function(){return cc})),i.d(e,"debounceImmediate",(function(){return uc})),i.d(e,"dim",(function(){return dc})),i.d(e,"escapeHtml",(function(){return hc})),i.d(e,"formValidation",(function(){return pc})),i.d(e,"id",(function(){return fc})),i.d(e,"isClipped",(function(){return gc})),i.d(e,"keyCode",(function(){return mc})),i.d(e,"layer",(function(){return vc})),i.d(e,"messages",(function(){return bc})),i.d(e,"populateParameters",(function(){return yc})),i.d(e,"params",(function(){return wc})),i.d(e,"responsiveheader",(function(){return _c})),i.d(e,"select",(function(){return xc})),i.d(e,"tablessortable",(function(){return kc})),i.d(e,"tabs",(function(){return Cc})),i.d(e,"undim",(function(){return Ec})),i.d(e,"_addID",(function(){return Tc})),i.d(e,"contextPath",(function(){return Ac}));var n=i(3),r=i.n(n),s=window.jQuery||window.Zepto||r.a;const a="AJS",o="I18n";function l(){"object"!=typeof window[a]&&(window[a]={})}function c(t,e){return l(),window[a][t]=e}var u=i(6),d=i.n(u);function h(t){let e;return{type:d.a.type.CLASSNAME,attached:function(i){!function(t,e){let i=!1;if(e((()=>{i=!0})),i)return;const n=new MutationObserver((t=>{(function(t){for(const e of t)if("childList"===e.type)return!0;return!1})(t)&&e((()=>n.disconnect()))}));n.observe(t,{childList:!0})}(i,(n=>{e=n;const s=r()("input[type=".concat(t,"]"),i);s.each((function(t,e){r()('<span class="aui-form-glyph"></span>').insertAfter(e)}));s.length>0&&e()}))},detached:function(t){r()(".aui-form-glyph",t).remove(),e&&e()}}}function p(t,e){var i=s(t);return void 0===e&&(e=!0),i.each((function(){this.disabled=!e}))}function f(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}d()("checkbox",h("checkbox")),d()("radio",h("radio")),c("enable",p),c("inlineHelp",(function(){s(document).on("click",".icon-inline-help",(function(){var t=s(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var g=f("log"),m=f("warn"),v=f("error");function b(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,r=/^(\d+),choice,(.+)/,s=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(r)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var f=u[p].match(s);if(null!=f){var g=parseInt(f[1],10);if(c<g){if(h){l=h;break}l=f[3];break}if(c==g&&"#"==f[2]){l=f[3];break}p==u.length-1&&(l=f[3]),h=f[3]}else d=!0}d&&v('The format "'+e+'" from message "'+t+'" is invalid.');var m=[l].concat(Array.prototype.slice.call(a,1));l=b.apply(null,m)}}return l},o=function(t){for(var e=!1,i=-1,n=0,r=0;r<t.length;r++){var s=t.charAt(r);if("'"==s&&(e=!e),!e)if("{"===s)0===n&&(i=r),n++;else if("}"===s&&n>0&&0===--n){var a=[];return a.push(t.substring(0,r+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,r)),a}}return null};return function(t){var i=arguments,n="";if(!t)return n;for(var r=o(t);r;)t=t.substring(r[0].length),n+=r[1].replace(e,""),n+=a(r[2],i),r=o(t);return n+=t.replace(e,"")}.apply(null,arguments)}c("error",v),c("log",g),c("warn",m),c("format",b);var y=b,w="9.3.20";c("version",w);var _=w;const x=!1,k=s(window);function C(t,e,i){try{return"function"==typeof i?k.on(t,x,e,i):k.on(t,x,e)}catch(t){g("error while binding: ",t.message)}}function E(t,e){try{return k.off(t,e)}catch(t){g("error while unbinding: ",t.message)}}function T(t,e){try{return k.trigger(t,e)}catch(t){g("error while triggering: "+t.message)}}c("bind",C),c("trigger",T),c("unbind",E);const A={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},D=new RegExp("[".concat(Object.keys(A).join(""),"]"),"g");function S(t){return t.replace(D,(t=>A[t]))}c("escapeHtml",S);var O=S,N=Object.prototype.hasOwnProperty,I=[];function M(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function P(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var r,s=function(t){var e=new Error,i=e.stack||e.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[t+2]:n}(n||1)||"";if(!i||-1===I.indexOf(s)){I.push(s),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||!1)+"- "+(r=t,((r+="")?r.charAt(0).toUpperCase()+r.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(a+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(a+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+s,e.extraObject?M(a+="\n",e.extraObject,s):M(a,s)}}}function L(t,e){var i=t.options.displayName;i=i?" ("+i+")":"";var n=s.extend({deprecationType:"CSS",extraObject:e},t.options);P("'"+t.selector+"' pattern"+i,n)()}function R(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=P(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function j(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=R(t,e,i);return n.prototype=t.prototype,s.extend(n,t),n}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(t){}function F(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=R(t[e],n,i)}else!function(t,e,i){if($){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var r=P(i.displayName||e,i);Object.defineProperty(t,e,{get:function(){return r(),n},set:function(t){return n=t,r(),t}})}}(t,e,i)}function H(t){return function(e){for(var i={selector:e,options:t||{}},n=document.querySelectorAll(e),r=0;r<n.length;r++)L(i,n[r]);!function(t){if(U.push(t),!W){W=new MutationObserver((function(t){t.forEach((function(t){for(var e=t.addedNodes,i=0;i<e.length;i++){var n=e[i];1===n.nodeType&&U.forEach(B(n))}}))}));var e={childList:!0,subtree:!0};W.observe(document,e)}}(i)}}function B(t){return function(e){var i,n;i=t,n=e.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&L(e,t)}}const U=[];let W;function V(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var z;c("deprecate",{fn:R,construct:j,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(H(e))},prop:F,obj:function(t,e,i){for(var n in i=i||{},t)N.call(t,n)&&(i.deprecationType=i.deprecationType||"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,F(t,n,s.extend({},i)))},propertyDeprecationSupported:$,getMessageLogger:P});var q=[];function Y(t,e){Array.prototype.forEach.call(document.body.children,(function(t){(function(t){return t.hasAttribute("aria-hidden")})(t)||function(t){return t.classList.contains("aui-layer")}(t)||(t.setAttribute("aria-hidden","true"),q.push(t))})),z||(z=document.body),!0===t&&G();var i=!!Y.$dim&&!Y.$dim[0].hasAttribute("hidden");return Y.$dim&&(Y.$dim.remove(),Y.$dim=null),Y.$dim=s('<div aria-hidden="true"></div>').addClass("aui-blanket"),Y.$dim.attr("tabindex","0"),Y.$dim.appendTo(document.body),i||(V(Y.$dim),Y.cachedOverflow={overflow:z.style.overflow,overflowX:z.style.overflowX,overflowY:z.style.overflowY},z.style.overflowX="hidden",z.style.overflowY="hidden",z.style.overflow="hidden"),Y.$dim.removeAttr("hidden"),e&&Y.$dim.css({zIndex:e}),Y.$dim}function K(){q.forEach((function(t){t.removeAttribute("aria-hidden")})),q=[],Y.$dim&&(Y.$dim[0].setAttribute("hidden",""),z&&(z.style.overflow=Y.cachedOverflow.overflow,z.style.overflowX=Y.cachedOverflow.overflowX,z.style.overflowY=Y.cachedOverflow.overflowY))}var G=P("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});c("dim",Y),c("undim",K);var J={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};c("keyCode",J);var Q=J,X=function(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e};var Z=d.a.noConflict();var tt=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function et(t){return tt(t).get("last-trigger")||st(t)[0]}function it(t,e){var i=e&&e.nodeType&&1===e.nodeType;return tt(t).set("last-trigger",!!i&&e)}function nt(t,e){var i=et(t);i&&e(i)}function rt(t,e){return Array.prototype.forEach.call(st(t),e)}function st(t){const e=window.frames,i='[aria-controls="'.concat(t.id,'"]');let n=[],r=!1;for(let t=0;t<e.length;t++)try{let r=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(r))}catch(t){r=!0}const s=document.querySelectorAll(i),a=Array.prototype.slice.apply(s).concat(n);return 0===a.length&&!0===r&&m(["No triggers found for element (".concat(t.id,") in iframes from the same origin."),"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function at(t){return document.getElementById(t.getAttribute("aria-controls"))}function ot(t){return"true"!==t.getAttribute("aria-disabled")}function lt(t,e){if(ot(t)){var i=at(t);i&&i.message&&i.message(e)}}const ct={click(t,e){(function(t,e){var i=s(e).closest("a[href]",t);return!!i.length&&i[0]!==t})(t,e.target)||(lt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Q.ENTER&&i!==Q.SPACE||(e.preventDefault(),e.type="click",ct.click(t,e))},mouseenter(t,e){lt(t,e)},mouseleave(t,e){lt(t,e)},focus(t,e){lt(t,e)},blur(t,e){(function(t,e){let i=e.relatedTarget;return i||(i=document.activeElement),s(at(t)).find(i).length>0})(t,e)||lt(t,e)}};Object.keys(ct).forEach((function(t){const e=ct[t];s(document).on("".concat(t,".aui-trigger"),"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:r}=t,{keyCode:s,which:a}=t;return{type:e,data:"keydown"===e?a||s:void 0,target:i,currentTarget:n,relatedTarget:r,preventDefault:()=>t.preventDefault()}}(i,t))}))})),Z("data-aui-trigger",{type:Z.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return ot(this)}}}),X("aui/trigger"),function(){function t(t){return"visible"===s.css(t,"visibility")&&s(t).is(":visible")}function e(e,i){var n=e.nodeName.toLowerCase();if("aui-select"===n)return!0;if("area"===n){var r=e.parentNode,a=r.name,o=s("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(n),c="a"===n,u=e.href||i;return(l?!e.disabled:c?u:i)&&t(e)}s.extend(s.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(s.attr(t,"tabindex"))),"aui-tabbable":function(t){var i=s.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&e(t,!n)}})}();var ut="_aui-focus-restore";function dt(t){return t.is(".aui-dialog2")}function ht(){this._focusTrapStack=[],this._handler}function pt(t,e){if(0===t.length)return;if(e.keyCode!==Q.TAB)return;const i=e.shiftKey?-1:1,n=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(n);let l=-1;if(o>-1)l=o;else{let t;if(t=s(n).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(n)}if(t.length){const e=t.find(":aui-tabbable"),r=e.index(n)+i;if(!(r<0||r>=e.length))return;{const e=et(t.get(0));l=a.index(e)}}}l=l>-1?(l+i)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ft;function gt(){return ft||(ft=new ht),ft}ht.defaultFocusSelector=":aui-tabbable",ht.prototype.enter=function(t,e){if(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement;t.data(ut,e)}(t,e),"false"!==t.attr("data-aui-focus")){var i=t.attr("data-aui-focus-selector")||ht.defaultFocusSelector;(t.is(i)?t:t.find(i)).first().trigger("focus")}dt(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=pt.bind(void 0,this._focusTrapStack),s(document).on("keydown.aui-focus-manager",this._handler)))},ht.prototype.exit=function(t){dt(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(s(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){s(e).trigger("blur");var i=function(t){return s(t.data(ut))}(t);i.length&&(t.removeData(ut),i.trigger("focus"))}},gt.global=gt(),c("FocusManager",gt);var mt=gt,vt=function(t,e){var i="_aui-widget-"+t;return function(t,n){var r,a;s.isPlainObject(t)?a=t:(r=t,a=n);var o,l=r&&s(r);return l&&l.data(i)?o=l.data(i):(l=(o=new e(l,a||{})).$el).data(i,o),o}};let bt;!function(){if(window.CustomEvent)try{const t=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default");if("name"!==t.type)throw new Error("Could not set custom name");if("y"!==t.detail.x)throw new Error("Could not set detail");return void(bt=window.CustomEvent)}catch(t){}bt=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented||(this.defaultPrevented=!0)}},i},bt.prototype=window.Event.prototype}();var yt=bt;const wt="_aui-internal-layer-",_t="_aui-internal-layer-global-",xt="aui-layer-",kt="aui-";var Ct=s(document);function Et(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function r(s){e===s.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",r))}))}function Tt(t,e,i){var n=s.Event(wt+e),r=s.Event(_t+e),a=new yt(xt+i,{bubbles:!0,cancelable:!0}),o=new yt(kt+i,{bubbles:!0,cancelable:!0});return t.trigger(n),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(n.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function At(t){this.$el=s(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function Dt(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}At.prototype={below:function(){return Lt.global.item(Lt.global.indexOf(this.$el)-1)},above:function(){return Lt.global.item(Lt.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(wt+t,e),this},off:function(t,e){return this.$el.off(wt+t,e),this},show:function(){return this.isVisible()||Lt.global.indexOf(this.$el)>-1?this:Tt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Lt.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;if(!Tt(this.$el,"beforeHide","hide"))return this;const t=this;return Et(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),Lt.global.popUntil(this.$el),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=Dt(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=Dt(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){(this.isPersistent()||this.isBlanketed())&&mt.global.exit(this.$el),t&&Tt(this.$el,"beforeHide","hide"),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(wt+"hide"),this.$el.trigger(_t+"hide",[this.$el])},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&mt.global.enter(this.$el),this.$el.trigger(wt+"show"),this.$el.trigger(_t+"show",[this.$el])}};var St=vt("layer",At);function Ot(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function Nt(t,e){return Ot(t,(function(t){return t[0]===e[0]}))}function It(t){return Ot(t,(function(t){return St(t).isBlanketed()}))}function Mt(t,e){var i=It(t);e!==i&&(i>-1?Y(!1,t[i].css("z-index")-20):K())}function Pt(t,e,i){if(!(e<0))for(var n=t.length-1;n>=e;n--){var r=t[n],s=St(r);!i&&s.isPersistent()||(s._hideLayer(!0),t.splice(n,1))}}function Lt(){this._stack=[]}function Rt(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return Lt.global.indexOf(e)>-1}St.on=function(t,e,i){return Ct.on(_t+t,e,i),this},St.off=function(t,e,i){return Ct.off(_t+t,e,i),this},Lt.prototype={push:function(t){var e=t instanceof s?t:s(t);if(Nt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var i=St(e),n=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return i._showLayer(n),i.isBlanketed()&&Y(!1,n-20),this._stack.push(e),this},popLayersBeside:function(t){const e=s(t).get(0);if(!function(t){return!!et(t)}(e)){var i=It(this._stack);return void Pt(this._stack,++i,!1)}const n=function(t){var e=et(t);if(e)return s(e).closest(".aui-layer").get(0)}(e);if(n){let t=this.indexOf(n);Pt(this._stack,++t,!1)}else Pt(this._stack,0,!1)},indexOf:function(t){return Nt(this._stack,s(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=St(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,i=t instanceof s?t:s(t),n=Nt(this._stack,i);if(n<0)return null;for(n--;n>=0;){e=this._stack[n];var r=St(e);if(!r.isPersistent()||r.isBlanketed())return e;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,i=t instanceof s?t:s(t),n=Nt(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){e=this._stack[n];var r=St(e);if(!r.isPersistent()&&!r.isBlanketed())return e;n++}return null},popUntil:function(t){var e=t instanceof s?t:s(t),i=Nt(this._stack,e);if(-1===i)return null;var n=It(this._stack);return Pt(this._stack,i+1,St(e).isBlanketed()),this._stack.splice(i,1),St(e)._hideLayer(),Mt(this._stack,n),e},getTopLayer:function(){return this._stack.length?this._stack[this._stack.length-1]:null},popTopIfNonPersistent:function(){var t=this.getTopLayer(),e=St(t);return!t||e.isPersistent()?null:this.popUntil(t)},popUntilTopBlanketed:function(){var t=It(this._stack);if(t<0)return null;var e=this._stack[t];if(St(e).isPersistent()){var i=this.getNextHigherNonPeristentAndNonBlanketedLayer(e);if(i){var n=Nt(this._stack,i);return Pt(this._stack,n,!0),i}return null}return Pt(this._stack,t,!0),Mt(this._stack,t),e},popUntilTopPersistent:function(){var t=Lt.global.getTopLayer();if(t){var e,i=It(this._stack),n=St(t);if(n.isPersistent()){if(n.isBlanketed())return;if(t=Lt.global.getNextLowerNonPersistentOrBlanketedLayer(t),n=St(t),!t||n.isPersistent())return;e=Nt(this._stack,t),Pt(this._stack,e,!0),Mt(this._stack,i)}else e=Nt(this._stack,t),Pt(this._stack,e,!0),Mt(this._stack,i)}}},Ct.on("keydown",(function(t){t.keyCode===Q.ESCAPE&&(Lt.global.popUntilTopPersistent(),t.preventDefault())})),Ct.on("click",".aui-blanket",(function(t){Lt.global.popUntilTopBlanketed()&&t.preventDefault()})),Ct.on("click",(function(t){var e=s(t.target);if(!e.closest(".aui-blanket").length){var i=e.closest("[aria-controls]"),n=e.closest(".aui-layer");if(!n.length&&!Rt(i)){const e=s.Event("aui-close-layers-on-outer-click");return Ct.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void Lt.global.hideAll()}if(!Rt(i)&&n.length){var r=Lt.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);r&&St(r).hide()}}})),Lt.global=new Lt,St.Manager=Lt,c("layer",St);var jt=St;c("LayerManager",jt.Manager);jt.Manager;const $t={sinceVersion:"9.0.0",removeInVersion:"10.0.0"};var Ft=c("params",new Proxy({},{get:function(t,e){return P("AJS.params",$t)(),t[e]}}));const Ht=R((function(t){t||(t=Ft),s(".parameters input").each((function(){var e=this.value,i=this.title||this.id;s(this).hasClass("list")?t[i]?t[i].push(e):t[i]=[e]:t[i]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});c("populateParameters",Ht);var Bt=Ht;s((function(){var t=s("body");t.data("auiVersion")||t.attr("data-aui-version",_),Bt()})),c("$",s);var Ut=s;function Wt(t){return s.when(s.ready).then((function(){setTimeout((function(){try{t.call(this,s)}catch(e){v("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}c("toInit",Wt);var Vt=Wt;const I18n={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":""},getText:function(t){if(Object.prototype.hasOwnProperty.call(this.keys,t)){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return y.apply(null,[this.keys[t]].concat(i))}return t}};for(const t in I18n)zt=t,qt=I18n[t],l(),"object"!=typeof window[a][o]&&(window[a][o]={}),void 0===window[a][o][zt]&&(window[a][o][zt]=qt);var zt,qt,Yt="header";function Kt(t){var e=function(t){let{body:e,type:i="error"}=t;return s('<div class="aui-banner" role="banner"></div>').append(s.parseHTML(e||"")).addClass("aui-banner-".concat(i))}(t);return Gt().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&s(t).remove()})),function(t){var e=Gt();if(!e.length)throw new Error("You must implement the application header");t.prependTo(e),V(t),t[0].removeAttribute("hidden")}(e),e[0]}function Gt(){return s("#"+Yt)}X("aui/banner",Kt),c("banner",Kt);var Jt=Kt,Qt=i(2);const Xt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},Zt={filled:!1,size:Xt.MEDIUM.name},te="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",ee=P("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:te}),ie=P("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:te});function ne(t){let e=Xt.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Xt).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function re(t){const{px:e,radius:i}=Object(Qt.find)(Xt,(e=>e.name===t._data.size))||Xt.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),r=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(e));const s=e/2;r.setAttribute("cx",s),r.setAttribute("cy",s),r.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),s=r.top+r.height/2,a=n.top+e/2;t.querySelector("svg").style.top="".concat(s-a,"px")}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}var se=Z("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',re(t)},attached(t){re(t)},attributes:{filled:{created:function(t){ee(),t._data.filled=!0,re(t)},removed:function(t){t._data.filled=!1,re(t)}},size(t,e){t._data.size=ne(e.newValue),re(t)}},prototype:{get _data(){return this.__data||(this._data=Object(Qt.defaults)({},Zt))},set _data(t){return this.__data=t},set filled(t){ie(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=ne(t);this.setAttribute("size",e)}}});function ae(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function oe(t){return"INPUT"===t.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(t){t._spinner=new se,t._spinner.setAttribute("size",Xt.SMALL.name)},prototype:{busy:function(){return oe(this)||ae(this)?(m("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return oe(this)||!ae(this)?(m("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return oe(this)?(m("It is not valid to call isBusy() on an input button."),!1):ae(this)}}}),X("aui/button");const le="aui-close-button",ce=".".concat(le),ue='<button type="button" class="'.concat(le,'" aria-label="').concat(I18n.getText("aui.words.close"),'">');var de={"aui-focus":"false","aui-blanketed":"true"};function he(t){var e;this._handlers=new WeakMap,this.$el=s(t||'\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n '.concat(ue,'\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>')),e=this.$el,s.each(de,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}he.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};jt(i).on(t,n),this._handlers.set(e,n)}return this},he.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(jt(i).off(t,n),this._handlers.delete(e)),this},he.prototype.show=function(){return jt(this.$el).show(),this},he.prototype.hide=function(){return jt(this.$el).hide(),this},he.prototype.remove=function(){return jt(this.$el).remove(),this},he.prototype.isVisible=function(){return jt(this.$el).isVisible()};var pe=vt("dialog2",he),fe=new Set;pe.on=function(t,e){return fe.has(e)||(jt.on(t,".aui-dialog2",e),fe.add(e)),this},pe.off=function(t,e){return fe.has(e)&&(jt.off(t,".aui-dialog2",e),fe.delete(e)),this},s(document).on("click keydown",".aui-dialog2-header ".concat(ce),(function(t){("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE)&&(t.preventDefault(),pe(s(t.target).closest(".aui-dialog2")).hide())})),pe.on("show",(function(t,e){e.find(ce).attr("tabindex",0),e.attr("tabindex",-1);var i=e[0].hasAttribute("data-aui-focus-selector")&&e.attr("data-aui-focus-selector");if(i){var n=e.find(i);if(n.length>0)return n.first().focus()}e.focus()})),pe.on("hide",(function(t,e){var i=jt(e);e.data("aui-remove-on-hide")&&i.remove()})),X("aui/dialog2",pe),c("dialog2",pe);var ge,me,ve=pe,be=i(4),ye=i.n(be),we=navigator.userAgent.toLowerCase(),_e=(/msie/.test(we),/windows nt 5.1/.test(we),/windows nt 6.0/.test(we),/windows nt 6.1/.test(we),/mac os x/.test(we));function xe(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function ke(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function Ce(t){var e=ke(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ee(t){return t instanceof ke(t).Element||t instanceof Element}function Te(t){return t instanceof ke(t).HTMLElement||t instanceof HTMLElement}function Ae(t){return t?(t.nodeName||"").toLowerCase():null}function De(t){return(Ee(t)?t.ownerDocument:t.document).documentElement}function Se(t){return xe(De(t)).left+Ce(t).scrollLeft}function Oe(t){return ke(t).getComputedStyle(t)}function Ne(t){var e=Oe(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Ie(t,e,i){void 0===i&&(i=!1);var n,r,s=De(e),a=xe(t),o=Te(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==Ae(e)||Ne(s))&&(l=(n=e)!==ke(n)&&Te(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:Ce(n)),Te(e)?((c=xe(e)).x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=Se(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Me(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Pe(t){return"html"===Ae(t)?t:t.assignedSlot||t.parentNode||t.host||De(t)}function Le(t){return["html","body","#document"].indexOf(Ae(t))>=0?t.ownerDocument.body:Te(t)&&Ne(t)?t:Le(Pe(t))}function Re(t,e){void 0===e&&(e=[]);var i=Le(t),n="body"===Ae(i),r=ke(i),s=n?[r].concat(r.visualViewport||[],Ne(i)?i:[]):i,a=e.concat(s);return n?a:a.concat(Re(Pe(s)))}function je(t){return["table","td","th"].indexOf(Ae(t))>=0}function $e(t){if(!Te(t)||"fixed"===Oe(t).position)return null;var e=t.offsetParent;if(e){var i=De(e);if("body"===Ae(e)&&"static"===Oe(e).position&&"static"!==Oe(i).position)return i}return e}function Fe(t){for(var e=ke(t),i=$e(t);i&&je(i)&&"static"===Oe(i).position;)i=$e(i);return i&&"body"===Ae(i)&&"static"===Oe(i).position?e:i||function(t){for(var e=Pe(t);Te(e)&&["html","body"].indexOf(Ae(e))<0;){var i=Oe(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var He=i(0);function Be(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function Ue(t,e){var i=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(i){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function We(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ve(t,e){return e===He.viewport?We(function(t){var e=ke(t),i=De(t),n=e.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,o=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:r,height:s,x:a+Se(t),y:o}}(t)):Te(e)?function(t){var e=xe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):We(function(t){var e=De(t),i=Ce(t),n=t.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Se(t),o=-i.scrollTop;return"rtl"===Oe(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-r),{width:r,height:s,x:a,y:o}}(De(t)))}function ze(t,e,i){var n="clippingParents"===e?function(t){var e=Re(Pe(t)),i=["absolute","fixed"].indexOf(Oe(t).position)>=0&&Te(t)?Fe(t):t;return Ee(i)?e.filter((function(t){return Ee(t)&&Ue(t,i)&&"body"!==Ae(t)})):[]}(t):[].concat(e),r=[].concat(n,[i]),s=r[0],a=r.reduce((function(e,i){var n=Ve(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Ve(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function qe(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function Ke(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ge(t){var e,i=t.reference,n=t.element,r=t.placement,s=r?qe(r):null,a=r?Ye(r):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case He.top:e={x:o,y:i.y-n.height};break;case He.bottom:e={x:o,y:i.y+i.height};break;case He.right:e={x:i.x+i.width,y:l};break;case He.left:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?Ke(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case He.start:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case He.end:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function Je(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function Qe(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Xe(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,s=i.boundary,a=void 0===s?He.clippingParents:s,o=i.rootBoundary,l=void 0===o?He.viewport:o,c=i.elementContext,u=void 0===c?He.popper:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Je("number"!=typeof f?f:Qe(f,He.basePlacements)),m=u===He.popper?He.reference:He.popper,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=ze(Ee(y)?y:y.contextElement||De(t.elements.popper),a,l),_=xe(v),x=Ge({reference:_,element:b,strategy:"absolute",placement:r}),k=We(Object.assign(Object.assign({},b),x)),C=u===He.popper?k:_,E={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},T=t.modifiersData.offset;if(u===He.popper&&T){var A=T[r];Object.keys(E).forEach((function(t){var e=[He.right,He.bottom].indexOf(t)>=0?1:-1,i=[He.top,He.bottom].indexOf(t)>=0?"y":"x";E[t]+=A[i]*e}))}return E}var Ze={placement:"bottom",modifiers:[],strategy:"absolute"};function ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ei(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,s=void 0===r?Ze:r;return function(t,e,i){void 0===i&&(i=s);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ze),s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},s),o.options),i),o.scrollParents={reference:Ee(t)?Re(t):t.contextElement?Re(t.contextElement):[],popper:Re(e)};var r=function(t){var e=Be(t);return He.modifierPhases.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=r.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var s=r({state:o,name:e,instance:u,options:n}),a=function(){};l.push(s||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(ti(e,i)){o.rects={reference:Ie(e,Fe(i),"fixed"===o.options.strategy),popper:Me(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var r=o.orderedModifiers[n],s=r.fn,a=r.options,l=void 0===a?{}:a,d=r.name;"function"==typeof s&&(o=s({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){d(),c=!0}};if(!ti(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var ii={passive:!0};var ni={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ge({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.offsets,a=t.position,o=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(s),u=c.x,d=c.y,h=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),f=He.left,g=He.top,m=window;if(l){var v=Fe(i);v===ke(i)&&(v=De(i)),r===He.top&&(g=He.bottom,d-=v.clientHeight-n.height,d*=o?1:-1),r===He.left&&(f=He.right,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&ri);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((e={})[g]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var ai={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Te(r)&&Ae(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Te(n)&&Ae(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};var oi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=void 0===r?[0,0]:r,a=He.placements.reduce((function(t,i){return t[i]=function(t,e,i){var n=qe(t),r=[He.left,He.top].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[He.left,He.right].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,s),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},li={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(t){return t.replace(/left|right|bottom|top/g,(function(t){return li[t]}))}var ui={start:"end",end:"start"};function di(t){return t.replace(/start|end/g,(function(t){return ui[t]}))}var hi={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=qe(m),b=l||(v===m||!f?[ci(m)]:function(t){if(qe(t)===He.auto)return[];var e=ci(t);return[di(t),e,di(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(qe(i)===He.auto?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?He.placements:l,u=Ye(n),d=u?o?He.variationPlacements:He.variationPlacements.filter((function(t){return Ye(t)===u})):He.basePlacements,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Xe(t,{placement:i,boundary:r,rootBoundary:s,padding:a})[qe(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var T=y[E],A=qe(T),D=Ye(T)===He.start,S=[He.top,He.bottom].indexOf(A)>=0,O=S?"width":"height",N=Xe(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=S?D?He.right:He.left:D?He.bottom:He.top;w[O]>_[O]&&(I=ci(I));var M=ci(I),P=[];if(s&&P.push(N[A]<=0),o&&P.push(N[I]<=0,N[M]<=0),P.every((function(t){return t}))){C=T,k=!1;break}x.set(T,P)}if(k)for(var L=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pi(t,e,i){return Math.max(t,Math.min(e,i))}var fi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,s=void 0===r||r,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Xe(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=qe(e.placement),b=Ye(e.placement),y=!b,w=Ke(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,T={x:0,y:0};if(x){if(s){var A="y"===w?He.top:He.left,D="y"===w?He.bottom:He.right,S="y"===w?"height":"width",O=x[w],N=x[w]+m[A],I=x[w]-m[D],M=p?-C[S]/2:0,P=b===He.start?k[S]:C[S],L=b===He.start?-C[S]:-k[S],R=e.elements.arrow,j=p&&R?Me(R):{width:0,height:0},$=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=$[A],H=$[D],B=pi(0,k[S],j[S]),U=y?k[S]/2-M-B-F-E:P-B-F-E,W=y?-k[S]/2+M+B+H+E:L+B+H+E,V=e.elements.arrow&&Fe(e.elements.arrow),z=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,q=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,Y=x[w]+U-q-z,K=x[w]+W-q,G=pi(p?Math.min(N,Y):N,O,p?Math.max(I,K):I);x[w]=G,T[w]=G-O}if(o){var J="x"===w?He.top:He.left,Q="x"===w?He.bottom:He.right,X=x[_],Z=pi(X+m[J],X,X-m[Q]);x[_]=Z,T[_]=Z-X}e.modifiersData[n]=T}},requiresIfExists:["offset"]};var gi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=qe(i.placement),o=Ke(a),l=[He.left,He.right].indexOf(a)>=0?"height":"width";if(r&&s){var c=i.modifiersData[n+"#persistent"].padding,u=Me(r),d="y"===o?He.top:He.left,h="y"===o?He.bottom:He.right,p=i.rects.reference[l]+i.rects.reference[o]-s[o]-i.rects.popper[l],f=s[o]-i.rects.reference[o],g=Fe(r),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=pi(b,w,y),x=o;i.modifiersData[n]=((e={})[x]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,r=i.element,s=void 0===r?"[data-popper-arrow]":r,a=i.padding,o=void 0===a?0:a;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&Ue(e.elements.popper,s)&&(e.elements.arrow=s,e.modifiersData[n+"#persistent"]={padding:Je("number"!=typeof o?o:Qe(o,He.basePlacements))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function vi(t){return[He.top,He.right,He.bottom,He.left].some((function(e){return t[e]>=0}))}var bi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=Xe(e,{elementContext:"reference"}),o=Xe(e,{altBoundary:!0}),l=mi(a,n),c=mi(o,r,s),u=vi(l),d=vi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},yi=ei({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,s=void 0===r||r,a=n.resize,o=void 0===a||a,l=ke(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",i.update,ii)})),o&&l.addEventListener("resize",i.update,ii),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ii)})),o&&l.removeEventListener("resize",i.update,ii)}},data:{}},ni,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,a=void 0===s||s,o={placement:qe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),si(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),si(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},ai,oi,hi,fi,gi,bi]});const wi="alignment",_i="right middle",xi="alignment-container",ki="aui-alignment-side-",Ci="aui-alignment-snap-",Ei="aui-alignment-use-gpu",Ti={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function Ai(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function Di(t){return Ai(t,wi)||_i}function Si(t){let[e,i]=Di(t).split(" ");return{side:e,snap:i}}function Oi(t){let e=function(t){let e=Ai(t,xi)||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function Ni(t,e){const i=Si(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=Di(t);return Ti[e]||"right"}(t):(i.snap=Oi(e),n="submenu"===i.side?Ti["".concat("right"===i.snap?"left":"right"," top")]:Ti["".concat(i.side," ").concat(i.snap)]),n}const Ii={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function Mi(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Si(t),r=Ni(t,e),s=Ii[r.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:s,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(Ei)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:t=>{let{state:e}=t;e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={enabled:!0,fn:i.onUpdate}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return n.enabled&&n.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={fn:i.onEvents}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return this._triggerOnEvents&&(this._eventListenersEnabled?n.fn.enabled&&n.fn.enabled():n.fn.disabled&&n.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,r=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),s=r([e.top,i.paddingTop,i.borderTop]),o=r([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=s,t.offsets.popper.left+=o,t.offsets.popper.top+=s,t}});const l={placement:r,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=yi(e,t,l),function(t,e,i){const n=ki+e,r=Ci+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(r)||t.classList.add(r)}(t,n.side,n.snap)}Mi.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};var Pi=Mi;const Li=12;function Ri(t){let e=new s.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),Li):e.reject(),e.promise()}var ji,$i,Fi=0;function Hi(t){if(ji=Fi+++"",$i=t?t+ji:"aui-uid-"+ji,document.getElementById($i)){if($i=$i+"-"+(new Date).getTime(),document.getElementById($i))throw new Error('Timestamped fallback ID "'+$i+'" exists.');return $i}return $i}c("id",Hi);var Bi=Hi;function Ui(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function Wi(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Vi(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.type){const i=e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1,n=e.type.indexOf("key")>-1;if(t.isSubmenu)i?t.focus():t.focusItem(0);else if(n){if(e.keyCode===Q.UP){const e=tn(t);e&&e.length&&t.focusItem(e.length-1)}else t.focusItem(0)}else t.focus()}}var zi="unloaded",qi="loading",Yi="error",Ki="success";function Gi(t,e){tt(t).set("loading-state",Ki),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?"".concat(e,' ="true"'):""}function i(e){return t[e]?"".concat(e,'="').concat(t[e],'"'):""}var n="aui-item-"+t.type;return"\n <".concat(n," ").concat(i("for")," ").concat(i("href")," ").concat(e("interactive"),"\n ").concat(e("checked")," ").concat(e("disabled")," ").concat(e("hidden"),">\n ").concat(O(t.content),"\n </").concat(n,">")})).join(""),i=t.label?'label="'.concat(t.label,'"'):"";return"\n <aui-section ".concat(i,">\n ").concat(e,"\n </aui-section>")})).join("\n")}(e),Z.init(t),nt(t,(function(e){document.activeElement===e&&Vi(t)}))}function Ji(t){tt(t).set("loading-state",Yi),tt(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML='\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>'.concat(I18n.getText("aui.dropdown.async.error"),"</p>\n </div>\n ")}function Qi(t){t.src&&tt(t).get("loading-state")!==qi&&(!function(t){tt(t).set("loading-state",qi),tt(t).set("hasErrorBeenShown",!1),nt(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML='\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> '.concat(I18n.getText("aui.dropdown.async.loading"),"\n </div>\n ")}(t),s.ajax(t.src).done((function(e,i,n){200===n.status?Gi(t,e):Ji(t)})).fail((function(){Ji(t)})).always((function(){!function(t){nt(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Xi(t,e){return s(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Zi(t){return Xi(t,(()=>!0))}function tn(t){return Xi(t,((t,e)=>!Ui(e)))}function en(t){Zi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ui(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function nn(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function rn(t,e){var i=e&&e.hasSubmenu&&e.hasSubmenu(),n="submenu auto"===t.getAttribute("data-aui-alignment");!i&&n&&function(t){var e=s(t),i=e.data("previous-data-aui-alignment");i?t.setAttribute("data-aui-alignment",i):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");i&&!n?(!function(t){var e=s(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),nn(t),t._auiAlignment=new Pi(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}s(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(Z.init(this),P("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),s(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=s(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const i=e.closest(".aui-dropdown2-trigger-group"),n=i.find(".aui-dropdown2-active");n.length&&e.is(".aui-dropdown2-trigger")&&(n.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=i.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var sn=!1;function an(){sn=!0}function on(t){jt(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=s(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(".".concat(t)).addClass("aui-dropdown2-".concat(t))}))}(t),en(t),s(t).trigger("aui-dropdown2-show"),nt(t,(function(e){Wi(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(s(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Zi(t).removeClass("active aui-dropdown2-active"),nt(t,(function(t){var e;e=!0===sn,sn=!1,e?(t.focus(),Wi(t,t.hasSubmenu&&t.hasSubmenu())):Wi(t,!1)})),delete t.isSubmenu,it(t,null))}))}function ln(t){var e=s(t);function i(e){return s(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){i(e.target)&&(e.keyCode===Q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Q.LEFT?t.isSubmenu&&(an(),t.hide(e),e.preventDefault()):e.keyCode===Q.ESCAPE?an():e.keyCode===Q.TAB&&(an(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!i(e.target))return;const n=e.currentTarget,r=e.keyCode,a=r===Q.ENTER,o=r===Q.SPACE;a&&s(n).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){var i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();if(!(e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=t;do{var r=jt(n);n=jt(n).below(),r.$el.is(".aui-dropdown2")&&r.hide(e)}while(n)}}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(i(e.target)){var n=e.currentTarget,r=n.hasSubmenu&&n.hasSubmenu();if(!e.isDefaultPrevented()&&!r){var s=jt(t).above();s&&jt(s).hide()}}}))}function cn(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),on(t),ln(t),s(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),s(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(s(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}s(window).on("resize",Object(Qt.debounce)((function(){s(".aui-dropdown2").each((function(t,e){Z.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var un={toggle:function(t){this.isVisible()?this.hide(t):this.show(t)},show:function(t){var e=this;return t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&it(e,t.currentTarget),jt(e).show(),nt(e,(function(t){rn(e,t)})),setTimeout((()=>Vi(e,t)),0),this},hide:function(){return jt(this).hide(),this},focusNext:function(){var t,e=tn(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=tn(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=tn(this);"number"==typeof t&&(t=e.get(t));const i=s(t);i.focus(),e.removeClass("active aui-dropdown2-active"),i.addClass("active aui-dropdown2-active")},isVisible:function(){return jt(this).isVisible()}},dn={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},hn={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},pn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new yt("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new yt("change",{bubbles:!0}))}},fn={created:function(t){dn.created(t)},removed:function(t){dn.removed(t)}},gn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const mn=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").map((t=>t.trim())).filter((t=>t))},vn=Z("aui-item-link",{template:ye()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:dn,interactive:hn,hidden:fn,href:gn("href"),"item-id":gn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),s(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),s(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...mn(e.oldValue)),e.newValue&&i.classList.add(...mn(e.newValue))}}}),[bn,yn]=["checkbox","radio"].map((t=>Z("aui-item-".concat(t),{template:ye()('<span role="'.concat(t,'" class="aui-dropdown2-').concat(t,'" tabindex="-1"><content></content></span>')),attributes:{"item-id":gn("id"),disabled:dn,interactive:hn,checked:pn,hidden:fn}}))),wn=Z("aui-section",{template:ye()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=Bi();var n=t.children[0],r=t.children[1];n.textContent=e.newValue,n.id=i,r.setAttribute("aria-labelledby",i)}},created:function(t){t.classList.add("aui-dropdown2-section")}}),_n=Z("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",jt(t),tt(t).set("loading-state",zi),Z.init(t)},detached:function(t){Ri(t).then((()=>nn(t)))},attributes:{src:{}},prototype:un,events:{"aui-layer-show":function(t){var e=tt(t).get("loading-state")===zi,i=tt(t).get("hasErrorBeenShown");(e||i)&&Qi(t),tt(t).get("loading-state")===Yi&&tt(t).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:cn,prototype:un}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:cn,prototype:un}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function i(i){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void v('Could not find a dropdown with id "'+e+'" in the DOM.');const a=s(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),n?r.show(i):r.toggle(i),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):v('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href","#".concat(e)),s(t).on("aui-button-invoke",i).on("click",i).on("keydown",(function(e){if(e.currentTarget!==t)return;const n=e.keyCode===Q.ENTER||e.keyCode===Q.SPACE,r=e.keyCode===Q.RIGHT&&t.hasSubmenu(),s=(e.keyCode===Q.UP||e.keyCode===Q.DOWN)&&!t.hasSubmenu();n?i(e):(s||r)&&i(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=tt(t).get("loading-state")===zi,i=tt(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Qi(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;v('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),Z("aui-dropdown2-sub-trigger",{type:Z.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),Z.init(t)}}),["checkbox","radio"].map((t=>Z("aui-dropdown2-".concat(t),{type:Z.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),_e&&e.setAttribute("role",t)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.removeAttribute("checked"),s(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.setAttribute("checked",""),s(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var xn=s(document),kn=function(t){var e={};return e.$trigger=s(t.currentTarget),e.$content=xn.find("#"+e.$trigger.attr("aria-controls")),e.triggerIsParent=0!==e.$content.parent().filter(e.$trigger).length,e.$shortContent=e.triggerIsParent?e.$trigger.find(".aui-expander-short-content"):null,e.height=e.$content.css("min-height"),e.isCollapsible=!1!==e.$trigger.data("collapsible"),e.replaceText=e.$trigger.attr("data-replace-text"),e.replaceSelector=e.$trigger.data("replace-selector"),e},Cn=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},En={"aui-expander-invoke":function(t){var e=s(t.currentTarget),i=xn.find("#"+e.attr("aria-controls")),n=!1!==e.data("collapsible");"true"===i.attr("aria-expanded")&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=kn(t);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),e.$content.get(0).removeAttribute("hidden"),Cn(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=kn(t);"true"===e.$content.attr("aria-expanded")&&(Cn(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.get(0).setAttribute("hidden",""),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(t){s(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};xn.on(En,".aui-expander-trigger");var Tn=500,An=5e3,Dn=100;function Sn(t){In[t]=function(e,i){i||(i=e,e="#aui-message-bar"),i.closeable=null!==i.closeable&&!1!==i.closeable,i.title=(i.title||"").toString().trim();let n=function(t,e){let{id:i,closeable:n,fadeout:r,title:a,body:o}=t;const l=a?'<p class="title"><strong>'.concat(O(a),"</strong></p>"):"",c='<div class="aui-message">'.concat(l,"</div>"),u=s(c).append(s.parseHTML(o||"")).addClass(n?"closeable":"").addClass(r?"fadeout":"").addClass("aui-message-".concat(e));i&&(/[#\'\"\.\s]/g.test(i)?m("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):u.attr("id",i));return u}(i,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(n,i.insert,e),i.closeable&&On(n),i.fadeout&&Nn(n,i.delay,i.duration),n}}function On(t){s(t||"div.aui-message.closeable").each((function(){var t,e=s(this),i=e.find(ce),n=i.length>0?i.first():s(ue);e.addClass("closeable"),e.append(n),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",ce,(function(t){s(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",ce,(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(s(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function Nn(t,e,i){e=void 0!==e?e:An,i=void 0!==i?i:Tn,s(t||"div.aui-message.fadeout").each((function(){var t=s(this),n=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(i,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(Dn,1)}function l(){return!n&&!r}t.focusin((function(){n=!0,o()})).focusout((function(){n=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var In={setup:function(){On(),Nn()},makeCloseable:On,makeFadeout:Nn,createMessage:Sn};s.fn.closeMessage=function(){var t=s(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),s(document).trigger("aui-message-close",[this]))},Sn("generic"),Sn("error"),Sn("warning"),Sn("info"),Sn("confirmation"),Sn("change"),Sn("success"),Sn("hint");const Mn=Z("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",In[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});s((function(){In.setup()})),F(In,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),F(In,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),F(In,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),c("messages",In);var Pn=5e3,Ln="aui-flag-container",Rn={body:"",close:"manual",title:"",type:"info"};function jn(t){(t=s.extend({},Rn,t)).title=(t.title||"").toString().trim();var e=function(t){let{body:e,title:i,close:n,type:r}=t;const a=i?'<p class="title"><strong>'.concat(O(i),"</strong></p>"):"",o='<div class="aui-message">'.concat(a,"</div>"),l=s(o).append(s.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass("aui-message-".concat(r));return s('<div class="aui-flag" aria-live="polite"></div>').append(l)}(t);return function(t){var e=t[0];e.close=function(){Fn(t)}}(e),"auto"===t.close?($n(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),Pn)}(e)):"manual"===t.close&&$n(e),function(){const t=Hn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else s("body").prepend('<div id="'+Ln+'"></div>')}(),function(t){const e=Hn();t.appendTo(e),V(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function $n(t){var e=s(ue);return e.on("click",(function(){Fn(t)})),e.on("keypress",(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(Fn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function Fn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new yt("aui-flag-close",{bubbles:!0})),e}function Hn(){return document.getElementById(Ln)}X("aui/flag",jn),c("flag",jn);var Bn=jn,Un=i(20),Wn=i.n(Un);function Vn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vn(Object(i),!0).forEach((function(e){qn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qn(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Yn="aui-tooltip",Kn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Gn="aui-tooltip",Jn={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let Qn;const Xn=()=>Qn&&Qn.get(0),Zn=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=Xn();e&&e.classList.toggle("assistive",t)};class tr{constructor(t,e){this.triggerElement=t,this.$triggerElement=s(this.triggerElement),this.options=zn(zn({},Jn),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),er.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,t.options.aria&&e.attr("aria-describedby",Yn),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".".concat(Gn),t):this.$triggerElement.off(".".concat(Gn))}buildTip(t){const e=this.options;void 0===Qn&&(Qn=s('<div id="'.concat(Yn,'" class="').concat("aui-tooltip",' assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>')),s(document.body).append(Qn));const i=Qn.find(".aui-tooltip-content");return e.html?(e.sanitize&&(t=Wn.a.sanitize(t)),i.html(t)):i.text(t),e.maxWidth&&i.css("max-width",e.maxWidth+"px"),Qn}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return e&&e.trim().length?e:void 0}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;this.hide();const e=this.triggerElement,i=Kn[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const n=this.buildTip(t).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=yi(e,n,{placement:i,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),s(window).on("scroll.".concat(Gn),(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),s(window).off("scroll.".concat(Gn))}showTooltip(){Zn(!1)}hideTooltip(){Zn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const er=new WeakMap,ir=(t,e)=>{let i=er.get(t);return void 0===i&&(i=new tr(t,e),"object"==typeof t&&er.set(t,i)),i},nr=t=>t.map((t=>"".concat(t,".").concat(Gn))).join(" "),rr=nr(["mouseenter","focus"]),sr=nr(["click","mouseleave","blur"]);s.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return ir(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error("Method ".concat(n," does not exist on tooltip."));return i[n](),e}const i=t||{},n=function(){ir(this,i).show()},r=function(){ir(this,i).hide()},s=i.live;return void 0!==s?(i.$delegationRoot=e,e.on(rr,s,n),e.on(sr,s,r),e):(e.on(rr,n),e.on(sr,r),e)};var ar={dropdown:function(t){function e(){return s('<div class="aui-dropdown2-section">')}var i=e();s("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var n=e(),r=s("<ul />").appendTo(n);return s.each(t,(function(t,e){var i=s("<li />").attr({class:e.styleClass||""}).appendTo(r),n=s("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);e.icon&&s("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(n),e.selected&&n.addClass("aui-dropdown2-checked")})),s("<div />").append(i).append(n).html()},furniture:function(t,e){var i=t+"-dropdown",n=s("<select />").attr({name:t,multiple:"multiple"}).html(e),r=s("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=s("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return s("<div />").append(n).append(a).append(r).html()}};function or(t){var e=s(t.target);lr(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function lr(t,e,i){var n=t.$select.find("option").filter((function(){var t=s(this);return t.attr("value")===e&&t.prop("selected")!==i}));n.length&&(n.prop("selected",i),t.$select.trigger("change"))}function cr(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return pr(t).length<1}))}function ur(t){return t.map((function(){var t=s(this);return{value:t.val(),label:t.text(),icon:t.data("icon"),styleClass:t.data("styleClass"),title:t.attr("title"),disabled:t.attr("disabled"),selected:t.prop("selected")}}))}function dr(t){t.$dropdown.html(ar.dropdown(function(t){return ur(t.getOptions())}(t))),cr(t)}function hr(t){var e=fr(t),i=function(t){return 0===pr(t).length}(t)?function(t){return s(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(i)}function pr(t){return ur(t.getSelectedOptions())}function fr(t){return s.map(pr(t),(function(t){return t.label}))}const gr=Z("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||Bi("aui-checkbox-multiselect-");t.innerHTML=ar.furniture(e,t.innerHTML),t.$select=s("select",t).on("change",(function(){hr(t),cr(t)})),t.$dropdown=s(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",or.bind(t)).on("aui-dropdown2-item-uncheck",or.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=s(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":fr(t).join(", ")}(t)}}),hr(t),dr(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){lr(this,t,!0)},unselectOption:function(t){lr(this,t,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(t){s("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),hr(this),dr(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),hr(this),dr(this)}}});X("aui/checkbox-multiselect",gr);var mr=gr,vr=i(21),br=i.n(vr).a;var yr=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var r=t.getAttribute(i);return n((function(){return document.getElementById(r)}),'an element with id set to "'+r+'" was not found')}function n(e,i){return!!e()||(t?v(i,t):v(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}};const wr="-input";function _r(t){return t.querySelector("label")}const xr=Z("aui-label",{template:ye()("<label><content></content></label>"),created:function(t){t._label=_r(t)},attached:function(t){yr(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?_r(t).setAttribute("for","".concat(e.newValue).concat(wr)):_r(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?_r(t).setAttribute("form",e.newValue):_r(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});var kr=xr,Cr=(i(27),s.fn.select2),Er="aui-select2-container",Tr="aui-select2-drop aui-dropdown2",Ar="aui-has-avatar";s.fn.auiSelect2=function(t){var e;if(s.isPlainObject(t)){var i=s.extend({},t),n=i.hasAvatar?" "+Ar:"";i.containerCssClass=Er+n+(i.containerCssClass?" "+i.containerCssClass:""),i.dropdownCssClass=Tr+n+(i.dropdownCssClass?" "+i.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(i)}else e=arguments.length?arguments:[{containerCssClass:Er,dropdownCssClass:Tr}];return Cr.apply(this,e)},s.fn.spin=R((function(t,e){let i={size:"small"};return"object"==typeof e&&(i=s.extend(i,e)),"object"==typeof t&&(i=s.extend(i,t)),"string"==typeof t&&(i.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=s(this),e=t.data();if(e){const n=s("<aui-spinner filled></aui-spinner>");n.attr("size",i.size),n.css("color",i.color),t.spinStop(),t.append(n),Z.init(this),e.spinner=n}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),s.fn.spinStop=R((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=s(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});var Dr=Z("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||O(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=O(this.textContent),t}}}),Sr=i(1),Or=i.n(Sr),Nr=Or.a.Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,Object(Qt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=Object(Qt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=Object(Qt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Or.a.Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=Object(Qt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,r=this.parse(e,i);n[t]=Object(Qt.pluck)(r,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});c("ProgressiveDataSet",Nr);var Ir=Nr,Mr=Or.a.Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function Pr(){this._suggestions=[],this._activeIndex=-1}Pr.prototype={onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){var t=this._activeIndex,e=0===t?t:t-1;return this.highlight(e),this},highlightNext:function(){var t=this._activeIndex,e=t===this._suggestions.length-1?t:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};var Lr=Pr;function Rr(t,e){return t+"-"+e}function jr(t,e){this.el=t,this.anchor=e}function $r(t){s(t).find(".aui-select-active").removeClass("aui-select-active")}jr.prototype={render:function(t,e,i){this.currListId=i;var n="";if(t.length){var r=e;t.forEach((function(t){var e=t.getLabel(),s=t.get("img-src"),a=s?'<img src="'.concat(encodeURI(s),'"/>'):"",o=t.get("new-value")?" (<em>".concat(I18n.getText("aui.select.new.value"),"</em>)"):"";n+='<li role="option" class="aui-select-suggestion" id="'.concat(Rr(i,r),'">').concat(a).concat(e).concat(o,"</li>"),r++})),e?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else e||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'.concat(I18n.getText("aui.select.no.suggestions"),"</li>"));return this},setActive:function(t){$r(this.el),s(this.el).find("#"+Rr(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;s((t=this).el).css("min-width",s(t.anchor).outerWidth()),jt(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new Pi(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;$r(this.el),jt(this.el).hide(),(t=this)._auiAlignment&&t._auiAlignment.disable()},destroy:function(){var t;this.hide(),(t=this)._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment),delete this.currListId},isVisible:function(){return s(this.el).is(":visible")}};var Fr=jr,Hr=ye()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),Br=-1,Ur=-1,Wr=20;function Vr(t){t._select.selectedIndex=Br,function(t){t._input.removeAttribute("style"),s(t._input).removeClass("aui-select-has-inline-image")}(t)}function zr(t){return t._suggestionModel.getNumberOfResults()}function qr(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function Yr(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function Kr(t){var e=zr(t)?0:Ur;t._suggestionModel.highlight(e),Yr(t)}function Gr(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Jr(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){s(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Qr(t,e){if(e){var i,n=document.createElement("option"),r=t._select,s=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",s),n.textContent=a,t._input.value=a,r.innerHTML="",r.options.add(n),r.dispatchEvent(new yt("change",{bubbles:!0}))}}function Xr(t){Qr(t,t._suggestionModel.highlighted()),Jr(t),Kr(t)}function Zr(t){return new Mr(t.serialize())}function ts(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Zr(n))}return e}function es(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function is(t,e){return s.map(e,(function(t){return t.id})).indexOf(t)}function ns(t){t._progressiveDataSet=new Ir(ts(t),{model:Mr,matcher:qr,queryEndpoint:t._queryEndpoint,maxResults:Wr}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),tt(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),tt(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(tt(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||tt(t).set("should-cancel-response",!1));e.query||(e.results=ts(t));var i=-1!==is(t._input.value,e.results),n=!t._input.value;if(!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Dr;e.setAttribute("value",t._input.value);var i=Zr(e);return i.set("new-value",!0),i}(t)),!tt(t).get("should-include-selected")){var r=is(t.value,e.results);r>=0&&e.results.splice(r,1)}const s=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=t._suggestionModel.highlighted()||e.results[0];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){t._input.setAttribute("aria-activedescendant",es(t))}),50)),t._input.setAttribute("aria-expanded","true"),!t._isSync&&s&&t._suggestionsView.getActive()&&tt(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function rs(t){var e=t.value?"":t._input.value,i=""===t._input.value;tt(t).set("should-include-selected",i),Gr(t,!0,e)}function ss(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&tt(t).set("should-cancel-response",!0)}function as(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function os(t){ss(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==as(t);if(i||n)if(e)Vr(t);else{var r=as(t);void 0===r?Vr(t):t._input.value=r}}(t),function(t){t._suggestionModel.highlight(Ur)}(t),Yr(t)}const ls=Z("aui-select",{template:Hr,created:function(t){t._listId=Bi(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new Fr(t._dropdown,t._input),t._suggestionModel=new Lr,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((function(e){return t.id===e.id}))||i.push(t)})),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",es(t))}},attached:function(t){Z.init(t),ns(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),t.setAttribute("tabindex","-1"),function(t){s(t._dropdown).on("mouseover","li",(function(e){zr(t)&&t._suggestionModel.highlight(s(e.target).index())}))}(t),function(t){let e=!1;s(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),s(t._dropdown).on("mousedown","li",(function(i){if(!zr(t))return!1;t._suggestionModel.highlight(s(i.target).index()),Xr(t),t._suggestionsView.hide(),s(t).closest(".aui-layer").length>0&&(e=!0),t._input.removeAttribute("aria-activedescendant")}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&Qr(t,Zr(e))}(t),Kr(t),Jr(t)},detached:function(t){s(document).off("aui-close-layers-on-outer-click"),Ri(t).then((()=>{Yr(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+wr)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){os(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||tt(t).set("prevent-open-on-button-click",!0)},"click input":function(t){rs(t)},"click button":function(t){var e=tt(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(tt(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?(tt(t).set("should-include-selected",!0),Gr(t,!0)):tt(t).get("button-clicked-prevent-dropdown-hide")?tt(t).set("button-clicked-prevent-dropdown-hide",!1):Yr(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Q.ESCAPE)return ss(t),void Yr(t);t._suggestionsView.isVisible()&&zr(t)?e.keyCode===Q.ENTER?(ss(t),Xr(t),e.preventDefault()):e.keyCode===Q.TAB?(!function(t){t._suggestionsView.isVisible()&&Xr(t)}(t),n=!0):e.keyCode===Q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Q.UP&&e.keyCode!==Q.DOWN||(rs(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new yt("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new Mr({value:t,label:t})),Qr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),os(this),this},focus:function(){return this._input.focus(),rs(this),this}}});X("aui/select",ls),c("select",ls);var cs=ls;function us(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}var ds={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:us,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,r=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:r?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function hs(t){return t._input||(t._input=t.querySelector("input"))}function ps(t){return t._spinner||(t._spinner=new se)}function fs(t,e){hs(e).removeAttribute(t)}function gs(t,e,i){hs(e).setAttribute(t,i.newValue)}function ms(t){return{removed:fs.bind(this,t),fallback:gs.bind(this,t)}}const vs={removed:function(t){fs.call(this,"form",t),t._formId=null},fallback:function(t,e){gs.call(this,"form",t,e),t._formId=e.newValue}};var bs={removed:fs.bind(void 0,"id"),fallback:function(t,e){const i="".concat(e.newValue).concat(wr);hs(t).setAttribute("id",i)}},ys={removed:function(t){fs.call(this,"value",t),hs(t).value="on"},fallback:function(t,e){gs.call(this,"value",t,e)}},ws={removed:function(t){hs(t).checked=!1},fallback:function(t){hs(t).checked=!0}},_s={removed:function(t){hs(t).removeAttribute("aria-label")},fallback:function(t,e){hs(t).setAttribute("aria-label",e.newValue)}};function xs(t){hs(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&hs(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===me)try{document.querySelector(":focus-within"),me=!0}catch(t){me=!1}return me}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const ks=Z("aui-toggle",{template:ye()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(t){hs(t),ps(t).setAttribute("size",Xt.SMALL.name),s(hs(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),xs(t),t.hasAttribute("checked")&&hs(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){yr(t).attributeExists("label")},events:{click:function(t,e){var i=hs(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new yt("change",{bubbles:!0}))}(t)),us(t,"checked",i.checked)}},attributes:{id:bs,checked:ws,disabled:ms("disabled"),form:vs,name:ms("name"),value:ys,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){hs(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){hs(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:_s},prototype:{focus:function(){return hs(this).focus(),this},get checked(){return hs(this).checked},set checked(t){hs(this).checked!==t&&(hs(this).checked=t,us(this,"checked",t))},get disabled(){return hs(this).disabled},set disabled(t){return us(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return vs.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return hs(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return hs(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===hs(this).getAttribute("aria-busy")},set busy(t){const e=hs(this),i=ps(this);var n,r;return us(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),s(this.querySelector(".aui-toggle-tick")).append(i)):s(this.querySelector(".aui-toggle-cross")).append(i)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),i.parentNode&&i.parentNode.removeChild(this._spinner)),r=!!t,(n=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'.concat(n.id,'"]')),(function(t){t.disabled=r})),t}}});var Cs=ks;function Es(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ts(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Es(Object(i),!0).forEach((function(e){As(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Es(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function As(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Ds=1e3;function Ss(t,e){nt(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),it(t,e)}function Os(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};i=Ts(Ts({},i),{onCreate:()=>{Us(t)&&mt().enter(s(t),s(e))},onEvents:{enabled:()=>{Us(t)&&mt().enter(s(t))},disabled:()=>{Us(t)&&mt().exit(s(t))}}}),t._auiAlignment=new Pi(t,e,i)}}function Ns(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Is(t,e){var i=e.currentTarget;i&&(Ss(t,i),Os(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Ms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){e.open&&!jt(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return tt(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Ps={click(t,e){t.open&&!jt(t).isPersistent()?t.open=!1:(Ss(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Is,mouseleave:Ms(Ds),focus:Is,blur:Ms(0)};function Ls(t){var e=t.currentTarget;tt(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function Rs(t){var e=t.currentTarget;tt(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function js(t){var e=t.currentTarget;"hover"===e.respondsTo&&Ms(Ds)(e)}function $s(t){tt(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Ls),t.removeEventListener("mouseleave",Rs),t.removeEventListener("blur",js),"hover"===t.respondsTo&&(tt(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Ls),t.addEventListener("mouseleave",Rs),t.addEventListener("blur",js))}function Fs(t,e){return"".concat(t,".nested-layer-").concat(e)}function Hs(t){return jt(t).show(),!0===jt(t).isVisible()}function Bs(t){return jt(t).hide(),!1===jt(t).isVisible()}function Us(t){return"hover"!==t.respondsTo}function Ws(t){t.__initialised||(jt(t),s(t).on({["".concat(wt,"show")]:function(){const t=this;!function(t){let e=s(t);const i=t.id,n=t=>e.find(et(t.target)).length<1;s(document).on(Fs("aui-layer-show",i),(t=>{n(t)||e.attr("persistent","")})).on(Fs("aui-layer-hide",i),(t=>{n(t)||e.removeAttr("persistent")})).on(Fs("select2-opening",i),(()=>{e.attr("persistent","")})).on(Fs("select2-close",i),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),nt(t,(function(e){Os(t,e),e.setAttribute("aria-expanded","true")}))},["".concat(wt,"hide")]:function(){const t=this;!function(t){const e=t.id;s(document).off(Fs("aui-layer-hide",e)).off(Fs("aui-layer-show",e)).off(Fs("select2-opening",e)).off(Fs("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):Ns(t),nt(t,(function(t){t.setAttribute("aria-expanded","false")})),it(t,null)}}),t.__initialised=!0)}const Vs={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},zs=Z("aui-inline-dialog",{prototype:{get open(){return jt(this).isVisible()},set open(t){this.__propUpdate=!0,t?Hs(this):Bs(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){ds.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=Vs.attribute;return ds.computeEnumValue(Vs,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;ds.setEnumAttribute(this,Vs,t),e!==this.respondsTo&&$s(this)},message:function(t){return function(t,e){var i={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[t.respondsTo];i&&i.indexOf(e.type)>-1&&Ps[e.type](t,e)}(this,t),this}},attributes:{open:function(t,e){if(Ws(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){Hs(t)||us(t,"open",!1)}if("removed"===e.type){Bs(t)||us(t,"open",!0)}}},"responds-to":function(t,e){ds.computeEnumValue(Vs,e.oldValue)!==ds.computeEnumValue(Vs,e.newValue)&&$s(t)}},created:Ws,attached:function(t){yr(t).attributeExists("id"),t.setAttribute("tabindex",0),t.setAttribute("role","dialog"),nt(t,(function(e){e.setAttribute("aria-expanded",t.open)})),rt(t,(function(t){t.setAttribute("aria-haspopup","true")})),$s(t)},detached:function(t){Ri(t).then((()=>{Ns(t),rt(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){s('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});X("aui/inline-dialog2",zs),c("InlineDialog2",zs);var qs=zs;function Ys(t){if(this.$el=s(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new Ys(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){Ks(s(this).children(".aui-nav")).expand()}));var i=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return i.on("click",(function(){Ks(s(this).siblings(".aui-nav")).toggle()})),i.each((function(){var t=s(this).parent("li[aria-expanded]"),e=s(this).find(".aui-icon"),i="true"===t.attr("aria-expanded");e.text(i?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}Ys.prototype.isNested=function(){return 1===this.$treeParent.length},Ys.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Ys.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},Ys.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},Ys.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Ks=vt("navigation",Ys),Gs=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(t){new Ys(t)},detached:function(t){s(t).removeData()}});c("navigation",Ks);var Js=Ks;const Qs="aui-progress-indicator-after-update",Xs="aui-progress-indicator-before-update",Zs="transitionend webkitTransitionEnd";function ta(t,e,i){let{currentProgress:n,value:r}=i;const a=s(t),o=s(e);"number"==typeof r&&r<=1&&r>=0&&(o.trigger(Xs,[n,r]),a.one(Zs,(function(){o.trigger(Qs,[n,r])})),function(t,e,i){V(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(a,o,r))}function ea(t){var e=s(t).first(),i=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),V(e),i.css("width","")}const ia={indeterminate:!1,max:1,val:0};function na(t){return Object(Qt.isNumber)(t)&&Object(Qt.isFinite)(t)&&!Object(Qt.isNaN)(t)}function ra(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const i=parseFloat(t);return na(i)?i:Number(e)}function sa(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(parseFloat(t).toFixed(e))}function aa(t){const{val:e,max:i}=t,n=function(t){return t>0?t:ia.max}(i),r=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),s=sa(r/n,6);return{max:n,val:r,valAsFraction:s,valAsPercent:sa(100*s,2)}}function oa(t){const{val:e,valAsFraction:i,max:n}=aa(t._data),r=t.querySelector(".aui-progress-indicator"),s=r.getAttribute("data-value");t.indeterminate?(r.removeAttribute("aria-valuenow"),ea(r)):(r.setAttribute("aria-valuenow",e),r.setAttribute("aria-valuemax",n),ta(r.querySelector(".aui-progress-indicator-value"),r,{currentProgress:s,value:i}))}function la(t,e){t._data.val=ra(e.newValue,e.oldValue||ia.val),oa(t)}function ca(t,e){t._data.max=ra(e.newValue,e.oldValue||ia.max),oa(t)}const ua=Z("aui-progressbar",{template(t){t._data.max=ra(t.getAttribute("max"),ia.max),t._data.val=ra(t.getAttribute("value"),ia.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:r}=aa(t._data),s=t._data.indeterminate?"":'data-value="'.concat(n,'"');t.innerHTML='<div class="aui-progress-indicator"\n '.concat(s,'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="').concat(e,'"\n aria-valuemax="').concat(i,'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ').concat(r,'%"></span>\n </div>')},attached(t){oa(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:ia.val,fallback:function(t,e){if(t._updating)return!1;la(t,e)}},max:{value:ia.max,fallback:function(t,e){if(t._updating)return!1;ca(t,e)}}},prototype:{get _data(){return this.__data||(this._data=Object(Qt.defaults)({},ia))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,oa(this)},get value(){const{val:t}=aa(this._data);return t},set value(t){if(!na(t))return!1;const e={newValue:sa(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,la(this,e)},get max(){const{max:t}=aa(this._data);return t},set max(t){if(!na(t))return!1;const e={newValue:sa(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,ca(this,e)}}}),da={update:R((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var i=s(t).first(),n=i.children(".aui-progress-indicator-value"),r=i.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(n.get(0).style.width)||0)}if(!l)return a&&n.css("width",0),ta(n,i,{currentProgress:o,value:e}),i}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(ea,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};c("progressBars",da);var ha=da;i(28);const pa={sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function fa(t,e){let i=Object.assign({},pa,e);return t.find("th").each((function(t,e){const n=s(e);i.headers[t]={},n.hasClass("aui-table-column-unsortable")?i.headers[t].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(i.headers[t].sorter="issue-key"))})),t.tablesorter(i)}let ga={setup:function(){s.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],r="..........",s="000000";let a=(i+r).slice(0,r.length);return a+=(s+n).slice(-s.length),a},type:"text"}),s.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),s.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),s(".aui-table-sortable").each((function(){fa(s(this))}))},setTableSortable:function(t,e){return fa(t,e)}};s(ga.setup),c("tablessortable",ga);function ma(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var i=s(t),n=e||!1;i.each((function(){var t=s(this);t.attr("id")||t.attr("id",Bi(n))}))}c("_addID",ma);var va=ma;function ba(t){return(t=s(t)).prop("scrollWidth")>t.prop("clientWidth")}c("isClipped",ba);var ya=ba,wa=window.skateTemplateHtml,_a="_internal-aui-tabs-",xa='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function ka(t){let e=s(t),i=String(e.attr("href")||"").trim();return 0===i.indexOf("#")?i.substr(1):null}function Ca(t){let e=ka(t);return e?document.getElementById(e):null}var Ea={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,i){e+=s(i).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i='<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-'.concat(e,'"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-').concat(e,'"\n href="#aui-tabs-responsive-dropdown-').concat(e,'">...</a>\n </li>');return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,i){function n(t,e,i){return t+e<=i}for(var r=0,a=0;n(r,i,e)&&a<t.length;a++){r+=s(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,i){for(var n=i.find("a").attr("aria-controls"),r=s("#"+n),a=this.findNewVisibleTabs(t,e.outerWidth(),i.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=s(t[l]);this.moveTabToResponsiveDropdown(c,r,i)}return s(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,i){function n(t){return t>0}for(var r=0;n(e)&&r<t.length;r++){var a=s(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,i),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Ta(t){var e=s(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var i=Ca(e);if(i){var n=s(i);n.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=s(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=n.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&n.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:n})}else v("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Aa(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Da(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return _a+(e||"")+(i&&"true"!==i?"-"+i:"")}function Sa(t){La.change(s(t.target).closest("a")),t&&t.preventDefault()}function Oa(t){t.forEach((function(t,e){!function(t,e){var i=s(t),n=i.find(".tabs-menu").first(),r=n.find("li:not(.aui-tabs-responsive-trigger-item)"),a=n.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=s(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Ea.totalTabsWidth(r,c)>i.outerWidth();if(!u&&d&&(a=Ea.createResponsiveDropdownTrigger(n,e),c=Ea.createResponsiveDropdown(i,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=Ea.moveVisibleTabs(r.toArray(),i,a),p=Ea.totalVisibleTabWidth(h),f=i.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Ea.moveInvisibleTabs(g.toArray(),f,a)}i.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Sa),n.is(":visible")&&n.hide().show()}u&&!d&&(c.find("li").each((function(){Ea.moveTabOutOfDropdown(s(this),a)})),Ea.removeResponsiveDropdown(c,a))}(t,e)}))}function Na(){return s(xa).toArray()}function Ia(t){var e=s(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var i=e.children("ul.tabs-menu");i.attr("role","tablist"),i.children("li").attr("role","presentation"),i.find("> .menu-item a").each((function(){var t,e,i;e=s(t=this),i=Ca(e),ka(t)||v('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),i?(va(e),e.attr("role","tab"),s(i).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):m("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),i.on("click.aui-tabs","a",Sa),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(Pa)}(t)}}function Ma(){var t=s(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){Ia(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),r=t.get(e);if(Aa(n)&&window.localStorage)if(n.attr("id")){var s=window.localStorage.getItem(Da(n));if(s){var a=r.querySelector('a[href$="'.concat(s,'"]'));a&&Ta(a)}}else m("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function Pa(t){t.setAttribute("role","tabpanel")}var La={setup:function(){!function(){const t=Object(Qt.debounce)(Oa,200);t(Na()),s(window).on("resize.aui-tabs",(()=>t(Na())))}(),Ma(),s(".aui-tabs.vertical-tabs").find("a").each((function(){var t=s(this);t.attr("title")||ya(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof s?t:document.querySelector(t),i=s(e).first(),n=i.closest(".aui-tabs");Ta(i),Aa(n)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=ka(t);i&&window.localStorage.setItem(Da(e),"#"+i)}else m("A tab group must specify an id attribute if it specifies data-aui-persist.")}(i)}};s(La.setup);const Ra=Z("aui-tabs",{created:function(t){s(t).addClass("aui-tabs horizontal-tabs"),Z.init(t),Ia(t)},template:wa('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e,i=s((e=this,e.querySelectorAll("aui-tabs-pane"))).index(t);return i>-1&&La.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[i].children[0]),this}}}),ja=Z("aui-tabs-tab",{extends:"li",created:function(t){s(t).addClass("menu-item")},template:wa('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),$a=Z("aui-tabs-pane",{attached:function(t){var e=s(function(t){return s(t).closest("aui-tabs").get(0)}(t)),i=s(t),n=e.find("aui-tabs-pane").index(i),r=new ja,a=s(r);i.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),wa.wrap(r).textContent=i.attr("title"),0===n&&i.addClass("active-pane"),i.hasClass("active-pane")&&a.addClass("active-tab"),i.siblings("ul").append(r)},template:wa("<content></content>")});c("tabs",La);const Fa="_aui-form-notification-initialised",Ha="data-aui-notification-",Ba=Ha+"wait",Ua=Ha+"info",Wa=Ha+"error",Va=[Wa,Ha+"success",Ba,Ua];function za(t){qa(t)||(!function(t){t.addClass(Fa),Ya(t)}(t),Ja(t))}function qa(t){return t.hasClass(Fa)}function Ya(t,e){e=e||Ka(t),Ga(t)===Ua&&t.after(function(t){if(t.length>1){let e=t.map((t=>"<li>".concat(t,"</li>"))).join("");return'<div class="description"><ul>'.concat(e,"</ul></div>")}return'<div class="description">'.concat(t,"</div>")}(e))}function Ka(t){var e=Ga(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function Ga(t){var e;return Va.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function Ja(t){const e=s(t);if(!qa(e))return;const i=Ga(e);Za(e,i===Ba);const n=Ka(e);n&&i===Wa?Qa(e,n):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(Wa)||e.parent().find(".error").remove()}function Qa(t,e){let i=Xa(t,"error");i.length>0&&i.remove(),t.after(function(t){let e=t.map((t=>'<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">'.concat(t,"</span>").concat(t,"</li>"))).join("");return'<div class="error"><ul>'.concat(e,"</ul></div>")}(e))}function Xa(t,e){return t.parent().find(".".concat(e))}function Za(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const to=P("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(t){to(),za(s(t))},attributes:function(){const t={};return Va.forEach((function(e){t[e]=Ja})),t}(),type:Z.type.ATTRIBUTE}),X("aui/form-notification");var eo=["displayfield","watchfield","when","novalidate","state"],io=[];var no={register:function(t,e){var i;if("string"==typeof t)i=t;else{var n=function(t){var e=!1;return t.some((function(t){var i=-1!==s.inArray(t,eo);return i&&(e=t),i})),e}(t);if(n)return m('Validators cannot be registered with the argument "'+n+'", as it is a reserved argument.'),!1;i="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:i};return io.push(r),r},validators:function(){return io}};X("aui/form-validation/validator-register",no);var ro=no;function so(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),r=parseInt(t.args("maxlength"),10);if(n&&r&&n===r&&!i&&e!==n){const e=ho("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=ho("minlength",t.args);t.invalidate(e)}else if(r&&e>r){const e=ho("maxlength",t.args);t.invalidate(e)}else t.validate()}function ao(t){return"password"===t.getAttribute("type")}function oo(t,e){var i=t.match(e);return!!i&&t===i[0]}function lo(t){var e=ho("pattern",t.args);oo(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function co(t){var e=ho("required",t.args);t.el.value?t.validate():t.invalidate(e)}function uo(t){var e=ho("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),r=t.args("max");n&&i<parseInt(n,10)?t.invalidate(ho("min",t.args)):r&&i>parseInt(r,10)?t.invalidate(ho("max",t.args)):t.validate()}}function ho(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:po[t];var r=i;i||(r=[e(t)]);var s,a=e(t+"-msg");return s=a?[a].concat(r):[n].concat(r),AJS.format.apply(null,s)}ro.register(["maxlength","minlength"],so),ro.register("[maxlength],[minlength]",so),ro.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,r=ho("matchingfield",t.args,[e,n]);(ao(t.el)||ao(i))&&(r=ho("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(r):t.validate()})),ro.register(["doesnotcontain"],(function(t){var e=ho("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),ro.register(["pattern"],lo),ro.register("[pattern]",lo),ro.register(["required"],co),ro.register("[required]",co),ro.register(["min","max"],uo),ro.register("[min],[max]",uo),ro.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=ho("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},r=e.split(""),s="";r.forEach((function(t){var e=n.hasOwnProperty(t);s+=e?n[t]:t}));var a=new RegExp(s+"$","i");oo(t.el.value,a)?t.validate():t.invalidate(i)})),ro.register(["minchecked","maxchecked"],(function(t){var e=s(t.el).find(":checked").length,i=!t.args("minchecked")||e>=t.args("minchecked"),n=!t.args("maxchecked")||e<=t.args("maxchecked"),r=ho("minchecked",t.args),a=ho("maxchecked",t.args);i&&n?t.validate():i?n||t.invalidate(a):t.invalidate(r)}));var po={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};X("aui/form-validation/basic-validators");const fo="aui-validation-",go="data-aui-notification-",mo="aui-validation-state",vo="invalid",bo="valid",yo="validating",wo="unvalidated",_o="_aui-form-validation-initialised",xo="_aui-internal-field-state-changed";function ko(t){(function(t){return t.hasClass(_o)})(t)||(!function(t){t.addClass(_o),Ya(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=Eo(t,"when"),i=Eo(t,"watchfield"),n=i?t.add("#"+i):t;n.on(e,(function(){Co(t)}))}(t)}(t),Do(t,wo))}function Co(t){if(!Eo(t,"novalidate"))return function(t){!function(t){So(No(t),"none")}(t);var e=function(t){var e=[];return To().forEach((function(i,n){var r=i.validatorTrigger;t.is(r)&&e.push(n)})),e}(t);Do(t,yo);var i=function(t,e){var i=[];return e.forEach((function(e){var n=To()[e].validatorFunction,r=new s.Deferred,a=function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Do(t,vo,i),e.reject()},args:Ao(t),el:t[0],$el:t};return F(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r);n(a),i.push(r)})),i}(t,e),n=s.when.apply(s,i);return n.done((function(){Do(t,bo)})),n}(t);Do(t,bo)}function Eo(t,e){var i=t.attr("data-"+fo+e);return i||(i={when:"change"}[e]),i}function To(){return ro.validators()}function Ao(t){return function(e){return t.attr("data-"+fo+e)||t.attr(e)}}function Do(t,e,i){if(t.attr("data-"+mo,e),e!==wo){t.trigger(s.Event(xo));var n=No(t),r={};r[yo]="wait",r[vo]="error",r[bo]="success";var a=r[e];e===yo?function(t){setTimeout((function(){Io(t)===yo&&(So(t,"wait"),Za(t,!0))}),500)}(t):So(n,a,i)}}function So(t,e,i){const n=function(t){return t.is("["+go+"wait]")}(t);!function(t){Oo(t,"wait"),Za(t,!1),Oo(t,"success")}(t);var r,s;if(!("success"===e&&!n))if("none"===e)Oo(t,"error");else{const n=t.attr(go+e)||"[]",a=i?(r=i,s=n,JSON.parse(s).concat([r])):[];t.attr(go+e,JSON.stringify(a)),"error"===e&&Qa(t,a)}}function Oo(t,e){t.removeAttr(go+e),"error"===e&&Xa(t,e).remove()}function No(t){var e=Eo(t,"displayfield");return void 0===e?t:s("#"+e)}function Io(t){return t.attr("data-"+mo)}function Mo(t,e){e.preventDefault(),t.one(xo,(function(){t.trigger("submit")}))}function Po(t,e){var i="[data-"+mo+"="+e+"]";return t.find(i)}s(document).on("submit",(function(t){var e=t.target,i=s(e),n=function(t){var e=t.find("."+_o);return o=e,i=s.map(o,(function(t){return Io(s(t))})),n=-1!==i.indexOf(vo),r=-1!==i.indexOf(wo),a=-1!==i.indexOf(yo),n?vo:r?wo:a?yo:bo;var i,n,r,a;var o}(i);if(n===wo)Mo(i,t),function(t){var e=Po(t,wo);e.each((function(t,e){Lo.validate(s(e))}))}(i);else if(n===yo)Mo(i,t);else if(n===vo)t.preventDefault(),function(t){var e=Po(t,vo).first();e.focus()}(i);else if(n===bo){var r=s.Event("aui-valid-submit");i.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const Lo={register:ro.register,validate:function(t){Co(t=s(t))}};Z("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),ko(s(t)),Z.init(t)},type:Z.type.ATTRIBUTE}),X("aui/form-validation",Lo),c("formValidation",Lo);var Ro=R((function(t,e){var i,n;return function(){var r=arguments,s=this;return clearTimeout(i),i=setTimeout((function(){n=t.apply(s,r),s=r=null}),e),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}),jo=Ro;c("debounce",Ro);var $o=R((function(t,e){var i,n=null;return function(){var r=this,s=arguments;return null===n&&(i=t.apply(r,s)),clearTimeout(n),n=setTimeout((function(){n=r=s=null}),e),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});c("debounceImmediate",$o);const Fo=s(window);function Ho(t){var e,i=this;this.element=t,this.$element=s(t),this.index=s("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=s(i.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}Ho.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=s(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=s(this).parent(),i=e.outerWidth(!0);t.totalWidth+=i,t.menuItems.push({$element:e,outerWidth:i})})),this.rightMostNavItemIndex=this.menuItems.length-1,Fo.on("resize",this._resizeHandler=jo((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){Fo.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id="aui-responsive-header-dropdown-".concat(this.index),Z.init(e);var i=document.createElement("aui-section");i.id="aui-responsive-header-dropdown-list-".concat(this.index),Z.init(i),e.appendChild(i);var n,r,a=(n=e,(r=document.createElement("a")).setAttribute("class","aui-dropdown2-trigger"),r.setAttribute("href","#"),r.id=n.id+"-trigger",r.setAttribute("aria-controls",n.id),r.innerHTML=I18n.getText("aui.words.more"),r);return t.appendChild(a),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=s(t).outerWidth(!0),s(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=s("#aui-responsive-header-dropdown-".concat(this.index)),i=this.rightMostNavItemIndex+1,n=this.rightMostNavItemIndex+t,r=i;r<=n;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=s(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=ye.a.wrap(this.$moreMenu[0].querySelector("aui-section")),i=this.rightMostNavItemIndex,n=this.rightMostNavItemIndex-t+1,r=i;r>=n;r--){var a=this.menuItems[r].$element,o=a.children("a");Z.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=s(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}Z.init(l),ye.a.wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new yt("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};var Bo=function(t){let e=t._header;return e instanceof Ho||(e=new Ho(t),e.init(),t._header=e),e};function Uo(){s(".aui-header").each((function(){Bo(this)}))}s(Uo);const Wo={};Wo.setup=R(Uo,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),c("responsiveheader",Wo);var Vo=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?Bo(e):console.log("Could not async. initialise aui-header")}}),zo=i(22),qo=i.n(zo);const Yo=t=>{let{minDate:e,maxDate:i,dateFormat:n,$field:r,onSelect:s,hide:a,onChangeMonthYear:o}=t;return{dateFormat:n,defaultDate:r.val(),maxDate:i||r.attr("max"),minDate:e||r.attr("min"),nextText:">",onSelect:function(t){r.val(t),r.trigger("change"),a(),s&&s.call(this,t)},onChangeMonthYear:o,prevText:"<"}},Ko=(t,e)=>{let i,n,r,a=!1;const o=s("body"),l=e=>{let i=s(e.target),r=i.closest(n).length||i.is(t),o=i.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Q.ESCAPE)return h(),void(a=!1);i.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{i.get(0).open||d()},d=()=>{i.get(0).open=!0},h=()=>{i.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:t=>{let{$field:c}=t;return i=(t=>{let{horizontalAlignment:e,datePickerUUID:i}=t;const n=new qs;n.id=i;const r=s(n);return r.attr("persistent",""),r.attr("data-aui-focus","false"),r.attr("alignment","bottom ".concat(e)),r.addClass("aui-datepicker-dialog"),r})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(c),datePickerUUID:e}),r=c.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=i,s(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(i),n=i,i},handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(i.refresh,0)},getCalendarNode:()=>i.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},Go=function(t){const e=t.getField(),i=t.getOptions(),n=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=Ko(e,n),f=t=>{s(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{h(),e.off("propertychange keyup input paste",f),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}i.languageCode in Jo.prototype.localisations||(i.languageCode="");const y=Jo.prototype.localisations;if(e.attr("aria-controls",n),void 0===r){void 0!==e.attr("step")&&g("WARNING: The date picker polyfill currently does not support the step attribute!");const n=Yo({dateFormat:i.dateFormat,minDate:i.minDate,maxDate:i.maxDate,$field:e,onSelect:i.onSelect,hide:t.hide,onChangeMonthYear:u}),o=s.extend(void 0,n,y);i.firstDay>-1&&(o.firstDay=i.firstDay),r=(t=>{let{config:e,popupContents:i,getCalendarNode:n,hint:r}=t;const a=s(n());let o;return a.datepicker(e),r&&(o=s("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(r),i.append(o)),a})({config:o,popupContents:a({$field:e}),getCalendarNode:d,hint:i.hint}),p(),e.on("propertychange keyup input paste",f),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}e.on("focus click",o),e.attr("placeholder",i.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",n)};function Jo(t,e){let i={};const n=Bi("date-picker"),r=s(t),a={getUUID:()=>n,getField:()=>r,getOptions:()=>i,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!Jo.prototype.browserSupportsDateField,e=!1!==i.overrideBrowserDefault;(t||e)&&Go(a)},reconfigure:t=>{i=s.extend(void 0,Jo.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function Qo(t,e){const i=s.extend({nextText:">",prevText:"<"},e),n=s(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(i);if(i.hint){const t=s("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(i.hint),n.append(t)}return n.reconfigure=t=>{n.datepicker("destroy"),n.datepicker(t)},n.destroy=()=>{n.datepicker("destroy")},n}Jo.prototype.browserSupportsDateField=function(){if(void 0===ge){var t=document.createElement("input");t.setAttribute("type","date"),ge="date"===t.type}return ge}(),Jo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:s("html").attr("lang")||"en-AU",dateFormat:qo.a.W3C},Jo.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const Xo="aui-datepicker",Zo=t=>function(e){let i=this.data(Xo);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(Xo,i)),i};s.fn.datePicker=Zo(Jo),c("DatePicker",Jo),s.fn.calendarWidget=Zo(Qo),c("CalendarWidget",Qo);var tl=Jo,el=(i(30),i(9),i(10),i(31),i(35),{NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"}),il=Or.a.View,nl=Or.a.View,rl=Or.a.View,sl={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},al=(i(36),{REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"});const ol='<aui-spinner size="small"></aui-spinner>',ll="aui-spinner";function cl(t){0===t.find(ll).length&&t.find(".".concat(el.STATUS)).append(ol)}function ul(t){t.find(".".concat(el.STATUS," ").concat(ll)).remove()}var dl=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),hl=Or.a.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=s(this.el),this._event=al,this.classNames=el,this.dataKeys=sl,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?s("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return dl&&(e=this.$el.find(":submit")).length&&(t=s("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var t,e;return dl&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return cl(this.$el),this},hideLoading:function(){return ul(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,i=this;if(document.activeElement!==window&&s(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,t):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(t,e,n){400===n.status&&(i.renderErrors(e.errors),i.trigger(i._event.VALIDATION_ERROR,e.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return s("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&s.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&s('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),s.each(this.columns,(function(i,n){var r,a,o=t.values[n.id],l=[{name:n.id,ariaLabel:n.inputAriaLabel?n.inputAriaLabel:n.header,value:o,allowEdit:n.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+n.id,o),r=e.isCreateRow&&n.createView?new n.createView({model:e.model}).render(l[0]):n.editView?new n.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=s("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),n.styleClass&&a.addClass(n.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=s('<td class="aui-restfultable-operations" />');return t?e.append(s('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(s('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(s('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(s('<td class="'.concat(this.classNames.STATUS,'" />')))}});const pl=document||{},fl=s(pl);function gl(t,e){fl.trigger(t,e)}function ml(t,e,i){s(e).trigger(t,i),gl(t,i),e.id&&gl(e.id+"-"+t,i)}var vl=Or.a.Model.extend({sync:function(t,e,i){var n=this,r=i.error;return i.error=function(t){n._serverErrorHandler(t,this),r&&r.apply(this,arguments)},Or.a.sync.apply(Or.a,arguments)},save:function(t,e){var i,n=this,r=(e=e||{}).error,a=e.success;e.error=function(t,e){var i=s.parseJSON(e.responseText||e.data);r&&r.call(n,n,i,e)},this.isNew()?Or.a.Model.prototype.save.call(this,t,e):t&&((i=new(vl.extend({url:this.url()}))({id:this.id})).save=Or.a.Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),a&&a.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,i=this.url();return s.ajax({url:i,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},i=this.toJSON();if(s.each(t,(function(t,n){i[t]?i[t]&&i[t]!==n&&("object"==typeof n&&Object(Qt.isEqual)(n,i[t])||(e[t]=n)):"string"==typeof n?""!==s.trim(n)&&(e[t]=n):s.isArray(n)?0!==n.length&&(e[t]=n):e[t]=n})),!Object(Qt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var i;400!==t.status&&(i=s.parseJSON(t.responseText||t.data),ml(al.SERVER_ERROR,this,[i,t,e]))},fetch:function(t){t=t||{},this.clear(),Or.a.Model.prototype.fetch.call(this,t)}}),bl=vl,yl=Or.a.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=al,this.classNames=el,this.dataKeys=sl,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=s(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return s(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return s(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return cl(this.$el),this},hideLoading:function(){return ul(this.$el),this},edit:function(t){var e;return e=s(t.target).is("."+this.classNames.EDITABLE)?s(t.target).attr("data-field-name"):s(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return s("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),i=s("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),n=s('<td class="'.concat(this.classNames.STATUS,'" />'));return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&s('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),s.each(this.columns,(function(i,n){var r,a=s("<td />"),o=e[n.id],l=n.fieldName||n.id,c=[{name:l,value:o,allowEdit:n.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+n.id,o),r=n.readView?new n.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==n.allowEdit){var u=s("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=s("<td />").append(u).appendTo(t.$el),r&&s.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(s("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);n.styleClass&&a.addClass(n.styleClass),a.appendTo(t.$el)})),this.$el.append(i).append(n).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),wl=Or.a.View.extend({initialize:function(t){var e=this;if(e.options=s.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=al,e.classNames=el,e.dataKeys=sl,this.$table=s(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=s("<thead/>"),this.$theadRow=s("<tr />").appendTo(this.$thead),this.$tbody=s("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var i=s.isFunction(t.header)?t.header():t.header;void 0===i&&(m("You have not specified [header] for column ["+t.id+"]. Using id for now..."),i=t.id),e.$theadRow.append("<th>"+i+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,i){var n=s("<div/>").attr("class",i.attr("class")).addClass(e.classNames.MOVEABLE);return i.children().each((function(){var t=s(this),e=parseInt(0+t.css("border-left-width"),10),i=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+i;n.append(s("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),n=s("<div class='aui-restfultable-readonly'/>").append(n),n.css({left:i.offset().left}),n.appendTo(document.body),n},start:function(t,i){var n=i.helper[0].clientHeight,r=i.placeholder.find("td");i.item.addClass(e.classNames.MOVEABLE).children().each((function(t){s(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'"> </td>';i.placeholder.html(a).css({height:n,visibility:"visible"}),e.getRowFromElement(i.item[0]).trigger(e._event.MODAL)},stop:function(t,i){s(i.item[0]).is(":visible")&&(i.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(i.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!s(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=s('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;s.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):s.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,i=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var n=e.options.reverseOrder?i(t.nextItem):i(t.prevItem);s.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(n),complete:function(){t.row.hideLoading()},success:function(t){ml(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=s.parseJSON(t.responseText||t.data);ml(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this,e=this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(){this.tableRows=t.getRows();for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return Or.a.Collection.prototype.remove.apply(this,i),this.tableRows=void 0,this}});return new e([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),ml(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=s('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+ol+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),ml(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),ml(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return s(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=s("<tr>").addClass(this.classNames.NO_ENTRIES).append(s("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var i=s(this).data(t.dataKeys.ROW_VIEW);i&&e.push(i)})),e},_renderRow:function(t,e){var i,n,r=this,s=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){ml(this._event.EDIT_ROW,{},[this,r]),r.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==s.length?i.insertBefore(s[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){r.$table.removeClass(r.classNames.ALLOW_HOVER),r.$tbody.sortable("disable"),r.getRows().forEach((function(t){r.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){r.$table.addClass(r.classNames.ALLOW_HOVER),r.$tbody.sortable("enable"),r.getRows().forEach((function(t){r.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof yl&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=s.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),r=t.model.toJSON();return r.update=!0,n.render({errors:{},update:!0,values:r}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||bl,allowEdit:!0,views:{editRow:hl,row:yl},Collection:Or.a.Collection.extend({url:t.resources.self,model:t.model||bl}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});wl.ClassNames=el,wl.CustomCreateView=il,wl.CustomEditView=nl,wl.CustomReadView=rl,wl.DataKeys=sl,wl.EditRow=hl,wl.EntryModel=bl,wl.Events=al,wl.Row=yl,c("RestfulTable",wl);var _l=wl;function xl(t){return s(t).clone().removeAttr("id")}c("clone",xl);var kl=xl,Cl=window.DocumentTouch,El="ontouchstart"in window||Cl&&document instanceof Cl,Tl=function(t){return"value"in t||t.isContentEditable};function Al(t,e,i,n){t.find("[".concat(n,"]")).attr(n,((t,n)=>e===n?i:void 0))}function Dl(t,e){let i=s("<div></div>");i.append(t),i.find("[id]").each(((t,n)=>{const r=e("".concat(n.id,"-"));!function(t,e,i){Al(t,e,i,"aria-controls"),Al(t,e,i,"aria-owns")}(i,n.id,r),n.id=r}))}function Sl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ol(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Sl(Object(i),!0).forEach((function(e){Nl(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Sl(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Nl(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Il(t){return t.offset().top}function Ml(t){var e;(this.$el=s(t),this.$el.length)&&(this.$body=s("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new jl,function(t){if(!s(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const i=s(e.target);Ul(t,i)}))})(t),El&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText="@media ".concat(t," { #testMedia { width: 1px; } }"),document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&s("body").addClass("aui-page-sidebar-touch");var e=null,i=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};s(window).on("scroll resize",i),i(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(s.Event(Pl+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),s(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var n=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Q.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||Tl(t.target))}function o(t){return t.keyCode===Q.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}s(document).on("keypress",n),t._remove=function(){s(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),s(document).off("keypress",n),s(window).off("scroll resize",i)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(Ol(Ol({},Vl),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=s(this),i=!1===t.isCollapsed();return!0===Hl(e)||i}})),t.$el.tooltip(Ol(Ol({},Vl),{},{aria:!1,live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var i=e.target,n=Fl(i);if(!n)return;var a=s(n);r(e)&&n.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(i.focus(),s(this).off("keydown"),Bl())})))}}))}(this),s((e=this).collapsedTriggersSelector).each((function(){var t=s(this);Ul(e,t)})))}var Pl="_aui-internal-sidebar-";function Ll(t){return s.map(t.split(" "),(function(t){return Pl+t})).join(" ")}function Rl(){return document.querySelectorAll(Ml.prototype.inlineDialogSelector)}function jl(){this.inlineDialog=null}function $l(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function Fl(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function Hl(t){return 0!==$l(t).length}function Bl(){var t=Rl();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function Ul(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),Hl(e))){var i=document.createElement("aui-inline-dialog"),n=Bi("sidebar-submenu");return e.attr("aria-controls",n),e.attr("data-aui-trigger",""),Z.init(e),i.setAttribute("id",n),i.setAttribute("alignment","right top"),i.setAttribute("hidden",""),i.setAttribute("contained-by","viewport"),t.isCollapsed()&&i.setAttribute("responds-to","hover"),s(i).addClass(Ml.prototype.inlineDialogClass),document.body.appendChild(i),Z.init(i),function(t,e,i){i.addEventListener("aui-layer-show",(function(n){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(n)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(n)){var r=s.Event("aui-sidebar-submenu-before-show");e.trigger(r,i),r.isDefaultPrevented()?n.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=Wl;var i=t.is("a")?t.text():t.children(".aui-nav-heading").text(),n=s(e).find(".aui-navgroup-inner");n.children(".aui-nav-heading").attr("title",i).children("strong").text(i);var r=$l(t);function a(t){const e=kl(t);return Dl(e,Bi),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}a(r).appendTo(n)}(e,i)}}else n.preventDefault()})),i.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,i),i}}Ml.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Ll(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Ml.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Ll(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Ml.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Ml.prototype.setTopPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",t>Il(this.$el)),this},Ml.prototype.setPosition=R(Ml.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Ml.prototype.setLeftPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Ml.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:s.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:s.noop,wide:s.noop},e.expanded.narrow={narrow:s.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:s.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[i][n][r](this),this},Ml.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=s.Event(Pl+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),s(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(s.Event(Pl+"collapse-end",{isResponsive:t}))),this},Ml.prototype.collapse=function(){return this._collapse(!1)},Ml.prototype._expand=function(t,e){var i=s.Event(Pl+"expand-start",{isResponsive:e});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),s(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(s.Event(Pl+"expand-end",{isResponsive:e})),this},Ml.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Ml.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Ml.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Ml.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Ml.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Ml.prototype.reflow=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.pageXOffset;var s=Il(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||s!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,s),this.setTopPosition(t))}if(r!==this._previousScrollLeft&&this.setLeftPosition(r),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=s,this._previousScrollLeft=r,this},Ml.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.expand.tooltip"))),this},Ml.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Ml.prototype.collapsedTriggersSelector=[Ml.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Ml.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Ml.prototype.tooltipClassName="aui-sidebar-section-tooltip",Ml.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Ml.prototype.inlineDialogSelector="."+Ml.prototype.inlineDialogClass,jl.prototype.submenu=function(t){return ql(),$l(t)},jl.prototype.hasSubmenu=function(t){return ql(),Hl(t)},jl.prototype.submenuHeadingHeight=function(){return ql(),34},jl.prototype.isShowing=function(){return ql(),Ml.prototype.isSubmenuVisible()},jl.prototype.show=function(t,e){ql(),function(t){Fl(t).open=!0}(e)},jl.prototype.hide=function(){ql(),Bl()},jl.prototype.inlineDialogShowHandler=function(){ql()},jl.prototype.inlineDialogHideHandler=function(){ql()},jl.prototype.moveSubmenuToInlineDialog=function(){ql()},jl.prototype.restoreSubmenu=function(){ql()},Ml.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Rl(),(function(t){return t.open}))},Ml.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Wl='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var Vl={gravity:"w",title:function(){var t=s(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var zl=vt("sidebar",Ml);s((function(){zl(".aui-sidebar")}));var ql=P("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});c("sidebar",zl);var Yl=zl;i(37),i(38);const Kl=2600;function Gl(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Q.ESCAPE&&i.is(":visible")&&l.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=s.extend({},t,arguments[3])),t=s.extend({},e,t);var i=s("<div></div>").addClass("aui-popup");t.id&&i.attr("id",t.id);var n=Kl;s(".aui-dialog").each((function(){var t=s(this);n=t.css("z-index")>n?t.css("z-index"):n}));var r=function e(r,s){return t.width=r=r||t.width,t.height=s=s||t.height,i.css({marginTop:-Math.round(s/2)+"px",marginLeft:-Math.round(r/2)+"px",width:r,height:s,"z-index":parseInt(n,10)+2}),e}(t.width,t.height);s("body").append(i),i.hide(),p(i);var a=s(".aui-blanket"),o=function(t,e){var i=s(t,e);return!!i.length&&(i.focus(),!0)},l={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){s(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),Y(),0!==(a=s(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){i.is(":visible")&&l.hide()})),i.show(),Gl.current=this,function(e){if(0===s(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var i=":input:visible:enabled:first";o(i,s(".dialog-page-body",e))||o(i,s(".dialog-button-panel",e))||o(i,s(".dialog-page-menu",e))}}(i),s(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){s(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===s(".aui-dialog:visible").length&&K();var e=document.activeElement;this.element.has(e).length&&e.blur(),s(document).trigger("hideLayer",["popup",this]),Gl.current=null,this.enable()},element:i,remove:function(){i.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=s("<div class='dialog-blanket'> </div>").css({height:i.height(),width:i.width()}),i.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return l}var Jl=function(){function t(t,e,i,n){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=s("<button></button>").html(e).addClass("button-panel-button"),n&&this.item.addClass(n),"function"==typeof i&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,i,n,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=s("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),n&&this.item.addClass(n),"function"==typeof i&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function i(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var r=0,s=n.length;r<s;r++)"panel"==e&&this.page.curtab==n[r].id&&(this.page.curtab=r),n[r].id=r}return this}}function n(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=i("left","button"),t.prototype.moveDown=t.prototype.moveRight=i("right","button"),t.prototype.remove=n("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,i,n,r){i instanceof s||(i=s(i)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=s("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=s("<li></li>").append(this.button).addClass("page-menu-item"),this.body=s("<div></div>").append(i).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,n&&this.body.addClass(n);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(g("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=i("left","panel"),r.prototype.moveDown=r.prototype.moveRight=i("right","panel"),r.prototype.remove=n("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=s("<div></div>").addClass("dialog-components"),this.body=s("<div></div>").addClass("dialog-page-body"),this.menu=s("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,i){var n={};+t||(t=(n=Object(t)).width,e=n.height,i=n.id),this.height=e||480,this.width=t||640,this.id=i,n=s.extend({},n,{width:this.width,height:this.height,id:this.id}),this.popup=Gl(n),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=s("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=s("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,r){return new e(this,t,i,n,r),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),T("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),T("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),T("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',r="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",s=new RegExp("(?:^|,)\\s*"+r+"(?:\\s+"+r+")?\\s*(?=,|$)","ig");(t+"").replace(s,(function(t,n,r,s,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[s]?(d.push(i.page[s]),n=(n=o)&&n.toLowerCase(),r=l,s=c,a=u):d=i.page,r=r&&(r+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(r||!r&&null==s))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==r||"panel"==n&&!r&&null==s)&&e.push(d[h].panel[p]);if(a||"button"==n&&(r||!r&&null==s))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==r||"button"==n&&!r&&null==s)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][s]&&e.push(d[h][n][s]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=s(window).height()-62-52-100,i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(i).body.outerHeight())),i!==this.page[this.curpage].curtab&&this.getPanel(i).body.css({display:"none"});for(i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=s(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();Jl=j(Jl,"Dialog constructor",{alternativeName:"Dialog2"}),Gl=j(Gl,"Dialog popup constructor",{alternatveName:"Dialog2"}),c("Dialog",Jl),c("popup",Gl);const Ql=!1;var Xl=-1!==navigator.platform.indexOf("Mac"),Zl=-1!==navigator.userAgent.indexOf("Safari"),tc=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const ec=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function ic(t){var e=[],i=s.Callbacks();function n(t){!Gl.current&&i&&i.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?s.trim(t).split(" "):[t]).forEach((function(t){!function(t){var i=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),r=t.match(tc);n?(i+=n[0],t=t.substring(n[0].length)):r?(e.push(i+r[0]),t=t.substring(r[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(i)?"keydown":"keypress";e.push(i),s(document).on(a,Ql,i,n),s(document).on(a+" keyup",Ql,i,r)}(t)}))}function o(t,e,i,n){var r="(",s=")";return n&&n.workaroundJaws&&(r="",s=""),i?e+=" "+r+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=" "+I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=s}return a(t),ic.makeShortcut({executor:i,bindKeys:a,addShortcutsToTitle:function(t){for(var i=s(t),n=i.attr("title")||"",r=e.slice(),a=i.data("boundKeyCombos")||[],l=i.data("kbShortcutAppended")||"",c=i.data("kbShortcutAppendedScreenReader")||"",u=i.attr("aria-label"),d=!l,h=!c,p=d?n:n.substring(0,n.length-l.length),f=h?n:u.substring(0,u.length-c.length);r.length;){var g=r.shift();a.some((function(t){return Object(Qt.isEqual)(g,t)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Xl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),i.attr("title",p+l),i.attr("aria-label",f+c),i.data("kbShortcutAppended",l),i.data("kbShortcutAppendedScreenReader",c),i.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=s(t),i=e.data("kbShortcutAppended");if(i){var n=e.attr("title");e.attr("title",n.replace(i,"")),e.attr("aria-label",n.replace(i,"")),e.removeData("kbShortcutAppended"),e.removeData("kbShortcutAppendedScreenReader"),e.removeData("boundKeyCombos")}},keypressHandler:n,defaultPreventionHandler:r})}ic.makeShortcut=function(t){var e=t.executor,i=t.bindKeys,n=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(i,n){var r=(n=n||{}).focusedClass||"focused",a=!n.hasOwnProperty("wrapAround")||n.wrapAround,o=!n.hasOwnProperty("escToCancel")||n.escToCancel;return e.add((function(){const e=s(i);let n=e.filter("."+r);const l=0===n.length?void 0:{transition:!0};o&&s(document).one("keydown",(function(t){t.keyCode===Q.ESCAPE&&n&&n.removeClass(r)})),n.length&&n.removeClass(r),n=t(n,e,a),n&&n.length>0&&(n.addClass(r),n.moveTo(l),n.is("a")?n.focus():n.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,i){var n;return i&&0===t.length?e.eq(0):(n=s.inArray(t.get(0),e))<e.length-1?(n+=1,e.eq(n)):i?e.eq(0):t})),moveToPrevItem:c((function(t,e,i){var n;return i&&0===t.length?e.filter(":last"):(n=s.inArray(t.get(0),e))>0?(n-=1,e.eq(n)):i?e.filter(":last"):t})),click:function(t){return l.push(t),n(t),e.add((function(){const e=s(t);ec(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),n(t),e.add((function(){var e=s(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),n(t),e.add((function(){const e=s(t);e.length>0&&(ec(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),n(t),e.add((function(e){var i=s(t);i.length>0&&(i.focus(),i.moveTo&&i.moveTo(),i.is(":input")&&e.preventDefault())})),this},or:function(t){return i(t),this},unbind:function(){s(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},ic.fromJSON=function(t,e){var i=[];return t&&s.each(t,(function(t,n){const r=n.op,a=n.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){v("When using a parameter array, array must be in strict JSON format: "+a)}s.isArray(o)||v("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];s.each(n.keys,(function(){var t=this;e&&Xl&&(t=s.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var n=ic(t);n[r].apply(n,o),i.push(n)}))})),i},s(document).on("iframeAppended",(function(t,e){s(e).load((function(){s(e).contents().on("keyup keydown keypress",(function(t){Zl&&"keypress"===t.type||s(t.target).is(":input")||s.event.trigger(t,arguments,document,!0)}))}))})),c("whenIType",ic);var nc=ic;const{FocusManager:rc,InlineDialog2:sc,LayerManager:ac,ProgressiveDataSet:oc,clone:lc,debounce:cc,debounceImmediate:uc,dim:dc,escapeHtml:hc,formValidation:pc,id:fc,isClipped:gc,keyCode:mc,layer:vc,messages:bc,populateParameters:yc,params:wc,responsiveheader:_c,select:xc,tablessortable:kc,tabs:Cc,undim:Ec,_addID:Tc}=window.AJS,{contextPath:Ac}=window.AJS}])}));
|
|
106
|
+
*/!function(a){"use strict";r=[i(3),i(10),i(18),i(17),i(19),i(5),i(9)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,r=!1,s=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,s.widgetName+"-item")===s)return n=t(this),!1})),t.data(e.target,s.widgetName+"-item")===s&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(r=!0)})),!r))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var r,s,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(s=this.document.find("body"),this.storedCursor=s.css("cursor"),s.css("cursor",a.cursor),this.storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(s)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(r=this.containers.length-1;r>=0;r--)this.containers[r]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,r,s,a=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(r=(n=this.items[i]).item[0],(s=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(r===this.currentItem[0]||this.placeholder[1===s?"next":"prev"]()[0]===r||t.contains(this.placeholder[0],r)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],r))){if(this.direction=1===s?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,r=this.placeholder.offset(),s=this.options.axis,a={};s&&"x"!==s||(a.left=r.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),s&&"y"!==s||(a.top=r.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,r=n+this.helperProportions.height,s=t.left,a=s+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>s&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:s<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&r-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),r="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!r)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,r=this.dragDirection.horizontal;return this.floating&&r?"right"===r&&i||"left"===r&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,r,s,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(r=t(l[i],this.document[0])).length-1;n>=0;n--)(s=t.data(r[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&o.push(["function"==typeof s.options.items?s.options.items.call(s.element):t(s.options.items,s.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),s]);function c(){a.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,r,s,a,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(r=t(h[i],this.document[0])).length-1;n>=0;n--)(s=t.data(r[n],this.widgetFullName))&&s!==this&&!s.options.disabled&&(d.push(["function"==typeof s.options.items?s.options.items.call(s.element[0],e,{item:this.currentItem}):t(s.options.items,s.element),s]),this.containers.push(s));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,r,s;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(r=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=r.outerWidth(),n.height=r.outerHeight()),s=r.offset(),n.left=s.left,n.top=s.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,r=(e=e||this).options;r.placeholder&&r.placeholder.constructor!==String||(i=r.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),r.placeholder={element:function(){var r=t("<"+n+">",e.document[0]);return e._addClass(r,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(r,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(r)):"tr"===n?e._createTrPlaceholder(e.currentItem,r):"img"===n&&r.attr("src",e.currentItem.attr("src")),i||r.css("visibility","hidden"),r},update:function(t,s){i&&!r.forcePlaceholderSize||(s.height()&&(!r.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||s.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),s.width()||s.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(r.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),r.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){var i,n,r,s,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(r=1e4,s=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<r&&(r=Math.abs(e[d]-l),s=this.items[n],this.direction=c?"up":"down"));if(!s&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,r=this.options;"parent"===r.containment&&(r.containment=this.helper[0].parentNode),"document"!==r.containment&&"window"!==r.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===r.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===r.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(r.containment)||(e=t(r.containment)[0],i=t(r.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,r="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,s=/(html|body)/i.test(r[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():s?0:r.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():s?0:r.scrollLeft())*n}},_generatePosition:function(e){var i,n,r=this.options,s=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(s=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(s=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),r.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/r.grid[1])*r.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-r.grid[1]:i+r.grid[1]:i,n=this.originalPageX+Math.round((s-this.originalPageX)/r.grid[0])*r.grid[0],s=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-r.grid[0]:n+r.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:s-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var r=this.counter;this._delay((function(){r===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function r(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(r("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(r("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(s="function"==typeof n?n.apply(e,r):n)||(t.exports=s)}()},function(t,e){jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each((function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)})),this.find("input:radio:checked").each((function(){t[this.name]=this.value})),this.find("select[multiple]").each((function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]})),t}},function(t,e){!function(t){function e(t){this.num=0,this.timer=t>0&&t}function i(i){if(t.isPlainObject(i.data)||t.isArray(i.data)||"string"==typeof i.data){var r,s=i.handler,a={timer:700,combo:[]};"string"==typeof(r=i.data)?a.combo=[r]:t.isArray(r)?a.combo=r:t.extend(a,r),a.combo=t.map(a.combo,(function(t){return t.toLowerCase()})),i.index=new e(a.timer),i.handler=function(e){if(this===e.target||!/textarea|select|input/i.test(e.target.nodeName)&&"true"!==t(e.target).prop("contenteditable")){var r="keypress"!==e.type?t.hotkeys.specialKeys[e.which]:null,o=String.fromCharCode(e.which).toLowerCase(),l="",c={};e.altKey&&"alt"!==r&&(l+="alt+"),e.ctrlKey&&"ctrl"!==r&&(l+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==r&&(l+="meta+"),e.shiftKey&&"shift"!==r&&(l+="shift+"),e.metaKey&&"["===o&&(o=null),r&&(c[l+r]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+t.hotkeys.shiftNums[r||o]]=!0);var u=i.index,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),s.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(t,e){for(var i=t.split(" "),n=0,r=i.length;n<r;n++)if(e[i[n]])return!0;return!1}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(t.hotkeys.keypressKeys,(function(e,i){t.hotkeys.shiftNums[i]=i})),e.prototype.val=function(){return this.num},e.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(t.proxy(e.prototype.reset,this),this.timer)),this.num++},e.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},t.each(["keydown","keyup","keypress"],(function(){t.event.special[this]={add:i}}))}(jQuery)},function(t,e){jQuery.fn.moveTo=function(t){var e,i=jQuery.extend({transition:!1,scrollOffset:35},t),n=this,r=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<r||jQuery(window).scrollTop()+i.scrollOffset>r)&&jQuery(window).height()>i.scrollOffset){if(e=jQuery(window).scrollTop()+i.scrollOffset>r?r-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:r-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:e},1e3,(function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating})),this;var s=jQuery("html, body");return s.is(":animated")&&(s.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(e),setTimeout((function(){jQuery(document).trigger("moveToFinished",n)}),100),this}return jQuery(document).trigger("moveToFinished",this),this}},function(t,e,i){"use strict";i.r(e),i.d(e,"format",(function(){return y})),i.d(e,"version",(function(){return _})),i.d(e,"bind",(function(){return C})),i.d(e,"unbind",(function(){return E})),i.d(e,"trigger",(function(){return T})),i.d(e,"$",(function(){return Ut})),i.d(e,"toInit",(function(){return Vt})),i.d(e,"log",(function(){return g})),i.d(e,"error",(function(){return v})),i.d(e,"warn",(function(){return m})),i.d(e,"banner",(function(){return Jt})),i.d(e,"dialog2",(function(){return ve})),i.d(e,"DropdownEl",(function(){return _n})),i.d(e,"ItemLinkEl",(function(){return vn})),i.d(e,"ItemRadioEl",(function(){return yn})),i.d(e,"ItemCheckboxEl",(function(){return bn})),i.d(e,"SectionEl",(function(){return wn})),i.d(e,"flag",(function(){return Bn})),i.d(e,"CheckboxMultiselectEl",(function(){return mr})),i.d(e,"FancyFileInput",(function(){return br})),i.d(e,"LabelEl",(function(){return kr})),i.d(e,"SelectEl",(function(){return cs})),i.d(e,"ToggleEl",(function(){return Cs})),i.d(e,"InlineDialogEl",(function(){return qs})),i.d(e,"MessageEl",(function(){return Mn})),i.d(e,"navigation",(function(){return Js})),i.d(e,"NavigationEl",(function(){return Gs})),i.d(e,"progressBars",(function(){return ha})),i.d(e,"ProgressBarEl",(function(){return ua})),i.d(e,"SpinnerEl",(function(){return se})),i.d(e,"TabContainerEl",(function(){return Ra})),i.d(e,"TabPaneEl",(function(){return $a})),i.d(e,"TabItemEl",(function(){return ja})),i.d(e,"I18n",(function(){})),i.d(e,"Header",(function(){return Vo})),i.d(e,"DatePicker",(function(){return tl})),i.d(e,"CalendarWidget",(function(){return Qo})),i.d(e,"RestfulTable",(function(){return _l})),i.d(e,"sidebar",(function(){return Yl})),i.d(e,"whenIType",(function(){return nc})),i.d(e,"FocusManager",(function(){return rc})),i.d(e,"InlineDialog2",(function(){return sc})),i.d(e,"LayerManager",(function(){return ac})),i.d(e,"ProgressiveDataSet",(function(){return oc})),i.d(e,"clone",(function(){return lc})),i.d(e,"debounce",(function(){return cc})),i.d(e,"debounceImmediate",(function(){return uc})),i.d(e,"dim",(function(){return dc})),i.d(e,"escapeHtml",(function(){return hc})),i.d(e,"formValidation",(function(){return pc})),i.d(e,"id",(function(){return fc})),i.d(e,"isClipped",(function(){return gc})),i.d(e,"keyCode",(function(){return mc})),i.d(e,"layer",(function(){return vc})),i.d(e,"messages",(function(){return bc})),i.d(e,"populateParameters",(function(){return yc})),i.d(e,"params",(function(){return wc})),i.d(e,"responsiveheader",(function(){return _c})),i.d(e,"select",(function(){return xc})),i.d(e,"tablessortable",(function(){return kc})),i.d(e,"tabs",(function(){return Cc})),i.d(e,"undim",(function(){return Ec})),i.d(e,"_addID",(function(){return Tc})),i.d(e,"contextPath",(function(){return Ac}));var n=i(3),r=i.n(n),s=window.jQuery||window.Zepto||r.a;const a="AJS",o="I18n";function l(){"object"!=typeof window[a]&&(window[a]={})}function c(t,e){return l(),window[a][t]=e}var u=i(6),d=i.n(u);function h(t){let e;return{type:d.a.type.CLASSNAME,attached:function(i){!function(t,e){let i=!1;if(e((()=>{i=!0})),i)return;const n=new MutationObserver((t=>{(function(t){for(const e of t)if("childList"===e.type)return!0;return!1})(t)&&e((()=>n.disconnect()))}));n.observe(t,{childList:!0})}(i,(n=>{e=n;const s=r()("input[type=".concat(t,"]"),i);s.each((function(t,e){r()('<span class="aui-form-glyph"></span>').insertAfter(e)}));s.length>0&&e()}))},detached:function(t){r()(".aui-form-glyph",t).remove(),e&&e()}}}function p(t,e){var i=s(t);return void 0===e&&(e=!0),i.each((function(){this.disabled=!e}))}function f(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],console,arguments)}}d()("checkbox",h("checkbox")),d()("radio",h("radio")),c("enable",p),c("inlineHelp",(function(){s(document).on("click",".icon-inline-help",(function(){var t=s(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")}))}));var g=f("log"),m=f("warn"),v=f("error");function b(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,r=/^(\d+),choice,(.+)/,s=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(r)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var f=u[p].match(s);if(null!=f){var g=parseInt(f[1],10);if(c<g){if(h){l=h;break}l=f[3];break}if(c==g&&"#"==f[2]){l=f[3];break}p==u.length-1&&(l=f[3]),h=f[3]}else d=!0}d&&v('The format "'+e+'" from message "'+t+'" is invalid.');var m=[l].concat(Array.prototype.slice.call(a,1));l=b.apply(null,m)}}return l},o=function(t){for(var e=!1,i=-1,n=0,r=0;r<t.length;r++){var s=t.charAt(r);if("'"==s&&(e=!e),!e)if("{"===s)0===n&&(i=r),n++;else if("}"===s&&n>0&&0===--n){var a=[];return a.push(t.substring(0,r+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,r)),a}}return null};return function(t){var i=arguments,n="";if(!t)return n;for(var r=o(t);r;)t=t.substring(r[0].length),n+=r[1].replace(e,""),n+=a(r[2],i),r=o(t);return n+=t.replace(e,"")}.apply(null,arguments)}c("error",v),c("log",g),c("warn",m),c("format",b);var y=b,w="9.3.21";c("version",w);var _=w;const x=!1,k=s(window);function C(t,e,i){try{return"function"==typeof i?k.on(t,x,e,i):k.on(t,x,e)}catch(t){g("error while binding: ",t.message)}}function E(t,e){try{return k.off(t,e)}catch(t){g("error while unbinding: ",t.message)}}function T(t,e){try{return k.trigger(t,e)}catch(t){g("error while triggering: "+t.message)}}c("bind",C),c("trigger",T),c("unbind",E);const A={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},D=new RegExp("[".concat(Object.keys(A).join(""),"]"),"g");function S(t){return t.replace(D,(t=>A[t]))}c("escapeHtml",S);var O=S,N=Object.prototype.hasOwnProperty,I=[];function M(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function P(t,e){if("function"==typeof t)return t;var i=!1;return e=e||{},function(n){var r,s=function(t){var e=new Error,i=e.stack||e.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[t+2]:n}(n||1)||"";if(!i||-1===I.indexOf(s)){I.push(s),i=!0;var a="DEPRECATED "+(e.deprecationType+" "||!1)+"- "+(r=t,((r+="")?r.charAt(0).toUpperCase()+r.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion||"a future release")+".";e.alternativeName&&(a+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(a+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+s,e.extraObject?M(a+="\n",e.extraObject,s):M(a,s)}}}function L(t,e){var i=t.options.displayName;i=i?" ("+i+")":"";var n=s.extend({deprecationType:"CSS",extraObject:e},t.options);P("'"+t.selector+"' pattern"+i,n)()}function R(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=P(e||t.name||"this function",i);return function(){return n(),t.apply(this,arguments)}}function j(t,e,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=R(t,e,i);return n.prototype=t.prototype,s.extend(n,t),n}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(t){}function F(t,e,i){if("function"==typeof t[e]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||e;t[e]=R(t[e],n,i)}else!function(t,e,i){if($){var n=t[e];(i=i||{}).deprecationType=i.deprecationType||"JS";var r=P(i.displayName||e,i);Object.defineProperty(t,e,{get:function(){return r(),n},set:function(t){return n=t,r(),t}})}}(t,e,i)}function H(t){return function(e){for(var i={selector:e,options:t||{}},n=document.querySelectorAll(e),r=0;r<n.length;r++)L(i,n[r]);!function(t){if(U.push(t),!W){W=new MutationObserver((function(t){t.forEach((function(t){for(var e=t.addedNodes,i=0;i<e.length;i++){var n=e[i];1===n.nodeType&&U.forEach(B(n))}}))}));var e={childList:!0,subtree:!0};W.observe(document,e)}}(i)}}function B(t){return function(e){var i,n;i=t,n=e.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&L(e,t)}}const U=[];let W;function V(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var z;c("deprecate",{fn:R,construct:j,css:function(t,e){"string"==typeof t&&(t=[t]),t.forEach(H(e))},prop:F,obj:function(t,e,i){for(var n in i=i||{},t)N.call(t,n)&&(i.deprecationType=i.deprecationType||"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,F(t,n,s.extend({},i)))},propertyDeprecationSupported:$,getMessageLogger:P});var q=[];function Y(t,e){Array.prototype.forEach.call(document.body.children,(function(t){(function(t){return t.hasAttribute("aria-hidden")})(t)||function(t){return t.classList.contains("aui-layer")}(t)||(t.setAttribute("aria-hidden","true"),q.push(t))})),z||(z=document.body),!0===t&&G();var i=!!Y.$dim&&!Y.$dim[0].hasAttribute("hidden");return Y.$dim&&(Y.$dim.remove(),Y.$dim=null),Y.$dim=s('<div aria-hidden="true"></div>').addClass("aui-blanket"),Y.$dim.attr("tabindex","0"),Y.$dim.appendTo(document.body),i||(V(Y.$dim),Y.cachedOverflow={overflow:z.style.overflow,overflowX:z.style.overflowX,overflowY:z.style.overflowY},z.style.overflowX="hidden",z.style.overflowY="hidden",z.style.overflow="hidden"),Y.$dim.removeAttr("hidden"),e&&Y.$dim.css({zIndex:e}),Y.$dim}function K(){q.forEach((function(t){t.removeAttribute("aria-hidden")})),q=[],Y.$dim&&(Y.$dim[0].setAttribute("hidden",""),z&&(z.style.overflow=Y.cachedOverflow.overflow,z.style.overflowX=Y.cachedOverflow.overflowX,z.style.overflowY=Y.cachedOverflow.overflowY))}var G=P("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});c("dim",Y),c("undim",K);var J={ALT:18,BACKSPACE:8,CAPS_LOCK:20,COMMA:188,COMMAND:91,COMMAND_LEFT:91,COMMAND_RIGHT:93,LEFT_SQUARE_BRACKET:91,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,MENU:93,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38,WINDOWS:91};c("keyCode",J);var Q=J,X=function(t,e){window.define&&(0,window.define)(t,[],(function(){return e}));return e};var Z=d.a.noConflict();var tt=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function et(t){return tt(t).get("last-trigger")||st(t)[0]}function it(t,e){var i=e&&e.nodeType&&1===e.nodeType;return tt(t).set("last-trigger",!!i&&e)}function nt(t,e){var i=et(t);i&&e(i)}function rt(t,e){return Array.prototype.forEach.call(st(t),e)}function st(t){const e=window.frames,i='[aria-controls="'.concat(t.id,'"]');let n=[],r=!1;for(let t=0;t<e.length;t++)try{let r=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(r))}catch(t){r=!0}const s=document.querySelectorAll(i),a=Array.prototype.slice.apply(s).concat(n);return 0===a.length&&!0===r&&m(["No triggers found for element (".concat(t.id,") in iframes from the same origin."),"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function at(t){return document.getElementById(t.getAttribute("aria-controls"))}function ot(t){return"true"!==t.getAttribute("aria-disabled")}function lt(t,e){if(ot(t)){var i=at(t);i&&i.message&&i.message(e)}}const ct={click(t,e){(function(t,e){var i=s(e).closest("a[href]",t);return!!i.length&&i[0]!==t})(t,e.target)||(lt(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Q.ENTER&&i!==Q.SPACE||(e.preventDefault(),e.type="click",ct.click(t,e))},mouseenter(t,e){lt(t,e)},mouseleave(t,e){lt(t,e)},focus(t,e){lt(t,e)},blur(t,e){(function(t,e){let i=e.relatedTarget;return i||(i=document.activeElement),s(at(t)).find(i).length>0})(t,e)||lt(t,e)}};Object.keys(ct).forEach((function(t){const e=ct[t];s(document).on("".concat(t,".aui-trigger"),"[data-aui-trigger]",(function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:r}=t,{keyCode:s,which:a}=t;return{type:e,data:"keydown"===e?a||s:void 0,target:i,currentTarget:n,relatedTarget:r,preventDefault:()=>t.preventDefault()}}(i,t))}))})),Z("data-aui-trigger",{type:Z.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return ot(this)}}}),X("aui/trigger"),function(){function t(t){return"visible"===s.css(t,"visibility")&&s(t).is(":visible")}function e(e,i){var n=e.nodeName.toLowerCase();if("aui-select"===n)return!0;if("area"===n){var r=e.parentNode,a=r.name,o=s("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(n),c="a"===n,u=e.href||i;return(l?!e.disabled:c?u:i)&&t(e)}s.extend(s.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(s.attr(t,"tabindex"))),"aui-tabbable":function(t){var i=s.attr(t,"tabindex"),n=isNaN(i);return(n||i>=0)&&e(t,!n)}})}();var ut="_aui-focus-restore";function dt(t){return t.is(".aui-dialog2")}function ht(){this._focusTrapStack=[],this._handler}function pt(t,e){if(0===t.length)return;if(e.keyCode!==Q.TAB)return;const i=e.shiftKey?-1:1,n=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length)return;const o=a.index(n);let l=-1;if(o>-1)l=o;else{let t;if(t=s(n).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map((function(){return document.getElementById(this.getAttribute("aria-controls"))})).has(n)}if(t.length){const e=t.find(":aui-tabbable"),r=e.index(n)+i;if(!(r<0||r>=e.length))return;{const e=et(t.get(0));l=a.index(e)}}}l=l>-1?(l+i)%a.length:0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ft;function gt(){return ft||(ft=new ht),ft}ht.defaultFocusSelector=":aui-tabbable",ht.prototype.enter=function(t,e){if(function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.activeElement;t.data(ut,e)}(t,e),"false"!==t.attr("data-aui-focus")){var i=t.attr("data-aui-focus-selector")||ht.defaultFocusSelector;(t.is(i)?t:t.find(i)).first().trigger("focus")}dt(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=pt.bind(void 0,this._focusTrapStack),s(document).on("keydown.aui-focus-manager",this._handler)))},ht.prototype.exit=function(t){dt(t)&&(this._focusTrapStack.pop(),this._focusTrapStack.length||(s(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){s(e).trigger("blur");var i=function(t){return s(t.data(ut))}(t);i.length&&(t.removeData(ut),i.trigger("focus"))}},gt.global=gt(),c("FocusManager",gt);var mt=gt,vt=function(t,e){var i="_aui-widget-"+t;return function(t,n){var r,a;s.isPlainObject(t)?a=t:(r=t,a=n);var o,l=r&&s(r);return l&&l.data(i)?o=l.data(i):(l=(o=new e(l,a||{})).$el).data(i,o),o}};let bt;!function(){if(window.CustomEvent)try{const t=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(t.preventDefault(),!0!==t.defaultPrevented)throw new Error("Could not prevent default");if("name"!==t.type)throw new Error("Could not set custom name");if("y"!==t.detail.x)throw new Error("Could not set detail");return void(bt=window.CustomEvent)}catch(t){}bt=function(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(t,!!e.bubbles,!!e.cancelable,e.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(t){this.defaultPrevented||(this.defaultPrevented=!0)}},i},bt.prototype=window.Event.prototype}();var yt=bt;const wt="_aui-internal-layer-",_t="_aui-internal-layer-global-",xt="aui-layer-",kt="aui-";var Ct=s(document);function Et(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",(function r(s){e===s.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",r))}))}function Tt(t,e,i){var n=s.Event(wt+e),r=s.Event(_t+e),a=new yt(xt+i,{bubbles:!0,cancelable:!0}),o=new yt(kt+i,{bubbles:!0,cancelable:!0});return t.trigger(n),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(n.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function At(t){this.$el=s(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function Dt(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}At.prototype={below:function(){return Lt.global.item(Lt.global.indexOf(this.$el)-1)},above:function(){return Lt.global.item(Lt.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(wt+t,e),this},off:function(t,e){return this.$el.off(wt+t,e),this},show:function(){return this.isVisible()||Lt.global.indexOf(this.$el)>-1?this:Tt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Lt.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;if(!Tt(this.$el,"beforeHide","hide"))return this;const t=this;return Et(this.$el.get(0),"opacity",(function(){t.isVisible()||(this.style.display="none")}),!0),Lt.global.popUntil(this.$el),this},isVisible:function(){return!0===this.$el.data("_aui-layer-shown")},remove:function(){this.hide(),this.$el.remove(),this.$el=null,this.el=null},isBlanketed:function(){return"true"===this.el.dataset.auiBlanketed},isPersistent:function(){var t=Dt(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=Dt(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){(this.isPersistent()||this.isBlanketed())&&mt.global.exit(this.$el),t&&Tt(this.$el,"beforeHide","hide"),this.el.removeAttribute("open"),this.$el.removeData("_aui-layer-shown"),this.$el.css("z-index",this.$el.data("_aui-layer-cached-z-index")||""),this.$el.data("_aui-layer-cached-z-index",""),this.$el.trigger(wt+"hide"),this.$el.trigger(_t+"hide",[this.$el])},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&mt.global.enter(this.$el),this.$el.trigger(wt+"show"),this.$el.trigger(_t+"show",[this.$el])}};var St=vt("layer",At);function Ot(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function Nt(t,e){return Ot(t,(function(t){return t[0]===e[0]}))}function It(t){return Ot(t,(function(t){return St(t).isBlanketed()}))}function Mt(t,e){var i=It(t);e!==i&&(i>-1?Y(!1,t[i].css("z-index")-20):K())}function Pt(t,e,i){if(!(e<0))for(var n=t.length-1;n>=e;n--){var r=t[n],s=St(r);!i&&s.isPersistent()||(s._hideLayer(!0),t.splice(n,1))}}function Lt(){this._stack=[]}function Rt(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return Lt.global.indexOf(e)>-1}St.on=function(t,e,i){return Ct.on(_t+t,e,i),this},St.off=function(t,e,i){return Ct.off(_t+t,e,i),this},Lt.prototype={push:function(t){var e=t instanceof s?t:s(t);if(Nt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var i=St(e),n=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return i._showLayer(n),i.isBlanketed()&&Y(!1,n-20),this._stack.push(e),this},popLayersBeside:function(t){const e=s(t).get(0);if(!function(t){return!!et(t)}(e)){var i=It(this._stack);return void Pt(this._stack,++i,!1)}const n=function(t){var e=et(t);if(e)return s(e).closest(".aui-layer").get(0)}(e);if(n){let t=this.indexOf(n);Pt(this._stack,++t,!1)}else Pt(this._stack,0,!1)},indexOf:function(t){return Nt(this._stack,s(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach((function(t){let e=St(t);e.isBlanketed()||e.isPersistent()||e.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,i=t instanceof s?t:s(t),n=Nt(this._stack,i);if(n<0)return null;for(n--;n>=0;){e=this._stack[n];var r=St(e);if(!r.isPersistent()||r.isBlanketed())return e;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,i=t instanceof s?t:s(t),n=Nt(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){e=this._stack[n];var r=St(e);if(!r.isPersistent()&&!r.isBlanketed())return e;n++}return null},popUntil:function(t){var e=t instanceof s?t:s(t),i=Nt(this._stack,e);if(-1===i)return null;var n=It(this._stack);return Pt(this._stack,i+1,St(e).isBlanketed()),this._stack.splice(i,1),St(e)._hideLayer(),Mt(this._stack,n),e},getTopLayer:function(){return this._stack.length?this._stack[this._stack.length-1]:null},popTopIfNonPersistent:function(){var t=this.getTopLayer(),e=St(t);return!t||e.isPersistent()?null:this.popUntil(t)},popUntilTopBlanketed:function(){var t=It(this._stack);if(t<0)return null;var e=this._stack[t];if(St(e).isPersistent()){var i=this.getNextHigherNonPeristentAndNonBlanketedLayer(e);if(i){var n=Nt(this._stack,i);return Pt(this._stack,n,!0),i}return null}return Pt(this._stack,t,!0),Mt(this._stack,t),e},popUntilTopPersistent:function(){var t=Lt.global.getTopLayer();if(t){var e,i=It(this._stack),n=St(t);if(n.isPersistent()){if(n.isBlanketed())return;if(t=Lt.global.getNextLowerNonPersistentOrBlanketedLayer(t),n=St(t),!t||n.isPersistent())return;e=Nt(this._stack,t),Pt(this._stack,e,!0),Mt(this._stack,i)}else e=Nt(this._stack,t),Pt(this._stack,e,!0),Mt(this._stack,i)}}},Ct.on("keydown",(function(t){t.keyCode===Q.ESCAPE&&(Lt.global.popUntilTopPersistent(),t.preventDefault())})),Ct.on("click",".aui-blanket",(function(t){Lt.global.popUntilTopBlanketed()&&t.preventDefault()})),Ct.on("click",(function(t){var e=s(t.target);if(!e.closest(".aui-blanket").length){var i=e.closest("[aria-controls]"),n=e.closest(".aui-layer");if(!n.length&&!Rt(i)){const e=s.Event("aui-close-layers-on-outer-click");return Ct.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void Lt.global.hideAll()}if(!Rt(i)&&n.length){var r=Lt.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);r&&St(r).hide()}}})),Lt.global=new Lt,St.Manager=Lt,c("layer",St);var jt=St;c("LayerManager",jt.Manager);jt.Manager;const $t={sinceVersion:"9.0.0",removeInVersion:"10.0.0"};var Ft=c("params",new Proxy({},{get:function(t,e){return P("AJS.params",$t)(),t[e]}}));const Ht=R((function(t){t||(t=Ft),s(".parameters input").each((function(){var e=this.value,i=this.title||this.id;s(this).hasClass("list")?t[i]?t[i].push(e):t[i]=[e]:t[i]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e}))}),"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});c("populateParameters",Ht);var Bt=Ht;s((function(){var t=s("body");t.data("auiVersion")||t.attr("data-aui-version",_),Bt()})),c("$",s);var Ut=s;function Wt(t){return s.when(s.ready).then((function(){setTimeout((function(){try{t.call(this,s)}catch(e){v("Failed to run init function: "+e.message,t,e,e.stack)}}),1)})),this}c("toInit",Wt);var Vt=Wt;const I18n={keys:{"aui.landmarks.site":"Site","aui.landmarks.sidebar":"Sidebar","aui.landmarks.page":"Page","aui.landmarks.main":"Main","aui.header.home.link":"Go to home page","aui.dropdown.async.error":"Error loading dropdown","aui.dropdown.async.loading":"Loading dropdown","aui.words.expand":"Expand","aui.words.collapse":"Collapse","aui.words.add":"Add","aui.words.update":"Update","aui.words.delete":"Delete","aui.words.remove":"Remove","aui.words.cancel":"Cancel","aui.words.loading":"Loading","aui.words.close":"Close","aui.enter.value":"Enter value","aui.words.more":"More","aui.words.moreitem":"More…","aui.keyboard.shortcut.type.x":"Type ''{0}''","aui.keyboard.shortcut.then.x":"then ''{0}''","aui.keyboard.shortcut.or.x":"OR ''{0}''","aui.sidebar.expand.tooltip":"Expand sidebar ( [ )","aui.sidebar.collapse.tooltip":"Collapse sidebar ( [ )","aui.validation.message.maxlength":"Must be fewer than or equal to {0} characters","aui.validation.message.minlength":"Must be greater than or equal to {0} characters","aui.validation.message.exactlength":"Must be exactly {0} characters","aui.validation.message.matchingfield":"{0} and {1} do not match.","aui.validation.message.matchingfield-novalue":"These fields do not match.","aui.validation.message.doesnotcontain":"Do not include the phrase {0} in this field","aui.validation.message.pattern":"This field does not match the required format","aui.validation.message.required":"This is a required field","aui.validation.message.validnumber":"Please enter a valid number","aui.validation.message.min":"Enter a value greater than or equal to {0}","aui.validation.message.max":"Enter a value less than or equal to {0}","aui.validation.message.dateformat":"Enter a valid date","aui.validation.message.minchecked":"Tick at least {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.validation.message.maxchecked":"Tick at most {0,choice,0#0 checkboxes|1#1 checkbox|1<{0,number} checkboxes}.","aui.checkboxmultiselect.clear.selected":"Clear selected items","aui.select.no.suggestions":"No suggestions","aui.select.new.suggestions":"New suggestions added. Please use the up and down arrows to select.","aui.select.new.value":"new value","aui.toggle.on":"On","aui.toggle.off":"Off","ajs.datepicker.localisations.day-names.sunday":"Sunday","ajs.datepicker.localisations.day-names.monday":"Monday","ajs.datepicker.localisations.day-names.tuesday":"Tuesday","ajs.datepicker.localisations.day-names.wednesday":"Wednesday","ajs.datepicker.localisations.day-names.thursday":"Thursday","ajs.datepicker.localisations.day-names.friday":"Friday","ajs.datepicker.localisations.day-names.saturday":"Saturday","ajs.datepicker.localisations.day-names-min.sunday":"Sun","ajs.datepicker.localisations.day-names-min.monday":"Mon","ajs.datepicker.localisations.day-names-min.tuesday":"Tue","ajs.datepicker.localisations.day-names-min.wednesday":"Wed","ajs.datepicker.localisations.day-names-min.thursday":"Thu","ajs.datepicker.localisations.day-names-min.friday":"Fri","ajs.datepicker.localisations.day-names-min.saturday":"Sat","ajs.datepicker.localisations.first-day":0,"ajs.datepicker.localisations.is-RTL":!1,"ajs.datepicker.localisations.month-names.january":"January","ajs.datepicker.localisations.month-names.february":"February","ajs.datepicker.localisations.month-names.march":"March","ajs.datepicker.localisations.month-names.april":"April","ajs.datepicker.localisations.month-names.may":"May","ajs.datepicker.localisations.month-names.june":"June","ajs.datepicker.localisations.month-names.july":"July","ajs.datepicker.localisations.month-names.august":"August","ajs.datepicker.localisations.month-names.september":"September","ajs.datepicker.localisations.month-names.october":"October","ajs.datepicker.localisations.month-names.november":"November","ajs.datepicker.localisations.month-names.december":"December","ajs.datepicker.localisations.show-month-after-year":!1,"ajs.datepicker.localisations.year-suffix":""},getText:function(t){if(Object.prototype.hasOwnProperty.call(this.keys,t)){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return y.apply(null,[this.keys[t]].concat(i))}return t}};for(const t in I18n)zt=t,qt=I18n[t],l(),"object"!=typeof window[a][o]&&(window[a][o]={}),void 0===window[a][o][zt]&&(window[a][o][zt]=qt);var zt,qt,Yt="header";function Kt(t){var e=function(t){let{body:e,type:i="error"}=t;return s('<div class="aui-banner" role="banner"></div>').append(s.parseHTML(e||"")).addClass("aui-banner-".concat(i))}(t);return Gt().find(".aui-banner").get().forEach((function(t){t.hasAttribute("hidden")&&s(t).remove()})),function(t){var e=Gt();if(!e.length)throw new Error("You must implement the application header");t.prependTo(e),V(t),t[0].removeAttribute("hidden")}(e),e[0]}function Gt(){return s("#"+Yt)}X("aui/banner",Kt),c("banner",Kt);var Jt=Kt,Qt=i(2);const Xt={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},Zt={filled:!1,size:Xt.MEDIUM.name},te="Add CSS to the parent element of the <aui-spinner>.\nUse CSS flexbox or grid to vertically align it.\nSee https://css-tricks.com/centering-css-complete-guide/ for techniques.",ee=P("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:te}),ie=P("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:te});function ne(t){let e=Xt.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();Object.keys(Xt).map((t=>t.toLowerCase())).indexOf(t)>-1&&(e=t)}return e}function re(t){const{px:e,radius:i}=Object(Qt.find)(Xt,(e=>e.name===t._data.size))||Xt.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),r=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox","0 0 ".concat(e," ").concat(e));const s=e/2;r.setAttribute("cx",s),r.setAttribute("cy",s),r.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),r=i.getBoundingClientRect(),s=r.top+r.height/2,a=n.top+e/2;t.querySelector("svg").style.top="".concat(s-a,"px")}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}var se=Z("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',re(t)},attached(t){re(t)},attributes:{filled:{created:function(t){ee(),t._data.filled=!0,re(t)},removed:function(t){t._data.filled=!1,re(t)}},size(t,e){t._data.size=ne(e.newValue),re(t)}},prototype:{get _data(){return this.__data||(this._data=Object(Qt.defaults)({},Zt))},set _data(t){return this.__data=t},set filled(t){ie(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=ne(t);this.setAttribute("size",e)}}});function ae(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function oe(t){return"INPUT"===t.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(t){t._spinner=new se,t._spinner.setAttribute("size",Xt.SMALL.name)},prototype:{busy:function(){return oe(this)||ae(this)?(m("It is not valid to call busy() on an input button."),this):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy",""),this)},idle:function(){return oe(this)||!ae(this)?(m("It is not valid to call idle() on an input button."),this):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy"),this)},isBusy:function(){return oe(this)?(m("It is not valid to call isBusy() on an input button."),!1):ae(this)}}}),X("aui/button");const le="aui-close-button",ce=".".concat(le),ue='<button type="button" class="'.concat(le,'" aria-label="').concat(I18n.getText("aui.words.close"),'">');var de={"aui-focus":"false","aui-blanketed":"true"};function he(t){var e;this._handlers=new WeakMap,this.$el=s(t||'\n <section role="dialog" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n '.concat(ue,'\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>')),e=this.$el,s.each(de,(function(t,i){var n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)}))}he.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};jt(i).on(t,n),this._handlers.set(e,n)}return this},he.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(jt(i).off(t,n),this._handlers.delete(e)),this},he.prototype.show=function(){return jt(this.$el).show(),this},he.prototype.hide=function(){return jt(this.$el).hide(),this},he.prototype.remove=function(){return jt(this.$el).remove(),this},he.prototype.isVisible=function(){return jt(this.$el).isVisible()};var pe=vt("dialog2",he),fe=new Set;pe.on=function(t,e){return fe.has(e)||(jt.on(t,".aui-dialog2",e),fe.add(e)),this},pe.off=function(t,e){return fe.has(e)&&(jt.off(t,".aui-dialog2",e),fe.delete(e)),this},s(document).on("click keydown",".aui-dialog2-header ".concat(ce),(function(t){("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE)&&(t.preventDefault(),pe(s(t.target).closest(".aui-dialog2")).hide())})),pe.on("show",(function(t,e){e.find(ce).attr("tabindex",0),e.attr("tabindex",-1);var i=e[0].hasAttribute("data-aui-focus-selector")&&e.attr("data-aui-focus-selector");if(i){var n=e.find(i);if(n.length>0)return n.first().focus()}e.focus()})),pe.on("hide",(function(t,e){var i=jt(e);e.data("aui-remove-on-hide")&&i.remove()})),X("aui/dialog2",pe),c("dialog2",pe);var ge,me,ve=pe,be=i(4),ye=i.n(be),we=navigator.userAgent.toLowerCase(),_e=(/msie/.test(we),/windows nt 5.1/.test(we),/windows nt 6.0/.test(we),/windows nt 6.1/.test(we),/mac os x/.test(we));function xe(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function ke(t){if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e?e.defaultView:window}return t}function Ce(t){var e=ke(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ee(t){return t instanceof ke(t).Element||t instanceof Element}function Te(t){return t instanceof ke(t).HTMLElement||t instanceof HTMLElement}function Ae(t){return t?(t.nodeName||"").toLowerCase():null}function De(t){return(Ee(t)?t.ownerDocument:t.document).documentElement}function Se(t){return xe(De(t)).left+Ce(t).scrollLeft}function Oe(t){return ke(t).getComputedStyle(t)}function Ne(t){var e=Oe(t),i=e.overflow,n=e.overflowX,r=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+r+n)}function Ie(t,e,i){void 0===i&&(i=!1);var n,r,s=De(e),a=xe(t),o=Te(e),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(o||!o&&!i)&&(("body"!==Ae(e)||Ne(s))&&(l=(n=e)!==ke(n)&&Te(n)?{scrollLeft:(r=n).scrollLeft,scrollTop:r.scrollTop}:Ce(n)),Te(e)?((c=xe(e)).x+=e.clientLeft,c.y+=e.clientTop):s&&(c.x=Se(s))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function Me(t){return{x:t.offsetLeft,y:t.offsetTop,width:t.offsetWidth,height:t.offsetHeight}}function Pe(t){return"html"===Ae(t)?t:t.assignedSlot||t.parentNode||t.host||De(t)}function Le(t){return["html","body","#document"].indexOf(Ae(t))>=0?t.ownerDocument.body:Te(t)&&Ne(t)?t:Le(Pe(t))}function Re(t,e){void 0===e&&(e=[]);var i=Le(t),n="body"===Ae(i),r=ke(i),s=n?[r].concat(r.visualViewport||[],Ne(i)?i:[]):i,a=e.concat(s);return n?a:a.concat(Re(Pe(s)))}function je(t){return["table","td","th"].indexOf(Ae(t))>=0}function $e(t){if(!Te(t)||"fixed"===Oe(t).position)return null;var e=t.offsetParent;if(e){var i=De(e);if("body"===Ae(e)&&"static"===Oe(e).position&&"static"!==Oe(i).position)return i}return e}function Fe(t){for(var e=ke(t),i=$e(t);i&&je(i)&&"static"===Oe(i).position;)i=$e(i);return i&&"body"===Ae(i)&&"static"===Oe(i).position?e:i||function(t){for(var e=Pe(t);Te(e)&&["html","body"].indexOf(Ae(e))<0;){var i=Oe(e);if("none"!==i.transform||"none"!==i.perspective||i.willChange&&"auto"!==i.willChange)return e;e=e.parentNode}return null}(t)||e}var He=i(0);function Be(t){var e=new Map,i=new Set,n=[];function r(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&r(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||r(t)})),n}function Ue(t,e){var i=Boolean(e.getRootNode&&e.getRootNode().host);if(t.contains(e))return!0;if(i){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function We(t){return Object.assign(Object.assign({},t),{},{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ve(t,e){return e===He.viewport?We(function(t){var e=ke(t),i=De(t),n=e.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,o=0;return n&&(r=n.width,s=n.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=n.offsetLeft,o=n.offsetTop)),{width:r,height:s,x:a+Se(t),y:o}}(t)):Te(e)?function(t){var e=xe(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):We(function(t){var e=De(t),i=Ce(t),n=t.ownerDocument.body,r=Math.max(e.scrollWidth,e.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=Math.max(e.scrollHeight,e.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),a=-i.scrollLeft+Se(t),o=-i.scrollTop;return"rtl"===Oe(n||e).direction&&(a+=Math.max(e.clientWidth,n?n.clientWidth:0)-r),{width:r,height:s,x:a,y:o}}(De(t)))}function ze(t,e,i){var n="clippingParents"===e?function(t){var e=Re(Pe(t)),i=["absolute","fixed"].indexOf(Oe(t).position)>=0&&Te(t)?Fe(t):t;return Ee(i)?e.filter((function(t){return Ee(t)&&Ue(t,i)&&"body"!==Ae(t)})):[]}(t):[].concat(e),r=[].concat(n,[i]),s=r[0],a=r.reduce((function(e,i){var n=Ve(t,i);return e.top=Math.max(n.top,e.top),e.right=Math.min(n.right,e.right),e.bottom=Math.min(n.bottom,e.bottom),e.left=Math.max(n.left,e.left),e}),Ve(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function qe(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function Ke(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function Ge(t){var e,i=t.reference,n=t.element,r=t.placement,s=r?qe(r):null,a=r?Ye(r):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(s){case He.top:e={x:o,y:i.y-n.height};break;case He.bottom:e={x:o,y:i.y+i.height};break;case He.right:e={x:i.x+i.width,y:l};break;case He.left:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=s?Ke(s):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case He.start:e[c]=Math.floor(e[c])-Math.floor(i[u]/2-n[u]/2);break;case He.end:e[c]=Math.floor(e[c])+Math.ceil(i[u]/2-n[u]/2)}}return e}function Je(t){return Object.assign(Object.assign({},{top:0,right:0,bottom:0,left:0}),t)}function Qe(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}function Xe(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=void 0===n?t.placement:n,s=i.boundary,a=void 0===s?He.clippingParents:s,o=i.rootBoundary,l=void 0===o?He.viewport:o,c=i.elementContext,u=void 0===c?He.popper:c,d=i.altBoundary,h=void 0!==d&&d,p=i.padding,f=void 0===p?0:p,g=Je("number"!=typeof f?f:Qe(f,He.basePlacements)),m=u===He.popper?He.reference:He.popper,v=t.elements.reference,b=t.rects.popper,y=t.elements[h?m:u],w=ze(Ee(y)?y:y.contextElement||De(t.elements.popper),a,l),_=xe(v),x=Ge({reference:_,element:b,strategy:"absolute",placement:r}),k=We(Object.assign(Object.assign({},b),x)),C=u===He.popper?k:_,E={top:w.top-C.top+g.top,bottom:C.bottom-w.bottom+g.bottom,left:w.left-C.left+g.left,right:C.right-w.right+g.right},T=t.modifiersData.offset;if(u===He.popper&&T){var A=T[r];Object.keys(E).forEach((function(t){var e=[He.right,He.bottom].indexOf(t)>=0?1:-1,i=[He.top,He.bottom].indexOf(t)>=0?"y":"x";E[t]+=A[i]*e}))}return E}var Ze={placement:"bottom",modifiers:[],strategy:"absolute"};function ti(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function ei(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,r=e.defaultOptions,s=void 0===r?Ze:r;return function(t,e,i){void 0===i&&(i=s);var r,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign(Object.assign({},Ze),s),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){d(),o.options=Object.assign(Object.assign(Object.assign({},s),o.options),i),o.scrollParents={reference:Ee(t)?Re(t):t.contextElement?Re(t.contextElement):[],popper:Re(e)};var r=function(t){var e=Be(t);return He.modifierPhases.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}(function(t){var e=t.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign(Object.assign(Object.assign({},i),e),{},{options:Object.assign(Object.assign({},i.options),e.options),data:Object.assign(Object.assign({},i.data),e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(n,o.options.modifiers)));return o.orderedModifiers=r.filter((function(t){return t.enabled})),o.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,r=t.effect;if("function"==typeof r){var s=r({state:o,name:e,instance:u,options:n}),a=function(){};l.push(s||a)}})),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(ti(e,i)){o.rects={reference:Ie(e,Fe(i),"fixed"===o.options.strategy),popper:Me(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var r=o.orderedModifiers[n],s=r.fn,a=r.options,l=void 0===a?{}:a,d=r.name;"function"==typeof s&&(o=s({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){u.forceUpdate(),t(o)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){d(),c=!0}};if(!ti(t,e))return u;function d(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var ii={passive:!0};var ni={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=Ge({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},ri={top:"auto",right:"auto",bottom:"auto",left:"auto"};function si(t){var e,i=t.popper,n=t.popperRect,r=t.placement,s=t.offsets,a=t.position,o=t.gpuAcceleration,l=t.adaptive,c=function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Math.round(e*n)/n||0,y:Math.round(i*n)/n||0}}(s),u=c.x,d=c.y,h=s.hasOwnProperty("x"),p=s.hasOwnProperty("y"),f=He.left,g=He.top,m=window;if(l){var v=Fe(i);v===ke(i)&&(v=De(i)),r===He.top&&(g=He.bottom,d-=v.clientHeight-n.height,d*=o?1:-1),r===He.left&&(f=He.right,u-=v.clientWidth-n.width,u*=o?1:-1)}var b,y=Object.assign({position:a},l&&ri);return o?Object.assign(Object.assign({},y),{},((b={})[g]=p?"0":"",b[f]=h?"0":"",b.transform=(m.devicePixelRatio||1)<2?"translate("+u+"px, "+d+"px)":"translate3d("+u+"px, "+d+"px, 0)",b)):Object.assign(Object.assign({},y),{},((e={})[g]=p?d+"px":"",e[f]=h?u+"px":"",e.transform="",e))}var ai={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},r=e.elements[t];Te(r)&&Ae(r)&&(Object.assign(r.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?r.removeAttribute(t):r.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],r=e.attributes[t]||{},s=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Te(n)&&Ae(n)&&(Object.assign(n.style,s),Object.keys(r).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};var oi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.offset,s=void 0===r?[0,0]:r,a=He.placements.reduce((function(t,i){return t[i]=function(t,e,i){var n=qe(t),r=[He.left,He.top].indexOf(n)>=0?-1:1,s="function"==typeof i?i(Object.assign(Object.assign({},e),{},{placement:t})):i,a=s[0],o=s[1];return a=a||0,o=(o||0)*r,[He.left,He.right].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,s),t}),{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}},li={left:"right",right:"left",bottom:"top",top:"bottom"};function ci(t){return t.replace(/left|right|bottom|top/g,(function(t){return li[t]}))}var ui={start:"end",end:"start"};function di(t){return t.replace(/start|end/g,(function(t){return ui[t]}))}var hi={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var r=i.mainAxis,s=void 0===r||r,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=qe(m),b=l||(v===m||!f?[ci(m)]:function(t){if(qe(t)===He.auto)return[];var e=ci(t);return[di(t),e,di(e)]}(m)),y=[m].concat(b).reduce((function(t,i){return t.concat(qe(i)===He.auto?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,r=i.boundary,s=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?He.placements:l,u=Ye(n),d=u?o?He.variationPlacements:He.variationPlacements.filter((function(t){return Ye(t)===u})):He.basePlacements,h=d.filter((function(t){return c.indexOf(t)>=0}));0===h.length&&(h=d);var p=h.reduce((function(e,i){return e[i]=Xe(t,{placement:i,boundary:r,rootBoundary:s,padding:a})[qe(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,k=!0,C=y[0],E=0;E<y.length;E++){var T=y[E],A=qe(T),D=Ye(T)===He.start,S=[He.top,He.bottom].indexOf(A)>=0,O=S?"width":"height",N=Xe(e,{placement:T,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),I=S?D?He.right:He.left:D?He.bottom:He.top;w[O]>_[O]&&(I=ci(I));var M=ci(I),P=[];if(s&&P.push(N[A]<=0),o&&P.push(N[I]<=0,N[M]<=0),P.every((function(t){return t}))){C=T,k=!1;break}x.set(T,P)}if(k)for(var L=function(t){var e=y.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},R=f?3:1;R>0;R--){if("break"===L(R))break}e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function pi(t,e,i){return Math.max(t,Math.min(e,i))}var fi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,r=i.mainAxis,s=void 0===r||r,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Xe(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=qe(e.placement),b=Ye(e.placement),y=!b,w=Ke(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,E="function"==typeof g?g(Object.assign(Object.assign({},e.rects),{},{placement:e.placement})):g,T={x:0,y:0};if(x){if(s){var A="y"===w?He.top:He.left,D="y"===w?He.bottom:He.right,S="y"===w?"height":"width",O=x[w],N=x[w]+m[A],I=x[w]-m[D],M=p?-C[S]/2:0,P=b===He.start?k[S]:C[S],L=b===He.start?-C[S]:-k[S],R=e.elements.arrow,j=p&&R?Me(R):{width:0,height:0},$=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},F=$[A],H=$[D],B=pi(0,k[S],j[S]),U=y?k[S]/2-M-B-F-E:P-B-F-E,W=y?-k[S]/2+M+B+H+E:L+B+H+E,V=e.elements.arrow&&Fe(e.elements.arrow),z=V?"y"===w?V.clientTop||0:V.clientLeft||0:0,q=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,Y=x[w]+U-q-z,K=x[w]+W-q,G=pi(p?Math.min(N,Y):N,O,p?Math.max(I,K):I);x[w]=G,T[w]=G-O}if(o){var J="x"===w?He.top:He.left,Q="x"===w?He.bottom:He.right,X=x[_],Z=pi(X+m[J],X,X-m[Q]);x[_]=Z,T[_]=Z-X}e.modifiersData[n]=T}},requiresIfExists:["offset"]};var gi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,r=i.elements.arrow,s=i.modifiersData.popperOffsets,a=qe(i.placement),o=Ke(a),l=[He.left,He.right].indexOf(a)>=0?"height":"width";if(r&&s){var c=i.modifiersData[n+"#persistent"].padding,u=Me(r),d="y"===o?He.top:He.left,h="y"===o?He.bottom:He.right,p=i.rects.reference[l]+i.rects.reference[o]-s[o]-i.rects.popper[l],f=s[o]-i.rects.reference[o],g=Fe(r),m=g?"y"===o?g.clientHeight||0:g.clientWidth||0:0,v=p/2-f/2,b=c[d],y=m-u[l]-c[h],w=m/2-u[l]/2+v,_=pi(b,w,y),x=o;i.modifiersData[n]=((e={})[x]=_,e.centerOffset=_-w,e)}},effect:function(t){var e=t.state,i=t.options,n=t.name,r=i.element,s=void 0===r?"[data-popper-arrow]":r,a=i.padding,o=void 0===a?0:a;null!=s&&("string"!=typeof s||(s=e.elements.popper.querySelector(s)))&&Ue(e.elements.popper,s)&&(e.elements.arrow=s,e.modifiersData[n+"#persistent"]={padding:Je("number"!=typeof o?o:Qe(o,He.basePlacements))})},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function mi(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function vi(t){return[He.top,He.right,He.bottom,He.left].some((function(e){return t[e]>=0}))}var bi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,r=e.rects.popper,s=e.modifiersData.preventOverflow,a=Xe(e,{elementContext:"reference"}),o=Xe(e,{altBoundary:!0}),l=mi(a,n),c=mi(o,r,s),u=vi(l),d=vi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-reference-hidden":u,"data-popper-escaped":d})}},yi=ei({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,r=n.scroll,s=void 0===r||r,a=n.resize,o=void 0===a||a,l=ke(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return s&&c.forEach((function(t){t.addEventListener("scroll",i.update,ii)})),o&&l.addEventListener("resize",i.update,ii),function(){s&&c.forEach((function(t){t.removeEventListener("scroll",i.update,ii)})),o&&l.removeEventListener("resize",i.update,ii)}},data:{}},ni,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,r=void 0===n||n,s=i.adaptive,a=void 0===s||s,o={placement:qe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:r};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign(Object.assign({},e.styles.popper),si(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign(Object.assign({},e.styles.arrow),si(Object.assign(Object.assign({},o),{},{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1})))),e.attributes.popper=Object.assign(Object.assign({},e.attributes.popper),{},{"data-popper-placement":e.placement})},data:{}},ai,oi,hi,fi,gi,bi]});const wi="alignment",_i="right middle",xi="alignment-container",ki="aui-alignment-side-",Ci="aui-alignment-snap-",Ei="aui-alignment-use-gpu",Ti={"top left":"top-start","top center":"top","top right":"top-end","right top":"right-start","right middle":"right","right bottom":"right-end","bottom right":"bottom-end","bottom center":"bottom","bottom left":"bottom-start","left bottom":"left-end","left middle":"left","left top":"left-start"};function Ai(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function Di(t){return Ai(t,wi)||_i}function Si(t){let[e,i]=Di(t).split(" ");return{side:e,snap:i}}function Oi(t){let e=function(t){let e=Ai(t,xi)||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function Ni(t,e){const i=Si(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=Di(t);return Ti[e]||"right"}(t):(i.snap=Oi(e),n="submenu"===i.side?Ti["".concat("right"===i.snap?"left":"right"," top")]:Ti["".concat(i.side," ").concat(i.snap)]),n}const Ii={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function Mi(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=Si(t),r=Ni(t,e),s=Ii[r.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:s,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a||(i.hasOwnProperty("overflowContainer")?i.overflowContainer:"document")}},{name:"offset",enabled:i.hasOwnProperty("offset")&&!!i.offset,options:{offset:i.offset}},{name:"hide",enabled:!1},{name:"computeStyles",options:{gpuAcceleration:document.body.classList.contains(Ei)}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:t=>{let{state:e}=t;e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={enabled:!0,fn:i.onUpdate}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return n.enabled&&n.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:t=>{let{state:e,name:n}=t;e.modifiersData["".concat(n,"#persistent")]={fn:i.onEvents}},fn:t=>{let{state:e,name:i}=t;const n=e.modifiersData["".concat(i,"#persistent")];return this._triggerOnEvents&&(this._eventListenersEnabled?n.fn.enabled&&n.fn.enabled():n.fn.disabled&&n.fn.disabled(),this._triggerOnEvents=!1),e}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,r=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),s=r([e.top,i.paddingTop,i.borderTop]),o=r([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=s,t.offsets.popper.left+=o,t.offsets.popper.top+=s,t}});const l={placement:r,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=yi(e,t,l),function(t,e,i){const n=ki+e,r=Ci+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(r)||t.classList.add(r)}(t,n.side,n.snap)}Mi.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};var Pi=Mi;const Li=12;function Ri(t){let e=new s.Deferred;return t?setTimeout((()=>{t.parentElement||e.resolve()}),Li):e.reject(),e.promise()}var ji,$i,Fi=0;function Hi(t){if(ji=Fi+++"",$i=t?t+ji:"aui-uid-"+ji,document.getElementById($i)){if($i=$i+"-"+(new Date).getTime(),document.getElementById($i))throw new Error('Timestamped fallback ID "'+$i+'" exists.');return $i}return $i}c("id",Hi);var Bi=Hi;function Ui(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function Wi(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}function Vi(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(e&&e.type){const i=e.type.indexOf("mouse")>-1||e.type.indexOf("hover")>-1,n=e.type.indexOf("key")>-1;if(t.isSubmenu)i?t.focus():t.focusItem(0);else if(n){if(e.keyCode===Q.UP){const e=tn(t);e&&e.length&&t.focusItem(e.length-1)}else t.focusItem(0)}else t.focus()}}var zi="unloaded",qi="loading",Yi="error",Ki="success";function Gi(t,e){tt(t).set("loading-state",Ki),t.innerHTML=function(t){return t.map((function(t){var e=t.items.map((function(t){function e(e){return t[e]?"".concat(e,' ="true"'):""}function i(e){return t[e]?"".concat(e,'="').concat(t[e],'"'):""}var n="aui-item-"+t.type;return"\n <".concat(n," ").concat(i("for")," ").concat(i("href")," ").concat(e("interactive"),"\n ").concat(e("checked")," ").concat(e("disabled")," ").concat(e("hidden"),">\n ").concat(O(t.content),"\n </").concat(n,">")})).join(""),i=t.label?'label="'.concat(t.label,'"'):"";return"\n <aui-section ".concat(i,">\n ").concat(e,"\n </aui-section>")})).join("\n")}(e),Z.init(t),nt(t,(function(e){document.activeElement===e&&Vi(t)}))}function Ji(t){tt(t).set("loading-state",Yi),tt(t).set("hasErrorBeenShown",t.isVisible()),t.innerHTML='\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>'.concat(I18n.getText("aui.dropdown.async.error"),"</p>\n </div>\n ")}function Qi(t){t.src&&tt(t).get("loading-state")!==qi&&(!function(t){tt(t).set("loading-state",qi),tt(t).set("hasErrorBeenShown",!1),nt(t,(function(t){t.setAttribute("aria-busy","true")})),t.innerHTML='\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> '.concat(I18n.getText("aui.dropdown.async.loading"),"\n </div>\n ")}(t),s.ajax(t.src).done((function(e,i,n){200===n.status?Gi(t,e):Ji(t)})).fail((function(){Ji(t)})).always((function(){!function(t){nt(t,(function(t){t.setAttribute("aria-busy","false")}))}(t)})))}function Xi(t,e){return s(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Zi(t){return Xi(t,(()=>!0))}function tn(t){return Xi(t,((t,e)=>!Ui(e)))}function en(t){Zi(t).each(((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||Ui(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function nn(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function rn(t,e){var i=e&&e.hasSubmenu&&e.hasSubmenu(),n="submenu auto"===t.getAttribute("data-aui-alignment");!i&&n&&function(t){var e=s(t),i=e.data("previous-data-aui-alignment");i?t.setAttribute("data-aui-alignment",i):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");i&&!n?(!function(t){var e=s(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),nn(t),t._auiAlignment=new Pi(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}s(document).on("mousedown",".aui-dropdown2-trigger",(function(){this.hasAttribute("resolved")||(Z.init(this),P("Dropdown2 lazy initialisation",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"5.8.0",extraInfo:"Dropdown2 triggers should have all necessary attributes on DOM insertion",deprecationType:"JS"})())})),s(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",(function(t){const e=s(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const i=e.closest(".aui-dropdown2-trigger-group"),n=i.find(".aui-dropdown2-active");n.length&&e.is(".aui-dropdown2-trigger")&&(n.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=i.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()}));var sn=!1;function an(){sn=!0}function on(t){jt(t),t.addEventListener("aui-layer-show",(function(e){t===e.target&&(!function(t){var e=s(t);["disabled","interactive","active","checked"].forEach((t=>{e.find(".".concat(t)).addClass("aui-dropdown2-".concat(t))}))}(t),en(t),s(t).trigger("aui-dropdown2-show"),nt(t,(function(e){Wi(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)})))})),t.addEventListener("aui-layer-hide",(function(e){t===e.target&&(s(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Zi(t).removeClass("active aui-dropdown2-active"),nt(t,(function(t){var e;e=!0===sn,sn=!1,e?(t.focus(),Wi(t,t.hasSubmenu&&t.hasSubmenu())):Wi(t,!1)})),delete t.isSubmenu,it(t,null))}))}function ln(t){var e=s(t);function i(e){return s(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",(function(e){i(e.target)&&(e.keyCode===Q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Q.LEFT?t.isSubmenu&&(an(),t.hide(e),e.preventDefault()):e.keyCode===Q.ESCAPE?an():e.keyCode===Q.TAB&&(an(),t.hide(e)))}));e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(!i(e.target))return;const n=e.currentTarget,r=e.keyCode,a=r===Q.ENTER,o=r===Q.SPACE;a&&s(n).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){var i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();if(!(e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive"))){var n=t;do{var r=jt(n);n=jt(n).below(),r.$el.is(".aui-dropdown2")&&r.hide(e)}while(n)}}(e)})),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',(function(e){if(i(e.target)){var n=e.currentTarget,r=n.hasSubmenu&&n.hasSubmenu();if(!e.isDefaultPrevented()&&!r){var s=jt(t).above();s&&jt(s).hide()}}}))}function cn(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),on(t),ln(t),s(t).on("click keydown",".aui-dropdown2-checkbox",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}})),s(t).on("click keydown",".aui-dropdown2-radio",(function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(s(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each((function(){this.uncheck()})),e.check())}}))}s(window).on("resize",Object(Qt.debounce)((function(){s(".aui-dropdown2").each((function(t,e){Z.init(e),e.isVisible()&&e.hide()}))}),1e3,!0));var un={toggle:function(t){this.isVisible()?this.hide(t):this.show(t)},show:function(t){var e=this;return t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&it(e,t.currentTarget),jt(e).show(),nt(e,(function(t){rn(e,t)})),setTimeout((()=>Vi(e,t)),0),this},hide:function(){return jt(this).hide(),this},focusNext:function(){var t,e=tn(this),i=document.activeElement;e.last()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1)))},focusPrevious:function(){var t,e=tn(this),i=document.activeElement;e.first()[0]!==i&&(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1)))},focusItem:function(t){const e=tn(this);"number"==typeof t&&(t=e.get(t));const i=s(t);i.focus(),e.removeClass("active aui-dropdown2-active"),i.addClass("active aui-dropdown2-active")},isVisible:function(){return jt(this).isVisible()}},dn={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},hn={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},pn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new yt("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new yt("change",{bubbles:!0}))}},fn={created:function(t){dn.created(t)},removed:function(t){dn.removed(t)}},gn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const mn=function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").split(" ").map((t=>t.trim())).filter((t=>t))},vn=Z("aui-item-link",{template:ye()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:dn,interactive:hn,hidden:fn,href:gn("href"),"item-id":gn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),s(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),s(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...mn(e.oldValue)),e.newValue&&i.classList.add(...mn(e.newValue))}}}),[bn,yn]=["checkbox","radio"].map((t=>Z("aui-item-".concat(t),{template:ye()('<span role="'.concat(t,'" class="aui-dropdown2-').concat(t,'" tabindex="-1"><content></content></span>')),attributes:{"item-id":gn("id"),disabled:dn,interactive:hn,checked:pn,hidden:fn}}))),wn=Z("aui-section",{template:ye()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=Bi();var n=t.children[0],r=t.children[1];n.textContent=e.newValue,n.id=i,r.setAttribute("aria-labelledby",i)}},created:function(t){t.classList.add("aui-dropdown2-section")}}),_n=Z("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",jt(t),tt(t).set("loading-state",zi),Z.init(t)},detached:function(t){Ri(t).then((()=>nn(t)))},attributes:{src:{}},prototype:un,events:{"aui-layer-show":function(t){var e=tt(t).get("loading-state")===zi,i=tt(t).get("hasErrorBeenShown");(e||i)&&Qi(t),tt(t).get("loading-state")===Yi&&tt(t).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:cn,prototype:un}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:cn,prototype:un}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function i(i){let n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void v('Could not find a dropdown with id "'+e+'" in the DOM.');const a=s(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),n?r.show(i):r.toggle(i),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):v('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href","#".concat(e)),s(t).on("aui-button-invoke",i).on("click",i).on("keydown",(function(e){if(e.currentTarget!==t)return;const n=e.keyCode===Q.ENTER||e.keyCode===Q.SPACE,r=e.keyCode===Q.RIGHT&&t.hasSubmenu(),s=(e.keyCode===Q.UP||e.keyCode===Q.DOWN)&&!t.hasSubmenu();n?i(e):(s||r)&&i(e,document.activeElement===t)})).on("mouseenter",(function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=tt(t).get("loading-state")===zi,i=tt(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&Qi(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;v('Could not find a dropdown with id "'+e+'" in the DOM.')}))},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),Z("aui-dropdown2-sub-trigger",{type:Z.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),Z.init(t)}}),["checkbox","radio"].map((t=>Z("aui-dropdown2-".concat(t),{type:Z.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),_e&&e.setAttribute("role",t)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.removeAttribute("checked"),s(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()==="aui-item-".concat(t)&&this.parentNode.setAttribute("checked",""),s(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}})));var xn=s(document),kn=function(t){var e={};return e.$trigger=s(t.currentTarget),e.$content=xn.find("#"+e.$trigger.attr("aria-controls")),e.triggerIsParent=0!==e.$content.parent().filter(e.$trigger).length,e.$shortContent=e.triggerIsParent?e.$trigger.find(".aui-expander-short-content"):null,e.height=e.$content.css("min-height"),e.isCollapsible=!1!==e.$trigger.data("collapsible"),e.replaceText=e.$trigger.attr("data-replace-text"),e.replaceSelector=e.$trigger.data("replace-selector"),e},Cn=function(t){if(t.replaceText){var e=t.replaceSelector?t.$trigger.find(t.replaceSelector):t.$trigger;t.$trigger.attr("data-replace-text",e.text()),e.text(t.replaceText)}},En={"aui-expander-invoke":function(t){var e=s(t.currentTarget),i=xn.find("#"+e.attr("aria-controls")),n=!1!==e.data("collapsible");"true"===i.attr("aria-expanded")&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){var e=kn(t);"true"!==e.$content.attr("aria-expanded")&&(e.$content.attr("aria-expanded","true"),e.$trigger.attr("aria-expanded","true"),e.$content.get(0).removeAttribute("hidden"),Cn(e),e.triggerIsParent&&e.$shortContent.hide(),e.$trigger.trigger("aui-expander-expanded"))},"aui-expander-collapse":function(t){var e=kn(t);"true"===e.$content.attr("aria-expanded")&&(Cn(e),e.$content.attr("aria-expanded","false"),e.$trigger.attr("aria-expanded","false"),e.triggerIsParent&&e.$shortContent.show(),0===e.$content.outerHeight()&&e.$content.get(0).setAttribute("hidden",""),e.$trigger.trigger("aui-expander-collapsed"))},"click.aui-expander":function(t){s(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};xn.on(En,".aui-expander-trigger");var Tn=500,An=5e3,Dn=100;function Sn(t){In[t]=function(e,i){i||(i=e,e="#aui-message-bar"),i.closeable=null!==i.closeable&&!1!==i.closeable,i.title=(i.title||"").toString().trim();let n=function(t,e){let{id:i,closeable:n,fadeout:r,title:a,body:o}=t;const l=a?'<p class="title"><strong>'.concat(O(a),"</strong></p>"):"",c='<div class="aui-message">'.concat(l,"</div>"),u=s(c).append(s.parseHTML(o||"")).addClass(n?"closeable":"").addClass(r?"fadeout":"").addClass("aui-message-".concat(e));i&&(/[#\'\"\.\s]/g.test(i)?m("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):u.attr("id",i));return u}(i,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(n,i.insert,e),i.closeable&&On(n),i.fadeout&&Nn(n,i.delay,i.duration),n}}function On(t){s(t||"div.aui-message.closeable").each((function(){var t,e=s(this),i=e.find(ce),n=i.length>0?i.first():s(ue);e.addClass("closeable"),e.append(n),(t=e).unbind("click.aui-message").unbind("keydown.aui-message"),t.on("click.aui-message",ce,(function(t){s(t.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",ce,(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(s(t.target).closest(".aui-message").closeMessage(),t.preventDefault())}))}))}function Nn(t,e,i){e=void 0!==e?e:An,i=void 0!==i?i:Tn,s(t||"div.aui-message.fadeout").each((function(){var t=s(this),n=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(i,(function(){t.closeMessage()}))}function o(){t.stop(!0,!1).fadeTo(Dn,1)}function l(){return!n&&!r}t.focusin((function(){n=!0,o()})).focusout((function(){n=!1,l()&&a()})).hover((function(){r=!0,o()}),(function(){r=!1,l()&&a()})),a()}))}var In={setup:function(){On(),Nn()},makeCloseable:On,makeFadeout:Nn,createMessage:Sn};s.fn.closeMessage=function(){var t=s(this);t.hasClass("aui-message")&&t.hasClass("closeable")&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),s(document).trigger("aui-message-close",[this]))},Sn("generic"),Sn("error"),Sn("warning"),Sn("info"),Sn("confirmation"),Sn("change"),Sn("success"),Sn("hint");const Mn=Z("aui-message",{created:function(t){var e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",In[i](t,{body:e,closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")})}});s((function(){In.setup()})),F(In,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),F(In,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"makeFadeout",{extraInfo:'Use the "fadeout" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),F(In,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),F(In,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),c("messages",In);var Pn=5e3,Ln="aui-flag-container",Rn={body:"",close:"manual",title:"",type:"info"};function jn(t){(t=s.extend({},Rn,t)).title=(t.title||"").toString().trim();var e=function(t){let{body:e,title:i,close:n,type:r}=t;const a=i?'<p class="title"><strong>'.concat(O(i),"</strong></p>"):"",o='<div class="aui-message">'.concat(a,"</div>"),l=s(o).append(s.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass("aui-message-".concat(r));return s('<div class="aui-flag" aria-live="polite"></div>').append(l)}(t);return function(t){var e=t[0];e.close=function(){Fn(t)}}(e),"auto"===t.close?($n(e),function(t){t.find(".aui-message").addClass("aui-will-close"),setTimeout((function(){t[0].close()}),Pn)}(e)):"manual"===t.close&&$n(e),function(){const t=Hn();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map((t=>t.parentNode.removeChild(t)))}else s("body").prepend('<div id="'+Ln+'"></div>')}(),function(t){const e=Hn();t.appendTo(e),V(t),t.removeAttr("hidden").attr("open","")}(e),e.get(0)}function $n(t){var e=s(ue);return e.on("click",(function(){Fn(t)})),e.on("keypress",(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(Fn(t),e.preventDefault())})),t.find(".aui-message").append(e)[0]}function Fn(t){var e=t.get(0);return e.removeAttribute("open"),e.dispatchEvent(new yt("aui-flag-close",{bubbles:!0})),e}function Hn(){return document.getElementById(Ln)}X("aui/flag",jn),c("flag",jn);var Bn=jn,Un=i(20),Wn=i.n(Un);function Vn(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function zn(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Vn(Object(i),!0).forEach((function(e){qn(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Vn(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function qn(t,e,i){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Yn="aui-tooltip",Kn={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Gn="aui-tooltip",Jn={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let Qn;const Xn=()=>Qn&&Qn.get(0),Zn=function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];const e=Xn();e&&e.classList.toggle("assistive",t)};class tr{constructor(t,e){this.triggerElement=t,this.$triggerElement=s(this.triggerElement),this.options=zn(zn({},Jn),e),this.enabled=this.options.enabled,this.moveTitleToTooltip()}destroy(){this.unbindHandlers(),this.hide(),er.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",(function(i,n){return t.originalTitle=n,t.options.aria&&e.attr("aria-describedby",Yn),null}))}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(".".concat(Gn),t):this.$triggerElement.off(".".concat(Gn))}buildTip(t){const e=this.options;void 0===Qn&&(Qn=s('<div id="'.concat(Yn,'" class="').concat("aui-tooltip",' assistive" role="tooltip"><p class="aui-tooltip-content"></p></div>')),s(document.body).append(Qn));const i=Qn.find(".aui-tooltip-content");return e.html?(e.sanitize&&(t=Wn.a.sanitize(t)),i.html(t)):i.text(t),e.maxWidth&&i.css("max-width",e.maxWidth+"px"),Qn}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return e&&e.trim().length?e:void 0}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;this.hide();const e=this.triggerElement,i=Kn[this.options.gravity];if(clearTimeout(this.popperTimeout),"function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const n=this.buildTip(t).get(0);this.popperTimeout=setTimeout((()=>{this.showTooltip(),this.popperInstance=yi(e,n,{placement:i,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),s(window).on("scroll.".concat(Gn),(()=>this.hide()))}),300)}hide(){this.hideTooltip(),clearTimeout(this.popperTimeout),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),s(window).off("scroll.".concat(Gn))}showTooltip(){Zn(!1)}hideTooltip(){Zn(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const er=new WeakMap,ir=(t,e)=>{let i=er.get(t);return void 0===i&&(i=new tr(t,e),"object"==typeof t&&er.set(t,i)),i},nr=t=>t.map((t=>"".concat(t,".").concat(Gn))).join(" "),rr=nr(["mouseenter","focus"]),sr=nr(["click","mouseleave","blur"]);s.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return ir(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error("Method ".concat(n," does not exist on tooltip."));return i[n](),e}const i=t||{},n=function(){ir(this,i).show()},r=function(){ir(this,i).hide()},s=i.live;return void 0!==s?(i.$delegationRoot=e,e.on(rr,s,n),e.on(sr,s,r),e):(e.on(rr,n),e.on(sr,r),e)};var ar={dropdown:function(t){function e(){return s('<div class="aui-dropdown2-section">')}var i=e();s("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(i);var n=e(),r=s("<ul />").appendTo(n);return s.each(t,(function(t,e){var i=s("<li />").attr({class:e.styleClass||""}).appendTo(r),n=s("<a />").text(e.label).attr("data-value",e.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(i);e.icon&&s("<span />").addClass("aui-icon").css("backgroundImage","url("+e.icon+')")').appendTo(n),e.selected&&n.addClass("aui-dropdown2-checked")})),s("<div />").append(i).append(n).html()},furniture:function(t,e){var i=t+"-dropdown",n=s("<select />").attr({name:t,multiple:"multiple"}).html(e),r=s("<div>").attr({id:i,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),a=s("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":i,"aria-haspopup":!0});return s("<div />").append(n).append(a).append(r).html()}};function or(t){var e=s(t.target);lr(this,e.attr("data-value"),e.hasClass("aui-dropdown2-checked"))}function lr(t,e,i){var n=t.$select.find("option").filter((function(){var t=s(this);return t.attr("value")===e&&t.prop("selected")!==i}));n.length&&(n.prop("selected",i),t.$select.trigger("change"))}function cr(t){t.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",(function(){return pr(t).length<1}))}function ur(t){return t.map((function(){var t=s(this);return{value:t.val(),label:t.text(),icon:t.data("icon"),styleClass:t.data("styleClass"),title:t.attr("title"),disabled:t.attr("disabled"),selected:t.prop("selected")}}))}function dr(t){t.$dropdown.html(ar.dropdown(function(t){return ur(t.getOptions())}(t))),cr(t)}function hr(t){var e=fr(t),i=function(t){return 0===pr(t).length}(t)?function(t){return s(t).data("allLabel")||"All"}(t):e.join(", ");t.$btn.text(i)}function pr(t){return ur(t.getSelectedOptions())}function fr(t){return s.map(pr(t),(function(t){return t.label}))}const gr=Z("aui-checkbox-multiselect",{attached:function(t){var e=t.getAttribute("name")||Bi("aui-checkbox-multiselect-");t.innerHTML=ar.furniture(e,t.innerHTML),t.$select=s("select",t).on("change",(function(){hr(t),cr(t)})),t.$dropdown=s(".aui-checkbox-multiselect-dropdown",t).on("aui-dropdown2-item-check",or.bind(t)).on("aui-dropdown2-item-uncheck",or.bind(t)).on("click","button[data-aui-checkbox-multiselect-clear]",t.deselectAllOptions.bind(t)),t.$btn=s(".aui-checkbox-multiselect-btn",t).tooltip({title:function(){return function(t){return t.$dropdown[0].hasAttribute("hidden")?"":fr(t).join(", ")}(t)}}),hr(t),dr(t)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(t){lr(this,t,!0)},unselectOption:function(t){lr(this,t,!1)},getValue:function(){return this.$select.val()},deselectAllOptions:function(){this.$select.val([]).trigger("change"),this.$dropdown.find(".aui-dropdown2-checked,.checked").removeClass("aui-dropdown2-checked checked")},addOption:function(t){s("<option />").attr({value:t.value,icon:t.icon,disabled:t.disabled,selected:t.selected,title:t.title}).text(t.label).appendTo(this.$select),hr(this),dr(this)},removeOption:function(t){this.$select.find("[value='"+t+"']").remove(),hr(this),dr(this)}}});X("aui/checkbox-multiselect",gr);var mr=gr,vr=i(21),br=i.n(vr).a;var yr=function(t){function e(e){return n((function(){return t.hasAttribute(e)}),e+" wasn't defined")}function i(i){if(!e(i))return!1;var r=t.getAttribute(i);return n((function(){return document.getElementById(r)}),'an element with id set to "'+r+'" was not found')}function n(e,i){return!!e()||(t?v(i,t):v(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}};const wr="-input";function _r(t){return t.querySelector("label")}const xr=Z("aui-label",{template:ye()("<label><content></content></label>"),created:function(t){t._label=_r(t)},attached:function(t){yr(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?_r(t).setAttribute("for","".concat(e.newValue).concat(wr)):_r(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?_r(t).setAttribute("form",e.newValue):_r(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});var kr=xr,Cr=(i(27),s.fn.select2),Er="aui-select2-container",Tr="aui-select2-drop aui-dropdown2",Ar="aui-has-avatar";s.fn.auiSelect2=function(t){var e;if(s.isPlainObject(t)){var i=s.extend({},t),n=i.hasAvatar?" "+Ar:"";i.containerCssClass=Er+n+(i.containerCssClass?" "+i.containerCssClass:""),i.dropdownCssClass=Tr+n+(i.dropdownCssClass?" "+i.dropdownCssClass:""),(e=Array.prototype.slice.call(arguments,1)).unshift(i)}else e=arguments.length?arguments:[{containerCssClass:Er,dropdownCssClass:Tr}];return Cr.apply(this,e)},s.fn.spin=R((function(t,e){let i={size:"small"};return"object"==typeof e&&(i=s.extend(i,e)),"object"==typeof t&&(i=s.extend(i,t)),"string"==typeof t&&(i.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each((function(){if(!this||!this.nodeType)return;const t=s(this),e=t.data();if(e){const n=s("<aui-spinner filled></aui-spinner>");n.attr("size",i.size),n.css("color",i.color),t.spinStop(),t.append(n),Z.init(this),e.spinner=n}}))}),"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),s.fn.spinStop=R((function(){return this.each((function(){if(!this||!this.nodeType)return;const t=s(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)}))}),"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});var Dr=Z("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||O(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=O(this.textContent),t}}}),Sr=i(1),Or=i.n(Sr),Nr=Or.a.Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,Object(Qt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always((()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})})),e.done(((e,i,n)=>{this.addQueryCache(t,e,n)})),e.done((()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)})))},getQueryData:function(t){var e=Object(Qt.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=Object(Qt.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return Or.a.Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter((function(e){return!!this.matcher(e,t)}),this),this._maxResults&&(e=Object(Qt.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,r=this.parse(e,i);n[t]=Object(Qt.pluck)(r,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});c("ProgressiveDataSet",Nr);var Ir=Nr,Mr=Or.a.Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function Pr(){this._suggestions=[],this._activeIndex=-1}Pr.prototype={onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){var t=this._activeIndex,e=0===t?t:t-1;return this.highlight(e),this},highlightNext:function(){var t=this._activeIndex,e=t===this._suggestions.length-1?t:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};var Lr=Pr;function Rr(t,e){return t+"-"+e}function jr(t,e){this.el=t,this.anchor=e}function $r(t){s(t).find(".aui-select-active").removeClass("aui-select-active")}jr.prototype={render:function(t,e,i){this.currListId=i;var n="";if(t.length){var r=e;t.forEach((function(t){var e=t.getLabel(),s=t.get("img-src"),a=s?'<img src="'.concat(encodeURI(s),'"/>'):"",o=t.get("new-value")?" (<em>".concat(I18n.getText("aui.select.new.value"),"</em>)"):"";n+='<li role="option" class="aui-select-suggestion" id="'.concat(Rr(i,r),'">').concat(a).concat(e).concat(o,"</li>"),r++})),e?this.el.querySelector("ul").innerHTML+=n:this.el.querySelector("ul").innerHTML=n}else e||(this.el.querySelector("ul").innerHTML='<li role="option" class="aui-select-no-suggestions">'.concat(I18n.getText("aui.select.no.suggestions"),"</li>"));return this},setActive:function(t){$r(this.el),s(this.el).find("#"+Rr(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var t;s((t=this).el).css("min-width",s(t.anchor).outerWidth()),jt(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new Pi(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){var t;$r(this.el),jt(this.el).hide(),(t=this)._auiAlignment&&t._auiAlignment.disable()},destroy:function(){var t;this.hide(),(t=this)._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment),delete this.currListId},isVisible:function(){return s(this.el).is(":visible")}};var Fr=jr,Hr=ye()('\n <input type="text" class="text" autocomplete="off" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" role="button" tabindex="-1" type="button"></button>\n <div class="aui-popover" role="listbox" data-aui-alignment="bottom left" hidden>\n <ul class="aui-optionlist" role="presentation"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n'),Br=-1,Ur=-1,Wr=20;function Vr(t){t._select.selectedIndex=Br,function(t){t._input.removeAttribute("style"),s(t._input).removeClass("aui-select-has-inline-image")}(t)}function zr(t){return t._suggestionModel.getNumberOfResults()}function qr(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function Yr(t){t._suggestionsView.hide(),t._input.setAttribute("aria-expanded","false")}function Kr(t){var e=zr(t)?0:Ur;t._suggestionModel.highlight(e),Yr(t)}function Gr(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Jr(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){s(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function Qr(t,e){if(e){var i,n=document.createElement("option"),r=t._select,s=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",s),n.textContent=a,t._input.value=a,r.innerHTML="",r.options.add(n),r.dispatchEvent(new yt("change",{bubbles:!0}))}}function Xr(t){Qr(t,t._suggestionModel.highlighted()),Jr(t),Kr(t)}function Zr(t){return new Mr(t.serialize())}function ts(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(Zr(n))}return e}function es(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function is(t,e){return s.map(e,(function(t){return t.id})).indexOf(t)}function ns(t){t._progressiveDataSet=new Ir(ts(t),{model:Mr,matcher:qr,queryEndpoint:t._queryEndpoint,maxResults:Wr}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",(function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),tt(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),tt(t).set("should-flag-new-suggestions",!0))})),t._progressiveDataSet.on("respond",(function(e){if(e.query&&!t._input.value)return;if(tt(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||tt(t).set("should-cancel-response",!1));e.query||(e.results=ts(t));var i=-1!==is(t._input.value,e.results),n=!t._input.value;if(!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new Dr;e.setAttribute("value",t._input.value);var i=Zr(e);return i.set("new-value",!0),i}(t)),!tt(t).get("should-include-selected")){var r=is(t.value,e.results);r>=0&&e.results.splice(r,1)}const s=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=t._suggestionModel.highlighted()||e.results[0];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout((function(){t._input.setAttribute("aria-activedescendant",es(t))}),50)),t._input.setAttribute("aria-expanded","true"),!t._isSync&&s&&t._suggestionsView.getActive()&&tt(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()}))}function rs(t){var e=t.value?"":t._input.value,i=""===t._input.value;tt(t).set("should-include-selected",i),Gr(t,!0,e)}function ss(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&tt(t).set("should-cancel-response",!0)}function as(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function os(t){ss(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==as(t);if(i||n)if(e)Vr(t);else{var r=as(t);void 0===r?Vr(t):t._input.value=r}}(t),function(t){t._suggestionModel.highlight(Ur)}(t),Yr(t)}const ls=Z("aui-select",{template:Hr,created:function(t){t._listId=Bi(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._suggestionsView=new Fr(t._dropdown,t._input),t._suggestionModel=new Lr,t._suggestionModel.onChange=function(e){var i=[];t._suggestionModel._suggestions.forEach((function(t){e.some((function(e){return t.id===e.id}))||i.push(t)})),t._suggestionsView.render(i,e.length,t._listId)},t._suggestionModel.onHighlightChange=function(){var e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e),t._input.setAttribute("aria-activedescendant",es(t))}},attached:function(t){Z.init(t),ns(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),t.setAttribute("tabindex","-1"),function(t){s(t._dropdown).on("mouseover","li",(function(e){zr(t)&&t._suggestionModel.highlight(s(e.target).index())}))}(t),function(t){let e=!1;s(document).on("aui-close-layers-on-outer-click.single-select",(t=>{e&&(t.preventDefault(),e=!1)})),s(t._dropdown).on("mousedown","li",(function(i){if(!zr(t))return!1;t._suggestionModel.highlight(s(i.target).index()),Xr(t),t._suggestionsView.hide(),s(t).closest(".aui-layer").length>0&&(e=!0),t._input.removeAttribute("aria-activedescendant")}))}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&Qr(t,Zr(e))}(t),Kr(t),Jr(t)},detached:function(t){s(document).off("aui-close-layers-on-outer-click"),Ri(t).then((()=>{Yr(t),t._suggestionsView.destroy()}))},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+wr)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){os(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||tt(t).set("prevent-open-on-button-click",!0)},"click input":function(t){rs(t)},"click button":function(t){var e=tt(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(tt(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?(tt(t).set("should-include-selected",!0),Gr(t,!0)):tt(t).get("button-clicked-prevent-dropdown-hide")?tt(t).set("button-clicked-prevent-dropdown-hide",!1):Yr(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Q.ESCAPE)return ss(t),void Yr(t);t._suggestionsView.isVisible()&&zr(t)?e.keyCode===Q.ENTER?(ss(t),Xr(t),e.preventDefault()):e.keyCode===Q.TAB?(!function(t){t._suggestionsView.isVisible()&&Xr(t)}(t),n=!0):e.keyCode===Q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Q.UP&&e.keyCode!==Q.DOWN||(rs(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout((function(){t._input.value===i||n||t.dispatchEvent(new yt("input",{bubbles:!0}))}),0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new Mr({value:t,label:t})),Qr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),os(this),this},focus:function(){return this._input.focus(),rs(this),this}}});X("aui/select",ls),c("select",ls);var cs=ls;function us(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}var ds={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:us,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,r=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:r?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function hs(t){return t._input||(t._input=t.querySelector("input"))}function ps(t){return t._spinner||(t._spinner=new se)}function fs(t,e){hs(e).removeAttribute(t)}function gs(t,e,i){hs(e).setAttribute(t,i.newValue)}function ms(t){return{removed:fs.bind(this,t),fallback:gs.bind(this,t)}}const vs={removed:function(t){fs.call(this,"form",t),t._formId=null},fallback:function(t,e){gs.call(this,"form",t,e),t._formId=e.newValue}};var bs={removed:fs.bind(void 0,"id"),fallback:function(t,e){const i="".concat(e.newValue).concat(wr);hs(t).setAttribute("id",i)}},ys={removed:function(t){fs.call(this,"value",t),hs(t).value="on"},fallback:function(t,e){gs.call(this,"value",t,e)}},ws={removed:function(t){hs(t).checked=!1},fallback:function(t){hs(t).checked=!0}},_s={removed:function(t){hs(t).removeAttribute("aria-label")},fallback:function(t,e){hs(t).setAttribute("aria-label",e.newValue)}};function xs(t){hs(t).addEventListener("keydown",(function(e){t.busy&&e.keyCode===Q.SPACE&&e.preventDefault()})),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&hs(t).addEventListener("click",(function(e){t.busy&&e.preventDefault()})),function(){if(void 0===me)try{document.querySelector(":focus-within"),me=!0}catch(t){me=!1}return me}()||(t._input.addEventListener("focus",(()=>t.classList.add("active"))),t._input.addEventListener("blur",(()=>t.classList.remove("active"))))}const ks=Z("aui-toggle",{template:ye()('<input type="checkbox" class="aui-toggle-input assistive">','<span class="aui-toggle-view">','<span class="aui-toggle-tick aui-icon aui-icon-small aui-iconfont-success"></span>','<span class="aui-toggle-cross aui-icon aui-icon-small aui-iconfont-close-dialog"></span>',"</span>"),created:function(t){hs(t),ps(t).setAttribute("size",Xt.SMALL.name),s(hs(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),xs(t),t.hasAttribute("checked")&&hs(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){yr(t).attributeExists("label")},events:{click:function(t,e){var i=hs(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new yt("change",{bubbles:!0}))}(t)),us(t,"checked",i.checked)}},attributes:{id:bs,checked:ws,disabled:ms("disabled"),form:vs,name:ms("name"),value:ys,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){hs(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){hs(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:_s},prototype:{focus:function(){return hs(this).focus(),this},get checked(){return hs(this).checked},set checked(t){hs(this).checked!==t&&(hs(this).checked=t,us(this,"checked",t))},get disabled(){return hs(this).disabled},set disabled(t){return us(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return vs.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return hs(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return hs(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===hs(this).getAttribute("aria-busy")},set busy(t){const e=hs(this),i=ps(this);var n,r;return us(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),s(this.querySelector(".aui-toggle-tick")).append(i)):s(this.querySelector(".aui-toggle-cross")).append(i)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),i.parentNode&&i.parentNode.removeChild(this._spinner)),r=!!t,(n=this).id&&Array.prototype.forEach.call(document.querySelectorAll('aui-label[for="'.concat(n.id,'"]')),(function(t){t.disabled=r})),t}}});var Cs=ks;function Es(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ts(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Es(Object(i),!0).forEach((function(e){As(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Es(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function As(t,e,i){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}const Ds=1e3;function Ss(t,e){nt(t,(function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)})),it(t,e)}function Os(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};i=Ts(Ts({},i),{onCreate:()=>{Us(t)&&mt().enter(s(t),s(e))},onEvents:{enabled:()=>{Us(t)&&mt().enter(s(t))},disabled:()=>{Us(t)&&mt().exit(s(t))}}}),t._auiAlignment=new Pi(t,e,i)}}function Ns(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function Is(t,e){var i=e.currentTarget;i&&(Ss(t,i),Os(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Ms(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return function(e){e.open&&!jt(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout((function(){(function(t){return tt(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null}),t))}}const Ps={click(t,e){t.open&&!jt(t).isPersistent()?t.open=!1:(Ss(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:Is,mouseleave:Ms(Ds),focus:Is,blur:Ms(0)};function Ls(t){var e=t.currentTarget;tt(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function Rs(t){var e=t.currentTarget;tt(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function js(t){var e=t.currentTarget;"hover"===e.respondsTo&&Ms(Ds)(e)}function $s(t){tt(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",Ls),t.removeEventListener("mouseleave",Rs),t.removeEventListener("blur",js),"hover"===t.respondsTo&&(tt(t).set("mouse-inside",!1),t.addEventListener("mouseenter",Ls),t.addEventListener("mouseleave",Rs),t.addEventListener("blur",js))}function Fs(t,e){return"".concat(t,".nested-layer-").concat(e)}function Hs(t){return jt(t).show(),!0===jt(t).isVisible()}function Bs(t){return jt(t).hide(),!1===jt(t).isVisible()}function Us(t){return"hover"!==t.respondsTo}function Ws(t){t.__initialised||(jt(t),s(t).on({["".concat(wt,"show")]:function(){const t=this;!function(t){let e=s(t);const i=t.id,n=t=>e.find(et(t.target)).length<1;s(document).on(Fs("aui-layer-show",i),(t=>{n(t)||e.attr("persistent","")})).on(Fs("aui-layer-hide",i),(t=>{n(t)||e.removeAttr("persistent")})).on(Fs("select2-opening",i),(()=>{e.attr("persistent","")})).on(Fs("select2-close",i),(()=>{setTimeout((()=>{e.removeAttr("persistent")}),150)}))}(t),nt(t,(function(e){Os(t,e),e.setAttribute("aria-expanded","true")}))},["".concat(wt,"hide")]:function(){const t=this;!function(t){const e=t.id;s(document).off(Fs("aui-layer-hide",e)).off(Fs("aui-layer-show",e)).off(Fs("select2-opening",e)).off(Fs("select2-close",e))}(t.id),t.ownerDocument.body.contains(t)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(t):Ns(t),nt(t,(function(t){t.setAttribute("aria-expanded","false")})),it(t,null)}}),t.__initialised=!0)}const Vs={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},zs=Z("aui-inline-dialog",{prototype:{get open(){return jt(this).isVisible()},set open(t){this.__propUpdate=!0,t?Hs(this):Bs(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){ds.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=Vs.attribute;return ds.computeEnumValue(Vs,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;ds.setEnumAttribute(this,Vs,t),e!==this.respondsTo&&$s(this)},message:function(t){return function(t,e){var i={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[t.respondsTo];i&&i.indexOf(e.type)>-1&&Ps[e.type](t,e)}(this,t),this}},attributes:{open:function(t,e){if(Ws(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){Hs(t)||us(t,"open",!1)}if("removed"===e.type){Bs(t)||us(t,"open",!0)}}},"responds-to":function(t,e){ds.computeEnumValue(Vs,e.oldValue)!==ds.computeEnumValue(Vs,e.newValue)&&$s(t)}},created:Ws,attached:function(t){yr(t).attributeExists("id"),t.setAttribute("tabindex",0),t.setAttribute("role","dialog"),nt(t,(function(e){e.setAttribute("aria-expanded",t.open)})),rt(t,(function(t){t.setAttribute("aria-haspopup","true")})),$s(t)},detached:function(t){Ri(t).then((()=>{Ns(t),rt(t,(function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")}))}))},template:function(t){s('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});X("aui/inline-dialog2",zs),c("InlineDialog2",zs);var qs=zs;function Ys(t){if(this.$el=s(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(t,e){return new Ys(e)}))[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each((function(){Ks(s(this).children(".aui-nav")).expand()}));var i=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return i.on("click",(function(){Ks(s(this).siblings(".aui-nav")).toggle()})),i.each((function(){var t=s(this).parent("li[aria-expanded]"),e=s(this).find(".aui-icon"),i="true"===t.attr("aria-expanded");e.text(i?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))})),this}Ys.prototype.isNested=function(){return 1===this.$treeParent.length},Ys.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Ys.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(I18n.getText("aui.words.collapse")),this},Ys.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(I18n.getText("aui.words.expand")),this},Ys.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Ks=vt("navigation",Ys),Gs=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(t){new Ys(t)},detached:function(t){s(t).removeData()}});c("navigation",Ks);var Js=Ks;const Qs="aui-progress-indicator-after-update",Xs="aui-progress-indicator-before-update",Zs="transitionend webkitTransitionEnd";function ta(t,e,i){let{currentProgress:n,value:r}=i;const a=s(t),o=s(e);"number"==typeof r&&r<=1&&r>=0&&(o.trigger(Xs,[n,r]),a.one(Zs,(function(){o.trigger(Qs,[n,r])})),function(t,e,i){V(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(a,o,r))}function ea(t){var e=s(t).first(),i=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),V(e),i.css("width","")}const ia={indeterminate:!1,max:1,val:0};function na(t){return Object(Qt.isNumber)(t)&&Object(Qt.isFinite)(t)&&!Object(Qt.isNaN)(t)}function ra(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const i=parseFloat(t);return na(i)?i:Number(e)}function sa(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return Number(parseFloat(t).toFixed(e))}function aa(t){const{val:e,max:i}=t,n=function(t){return t>0?t:ia.max}(i),r=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),s=sa(r/n,6);return{max:n,val:r,valAsFraction:s,valAsPercent:sa(100*s,2)}}function oa(t){const{val:e,valAsFraction:i,max:n}=aa(t._data),r=t.querySelector(".aui-progress-indicator"),s=r.getAttribute("data-value");t.indeterminate?(r.removeAttribute("aria-valuenow"),ea(r)):(r.setAttribute("aria-valuenow",e),r.setAttribute("aria-valuemax",n),ta(r.querySelector(".aui-progress-indicator-value"),r,{currentProgress:s,value:i}))}function la(t,e){t._data.val=ra(e.newValue,e.oldValue||ia.val),oa(t)}function ca(t,e){t._data.max=ra(e.newValue,e.oldValue||ia.max),oa(t)}const ua=Z("aui-progressbar",{template(t){t._data.max=ra(t.getAttribute("max"),ia.max),t._data.val=ra(t.getAttribute("value"),ia.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:r}=aa(t._data),s=t._data.indeterminate?"":'data-value="'.concat(n,'"');t.innerHTML='<div class="aui-progress-indicator"\n '.concat(s,'\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="').concat(e,'"\n aria-valuemax="').concat(i,'"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ').concat(r,'%"></span>\n </div>')},attached(t){oa(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:ia.val,fallback:function(t,e){if(t._updating)return!1;la(t,e)}},max:{value:ia.max,fallback:function(t,e){if(t._updating)return!1;ca(t,e)}}},prototype:{get _data(){return this.__data||(this._data=Object(Qt.defaults)({},ia))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,oa(this)},get value(){const{val:t}=aa(this._data);return t},set value(t){if(!na(t))return!1;const e={newValue:sa(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,la(this,e)},get max(){const{max:t}=aa(this._data);return t},set max(t){if(!na(t))return!1;const e={newValue:sa(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,ca(this,e)}}}),da={update:R((function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var i=s(t).first(),n=i.children(".aui-progress-indicator-value"),r=i.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(n.get(0).style.width)||0)}if(!l)return a&&n.css("width",0),ta(n,i,{currentProgress:o,value:e}),i}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(ea,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};c("progressBars",da);var ha=da;i(28);const pa={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function fa(t,e){let i=Object.assign({},pa,e);return t.find("th").each((function(t,e){const n=s(e);i.headers[t]={},n.hasClass("aui-table-column-unsortable")?i.headers[t].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(i.headers[t].sorter="issue-key"))})),t.tablesorter(i)}let ga={setup:function(){s.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],r="..........",s="000000";let a=(i+r).slice(0,r.length);return a+=(s+n).slice(-s.length),a},type:"text"}),s.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),s.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),s(".aui-table-sortable").each((function(){fa(s(this))}))},setTableSortable:function(t,e){return fa(t,e)}};s(ga.setup),c("tablessortable",ga);function ma(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";var i=s(t),n=e||!1;i.each((function(){var t=s(this);t.attr("id")||t.attr("id",Bi(n))}))}c("_addID",ma);var va=ma;function ba(t){return(t=s(t)).prop("scrollWidth")>t.prop("clientWidth")}c("isClipped",ba);var ya=ba,wa=window.skateTemplateHtml,_a="_internal-aui-tabs-",xa='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function ka(t){let e=s(t),i=String(e.attr("href")||"").trim();return 0===i.indexOf("#")?i.substr(1):null}function Ca(t){let e=ka(t);return e?document.getElementById(e):null}var Ea={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each((function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))})),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each((function(t,i){e+=s(i).outerWidth()})),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i='<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-'.concat(e,'"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-').concat(e,'"\n href="#aui-tabs-responsive-dropdown-').concat(e,'">...</a>\n </li>');return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,i){function n(t,e,i){return t+e<=i}for(var r=0,a=0;n(r,i,e)&&a<t.length;a++){r+=s(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,i){for(var n=i.find("a").attr("aria-controls"),r=s("#"+n),a=this.findNewVisibleTabs(t,e.outerWidth(),i.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=s(t[l]);this.moveTabToResponsiveDropdown(c,r,i)}return s(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,i){function n(t){return t>0}for(var r=0;n(e)&&r<t.length;r++){var a=s(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,i),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function Ta(t){var e=s(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var i=Ca(e);if(i){var n=s(i);n.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=s(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=n.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&n.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:n})}else v("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Aa(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Da(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return _a+(e||"")+(i&&"true"!==i?"-"+i:"")}function Sa(t){La.change(s(t.target).closest("a")),t&&t.preventDefault()}function Oa(t){t.forEach((function(t,e){!function(t,e){var i=s(t),n=i.find(".tabs-menu").first(),r=n.find("li:not(.aui-tabs-responsive-trigger-item)"),a=n.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=s(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Ea.totalTabsWidth(r,c)>i.outerWidth();if(!u&&d&&(a=Ea.createResponsiveDropdownTrigger(n,e),c=Ea.createResponsiveDropdown(i,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=Ea.moveVisibleTabs(r.toArray(),i,a),p=Ea.totalVisibleTabWidth(h),f=i.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");Ea.moveInvisibleTabs(g.toArray(),f,a)}i.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Sa),n.is(":visible")&&n.hide().show()}u&&!d&&(c.find("li").each((function(){Ea.moveTabOutOfDropdown(s(this),a)})),Ea.removeResponsiveDropdown(c,a))}(t,e)}))}function Na(){return s(xa).toArray()}function Ia(t){var e=s(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var i=e.children("ul.tabs-menu");i.attr("role","tablist"),i.children("li").attr("role","presentation"),i.find("> .menu-item a").each((function(){var t,e,i;e=s(t=this),i=Ca(e),ka(t)||v('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),i?(va(e),e.attr("role","tab"),s(i).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):m("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",t)})),i.on("click.aui-tabs","a",Sa),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(Pa)}(t)}}function Ma(){var t=s(".aui-tabs:not(.aui-tabs-disabled)");t.each((function(){Ia(this)})),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),r=t.get(e);if(Aa(n)&&window.localStorage)if(n.attr("id")){var s=window.localStorage.getItem(Da(n));if(s){var a=r.querySelector('a[href$="'.concat(s,'"]'));a&&Ta(a)}}else m("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function Pa(t){t.setAttribute("role","tabpanel")}var La={setup:function(){!function(){const t=Object(Qt.debounce)(Oa,200);t(Na()),s(window).on("resize.aui-tabs",(()=>t(Na())))}(),Ma(),s(".aui-tabs.vertical-tabs").find("a").each((function(){var t=s(this);t.attr("title")||ya(t)&&t.attr("title",t.text())}))},change:function(t){var e=t instanceof HTMLElement||t instanceof s?t:document.querySelector(t),i=s(e).first(),n=i.closest(".aui-tabs");Ta(i),Aa(n)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=ka(t);i&&window.localStorage.setItem(Da(e),"#"+i)}else m("A tab group must specify an id attribute if it specifies data-aui-persist.")}(i)}};s(La.setup);const Ra=Z("aui-tabs",{created:function(t){s(t).addClass("aui-tabs horizontal-tabs"),Z.init(t),Ia(t)},template:wa('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e,i=s((e=this,e.querySelectorAll("aui-tabs-pane"))).index(t);return i>-1&&La.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[i].children[0]),this}}}),ja=Z("aui-tabs-tab",{extends:"li",created:function(t){s(t).addClass("menu-item")},template:wa('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),$a=Z("aui-tabs-pane",{attached:function(t){var e=s(function(t){return s(t).closest("aui-tabs").get(0)}(t)),i=s(t),n=e.find("aui-tabs-pane").index(i),r=new ja,a=s(r);i.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),wa.wrap(r).textContent=i.attr("title"),0===n&&i.addClass("active-pane"),i.hasClass("active-pane")&&a.addClass("active-tab"),i.siblings("ul").append(r)},template:wa("<content></content>")});c("tabs",La);const Fa="_aui-form-notification-initialised",Ha="data-aui-notification-",Ba=Ha+"wait",Ua=Ha+"info",Wa=Ha+"error",Va=[Wa,Ha+"success",Ba,Ua];function za(t){qa(t)||(!function(t){t.addClass(Fa),Ya(t)}(t),Ja(t))}function qa(t){return t.hasClass(Fa)}function Ya(t,e){e=e||Ka(t),Ga(t)===Ua&&t.after(function(t){if(t.length>1){let e=t.map((t=>"<li>".concat(t,"</li>"))).join("");return'<div class="description"><ul>'.concat(e,"</ul></div>")}return'<div class="description">'.concat(t,"</div>")}(e))}function Ka(t){var e=Ga(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function Ga(t){var e;return Va.some((function(i){if(t.is("["+i+"]"))return e=i,!0})),e}function Ja(t){const e=s(t);if(!qa(e))return;const i=Ga(e);Za(e,i===Ba);const n=Ka(e);n&&i===Wa?Qa(e,n):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(Wa)||e.parent().find(".error").remove()}function Qa(t,e){let i=Xa(t,"error");i.length>0&&i.remove(),t.after(function(t){let e=t.map((t=>'<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification">'.concat(t,"</span>").concat(t,"</li>"))).join("");return'<div class="error"><ul>'.concat(e,"</ul></div>")}(e))}function Xa(t,e){return t.parent().find(".".concat(e))}function Za(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const to=P("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(t){to(),za(s(t))},attributes:function(){const t={};return Va.forEach((function(e){t[e]=Ja})),t}(),type:Z.type.ATTRIBUTE}),X("aui/form-notification");var eo=["displayfield","watchfield","when","novalidate","state"],io=[];var no={register:function(t,e){var i;if("string"==typeof t)i=t;else{var n=function(t){var e=!1;return t.some((function(t){var i=-1!==s.inArray(t,eo);return i&&(e=t),i})),e}(t);if(n)return m('Validators cannot be registered with the argument "'+n+'", as it is a reserved argument.'),!1;i="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:i};return io.push(r),r},validators:function(){return io}};X("aui/form-validation/validator-register",no);var ro=no;function so(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),r=parseInt(t.args("maxlength"),10);if(n&&r&&n===r&&!i&&e!==n){const e=ho("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=ho("minlength",t.args);t.invalidate(e)}else if(r&&e>r){const e=ho("maxlength",t.args);t.invalidate(e)}else t.validate()}function ao(t){return"password"===t.getAttribute("type")}function oo(t,e){var i=t.match(e);return!!i&&t===i[0]}function lo(t){var e=ho("pattern",t.args);oo(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function co(t){var e=ho("required",t.args);t.el.value?t.validate():t.invalidate(e)}function uo(t){var e=ho("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),r=t.args("max");n&&i<parseInt(n,10)?t.invalidate(ho("min",t.args)):r&&i>parseInt(r,10)?t.invalidate(ho("max",t.args)):t.validate()}}function ho(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:po[t];var r=i;i||(r=[e(t)]);var s,a=e(t+"-msg");return s=a?[a].concat(r):[n].concat(r),AJS.format.apply(null,s)}ro.register(["maxlength","minlength"],so),ro.register("[maxlength],[minlength]",so),ro.register(["matchingfield"],(function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,r=ho("matchingfield",t.args,[e,n]);(ao(t.el)||ao(i))&&(r=ho("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(r):t.validate()})),ro.register(["doesnotcontain"],(function(t){var e=ho("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)})),ro.register(["pattern"],lo),ro.register("[pattern]",lo),ro.register(["required"],co),ro.register("[required]",co),ro.register(["min","max"],uo),ro.register("[min],[max]",uo),ro.register(["dateformat"],(function(t){var e=t.args("dateformat"),i=ho("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},r=e.split(""),s="";r.forEach((function(t){var e=n.hasOwnProperty(t);s+=e?n[t]:t}));var a=new RegExp(s+"$","i");oo(t.el.value,a)?t.validate():t.invalidate(i)})),ro.register(["minchecked","maxchecked"],(function(t){var e=s(t.el).find(":checked").length,i=!t.args("minchecked")||e>=t.args("minchecked"),n=!t.args("maxchecked")||e<=t.args("maxchecked"),r=ho("minchecked",t.args),a=ho("maxchecked",t.args);i&&n?t.validate():i?n||t.invalidate(a):t.invalidate(r)}));var po={minlength:I18n.getText("aui.validation.message.minlength"),maxlength:I18n.getText("aui.validation.message.maxlength"),exactlength:I18n.getText("aui.validation.message.exactlength"),matchingfield:I18n.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":I18n.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:I18n.getText("aui.validation.message.doesnotcontain"),pattern:I18n.getText("aui.validation.message.pattern"),required:I18n.getText("aui.validation.message.required"),validnumber:I18n.getText("aui.validation.message.validnumber"),min:I18n.getText("aui.validation.message.min"),max:I18n.getText("aui.validation.message.max"),dateformat:I18n.getText("aui.validation.message.dateformat"),minchecked:I18n.getText("aui.validation.message.minchecked"),maxchecked:I18n.getText("aui.validation.message.maxchecked")};X("aui/form-validation/basic-validators");const fo="aui-validation-",go="data-aui-notification-",mo="aui-validation-state",vo="invalid",bo="valid",yo="validating",wo="unvalidated",_o="_aui-form-validation-initialised",xo="_aui-internal-field-state-changed";function ko(t){(function(t){return t.hasClass(_o)})(t)||(!function(t){t.addClass(_o),Ya(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",(function(){clearTimeout(e),e=setTimeout(i,1500)}))})(t),function(t){var e=Eo(t,"when"),i=Eo(t,"watchfield"),n=i?t.add("#"+i):t;n.on(e,(function(){Co(t)}))}(t)}(t),Do(t,wo))}function Co(t){if(!Eo(t,"novalidate"))return function(t){!function(t){So(No(t),"none")}(t);var e=function(t){var e=[];return To().forEach((function(i,n){var r=i.validatorTrigger;t.is(r)&&e.push(n)})),e}(t);Do(t,yo);var i=function(t,e){var i=[];return e.forEach((function(e){var n=To()[e].validatorFunction,r=new s.Deferred,a=function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Do(t,vo,i),e.reject()},args:Ao(t),el:t[0],$el:t};return F(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r);n(a),i.push(r)})),i}(t,e),n=s.when.apply(s,i);return n.done((function(){Do(t,bo)})),n}(t);Do(t,bo)}function Eo(t,e){var i=t.attr("data-"+fo+e);return i||(i={when:"change"}[e]),i}function To(){return ro.validators()}function Ao(t){return function(e){return t.attr("data-"+fo+e)||t.attr(e)}}function Do(t,e,i){if(t.attr("data-"+mo,e),e!==wo){t.trigger(s.Event(xo));var n=No(t),r={};r[yo]="wait",r[vo]="error",r[bo]="success";var a=r[e];e===yo?function(t){setTimeout((function(){Io(t)===yo&&(So(t,"wait"),Za(t,!0))}),500)}(t):So(n,a,i)}}function So(t,e,i){const n=function(t){return t.is("["+go+"wait]")}(t);!function(t){Oo(t,"wait"),Za(t,!1),Oo(t,"success")}(t);var r,s;if(!("success"===e&&!n))if("none"===e)Oo(t,"error");else{const n=t.attr(go+e)||"[]",a=i?(r=i,s=n,JSON.parse(s).concat([r])):[];t.attr(go+e,JSON.stringify(a)),"error"===e&&Qa(t,a)}}function Oo(t,e){t.removeAttr(go+e),"error"===e&&Xa(t,e).remove()}function No(t){var e=Eo(t,"displayfield");return void 0===e?t:s("#"+e)}function Io(t){return t.attr("data-"+mo)}function Mo(t,e){e.preventDefault(),t.one(xo,(function(){t.trigger("submit")}))}function Po(t,e){var i="[data-"+mo+"="+e+"]";return t.find(i)}s(document).on("submit",(function(t){var e=t.target,i=s(e),n=function(t){var e=t.find("."+_o);return o=e,i=s.map(o,(function(t){return Io(s(t))})),n=-1!==i.indexOf(vo),r=-1!==i.indexOf(wo),a=-1!==i.indexOf(yo),n?vo:r?wo:a?yo:bo;var i,n,r,a;var o}(i);if(n===wo)Mo(i,t),function(t){var e=Po(t,wo);e.each((function(t,e){Lo.validate(s(e))}))}(i);else if(n===yo)Mo(i,t);else if(n===vo)t.preventDefault(),function(t){var e=Po(t,vo).first();e.focus()}(i);else if(n===bo){var r=s.Event("aui-valid-submit");i.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}}));const Lo={register:ro.register,validate:function(t){Co(t=s(t))}};Z("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),ko(s(t)),Z.init(t)},type:Z.type.ATTRIBUTE}),X("aui/form-validation",Lo),c("formValidation",Lo);var Ro=R((function(t,e){var i,n;return function(){var r=arguments,s=this;return clearTimeout(i),i=setTimeout((function(){n=t.apply(s,r),s=r=null}),e),n}}),"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}),jo=Ro;c("debounce",Ro);var $o=R((function(t,e){var i,n=null;return function(){var r=this,s=arguments;return null===n&&(i=t.apply(r,s)),clearTimeout(n),n=setTimeout((function(){n=r=s=null}),e),i}}),"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});c("debounceImmediate",$o);const Fo=s(window);function Ho(t){var e,i=this;this.element=t,this.$element=s(t),this.index=s("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=s(i.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}Ho.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each((function(){t.primaryButtonsWidth+=s(this).outerWidth(!0)})),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each((function(){var e=s(this).parent(),i=e.outerWidth(!0);t.totalWidth+=i,t.menuItems.push({$element:e,outerWidth:i})})),this.rightMostNavItemIndex=this.menuItems.length-1,Fo.on("resize",this._resizeHandler=jo((function(){t.constructResponsiveDropdown()}),100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",(function(){t.constructResponsiveDropdown()}))),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){Fo.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id="aui-responsive-header-dropdown-".concat(this.index),Z.init(e);var i=document.createElement("aui-section");i.id="aui-responsive-header-dropdown-list-".concat(this.index),Z.init(i),e.appendChild(i);var n,r,a=(n=e,(r=document.createElement("a")).setAttribute("class","aui-dropdown2-trigger"),r.setAttribute("href","#"),r.id=n.id+"-trigger",r.setAttribute("aria-controls",n.id),r.innerHTML=I18n.getText("aui.words.more"),r);return t.appendChild(a),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=s(t).outerWidth(!0),s(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=s("#aui-responsive-header-dropdown-".concat(this.index)),i=this.rightMostNavItemIndex+1,n=this.rightMostNavItemIndex+t,r=i;r<=n;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=s(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=ye.a.wrap(this.$moreMenu[0].querySelector("aui-section")),i=this.rightMostNavItemIndex,n=this.rightMostNavItemIndex-t+1,r=i;r>=n;r--){var a=this.menuItems[r].$element,o=a.children("a");Z.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=s(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter((t=>!t.startsWith("aui-")));l.setAttribute("extra-classes",t.join(" "))}Z.init(l),ye.a.wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new yt("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};var Bo=function(t){let e=t._header;return e instanceof Ho||(e=new Ho(t),e.init(),t._header=e),e};function Uo(){s(".aui-header").each((function(){Bo(this)}))}s(Uo);const Wo={};Wo.setup=R(Uo,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),c("responsiveheader",Wo);var Vo=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?Bo(e):console.log("Could not async. initialise aui-header")}}),zo=i(22),qo=i.n(zo);const Yo=t=>{let{minDate:e,maxDate:i,dateFormat:n,$field:r,onSelect:s,hide:a,onChangeMonthYear:o}=t;return{dateFormat:n,defaultDate:r.val(),maxDate:i||r.attr("max"),minDate:e||r.attr("min"),nextText:">",onSelect:function(t){r.val(t),r.trigger("change"),a(),s&&s.call(this,t)},onChangeMonthYear:o,prevText:"<"}},Ko=(t,e)=>{let i,n,r,a=!1;const o=s("body"),l=e=>{let i=s(e.target),r=i.closest(n).length||i.is(t),o=i.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Q.ESCAPE)return h(),void(a=!1);i.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{i.get(0).open||d()},d=()=>{i.get(0).open=!0},h=()=>{i.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:t=>{let{$field:c}=t;return i=(t=>{let{horizontalAlignment:e,datePickerUUID:i}=t;const n=new qs;n.id=i;const r=s(n);return r.attr("persistent",""),r.attr("data-aui-focus","false"),r.attr("alignment","bottom ".concat(e)),r.addClass("aui-datepicker-dialog"),r})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(c),datePickerUUID:e}),r=c.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=i,s(r).on("aui-hide",(t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup}))),o.append(i),n=i,i},handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(i.refresh,0)},getCalendarNode:()=>i.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},Go=function(t){const e=t.getField(),i=t.getOptions(),n=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=Ko(e,n),f=t=>{s(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i((()=>{r.datepicker("destroy")}));t.show=l,t.hide=c,t.destroyPolyfill=()=>{h(),e.off("propertychange keyup input paste",f),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i((t=>{r.datepicker("setDate",t)})),t.getDate=i((()=>r.datepicker("getDate"))),t.setMin=i((t=>r.datepicker("option","minDate",t))),t.setMax=i((t=>r.datepicker("option","maxDate",t)))}i.languageCode in Jo.prototype.localisations||(i.languageCode="");const y=Jo.prototype.localisations;if(e.attr("aria-controls",n),void 0===r){void 0!==e.attr("step")&&g("WARNING: The date picker polyfill currently does not support the step attribute!");const n=Yo({dateFormat:i.dateFormat,minDate:i.minDate,maxDate:i.maxDate,$field:e,onSelect:i.onSelect,hide:t.hide,onChangeMonthYear:u}),o=s.extend(void 0,n,y);i.firstDay>-1&&(o.firstDay=i.firstDay),r=(t=>{let{config:e,popupContents:i,getCalendarNode:n,hint:r}=t;const a=s(n());let o;return a.datepicker(e),r&&(o=s("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(r),i.append(o)),a})({config:o,popupContents:a({$field:e}),getCalendarNode:d,hint:i.hint}),p(),e.on("propertychange keyup input paste",f),b=new MutationObserver((function(e){e.forEach((function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))}))})),b.observe(e.get(0),{attributes:!0})}e.on("focus click",o),e.attr("placeholder",i.placeholder),e.prop("type","text"),e.val(e.attr("value")),e.trigger("propertychange"),e.attr("data-aui-dp-uuid",n)};function Jo(t,e){let i={};const n=Bi("date-picker"),r=s(t),a={getUUID:()=>n,getField:()=>r,getOptions:()=>i,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!Jo.prototype.browserSupportsDateField,e=!1!==i.overrideBrowserDefault;(t||e)&&Go(a)},reconfigure:t=>{i=s.extend(void 0,Jo.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function Qo(t,e){const i=s.extend({nextText:">",prevText:"<"},e),n=s(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(i);if(i.hint){const t=s("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(i.hint),n.append(t)}return n.reconfigure=t=>{n.datepicker("destroy"),n.datepicker(t)},n.destroy=()=>{n.datepicker("destroy")},n}Jo.prototype.browserSupportsDateField=function(){if(void 0===ge){var t=document.createElement("input");t.setAttribute("type","date"),ge="date"===t.type}return ge}(),Jo.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:s("html").attr("lang")||"en-AU",dateFormat:qo.a.W3C},Jo.prototype.localisations={dayNames:[I18n.getText("ajs.datepicker.localisations.day-names.sunday"),I18n.getText("ajs.datepicker.localisations.day-names.monday"),I18n.getText("ajs.datepicker.localisations.day-names.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names.thursday"),I18n.getText("ajs.datepicker.localisations.day-names.friday"),I18n.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[I18n.getText("ajs.datepicker.localisations.day-names-min.sunday"),I18n.getText("ajs.datepicker.localisations.day-names-min.monday"),I18n.getText("ajs.datepicker.localisations.day-names-min.tuesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.wednesday"),I18n.getText("ajs.datepicker.localisations.day-names-min.thursday"),I18n.getText("ajs.datepicker.localisations.day-names-min.friday"),I18n.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:I18n.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===I18n.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[I18n.getText("ajs.datepicker.localisations.month-names.january"),I18n.getText("ajs.datepicker.localisations.month-names.february"),I18n.getText("ajs.datepicker.localisations.month-names.march"),I18n.getText("ajs.datepicker.localisations.month-names.april"),I18n.getText("ajs.datepicker.localisations.month-names.may"),I18n.getText("ajs.datepicker.localisations.month-names.june"),I18n.getText("ajs.datepicker.localisations.month-names.july"),I18n.getText("ajs.datepicker.localisations.month-names.august"),I18n.getText("ajs.datepicker.localisations.month-names.september"),I18n.getText("ajs.datepicker.localisations.month-names.october"),I18n.getText("ajs.datepicker.localisations.month-names.november"),I18n.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===I18n.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:I18n.getText("ajs.datepicker.localisations.year-suffix")};const Xo="aui-datepicker",Zo=t=>function(e){let i=this.data(Xo);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(Xo,i)),i};s.fn.datePicker=Zo(Jo),c("DatePicker",Jo),s.fn.calendarWidget=Zo(Qo),c("CalendarWidget",Qo);var tl=Jo,el=(i(30),i(9),i(10),i(31),i(35),{NO_VALUE:"aui-restfultable-editable-no-value",NO_ENTRIES:"aui-restfultable-no-entires",RESTFUL_TABLE:"aui-restfultable",ROW:"aui-restfultable-row",READ_ONLY:"aui-restfultable-readonly",ACTIVE:"aui-restfultable-active",ALLOW_HOVER:"aui-restfultable-allowhover",FOCUSED:"aui-restfultable-focused",MOVEABLE:"aui-restfultable-movable",DISABLED:"aui-restfultable-disabled",SUBMIT:"aui-restfultable-submit",CANCEL:"aui-restfultable-cancel",EDIT_ROW:"aui-restfultable-editrow",CREATE:"aui-restfultable-create",DRAG_HANDLE:"aui-restfultable-draghandle",ORDER:"aui-restfultable-order",EDITABLE:"aui-restfultable-editable",ERROR:"error",DELETE:"aui-restfultable-delete",STATUS:"aui-restfultable-status"}),il=Or.a.View,nl=Or.a.View,rl=Or.a.View,sl={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"},al=(i(36),{REORDER_SUCCESS:"RestfulTable.reorderSuccess",ROW_ADDED:"RestfulTable.rowAdded",ROW_REMOVED:"RestfulTable.rowRemoved",EDIT_ROW:"RestfulTable.switchedToEditMode",SERVER_ERROR:"RestfulTable.serverError",CREATED:"created",UPDATED:"updated",FOCUS:"focus",BLUR:"blur",SUBMIT:"submit",SAVE:"save",MODAL:"modal",MODELESS:"modeless",CANCEL:"cancel",CONTENT_REFRESHED:"contentRefreshed",RENDER:"render",FINISHED_EDITING:"finishedEditing",VALIDATION_ERROR:"validationError",SUBMIT_STARTED:"submitStarted",SUBMIT_FINISHED:"submitFinished",INITIALIZED:"initialized",ROW_INITIALIZED:"rowInitialized",ROW_EDIT:"editRow"});const ol='<aui-spinner size="small"></aui-spinner>',ll="aui-spinner";function cl(t){0===t.find(ll).length&&t.find(".".concat(el.STATUS)).append(ol)}function ul(t){t.find(".".concat(el.STATUS," ").concat(ll)).remove()}var dl=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),hl=Or.a.View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=s(this.el),this._event=al,this.classNames=el,this.dataKeys=sl,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,(()=>{this.isCreateRow||(this.disabled=!0)})).on(this._event.SAVE,(t=>!this.disabled&&this.submit(t))).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()})).on(this._event.SUBMIT_STARTED,(()=>this._submitStarted())).on(this._event.SUBMIT_FINISHED,(()=>this._submitFinished()))},defaultColumnRenderer:function(t){return!1!==t.allowEdit?s("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return dl&&(e=this.$el.find(":submit")).length&&(t=s("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").attr("disabled","disabled"),this},enable:function(){var t,e;return dl&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").removeAttr("disabled"),this},showLoading:function(){return cl(this.$el),this},hideLoading:function(){return ul(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,i=this;if(document.activeElement!==window&&s(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,t):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(t,e,n){400===n.status&&(i.renderErrors(e.errors),i.trigger(i._event.VALIDATION_ERROR,e.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return s("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&s.each(t,(function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))})),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&s('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),s.each(this.columns,(function(i,n){var r,a,o=t.values[n.id],l=[{name:n.id,ariaLabel:n.inputAriaLabel?n.inputAriaLabel:n.header,value:o,allowEdit:n.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+n.id,o),r=e.isCreateRow&&n.createView?new n.createView({model:e.model}).render(l[0]):n.editView?new n.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=s("<td />"),"object"==typeof r&&r.done?r.done((function(t){a.append(t)})):a.append(r),n.styleClass&&a.addClass(n.styleClass),a.appendTo(e.$el)})),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=s('<td class="aui-restfultable-operations" />');return t?e.append(s('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(s('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):e.append(s('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(s('<td class="'.concat(this.classNames.STATUS,'" />')))}});const pl=document||{},fl=s(pl);function gl(t,e){fl.trigger(t,e)}function ml(t,e,i){s(e).trigger(t,i),gl(t,i),e.id&&gl(e.id+"-"+t,i)}var vl=Or.a.Model.extend({sync:function(t,e,i){var n=this,r=i.error;return i.error=function(t){n._serverErrorHandler(t,this),r&&r.apply(this,arguments)},Or.a.sync.apply(Or.a,arguments)},save:function(t,e){var i,n=this,r=(e=e||{}).error,a=e.success;e.error=function(t,e){var i=s.parseJSON(e.responseText||e.data);r&&r.call(n,n,i,e)},this.isNew()?Or.a.Model.prototype.save.call(this,t,e):t&&((i=new(vl.extend({url:this.url()}))({id:this.id})).save=Or.a.Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),a&&a.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,i=this.url();return s.ajax({url:i,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},i=this.toJSON();if(s.each(t,(function(t,n){i[t]?i[t]&&i[t]!==n&&("object"==typeof n&&Object(Qt.isEqual)(n,i[t])||(e[t]=n)):"string"==typeof n?""!==s.trim(n)&&(e[t]=n):s.isArray(n)?0!==n.length&&(e[t]=n):e[t]=n})),!Object(Qt.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var i;400!==t.status&&(i=s.parseJSON(t.responseText||t.data),ml(al.SERVER_ERROR,this,[i,t,e]))},fetch:function(t){t=t||{},this.clear(),Or.a.Model.prototype.fetch.call(this,t)}}),bl=vl,yl=Or.a.View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=al,this.classNames=el,this.dataKeys=sl,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=s(this.el),this.on(this._event.CANCEL,(()=>this.disabled=!0)).on(this._event.FOCUS,(t=>this.focus(t))).on(this._event.BLUR,(()=>this.unfocus())).on(this._event.MODAL,(()=>this.$el.addClass(this.classNames.ACTIVE))).on(this._event.MODELESS,(()=>this.$el.removeClass(this.classNames.ACTIVE)))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return s(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return s(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return cl(this.$el),this},hideLoading:function(){return ul(this.$el),this},edit:function(t){var e;return e=s(t.target).is("."+this.classNames.EDITABLE)?s(t.target).attr("data-field-name"):s(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return s("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",(function(e){e.preventDefault(),t.destroy()}))},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then((()=>this.model.destroy()),(()=>{}))}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),i=s("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),n=s('<td class="'.concat(this.classNames.STATUS,'" />'));return this.$el.removeClass(this.classNames.DISABLED+" "+this.classNames.FOCUSED+" "+this.classNames.EDIT_ROW).addClass(this.classNames.READ_ONLY).empty(),this.allowReorder&&s('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),this.$el.attr("data-id",this.model.id),s.each(this.columns,(function(i,n){var r,a=s("<td />"),o=e[n.id],l=n.fieldName||n.id,c=[{name:l,value:o,allowEdit:n.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+n.id,o),r=n.readView?new n.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==n.allowEdit){var u=s("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=s("<td />").append(u).appendTo(t.$el),r&&s.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(s("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);n.styleClass&&a.addClass(n.styleClass),a.appendTo(t.$el)})),this.$el.append(i).append(n).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}}),wl=Or.a.View.extend({initialize:function(t){var e=this;if(e.options=s.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=al,e.classNames=el,e.dataKeys=sl,this.$table=s(t.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=s("<thead/>"),this.$theadRow=s("<tr />").appendTo(this.$thead),this.$tbody=s("<tbody/>"),!this.$table.length)throw new Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw new Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw new Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach((function(t){var i=s.isFunction(t.header)?t.header():t.header;void 0===i&&(m("You have not specified [header] for column ["+t.id+"]. Using id for now..."),i=t.id),e.$theadRow.append("<th>"+i+"</th>")})),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit((function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()})),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,i){var n=s("<div/>").attr("class",i.attr("class")).addClass(e.classNames.MOVEABLE);return i.children().each((function(){var t=s(this),e=parseInt(0+t.css("border-left-width"),10),i=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+i;n.append(s("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))})),n=s("<div class='aui-restfultable-readonly'/>").append(n),n.css({left:i.offset().left}),n.appendTo(document.body),n},start:function(t,i){var n=i.helper[0].clientHeight,r=i.placeholder.find("td");i.item.addClass(e.classNames.MOVEABLE).children().each((function(t){s(this).width(r.eq(t).width())}));var a='<td colspan="'+e.getColumnCount()+'"> </td>';i.placeholder.html(a).css({height:n,visibility:"visible"}),e.getRowFromElement(i.item[0]).trigger(e._event.MODAL)},stop:function(t,i){s(i.item[0]).is(":visible")&&(i.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(i.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",(function(t){return!s(t.target).is("."+e.classNames.DRAG_HANDLE)}))),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,(function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)})),this._createRow.on(this._event.VALIDATION_ERROR,(function(){this.trigger(e._event.FOCUS)})),this._createRow.render({errors:{},values:{}}),this.$create=s('<tbody class="'+this.classNames.CREATE+'" />').append(this._createRow.el),this._applyFocusCoordinator(this._createRow),this.options.autoFocus&&this._createRow.trigger(this._event.FOCUS)),this._models.on("remove",(function(t){e.getRows().forEach((function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))}))})),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;s.isFunction(this.options.resources.all)?this.options.resources.all((function(e){t.populate(e)})):s.get(this.options.resources.all,(function(e){t.populate(e)}))},move:function(t){var e=this,i=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var n=e.options.reverseOrder?i(t.nextItem):i(t.prevItem);s.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(n),complete:function(){t.row.hideLoading()},success:function(t){ml(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=s.parseJSON(t.responseText||t.data);ml(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this,e=this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(){this.tableRows=t.getRows();for(var e=arguments.length,i=new Array(e),n=0;n<e;n++)i[n]=arguments[n];return Or.a.Collection.prototype.remove.apply(this,i),this.tableRows=void 0,this}});return new e([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some((function(t,n){if(t.model.id===e.id)return i=n,!0})),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),ml(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=s('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+ol+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),ml(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),ml(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return s(t).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=s("<tr>").addClass(this.classNames.NO_ENTRIES).append(s("<td>").attr("colspan",this.getColumnCount()).text(this.options.noEntriesMsg)).appendTo(this.$tbody),this},removeNoEntriesMsg:function(){return this.$noEntries&&this._models.length>0&&this.$noEntries.remove(),this},getRows:function(){var t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each((function(){var i=s(this).data(t.dataKeys.ROW_VIEW);i&&e.push(i)})),e},_renderRow:function(t,e){var i,n,r=this,s=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,(function(t){ml(this._event.EDIT_ROW,{},[this,r]),r.edit(this,t)})),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==s.length?i.insertBefore(s[e]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,(function(){r.$table.removeClass(r.classNames.ALLOW_HOVER),r.$tbody.sortable("disable"),r.getRows().forEach((function(t){r.isRowBeingEdited(t)||t.delegateEvents({})}))})),n.on(this._event.MODELESS,(function(){r.$table.addClass(r.classNames.ALLOW_HOVER),r.$tbody.sortable("enable"),r.getRows().forEach((function(t){r.isRowBeingEdited(t)||t.delegateEvents()}))})),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some((function(i){if(i.el===t.el)return e=!0,!0})),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,(function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof yl&&e._createRow&&e._createRow.enable()}))),this},_removeEditRow:function(t){var e=s.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach((function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)}),this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),r=t.model.toJSON();return r.update=!0,n.render({errors:{},update:!0,values:r}).on(i._event.UPDATED,(function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()})).on(i._event.VALIDATION_ERROR,(function(){this.trigger(i._event.FOCUS)})).on(i._event.FINISHED_EDITING,(function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()})).on(i._event.CANCEL,(function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()})).on(i._event.BLUR,(function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)})),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map((t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e}));return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||bl,allowEdit:!0,views:{editRow:hl,row:yl},Collection:Or.a.Collection.extend({url:t.resources.self,model:t.model||bl}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});wl.ClassNames=el,wl.CustomCreateView=il,wl.CustomEditView=nl,wl.CustomReadView=rl,wl.DataKeys=sl,wl.EditRow=hl,wl.EntryModel=bl,wl.Events=al,wl.Row=yl,c("RestfulTable",wl);var _l=wl;function xl(t){return s(t).clone().removeAttr("id")}c("clone",xl);var kl=xl,Cl=window.DocumentTouch,El="ontouchstart"in window||Cl&&document instanceof Cl,Tl=function(t){return"value"in t||t.isContentEditable};function Al(t,e,i,n){t.find("[".concat(n,"]")).attr(n,((t,n)=>e===n?i:void 0))}function Dl(t,e){let i=s("<div></div>");i.append(t),i.find("[id]").each(((t,n)=>{const r=e("".concat(n.id,"-"));!function(t,e,i){Al(t,e,i,"aria-controls"),Al(t,e,i,"aria-owns")}(i,n.id,r),n.id=r}))}function Sl(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ol(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?Sl(Object(i),!0).forEach((function(e){Nl(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Sl(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Nl(t,e,i){var n;return(e="symbol"==typeof(n=function(t,e){if("object"!=typeof t||!t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!=typeof n)return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(e,"string"))?n:String(n))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Il(t){return t.offset().top}function Ml(t){var e;(this.$el=s(t),this.$el.length)&&(this.$body=s("body"),this.$wrapper=this.$el.children(".aui-sidebar-wrapper"),this.$body.addClass("aui-page-sidebar"),this._previousScrollTop=null,this._previousViewportHeight=null,this._previousViewportWidth=null,this._previousOffsetTop=null,this.submenus=new jl,function(t){if(!s(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,(function(e){const i=s(e.target);Ul(t,i)}))})(t),El&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText="@media ".concat(t," { #testMedia { width: 1px; } }"),document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&s("body").addClass("aui-page-sidebar-touch");var e=null,i=function(){null===e&&(e=requestAnimationFrame((function(){t.reflow(),e=null})))};s(window).on("scroll resize",i),i(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",(function(){t.$el.trigger(s.Event(Pl+(t.isCollapsed()?"collapse-end":"expand-end")))}));t.$el.on("click",".aui-sidebar-toggle",(function(e){e.preventDefault(),t.toggle()})),s(".aui-page-panel").on("click",(function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()}));var n=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Q.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||Tl(t.target))}function o(t){return t.keyCode===Q.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout((function(){t.removeAttr("persistent")}),100)}s(document).on("keypress",n),t._remove=function(){s(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),s(document).off("keypress",n),s(window).off("scroll resize",i)},t.$el.on("touchend",(function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())})),t.$el.tooltip(Ol(Ol({},Vl),{},{live:t.collapsedTriggersSelector,suppress:function(){const e=s(this),i=!1===t.isCollapsed();return!0===Hl(e)||i}})),t.$el.tooltip(Ol(Ol({},Vl),{},{aria:!1,live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}})),t.$el.on("keydown",t.collapsedTriggersSelector,(function(e){if(t.isCollapsed()){var i=e.target,n=Fl(i);if(!n)return;var a=s(n);r(e)&&n.open&&(e.preventDefault(),u(a),a.on("keydown",(function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(i.focus(),s(this).off("keydown"),Bl())})))}}))}(this),s((e=this).collapsedTriggersSelector).each((function(){var t=s(this);Ul(e,t)})))}var Pl="_aui-internal-sidebar-";function Ll(t){return s.map(t.split(" "),(function(t){return Pl+t})).join(" ")}function Rl(){return document.querySelectorAll(Ml.prototype.inlineDialogSelector)}function jl(){this.inlineDialog=null}function $l(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function Fl(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function Hl(t){return 0!==$l(t).length}function Bl(){var t=Rl();Array.prototype.forEach.call(t,(function(t){t.open=!1}))}function Ul(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),Hl(e))){var i=document.createElement("aui-inline-dialog"),n=Bi("sidebar-submenu");return e.attr("aria-controls",n),e.attr("data-aui-trigger",""),Z.init(e),i.setAttribute("id",n),i.setAttribute("alignment","right top"),i.setAttribute("hidden",""),i.setAttribute("contained-by","viewport"),t.isCollapsed()&&i.setAttribute("responds-to","hover"),s(i).addClass(Ml.prototype.inlineDialogClass),document.body.appendChild(i),Z.init(i),function(t,e,i){i.addEventListener("aui-layer-show",(function(n){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(n)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(n)){var r=s.Event("aui-sidebar-submenu-before-show");e.trigger(r,i),r.isDefaultPrevented()?n.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=Wl;var i=t.is("a")?t.text():t.children(".aui-nav-heading").text(),n=s(e).find(".aui-navgroup-inner");n.children(".aui-nav-heading").attr("title",i).children("strong").text(i);var r=$l(t);function a(t){const e=kl(t);return Dl(e,Bi),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}a(r).appendTo(n)}(e,i)}}else n.preventDefault()})),i.addEventListener("aui-layer-hide",(function(){!function(t){t.removeClass("active")}(e)}))}(t,e,i),i}}Ml.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Ll(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Ml.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Ll(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Ml.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Ml.prototype.setTopPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset;return this.$wrapper.toggleClass("aui-is-docked",t>Il(this.$el)),this},Ml.prototype.setPosition=R(Ml.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Ml.prototype.setLeftPosition=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageXOffset;return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Ml.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:s.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:s.noop,wide:s.noop},e.expanded.narrow={narrow:s.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:s.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[i][n][r](this),this},Ml.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=s.Event(Pl+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),s(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(s.Event(Pl+"collapse-end",{isResponsive:t}))),this},Ml.prototype.collapse=function(){return this._collapse(!1)},Ml.prototype._expand=function(t,e){var i=s.Event(Pl+"expand-start",{isResponsive:e});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(t);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),s(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(s.Event(Pl+"expand-end",{isResponsive:e})),this},Ml.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Ml.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Ml.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Ml.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Ml.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Ml.prototype.reflow=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window.pageYOffset,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.documentElement.clientHeight,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:window.innerWidth,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:document.documentElement.scrollHeight,r=arguments.length>4&&void 0!==arguments[4]?arguments[4]:window.pageXOffset;var s=Il(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||s!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,s),this.setTopPosition(t))}if(r!==this._previousScrollLeft&&this.setLeftPosition(r),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=s,this._previousScrollLeft=r,this},Ml.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",I18n.getText("aui.sidebar.expand.tooltip"))),this},Ml.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Ml.prototype.collapsedTriggersSelector=[Ml.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Ml.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Ml.prototype.tooltipClassName="aui-sidebar-section-tooltip",Ml.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Ml.prototype.inlineDialogSelector="."+Ml.prototype.inlineDialogClass,jl.prototype.submenu=function(t){return ql(),$l(t)},jl.prototype.hasSubmenu=function(t){return ql(),Hl(t)},jl.prototype.submenuHeadingHeight=function(){return ql(),34},jl.prototype.isShowing=function(){return ql(),Ml.prototype.isSubmenuVisible()},jl.prototype.show=function(t,e){ql(),function(t){Fl(t).open=!0}(e)},jl.prototype.hide=function(){ql(),Bl()},jl.prototype.inlineDialogShowHandler=function(){ql()},jl.prototype.inlineDialogHideHandler=function(){ql()},jl.prototype.moveSubmenuToInlineDialog=function(){ql()},jl.prototype.restoreSubmenu=function(){ql()},Ml.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Rl(),(function(t){return t.open}))},Ml.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Wl='<div class="aui-inline-dialog-contents"><div class="aui-sidebar-submenu" ><div class="aui-navgroup aui-navgroup-vertical"><div class="aui-navgroup-inner"><div class="aui-nav-heading"><strong></strong></div></div></div></div></div>';var Vl={gravity:"w",title:function(){var t=s(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var zl=vt("sidebar",Ml);s((function(){zl(".aui-sidebar")}));var ql=P("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});c("sidebar",zl);var Yl=zl;i(37),i(38);const Kl=2600;function Gl(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Q.ESCAPE&&i.is(":visible")&&l.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=s.extend({},t,arguments[3])),t=s.extend({},e,t);var i=s("<div></div>").addClass("aui-popup");t.id&&i.attr("id",t.id);var n=Kl;s(".aui-dialog").each((function(){var t=s(this);n=t.css("z-index")>n?t.css("z-index"):n}));var r=function e(r,s){return t.width=r=r||t.width,t.height=s=s||t.height,i.css({marginTop:-Math.round(s/2)+"px",marginLeft:-Math.round(r/2)+"px",width:r,height:s,"z-index":parseInt(n,10)+2}),e}(t.width,t.height);s("body").append(i),i.hide(),p(i);var a=s(".aui-blanket"),o=function(t,e){var i=s(t,e);return!!i.length&&(i.focus(),!0)},l={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){s(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),Y(),0!==(a=s(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",(function(){i.is(":visible")&&l.hide()})),i.show(),Gl.current=this,function(e){if(0===s(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var i=":input:visible:enabled:first";o(i,s(".dialog-page-body",e))||o(i,s(".dialog-button-panel",e))||o(i,s(".dialog-page-menu",e))}}(i),s(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){s(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===s(".aui-dialog:visible").length&&K();var e=document.activeElement;this.element.has(e).length&&e.blur(),s(document).trigger("hideLayer",["popup",this]),Gl.current=null,this.enable()},element:i,remove:function(){i.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=s("<div class='dialog-blanket'> </div>").css({height:i.height(),width:i.width()}),i.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return l}var Jl=function(){function t(t,e,i,n){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=s("<button></button>").html(e).addClass("button-panel-button"),n&&this.item.addClass(n),"function"==typeof i&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,i,n,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=i,this._onclick=function(e){return!0===i.call(this,t.dialog,t,e)},this.item=s("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),n&&this.item.addClass(n),"function"==typeof i&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function i(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var r=0,s=n.length;r<s;r++)"panel"==e&&this.page.curtab==n[r].id&&(this.page.curtab=r),n[r].id=r}return this}}function n(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=i("left","button"),t.prototype.moveDown=t.prototype.moveRight=i("right","button"),t.prototype.remove=n("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,i,n,r){i instanceof s||(i=s(i)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=s("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),this.item=s("<li></li>").append(this.button).addClass("page-menu-item"),this.body=s("<div></div>").append(i).addClass("dialog-panel-body").css("height",t.dialog.height+"px"),this.padding=20,n&&this.body.addClass(n);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(g("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=i("left","panel"),r.prototype.moveDown=r.prototype.moveRight=i("right","panel"),r.prototype.remove=n("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=s("<div></div>").addClass("dialog-components"),this.body=s("<div></div>").addClass("dialog-page-body"),this.menu=s("<ul></ul>").addClass("dialog-page-menu").css("height",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,i){var n={};+t||(t=(n=Object(t)).width,e=n.height,i=n.id),this.height=e||480,this.width=t||640,this.id=i,n=s.extend({},n,{width:this.width,height:this.height,id:this.id}),this.popup=Gl(n),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=s("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=s("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,r){return new e(this,t,i,n,r),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),T("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),T("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),T("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',r="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",s=new RegExp("(?:^|,)\\s*"+r+"(?:\\s+"+r+")?\\s*(?=,|$)","ig");(t+"").replace(s,(function(t,n,r,s,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[s]?(d.push(i.page[s]),n=(n=o)&&n.toLowerCase(),r=l,s=c,a=u):d=i.page,r=r&&(r+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(r||!r&&null==s))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==r||"panel"==n&&!r&&null==s)&&e.push(d[h].panel[p]);if(a||"button"==n&&(r||!r&&null==s))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==r||"button"==n&&!r&&null==s)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][s]&&e.push(d[h][n][s]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)}));for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=s(window).height()-62-52-100,i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,this.getPanel(i).body.outerHeight())),i!==this.page[this.curpage].curtab&&this.getPanel(i).body.css({display:"none"});for(i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=s(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();Jl=j(Jl,"Dialog constructor",{alternativeName:"Dialog2"}),Gl=j(Gl,"Dialog popup constructor",{alternatveName:"Dialog2"}),c("Dialog",Jl),c("popup",Gl);const Ql=!1;var Xl=-1!==navigator.platform.indexOf("Mac"),Zl=-1!==navigator.userAgent.indexOf("Safari"),tc=/^(backspace|tab|r(ight|eturn)|s(hift|pace|croll)|c(trl|apslock)|alt|pa(use|ge(up|down))|e(sc|nd)|home|left|up|d(el|own)|insert|f\d\d?|numlock|meta)/i;const ec=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function ic(t){var e=[],i=s.Callbacks();function n(t){!Gl.current&&i&&i.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?s.trim(t).split(" "):[t]).forEach((function(t){!function(t){var i=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),r=t.match(tc);n?(i+=n[0],t=t.substring(n[0].length)):r?(e.push(i+r[0]),t=t.substring(r[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(i)?"keydown":"keypress";e.push(i),s(document).on(a,Ql,i,n),s(document).on(a+" keyup",Ql,i,r)}(t)}))}function o(t,e,i,n){var r="(",s=")";return n&&n.workaroundJaws&&(r="",s=""),i?e+=" "+r+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=" "+I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach((function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)})),e+=s}return a(t),ic.makeShortcut({executor:i,bindKeys:a,addShortcutsToTitle:function(t){for(var i=s(t),n=i.attr("title")||"",r=e.slice(),a=i.data("boundKeyCombos")||[],l=i.data("kbShortcutAppended")||"",c=i.data("kbShortcutAppendedScreenReader")||"",u=i.attr("aria-label"),d=!l,h=!c,p=d?n:n.substring(0,n.length-l.length),f=h?n:u.substring(0,u.length-c.length);r.length;){var g=r.shift();a.some((function(t){return Object(Qt.isEqual)(g,t)}))||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Xl&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),i.attr("title",p+l),i.attr("aria-label",f+c),i.data("kbShortcutAppended",l),i.data("kbShortcutAppendedScreenReader",c),i.data("boundKeyCombos",a.concat(e))},removeShortcutsFromTitle:function(t){var e=s(t),i=e.data("kbShortcutAppended");if(i){var n=e.attr("title");e.attr("title",n.replace(i,"")),e.attr("aria-label",n.replace(i,"")),e.removeData("kbShortcutAppended"),e.removeData("kbShortcutAppendedScreenReader"),e.removeData("boundKeyCombos")}},keypressHandler:n,defaultPreventionHandler:r})}ic.makeShortcut=function(t){var e=t.executor,i=t.bindKeys,n=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(i,n){var r=(n=n||{}).focusedClass||"focused",a=!n.hasOwnProperty("wrapAround")||n.wrapAround,o=!n.hasOwnProperty("escToCancel")||n.escToCancel;return e.add((function(){const e=s(i);let n=e.filter("."+r);const l=0===n.length?void 0:{transition:!0};o&&s(document).one("keydown",(function(t){t.keyCode===Q.ESCAPE&&n&&n.removeClass(r)})),n.length&&n.removeClass(r),n=t(n,e,a),n&&n.length>0&&(n.addClass(r),n.moveTo(l),n.is("a")?n.focus():n.find("a:first").focus())})),this}}return{moveToNextItem:c((function(t,e,i){var n;return i&&0===t.length?e.eq(0):(n=s.inArray(t.get(0),e))<e.length-1?(n+=1,e.eq(n)):i?e.eq(0):t})),moveToPrevItem:c((function(t,e,i){var n;return i&&0===t.length?e.filter(":last"):(n=s.inArray(t.get(0),e))>0?(n-=1,e.eq(n)):i?e.filter(":last"):t})),click:function(t){return l.push(t),n(t),e.add((function(){const e=s(t);ec(e)})),this},goTo:function(t){return e.add((function(){window.location.href=t})),this},followLink:function(t){return l.push(t),n(t),e.add((function(){var e=s(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)})),this},execute:function(t){var i=this;return e.add((function(){t.apply(i,arguments)})),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),n(t),e.add((function(){const e=s(t);e.length>0&&(ec(e),e.moveTo())})),this},moveToAndFocus:function(t){return l.push(t),n(t),e.add((function(e){var i=s(t);i.length>0&&(i.focus(),i.moveTo&&i.moveTo(),i.is(":input")&&e.preventDefault())})),this},or:function(t){return i(t),this},unbind:function(){s(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},ic.fromJSON=function(t,e){var i=[];return t&&s.each(t,(function(t,n){const r=n.op,a=n.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){v("When using a parameter array, array must be in strict JSON format: "+a)}s.isArray(o)||v("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];s.each(n.keys,(function(){var t=this;e&&Xl&&(t=s.map(t,(function(t){return t.replace(/ctrl/i,"meta")})));var n=ic(t);n[r].apply(n,o),i.push(n)}))})),i},s(document).on("iframeAppended",(function(t,e){s(e).load((function(){s(e).contents().on("keyup keydown keypress",(function(t){Zl&&"keypress"===t.type||s(t.target).is(":input")||s.event.trigger(t,arguments,document,!0)}))}))})),c("whenIType",ic);var nc=ic;const{FocusManager:rc,InlineDialog2:sc,LayerManager:ac,ProgressiveDataSet:oc,clone:lc,debounce:cc,debounceImmediate:uc,dim:dc,escapeHtml:hc,formValidation:pc,id:fc,isClipped:gc,keyCode:mc,layer:vc,messages:bc,populateParameters:yc,params:wc,responsiveheader:_c,select:xc,tablessortable:kc,tabs:Cc,undim:Ec,_addID:Tc}=window.AJS,{contextPath:Ac}=window.AJS}])}));
|
|
104
107
|
//# sourceMappingURL=aui-prototyping.js.map
|