@atlassian/aui 9.12.17 → 9.12.19

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.
@@ -1,6 +1,6 @@
1
1
  /*!!
2
2
  * @atlassian/aui - Atlassian User Interface library
3
- * @version v9.12.17
3
+ * @version v9.12.19
4
4
  * @link https://aui.atlassian.com
5
5
  * @license Apache-2.0
6
6
  * @author Atlassian Pty Ltd.
@@ -47,7 +47,7 @@
47
47
  * Copyright OpenJS Foundation and other contributors
48
48
  * Released under the MIT license.
49
49
  * https://jquery.org/license
50
- */!function(){"use strict";s=[i(687),i(309),i(891)],n=function(e){var t;function i(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.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},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=s(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,a)}function a(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}return e.extend(e.ui,{datepicker:{version:"1.13.3"}}),e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),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),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),a?i.trigger.html(e("<img>").attr({src:a,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,a){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),r(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.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]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,s=e(i),a=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||s.removeClass(this.markerClassName).empty(),t===a&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,a,o,l,c=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),r(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(i=e.datepicker._get(a,"onSelect"))?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var n,s,a,o,l,c,u;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(a=(s=e.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(r(n.settings,a),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each(function(){return!(o|="fixed"===e(this).css("position"))}),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),l=e.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=e.datepicker._get(n,"showAnim"),u=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[c]?n.dpDiv.show(c,e.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),r=s[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=e.datepicker._get(i,"onUpdateDatepicker");l.length>0&&a.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.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(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i,n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=parseInt(e("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(n=this._get(a,"onSelect"))?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,a,r,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(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},_=function(e){var t=w(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),a=i.substring(l).match(s);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(t,n,s){var a=-1,r=e.map(w(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=t[0],l+=n.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(y)"'"!==t.charAt(s)||w("'")?C():y=!1;else switch(t.charAt(s)){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("'")?C():y=!0;break;default:C()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;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<=(a=this._getDaysInMonth(g,m-1)))break;m++,v-=a}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(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},d="",h=!1;if(t)for(n=0;n<e.length;n++)if(h)"'"!==e.charAt(n)||l("'")?d+=e.charAt(n):h=!1;else switch(e.charAt(n)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),s,a);break;case"o":d+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),r,o);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=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":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(i)}return new Date(s,a,r)},r=null==i||""===i?n:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,n,s,a,r,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,x,C,T,k,E,A,D,S,I,M,N,O,L,P,R,$,j,z,F,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),U=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),q=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),Q=this._get(t,"stepMonths"),G=1!==q[0]||1!==q[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),X=this._getMinMaxDate(t,"max"),ee=t.drawMonth-K,te=t.drawYear;if(ee<0&&(ee+=12,te--),X)for(i=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-q[0]*q[1]+1,X.getDate())),i=J&&i<J?J:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-Q,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML,a=this._get(t,"nextText"),a=Y?this.formatDate(a,this._daylightSavingAdjust(new Date(te,ee+Q,1)),this._getFormatConfig(t)):a,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(a))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(a))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Z:B,o=Y?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<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(t,"closeText"))[0].outerHTML),u="",W&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(U?c:"").append(this._isInRange(t,l)?e("<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(U?"":c)[0].outerHTML),d=parseInt(this._get(t,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),b=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),w=this._getDefaultDate(t),_="",C=0;C<q[0];C++){for(T="",this.maxRows=4,k=0;k<q[1];k++){if(E=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),A=" ui-corner-all",D="",G){if(D+="<div class='ui-datepicker-group",q[1]>1)switch(k){case 0:D+=" ui-datepicker-group-first",A=" ui-corner-"+(U?"right":"left");break;case q[1]-1:D+=" ui-datepicker-group-last",A=" ui-corner-"+(U?"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===C?U?r:s:"")+(/all|right/.test(A)&&0===C?U?s:r:"")+this._generateMonthYearHeader(t,ee,te,J,X,C>0||k>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)S+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[I=(x+d)%7]+"'>"+f[I]+"</span></th>";for(D+=S+"</tr></thead><tbody>",M=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,M)),N=(this._getFirstDayOfMonth(te,ee)-d+7)%7,O=Math.ceil((N+M)/7),L=G&&this.maxRows>O?this.maxRows:O,this.maxRows=L,P=this._daylightSavingAdjust(new Date(te,ee,1-N)),R=0;R<L;R++){for(D+="<tr>",$=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(P)+"</td>":"",x=0;x<7;x++)j=v?v.apply(t.input?t.input[0]:null,[P]):[!0,""],F=(z=P.getMonth()!==ee)&&!y||!j[0]||J&&P<J||X&&P>X,$+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(P.getTime()===E.getTime()&&ee===t.selectedMonth&&t._keyEvent||w.getTime()===P.getTime()&&w.getTime()===E.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!b?"":" "+j[1]+(P.getTime()===Z.getTime()?" "+this._currentClass:"")+(P.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(z&&!b||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(z&&!b?"&#xa0;":F?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===B.getTime()?" ui-state-highlight":"")+(P.getTime()===Z.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#' aria-current='"+(P.getTime()===Z.getTime()?"true":"false")+"' data-date='"+P.getDate()+"'>"+P.getDate()+"</a>")+"</td>",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);D+=$+"</tr>"}++ee>11&&(ee=0,te++),T+=D+="</tbody></table>"+(G?"</div>"+(q[0]>0&&k===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=T}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,c,u,d,h,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),w=this._get(e,"selectYearLabel"),_="<div class='ui-datepicker-title'>",x="";if(a||!m)x+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.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<=s.getMonth())&&(x+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");x+="</select>"}if(b||(_+=x+(!a&&m&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),b&&(_+=(!a&&m&&v?"":"&#xa0;")+x),_+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.3",e.datepicker},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)}()},132:(e,t,i)=>{var n,s,a;
50
+ */!function(){"use strict";s=[i(687),i(309),i(891)],n=function(e){var t;function i(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&(i=parseInt(e.css("zIndex"),10),!isNaN(i)&&0!==i))return i;e=e.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},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=s(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,a)}function a(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}return e.extend(e.ui,{datepicker:{version:"1.13.3"}}),e.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,a;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(a=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,a):s&&this._inlineDatepicker(t,a)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),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),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,a,r=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),r&&(i.append=e("<span>").addClass(this._appendClass).text(r),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||t.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),a=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:a,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),a?i.trigger.html(e("<img>").attr({src:a,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]?(e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])):e.datepicker._showDatepicker(t[0]),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,a=new Date(2009,11,20),r=this._get(e,"dateFormat");r.match(/[DM]/)&&(t=function(e){for(i=0,n=0,s=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},a.setMonth(t(this._get(e,r.match(/MM/)?"monthNames":"monthNamesShort"))),a.setDate(t(this._get(e,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-a.getDay())),e.input.attr("size",this._formatDate(e,a).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,a){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",h)),r(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.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]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,s=e(i),a=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(a.append.remove(),a.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||s.removeClass(this.markerClassName).empty(),t===a&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,a.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),a=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,a.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,a,o,l,c=this._getInst(t);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),r(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,a=e.datepicker._getInst(t.target),r=!0,o=a.dpDiv.is(".ui-datepicker-rtl");if(a._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),r=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",a.dpDiv))[0]&&e.datepicker._selectDay(t.target,a.selectedMonth,a.selectedYear,s[0]),(i=e.datepicker._get(a,"onSelect"))?(n=e.datepicker._formatDate(a),i.apply(a.input?a.input[0]:null,[n,a])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),r=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),r=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(a,"stepBigMonths"):-e.datepicker._get(a,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),r=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),r=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(a,"stepBigMonths"):+e.datepicker._get(a,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),r=t.ctrlKey||t.metaKey;break;default:r=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):r=!1;r&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var n,s,a,o,l,c,u;("input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t)||(n=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==n&&(e.datepicker._curInst.dpDiv.stop(!0,!0),n&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(a=(s=e.datepicker._get(n,"beforeShow"))?s.apply(t,[t,n]):{})&&(r(n.settings,a),n.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(n),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),o=!1,e(t).parents().each(function(){return!(o|="fixed"===e(this).css("position"))}),l={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(n),l=e.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=e.datepicker._get(n,"showAnim"),u=e.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[c]?n.dpDiv.show(c,e.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),e.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),e.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),r=s[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=e.datepicker._get(i,"onUpdateDatepicker");l.length>0&&a.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),r>1&&i.dpDiv.addClass("ui-datepicker-multi-"+r).css("width",o*r+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.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(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")&&!e.input.is(":focus")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),a=t.dpDiv.outerHeight(),r=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-r:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+a>c&&c>a?Math.abs(a+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,a,r=this._curInst;!r||t&&r!==e.data(t,"datepicker")||this._datepickerShowing&&(i=this._get(r,"showAnim"),n=this._get(r,"duration"),s=function(){e.datepicker._tidyDialog(r)},e.effects&&(e.effects.effect[i]||e.effects[i])?r.dpDiv.hide(i,e.datepicker._get(r,"showOptions"),n,s):r.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(a=this._get(r,"onClose"))&&a.apply(r.input?r.input[0]:null,[r.input?r.input.val():"",r]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id===e.datepicker._mainDivId||0!==i.parents("#"+e.datepicker._mainDivId).length||i.hasClass(e.datepicker.markerClassName)||i.closest("."+e.datepicker._triggerClass).length||!e.datepicker._datepickerShowing||e.datepicker._inDialog&&e.blockUI)&&(!i.hasClass(e.datepicker.markerClassName)||e.datepicker._curInst===n)||e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),a=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(a,i,n),this._updateDatepicker(a))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),a=this._getInst(s[0]);a["selected"+("M"===n?"Month":"Year")]=a["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(a),this._adjustDate(s)},_selectDay:function(t,i,n,s){var a,r=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(r[0])||((a=this._getInst(r[0])).selectedDay=a.currentDay=parseInt(e("a",s).attr("data-date")),a.selectedMonth=a.currentMonth=i,a.selectedYear=a.currentYear=n,this._selectDate(t,this._formatDate(a,a.currentDay,a.currentMonth,a.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),a=this._getInst(s[0]);i=null!=i?i:this._formatDate(a),a.input&&a.input.val(i),this._updateAlternate(a),(n=this._get(a,"onSelect"))?n.apply(a.input?a.input[0]:null,[i,a]):a.input&&a.input.trigger("change"),a.inline?this._updateDatepicker(a):(this._hideDatepicker(),this._lastInput=a.input[0],"object"!=typeof a.input[0]&&a.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,a=this._get(t,"altField");a&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(a).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,a,r,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(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},_=function(e){var t=w(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=new RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),a=i.substring(l).match(s);if(!a)throw"Missing number at position "+l;return l+=a[0].length,parseInt(a[0],10)},x=function(t,n,s){var a=-1,r=e.map(w(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(r,function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return a=t[0],l+=n.length,!1}),-1!==a)return a+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(y)"'"!==t.charAt(s)||w("'")?C():y=!1;else switch(t.charAt(s)){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("'")?C():y=!0;break;default:C()}if(l<i.length&&(r=i.substr(l),!/^\s+/.test(r)))throw"Extra/unparsed characters found in date: "+r;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<=(a=this._getDaysInMonth(g,m-1)))break;m++,v-=a}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(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,r=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},d="",h=!1;if(t)for(n=0;n<e.length;n++)if(h)"'"!==e.charAt(n)||l("'")?d+=e.charAt(n):h=!1;else switch(e.charAt(n)){case"d":d+=c("d",t.getDate(),2);break;case"D":d+=u("D",t.getDay(),s,a);break;case"o":d+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",t.getMonth()+1,2);break;case"M":d+=u("M",t.getMonth(),r,o);break;case"y":d+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":d+=t.getTime();break;case"!":d+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=e.charAt(n)}return d},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),a=s,r=this._getFormatConfig(e);try{a=this.parseDate(i,n,r)||s}catch(e){n=t?"":n}e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),e.currentDay=n?a.getDate():0,e.currentMonth=n?a.getMonth():0,e.currentYear=n?a.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s=function(e){var t=new Date;return t.setDate(t.getDate()+e),t},a=function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),a=n.getMonth(),r=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":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":a+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,e.datepicker._getDaysInMonth(s,a))}l=o.exec(i)}return new Date(s,a,r)},r=null==i||""===i?n:"string"==typeof i?a(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,a=e.selectedYear,r=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=r.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=r.getMonth(),e.drawYear=e.selectedYear=e.currentYear=r.getFullYear(),s===e.selectedMonth&&a===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){var t={prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}};e(this).on(this.getAttribute("data-event"),t[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,n,s,a,r,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,x,C,k,T,A,E,D,S,M,I,N,O,L,P,R,$,j,z,F,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),U=this._get(t,"isRTL"),W=this._get(t,"showButtonPanel"),V=this._get(t,"hideIfNoPrevNext"),Y=this._get(t,"navigationAsDateFormat"),q=this._getNumberOfMonths(t),K=this._get(t,"showCurrentAtPos"),Q=this._get(t,"stepMonths"),G=1!==q[0]||1!==q[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),J=this._getMinMaxDate(t,"min"),X=this._getMinMaxDate(t,"max"),ee=t.drawMonth-K,te=t.drawYear;if(ee<0&&(ee+=12,te--),X)for(i=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-q[0]*q[1]+1,X.getDate())),i=J&&i<J?J:i;this._daylightSavingAdjust(new Date(te,ee,1))>i;)--ee<0&&(ee=11,te--);for(t.drawMonth=ee,t.drawYear=te,n=this._get(t,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(te,ee-Q,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,te,ee)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML,a=this._get(t,"nextText"),a=Y?this.formatDate(a,this._daylightSavingAdjust(new Date(te,ee+Q,1)),this._getFormatConfig(t)):a,r=this._canAdjustMonth(t,1,te,ee)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:a}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(a))[0].outerHTML:V?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:a}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(a))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Z:B,o=Y?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<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(t,"closeText"))[0].outerHTML),u="",W&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(U?c:"").append(this._isInRange(t,l)?e("<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(U?"":c)[0].outerHTML),d=parseInt(this._get(t,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(t,"showWeek"),p=this._get(t,"dayNames"),f=this._get(t,"dayNamesMin"),g=this._get(t,"monthNames"),m=this._get(t,"monthNamesShort"),v=this._get(t,"beforeShowDay"),b=this._get(t,"showOtherMonths"),y=this._get(t,"selectOtherMonths"),w=this._getDefaultDate(t),_="",C=0;C<q[0];C++){for(k="",this.maxRows=4,T=0;T<q[1];T++){if(A=this._daylightSavingAdjust(new Date(te,ee,t.selectedDay)),E=" ui-corner-all",D="",G){if(D+="<div class='ui-datepicker-group",q[1]>1)switch(T){case 0:D+=" ui-datepicker-group-first",E=" ui-corner-"+(U?"right":"left");break;case q[1]-1:D+=" ui-datepicker-group-last",E=" ui-corner-"+(U?"left":"right");break;default:D+=" ui-datepicker-group-middle",E=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+E+"'>"+(/all|left/.test(E)&&0===C?U?r:s:"")+(/all|right/.test(E)&&0===C?U?s:r:"")+this._generateMonthYearHeader(t,ee,te,J,X,C>0||T>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",S=h?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",x=0;x<7;x++)S+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[M=(x+d)%7]+"'>"+f[M]+"</span></th>";for(D+=S+"</tr></thead><tbody>",I=this._getDaysInMonth(te,ee),te===t.selectedYear&&ee===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,I)),N=(this._getFirstDayOfMonth(te,ee)-d+7)%7,O=Math.ceil((N+I)/7),L=G&&this.maxRows>O?this.maxRows:O,this.maxRows=L,P=this._daylightSavingAdjust(new Date(te,ee,1-N)),R=0;R<L;R++){for(D+="<tr>",$=h?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(P)+"</td>":"",x=0;x<7;x++)j=v?v.apply(t.input?t.input[0]:null,[P]):[!0,""],F=(z=P.getMonth()!==ee)&&!y||!j[0]||J&&P<J||X&&P>X,$+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(P.getTime()===A.getTime()&&ee===t.selectedMonth&&t._keyEvent||w.getTime()===P.getTime()&&w.getTime()===A.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!b?"":" "+j[1]+(P.getTime()===Z.getTime()?" "+this._currentClass:"")+(P.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(z&&!b||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(z&&!b?"&#xa0;":F?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===B.getTime()?" ui-state-highlight":"")+(P.getTime()===Z.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#' aria-current='"+(P.getTime()===Z.getTime()?"true":"false")+"' data-date='"+P.getDate()+"'>"+P.getDate()+"</a>")+"</td>",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);D+=$+"</tr>"}++ee>11&&(ee=0,te++),k+=D+="</tbody></table>"+(G?"</div>"+(q[0]>0&&T===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=k}return _+=u,t._keyEvent=!1,_},_generateMonthYearHeader:function(e,t,i,n,s,a,r,o){var l,c,u,d,h,p,f,g,m=this._get(e,"changeMonth"),v=this._get(e,"changeYear"),b=this._get(e,"showMonthAfterYear"),y=this._get(e,"selectMonthLabel"),w=this._get(e,"selectYearLabel"),_="<div class='ui-datepicker-title'>",x="";if(a||!m)x+="<span class='ui-datepicker-month'>"+r[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.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<=s.getMonth())&&(x+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");x+="</select>"}if(b||(_+=x+(!a&&m&&v?"":"&#xa0;")),!e.yearshtml)if(e.yearshtml="",a||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(e,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?h+parseInt(e,10):parseInt(e,10);return isNaN(t)?h:t},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)e.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";e.yearshtml+="</select>",_+=e.yearshtml,e.yearshtml=null}return _+=this._get(e,"yearSuffix"),b&&(_+=(!a&&m&&v?"":"&#xa0;")+x),_+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),a=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),r=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,a)));e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),a=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&a.setDate(this._getDaysInMonth(a.getFullYear(),a.getMonth())),this._isInRange(e,a)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),a=this._getMinMaxDate(e,"max"),r=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),r=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(r+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!a||t.getTime()<=a.getTime())&&(!r||t.getFullYear()>=r)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:(new Date).getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof t||"isDisabled"!==t&&"getDate"!==t&&"widget"!==t?"option"===t&&2===arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)}):e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i))},e.datepicker=new n,e.datepicker.initialized=!1,e.datepicker.uuid=(new Date).getTime(),e.datepicker.version="1.13.3",e.datepicker},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)}()},132:(e,t,i)=>{var n,s,a;
51
51
  /*!
52
52
  * jQuery UI Draggable 1.13.3
53
53
  * https://jqueryui.com
@@ -71,7 +71,7 @@
71
71
  * Copyright OpenJS Foundation and other contributors
72
72
  * Released under the MIT license.
73
73
  * https://jquery.org/license
74
- */!function(){"use strict";s=[i(687),i(228),i(745),i(759),i(41),i(309),i(229)],n=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.3",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(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.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(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return n=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(n=e(t.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),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},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.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(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),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(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,a,r=this.options;for(this.position=this._generatePosition(t),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"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.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 t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].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(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.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||t+u>a&&t+u<r,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push(["function"==typeof a.options.items?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function c(){r.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(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 e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=e(h[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(d.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=d.length-1;i>=0;i--)for(r=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,a;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]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),a=s.offset(),n.left=a.left,n.top=a.top)},refreshPositions:function(e){var t,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(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,a){i&&!s.forcePlaceholderSize||(a.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,a,r,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&e.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",t,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",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,r=(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--)e.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()[r],c=!1,t[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[d]-l)<s&&(s=Math.abs(t[d]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,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",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,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(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.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(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.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&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=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-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=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-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){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 s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)}()},841:()=>{!function(e){function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||e.isArray(i.data)||"string"==typeof i.data){var s,a=i.handler,r={timer:700,combo:[]};"string"==typeof(s=i.data)?r.combo=[s]:e.isArray(s)?r.combo=s:e.extend(r,s),r.combo=e.map(r.combo,function(e){return e.toLowerCase()}),i.index=new t(r.timer),i.handler=function(t){if(this===t.target||!/textarea|select|input/i.test(t.target.nodeName)&&"true"!==e(t.target).prop("contenteditable")){var s="keypress"!==t.type?e.hotkeys.specialKeys[t.which]:null,o=String.fromCharCode(t.which).toLowerCase(),l="",c={};t.altKey&&"alt"!==s&&(l+="alt+"),t.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==s&&(l+="meta+"),t.shiftKey&&"shift"!==s&&(l+="shift+"),t.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+e.hotkeys.shiftNums[s||o]]=!0);var u=i.index,d=r.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),a.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(e,t){for(var i=e.split(" "),n=0,s=i.length;n<s;n++)if(t[i[n]])return!0;return!1}e.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:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(e.hotkeys.keypressKeys,function(t,i){e.hotkeys.shiftNums[i]=i}),t.prototype.val=function(){return this.num},t.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(e.proxy(t.prototype.reset,this),this.timer)),this.num++},t.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:i}})}(jQuery)},217:()=>{var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,a,r,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(e){switch(e=e.which?e.which:e){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h={"Ⓐ":"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=e(document),c=1,a=function(){return c++},i=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,r=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+a()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(S(i.containerCss,this.opts.element)),this.container.addClass(S(i.containerCssClass,this.opts.element)),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.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=n=this.container.find(r),this.search=s=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!==t&&n.x===i.pageX&&n.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",r,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",r,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",r,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",r,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),function(e,t){var i=w(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){g(e.target,t.get())>=0&&i(e)})}(80,this.results),this.dropdown.on("scroll-debounced",r,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&n.mousewheel(function(e,t,i,s){var a=n.scrollTop();s>0&&a-s<=0?(n.scrollTop(0),_(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),_(e))}),y(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===t&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===t&&(c=!1),this.readonly(c),l=l||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo(document.body);var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:m(e.attr("locked"),"locked")||m(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.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.")}),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");e.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&e.isFunction(i.ajax.processResults)&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;e.isFunction(u.noMatches)&&(i.formatNoMatches=u.noMatches),e.isFunction(u.searching)&&(i.formatSearching=u.searching),e.isFunction(u.inputTooShort)&&(i.formatInputTooShort=u.inputTooShort),e.isFunction(u.inputTooLong)&&(i.formatInputTooLong=u.inputTooLong),e.isFunction(u.loadingMore)&&(i.formatLoading=u.loadingMore),e.isFunction(u.maximumSelected)&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,r){var o,c=this.opts.id,u=this.liveRegion;o=function(n,s,d){var h,p,f,g,m,v,b,y,w,_,x=[];for(h=0,p=(n=i.sortResults(n,s,r)).length;h<p;h+=1)g=!(m=!0===(f=n[h]).disabled)&&c(f)!==t,v=f.children&&f.children.length>0,(b=e("<li></li>")).addClass("select2-results-dept-"+d),b.addClass("select2-result"),b.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&b.addClass("select2-disabled"),v&&b.addClass("select2-result-with-children"),b.addClass(l.opts.formatResultCssClass(f)),b.attr("role","presentation"),(y=e(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+a()),y.attr("role","option"),(_=i.formatResult(f,y,r,l.opts.escapeMarkup))!==t&&(y.html(_),b.append(y)),v&&((w=e("<ul></ul>")).addClass("select2-result-sub"),o(f.children,w,d+1),b.append(w)),b.data("select2-data",f),x.push(b[0]);s.append(x),u.text(i.formatMatches(n.length))},o(s,n,0)}},e.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(e){return e[r]}),e.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(s?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id}):"query"in i||("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=k.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=A(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(v(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(m(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),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 e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,a,r=this.dropdown,o=this.container,c=o.offset(),u=o.outerHeight(!1),d=o.outerWidth(!1),h=r.outerHeight(!1),p=e(window),f=p.width(),g=p.height(),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,w=b+h<=v,_=c.top-h>=p.scrollTop(),x=r.outerWidth(!1);r.hasClass("select2-drop-above")?(i=!0,!_&&w&&(n=!0,i=!1)):(i=!1,!w&&_&&(n=!0,i=!0)),n&&(r.hide(),c=this.container.offset(),u=this.container.outerHeight(!1),d=this.container.outerWidth(!1),h=r.outerHeight(!1),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,x=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(x=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:l.width))>d?d=x:x=d,h=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(b-=(t=this.body.offset()).top,y-=t.left),!(y+x<=m)&&c.left+m+o.outerWidth(!1)>x&&(y=c.left+this.container.outerWidth(!1)-x),s={left:y,width:d},i?(this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above"),h=r.outerHeight(!1),s.top=c.top-h,s.bottom="auto"):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,S(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",function(e){u.x=e.pageX,u.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,a="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===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){p(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+a,function(e){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,l,c=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=e(t[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(a=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-a)),(r=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+r)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return g(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(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")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.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 e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(S(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),d=e.data(this.container,"select2-last-term");if((!0===i||!d||!m(u,d))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){a=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return r.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+S(l.formatInputTooShort,l.element,r.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&r.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+S(l.formatInputTooLong,l.element,r.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+S(l.formatSearching,l.element)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(a==this.queryCount)if(this.opened())if(n.hasError!==t&&D(l.formatAjaxError,"formatAjaxError"))f("<li class='select2-ajax-error'>"+S(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&(s=this.opts.createSearchChoice.call(c,r.val(),n.results))!==t&&null!==s&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter(function(){return m(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches"))return f("<li class='select2-no-results'>"+S(l.formatNoMatches,l.element,r.val())+"</li>"),void(this.showSearch&&this.showSearch(r.val()));o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(S(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")})})));f("<li class='select2-selection-limit'>"+S(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){r.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function f(e){o.html(e),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 e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var t=function(){var t,i,n,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("string"==typeof(t=this.opts.element.attr("style")))for(s=0,a=(i=t.split(";")).length;s<a;s+=1)if(null!==(n=i[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==t&&this.container.css("width",t)}}),n=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,r=a();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+r),this.focusser.attr("aria-labelledby","select2-chosen-"+r),this.results.attr("id","select2-results-"+r),this.search.attr("aria-owns","select2-results-"+r),this.focusser.attr("id","s2id_autogen"+r),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==d.PAGE_UP&&e.which!==d.PAGE_DOWN)switch(e.which){case d.UP:case d.DOWN:return this.moveHighlight(e.which===d.UP?-1:1),void _(e);case d.ENTER:return this.selectHighlighted(),void _(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void _(e)}else _(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==d.TAB&&!d.isControl(e)&&!d.isFunctionKey(e)&&e.which!==d.ESC){if(!1!==this.opts.openOnEnter||e.which!==d.ENTER){if(e.which==d.DOWN||e.which==d.UP||e.which==d.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void _(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(e)):void 0}_(e)}})),y(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){p(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(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 e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),a=null;t.query({matcher:function(e,i,n){var r=m(s,t.id(n));return r&&(a=n),r},callback:e.isFunction(n)?function(){n(a)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2(function(e,t){if(m(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1}),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(I(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),m(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),s=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <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 t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=v(i.val(),t.separator,t.transformVal),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,function(e){return m(e,t.id(r))}).length;return o&&a.push(r),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(m(r,t.id(l))){e.push(l),a.splice(o,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+a()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||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=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.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&&s.length?o=s:i.which==d.RIGHT?o=a.length?a:null:i.which===d.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:a):i.which==d.DELETE?this.unselect(n.first())&&(this.search.width(10),o=a.length?a: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==r.offset&&!r.length)return this.selectChoice(t.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(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),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 e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.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(t){var i={},n=[],s=this;e(t).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!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.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i);return(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith(e("<div></div>").html(n)),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),a&&l.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(t),this.close(),this.focusSearch())})).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),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(n=g(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;s.each2(function(e,t){g(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&D(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+S(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-b(this.search)},resizeSearch:function(){var t,i,n,s,a=b(this.search);t=function(t){if(!r){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(r=e(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"),e(document.body).append(r)}return r.text(t.val()),r.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(m(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.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 t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,a,r,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?r=i.element.prop("multiple"):(r=i.multiple||!1,"tags"in i&&(i.multiple=r=!0)),(n=r?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(g(o[0],l)<0)throw"Unknown method: "+o[0];if(a=t,(n=e(this).data("select2"))===t)return;if("container"===(s=o[0])?a=n.container:"dropdown"===s?a=n.dropdown:(d[s]&&(s=d[s]),a=n[s].apply(n,o.slice(1))),g(o[0],c)>=0||g(o[0],u)>=0&&1==o.length)return!1}}),a===t?this:a},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return C(this.text(e),i.term,s,n),s.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return f(""+t).toUpperCase().indexOf(f(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var a,r,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(r=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&(a=s.createSearchChoice.call(this,a,i))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)){for(d=!1,o=0,l=i.length;o<l;o++)if(m(s.id(a),s.id(i[o]))){d=!0;break}d||n(a)}}return u!==e?e:void 0},escapeMarkup:T,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:E,tags:A},util:{debounce:w,markMatch:C,escapeMarkup:T,stripDiacritics:f},class:{abstract:i,single:n,multi:s}}}function p(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function f(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return h[e]||e})}function g(e,t){for(var i=0,n=t.length;i<n;i+=1)if(m(e,t[i]))return i;return-1}function m(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function v(e,t,i){var n,s,a;if(null===e||e.length<1)return[];for(s=0,a=(n=e.split(t)).length;s<a;s+=1)n[s]=i(n[s]);return n}function b(e){return e.outerWidth(!1)-e.width()}function y(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function w(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function _(e){e.preventDefault(),e.stopPropagation()}function x(t,i,n){var s,a,r=[];(s=e.trim(t.attr("class")))&&e((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)}),(s=e.trim(i.attr("class")))&&e((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),t.attr("class",r.join(" "))}function C(e,t,i,n){var s=f(e.toUpperCase()).indexOf(f(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function T(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function k(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&"function"==typeof s.abort&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){var n={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};l.callback(n)}}),s=c.call(o,d)},a)}}function E(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};""!==n?(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r)):t.callback(s())}}function A(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]},o=n?i(s):i;e.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r))}}function D(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function S(t,i){if(e.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(i,n)}return t}function I(t){var i=0;return e.each(t,function(e,t){t.children?i+=I(t.children):i++}),i}function M(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function N(t,i){var n=function(){};return(n.prototype=new t).constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},2:(e,t,i)=>{var n;!function(){"use strict";var s=window.DocumentFragment,a=window.HTMLElement.prototype,r=a.matches||a.msMatchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector;function o(e,t){if(e.__SKATE_TEMPLATE_HTML_DATA)return e.__SKATE_TEMPLATE_HTML_DATA[t]}function l(e,t,i){return e.__SKATE_TEMPLATE_HTML_DATA||(e.__SKATE_TEMPLATE_HTML_DATA={}),e.__SKATE_TEMPLATE_HTML_DATA[t]=i,e}function c(e){var t=e.match(/\s*<([^\s>]+)/),i=document.createElement(t&&{caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"}[t[1]]||"div");return i.innerHTML=e,u(i.childNodes)}function u(e){for(var t=document.createDocumentFragment();e&&e.length;)t.appendChild(e[0]);return t}function d(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function h(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],a=0;a<n;a++){var r=i[a];r.parentNode===e&&s.push(r)}return s}return[].slice.call(e.childNodes)||[]}function p(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++)e.container.insertBefore(t[n],e.endNode);e.isDefault=!0}function f(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++){var s=t[n];s.parentNode.removeChild(s)}e.isDefault=!1}function g(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}function m(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw new Error('Unable to parse content comment data: "'+t+'" in "\x3c!--'+e.textContent+'--\x3e".')}return{data:t||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}function v(e){var t,i,n=e.childNodes,s=n.length,a=[];for(t=0;t<s;t++){var r=n[t];if(8===r.nodeType){var o=m(r);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+r.textContent+'" in "'+r.parentNode.innerHTML+'".');i={container:r.parentNode,contentNode:r,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:r}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+r.textContent+'" in "'+r.parentNode.innerHTML+'".');i.endNode=r,a.push(i),i=void 0}}else a=a.concat(v(r))}return a}function b(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,function(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,a=n.getAttribute("select"),r=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:a,startNode:r}),s.replaceChild(o,n),s.insertBefore(r,o),r.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:a})+" "}l(e,"content",i)}}(t),i.childNodes.length&&b.wrap(t).appendChild(i)}}b.wrap=function(e){return o(e,"content")||l(e,"content",v(e)),function(e,t){var i={};for(var n in e)n in t?Object.defineProperty(i,n,t[n]):Object.defineProperty(i,n,g(e,n));return i}(e,(i=o(t=e,"content"),n=i.length,{childNodes:{get:function(){for(var e=[],t=0;t<n;t++){var s=i[t];s.isDefault||(e=e.concat(d(s.startNode,s.endNode)))}return e}},firstChild:{get:function(){var e=this.childNodes;return e.length&&e[0]||null}},innerHTML:{get:function(){for(var e="",t=this.childNodes,i=t.length,n=0;n<i;n++){var s=t[n];e+=s.outerHTML||s.textContent}return e},set:function(e){for(var t=c(e),s=0;s<n;s++){for(var a=i[s],r=d(a.startNode,a.endNode),o=0;o<r.length;o++){var l=r[o];l.parentNode.removeChild(l)}for(var u=h(t,a.selector),g=0;g<u.length;g++)a.container.insertBefore(u[g],a.endNode);u.length?f(a):p(a)}}},lastChild:{get:function(){for(var e=n-1;e>-1;e--)if(!i[e].isDefault){var t=this.childNodes;return t[t.length-1]}return null}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t="<"+e,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];t+=" "+a.nodeName+'="'+a.nodeValue+'"'}return t+=">",(t+=this.innerHTML)+"</"+e+">"}},textContent:{get:function(){for(var e="",t=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)e+=t[n].textContent;return e},set:function(e){var t;this.innerHTML="";for(var s=0;s<n;s++){var a=i[s];if(!a.selector){t=a;break}}t&&(e?(f(t),t.container.insertBefore(document.createTextNode(e),t.endNode)):p(t))}},appendChild:{value:function(e){if(e instanceof s){var t=e.childNodes;return[].slice.call(t).forEach(function(e){this.appendChild(e)}.bind(this)),this}for(var a=0;a<n;a++){var o=i[a],l=o.selector;if(!l||e instanceof window.HTMLElement&&r.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(e,i){return"afterbegin"===e?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===e?this.appendChild(c(i)):t.insertAdjacentHTML(e,i),this}},insertBefore:{value:function(e,t){if(!t)return this.appendChild(e);if(e instanceof s){var a=e.childNodes;if(a)for(var o=a.length,l=0;l<o;l++)this.insertBefore(a[l],t);return this}var c=!1;e:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===t&&(c=!0),c){var v=h.selector;if(!v||r.call(e,v)){m.parentNode.insertBefore(e,m);break e}}}if(!c)throw new Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return e}},removeChild:{value:function(e){for(var t=!1,s=0;s<n;s++){var a=i[s];if(a.container===e.parentNode){a.container.removeChild(e),t=!0;break}a.startNode.nextSibling===a.endNode&&p(a)}if(!t)throw new Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return e}},replaceChild:{value:function(e,t){for(var s=0;s<n;s++){var a=i[s];if(a.container===t.parentNode){a.container.replaceChild(e,t);break}}return this}}}));var t,i,n},window.skateTemplateHtml=b,void 0===(n=function(){return b}.call(t,i,t,e))||(e.exports=n),e.exports=b}()},221:(e,t)=>{var i,n,s;n=[t],i=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="data-skate-ignore";e.ATTR_IGNORE=t;var i="a";e.TYPE_ATTRIBUTE=i;var n="c";e.TYPE_CLASSNAME=n;var s="t";e.TYPE_ELEMENT=s},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},894:(e,t)=>{var i,n,s;n=[t,e],i=function(e,t){"use strict";t.exports=function(e){var t=void 0===arguments[1]?"":arguments[1],i=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(i[t]||(i[t]={}))||i}},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},310:(e,t,i)=>{var n,s,a;s=[t,e,i(108),i(740),i(580),i(590),i(537)],n=function(e,t,i,n,s,a,r){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=r.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,a=n.removedNodes;s&&s.length&&!d(s[0].parentNode)&&c(s),a&&a.length&&u(a)}}function p(){var e=new window.MutationObserver(h);return e.observe(document,{childList:!0,subtree:!0}),e}t.exports={register:function(e){return e&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},590:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=t||i,s=window.HTMLElement.prototype;function a(e,t){var i=e.childNodes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];t(r,e),a(r,t)}}function r(){var e=Object.getOwnPropertyDescriptor(s,"innerHTML"),t=function(){return e.get.call(this)};t._hasBeenEnhanced=!0,Object.defineProperty(s,"innerHTML",{get:t,set:function(t){a(this,function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)}),e.set.call(this,t)}})}if(n){var o=Object.getOwnPropertyDescriptor(s,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),r())}})?i.apply(t,n):i)||(e.exports=s)},108:(e,t,i)=>{var n,s,a;s=[t,e,i(996)],n=function(e,t,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),t.exports=window[s]},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},740:(e,t,i)=>{var n,s,a;s=[t,i(221),i(894),i(580),i(937),i(537)],n=function(e,t,i,n,s,a){"use strict";var r=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=r(i),c=r(s),u=a.camelCase,d=a.elementContains,h=a.hasOwn,p=a.inherit,f=a.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(e,t){if(b){var i=e.cloneNode();return document.createElement("div").appendChild(i),v.call(i,t)}return v.call(e,t)},w=/Edge/.test(navigator.userAgent);function _(e){var t=e.split(" ");return{name:t.shift(),delegate:t.join(" ")}}function x(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!e.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(e):s,e.setAttribute(n,s)}}function C(e,t,i){Object.defineProperty(e,i,{get:function(){return this.getAttribute(t)},set:function(e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}})}function T(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(e,s)&&C(e,n,s)}}function k(e,t,i){var n,s,a,r=i.name,o=i.newValue;w&&(a=l(e,"cachedAttributeOldValues"));var c=w&&h(a,r)?a[r]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=t.attributes,f=p&&p[r];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete a[r]:a[r]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:r,newValue:o,oldValue:c})}function E(e,t){var i,n=e.attributes,s=[],a=n.length;for(i=0;i<a;i++)s.push(n[i]);for(i=0;i<a;i++){var r=s[i];k(e,t,{name:r.nodeName,newValue:r.value||r.nodeValue})}}function A(e,t){var i=e.attributes;t.attributes&&!c.isNativeCustomElement(t.id)&&new window.MutationObserver(function(n){n.forEach(function(n){var s=n.attributeName,a=i[s];k(e,t,{name:s,newValue:a&&(a.value||a.nodeValue),oldValue:n.oldValue})})}).observe(e,{attributes:!0,attributeOldValue:!0})}function D(e,t){function i(t,i){return function(n){if(!i)return t(e,n,e);for(var s=n.target;s&&s!==document&&s!==e.parentNode;){if(y(s,i))return t(e,n,s);s=s.parentNode}}}"object"==typeof t.events&&f(t.events,function(t,n){var s=_(n),a=!!s.delegate&&("blur"===s.name||"focus"===s.name);e.addEventListener(s.name,i(t,s.delegate),a)})}function S(e,t){var i=l(e,t.id);i.created||(i.created=!0,p(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),D(e,t),A(e,t),T(e,t),x(e,t),E(e,t),t.created&&t.created(e))}function I(e,t){var i=l(e,t.id);i.attached||d(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function M(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}function N(e,t){S(e,t),I(e,t)}function O(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,a=0;a<s;a++)N(i,n[a]);var r=i.childNodes||[];r.length&&O(r)}}}function L(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE){L(i.childNodes);for(var n=c.getForElement(i),s=n.length,a=0;a<s;a++)M(i,n[a])}}}e.initElements=O,e.removeElements=L,e.triggerAttached=I,e.triggerAttributeChanged=k,e.triggerCreated=S,e.triggerDetached=M},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},580:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t;t=window,
74
+ */!function(){"use strict";s=[i(687),i(228),i(745),i(759),i(41),i(309),i(229)],n=function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.13.3",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(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.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(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){var t=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){t._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,a=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,a.widgetName+"-item")===a)return n=e(this),!1}),e.data(t.target,a.widgetName+"-item")===a&&(n=e(t.target)),!!n&&(!(this.options.handle&&!i&&(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(t,i,n){var s,a,r=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),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},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.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(),e.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(a=this.document.find("body"),this.storedCursor=a.css("cursor"),a.css("cursor",r.cursor),this.storedStylesheet=e("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(a)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),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(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,a,r=this.options;for(this.position=this._generatePosition(t),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"),r.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!r.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(a=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===a?"next":"prev"]()[0]===s||e.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&e.contains(this.element[0],s))){if(this.direction=1===a?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(t,n),this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),a=this.options.axis,r={};a&&"x"!==a||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),a&&"y"!==a||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(r,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.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 t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].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(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,a=e.left,r=a+e.width,o=e.top,l=o+e.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||t+u>a&&t+u<r,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?p:a<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!(!n||!s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,a,r=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&o.push(["function"==typeof a.options.items?a.options.items.call(a.element):e(a.options.items,a.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),a]);function c(){r.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(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 e(r)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,a,r,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=e(h[i],this.document[0])).length-1;n>=0;n--)(a=e.data(s[n],this.widgetFullName))&&a!==this&&!a.options.disabled&&(d.push(["function"==typeof a.options.items?a.options.items.call(a.element[0],t,{item:this.currentItem}):e(a.options.items,a.element),a]),this.containers.push(a));for(i=d.length-1;i>=0;i--)for(r=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,a;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]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),a=s.offset(),n.left=a.left,n.top=a.top)},refreshPositions:function(e){var t,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(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,a){i&&!s.forcePlaceholderSize||(a.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||a.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),a.width()||a.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,a,r,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&e.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",t,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",t,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,a=null,r=(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--)e.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()[r],c=!1,t[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[d]-l)<s&&(s=Math.abs(t[d]-l),a=this.items[n],this.direction=c?"up":"down"));if(!a&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1));a?this._rearrange(t,a,null,!0):this._rearrange(t,null,this.containers[p].element,!0),this._trigger("change",t,this._uiHash()),this.containers[p]._trigger("change",t,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",t,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,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(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&e.ui.ie)&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.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 t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.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(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,a=t.pageX,r=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.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&&(t.pageX-this.offset.click.left<this.containment[0]&&(a=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(r=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(a=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(r=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((r-this.originalPageY)/s.grid[1])*s.grid[1],r=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-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0],a=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-s.grid[0]:n+s.grid[0]:n)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){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 s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||t||n.push(function(e){this._trigger("update",e,this._uiHash())}),this!==this.currentContainer&&(t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push(function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("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,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)}()},841:()=>{!function(e){function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||e.isArray(i.data)||"string"==typeof i.data){var s,a=i.handler,r={timer:700,combo:[]};"string"==typeof(s=i.data)?r.combo=[s]:e.isArray(s)?r.combo=s:e.extend(r,s),r.combo=e.map(r.combo,function(e){return e.toLowerCase()}),i.index=new t(r.timer),i.handler=function(t){if(this===t.target||!/textarea|select|input/i.test(t.target.nodeName)&&"true"!==e(t.target).prop("contenteditable")){var s="keypress"!==t.type?e.hotkeys.specialKeys[t.which]:null,o=String.fromCharCode(t.which).toLowerCase(),l="",c={};t.altKey&&"alt"!==s&&(l+="alt+"),t.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==s&&(l+="meta+"),t.shiftKey&&"shift"!==s&&(l+="shift+"),t.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+e.hotkeys.shiftNums[s||o]]=!0);var u=i.index,d=r.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),a.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(e,t){for(var i=e.split(" "),n=0,s=i.length;n<s;n++)if(t[i[n]])return!0;return!1}e.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:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(e.hotkeys.keypressKeys,function(t,i){e.hotkeys.shiftNums[i]=i}),t.prototype.val=function(){return this.num},t.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(e.proxy(t.prototype.reset,this),this.timer)),this.num++},t.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:i}})}(jQuery)},217:()=>{var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,a,r,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(e){switch(e=e.which?e.which:e){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},h={"Ⓐ":"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=e(document),c=1,a=function(){return c++},i=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,r=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+a()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(S(i.containerCss,this.opts.element)),this.container.addClass(S(i.containerCssClass,this.opts.element)),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.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=n=this.container.find(r),this.search=s=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!==t&&n.x===i.pageX&&n.y===i.pageY||e(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",r,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",r,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",r,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",r,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),function(e,t){var i=w(e,function(e){t.trigger("scroll-debounced",e)});t.on("scroll",function(e){g(e.target,t.get())>=0&&i(e)})}(80,this.results),this.dropdown.on("scroll-debounced",r,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&n.mousewheel(function(e,t,i,s){var a=n.scrollTop();s>0&&a-s<=0?(n.scrollTop(0),_(e)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),_(e))}),y(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",r,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,e.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===t&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===t&&(c=!1),this.readonly(c),l=l||function(){var t=e("<div class='select2-measure-scrollbar'></div>");t.appendTo(document.body);var i={width:t.width()-t[0].clientWidth,height:t.height()-t[0].clientHeight};return t.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==t&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),I.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:m(e.attr("locked"),"locked")||m(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.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.")}),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");e.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&e.isFunction(i.ajax.processResults)&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;e.isFunction(u.noMatches)&&(i.formatNoMatches=u.noMatches),e.isFunction(u.searching)&&(i.formatSearching=u.searching),e.isFunction(u.inputTooShort)&&(i.formatInputTooShort=u.inputTooShort),e.isFunction(u.inputTooLong)&&(i.formatInputTooLong=u.inputTooLong),e.isFunction(u.loadingMore)&&(i.formatLoading=u.loadingMore),e.isFunction(u.maximumSelected)&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,r){var o,c=this.opts.id,u=this.liveRegion;o=function(n,s,d){var h,p,f,g,m,v,b,y,w,_,x=[];for(h=0,p=(n=i.sortResults(n,s,r)).length;h<p;h+=1)g=!(m=!0===(f=n[h]).disabled)&&c(f)!==t,v=f.children&&f.children.length>0,(b=e("<li></li>")).addClass("select2-results-dept-"+d),b.addClass("select2-result"),b.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&b.addClass("select2-disabled"),v&&b.addClass("select2-result-with-children"),b.addClass(l.opts.formatResultCssClass(f)),b.attr("role","presentation"),(y=e(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+a()),y.attr("role","option"),(_=i.formatResult(f,y,r,l.opts.escapeMarkup))!==t&&(y.html(_),b.append(y)),v&&((w=e("<ul></ul>")).addClass("select2-result-sub"),o(f.children,w,d+1),b.append(w)),b.data("select2-data",f),x.push(b[0]);s.append(x),u.text(i.formatMatches(n.length))},o(s,n,0)}},e.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(e){return e[r]}),e.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(s?(i.query=this.bind(function(e){var i,s,a,r={results:[],more:!1},o=e.term;a=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){a(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){a(t,r.results)}),e.callback(r)}),i.id=function(e){return e.id}):"query"in i||("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=T.call(i.element,i.ajax)):"data"in i?i.query=A(i.data):"tags"in i&&(i.query=E(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(t){return{id:e.trim(t),text:e.trim(t)}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(v(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;e.isFunction(n)&&(n=n()),e(n).each(function(){if(m(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");e===t&&(e=!1),this.enable(!e);var i=n.prop("readonly");i===t&&(i=!1),this.readonly(i),this.container&&(x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(S(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(S(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==t&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),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 e=this._enabled&&!this._readonly,t=!e;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",t),this.close(),this.enabledInterface=e,!0)},enable:function(e){e===t&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){e===t&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,a,r=this.dropdown,o=this.container,c=o.offset(),u=o.outerHeight(!1),d=o.outerWidth(!1),h=r.outerHeight(!1),p=e(window),f=p.width(),g=p.height(),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,w=b+h<=v,_=c.top-h>=p.scrollTop(),x=r.outerWidth(!1);r.hasClass("select2-drop-above")?(i=!0,!_&&w&&(n=!0,i=!1)):(i=!1,!w&&_&&(n=!0,i=!0)),n&&(r.hide(),c=this.container.offset(),u=this.container.outerHeight(!1),d=this.container.outerWidth(!1),h=r.outerHeight(!1),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,x=r.outerWidth(!1),r.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(a=e(".select2-results",r)[0],r.addClass("select2-drop-auto-width"),r.css("width",""),(x=r.outerWidth(!1)+(a.scrollHeight===a.clientHeight?0:l.width))>d?d=x:x=d,h=r.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(b-=(t=this.body.offset()).top,y-=t.left),!(y+x<=m)&&c.left+m+o.outerWidth(!1)>x&&(y=c.left+this.container.outerWidth(!1)-x),s={left:y,width:d},i?(this.container.addClass("select2-drop-above"),r.addClass("select2-drop-above"),h=r.outerHeight(!1),s.top=c.top-h,s.bottom="auto"):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),r.removeClass("select2-drop-above")),s=e.extend(s,S(this.opts.dropdownCss,this.opts.element)),r.css(s)},shouldOpen:function(){var t;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",function(e){u.x=e.pageX,u.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,a="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===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){p(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var r=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+a,function(e){r.opened()&&r.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return e!==t&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return S(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,a,r,o,l,c=this.results;(i=this.highlight())<0||(0!=i?(t=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=e(t[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(a=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-a)),(r=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+r)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return g(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(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")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.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 e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),a=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:a,matcher:this.opts.matcher,callback:this.bind(function(r){n.opened()&&(n.opts.populateResults.call(this,e,r.results,{term:s,page:i,context:a}),n.postprocessResults(r,!1,!1),!0===r.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(S(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=r.context,this.opts.element.trigger({type:"select2-loaded",items:r}))})}))},tokenize:function(){},updateResults:function(i){var n,s,a,r=this.search,o=this.results,l=this.opts,c=this,u=r.val(),d=e.data(this.container,"select2-last-term");if((!0===i||!d||!m(u,d))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){a=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),e.isArray(n)&&n.length>=h&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))))return r.val().length<l.minimumInputLength?(D(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+S(l.formatInputTooShort,l.element,r.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&r.val().length>l.maximumInputLength?D(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+S(l.formatInputTooLong,l.element,r.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+S(l.formatSearching,l.element)+"</li>"),r.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=t&&null!=s&&r.val(s),this.resultsPage=1,l.query({element:l.element,term:r.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(a==this.queryCount)if(this.opened())if(n.hasError!==t&&D(l.formatAjaxError,"formatAjaxError"))f("<li class='select2-ajax-error'>"+S(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==r.val()&&(s=this.opts.createSearchChoice.call(c,r.val(),n.results))!==t&&null!==s&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter(function(){return m(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches"))return f("<li class='select2-no-results'>"+S(l.formatNoMatches,l.element,r.val())+"</li>"),void(this.showSearch&&this.showSearch(r.val()));o.empty(),c.opts.populateResults.call(this,o,n.results,{term:r.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(S(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")})})));f("<li class='select2-selection-limit'>"+S(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){r.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function f(e){o.html(e),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 e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)this.clearTouchMoved();else{var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()}},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===e.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var t=function(){var t,i,n,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("string"==typeof(t=this.opts.element.attr("style")))for(s=0,a=(i=t.split(";")).length;s<a;s+=1)if(null!==(n=i[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(t=this.opts.element.css("width")).indexOf("%")>0?t:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return e.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==t&&this.container.css("width",t)}}),n=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html(["<a href='javascript:void(0)' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,r=a();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+r),this.focusser.attr("aria-labelledby","select2-chosen-"+r),this.results.attr("id","select2-results-"+r),this.search.attr("aria-owns","select2-results-"+r),this.focusser.attr("id","s2id_autogen"+r),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode)if(e.which!==d.PAGE_UP&&e.which!==d.PAGE_DOWN)switch(e.which){case d.UP:case d.DOWN:return this.moveHighlight(e.which===d.UP?-1:1),void _(e);case d.ENTER:return this.selectHighlighted(),void _(e);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(e),void _(e)}else _(e)})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&e.which!==d.TAB&&!d.isControl(e)&&!d.isFunctionKey(e)&&e.which!==d.ESC){if(!1!==this.opts.openOnEnter||e.which!==d.ENTER){if(e.which==d.DOWN||e.which==d.UP||e.which==d.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;return this.open(),void _(e)}return e.which==d.DELETE||e.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(e)):void 0}_(e)}})),y(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){if(this.opts.minimumResultsForSearch>=0){if(e.stopPropagation(),this.opened())return;this.open()}})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){p(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){_(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.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(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(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 e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),a=null;t.query({matcher:function(e,i,n){var r=m(s,t.id(n));return r&&(a=n),r},callback:e.isFunction(n)?function(){n(a)}:e.noop})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&e!==t){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(e,t,i){var n=0,s=this;if(this.findHighlightableChoices().each2(function(e,t){if(m(s.id(t.data("select2-data")),s.opts.element.val()))return n=e,!1}),!1!==i&&(!0===t&&n>=0?this.highlight(n):this.highlight(0)),!0===t){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(M(e.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),t&&t.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),m(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),i!==t&&s.append(i),(n=this.opts.formatSelectionCssClass(e,s))!==t&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,a=this.data();if(0===arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:a});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:a})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==t&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),s=N(i,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <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 t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=v(i.val(),t.separator,t.transformVal),a=[];t.query({matcher:function(i,n,r){var o=e.grep(s,function(e){return m(e,t.id(r))}).length;return o&&a.push(r),o},callback:e.isFunction(n)?function(){for(var e=[],i=0;i<s.length;i++)for(var r=s[i],o=0;o<a.length;o++){var l=a[o];if(m(r,t.id(l))){e.push(l),a.splice(o,1);break}}n(e)}:e.noop})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),I.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+a()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||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=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),a=n.next(".select2-search-choice:not(.select2-locked)"),r=function(t){var i=0,n=0;if("selectionStart"in(t=e(t)[0]))i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.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&&s.length?o=s:i.which==d.RIGHT?o=a.length?a:null:i.which===d.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:a):i.which==d.DELETE?this.unselect(n.first())&&(this.search.width(10),o=a.length?a: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==r.offset&&!r.length)return this.selectChoice(t.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(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){this.isInterfaceEnabled()&&(e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),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 e=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==t&&null!==i&&(e.updateSelection(i),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();e!==t&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).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.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.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(t){var i={},n=[],s=this;e(t).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&e!=t&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(e,!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.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,a=!i.locked,r=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=a?r:o,c=this.id(i);return(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=t&&l.find("div").replaceWith(e("<div></div>").html(n)),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=t&&l.addClass(s),a&&l.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(t),this.close(),this.focusSearch())})).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),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var a=e.Event("select2-removing");if(a.val=this.id(i),a.choice=i,this.opts.element.trigger(a),a.isDefaultPrevented())return!1;for(;(n=g(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),a=this.results.find(".select2-result-with-children"),r=this;s.each2(function(e,t){g(r.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),a.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&r.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&D(r.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+S(r.opts.formatNoMatches,r.opts.element,r.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-b(this.search)},resizeSearch:function(){var t,i,n,s,a=b(this.search);t=function(t){if(!r){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(r=e(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"),e(document.body).append(r)}return r.text(t.val()),r.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-a)<t&&(s=n-a),s<40&&(s=n-a),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:v(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){t=t.slice(0),e=e.slice(0);for(var i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(m(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,a=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,a.id);a.setVal(i),a.updateSelection(t),a.clearSearch(),n&&a.triggerChange(a.buildChangeDetails(s,a.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 t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,a=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return a.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,a,r,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?r=i.element.prop("multiple"):(r=i.multiple||!1,"tags"in i&&(i.multiple=r=!0)),(n=r?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(g(o[0],l)<0)throw"Unknown method: "+o[0];if(a=t,(n=e(this).data("select2"))===t)return;if("container"===(s=o[0])?a=n.container:"dropdown"===s?a=n.dropdown:(d[s]&&(s=d[s]),a=n[s].apply(n,o.slice(1))),g(o[0],c)>=0||g(o[0],u)>=0&&1==o.length)return!1}}),a===t?this:a},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return C(this.text(e),i.term,s,n),s.join("")},transformVal:function(t){return e.trim(t)},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return e==t?null:e.id},text:function(t){return t&&this.data&&this.data.text?e.isFunction(this.data.text)?this.data.text(t):t[this.data.text]:t.text},matcher:function(e,t){return f(""+t).toUpperCase().indexOf(f(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var a,r,o,l,c,u=e,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(r=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((r=e.indexOf(c))>=0));o++);if(r<0)break;if(a=e.substring(0,r),e=e.substring(r+c.length),a.length>0&&(a=s.createSearchChoice.call(this,a,i))!==t&&null!==a&&s.id(a)!==t&&null!==s.id(a)){for(d=!1,o=0,l=i.length;o<l;o++)if(m(s.id(a),s.id(i[o]))){d=!0;break}d||n(a)}}return u!==e?e:void 0},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:T,local:A,tags:E},util:{debounce:w,markMatch:C,escapeMarkup:k,stripDiacritics:f},class:{abstract:i,single:n,multi:s}}}function p(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function f(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return h[e]||e})}function g(e,t){for(var i=0,n=t.length;i<n;i+=1)if(m(e,t[i]))return i;return-1}function m(e,i){return e===i||e!==t&&i!==t&&(null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+""))}function v(e,t,i){var n,s,a;if(null===e||e.length<1)return[];for(s=0,a=(n=e.split(t)).length;s<a;s+=1)n[s]=i(n[s]);return n}function b(e){return e.outerWidth(!1)-e.width()}function y(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);s!==t&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function w(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function _(e){e.preventDefault(),e.stopPropagation()}function x(t,i,n){var s,a,r=[];(s=e.trim(t.attr("class")))&&e((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&r.push(this)}),(s=e.trim(i.attr("class")))&&e((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(a=n(this))&&r.push(a)}),t.attr("class",r.join(" "))}function C(e,t,i,n){var s=f(e.toUpperCase()).indexOf(f(t.toUpperCase())),a=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+a))),i.push("</span>"),i.push(n(e.substring(s+a,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function T(i){var n,s=null,a=i.quietMillis||100,r=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,a=r,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},d=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,a="function"==typeof a?a.call(o,l.term,l.page,l.context):a,s&&"function"==typeof s.abort&&s.abort(),i.params&&(e.isFunction(i.params)?e.extend(d,i.params.call(o)):e.extend(d,i.params)),e.extend(d,{url:a,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){var n={hasError:!0,jqXHR:e,textStatus:t,errorThrown:i};l.callback(n)}}),s=c.call(o,d)},a)}}function A(t){var i,n,s=t,a=function(e){return""+e.text};e.isArray(s)&&(s={results:n=s}),!1===e.isFunction(s)&&(n=s,s=function(){return n});var r=s();return r.text&&(a=r.text,e.isFunction(a)||(i=r.text,a=function(e){return e[i]})),function(t){var i,n=t.term,r={results:[]};""!==n?(i=function(s,r){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,a(o),s))&&r.push(o)}else t.matcher(n,a(s),s)&&r.push(s)},e(s().results).each2(function(e,t){i(t,r.results)}),t.callback(r)):t.callback(s())}}function E(i){var n=e.isFunction(i);return function(s){var a=s.term,r={results:[]},o=n?i(s):i;e.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===a||s.matcher(a,i))&&r.results.push(e?this:{id:this,text:this})}),s.callback(r))}}function D(t,i){if(e.isFunction(t))return!0;if(!t)return!1;if("string"==typeof t)return!0;throw new Error(i+" must be a string, function, or falsy value")}function S(t,i){if(e.isFunction(t)){var n=Array.prototype.slice.call(arguments,2);return t.apply(i,n)}return t}function M(t){var i=0;return e.each(t,function(e,t){t.children?i+=M(t.children):i++}),i}function I(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function N(t,i){var n=function(){};return(n.prototype=new t).constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},2:(e,t,i)=>{var n;!function(){"use strict";var s=window.DocumentFragment,a=window.HTMLElement.prototype,r=a.matches||a.msMatchesSelector||a.webkitMatchesSelector||a.mozMatchesSelector||a.oMatchesSelector;function o(e,t){if(e.__SKATE_TEMPLATE_HTML_DATA)return e.__SKATE_TEMPLATE_HTML_DATA[t]}function l(e,t,i){return e.__SKATE_TEMPLATE_HTML_DATA||(e.__SKATE_TEMPLATE_HTML_DATA={}),e.__SKATE_TEMPLATE_HTML_DATA[t]=i,e}function c(e){var t=e.match(/\s*<([^\s>]+)/),i=document.createElement(t&&{caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"}[t[1]]||"div");return i.innerHTML=e,u(i.childNodes)}function u(e){for(var t=document.createDocumentFragment();e&&e.length;)t.appendChild(e[0]);return t}function d(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function h(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],a=0;a<n;a++){var r=i[a];r.parentNode===e&&s.push(r)}return s}return[].slice.call(e.childNodes)||[]}function p(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++)e.container.insertBefore(t[n],e.endNode);e.isDefault=!0}function f(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++){var s=t[n];s.parentNode.removeChild(s)}e.isDefault=!1}function g(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}function m(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw new Error('Unable to parse content comment data: "'+t+'" in "\x3c!--'+e.textContent+'--\x3e".')}return{data:t||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}function v(e){var t,i,n=e.childNodes,s=n.length,a=[];for(t=0;t<s;t++){var r=n[t];if(8===r.nodeType){var o=m(r);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+r.textContent+'" in "'+r.parentNode.innerHTML+'".');i={container:r.parentNode,contentNode:r,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:r}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+r.textContent+'" in "'+r.parentNode.innerHTML+'".');i.endNode=r,a.push(i),i=void 0}}else a=a.concat(v(r))}return a}function b(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,function(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,a=n.getAttribute("select"),r=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:a,startNode:r}),s.replaceChild(o,n),s.insertBefore(r,o),r.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:a})+" "}l(e,"content",i)}}(t),i.childNodes.length&&b.wrap(t).appendChild(i)}}b.wrap=function(e){return o(e,"content")||l(e,"content",v(e)),function(e,t){var i={};for(var n in e)n in t?Object.defineProperty(i,n,t[n]):Object.defineProperty(i,n,g(e,n));return i}(e,(i=o(t=e,"content"),n=i.length,{childNodes:{get:function(){for(var e=[],t=0;t<n;t++){var s=i[t];s.isDefault||(e=e.concat(d(s.startNode,s.endNode)))}return e}},firstChild:{get:function(){var e=this.childNodes;return e.length&&e[0]||null}},innerHTML:{get:function(){for(var e="",t=this.childNodes,i=t.length,n=0;n<i;n++){var s=t[n];e+=s.outerHTML||s.textContent}return e},set:function(e){for(var t=c(e),s=0;s<n;s++){for(var a=i[s],r=d(a.startNode,a.endNode),o=0;o<r.length;o++){var l=r[o];l.parentNode.removeChild(l)}for(var u=h(t,a.selector),g=0;g<u.length;g++)a.container.insertBefore(u[g],a.endNode);u.length?f(a):p(a)}}},lastChild:{get:function(){for(var e=n-1;e>-1;e--)if(!i[e].isDefault){var t=this.childNodes;return t[t.length-1]}return null}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t="<"+e,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];t+=" "+a.nodeName+'="'+a.nodeValue+'"'}return t+=">",(t+=this.innerHTML)+"</"+e+">"}},textContent:{get:function(){for(var e="",t=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)e+=t[n].textContent;return e},set:function(e){var t;this.innerHTML="";for(var s=0;s<n;s++){var a=i[s];if(!a.selector){t=a;break}}t&&(e?(f(t),t.container.insertBefore(document.createTextNode(e),t.endNode)):p(t))}},appendChild:{value:function(e){if(e instanceof s){var t=e.childNodes;return[].slice.call(t).forEach(function(e){this.appendChild(e)}.bind(this)),this}for(var a=0;a<n;a++){var o=i[a],l=o.selector;if(!l||e instanceof window.HTMLElement&&r.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(e,i){return"afterbegin"===e?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===e?this.appendChild(c(i)):t.insertAdjacentHTML(e,i),this}},insertBefore:{value:function(e,t){if(!t)return this.appendChild(e);if(e instanceof s){var a=e.childNodes;if(a)for(var o=a.length,l=0;l<o;l++)this.insertBefore(a[l],t);return this}var c=!1;e:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===t&&(c=!0),c){var v=h.selector;if(!v||r.call(e,v)){m.parentNode.insertBefore(e,m);break e}}}if(!c)throw new Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return e}},removeChild:{value:function(e){for(var t=!1,s=0;s<n;s++){var a=i[s];if(a.container===e.parentNode){a.container.removeChild(e),t=!0;break}a.startNode.nextSibling===a.endNode&&p(a)}if(!t)throw new Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return e}},replaceChild:{value:function(e,t){for(var s=0;s<n;s++){var a=i[s];if(a.container===t.parentNode){a.container.replaceChild(e,t);break}}return this}}}));var t,i,n},window.skateTemplateHtml=b,void 0===(n=function(){return b}.call(t,i,t,e))||(e.exports=n),e.exports=b}()},221:(e,t)=>{var i,n,s;n=[t],i=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var t="data-skate-ignore";e.ATTR_IGNORE=t;var i="a";e.TYPE_ATTRIBUTE=i;var n="c";e.TYPE_CLASSNAME=n;var s="t";e.TYPE_ELEMENT=s},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},894:(e,t)=>{var i,n,s;n=[t,e],i=function(e,t){"use strict";t.exports=function(e){var t=void 0===arguments[1]?"":arguments[1],i=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(i[t]||(i[t]={}))||i}},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},310:(e,t,i)=>{var n,s,a;s=[t,e,i(108),i(740),i(580),i(590),i(537)],n=function(e,t,i,n,s,a,r){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=r.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,a=n.removedNodes;s&&s.length&&!d(s[0].parentNode)&&c(s),a&&a.length&&u(a)}}function p(){var e=new window.MutationObserver(h);return e.observe(document,{childList:!0,subtree:!0}),e}t.exports={register:function(e){return e&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},590:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=t||i,s=window.HTMLElement.prototype;function a(e,t){var i=e.childNodes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];t(r,e),a(r,t)}}function r(){var e=Object.getOwnPropertyDescriptor(s,"innerHTML"),t=function(){return e.get.call(this)};t._hasBeenEnhanced=!0,Object.defineProperty(s,"innerHTML",{get:t,set:function(t){a(this,function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)}),e.set.call(this,t)}})}if(n){var o=Object.getOwnPropertyDescriptor(s,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),r())}})?i.apply(t,n):i)||(e.exports=s)},108:(e,t,i)=>{var n,s,a;s=[t,e,i(996)],n=function(e,t,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),t.exports=window[s]},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},740:(e,t,i)=>{var n,s,a;s=[t,i(221),i(894),i(580),i(937),i(537)],n=function(e,t,i,n,s,a){"use strict";var r=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=r(i),c=r(s),u=a.camelCase,d=a.elementContains,h=a.hasOwn,p=a.inherit,f=a.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(e,t){if(b){var i=e.cloneNode();return document.createElement("div").appendChild(i),v.call(i,t)}return v.call(e,t)},w=/Edge/.test(navigator.userAgent);function _(e){var t=e.split(" ");return{name:t.shift(),delegate:t.join(" ")}}function x(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!e.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(e):s,e.setAttribute(n,s)}}function C(e,t,i){Object.defineProperty(e,i,{get:function(){return this.getAttribute(t)},set:function(e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}})}function k(e,t){var i=t.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(e,s)&&C(e,n,s)}}function T(e,t,i){var n,s,a,r=i.name,o=i.newValue;w&&(a=l(e,"cachedAttributeOldValues"));var c=w&&h(a,r)?a[r]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=t.attributes,f=p&&p[r];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete a[r]:a[r]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:r,newValue:o,oldValue:c})}function A(e,t){var i,n=e.attributes,s=[],a=n.length;for(i=0;i<a;i++)s.push(n[i]);for(i=0;i<a;i++){var r=s[i];T(e,t,{name:r.nodeName,newValue:r.value||r.nodeValue})}}function E(e,t){var i=e.attributes;t.attributes&&!c.isNativeCustomElement(t.id)&&new window.MutationObserver(function(n){n.forEach(function(n){var s=n.attributeName,a=i[s];T(e,t,{name:s,newValue:a&&(a.value||a.nodeValue),oldValue:n.oldValue})})}).observe(e,{attributes:!0,attributeOldValue:!0})}function D(e,t){function i(t,i){return function(n){if(!i)return t(e,n,e);for(var s=n.target;s&&s!==document&&s!==e.parentNode;){if(y(s,i))return t(e,n,s);s=s.parentNode}}}"object"==typeof t.events&&f(t.events,function(t,n){var s=_(n),a=!!s.delegate&&("blur"===s.name||"focus"===s.name);e.addEventListener(s.name,i(t,s.delegate),a)})}function S(e,t){var i=l(e,t.id);i.created||(i.created=!0,p(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),D(e,t),E(e,t),k(e,t),x(e,t),A(e,t),t.created&&t.created(e))}function M(e,t){var i=l(e,t.id);i.attached||d(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function I(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}function N(e,t){S(e,t),M(e,t)}function O(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,a=0;a<s;a++)N(i,n[a]);var r=i.childNodes||[];r.length&&O(r)}}}function L(e){for(var t=0;t<e.length;t++){var i=e[t];if(i.nodeType===g.ELEMENT_NODE){L(i.childNodes);for(var n=c.getForElement(i),s=n.length,a=0;a<s;a++)I(i,n[a])}}}e.initElements=O,e.removeElements=L,e.triggerAttached=M,e.triggerAttributeChanged=T,e.triggerCreated=S,e.triggerDetached=I},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},580:(e,t)=>{var i,n,s;n=[t],void 0===(s="function"==typeof(i=function(e){"use strict";var t;t=window,
75
75
  /**
76
76
  * @license
77
77
  * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
@@ -81,7 +81,7 @@
81
81
  * Code distributed by Google as part of the polymer project is also
82
82
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
83
83
  */
84
- "undefined"==typeof WeakMap&&function(){var e=Object.defineProperty,t=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"};i.prototype={set:function(t,i){var n=t[this.name];return n&&n[0]===t?n[1]=i:e(t,this.name,{value:[t,i],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=i}(),function(e){if(!e.JsMutationObserver){var t,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",function(e){if(e.data===s){var t=n;n=[],t.forEach(function(e){e()})}}),t=function(e){n.push(e),window.postMessage(s,"*")}}var a,r,o=!1,l=[],c=0;g.prototype={observe:function(e,t){if(e=d(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n,s=i.get(e);s||i.set(e,s=[]);for(var a=0;a<s.length;a++)if(s[a].observer===this){(n=s[a]).removeListeners(),n.options=t;break}n||(n=new C(this,e,t),s.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=i.get(e),n=0;n<t.length;n++){var s=t[n];if(s.observer===this){s.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},C.prototype={enqueue:function(e){var t=this.observer.records_,i=t.length;if(t.length>0){var n=x(t[i-1],e);if(n)return void(t[i-1]=n)}else u(this.observer);t[i]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=i.get(e);t||i.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=i.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,i=e.relatedNode.namespaceURI,n=e.target;(a=new b("attributes",n)).attributeName=t,a.attributeNamespace=i;var s=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;f(n,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(i)))return e.attributeOldValue?y(s):a});break;case"DOMCharacterDataModified":var a=b("characterData",n=e.target);s=e.prevValue,f(n,function(e){if(e.characterData)return e.characterDataOldValue?y(s):a});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var r,o,l=e.target;"DOMNodeInserted"===e.type?(r=[l],o=[]):(r=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(a=b("childList",e.target.parentNode)).addedNodes=r,a.removedNodes=o,a.previousSibling=c,a.nextSibling=u,f(e.relatedNode,function(e){if(e.childList)return a})}w()}},e.JsMutationObserver=g,e.MutationObserver||(e.MutationObserver=g,g._isPolyfilled=!0)}function u(e){l.push(e),o||(o=!0,t(h))}function d(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function h(){o=!1;var e=l;l=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var i=e.takeRecords();p(e),i.length&&(e.callback_(i,e),t=!0)}),t&&h()}function p(e){e.nodes_.forEach(function(t){var n=i.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function f(e,t){for(var n=e;n;n=n.parentNode){var s=i.get(n);if(s)for(var a=0;a<s.length;a++){var r=s[a],o=r.options;if(n===e||o.subtree){var l=t(o);l&&r.enqueue(l)}}}}function g(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function m(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function v(e){var t=new m(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function b(e,t){return a=new m(e,t)}function y(e){return r||((r=v(a)).oldValue=e,r)}function w(){a=r=void 0}function _(e){return e===r||e===a}function x(e,t){return e===t?e:r&&_(e)?r:null}function C(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)})?i.apply(t,n):i)||(e.exports=s)},937:(e,t,i)=>{var n,s,a;s=[t,e,i(221),i(108),i(537)],n=function(e,t,i,n,s){"use strict";var a=function(e){return e&&e.__esModule?e.default:e},r=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=a(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}t.exports={clear:function(){return c.registry={},this},get:function(e){return u(c.registry,e)&&c.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,a=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(e.tagName||e.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(t=c.registry[f]).extends,d?h===i&&a.push(t):i||a.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,r)&&((i=(t=c.registry[m]).extends)&&h!==i||a.push(t))}for(var v=p(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(t=c.registry[w]).extends)&&h!==i||a.push(t))}return a},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,l)&&d(e)},set:function(e,t){if(u(c.registry,e))throw new Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return c.registry[e]=t,this}}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},714:(e,t,i)=>{var n,s,a;s=[t,e,i(221),i(310),i(740),i(937),i(537),i(996)],n=function(e,t,i,n,s,a,r,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(a),y=r.debounce,w=r.inherit,_=l(o),x=window.HTMLElement,C=!!document.attachEvent;function T(){return C?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var k=y(function(){var e=function(){v(document.documentElement.childNodes)};T()?e():C?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)});function E(e){function t(){var i,n=e.extends,s=e.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),e.prototype=t.prototype,p(i,e),i}return t.prototype=e.prototype,t}function A(e,t){if(t=w({},t),(t=w(t,A.defaults)).id=e,b.set(e,t),b.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:x.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=w(Object.create(i),t.prototype,!0));var n={prototype:w(t.prototype,{createdCallback:function(){p(this,t)},attachedCallback:function(){f(this,t)},detachedCallback:function(){g(this,t)},attributeChangedCallback:function(e,i,n){m(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(k(),h.register(!!t.detached),b.isType(e,d))return E(t)}A.init=function(e){var t=e;return e?("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof x&&(t=[e]),v(t),e):e},A.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},A.version=_,A.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var D=window.skate;A.noConflict=function(){return window.skate=D,A},window.skate=A,t.exports=A},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},537:(e,t,i)=>{var n,s,a;s=[t,i(221)],n=function(e,t){"use strict";e.hasOwn=a,e.camelCase=r,e.elementContains=o,e.debounce=l,e.getClosestIgnoredElement=c,e.inherit=u,e.objEach=d,e.supportsNativeCustomElements=h,e.isValidNativeCustomElementName=p,Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){return e.split(/-/g).map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)}).join("")}function o(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)}function l(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},1))}}function c(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}}function u(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,a=0;a<s;a++){var r=n[a];if(i||void 0===e[r]){var o=Object.getOwnPropertyDescriptor(t,r);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[r]=t[r]:Object.defineProperty(e,r,o)}}return e}function d(e,t){for(var i in e)a(e,i)&&t(e[i],i)}function h(){return"function"==typeof document.registerElement}function p(e){return e.indexOf("-")>0}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},996:(e,t)=>{var i,n,s;n=[t,e],i=function(e,t){"use strict";t.exports="0.13.17"},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},99:()=>{
84
+ "undefined"==typeof WeakMap&&function(){var e=Object.defineProperty,t=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+t+++"__"};i.prototype={set:function(t,i){var n=t[this.name];return n&&n[0]===t?n[1]=i:e(t,this.name,{value:[t,i],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!(!t||t[0]!==e||(t[0]=t[1]=void 0,0))},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=i}(),function(e){if(!e.JsMutationObserver){var t,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",function(e){if(e.data===s){var t=n;n=[],t.forEach(function(e){e()})}}),t=function(e){n.push(e),window.postMessage(s,"*")}}var a,r,o=!1,l=[],c=0;g.prototype={observe:function(e,t){if(e=d(e),!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw new SyntaxError;var n,s=i.get(e);s||i.set(e,s=[]);for(var a=0;a<s.length;a++)if(s[a].observer===this){(n=s[a]).removeListeners(),n.options=t;break}n||(n=new C(this,e,t),s.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=i.get(e),n=0;n<t.length;n++){var s=t[n];if(s.observer===this){s.removeListeners(),t.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},C.prototype={enqueue:function(e){var t=this.observer.records_,i=t.length;if(t.length>0){var n=x(t[i-1],e);if(n)return void(t[i-1]=n)}else u(this.observer);t[i]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=i.get(e);t||i.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=i.get(e),n=0;n<t.length;n++)if(t[n]===this){t.splice(n,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,i=e.relatedNode.namespaceURI,n=e.target;(a=new b("attributes",n)).attributeName=t,a.attributeNamespace=i;var s=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;f(n,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(i)))return e.attributeOldValue?y(s):a});break;case"DOMCharacterDataModified":var a=b("characterData",n=e.target);s=e.prevValue,f(n,function(e){if(e.characterData)return e.characterDataOldValue?y(s):a});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var r,o,l=e.target;"DOMNodeInserted"===e.type?(r=[l],o=[]):(r=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(a=b("childList",e.target.parentNode)).addedNodes=r,a.removedNodes=o,a.previousSibling=c,a.nextSibling=u,f(e.relatedNode,function(e){if(e.childList)return a})}w()}},e.JsMutationObserver=g,e.MutationObserver||(e.MutationObserver=g,g._isPolyfilled=!0)}function u(e){l.push(e),o||(o=!0,t(h))}function d(e){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(e)||e}function h(){o=!1;var e=l;l=[],e.sort(function(e,t){return e.uid_-t.uid_});var t=!1;e.forEach(function(e){var i=e.takeRecords();p(e),i.length&&(e.callback_(i,e),t=!0)}),t&&h()}function p(e){e.nodes_.forEach(function(t){var n=i.get(t);n&&n.forEach(function(t){t.observer===e&&t.removeTransientObservers()})})}function f(e,t){for(var n=e;n;n=n.parentNode){var s=i.get(n);if(s)for(var a=0;a<s.length;a++){var r=s[a],o=r.options;if(n===e||o.subtree){var l=t(o);l&&r.enqueue(l)}}}}function g(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function m(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function v(e){var t=new m(e.type,e.target);return t.addedNodes=e.addedNodes.slice(),t.removedNodes=e.removedNodes.slice(),t.previousSibling=e.previousSibling,t.nextSibling=e.nextSibling,t.attributeName=e.attributeName,t.attributeNamespace=e.attributeNamespace,t.oldValue=e.oldValue,t}function b(e,t){return a=new m(e,t)}function y(e){return r||((r=v(a)).oldValue=e,r)}function w(){a=r=void 0}function _(e){return e===r||e===a}function x(e,t){return e===t?e:r&&_(e)?r:null}function C(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)})?i.apply(t,n):i)||(e.exports=s)},937:(e,t,i)=>{var n,s,a;s=[t,e,i(221),i(108),i(537)],n=function(e,t,i,n,s){"use strict";var a=function(e){return e&&e.__esModule?e.default:e},r=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=a(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}t.exports={clear:function(){return c.registry={},this},get:function(e){return u(c.registry,e)&&c.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,a=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(e.tagName||e.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(t=c.registry[f]).extends,d?h===i&&a.push(t):i||a.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,r)&&((i=(t=c.registry[m]).extends)&&h!==i||a.push(t))}for(var v=p(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(t=c.registry[w]).extends)&&h!==i||a.push(t))}return a},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,l)&&d(e)},set:function(e,t){if(u(c.registry,e))throw new Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return c.registry[e]=t,this}}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},714:(e,t,i)=>{var n,s,a;s=[t,e,i(221),i(310),i(740),i(937),i(537),i(996)],n=function(e,t,i,n,s,a,r,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(a),y=r.debounce,w=r.inherit,_=l(o),x=window.HTMLElement,C=!!document.attachEvent;function k(){return C?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var T=y(function(){var e=function(){v(document.documentElement.childNodes)};k()?e():C?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)});function A(e){function t(){var i,n=e.extends,s=e.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),e.prototype=t.prototype,p(i,e),i}return t.prototype=e.prototype,t}function E(e,t){if(t=w({},t),(t=w(t,E.defaults)).id=e,b.set(e,t),b.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:x.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=w(Object.create(i),t.prototype,!0));var n={prototype:w(t.prototype,{createdCallback:function(){p(this,t)},attachedCallback:function(){f(this,t)},detachedCallback:function(){g(this,t)},attributeChangedCallback:function(e,i,n){m(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(T(),h.register(!!t.detached),b.isType(e,d))return A(t)}E.init=function(e){var t=e;return e?("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof x&&(t=[e]),v(t),e):e},E.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},E.version=_,E.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var D=window.skate;E.noConflict=function(){return window.skate=D,E},window.skate=E,t.exports=E},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},537:(e,t,i)=>{var n,s,a;s=[t,i(221)],n=function(e,t){"use strict";e.hasOwn=a,e.camelCase=r,e.elementContains=o,e.debounce=l,e.getClosestIgnoredElement=c,e.inherit=u,e.objEach=d,e.supportsNativeCustomElements=h,e.isValidNativeCustomElementName=p,Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function a(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function r(e){return e.split(/-/g).map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)}).join("")}function o(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)}function l(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},1))}}function c(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}}function u(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,a=0;a<s;a++){var r=n[a];if(i||void 0===e[r]){var o=Object.getOwnPropertyDescriptor(t,r);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[r]=t[r]:Object.defineProperty(e,r,o)}}return e}function d(e,t){for(var i in e)a(e,i)&&t(e[i],i)}function h(){return"function"==typeof document.registerElement}function p(e){return e.indexOf("-")>0}},void 0===(a="function"==typeof n?n.apply(t,s):n)||(e.exports=a)},996:(e,t)=>{var i,n,s;n=[t,e],i=function(e,t){"use strict";t.exports="0.13.17"},void 0===(s="function"==typeof i?i.apply(t,n):i)||(e.exports=s)},99:()=>{
85
85
  /**!
86
86
  * TableSorter 2.17.8 - Client-side table sorting with ease!
87
87
  * @requires jQuery v1.2.6+
@@ -101,9 +101,9 @@
101
101
  /**!
102
102
  * Modified by Atlassian.
103
103
  */
104
- !function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function r(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}function o(e){var s,a,o,l,c,u,d,h,p,f,g=e.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")),a={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,g.headers,l),p=t.getParserById(t.getData(c,u,"extractor")),h=t.getParserById(t.getData(c,u,"sorter")),d="false"===t.getData(c,u,"parser"),g.empties[l]=(t.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(t.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=t.getParserById("no-parser")),p||(p=!1),h||(h=r(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),a.parsers[l]=h,a.extractors[l]=p;v+=a.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=a.parsers,g.extractors=a.extractors}function l(s){var r,o,l,c,u,d,h,p,f,g,m,v,b,y=s.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&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],r=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=e(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=r.normalized.length-1,r.normalized[o][y.columns].$row=r.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[o]=e.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=a(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,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,r.normalized.push(f)}r.colMax=b,y.totalRows+=r.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var r,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(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=e(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=t.processTbody(i,l,!0),o=(r=v[d].normalized).length,u=0;u<o;u++)m.push(r[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(r[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),a||p.appender||t.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(e){return/^d/i.test(e)||1===e}function d(s){var a,r,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"></i>':"",f.$headers=e(s).find(f.selectorHeaders).each(function(i){r=e(this),a=t.getColumnData(s,f.headers,i,!0),f.headerContent[i]=e(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,e(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(r,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(r,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(r,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),o(e),l(e),y(n.$table,t,i)}function p(i){var n,s,a,r=i.config;r.$headers.each(function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each(function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)})}function g(e,t){return e&&e[t]&&e[t].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout(function(){m(i,n,s)},50);var a,r,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(r=n,d.$headers.each(function(){this===r||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)})),r=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);if((l=n.order[n.count])<2&&(d.sortList.push([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=t.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(r,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]===r&&(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([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}if(null!==d.sortAppend)for(a=d.sortAppend,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);p.trigger("sortBegin",i),setTimeout(function(){f(i),v(i),c(i),p.trigger("sortEnd",i)},1)}function v(e){var i,a,r,o,l,c,u,d,h,p,f=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].normalized.sort(function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((r=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(r="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],s[o],f,c[o],e):t["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],r,c[o],o,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,e):t["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,e,m)),d)return d}return n[m.columns].order-s[m.columns].order});m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(t,i){var n=t[0];n.isUpdating&&t.trigger("updateComplete",n),e.isFunction(i)&&i(t[0])}function y(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){b(e,n)},!0]):(b(e,n),t.applyWidget(e[0],!1))}function w(i){var n=i.config,r=n.$table;r.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(t,s){t.stopPropagation(),n.sortList=[],f(i),v(i),c(i),e.isFunction(s)&&s(i)}).bind("updateAll"+n.namespace,function(e,s,a){e.stopPropagation(),i.isUpdating=!0,t.refreshWidgets(i,!0,!0),t.restoreHeaders(i),d(i),t.bindEvents(i,n.$headers,!0),w(i),h(i,s,a)}).bind("update"+n.namespace+" updateRows"+n.namespace,function(e,t,n){e.stopPropagation(),i.isUpdating=!0,p(i),h(i,t,n)}).bind("updateCell"+n.namespace,function(t,s,o,l){t.stopPropagation(),i.isUpdating=!0,r.find(n.selectorRemove).remove();var c,u,d,h,p=r.find("tbody"),f=e(s),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=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?a(i,s,h):n.extractors[h].format(a(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,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(r,o,l))}).bind("addRows"+n.namespace,function(t,l,c,u){if(t.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=e(l).attr("role","row")).filter("tr").length,x=r.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?a(i,l[d].cells[f],f):n.extractors[f].format(a(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(r,c,u)}}).bind("updateComplete"+n.namespace,function(){i.isUpdating=!1}).bind("sorton"+n.namespace,function(n,a,o,u){var d=i.config;n.stopPropagation(),r.trigger("sortStart",this),function(t,i){var n,s,a,r,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,function(t,i){if(r=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+r+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=a.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":a.count=a.count+1,s=a.order[a.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[r,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],a.order),a.count=s>=0?s:n[1]%(l.sortReset?3:2)}})}(i,a),f(i),d.delayInit&&s(d.cache)&&l(i),r.trigger("sortBegin",this),v(i),c(i,u),r.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(o)&&o(i)}).bind("appendCache"+n.namespace,function(t,n,s){t.stopPropagation(),c(i,s),e.isFunction(n)&&n(i)}).bind("updateCache"+n.namespace,function(t,s){n.parsers&&n.parsers.length||o(i),l(i),e.isFunction(s)&&s(i)}).bind("applyWidgetId"+n.namespace,function(e,s){e.stopPropagation(),t.getWidgetById(s).format(i,n,n.widgetOptions)}).bind("applyWidgets"+n.namespace,function(e,n){e.stopPropagation(),t.applyWidget(i,n)}).bind("refreshWidgets"+n.namespace,function(e,n,s){e.stopPropagation(),t.refreshWidgets(i,n,s)}).bind("destroy"+n.namespace,function(e,n,s){e.stopPropagation(),t.destroy(i,n,s)}).bind("resetToLoadState"+n.namespace,function(){t.refreshWidgets(i,!0,!0),n=e.extend(!0,t.defaults,n.originalSettings),i.hasInitialized=!1,t.setup(i,n)})}t.version="2.17.8",t.parsers=[],t.widgets=[],t.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:[]},t.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"},t.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"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each(function(){var n=this,s=e.extend(!0,{},t.defaults,i);s.originalSettings=i,!n.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(n,s):t.setup(n,s)})},t.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var a=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);function r(e){return a.test(e)}var c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&!r(h)&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return s.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=e(n),v=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,e.data(n,"tablesorter",s),s.debug&&e.data(n,"startoveralltimer",new Date),s.supportsDataObject=((p=e.fn.jquery.split("."))[0]=parseInt(p[0],10),p[0]>1||1===p[0]&&parseInt(p[1],10)>=4),s.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},s.emptyTo=s.emptyTo.toLowerCase(),s.stringTo=s.stringTo.toLowerCase(),/tablesorter\-/.test(m.attr("class"))||(g=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=m.addClass(t.css.table+" "+s.tableClass+g).attr("role","grid"),s.$headers=m.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=m.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(t){var i,n,s=t.config;s.widthFixed&&0===s.$table.find("colgroup").length&&(i=e("<colgroup>"),n=e(t).width(),e(t.tBodies).not("."+s.cssInfoBlock).find("tr:first").children(":visible").each(function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))}),s.$table.prepend(i))}(n),o(n),s.totalRows=0,s.delayInit||l(n),t.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==m.data().sortlist?s.sortList=m.data().sortlist:v&&m.metadata()&&m.metadata().sortlist&&(s.sortList=m.metadata().sortlist),t.applyWidget(n,!0),s.sortList.length>0?m.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&t.applyWidget(n,!1)),s.showProcessing&&m.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,function(e){clearTimeout(s.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(s.processTimer=setTimeout(function(){t.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var a,r=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[r.$headers.index(r.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?r.$headers.eq(n).filter(a):r.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,r,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],r=e(o),u=(c=o.parentNode.rowIndex)+"-"+r.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),r.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],a=p;a<p+h;a++)f[a]="x"}return v+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter(function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0})),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var a,r=(t=e(t)[0]).config;!0!==n&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(i):i),i.find(r.selectorSort).add(i.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.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()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!r.cancelSelection;r.delayInit&&s(r.cache)&&l(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=r.$headers[i.index(c)]).sortDisabled||m(t,c,n)}}),r.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each(function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])})},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.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(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(r=parseInt(i.match(d.hex),16)))return-1;if(s>r)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),a=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,a.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[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},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));t.characterRegex=new RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return-1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,function(t,i){return e.inArray(t,l.widgets)===i}),e.each(l.widgets||[],function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)}),u.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),e.each(u,function(t,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),l.debug&&(r=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+r+" widget"+(1!==r?"s":""),a)))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||e.inArray(c[r].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(r)):""},t.formatFloat=function(t,i){return"string"!=typeof t||""===t?t:(t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n);var n},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},parsed:!0,type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){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(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)r=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){a=e(this),u.test(this.className)||r++,o=r%2==0,a.removeClass(s.zebra[o?1:0]).addClass(s.zebra[o?0:1])});n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},682:()=>{jQuery.fn.serializeObject=function(){var e={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),e[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){e[this.name]=this.value}),this.find("select[multiple]").each(function(){var t=jQuery(this),i=t.val();t.data("aui-ss")?e[this.name]=i?i[0]:"":e[this.name]=null!==i?i:[]}),e}},572:t=>{"use strict";t.exports=e},687:e=>{"use strict";e.exports=t},487:e=>{"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.r(r),a.d(r,{$:()=>je,AvatarBadged:()=>We,AvatarEl:()=>Xe,AvatarGroupEl:()=>ut,CalendarWidget:()=>Lc,CheckboxMultiselectEl:()=>lr,DatePicker:()=>$c,DropdownEl:()=>Yn,FancyFileInput:()=>ur,FocusManager:()=>Ru,Header:()=>Ac,I18n:()=>I18n,InlineDialog2:()=>$u,InlineDialogEl:()=>Oo,ItemCheckboxEl:()=>Un,ItemLinkEl:()=>Bn,ItemRadioEl:()=>Wn,LabelEl:()=>fr,LayerManager:()=>ju,MessageEl:()=>ts,NavigationEl:()=>Ro,ProgressBarEl:()=>Ko,ProgressiveDataSet:()=>zu,RestfulTable:()=>su,SectionEl:()=>Vn,SelectEl:()=>Jr,SpinnerEl:()=>_t,TabContainerEl:()=>bl,TabItemEl:()=>yl,TabPaneEl:()=>wl,ToggleEl:()=>fo,_addID:()=>sd,banner:()=>ht,bind:()=>C,clone:()=>Fu,contextPath:()=>ad,debounce:()=>Hu,debounceImmediate:()=>Bu,dialog2:()=>Mt,dim:()=>Uu,error:()=>m,escapeHtml:()=>Wu,flag:()=>cs,formValidation:()=>Vu,format:()=>b,id:()=>Yu,isClipped:()=>qu,keyCode:()=>Ku,layer:()=>Qu,log:()=>f,messages:()=>Gu,navigation:()=>$o,params:()=>Ju,populateParameters:()=>Zu,progressBars:()=>Go,responsiveheader:()=>Xu,select:()=>ed,sidebar:()=>Eu,tablessortable:()=>td,tabs:()=>id,toInit:()=>Fe,trigger:()=>k,unbind:()=>T,undim:()=>nd,version:()=>w,warn:()=>g,whenIType:()=>Pu});var e=a(687),t=a.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function o(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return o(),window[n][e]=t}var c=a(714),u=a.n(c);function d(e){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(e,t){let i=!1;if(t(()=>{i=!0}),i)return;const n=new MutationObserver(e=>{(function(e){for(const t of e)if("childList"===t.type)return!0;return!1})(e)&&t(()=>n.disconnect())});n.observe(e,{childList:!0})}(n,s=>{i=s;const a=t()(`input[type=${e}]`,n);a.each(function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)});a.length>0&&i()})},detached:function(e){t()(".aui-form-glyph",e).remove(),i&&i()}}}function h(e,t){var n=i(e);return void 0===t&&(t=!0),n.each(function(){this.disabled=!t})}function p(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}u()("checkbox",d("checkbox")),u()("radio",d("radio")),l("enable",h),l("inlineHelp",function(){i(document).on("click",".icon-inline-help",function(){var e=i(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")})});var f=p("log"),g=p("warn"),m=p("error");function v(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[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(a);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&&m('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(r,1));l=v.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t)if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0===--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=r(s[2],i),s=o(e);return n+=e.replace(t,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="9.12.17";l("version",y);const w=y,_=!1,x=i(window);function C(e,t,i){try{return"function"==typeof i?x.on(e,_,t,i):x.on(e,_,t)}catch(e){f("error while binding: ",e.message)}}function T(e,t){try{return x.off(e,t)}catch(e){f("error while unbinding: ",e.message)}}function k(e,t){try{return x.trigger(e,t)}catch(e){f("error while triggering: "+e.message)}}l("bind",C),l("trigger",k),l("unbind",T);const E={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function D(e){return e.replace(A,e=>E[e])}l("escapeHtml",D);const S=D;var I=Object.prototype.hasOwnProperty,M=[];function N(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function O(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,a=function(e){var t=new Error,i=t.stack||t.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[e+2]:n}(n||1)||"";if(!i||-1===M.indexOf(a)){M.push(a),i=!0;var r="DEPRECATED "+(t.deprecationType+" "||0)+"- "+(s=e,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion||"a future release")+".";t.alternativeName&&(r+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(r+=" "+t.extraInfo),a=""===a?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+a,t.extraObject?N(r+="\n",t.extraObject,a):N(r,a)}}}function L(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);O("'"+e.selector+"' pattern"+n,s)()}function P(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=O(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function R(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=P(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(e){}function j(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=P(e[t],n,i)}else!function(e,t,i){if($){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=O(i.displayName||t,i);Object.defineProperty(e,t,{get:function(){return s(),n},set:function(e){return n=e,s(),e}})}}(e,t,i)}function z(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)L(i,n[s]);!function(e){if(H.push(e),!B){B=new MutationObserver(function(e){e.forEach(function(e){for(var t=e.addedNodes,i=0;i<t.length;i++){var n=t[i];1===n.nodeType&&H.forEach(F(n))}})});var t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function F(e){return function(t){var i,n;i=e,n=t.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&L(t,e)}}const H=[];let B;function U(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var W;function V(e,t){W||(W=document.body),!0===e&&q();const n=!!V.$dim&&!V.$dim[0].hasAttribute("hidden");return V.$dim&&(V.$dim.remove(),V.$dim=null),V.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),V.$dim.appendTo(document.body),n||(U(V.$dim),V.cachedOverflow={overflow:W.style.overflow,overflowX:W.style.overflowX,overflowY:W.style.overflowY},W.style.overflowX="hidden",W.style.overflowY="hidden",W.style.overflow="hidden"),V.$dim.removeAttr("hidden"),t&&V.$dim.css({zIndex:t}),V.$dim}function Y(){V.$dim&&(V.$dim[0].setAttribute("hidden",""),W&&(W.style.overflow=V.cachedOverflow.overflow,W.style.overflowX=V.cachedOverflow.overflowX,W.style.overflowY=V.cachedOverflow.overflowY))}l("deprecate",{fn:P,construct:R,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(z(t))},prop:j,obj:function(e,t,n){for(var s in n=n||{},e)I.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,j(e,s,i.extend({},n)))},propertyDeprecationSupported:$,getMessageLogger:O});const q=O("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});l("dim",V),l("undim",Y);var K={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};l("keyCode",K);const Q=K;function G(e,t){window.define&&(0,window.define)(e,[],function(){return t});return t}const Z=u().noConflict();const J=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function X(e){return J(e).get("last-trigger")||ne(e)[0]}function ee(e,t){var i=t&&t.nodeType&&1===t.nodeType;return J(e).set("last-trigger",!!i&&t)}function te(e,t){var i=X(e);i&&t(i)}function ie(e,t){return Array.prototype.forEach.call(ne(e),t)}function ne(e){const t=window.frames,i=`[aria-controls="${e.id}"]`;let n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}const a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&g([`No triggers found for element (${e.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(" ")),r}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function ae(e){return"true"!==e.getAttribute("aria-disabled")}function re(e,t){if(ae(e)){var i=se(e);i&&i.message&&i.message(t)}}const oe={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(re(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",oe.click(e,t))},mouseenter(e,t){re(e,t)},mouseleave(e,t){re(e,t)},focus(e,t){re(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(se(e)).find(n).length>0})(e,t)||re(e,t)}};Object.keys(oe).forEach(function(e){const t=oe[e];i(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",function(i){t(i.currentTarget,function(e,t){const{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))})}),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 ae(this)}}}),G("aui/trigger"),function(){function e(e){return"visible"===i.css(e,"visibility")&&i(e).is(":visible")}function t(t,n){var s=t.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var a=t.parentNode,r=a.name,o=i("img[usemap=#"+r+"]").get();return!(!t.href||!r||"map"!==a.nodeName.toLowerCase())&&(o&&e(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=t.href||n;return(l?!t.disabled:c?u:n)&&e(t)}i.extend(i.expr.pseudos,{"aui-focusable":e=>t(e,!isNaN(i.attr(e,"tabindex"))),"aui-tabbable":function(e){var n=i.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&t(e,!s)}})}();var le="_aui-focus-restore";function ce(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ue(){this._focusTrapStack=[],this._handler}function de(e,t){if(0===e.length)return;if(t.keyCode!==Q.TAB)return;const n=t.shiftKey?-1:1,s=t.target,a=e[e.length-1],r=a.find(":aui-tabbable");if(!r.length&&ce(a)&&(a.trigger("focus"),t.preventDefault()),!r.length)return;const o=r.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=a.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(s)}if(e.length){const t=e.find(":aui-tabbable"),i=t.index(s)+n;if(!(i<0||i>=t.length))return;{const t=X(e.get(0));l=r.index(t)}}}l=l>-1?function(e,t,i,n){function s(e){return(e+i)%n.length}let a=s(t);if("radio"===e.type&&e.name)for(;n.eq(a).attr("name")===e.name&&a!==t;)a=s(a);if(a!==t&&"radio"===n.eq(a).attr("type")){const e=n.eq(a).attr("name"),t=n.filter(function(){return"radio"===this.type&&this.name===e}),s=t.filter(":checked");let r;r=s.length>0?s.first():i>0?t.first():t.last(),a=n.index(r)}return a}(s,l,n,r):0,"IFRAME"!==r.get(l).nodeName&&(r.eq(l).trigger("focus"),t.preventDefault())}let he;function pe(){return he||(he=new ue),he}ue.defaultFocusSelector=":aui-tabbable",ue.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(le,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||ue.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ce(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=de.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ue.prototype.exit=function(e){ce(e)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(e),1),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var t=document.activeElement;if(e[0]===t||e.has(t).length){i(t).trigger("blur");var n=function(e){return i(e.data(le))}(e);n.length&&(e.removeData(le),n.trigger("focus"))}},pe.global=pe(),l("FocusManager",pe);const fe=pe;function ge(e,t){var n="_aui-widget-"+e;return function(e,s){var a,r;i.isPlainObject(e)?r=e:(a=e,r=s);var o,l=a&&i(a);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,r||{})).$el).data(n,o),o}}let me;!function(){if(window.CustomEvent)try{const e=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default");if("name"!==e.type)throw new Error("Could not set custom name");if("y"!==e.detail.x)throw new Error("Could not set detail");return void(me=window.CustomEvent)}catch(e){}me=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented||(this.defaultPrevented=!0)}},i},me.prototype=window.Event.prototype}();const ve=me,be="_aui-internal-layer-",ye="_aui-internal-layer-global-";var we=i(document);function _e(e,t,i,n){!function(e,t){var i=window.getComputedStyle(e).transitionProperty;return!!i&&i.indexOf(t)>-1}(e,t)?i.call(e):e.addEventListener("transitionend",function s(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))})}function xe(e,t,n){var s=i.Event(be+t),a=i.Event(ye+t),r=new ve("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ve("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(r),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||a.isDefaultPrevented()||r.defaultPrevented||o.defaultPrevented)}function Ce(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function Te(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}Ce.prototype={below:function(){return Me.global.item(Me.global.indexOf(this.$el)-1)},above:function(){return Me.global.item(Me.global.indexOf(this.$el)+1)},changeSize:function(e,t){return this.$el.css("width",e),this.$el.css("height","content"===t?"":t),this},on:function(e,t){return this.$el.on(be+e,t),this},off:function(e,t){return this.$el.off(be+e,t),this},show:function(){return this.isVisible()||Me.global.indexOf(this.$el)>-1?this:xe(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Me.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return _e(this.$el.get(0),"opacity",function(){e.isVisible()||(this.style.display="none")},!0),Me.global.popUntil(this.$el,!0),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 e=Te(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=Te(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!xe(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&fe.global.exit(this.$el),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(be+"hide"),this.$el.trigger(ye+"hide",[this.$el]),!0)},_showLayer:function(e){let t=this.getDOMContainer();if(this.isBlanketed()||t){let e=t||"body";this.$el.parent().is(e)||this.$el.appendTo(e)}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",e),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&fe.global.enter(this.$el),this.$el.trigger(be+"show"),this.$el.trigger(ye+"show",[this.$el])}};var ke=ge("layer",Ce);function Ee(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function Ae(e,t){return Ee(e,function(e){return e[0]===t[0]})}function De(e){return Ee(e,function(e){return ke(e).isBlanketed()})}function Se(e,t){var i=De(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function Ie(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){s=e[a];var r=ke(s);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Me(){this._stack=[]}function Ne(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Me.global.indexOf(t)>-1}ke.on=function(e,t,i){return we.on(ye+e,t,i),this},ke.off=function(e,t,i){return we.off(ye+e,t,i),this},Me.prototype={push:function(e){var t=e instanceof i?e:i(e);if(Ae(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=ke(t),s=function(e){var t;if(e.length){var i=e[e.length-1],n=parseInt(i.css("z-index"),10);t=(isNaN(n)?0:n)+100}else t=0;return Math.max(3e3,t)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!X(e)}(t)){var n=De(this._stack);return void Ie(this._stack,++n,!1)}const s=function(e){var t=X(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);Ie(this._stack,++e,!1)}else Ie(this._stack,0,!1)},indexOf:function(e){return Ae(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach(function(e){let t=ke(e);t.isBlanketed()||t.isPersistent()||t.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ae(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=ke(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ae(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=ke(t);if(!a.isPersistent()&&!a.isBlanketed())return t;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(e=>e.attr("open"))||null},popUntil:function(e,t=!1){var n=e instanceof i?e:i(e),s=Ae(this._stack,n);if(-1===s)return null;const a=De(this._stack),r=ke(n),[o,l]=Ie(this._stack,s+1,r.isBlanketed(),t);return o&&r._hideLayer(t)?(this._stack.splice(s,1),Se(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=ke(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=De(this._stack);if(t<0)return null;var i=this._stack[t];if(ke(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Ae(this._stack,n);return Ie(this._stack,s,!0,e),n}return null}return Ie(this._stack,t,!0),Se(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Me.global.getTopLayer();if(t){var i,n=De(this._stack),s=ke(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Me.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=ke(t),!t||s.isPersistent())return;i=Ae(this._stack,t),Ie(this._stack,i,!0,e),Se(this._stack,n)}else i=Ae(this._stack,t),Ie(this._stack,i,!0,e),Se(this._stack,n)}}},we.on("keydown",function(e){e.keyCode===Q.ESCAPE&&(Me.global.popUntilTopPersistent(!0),e.preventDefault())}),we.on("click",".aui-blanket",function(e){Me.global.popUntilTopBlanketed(!0)&&e.preventDefault()}),we.on("click",function(e){var t=i(e.target);if(!t.closest(".aui-blanket").length){var n=t.closest("[aria-controls]"),s=t.closest(".aui-layer");if(!s.length&&!Ne(n)){const t=i.Event("aui-close-layers-on-outer-click");return we.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Me.global.hideAll()}if(!Ne(n)&&s.length){var a=Me.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&ke(a).hide()}}}),Me.global=new Me,ke.Manager=Me,l("layer",ke);const Oe=ke;l("LayerManager",Oe.Manager);Oe.Manager;const Le={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Pe=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",Le)(),e[t]}}));const Re=P(function(e){e||(e=Pe),i(".parameters input").each(function(){var t=this.value,n=this.title||this.id;i(this).hasClass("list")?e[n]?e[n].push(t):e[n]=[t]:e[n]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});l("populateParameters",Re);const $e=Re;i(function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),$e()}),l("$",i);const je=i;function ze(e){return i.when(i.ready).then(function(){setTimeout(function(){try{e.call(this,i)}catch(t){m("Failed to run init function: "+t.message,e,t,t.stack)}},1)}),this}l("toInit",ze);const Fe=ze;a(547);const He={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.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","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","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","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":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(e,...t){return Object.prototype.hasOwnProperty.call(this.keys,e)?b.apply(null,[this.keys[e]].concat(t)):e}},I18n=function(e){o(),"object"!=typeof window[n][s]&&(window[n][s]={});const t=window[n][s];for(const i in e)void 0===t[i]&&(t[i]=e[i]);return t}(He),Be="bottom-end",Ue=["top-start","top-end","bottom-start","bottom-end"],We=Z("aui-avatar-badged",{attributes:{placement:{value:Be,fallback(e,{newValue:t,oldValue:i}){((e,t,i)=>{const n=Ue.includes(t)?t:Be;i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)})(e,t,i)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var Ve=a(2),Ye=a.n(Ve);const qe=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Ke=(e,t)=>e.querySelector(t),Qe=(e,t,i)=>{const n=Ke(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},Ge=e=>{if(e.hasAttribute("src"))Je(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=qe.get(t);Je(e,i)}},Ze=(e,t,i)=>Ke(e,"img").setAttribute(t,i),Je=(e,t)=>Ze(e,"src",t),Xe=Z("aui-avatar",{template:Ye()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(e,{newValue:t,oldValue:i}){Qe(e,t,i)},type(e,{newValue:t,oldValue:i}){Qe(e,t,i),Ge(e)},src(e,{newValue:t}){Je(e,t)},alt:{value:"",fallback(e,{newValue:t}){((e,t)=>{Ze(e,"alt",t)})(e,t)}},title(e,{newValue:t}){((e,t)=>{Ze(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",Ge(e),(e=>null!==e.querySelector("aui-avatar-badged"))(e)&&e.setAttribute("role","img")}}),et="medium",tt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},it=(e,t)=>{const i=e.querySelectorAll("aui-avatar"),n=[...i].slice(4);rt(i,t);const s=e.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const a=nt(t,n);e.appendChild(a)},nt=(e,t)=>{const i=document.createElement("div"),n=st(`+${t.length}`),s=at();return t.forEach(e=>{s.append(e)}),i.classList.add("aui-avatar-group-dropdown"),i.style.left=ot(e,4.2),i.appendChild(n),i.appendChild(s),i},st=e=>{const t=document.createElement("button");return t.classList.add("aui-avatar-group-dropdown-button","aui-avatar-inner"),t.innerText=e,t.setAttribute("aria-expanded",!1),t.setAttribute("aria-haspopup","dialog"),t},at=()=>{const e=document.createElement("div");return e.classList.add("aui-avatar-group-dropdown-menu"),e},rt=(e,t)=>{e.forEach((e,i)=>{const n=i>=4;e.classList.add(n?"aui-avatar-group-dropdown-item":"aui-avatar-group-item"),n?e.setAttribute("size","medium"):(e.setAttribute("size",t),e.style.left=ot(t,i),e.style.zIndex=""+(5-i))})},ot=(e,t)=>{const i=tt[e];return`${(i-.25*i)*t}px`};document.addEventListener("click",e=>{const t=e.target.matches(".aui-avatar-group-dropdown-button"),i=e.target.closest(".aui-avatar-group-dropdown");(t||null===i)&&(t&&(i.classList.contains("aui-avatar-group-dropdown-show")?lt(i):ct(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach(e=>{e!==i&&lt(e)}))}),document.addEventListener("keydown",e=>{if("Escape"!==e.key)return;const t=document.querySelector(".aui-avatar-group-dropdown-show");t&&lt(t)});const lt=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.remove("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","false")},ct=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.add("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","true")},ut=Z("aui-avatar-group",{attributes:{size:{value:et,fallback(e,{newValue:t,oldValue:i}){const n=(s=t,Object.keys(tt).includes(s)?s:et);var s;((e,t,i)=>{i&&e.classList.remove(`aui-avatar-group-${i}`),e.classList.add(`aui-avatar-group-${t}`)})(e,n,i),Z.init(e),it(e,n)}}},created(e){e.classList.add("aui-avatar-group")}});new MutationObserver(function(e){e.forEach(function(e){const t=e.target;((e,t)=>e.removedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.removedNodes[0].classList.contains("aui-avatar-group-item"))(e,t)&&it(t,t.getAttribute("size")),((e,t)=>e.addedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.addedNodes[0].classList.contains("aui-avatar"))(e,t)&&setTimeout(()=>{it(t,t.getAttribute("size"))},0)})}).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function dt(e){const t=document.getElementById("header");if(!t)throw new Error('Unable to find the application header. Please ensure that an element with the ID "header" is present in the DOM');const i=function({body:e="",type:t="error"}){const i=document.createElement("div");i.className=`aui-banner aui-banner-${t}`,i.setAttribute("role","alert"),i.innerHTML=e;const n=document.createElement("div");return n.innerText=`${t}`,n.classList.add("assistive"),i.prepend(n),i}(e);return function(e,t){t.prepend(e),U(e)}(i,t),function(e){const t=e.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.8.0",deprecationType:"ATTRIBUTE",extraInfo:"The hidden attribute on the banner is no longer effective. Future banner function calls won't remove banners with this attribute."});t.forEach(function(e){i(),e.remove()})}(t),i}G("aui/banner",dt),l("banner",dt);const ht=dt;var pt=a(487);const ft={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},gt={filled:!1,size:ft.MEDIUM.name},mt="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.",vt=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:mt}),bt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:mt});function yt(e){let t=ft.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(ft).map(e=>e.toLowerCase());i.indexOf(e)>-1&&(t=e)}return t}function wt(e){const{px:t,radius:i}=(0,pt.find)(ft,t=>t.name===e._data.size)||ft.MEDIUM;!function(e,t,i){const n=e.querySelector("svg"),s=e.querySelector("circle");n.setAttribute("size",t),n.setAttribute("height",t),n.setAttribute("width",t),n.setAttribute("viewBox",`0 0 ${t} ${t}`);const a=t/2;s.setAttribute("cx",a),s.setAttribute("cy",a),s.setAttribute("r",i)}(e,t,i),e._data.filled?function(e,t){const i=e.parentNode;if(i&&1===i.nodeType){const n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),a=s.top+s.height/2,r=n.top+t/2;e.querySelector("svg").style.top=a-r+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const _t=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',wt(e)},attached(e){wt(e)},attributes:{filled:{created:function(e){vt(),e._data.filled=!0,wt(e)},removed:function(e){e._data.filled=!1,wt(e)}},size(e,t){e._data.size=yt(t.newValue),wt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,pt.defaults)({},gt))},set _data(e){return this.__data=e},set filled(e){bt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=yt(e);this.setAttribute("size",t)}}});function xt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Ct(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new _t,e._spinner.setAttribute("size",ft.SMALL.name)},prototype:{busy:function(){return Ct(this)||xt(this)?(g("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 Ct(this)||!xt(this)?(g("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 Ct(this)?(g("It is not valid to call isBusy() on an input button."),!1):xt(this)}}}),G("aui/button");const Tt="aui-close-button",kt=`.${Tt}`,Et=`<button type="button" class="${Tt}" aria-label="${I18n.getText("aui.words.close")}">`,At={"aui-focus":"false","aui-blanketed":"true"};function Dt(e){var t;this._handlers=new WeakMap,this.$el=i(e||`\n <section role="dialog" aria-modal="true" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${Et}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),this.$header=this.$el.find(".aui-dialog2-header"),this.$content=this.$el.find(".aui-dialog2-content"),this.$footer=this.$el.find(".aui-dialog2-footer"),t=this.$el,i.each(At,function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)})}Dt.prototype.on=function(e,t){const i=this.$el;if(!this._handlers.get(t)){const n=function(e){e.target===i.get(0)&&t.apply(this,arguments)};Oe(i).on(e,n),this._handlers.set(t,n)}return this},Dt.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Oe(i).off(e,n),this._handlers.delete(t)),this},Dt.prototype.show=function(){return Oe(this.$el).show(),this},Dt.prototype.hide=function(){return Oe(this.$el).hide(),this},Dt.prototype.remove=function(){return Oe(this.$el).remove(),this},Dt.prototype.isVisible=function(){return Oe(this.$el).isVisible()};var St=ge("dialog2",Dt),It=new Set;St.on=function(e,t){return It.has(t)||(Oe.on(e,".aui-dialog2",t),It.add(t)),this},St.off=function(e,t){return It.has(t)&&(Oe.off(e,".aui-dialog2",t),It.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${kt}`,function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),St(i(e.target).closest(".aui-dialog2")).hide())}),St.on("show",function(e,t){!function(e){const t=e.querySelector(kt);t&&(O(`Dialog2 [${kt}]`,{removeInVersion:"10.0.0",sinceVersion:"9.6.0",extraInfo:"Replace it with another actionable element inside your Dialog which will trigger closing of the modal.",deprecationType:"MARKUP"})(),t.setAttribute("tabindex","0"));e.setAttribute("tabindex","-1");const i=e.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"9.6.0",extraInfo:"Replace [data-aui-focus-selector] attribute with HTML [autofocus] attribute",deprecationType:"ATTRIBUTE"})();const n=e.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout(()=>n.focus(),0);if(i){const t=e.querySelector(i);if(t)return t.blur(),void setTimeout(()=>t.focus(),0)}const s=[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"));if(s.length){let e=s.shift();return e.classList.contains(Tt)&&(e=s.shift()),void(e&&(e.blur(),setTimeout(()=>e.focus(),0)))}e.focus()}(t[0])}),St.on("hide",function(e,t){const i=Oe(t);t.data("aui-remove-on-hide")&&i.remove()}),G("aui/dialog2",St),l("dialog2",St);const Mt=St;var Nt,Ot,Lt=navigator.userAgent.toLowerCase(),Pt=(/msie/.test(Lt),/windows nt 5.1/.test(Lt),/windows nt 6.0/.test(Lt),/windows nt 6.1/.test(Lt),/mac os x/.test(Lt));function Rt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $t(e){return e instanceof Rt(e).Element||e instanceof Element}function jt(e){return e instanceof Rt(e).HTMLElement||e instanceof HTMLElement}function zt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Rt(e).ShadowRoot||e instanceof ShadowRoot)}var Ft=Math.max,Ht=Math.min,Bt=Math.round;function Ut(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wt(){return!/^((?!chrome|android).)*safari/i.test(Ut())}function Vt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,a=1;t&&jt(e)&&(s=e.offsetWidth>0&&Bt(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Bt(n.height)/e.offsetHeight||1);var r=($t(e)?Rt(e):window).visualViewport,o=!Wt()&&i,l=(n.left+(o&&r?r.offsetLeft:0))/s,c=(n.top+(o&&r?r.offsetTop:0))/a,u=n.width/s,d=n.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Yt(e){var t=Rt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){return(($t(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qt(e){return Vt(Kt(e)).left+Yt(e).scrollLeft}function Gt(e){return Rt(e).getComputedStyle(e)}function Zt(e){var t=Gt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Jt(e,t,i){void 0===i&&(i=!1);var n,s,a=jt(t),r=jt(t)&&function(e){var t=e.getBoundingClientRect(),i=Bt(t.width)/e.offsetWidth||1,n=Bt(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Kt(t),l=Vt(e,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!i)&&(("body"!==qt(t)||Zt(o))&&(c=(n=t)!==Rt(n)&&jt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Yt(n)),jt(t)?((u=Vt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Qt(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Xt(e){var t=Vt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ei(e){return"html"===qt(e)?e:e.assignedSlot||e.parentNode||(zt(e)?e.host:null)||Kt(e)}function ti(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:jt(e)&&Zt(e)?e:ti(ei(e))}function ii(e,t){var i;void 0===t&&(t=[]);var n=ti(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),a=Rt(n),r=s?[a].concat(a.visualViewport||[],Zt(n)?n:[]):n,o=t.concat(r);return s?o:o.concat(ii(ei(r)))}function ni(e){return["table","td","th"].indexOf(qt(e))>=0}function si(e){return jt(e)&&"fixed"!==Gt(e).position?e.offsetParent:null}function ai(e){for(var t=Rt(e),i=si(e);i&&ni(i)&&"static"===Gt(i).position;)i=si(i);return i&&("html"===qt(i)||"body"===qt(i)&&"static"===Gt(i).position)?t:i||function(e){var t=/firefox/i.test(Ut());if(/Trident/i.test(Ut())&&jt(e)&&"fixed"===Gt(e).position)return null;var i=ei(e);for(zt(i)&&(i=i.host);jt(i)&&["html","body"].indexOf(qt(i))<0;){var n=Gt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var ri="top",oi="bottom",li="right",ci="left",ui="auto",di=[ri,oi,li,ci],hi="start",pi="end",fi="viewport",gi="popper",mi=di.reduce(function(e,t){return e.concat([t+"-"+hi,t+"-"+pi])},[]),vi=[].concat(di,[ui]).reduce(function(e,t){return e.concat([t,t+"-"+hi,t+"-"+pi])},[]),bi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yi(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||s(e)}),n}function wi(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&zt(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xi(e,t,i){return t===fi?_i(function(e,t){var i=Rt(e),n=Kt(e),s=i.visualViewport,a=n.clientWidth,r=n.clientHeight,o=0,l=0;if(s){a=s.width,r=s.height;var c=Wt();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:a,height:r,x:o+Qt(e),y:l}}(e,i)):$t(t)?function(e,t){var i=Vt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):_i(function(e){var t,i=Kt(e),n=Yt(e),s=null==(t=e.ownerDocument)?void 0:t.body,a=Ft(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Ft(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+Qt(e),l=-n.scrollTop;return"rtl"===Gt(s||i).direction&&(o+=Ft(i.clientWidth,s?s.clientWidth:0)-a),{width:a,height:r,x:o,y:l}}(Kt(e)))}function Ci(e,t,i,n){var s="clippingParents"===t?function(e){var t=ii(ei(e)),i=["absolute","fixed"].indexOf(Gt(e).position)>=0&&jt(e)?ai(e):e;return $t(i)?t.filter(function(e){return $t(e)&&wi(e,i)&&"body"!==qt(e)}):[]}(e):[].concat(t),a=[].concat(s,[i]),r=a[0],o=a.reduce(function(t,i){var s=xi(e,i,n);return t.top=Ft(s.top,t.top),t.right=Ht(s.right,t.right),t.bottom=Ht(s.bottom,t.bottom),t.left=Ft(s.left,t.left),t},xi(e,r,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Ti(e){return e.split("-")[0]}function ki(e){return e.split("-")[1]}function Ei(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ai(e){var t,i=e.reference,n=e.element,s=e.placement,a=s?Ti(s):null,r=s?ki(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case ri:t={x:o,y:i.y-n.height};break;case oi:t={x:o,y:i.y+i.height};break;case li:t={x:i.x+i.width,y:l};break;case ci:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=a?Ei(a):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case hi:t[c]=t[c]-(i[u]/2-n[u]/2);break;case pi:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function Di(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Si(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function Ii(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,a=i.strategy,r=void 0===a?e.strategy:a,o=i.boundary,l=void 0===o?"clippingParents":o,c=i.rootBoundary,u=void 0===c?fi:c,d=i.elementContext,h=void 0===d?gi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Di("number"!=typeof m?m:Si(m,di)),b=h===gi?"reference":gi,y=e.rects.popper,w=e.elements[f?b:h],_=Ci($t(w)?w:w.contextElement||Kt(e.elements.popper),l,u,r),x=Vt(e.elements.reference),C=Ai({reference:x,element:y,strategy:"absolute",placement:s}),T=_i(Object.assign({},y,C)),k=h===gi?T:x,E={top:_.top-k.top+v.top,bottom:k.bottom-_.bottom+v.bottom,left:_.left-k.left+v.left,right:k.right-_.right+v.right},A=e.modifiersData.offset;if(h===gi&&A){var D=A[s];Object.keys(E).forEach(function(e){var t=[li,oi].indexOf(e)>=0?1:-1,i=[ri,oi].indexOf(e)>=0?"y":"x";E[e]+=D[i]*t})}return E}var Mi={placement:"bottom",modifiers:[],strategy:"absolute"};function Ni(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Oi(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,a=void 0===s?Mi:s;return function(e,t,i){void 0===i&&(i=a);var s,r,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){var s="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:$t(e)?ii(e):e.contextElement?ii(e.contextElement):[],popper:ii(t)};var r,c,h=function(e){var t=yi(e);return bi.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}((r=[].concat(n,o.options.modifiers),c=r.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return o.orderedModifiers=h.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var a=s({state:o,name:t,instance:u,options:n}),r=function(){};l.push(a||r)}}),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(Ni(t,i)){o.rects={reference:Jt(t,ai(i),"fixed"===o.options.strategy),popper:Xt(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],a=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(e){u.forceUpdate(),e(o)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(s())})})),r}),destroy:function(){d(),c=!0}};if(!Ni(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(i).then(function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)}),u}}var Li={passive:!0};const Pi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,a=void 0===s||s,r=n.resize,o=void 0===r||r,l=Rt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",i.update,Li)}),o&&l.addEventListener("resize",i.update,Li),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",i.update,Li)}),o&&l.removeEventListener("resize",i.update,Li)}},data:{}};const Ri={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ai({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var $i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(e){var t,i=e.popper,n=e.popperRect,s=e.placement,a=e.variation,r=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=r.x,p=void 0===h?0:h,f=r.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),y=ci,w=ri,_=window;if(c){var x=ai(i),C="clientHeight",T="clientWidth";if(x===Rt(i)&&"static"!==Gt(x=Kt(i)).position&&"absolute"===o&&(C="scrollHeight",T="scrollWidth"),s===ri||(s===ci||s===li)&&a===pi)w=oi,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===ci||(s===ri||s===oi)&&a===pi)y=li,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:o},c&&$i),A=!0===u?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Bt(i*s)/s||0,y:Bt(n*s)/s||0}}({x:p,y:g},Rt(i)):{x:p,y:g};return p=A.x,g=A.y,l?Object.assign({},E,((k={})[w]=b?"0":"",k[y]=v?"0":"",k.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",k)):Object.assign({},E,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const zi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,a=i.adaptive,r=void 0===a||a,o=i.roundOffsets,l=void 0===o||o,c={placement:Ti(t.placement),variation:ki(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ji(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ji(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Fi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];jt(s)&&qt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});jt(n)&&qt(n)&&(Object.assign(n.style,a),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,a=void 0===s?[0,0]:s,r=vi.reduce(function(e,i){return e[i]=function(e,t,i){var n=Ti(e),s=[ci,ri].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*s,[ci,li].indexOf(n)>=0?{x:o,y:r}:{x:r,y:o}}(i,t.rects,a),e},{}),o=r[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}};var Bi={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e){return e.replace(/left|right|bottom|top/g,function(e){return Bi[e]})}var Wi={start:"end",end:"start"};function Vi(e){return e.replace(/start|end/g,function(e){return Wi[e]})}const Yi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,a=void 0===s||s,r=i.altAxis,o=void 0===r||r,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=t.options.placement,v=Ti(m),b=l||(v===m||!f?[Ui(m)]:function(e){if(Ti(e)===ui)return[];var t=Ui(e);return[Vi(e),t,Vi(t)]}(m)),y=[m].concat(b).reduce(function(e,i){return e.concat(Ti(i)===ui?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=ki(n),d=u?o?mi:mi.filter(function(e){return ki(e)===u}):di,h=d.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=d);var p=h.reduce(function(t,i){return t[i]=Ii(e,{placement:i,boundary:s,rootBoundary:a,padding:r})[Ti(i)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,C=!0,T=y[0],k=0;k<y.length;k++){var E=y[k],A=Ti(E),D=ki(E)===hi,S=[ri,oi].indexOf(A)>=0,I=S?"width":"height",M=Ii(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?D?li:ci:D?oi:ri;w[I]>_[I]&&(N=Ui(N));var O=Ui(N),L=[];if(a&&L.push(M[A]<=0),o&&L.push(M[N]<=0,M[O]<=0),L.every(function(e){return e})){T=E,C=!1;break}x.set(E,L)}if(C)for(var P=function(e){var t=y.find(function(t){var i=x.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return T=t,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}t.placement!==T&&(t.modifiersData[n]._skip=!0,t.placement=T,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(e,t,i){return Ft(e,Ht(t,i))}const Ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,a=void 0===s||s,r=i.altAxis,o=void 0!==r&&r,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=Ii(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=Ti(t.placement),b=ki(t.placement),y=!b,w=Ei(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,T=t.rects.popper,k="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var S,I="y"===w?ri:ci,M="y"===w?oi:li,N="y"===w?"height":"width",O=x[w],L=O+m[I],P=O-m[M],R=p?-T[N]/2:0,$=b===hi?C[N]:T[N],j=b===hi?-T[N]:-C[N],z=t.elements.arrow,F=p&&z?Xt(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[I],U=H[M],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-B-E.mainAxis:$-W-B-E.mainAxis,Y=y?-C[N]/2+R+W+U+E.mainAxis:j+W+U+E.mainAxis,q=t.elements.arrow&&ai(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(S=null==A?void 0:A[w])?S:0,G=O+Y-Q,Z=qi(p?Ht(L,O+V-Q-K):L,O,p?Ft(P,G):P);x[w]=Z,D[w]=Z-O}if(o){var J,X="x"===w?ri:ci,ee="x"===w?oi:li,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],ae=-1!==[ri,ci].indexOf(v),re=null!=(J=null==A?void 0:A[_])?J:0,oe=ae?ne:te-C[ie]-T[ie]-re+E.altAxis,le=ae?te+C[ie]+T[ie]-re-E.altAxis:se,ce=p&&ae?function(e,t,i){var n=qi(e,t,i);return n>i?i:n}(oe,te,le):qi(p?oe:ne,te,p?le:se);x[_]=ce,D[_]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]};const Qi={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,a=i.elements.arrow,r=i.modifiersData.popperOffsets,o=Ti(i.placement),l=Ei(o),c=[ci,li].indexOf(o)>=0?"height":"width";if(a&&r){var u=function(e,t){return Di("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Si(e,di))}(s.padding,i),d=Xt(a),h="y"===l?ri:ci,p="y"===l?oi:li,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=ai(a),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,y=u[h],w=v-d[c]-u[p],_=v/2-d[c]/2+b,x=qi(y,_,w),C=l;i.modifiersData[n]=((t={})[C]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&wi(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Zi(e){return[ri,li,oi,ci].some(function(t){return e[t]>=0})}const Ji={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,r=Ii(t,{elementContext:"reference"}),o=Ii(t,{altBoundary:!0}),l=Gi(r,n),c=Gi(o,s,a),u=Zi(l),d=Zi(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Xi=Oi({defaultModifiers:[Pi,Ri,zi,Fi,Hi,Yi,Ki,Qi,Ji]});const en={"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 tn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function nn(e){return tn(e,"alignment")||"right middle"}function sn(e){let[t,i]=nn(e).split(" ");return{side:t,snap:i}}function an(e){let t=function(e){let t=tn(e,"alignment-container")||window;return"string"==typeof t&&(t=document.querySelector(t)),t}(e),i="left";if(t&&t!==window&&t!==document||(t=document.documentElement),t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE){let n=t.getBoundingClientRect();e.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function rn(e,t){const i=sn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=nn(e);return en[t]||"right"}(e):(i.snap=an(t),n="submenu"===i.side?en[("right"===i.snap?"left":"right")+" top"]:en[`${i.side} ${i.snap}`]),n}const on={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function ln(e,t,i={}){const n=sn(e),s=rn(e,t),a=on[s.split("-")[0]],r=t.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:a,boundary:r||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:r?"document":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("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return i.enabled&&i.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={fn:i.onEvents}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),e}}];r&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=r.getBoundingClientRect(),i=window.getComputedStyle(r),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=s([t.top,i.paddingTop,i.borderTop]),o=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=o,e.offsets.reference.top+=a,e.offsets.popper.left+=o,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=Xi(t,e,l),function(e,t,i){const n="aui-alignment-side-"+t,s="aui-alignment-snap-"+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}ln.prototype={destroy(){return this.popper.destroy(),this},changeTarget(e){const t=e.jquery?e[0]:e;return t&&t!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=t,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}};const cn=ln;function un(e){let t=new i.Deferred;return e?setTimeout(()=>{e.parentElement||t.resolve()},12):t.reject(),t.promise()}var dn,hn,pn=0;function fn(e){if(dn=pn+++"",hn=e?e+dn:"aui-uid-"+dn,document.getElementById(hn)){if(hn=hn+"-"+(new Date).getTime(),document.getElementById(hn))throw new Error('Timestamped fallback ID "'+hn+'" exists.');return hn}return hn}l("id",fn);const gn=fn;function mn(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function vn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var bn="unloaded",yn="loading",wn="error";function _n(e,t){J(e).set("loading-state","success"),e.innerHTML=function(e){return e.map(function(e){var t=e.items.map(function(e){function t(t){return e[t]?`${t} ="true"`:""}function i(t){return e[t]?`${t}="${e[t]}"`:""}var n="aui-item-"+e.type;return`\n <${n} ${i("for")} ${i("href")} ${t("interactive")}\n ${t("checked")} ${t("disabled")} ${t("hidden")}>\n ${S(e.content)}\n </${n}>`}).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`}).join("\n")}(t),Z.init(e)}function xn(e){J(e).set("loading-state",wn),J(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Cn(e){e.src&&J(e).get("loading-state")!==yn&&(!function(e){J(e).set("loading-state",yn),J(e).set("hasErrorBeenShown",!1),te(e,function(e){e.setAttribute("aria-busy","true")}),e.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(e),i.ajax(e.src).done(function(t,i,n){200===n.status?_n(e,t):xn(e)}).fail(function(){xn(e)}).always(function(){!function(e){te(e,function(e){e.setAttribute("aria-busy","false")})}(e)}))}function Tn(e,t){return i(e).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(t).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function kn(e){return Tn(e,()=>!0)}function En(e){return Tn(e,(e,t)=>!mn(t))}function An(e){kn(e).each((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||mn(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i})}function Dn(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Sn(e,t){var n=t&&t.hasSubmenu&&t.hasSubmenu(),s="submenu auto"===e.getAttribute("data-aui-alignment");!n&&s&&function(e){var t=i(e),n=t.data("previous-data-aui-alignment");n?e.setAttribute("data-aui-alignment",n):e.removeAttribute("data-aui-alignment");t.removeData("previous-data-aui-alignment"),t.data("had-data-aui-alignment-static")||e.removeAttribute("data-aui-alignment-static");t.removeData("had-data-aui-alignment-static")}(e);var a=e.hasAttribute("data-aui-alignment");n&&!s?(!function(e){var t=i(e);e.hasAttribute("data-aui-alignment")&&t.data("previous-data-aui-alignment",e.getAttribute("data-aui-alignment"));t.data("had-data-aui-alignment-static",e.hasAttribute("data-aui-alignment-static"))}(e),e.setAttribute("data-aui-alignment","submenu auto"),e.setAttribute("data-aui-alignment-static",!0)):a||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Dn(e),e._auiAlignment=new cn(e,t,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:t.hasSubmenu&&t.hasSubmenu()?[-3,0]:[0,3]}),e._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",function(){this.hasAttribute("resolved")||(Z.init(this),O("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"})())}),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",function(e){const t=i(e.currentTarget);if(t.is(".aui-dropdown2-active"))return;if(t.closest(".aui-dropdown2").length)return;const n=t.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&t.is(".aui-dropdown2-trigger")&&(s.blur(),t.trigger("aui-button-invoke"),e.preventDefault());const a=n.find(":focus");a.length&&t.is(".aui-dropdown2-trigger")&&a.blur()});var In=!1;function Mn(){In=!0}function Nn(e){Oe(e),e.addEventListener("aui-layer-show",function(t){e===t.target&&(!function(e){var t=i(e);["disabled","interactive","active","checked"].forEach(e=>{t.find(`.${e}`).addClass(`aui-dropdown2-${e}`)})}(e),An(e),i(e).trigger("aui-dropdown2-show"),te(e,function(t){vn(t,!0),e._returnTo=function(e,t){var i=t.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||e.parentNode}(e,t)}))}),e.addEventListener("aui-layer-hide",function(t){e===t.target&&(i(e).trigger("aui-dropdown2-hide"),e._auiAlignment&&e._auiAlignment.destroy(),e._returnTo&&e.parentNode&&e.parentNode!==e._returnTo&&e._returnTo.appendChild(e),e.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),kn(e).removeClass("active aui-dropdown2-active"),te(e,function(e){var t;vn(e,!1),t=!0===In,In=!1,t&&e.focus()}),delete e.isSubmenu)})}function On(e){var t=i(e);function n(t){return i(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",function(t){n(t.target)&&(t.keyCode===Q.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===Q.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===Q.LEFT?e.isSubmenu&&(Mn(),e.hide(),t.preventDefault()):t.keyCode===Q.ESCAPE?Mn():t.keyCode===Q.TAB&&(Mn(),e.hideAll(!1)))});t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(t){if(!n(t.target))return;const s=t.currentTarget,a=t.keyCode,r=a===Q.ENTER,o=a===Q.SPACE;r&&i(s).is("a[href], button")||"click"!==t.type&&!r&&!o||function(t){const i=t.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void t.preventDefault();t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||e.hideAll(!0)}(t)}),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(t){if(!n(t.target))return;let s=i(Oe(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),a=Oe(s).above();n!==e&&Oe(s).hide(),s=i(a).get(0)}})}function Ln(e){e.classList.add("aui-dropdown2"),e.setAttribute("tabindex","-1"),e.hasAttribute("data-container")&&(e.setAttribute("data-aui-alignment-container",e.getAttribute("data-container")),e.removeAttribute("data-container")),Nn(e),On(e),i(e).on("click keydown",".aui-dropdown2-checkbox",function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),t.isEnabled()&&(t.isChecked()?t.uncheck():t.check())}}),i(e).on("click keydown",".aui-dropdown2-radio",function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(t).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each(function(){this.uncheck()}),t.check())}})}i(window).on("resize",(0,pt.debounce)(function(){i(".aui-dropdown2").each(function(e,t){Z.init(t),t.isVisible()&&t.hide()})},1e3,!0));var Pn={toggle:function(e){this.isVisible()?this.hide():this.show(e)},show:function(e){const t=this;return te(t,e=>{vn(e,!1)}),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Oe(t).show(),te(t,function(e){vn(e,!0),Sn(t,e)}),setTimeout(()=>function(e,t={}){if(t&&t.type&&-1===t.type.indexOf("mouse")){const i=t.type.indexOf("key")>-1;if(e.isSubmenu)e.focusItem(0);else if(i)if(t.keyCode===Q.UP){const t=En(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e),0),this},hide:function(){return Oe(this).hide(),this},hideAll:function(e=!0){const t=function(e){let t=Oe(e);for(;;){const e=t.below();if(!e)break;if(!e.get(0).isDropdown)break;t=Oe(e)}return t}(this);return t.isVisible()?(t.hide(),e&&te(t.el,e=>{setTimeout(()=>{e.focus()},0),ee(t.el,null)}),this):this},focusNext:function(){var e,t=En(this),i=document.activeElement;t.last()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1))):this.focusItem(0)},focusPrevious:function(){var e,t=En(this),i=document.activeElement;t.first()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1))):this.focusItem(t.length-1)},focusItem:function(e){const t=En(this);"number"==typeof e&&(e=t.get(e));const n=i(e);n.focus(),t.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Oe(this).isVisible()},isDropdown:!0},Rn={created:function(e){var t=e.children[0];t.setAttribute("aria-disabled","true"),t.classList.add("disabled","aui-dropdown2-disabled")},removed:function(e){var t=e.children[0];t.setAttribute("aria-disabled","false"),t.classList.remove("disabled","aui-dropdown2-disabled")}},$n={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},jn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new ve("change",{bubbles:!0}))},removed:function(e){var t=e.children[0];t.classList.remove("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!1),e.dispatchEvent(new ve("change",{bubbles:!0}))}},zn={created:function(e){Rn.created(e)},removed:function(e){Rn.removed(e)}},Fn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const Hn=function(e=""){return e.split(" ").map(e=>e.trim()).filter(e=>e)},Bn=Z("aui-item-link",{template:Ye()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Rn,interactive:$n,hidden:zn,href:Fn("href"),"item-id":Fn("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),i(t).addClass("aui-dropdown2-sub-trigger")},updated:function(e){e.children[0].setAttribute("aria-controls",e.getAttribute("for"))},removed:function(e){var t=e.children[0];t.removeAttribute("aria-controls"),i(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...Hn(t.oldValue)),t.newValue&&i.classList.add(...Hn(t.newValue))}}}),[Un,Wn]=["checkbox","radio"].map(e=>Z(`aui-item-${e}`,{template:Ye()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Fn("id"),disabled:Rn,interactive:$n,checked:jn,hidden:zn}})),Vn=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(e,t){const i=gn();var n=e.children[0],s=e.children[1];n.textContent=t.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(e){e.classList.add("aui-dropdown2-section")}}),Yn=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Oe(e),J(e).set("loading-state",bn),Z.init(e)},detached:function(e){un(e).then(()=>Dn(e))},attributes:{src:{}},prototype:Pn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===bn,i=J(e).get("hasErrorBeenShown");(t||i)&&Cn(e),J(e).get("loading-state")===wn&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:Ln,prototype:Pn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:Ln,prototype:Pn}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==e)return;if(n.preventDefault(),!e.isEnabled())return;const a=document.getElementById(t);if(!a)return void m('Could not find a dropdown with id "'+t+'" in the DOM.');const r=i(e);return r.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),r.parents().hasClass("aui-header")&&a.classList.add("aui-dropdown2-in-header"),s?a.show(n):a.toggle(n),a.isSubmenu=e.hasSubmenu(),a}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-expanded",!1),"A"===e.nodeName&&!e.href&&e.setAttribute("href",`#${t}`),i(e).on("aui-button-invoke",n).on("click",n).on("keydown",function(t){if(t.currentTarget!==e)return;const i=t.keyCode===Q.ENTER||t.keyCode===Q.SPACE,s=t.keyCode===Q.RIGHT&&e.hasSubmenu(),a=(t.keyCode===Q.UP||t.keyCode===Q.DOWN)&&!e.hasSubmenu();i?n(t):(a||s)&&n(t,document.activeElement===e)}).on("mouseenter",function(i){if(i.currentTarget!==e)return;if(i.preventDefault(),!e.isEnabled())return;const n=document.getElementById(t);if(n)return function(e){var t=J(e).get("loading-state")===bn,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Cn(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;m('Could not find a dropdown with id "'+t+'" 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(e){e.classList.add("aui-dropdown2-trigger"),Z.init(e)}}),["checkbox","radio"].map(e=>Z(`aui-dropdown2-${e}`,{type:Z.type.CLASSNAME,created:function(t){const i="true"===t.getAttribute("aria-checked")||t.classList.contains("checked")||t.classList.contains("aui-dropdown2-checked");t.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",i),t.setAttribute("tabindex","0"),Pt&&t.setAttribute("role",`menuitem${e}`)},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-${e}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${e}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}}));const qn={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"ARIA ATTRIBUTE",extraInfo:'The "aria-expanded" attribute will no longer act as an indicator for the expander if it needs to be expanded. Please update the expander in accordance with AUI guidelines.'}),"replace-selector":O("Expander [data-replace-selector] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"DATA ATTRIBUTE",extraInfo:'The attribute "data-replace-selector" will no longer have any functionality. It is recommended to update the expander following AUI guidelines.'}),"short-content":O("Expander [.aui-expander-short-content]",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},Kn=e=>{const t=i(`#${e.attr("aria-controls")}`),n=t.parent().is(e),s=n?e.find(".aui-expander-short-content"):null;return t.attr("aria-expanded")&&(qn["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),{$content:t,isTriggerParent:n,$shortContent:s,isExpanded:t.hasClass("expanded"),height:t.css("min-height"),isCollapsible:!1!==e.data("collapsible"),textReplacement:e.attr("data-replace-text")}};const Qn=(e,t)=>{if(!t)return;const i=e.data("replace-selector");if(i){qn["replace-selector"]();const n=e.find(i);return e.attr("data-replace-text",n.text()),void n.text(t)}const n=e.find(":not(:has(*)):first"),s=n.length?n:e;e.attr("data-replace-text",s.text()),s.text(t)},Gn={"aui-expander-invoke":function(e){const t=i(e.currentTarget),{isCollapsible:n,isExpanded:s}=Kn(t);s&&n?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){!function(e){const{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=Kn(e);e.attr("aria-expanded","true"),t.addClass("expanded"),t.removeAttr("hidden"),Qn(e,s),i&&n.hide(),e.trigger("aui-expander-expanded")}(i(e.currentTarget))},"aui-expander-collapse":function(e){!function(e){const{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=Kn(e);Qn(e,s),e.attr("aria-expanded","false"),t.removeClass("expanded"),i&&n.show(),0===t.outerHeight()&&t.attr("hidden",""),e.trigger("aui-expander-collapsed")}(i(e.currentTarget))},"click.aui-expander":function(e){i(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};i(document).on(Gn,".aui-expander-trigger"),i(document).ready(function(){i(".aui-expander-trigger").each(function(){!function(e){const{$content:t,isTriggerParent:i,isExpanded:n}=Kn(e);e.data("replace-selector")&&qn["replace-selector"](),t.attr("aria-expanded")&&(qn["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),(i?e.find(".aui-expander-short-content"):null)&&qn["short-content"](),0===t.outerHeight()&&!n&&t.attr("hidden",""),e.attr("aria-expanded",n?"true":"false")}(i(this))})});function Zn(e,t,n){i(e||".aui-message.aui-remove-on-hide").each(function(){Xn(i(this),t,n)})}function Jn(e){i(e||"div.aui-message.closeable").each(function(){const e=i(this),t=e.find(kt),n=t.length>0?t.first():i(Et);var s;e.addClass("closeable"),e.append(n),(s=e).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",kt,function(e){i(e.target).closest(".aui-message").closeMessage()}).on("keydown.aui-message",kt,function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())})})}function Xn(e,t,n){t=void 0!==t?t:5e3,n=void 0!==n?n:500,i(e||"div.aui-message.fadeout").each(function(){const e=i(this);let s=!1,a=!1;function r(){e.stop(!0,!1).delay(t).fadeOut(n,function(){e.closeMessage()})}function o(){e.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!a}e.focusin(function(){s=!0,o()}).focusout(function(){s=!1,l()&&r()}).hover(function(){a=!0,o()},function(){a=!1,l()&&r()}),r()})}const es={setup:function(){Zn(),Jn(),Xn()},makeRemoveOnHide:Zn,makeCloseable:Jn,makeFadeout:Xn,createMessage:function(e){this[e]=function(t,n){n||(n=t,t="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function(e,t){const{id:n,closeable:s,removeOnHide:a,fadeout:r,title:o,body:l}=e,c=function(e,t){const{a11yTypeLabel:i}=e;if(""===i)return"";if(null!=i)return i;if(null==i)switch(t){case"error":return I18n.getText("aui.messagecomponent.error.label");case"warning":return I18n.getText("aui.messagecomponent.warning.label");case"info":return I18n.getText("aui.messagecomponent.info.label");case"confirmation":return I18n.getText("aui.messagecomponent.confirmation.label");case"change":return I18n.getText("aui.messagecomponent.change.label");case"generic":case"success":case"hint":return"";default:throw Error(`Provide \`a11yTypeLabel\` for AUI message of custom type ${t}`)}}(e,t),u=c?`<strong hidden>${c}: </strong>`:"",d=n?`${n}-title`:"",h=o?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${S(o)}</strong></p>`:"",p=`<div class="aui-message" role="note" ${d?`aria-labelledby="${d}"`:""}>${h}</div>`,f=i(p).append(i.parseHTML(l||"")).addClass(a?"aui-remove-on-hide":"").addClass(s?"closeable":"").addClass(r?"fadeout":"").addClass(`aui-message-${t}`);n&&(/[#'".\s]/g.test(n)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):f.attr("id",n));return f}(n,e);return function(e,t,i){"prepend"===t?e.prependTo(i):"before"===t?e.insertBefore(i):"after"===t?e.insertAfter(i):e.appendTo(i)}(s,n.insert,t),n.removeOnHide&&(console.warn&&console.warn("Use of AUI Message `removeOnHide` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0."),Zn(s,n.delay,n.duration)),n.closeable&&Jn(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0."),Xn(s,n.delay,n.duration)),s}}};i.fn.closeMessage=function(){const e=i(this);e.hasClass("aui-message")&&(e.hasClass("closeable")||e.hasClass("aui-remove-on-hide"))&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),i(document).trigger("aui-message-close",[this]))},es.createMessage("generic"),es.createMessage("error"),es.createMessage("warning"),es.createMessage("info"),es.createMessage("confirmation"),es.createMessage("change"),es.createMessage("success"),es.createMessage("hint");const ts=Z("aui-message",{created:function(e){const t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",es[i](e,{body:t,id:e.getAttribute("id"),a11yTypeLabel:e.getAttribute("a11yTypeLabel"),removeOnHide:e.getAttribute("removeOnHide"),closeable:e.getAttribute("closeable"),delay:e.getAttribute("delay"),duration:e.getAttribute("duration"),fadeout:e.getAttribute("fadeout"),title:e.getAttribute("title")}),e.setAttribute("role","none")}});i(function(){es.setup()}),j(es,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(es,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),l("messages",es);const is='a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary, [tabindex^="0"], [tabindex^="1"], [tabindex^="2"], [tabindex^="3"], [tabindex^="4"], [tabindex^="5"], [tabindex^="6"], [tabindex^="7"], [tabindex^="8"], [tabindex^="9"]',ns="aui-flag-container",ss={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function as(e){const t=(0,pt.defaults)(e,ss);t.title=(t.title||"").toString().trim();const n=function({body:e,title:t,close:n,type:s,ariaLive:a,ariaLabel:r,ariaDescription:o}){const l=`<div class="aui-message">${t?`<p class="title"><strong>${S(t)}</strong></p>`:""}</div>`;r||(r=function(e){switch(e){case"success":return I18n.getText("aui.flag.default-aria-label.success");case"warning":return I18n.getText("aui.flag.default-aria-label.warning");case"error":return I18n.getText("aui.flag.default-aria-label.error");default:return I18n.getText("aui.flag.default-aria-label.info")}}(s));o||(o="");const c=i(l).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(is).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":S(r),"aria-hidden":"false","aria-live":S(a),role:d,...u?{"data-aui-focus-selector":is.split(", ").map(e=>`.aui-message ${e}`).join(", "),"data-aui-focus":"true"}:{},...o?{"aria-description":S(o)}:{}}).append(c)}(t);return function(e){const t=e[0];t.close=function(){os(e)}}(n),"auto"===t.close?(rs(n),"alert"===n.attr("role")&&function(e,t){e.find(".aui-message").addClass("aui-will-close"),setTimeout(function(){e[0].close()},t)}(n,t.duration)):"manual"===t.close&&rs(n),function(){const e=ls();if(e){const t=e.querySelectorAll(".aui-flag:not([open])");Array.from(t).map(e=>e.parentNode.removeChild(e))}else i("body").prepend('<div id="'+ns+'"></div>')}(),function(e){const t=ls();e.appendTo(t),U(e),e.removeAttr("hidden").attr("open","")}(n),setTimeout(function(){"alertdialog"===n.attr("role")&&fe.global.enter(n)},0),n.get(0)}function rs(e){const t=i(Et);return t.on("click",function(){os(e)}),t.on("keypress",function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(os(e),t.preventDefault())}),e.find(".aui-message").append(t)[0]}function os(e){const t=e.get(0);return"alertdialog"===e.attr("role")&&fe.global.exit(e),t.removeAttribute("open"),t.setAttribute("inert",""),t.setAttribute("aria-hidden",!0),t.style.display="none",t.dispatchEvent(new ve("aui-flag-close",{bubbles:!0})),t}function ls(){return document.getElementById(ns)}G("aui/flag",as),l("flag",as);const cs=as;
105
- /*! @license DOMPurify 3.4.17 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.17/LICENSE */
104
+ !function(e){"use strict";e.extend({tablesorter:new function(){var t=this;function i(){var e=arguments[0],t=arguments.length>1?Array.prototype.slice.call(arguments):e;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(e)?"error":/warn/i.test(e)?"warn":"log"](t):alert(t)}function n(e,t){i(e+" ("+((new Date).getTime()-t.getTime())+"ms)")}function s(e){for(var t in e)return!1;return!0}function a(i,n,s){if(!n)return"";var a,r=i.config,o=r.textExtraction||"",l="";return l="basic"===o?e(n).attr(r.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(a=t.getColumnData(i,o,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function r(e,n,s,r){for(var o,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[r],r),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+r+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}function o(e){var s,a,o,l,c,u,d,h,p,f,g=e.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")),a={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,g.headers,l),p=t.getParserById(t.getData(c,u,"extractor")),h=t.getParserById(t.getData(c,u,"sorter")),d="false"===t.getData(c,u,"parser"),g.empties[l]=(t.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(t.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=t.getParserById("no-parser")),p||(p=!1),h||(h=r(e,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),a.parsers[l]=h,a.extractors[l]=p;v+=a.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=a.parsers,g.extractors=a.extractors}function l(s){var r,o,l,c,u,d,h,p,f,g,m,v,b,y=s.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&&t.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],r=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=e(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=r.normalized.length-1,r.normalized[o][y.columns].$row=r.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[o]=e.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=a(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,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,r.normalized.push(f)}r.colMax=b,y.totalRows+=r.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var r,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(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=e(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=t.processTbody(i,l,!0),o=(r=v[d].normalized).length,u=0;u<o;u++)m.push(r[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(r[u][p.columns].$row);t.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),a||p.appender||t.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(e){return/^d/i.test(e)||1===e}function d(s){var a,r,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=t.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===t.css.icon?t.css.icon:f.cssIcon+" "+t.css.icon)+'"></i>':"",f.$headers=e(s).find(f.selectorHeaders).each(function(i){r=e(this),a=t.getColumnData(s,f.headers,i,!0),f.headerContent[i]=e(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,e(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(r,[i,c]))&&"string"==typeof o&&(c=o),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(r,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(r,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(r,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),r.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,r.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow).attr("role","row"),f.tabIndex&&r.attr("tabindex",0)}).attr({scope:"col",role:"columnheader"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),o(e),l(e),y(n.$table,t,i)}function p(i){var n,s,a,r=i.config;r.$headers.each(function(o,l){s=e(l),a=t.getColumnData(i,r.headers,o,!0),n="false"===t.getData(l,a,"sorter")||"false"===t.getData(l,a,"parser"),l.sortDisabled=n,s[n?"addClass":"removeClass"]("sorter-false").attr("aria-disabled",""+n),i.id&&(n?s.removeAttr("aria-controls"):s.attr("aria-controls",i.id))})}function f(i){var n,s,a,r=i.config,o=r.sortList,l=o.length,c=t.css.sortNone+" "+r.cssNone,u=[t.css.sortAsc+" "+r.cssAsc,t.css.sortDesc+" "+r.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(r.$extraHeaders).removeClass(u.join(" "));for(r.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=r.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}r.$headers.not(".sorter-false").each(function(){var i=e(this),n=this.order[(this.count+1)%(r.sortReset?3:2)],s=i.text()+": "+t.language[i.hasClass(t.css.sortAsc)?"sortAsc":i.hasClass(t.css.sortDesc)?"sortDesc":"sortNone"]+t.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)})}function g(e,t){return e&&e[t]&&e[t].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout(function(){m(i,n,s)},50);var a,r,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(r=n,d.$headers.each(function(){this===r||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)})),r=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);if((l=n.order[n.count])<2&&(d.sortList.push([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=t.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(r,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]===r&&(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([r,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([r+o,l])}if(null!==d.sortAppend)for(a=d.sortAppend,o=0;o<a.length;o++)a[o][0]!==r&&d.sortList.push(a[o]);p.trigger("sortBegin",i),setTimeout(function(){f(i),v(i),c(i),p.trigger("sortEnd",i)},1)}function v(e){var i,a,r,o,l,c,u,d,h,p,f=0,m=e.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=e.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),a=0;a<w;a++)c=m.cache[a].colMax,m.cache[a].normalized.sort(function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((r=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(r="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],s[o],f,c[o],e):t["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],r,c[o],o,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,e):t["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,e,m)),d)return d}return n[m.columns].order-s[m.columns].order});m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function b(t,i){var n=t[0];n.isUpdating&&t.trigger("updateComplete",n),e.isFunction(i)&&i(t[0])}function y(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){b(e,n)},!0]):(b(e,n),t.applyWidget(e[0],!1))}function w(i){var n=i.config,r=n.$table;r.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(t,s){t.stopPropagation(),n.sortList=[],f(i),v(i),c(i),e.isFunction(s)&&s(i)}).bind("updateAll"+n.namespace,function(e,s,a){e.stopPropagation(),i.isUpdating=!0,t.refreshWidgets(i,!0,!0),t.restoreHeaders(i),d(i),t.bindEvents(i,n.$headers,!0),w(i),h(i,s,a)}).bind("update"+n.namespace+" updateRows"+n.namespace,function(e,t,n){e.stopPropagation(),i.isUpdating=!0,p(i),h(i,t,n)}).bind("updateCell"+n.namespace,function(t,s,o,l){t.stopPropagation(),i.isUpdating=!0,r.find(n.selectorRemove).remove();var c,u,d,h,p=r.find("tbody"),f=e(s),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");s=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?a(i,s,h):n.extractors[h].format(a(i,s,h),i,s,h),c="no-parser"===n.parsers[h].id?"":n.parsers[h].format(u,i,s,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(r,o,l))}).bind("addRows"+n.namespace,function(t,l,c,u){if(t.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=e(l).attr("role","row")).filter("tr").length,x=r.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?a(i,l[d].cells[f],f):n.extractors[f].format(a(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(r,c,u)}}).bind("updateComplete"+n.namespace,function(){i.isUpdating=!1}).bind("sorton"+n.namespace,function(n,a,o,u){var d=i.config;n.stopPropagation(),r.trigger("sortStart",this),function(t,i){var n,s,a,r,o,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,function(t,i){if(r=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+r+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=a.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":a.count=a.count+1,s=a.order[a.count%(l.sortReset?3:2)];break;default:s=0}o=0===t?s:o,n=[r,parseInt(s,10)||0],l.sortList.push(n),s=e.inArray(n[1],a.order),a.count=s>=0?s:n[1]%(l.sortReset?3:2)}})}(i,a),f(i),d.delayInit&&s(d.cache)&&l(i),r.trigger("sortBegin",this),v(i),c(i,u),r.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(o)&&o(i)}).bind("appendCache"+n.namespace,function(t,n,s){t.stopPropagation(),c(i,s),e.isFunction(n)&&n(i)}).bind("updateCache"+n.namespace,function(t,s){n.parsers&&n.parsers.length||o(i),l(i),e.isFunction(s)&&s(i)}).bind("applyWidgetId"+n.namespace,function(e,s){e.stopPropagation(),t.getWidgetById(s).format(i,n,n.widgetOptions)}).bind("applyWidgets"+n.namespace,function(e,n){e.stopPropagation(),t.applyWidget(i,n)}).bind("refreshWidgets"+n.namespace,function(e,n,s){e.stopPropagation(),t.refreshWidgets(i,n,s)}).bind("destroy"+n.namespace,function(e,n,s){e.stopPropagation(),t.destroy(i,n,s)}).bind("resetToLoadState"+n.namespace,function(){t.refreshWidgets(i,!0,!0),n=e.extend(!0,t.defaults,n.originalSettings),i.hasInitialized=!1,t.setup(i,n)})}t.version="2.17.8",t.parsers=[],t.widgets=[],t.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:[]},t.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"},t.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"},t.log=i,t.benchmark=n,t.construct=function(i){return this.each(function(){var n=this,s=e.extend(!0,{},t.defaults,i);s.originalSettings=i,!n.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(n,s):t.setup(n,s)})},t.setup=function(n,s){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return s.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var a=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);function r(e){return a.test(e)}var c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&!r(h)&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return s.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=e(n),v=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,e.data(n,"tablesorter",s),s.debug&&e.data(n,"startoveralltimer",new Date),s.supportsDataObject=((p=e.fn.jquery.split("."))[0]=parseInt(p[0],10),p[0]>1||1===p[0]&&parseInt(p[1],10)>=4),s.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},s.emptyTo=s.emptyTo.toLowerCase(),s.stringTo=s.stringTo.toLowerCase(),/tablesorter\-/.test(m.attr("class"))||(g=""!==s.theme?" tablesorter-"+s.theme:""),s.table=n,s.$table=m.addClass(t.css.table+" "+s.tableClass+g).attr("role","grid"),s.$headers=m.find(s.selectorHeaders),s.namespace?s.namespace="."+s.namespace.replace(/\W/g,""):s.namespace=".tablesorter"+Math.random().toString(16).slice(2),s.$table.children().children("tr").attr("role","row"),s.$tbodies=m.children("tbody:not(."+s.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),s.$table.find("caption").length&&s.$table.attr("aria-labelledby","theCaption"),s.widgetInit={},s.textExtraction=s.$table.attr("data-text-extraction")||s.textExtraction||"basic",d(n),function(t){var i,n,s=t.config;s.widthFixed&&0===s.$table.find("colgroup").length&&(i=e("<colgroup>"),n=e(t).width(),e(t.tBodies).not("."+s.cssInfoBlock).find("tr:first").children(":visible").each(function(){i.append(e("<col>").css("width",parseInt(e(this).width()/n*1e3,10)/10+"%"))}),s.$table.prepend(i))}(n),o(n),s.totalRows=0,s.delayInit||l(n),t.bindEvents(n,s.$headers,!0),w(n),s.supportsDataObject&&void 0!==m.data().sortlist?s.sortList=m.data().sortlist:v&&m.metadata()&&m.metadata().sortlist&&(s.sortList=m.metadata().sortlist),t.applyWidget(n,!0),s.sortList.length>0?m.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&t.applyWidget(n,!1)),s.showProcessing&&m.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,function(e){clearTimeout(s.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(s.processTimer=setTimeout(function(){t.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var a,r=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[r.$headers.index(r.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?r.$headers.eq(n).filter(a):r.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,r,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<t.length;i++)for(l=t[i].cells,n=0;n<l.length;n++){for(o=l[n],r=e(o),u=(c=o.parentNode.rowIndex)+"-"+r.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),s=0;s<g[c].length+1;s++)if(void 0===g[c][s]){p=s;break}for(m[u]=p,v=Math.max(p,v),r.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],a=p;a<p+h;a++)f[a]="x"}return v+1},t.isProcessing=function(i,n,s){var a=(i=e(i))[0].config,r=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(r=r.filter(function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0})),i.add(r).addClass(t.css.processing+" "+a.cssProcessing)):i.add(r).removeClass(t.css.processing+" "+a.cssProcessing)},t.processTbody=function(t,i,n){var s;if(t=e(t)[0],n)return t.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=e.fn.detach?i.detach():i.remove();s=e(t).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),t.isProcessing=!1},t.clearTableBody=function(t){e(t)[0].config.$tbodies.children().detach()},t.bindEvents=function(t,i,n){var a,r=(t=e(t)[0]).config;!0!==n&&(r.$extraHeaders=r.$extraHeaders?r.$extraHeaders.add(i):i),i.find(r.selectorSort).add(i.filter(r.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(r.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(r.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()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!r.cancelSelection;r.delayInit&&s(r.cache)&&l(t),c=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(c=r.$headers[i.index(c)]).sortDisabled||m(t,c,n)}}),r.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},t.restoreHeaders=function(i){var n=e(i)[0].config;n.$table.find(n.selectorHeaders).each(function(i){e(this).find("."+t.css.headerIn).length&&e(this).html(n.headerContent[i])})},t.destroy=function(i,n,s){if((i=e(i)[0]).hasInitialized){t.refreshWidgets(i,!0,!0);var a=e(i),r=i.config,o=a.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+r.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",r.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),a.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(r.namespace+" ")),r.$headers.add(c).removeClass([t.css.header,r.cssHeader,r.cssAsc,r.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(r.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(r.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+r.tableClass+" tablesorter-"+r.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},t.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},t.sortNatural=function(e,i){if(e===i)return 0;var n,s,a,r,o,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(r=parseInt(i.match(d.hex),16)))return-1;if(s>r)return 1}for(n=e.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),a=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,a.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[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},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:-r||-1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:r||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var r=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==r?"boolean"==typeof r?r?-1:1:r||1:""===i&&0!==r?"boolean"==typeof r?r?1:-1:-r||-1:t.sortNatural(i,e)},t.sortText=function(e,t){return e>t?1:e<t?-1:0},t.getTextValue=function(e,t,i){if(i){var n,s=e?e.length:0,a=i+t;for(n=0;n<s;n++)a+=e.charCodeAt(n);return t*a}return 0},t.sortNumericAsc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,a,r){if(e===i)return 0;var o=r.config,l=o.string[o.empties[a]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},t.replaceAccents=function(e){var i,n="[",s=t.characterEquivalents;if(!t.characterRegex){for(i in t.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],t.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));t.characterRegex=new RegExp(n+"]")}if(t.characterRegex.test(e))for(i in s)"string"==typeof i&&(e=e.replace(t.characterRegexArray[i],i));return e},t.isValueInArray=function(e,t){var i,n=t.length;for(i=0;i<n;i++)if(t[i][0]===e)return i;return-1},t.addParser=function(e){var i,n=t.parsers.length,s=!0;for(i=0;i<n;i++)t.parsers[i].id.toLowerCase()===e.id.toLowerCase()&&(s=!1);s&&t.parsers.push(e)},t.getParserById=function(e){if("false"==e)return!1;var i,n=t.parsers.length;for(i=0;i<n;i++)if(t.parsers[i].id.toLowerCase()===e.toString().toLowerCase())return t.parsers[i];return!1},t.addWidget=function(e){t.widgets.push(e)},t.hasWidget=function(t,i){return(t=e(t)).length&&t[0].config&&t[0].config.widgetInit[i]||!1},t.getWidgetById=function(e){var i,n,s=t.widgets.length;for(i=0;i<s;i++)if((n=t.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===e.toLowerCase())return n},t.applyWidget=function(i,s){var a,r,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(a=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,function(t,i){return e.inArray(t,l.widgets)===i}),e.each(l.widgets||[],function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)}),u.sort(function(e,t){return e.priority<t.priority?-1:e.priority===t.priority?0:1}),e.each(u,function(t,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=e.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),l.debug&&(r=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+r+" widget"+(1!==r?"s":""),a)))},t.refreshWidgets=function(n,s,a){var r,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(r=0;r<u;r++)c[r]&&c[r].id&&(s||e.inArray(c[r].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[r].id+'"'),c[r].hasOwnProperty("remove")&&o.widgetInit[c[r].id]&&(c[r].remove(n,o,o.widgetOptions),o.widgetInit[c[r].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,r="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),a=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?r+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?r+=s[n]:i&&void 0!==i[n]?r+=i[n]:" "!==a&&a.match(" "+n+"-")&&(r=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(r)):""},t.formatFloat=function(t,i){return"string"!=typeof t||""===t?t:(t=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?t.replace(/,/g,""):t.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(t)&&(t=t.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(t),isNaN(n)?e.trim(t):n);var n},t.isDigit=function(e){return!isNaN(e)||/^[\-+(]?\d+[)]?$/.test(e.toString().replace(/[,.'"\s]/g,""))}}});var t=e.tablesorter;e.fn.extend({tablesorter:t.construct}),t.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),t.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=e.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?t.replaceAccents(i):i),i},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"currency",is:function(e){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((e||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=t.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?e.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),t.addParser({id:"ipAddress",is:function(e){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(e)},format:function(e,i){var n,s=e?e.split("."):"",a="",r=s.length;for(n=0;n<r;n++)a+=("00"+s[n]).slice(-3);return e?t.formatFloat(a,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(t){return t?e.trim(t.replace(/(https?|ftp|file):\/\//,"")):t},parsed:!0,type:"text"}),t.addParser({id:"isoDate",is:function(e){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(e)},format:function(e,i){return e?t.formatFloat(""!==e?new Date(e.replace(/-/g,"/")).getTime()||e:"",i):e},type:"numeric"}),t.addParser({id:"percent",is:function(e){return/(\d\s*?%|%\s*?\d)/.test(e)&&e.length<15},format:function(e,i){return e?t.formatFloat(e.replace(/%/g,""),i):e},type:"numeric"}),t.addParser({id:"usLongDate",is:function(e){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(e)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date(e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"shortDate",is:function(e){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((e||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(e,i,n,s){if(e){var a=i.config,r=a.$headers.filter("[data-column="+s+"]:last"),o=r.length&&r[0].dateFormat||t.getData(r,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,a=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[a]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var a,r,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)r=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){a=e(this),u.test(this.className)||r++,o=r%2==0,a.removeClass(s.zebra[o?1:0]).addClass(s.zebra[o?0:1])});n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,r=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<r.length;s++)(a=e.tablesorter.processTbody(t,r.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,a,!1)}})}(jQuery)},682:()=>{jQuery.fn.serializeObject=function(){var e={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),e[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){e[this.name]=this.value}),this.find("select[multiple]").each(function(){var t=jQuery(this),i=t.val();t.data("aui-ss")?e[this.name]=i?i[0]:"":e[this.name]=null!==i?i:[]}),e}},572:t=>{"use strict";t.exports=e},687:e=>{"use strict";e.exports=t},487:e=>{"use strict";e.exports=i}},s={};function a(e){var t=s[e];if(void 0!==t)return t.exports;var i=s[e]={exports:{}};return n[e].call(i.exports,i,i.exports,a),i.exports}a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var i in t)a.o(t,i)&&!a.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{"use strict";a.r(r),a.d(r,{$:()=>je,AvatarBadged:()=>We,AvatarEl:()=>Xe,AvatarGroupEl:()=>ut,CalendarWidget:()=>Fc,CheckboxMultiselectEl:()=>fr,DatePicker:()=>Uc,DropdownEl:()=>Yn,FancyFileInput:()=>mr,FocusManager:()=>Bu,Header:()=>Oc,I18n:()=>I18n,InlineDialog2:()=>Uu,InlineDialogEl:()=>zo,ItemCheckboxEl:()=>Un,ItemLinkEl:()=>Bn,ItemRadioEl:()=>Wn,LabelEl:()=>wr,LayerManager:()=>Wu,MessageEl:()=>ts,NavigationEl:()=>Bo,ProgressBarEl:()=>el,ProgressiveDataSet:()=>Vu,RestfulTable:()=>uu,SectionEl:()=>Vn,SelectEl:()=>so,SpinnerEl:()=>_t,TabContainerEl:()=>kl,TabItemEl:()=>Tl,TabPaneEl:()=>Al,ToggleEl:()=>wo,_addID:()=>ud,banner:()=>ht,bind:()=>C,clone:()=>Yu,contextPath:()=>dd,debounce:()=>qu,debounceImmediate:()=>Ku,dialog2:()=>It,dim:()=>Qu,error:()=>m,escapeHtml:()=>Gu,flag:()=>cs,formValidation:()=>Zu,format:()=>b,id:()=>Ju,isClipped:()=>Xu,keyCode:()=>ed,layer:()=>td,log:()=>f,messages:()=>id,navigation:()=>Uo,params:()=>sd,populateParameters:()=>nd,progressBars:()=>il,responsiveheader:()=>ad,select:()=>rd,sidebar:()=>Nu,tablessortable:()=>od,tabs:()=>ld,toInit:()=>Fe,trigger:()=>T,unbind:()=>k,undim:()=>cd,version:()=>w,warn:()=>g,whenIType:()=>Hu});var e=a(687),t=a.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function o(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return o(),window[n][e]=t}var c=a(714),u=a.n(c);function d(e){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(e,t){let i=!1;if(t(()=>{i=!0}),i)return;const n=new MutationObserver(e=>{(function(e){for(const t of e)if("childList"===t.type)return!0;return!1})(e)&&t(()=>n.disconnect())});n.observe(e,{childList:!0})}(n,s=>{i=s;const a=t()(`input[type=${e}]`,n);a.each(function(e,i){t()('<span class="aui-form-glyph"></span>').insertAfter(i)});a.length>0&&i()})},detached:function(e){t()(".aui-form-glyph",e).remove(),i&&i()}}}function h(e,t){var n=i(e);return void 0===t&&(t=!0),n.each(function(){this.disabled=!t})}function p(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}u()("checkbox",d("checkbox")),u()("radio",d("radio")),l("enable",h),l("inlineHelp",function(){i(document).on("click",".icon-inline-help",function(){var e=i(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")})});var f=p("log"),g=p("warn"),m=p("error");function v(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,a=/^(\d+)([#<])(.+)/,r=function(t,r){var o,l="";if(o=t.match(i))l=r.length>++t?r[t]:"";else if(o=t.match(n))l=r.length>++o[1]?r[o[1]]:"";else if(o=t.match(s)){var c=r.length>++o[1]?r[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(a);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&&m('The format "'+t+'" from message "'+e+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(r,1));l=v.apply(null,b)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var a=e.charAt(s);if("'"==a&&(t=!t),!t)if("{"===a)0===n&&(i=s),n++;else if("}"===a&&n>0&&0===--n){var r=[];return r.push(e.substring(0,s+1)),r.push(e.substring(0,i)),r.push(e.substring(i+1,s)),r}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=r(s[2],i),s=o(e);return n+=e.replace(t,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="9.12.19";l("version",y);const w=y,_=!1,x=i(window);function C(e,t,i){try{return"function"==typeof i?x.on(e,_,t,i):x.on(e,_,t)}catch(e){f("error while binding: ",e.message)}}function k(e,t){try{return x.off(e,t)}catch(e){f("error while unbinding: ",e.message)}}function T(e,t){try{return x.trigger(e,t)}catch(e){f("error while triggering: "+e.message)}}l("bind",C),l("trigger",T),l("unbind",k);const A={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},E=new RegExp(`[${Object.keys(A).join("")}]`,"g");function D(e){return e.replace(E,e=>A[e])}l("escapeHtml",D);const S=D;var M=Object.prototype.hasOwnProperty,I=[];function N(){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,arguments)}function O(e,t){if("function"==typeof e)return e;var i=!1;return t=t||{},function(n){var s,a=function(e){var t=new Error,i=t.stack||t.stacktrace,n=i&&i.replace(/^Error\n/,"")||"";return n?(n=n.split("\n"))[e+2]:n}(n||1)||"";if(!i||-1===I.indexOf(a)){I.push(a),i=!0;var r="DEPRECATED "+(t.deprecationType+" "||0)+"- "+(s=e,((s+="")?s.charAt(0).toUpperCase()+s.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion||"a future release")+".";t.alternativeName&&(r+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(r+=" "+t.extraInfo),a=""===a?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+a,t.extraObject?N(r+="\n",t.extraObject,a):N(r,a)}}}function L(e,t){var n=e.options.displayName;n=n?" ("+n+")":"";var s=i.extend({deprecationType:"CSS",extraObject:t},e.options);O("'"+e.selector+"' pattern"+n,s)()}function P(e,t,i){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=O(t||e.name||"this function",i);return function(){return n(),e.apply(this,arguments)}}function R(e,t,n){(n=n||{}).deprecationType=n.deprecationType||"JS";var s=P(e,t,n);return s.prototype=e.prototype,i.extend(s,e),s}var $=!1;try{Object.defineProperty&&(Object.defineProperty({},"blam",{get:function(){},set:function(){}}),$=!0)}catch(e){}function j(e,t,i){if("function"==typeof e[t]){(i=i||{}).deprecationType=i.deprecationType||"JS";var n=i.displayName||t;e[t]=P(e[t],n,i)}else!function(e,t,i){if($){var n=e[t];(i=i||{}).deprecationType=i.deprecationType||"JS";var s=O(i.displayName||t,i);Object.defineProperty(e,t,{get:function(){return s(),n},set:function(e){return n=e,s(),e}})}}(e,t,i)}function z(e){return function(t){for(var i={selector:t,options:e||{}},n=document.querySelectorAll(t),s=0;s<n.length;s++)L(i,n[s]);!function(e){if(H.push(e),!B){B=new MutationObserver(function(e){e.forEach(function(e){for(var t=e.addedNodes,i=0;i<t.length;i++){var n=t[i];1===n.nodeType&&H.forEach(F(n))}})});var t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function F(e){return function(t){var i,n;i=e,n=t.selector,(i.matches||i.msMatchesSelector||i.webkitMatchesSelector||i.mozMatchesSelector||i.oMatchesSelector).call(i,n)&&L(t,e)}}const H=[];let B;function U(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}var W;function V(e,t){W||(W=document.body),!0===e&&q();const n=!!V.$dim&&!V.$dim[0].hasAttribute("hidden");return V.$dim&&(V.$dim.remove(),V.$dim=null),V.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),V.$dim.appendTo(document.body),n||(U(V.$dim),V.cachedOverflow={overflow:W.style.overflow,overflowX:W.style.overflowX,overflowY:W.style.overflowY},W.style.overflowX="hidden",W.style.overflowY="hidden",W.style.overflow="hidden"),V.$dim.removeAttr("hidden"),t&&V.$dim.css({zIndex:t}),V.$dim}function Y(){V.$dim&&(V.$dim[0].setAttribute("hidden",""),W&&(W.style.overflow=V.cachedOverflow.overflow,W.style.overflowX=V.cachedOverflow.overflowX,W.style.overflowY=V.cachedOverflow.overflowY))}l("deprecate",{fn:P,construct:R,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(z(t))},prop:j,obj:function(e,t,n){for(var s in n=n||{},e)M.call(e,s)&&(n.deprecationType=n.deprecationType||"JS",n.displayName=t+s,n.alternativeName=n.alternativeNamePrefix&&n.alternativeNamePrefix+s,j(e,s,i.extend({},n)))},propertyDeprecationSupported:$,getMessageLogger:O});const q=O("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});l("dim",V),l("undim",Y);var K={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};l("keyCode",K);const Q=K;function G(e,t){window.define&&(0,window.define)(e,[],function(){return t});return t}const Z=u().noConflict();const J=function(e){return{set:function(t,i){void 0===e._state&&(e._state={}),e._state[t]=i},get:function(t){if(e._state)return e._state[t]}}};function X(e){return J(e).get("last-trigger")||ne(e)[0]}function ee(e,t){var i=t&&t.nodeType&&1===t.nodeType;return J(e).set("last-trigger",!!i&&t)}function te(e,t){var i=X(e);i&&t(i)}function ie(e,t){return Array.prototype.forEach.call(ne(e),t)}function ne(e){const t=window.frames,i=`[aria-controls="${e.id}"]`;let n=[],s=!1;for(let e=0;e<t.length;e++)try{let s=t[e].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(e){s=!0}const a=document.querySelectorAll(i),r=Array.prototype.slice.apply(a).concat(n);return 0===r.length&&!0===s&&g([`No triggers found for element (${e.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(" ")),r}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function ae(e){return"true"!==e.getAttribute("aria-disabled")}function re(e,t){if(ae(e)){var i=se(e);i&&i.message&&i.message(t)}}const oe={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(re(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",oe.click(e,t))},mouseenter(e,t){re(e,t)},mouseleave(e,t){re(e,t)},focus(e,t){re(e,t)},blur(e,t){(function(e,t){let n=t.relatedTarget;return n||(n=document.activeElement),i(se(e)).find(n).length>0})(e,t)||re(e,t)}};Object.keys(oe).forEach(function(e){const t=oe[e];i(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",function(i){t(i.currentTarget,function(e,t){const{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:a,which:r}=e;return{type:t,data:"keydown"===t?r||a:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))})}),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 ae(this)}}}),G("aui/trigger"),function(){function e(e){return"visible"===i.css(e,"visibility")&&i(e).is(":visible")}function t(t,n){var s=t.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var a=t.parentNode,r=a.name,o=i("img[usemap=#"+r+"]").get();return!(!t.href||!r||"map"!==a.nodeName.toLowerCase())&&(o&&e(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=t.href||n;return(l?!t.disabled:c?u:n)&&e(t)}i.extend(i.expr.pseudos,{"aui-focusable":e=>t(e,!isNaN(i.attr(e,"tabindex"))),"aui-tabbable":function(e){var n=i.attr(e,"tabindex"),s=isNaN(n);return(s||n>=0)&&t(e,!s)}})}();var le="_aui-focus-restore";function ce(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ue(){this._focusTrapStack=[],this._handler}function de(e,t){if(0===e.length)return;if(t.keyCode!==Q.TAB)return;const n=t.shiftKey?-1:1,s=t.target,a=e[e.length-1],r=a.find(":aui-tabbable");if(!r.length&&ce(a)&&(a.trigger("focus"),t.preventDefault()),!r.length)return;const o=r.index(s);let l=-1;if(o>-1)l=o;else{let e;if(e=i(s).closest(".aui-layer"),!e.length){e=a.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(s)}if(e.length){const t=e.find(":aui-tabbable"),i=t.index(s)+n;if(!(i<0||i>=t.length))return;{const t=X(e.get(0));l=r.index(t)}}}l=l>-1?function(e,t,i,n){function s(e){return(e+i)%n.length}let a=s(t);if("radio"===e.type&&e.name)for(;n.eq(a).attr("name")===e.name&&a!==t;)a=s(a);if(a!==t&&"radio"===n.eq(a).attr("type")){const e=n.eq(a).attr("name"),t=n.filter(function(){return"radio"===this.type&&this.name===e}),s=t.filter(":checked");let r;r=s.length>0?s.first():i>0?t.first():t.last(),a=n.index(r)}return a}(s,l,n,r):0,"IFRAME"!==r.get(l).nodeName&&(r.eq(l).trigger("focus"),t.preventDefault())}let he;function pe(){return he||(he=new ue),he}ue.defaultFocusSelector=":aui-tabbable",ue.prototype.enter=function(e,t){if(function(e,t=document.activeElement){e.data(le,t)}(e,t),"false"!==e.attr("data-aui-focus")){var n=e.attr("data-aui-focus-selector")||ue.defaultFocusSelector;(e.is(n)?e:e.find(n)).first().trigger("focus")}ce(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=de.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ue.prototype.exit=function(e){ce(e)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(e),1),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var t=document.activeElement;if(e[0]===t||e.has(t).length){i(t).trigger("blur");var n=function(e){return i(e.data(le))}(e);n.length&&(e.removeData(le),n.trigger("focus"))}},pe.global=pe(),l("FocusManager",pe);const fe=pe;function ge(e,t){var n="_aui-widget-"+e;return function(e,s){var a,r;i.isPlainObject(e)?r=e:(a=e,r=s);var o,l=a&&i(a);return l&&l.data(n)?o=l.data(n):(l=(o=new t(l,r||{})).$el).data(n,o),o}}let me;!function(){if(window.CustomEvent)try{const e=new window.CustomEvent("name",{bubbles:!1,cancelable:!0,detail:{x:"y"}});if(e.preventDefault(),!0!==e.defaultPrevented)throw new Error("Could not prevent default");if("name"!==e.type)throw new Error("Could not set custom name");if("y"!==e.detail.x)throw new Error("Could not set detail");return void(me=window.CustomEvent)}catch(e){}me=function(e,t){t=t||{bubbles:!1,cancelable:!1,detail:void 0};var i=document.createEvent("CustomEvent");i.initCustomEvent(e,!!t.bubbles,!!t.cancelable,t.detail);var n=i.preventDefault;return i.preventDefault=function(){n.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch(e){this.defaultPrevented||(this.defaultPrevented=!0)}},i},me.prototype=window.Event.prototype}();const ve=me,be="_aui-internal-layer-",ye="_aui-internal-layer-global-";var we=i(document);function _e(e,t,i,n){!function(e,t){var i=window.getComputedStyle(e).transitionProperty;return!!i&&i.indexOf(t)>-1}(e,t)?i.call(e):e.addEventListener("transitionend",function s(a){t===a.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))})}function xe(e,t,n){var s=i.Event(be+t),a=i.Event(ye+t),r=new ve("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new ve("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(r),e[0].dispatchEvent(o),!(s.isDefaultPrevented()||a.isDefaultPrevented()||r.defaultPrevented||o.defaultPrevented)}function Ce(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function ke(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}Ce.prototype={below:function(){return Ie.global.item(Ie.global.indexOf(this.$el)-1)},above:function(){return Ie.global.item(Ie.global.indexOf(this.$el)+1)},changeSize:function(e,t){return this.$el.css("width",e),this.$el.css("height","content"===t?"":t),this},on:function(e,t){return this.$el.on(be+e,t),this},off:function(e,t){return this.$el.off(be+e,t),this},show:function(){return this.isVisible()||Ie.global.indexOf(this.$el)>-1?this:xe(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Ie.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return _e(this.$el.get(0),"opacity",function(){e.isVisible()||(this.style.display="none")},!0),Ie.global.popUntil(this.$el,!0),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 e=ke(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=ke(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!xe(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&fe.global.exit(this.$el),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(be+"hide"),this.$el.trigger(ye+"hide",[this.$el]),!0)},_showLayer:function(e){let t=this.getDOMContainer();if(this.isBlanketed()||t){let e=t||"body";this.$el.parent().is(e)||this.$el.appendTo(e)}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",e),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&fe.global.enter(this.$el),this.$el.trigger(be+"show"),this.$el.trigger(ye+"show",[this.$el])}};var Te=ge("layer",Ce);function Ae(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function Ee(e,t){return Ae(e,function(e){return e[0]===t[0]})}function De(e){return Ae(e,function(e){return Te(e).isBlanketed()})}function Se(e,t){var i=De(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function Me(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,a=e.length-1;a>=t;a--){s=e[a];var r=Te(s);if(i||!r.isPersistent()){if(!r._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Ie(){this._stack=[]}function Ne(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Ie.global.indexOf(t)>-1}Te.on=function(e,t,i){return we.on(ye+e,t,i),this},Te.off=function(e,t,i){return we.off(ye+e,t,i),this},Ie.prototype={push:function(e){var t=e instanceof i?e:i(e);if(Ee(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Te(t),s=function(e){var t;if(e.length){var i=e[e.length-1],n=parseInt(i.css("z-index"),10);t=(isNaN(n)?0:n)+100}else t=0;return Math.max(3e3,t)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(t),this},popLayersBeside:function(e){const t=i(e).get(0);if(!function(e){return!!X(e)}(t)){var n=De(this._stack);return void Me(this._stack,++n,!1)}const s=function(e){var t=X(e);if(t)return i(t).closest(".aui-layer").get(0)}(t);if(s){let e=this.indexOf(s);Me(this._stack,++e,!1)}else Me(this._stack,0,!1)},indexOf:function(e){return Ee(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach(function(e){let t=Te(e);t.isBlanketed()||t.isPersistent()||t.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=Te(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=Te(t);if(!a.isPersistent()&&!a.isBlanketed())return t;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(e=>e.attr("open"))||null},popUntil:function(e,t=!1){var n=e instanceof i?e:i(e),s=Ee(this._stack,n);if(-1===s)return null;const a=De(this._stack),r=Te(n),[o,l]=Me(this._stack,s+1,r.isBlanketed(),t);return o&&r._hideLayer(t)?(this._stack.splice(s,1),Se(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Te(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=De(this._stack);if(t<0)return null;var i=this._stack[t];if(Te(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=Ee(this._stack,n);return Me(this._stack,s,!0,e),n}return null}return Me(this._stack,t,!0),Se(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Ie.global.getTopLayer();if(t){var i,n=De(this._stack),s=Te(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Ie.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Te(t),!t||s.isPersistent())return;i=Ee(this._stack,t),Me(this._stack,i,!0,e),Se(this._stack,n)}else i=Ee(this._stack,t),Me(this._stack,i,!0,e),Se(this._stack,n)}}},we.on("keydown",function(e){e.keyCode===Q.ESCAPE&&(Ie.global.popUntilTopPersistent(!0),e.preventDefault())}),we.on("click",".aui-blanket",function(e){Ie.global.popUntilTopBlanketed(!0)&&e.preventDefault()}),we.on("click",function(e){var t=i(e.target);if(!t.closest(".aui-blanket").length){var n=t.closest("[aria-controls]"),s=t.closest(".aui-layer");if(!s.length&&!Ne(n)){const t=i.Event("aui-close-layers-on-outer-click");return we.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Ie.global.hideAll()}if(!Ne(n)&&s.length){var a=Ie.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&Te(a).hide()}}}),Ie.global=new Ie,Te.Manager=Ie,l("layer",Te);const Oe=Te;l("LayerManager",Oe.Manager);Oe.Manager;const Le={sinceVersion:"9.0.0",removeInVersion:"10.0.0"},Pe=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",Le)(),e[t]}}));const Re=P(function(e){e||(e=Pe),i(".parameters input").each(function(){var t=this.value,n=this.title||this.id;i(this).hasClass("list")?e[n]?e[n].push(t):e[n]=[t]:e[n]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"10.0.0"});l("populateParameters",Re);const $e=Re;i(function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),$e()}),l("$",i);const je=i;function ze(e){return i.when(i.ready).then(function(){setTimeout(function(){try{e.call(this,i)}catch(t){m("Failed to run init function: "+t.message,e,t,t.stack)}},1)}),this}l("toInit",ze);const Fe=ze;a(547);const He={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.number.suggestions":"Found {0,choice,0#0 options|1#1 option|1<{0,number} options}.","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","aui.messagecomponent.error.label":"Error","aui.messagecomponent.warning.label":"Warning","aui.messagecomponent.info.label":"Information","aui.messagecomponent.confirmation.label":"Confirmation","aui.messagecomponent.change.label":"Change","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":"","aui.flag.default-aria-label.info":"New information message","aui.flag.default-aria-label.success":"New confirmation message","aui.flag.default-aria-label.warning":"New warning message","aui.flag.default-aria-label.error":"New error message"},getText:function(e,...t){return Object.prototype.hasOwnProperty.call(this.keys,e)?b.apply(null,[this.keys[e]].concat(t)):e}},I18n=function(e){o(),"object"!=typeof window[n][s]&&(window[n][s]={});const t=window[n][s];for(const i in e)void 0===t[i]&&(t[i]=e[i]);return t}(He),Be="bottom-end",Ue=["top-start","top-end","bottom-start","bottom-end"],We=Z("aui-avatar-badged",{attributes:{placement:{value:Be,fallback(e,{newValue:t,oldValue:i}){((e,t,i)=>{const n=Ue.includes(t)?t:Be;i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)})(e,t,i)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var Ve=a(2),Ye=a.n(Ve);const qe=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Ke=(e,t)=>e.querySelector(t),Qe=(e,t,i)=>{const n=Ke(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},Ge=e=>{if(e.hasAttribute("src"))Je(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=qe.get(t);Je(e,i)}},Ze=(e,t,i)=>Ke(e,"img").setAttribute(t,i),Je=(e,t)=>Ze(e,"src",t),Xe=Z("aui-avatar",{template:Ye()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(e,{newValue:t,oldValue:i}){Qe(e,t,i)},type(e,{newValue:t,oldValue:i}){Qe(e,t,i),Ge(e)},src(e,{newValue:t}){Je(e,t)},alt:{value:"",fallback(e,{newValue:t}){((e,t)=>{Ze(e,"alt",t)})(e,t)}},title(e,{newValue:t}){((e,t)=>{Ze(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",Ge(e),(e=>null!==e.querySelector("aui-avatar-badged"))(e)&&e.setAttribute("role","img")}}),et="medium",tt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},it=(e,t)=>{const i=e.querySelectorAll("aui-avatar"),n=[...i].slice(4);rt(i,t);const s=e.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const a=nt(t,n);e.appendChild(a)},nt=(e,t)=>{const i=document.createElement("div"),n=st(`+${t.length}`),s=at();return t.forEach(e=>{s.append(e)}),i.classList.add("aui-avatar-group-dropdown"),i.style.left=ot(e,4.2),i.appendChild(n),i.appendChild(s),i},st=e=>{const t=document.createElement("button");return t.classList.add("aui-avatar-group-dropdown-button","aui-avatar-inner"),t.innerText=e,t.setAttribute("aria-expanded",!1),t.setAttribute("aria-haspopup","dialog"),t},at=()=>{const e=document.createElement("div");return e.classList.add("aui-avatar-group-dropdown-menu"),e},rt=(e,t)=>{e.forEach((e,i)=>{const n=i>=4;e.classList.add(n?"aui-avatar-group-dropdown-item":"aui-avatar-group-item"),n?e.setAttribute("size","medium"):(e.setAttribute("size",t),e.style.left=ot(t,i),e.style.zIndex=""+(5-i))})},ot=(e,t)=>{const i=tt[e];return`${(i-.25*i)*t}px`};document.addEventListener("click",e=>{const t=e.target.matches(".aui-avatar-group-dropdown-button"),i=e.target.closest(".aui-avatar-group-dropdown");(t||null===i)&&(t&&(i.classList.contains("aui-avatar-group-dropdown-show")?lt(i):ct(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach(e=>{e!==i&&lt(e)}))}),document.addEventListener("keydown",e=>{if("Escape"!==e.key)return;const t=document.querySelector(".aui-avatar-group-dropdown-show");t&&lt(t)});const lt=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.remove("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","false")},ct=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.add("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","true")},ut=Z("aui-avatar-group",{attributes:{size:{value:et,fallback(e,{newValue:t,oldValue:i}){const n=(s=t,Object.keys(tt).includes(s)?s:et);var s;((e,t,i)=>{i&&e.classList.remove(`aui-avatar-group-${i}`),e.classList.add(`aui-avatar-group-${t}`)})(e,n,i),Z.init(e),it(e,n)}}},created(e){e.classList.add("aui-avatar-group")}});new MutationObserver(function(e){e.forEach(function(e){const t=e.target;((e,t)=>e.removedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.removedNodes[0].classList.contains("aui-avatar-group-item"))(e,t)&&it(t,t.getAttribute("size")),((e,t)=>e.addedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.addedNodes[0].classList.contains("aui-avatar"))(e,t)&&setTimeout(()=>{it(t,t.getAttribute("size"))},0)})}).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function dt(e){const t=document.getElementById("header");if(!t)throw new Error('Unable to find the application header. Please ensure that an element with the ID "header" is present in the DOM');const i=function({body:e="",type:t="error"}){const i=document.createElement("div");i.className=`aui-banner aui-banner-${t}`,i.setAttribute("role","alert"),i.innerHTML=e;const n=document.createElement("div");return n.innerText=`${t}`,n.classList.add("assistive"),i.prepend(n),i}(e);return function(e,t){t.prepend(e),U(e)}(i,t),function(e){const t=e.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.8.0",deprecationType:"ATTRIBUTE",extraInfo:"The hidden attribute on the banner is no longer effective. Future banner function calls won't remove banners with this attribute."});t.forEach(function(e){i(),e.remove()})}(t),i}G("aui/banner",dt),l("banner",dt);const ht=dt;var pt=a(487);const ft={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},gt={filled:!1,size:ft.MEDIUM.name},mt="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.",vt=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:mt}),bt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",extraInfo:mt});function yt(e){let t=ft.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(ft).map(e=>e.toLowerCase());i.indexOf(e)>-1&&(t=e)}return t}function wt(e){const{px:t,radius:i}=(0,pt.find)(ft,t=>t.name===e._data.size)||ft.MEDIUM;!function(e,t,i){const n=e.querySelector("svg"),s=e.querySelector("circle");n.setAttribute("size",t),n.setAttribute("height",t),n.setAttribute("width",t),n.setAttribute("viewBox",`0 0 ${t} ${t}`);const a=t/2;s.setAttribute("cx",a),s.setAttribute("cy",a),s.setAttribute("r",i)}(e,t,i),e._data.filled?function(e,t){const i=e.parentNode;if(i&&1===i.nodeType){const n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),a=s.top+s.height/2,r=n.top+t/2;e.querySelector("svg").style.top=a-r+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const _t=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',wt(e)},attached(e){wt(e)},attributes:{filled:{created:function(e){vt(),e._data.filled=!0,wt(e)},removed:function(e){e._data.filled=!1,wt(e)}},size(e,t){e._data.size=yt(t.newValue),wt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,pt.defaults)({},gt))},set _data(e){return this.__data=e},set filled(e){bt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=yt(e);this.setAttribute("size",t)}}});function xt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function Ct(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new _t,e._spinner.setAttribute("size",ft.SMALL.name)},prototype:{busy:function(){return Ct(this)||xt(this)?(g("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 Ct(this)||!xt(this)?(g("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 Ct(this)?(g("It is not valid to call isBusy() on an input button."),!1):xt(this)}}}),G("aui/button");const kt="aui-close-button",Tt=`.${kt}`,At=`<button type="button" class="${kt}" aria-label="${I18n.getText("aui.words.close")}">`,Et={"aui-focus":"false","aui-blanketed":"true"};function Dt(e){var t;this._handlers=new WeakMap,this.$el=i(e||`\n <section role="dialog" aria-modal="true" class="aui-layer aui-dialog2 aui-dialog2-medium">\n <header class="aui-dialog2-header">\n <h2 class="aui-dialog2-header-main"></h2>\n ${At}\n </button>\n </header>\n <div class="aui-dialog2-content"></div>\n <footer class="aui-dialog2-footer"></footer>\n </section>`),this.$header=this.$el.find(".aui-dialog2-header"),this.$content=this.$el.find(".aui-dialog2-content"),this.$footer=this.$el.find(".aui-dialog2-footer"),t=this.$el,i.each(Et,function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)})}Dt.prototype.on=function(e,t){const i=this.$el;if(!this._handlers.get(t)){const n=function(e){e.target===i.get(0)&&t.apply(this,arguments)};Oe(i).on(e,n),this._handlers.set(t,n)}return this},Dt.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Oe(i).off(e,n),this._handlers.delete(t)),this},Dt.prototype.show=function(){return Oe(this.$el).show(),this},Dt.prototype.hide=function(){return Oe(this.$el).hide(),this},Dt.prototype.remove=function(){return Oe(this.$el).remove(),this},Dt.prototype.isVisible=function(){return Oe(this.$el).isVisible()};var St=ge("dialog2",Dt),Mt=new Set;St.on=function(e,t){return Mt.has(t)||(Oe.on(e,".aui-dialog2",t),Mt.add(t)),this},St.off=function(e,t){return Mt.has(t)&&(Oe.off(e,".aui-dialog2",t),Mt.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${Tt}`,function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),St(i(e.target).closest(".aui-dialog2")).hide())}),St.on("show",function(e,t){!function(e){const t=e.querySelector(Tt);t&&(O(`Dialog2 [${Tt}]`,{removeInVersion:"10.0.0",sinceVersion:"9.6.0",extraInfo:"Replace it with another actionable element inside your Dialog which will trigger closing of the modal.",deprecationType:"MARKUP"})(),t.setAttribute("tabindex","0"));e.setAttribute("tabindex","-1");const i=e.hasAttribute("data-aui-focus-selector");i&&O("Dialog2 [data-aui-focus-selector] attribute",{removeInVersion:"10.0.0",alternativeName:"initialisation on DOM insertion",sinceVersion:"9.6.0",extraInfo:"Replace [data-aui-focus-selector] attribute with HTML [autofocus] attribute",deprecationType:"ATTRIBUTE"})();const n=e.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout(()=>n.focus(),0);if(i){const t=e.querySelector(i);if(t)return t.blur(),void setTimeout(()=>t.focus(),0)}const s=[...e.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(e=>!e.hasAttribute("disabled")&&!e.getAttribute("aria-hidden"));if(s.length){let e=s.shift();return e.classList.contains(kt)&&(e=s.shift()),void(e&&(e.blur(),setTimeout(()=>e.focus(),0)))}e.focus()}(t[0])}),St.on("hide",function(e,t){const i=Oe(t);t.data("aui-remove-on-hide")&&i.remove()}),G("aui/dialog2",St),l("dialog2",St);const It=St;var Nt,Ot,Lt=navigator.userAgent.toLowerCase(),Pt=(/msie/.test(Lt),/windows nt 5.1/.test(Lt),/windows nt 6.0/.test(Lt),/windows nt 6.1/.test(Lt),/mac os x/.test(Lt));function Rt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function $t(e){return e instanceof Rt(e).Element||e instanceof Element}function jt(e){return e instanceof Rt(e).HTMLElement||e instanceof HTMLElement}function zt(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Rt(e).ShadowRoot||e instanceof ShadowRoot)}var Ft=Math.max,Ht=Math.min,Bt=Math.round;function Ut(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Wt(){return!/^((?!chrome|android).)*safari/i.test(Ut())}function Vt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,a=1;t&&jt(e)&&(s=e.offsetWidth>0&&Bt(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Bt(n.height)/e.offsetHeight||1);var r=($t(e)?Rt(e):window).visualViewport,o=!Wt()&&i,l=(n.left+(o&&r?r.offsetLeft:0))/s,c=(n.top+(o&&r?r.offsetTop:0))/a,u=n.width/s,d=n.height/a;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function Yt(e){var t=Rt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function qt(e){return e?(e.nodeName||"").toLowerCase():null}function Kt(e){return(($t(e)?e.ownerDocument:e.document)||window.document).documentElement}function Qt(e){return Vt(Kt(e)).left+Yt(e).scrollLeft}function Gt(e){return Rt(e).getComputedStyle(e)}function Zt(e){var t=Gt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Jt(e,t,i){void 0===i&&(i=!1);var n,s,a=jt(t),r=jt(t)&&function(e){var t=e.getBoundingClientRect(),i=Bt(t.width)/e.offsetWidth||1,n=Bt(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),o=Kt(t),l=Vt(e,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!i)&&(("body"!==qt(t)||Zt(o))&&(c=(n=t)!==Rt(n)&&jt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Yt(n)),jt(t)?((u=Vt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):o&&(u.x=Qt(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Xt(e){var t=Vt(e),i=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-i)<=1&&(i=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function ei(e){return"html"===qt(e)?e:e.assignedSlot||e.parentNode||(zt(e)?e.host:null)||Kt(e)}function ti(e){return["html","body","#document"].indexOf(qt(e))>=0?e.ownerDocument.body:jt(e)&&Zt(e)?e:ti(ei(e))}function ii(e,t){var i;void 0===t&&(t=[]);var n=ti(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),a=Rt(n),r=s?[a].concat(a.visualViewport||[],Zt(n)?n:[]):n,o=t.concat(r);return s?o:o.concat(ii(ei(r)))}function ni(e){return["table","td","th"].indexOf(qt(e))>=0}function si(e){return jt(e)&&"fixed"!==Gt(e).position?e.offsetParent:null}function ai(e){for(var t=Rt(e),i=si(e);i&&ni(i)&&"static"===Gt(i).position;)i=si(i);return i&&("html"===qt(i)||"body"===qt(i)&&"static"===Gt(i).position)?t:i||function(e){var t=/firefox/i.test(Ut());if(/Trident/i.test(Ut())&&jt(e)&&"fixed"===Gt(e).position)return null;var i=ei(e);for(zt(i)&&(i=i.host);jt(i)&&["html","body"].indexOf(qt(i))<0;){var n=Gt(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(e)||t}var ri="top",oi="bottom",li="right",ci="left",ui="auto",di=[ri,oi,li,ci],hi="start",pi="end",fi="viewport",gi="popper",mi=di.reduce(function(e,t){return e.concat([t+"-"+hi,t+"-"+pi])},[]),vi=[].concat(di,[ui]).reduce(function(e,t){return e.concat([t,t+"-"+hi,t+"-"+pi])},[]),bi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function yi(e){var t=new Map,i=new Set,n=[];function s(e){i.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!i.has(e)){var n=t.get(e);n&&s(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){i.has(e.name)||s(e)}),n}function wi(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&zt(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function _i(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function xi(e,t,i){return t===fi?_i(function(e,t){var i=Rt(e),n=Kt(e),s=i.visualViewport,a=n.clientWidth,r=n.clientHeight,o=0,l=0;if(s){a=s.width,r=s.height;var c=Wt();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:a,height:r,x:o+Qt(e),y:l}}(e,i)):$t(t)?function(e,t){var i=Vt(e,!1,"fixed"===t);return i.top=i.top+e.clientTop,i.left=i.left+e.clientLeft,i.bottom=i.top+e.clientHeight,i.right=i.left+e.clientWidth,i.width=e.clientWidth,i.height=e.clientHeight,i.x=i.left,i.y=i.top,i}(t,i):_i(function(e){var t,i=Kt(e),n=Yt(e),s=null==(t=e.ownerDocument)?void 0:t.body,a=Ft(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Ft(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+Qt(e),l=-n.scrollTop;return"rtl"===Gt(s||i).direction&&(o+=Ft(i.clientWidth,s?s.clientWidth:0)-a),{width:a,height:r,x:o,y:l}}(Kt(e)))}function Ci(e,t,i,n){var s="clippingParents"===t?function(e){var t=ii(ei(e)),i=["absolute","fixed"].indexOf(Gt(e).position)>=0&&jt(e)?ai(e):e;return $t(i)?t.filter(function(e){return $t(e)&&wi(e,i)&&"body"!==qt(e)}):[]}(e):[].concat(t),a=[].concat(s,[i]),r=a[0],o=a.reduce(function(t,i){var s=xi(e,i,n);return t.top=Ft(s.top,t.top),t.right=Ht(s.right,t.right),t.bottom=Ht(s.bottom,t.bottom),t.left=Ft(s.left,t.left),t},xi(e,r,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function ki(e){return e.split("-")[0]}function Ti(e){return e.split("-")[1]}function Ai(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ei(e){var t,i=e.reference,n=e.element,s=e.placement,a=s?ki(s):null,r=s?Ti(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case ri:t={x:o,y:i.y-n.height};break;case oi:t={x:o,y:i.y+i.height};break;case li:t={x:i.x+i.width,y:l};break;case ci:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=a?Ai(a):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case hi:t[c]=t[c]-(i[u]/2-n[u]/2);break;case pi:t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function Di(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Si(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function Mi(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=void 0===n?e.placement:n,a=i.strategy,r=void 0===a?e.strategy:a,o=i.boundary,l=void 0===o?"clippingParents":o,c=i.rootBoundary,u=void 0===c?fi:c,d=i.elementContext,h=void 0===d?gi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Di("number"!=typeof m?m:Si(m,di)),b=h===gi?"reference":gi,y=e.rects.popper,w=e.elements[f?b:h],_=Ci($t(w)?w:w.contextElement||Kt(e.elements.popper),l,u,r),x=Vt(e.elements.reference),C=Ei({reference:x,element:y,strategy:"absolute",placement:s}),k=_i(Object.assign({},y,C)),T=h===gi?k:x,A={top:_.top-T.top+v.top,bottom:T.bottom-_.bottom+v.bottom,left:_.left-T.left+v.left,right:T.right-_.right+v.right},E=e.modifiersData.offset;if(h===gi&&E){var D=E[s];Object.keys(A).forEach(function(e){var t=[li,oi].indexOf(e)>=0?1:-1,i=[ri,oi].indexOf(e)>=0?"y":"x";A[e]+=D[i]*t})}return A}var Ii={placement:"bottom",modifiers:[],strategy:"absolute"};function Ni(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function Oi(e){void 0===e&&(e={});var t=e,i=t.defaultModifiers,n=void 0===i?[]:i,s=t.defaultOptions,a=void 0===s?Ii:s;return function(e,t,i){void 0===i&&(i=a);var s,r,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ii,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){var s="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},a,o.options,s),o.scrollParents={reference:$t(e)?ii(e):e.contextElement?ii(e.contextElement):[],popper:ii(t)};var r,c,h=function(e){var t=yi(e);return bi.reduce(function(e,i){return e.concat(t.filter(function(e){return e.phase===i}))},[])}((r=[].concat(n,o.options.modifiers),c=r.reduce(function(e,t){var i=e[t.name];return e[t.name]=i?Object.assign({},i,t,{options:Object.assign({},i.options,t.options),data:Object.assign({},i.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return o.orderedModifiers=h.filter(function(e){return e.enabled}),o.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=void 0===i?{}:i,s=e.effect;if("function"==typeof s){var a=s({state:o,name:t,instance:u,options:n}),r=function(){};l.push(a||r)}}),u.update()},forceUpdate:function(){if(!c){var e=o.elements,t=e.reference,i=e.popper;if(Ni(t,i)){o.rects={reference:Jt(t,ai(i),"fixed"===o.options.strategy),popper:Xt(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(e){return o.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],a=s.fn,r=s.options,l=void 0===r?{}:r,d=s.name;"function"==typeof a&&(o=a({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(e){u.forceUpdate(),e(o)})},function(){return r||(r=new Promise(function(e){Promise.resolve().then(function(){r=void 0,e(s())})})),r}),destroy:function(){d(),c=!0}};if(!Ni(e,t))return u;function d(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(i).then(function(e){!c&&i.onFirstUpdate&&i.onFirstUpdate(e)}),u}}var Li={passive:!0};const Pi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,a=void 0===s||s,r=n.resize,o=void 0===r||r,l=Rt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach(function(e){e.addEventListener("scroll",i.update,Li)}),o&&l.addEventListener("resize",i.update,Li),function(){a&&c.forEach(function(e){e.removeEventListener("scroll",i.update,Li)}),o&&l.removeEventListener("resize",i.update,Li)}},data:{}};const Ri={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=Ei({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var $i={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ji(e){var t,i=e.popper,n=e.popperRect,s=e.placement,a=e.variation,r=e.offsets,o=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=r.x,p=void 0===h?0:h,f=r.y,g=void 0===f?0:f,m="function"==typeof u?u({x:p,y:g}):{x:p,y:g};p=m.x,g=m.y;var v=r.hasOwnProperty("x"),b=r.hasOwnProperty("y"),y=ci,w=ri,_=window;if(c){var x=ai(i),C="clientHeight",k="clientWidth";if(x===Rt(i)&&"static"!==Gt(x=Kt(i)).position&&"absolute"===o&&(C="scrollHeight",k="scrollWidth"),s===ri||(s===ci||s===li)&&a===pi)w=oi,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===ci||(s===ri||s===oi)&&a===pi)y=li,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[k])-n.width,p*=l?1:-1}var T,A=Object.assign({position:o},c&&$i),E=!0===u?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Bt(i*s)/s||0,y:Bt(n*s)/s||0}}({x:p,y:g},Rt(i)):{x:p,y:g};return p=E.x,g=E.y,l?Object.assign({},A,((T={})[w]=b?"0":"",T[y]=v?"0":"",T.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",T)):Object.assign({},A,((t={})[w]=b?g+"px":"",t[y]=v?p+"px":"",t.transform="",t))}const zi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=void 0===n||n,a=i.adaptive,r=void 0===a||a,o=i.roundOffsets,l=void 0===o||o,c={placement:ki(t.placement),variation:Ti(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ji(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:r,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ji(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}};const Fi={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var i=t.styles[e]||{},n=t.attributes[e]||{},s=t.elements[e];jt(s)&&qt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(e){var t=n[e];!1===t?s.removeAttribute(e):s.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,i={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,i.popper),t.styles=i,t.elements.arrow&&Object.assign(t.elements.arrow.style,i.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],s=t.attributes[e]||{},a=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});jt(n)&&qt(n)&&(Object.assign(n.style,a),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Hi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,a=void 0===s?[0,0]:s,r=vi.reduce(function(e,i){return e[i]=function(e,t,i){var n=ki(e),s=[ci,ri].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,r=a[0],o=a[1];return r=r||0,o=(o||0)*s,[ci,li].indexOf(n)>=0?{x:o,y:r}:{x:r,y:o}}(i,t.rects,a),e},{}),o=r[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=r}};var Bi={left:"right",right:"left",bottom:"top",top:"bottom"};function Ui(e){return e.replace(/left|right|bottom|top/g,function(e){return Bi[e]})}var Wi={start:"end",end:"start"};function Vi(e){return e.replace(/start|end/g,function(e){return Wi[e]})}const Yi={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var s=i.mainAxis,a=void 0===s||s,r=i.altAxis,o=void 0===r||r,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=t.options.placement,v=ki(m),b=l||(v===m||!f?[Ui(m)]:function(e){if(ki(e)===ui)return[];var t=Ui(e);return[Vi(e),t,Vi(t)]}(m)),y=[m].concat(b).reduce(function(e,i){return e.concat(ki(i)===ui?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,r=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=Ti(n),d=u?o?mi:mi.filter(function(e){return Ti(e)===u}):di,h=d.filter(function(e){return c.indexOf(e)>=0});0===h.length&&(h=d);var p=h.reduce(function(t,i){return t[i]=Mi(e,{placement:i,boundary:s,rootBoundary:a,padding:r})[ki(i)],t},{});return Object.keys(p).sort(function(e,t){return p[e]-p[t]})}(t,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)},[]),w=t.rects.reference,_=t.rects.popper,x=new Map,C=!0,k=y[0],T=0;T<y.length;T++){var A=y[T],E=ki(A),D=Ti(A)===hi,S=[ri,oi].indexOf(E)>=0,M=S?"width":"height",I=Mi(t,{placement:A,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?D?li:ci:D?oi:ri;w[M]>_[M]&&(N=Ui(N));var O=Ui(N),L=[];if(a&&L.push(I[E]<=0),o&&L.push(I[N]<=0,I[O]<=0),L.every(function(e){return e})){k=A,C=!1;break}x.set(A,L)}if(C)for(var P=function(e){var t=y.find(function(t){var i=x.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function qi(e,t,i){return Ft(e,Ht(t,i))}const Ki={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,a=void 0===s||s,r=i.altAxis,o=void 0!==r&&r,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=Mi(t,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=ki(t.placement),b=Ti(t.placement),y=!b,w=Ai(v),_="x"===w?"y":"x",x=t.modifiersData.popperOffsets,C=t.rects.reference,k=t.rects.popper,T="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,A="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(x){if(a){var S,M="y"===w?ri:ci,I="y"===w?oi:li,N="y"===w?"height":"width",O=x[w],L=O+m[M],P=O-m[I],R=p?-k[N]/2:0,$=b===hi?C[N]:k[N],j=b===hi?-k[N]:-C[N],z=t.elements.arrow,F=p&&z?Xt(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[M],U=H[I],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-B-A.mainAxis:$-W-B-A.mainAxis,Y=y?-C[N]/2+R+W+U+A.mainAxis:j+W+U+A.mainAxis,q=t.elements.arrow&&ai(t.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(S=null==E?void 0:E[w])?S:0,G=O+Y-Q,Z=qi(p?Ht(L,O+V-Q-K):L,O,p?Ft(P,G):P);x[w]=Z,D[w]=Z-O}if(o){var J,X="x"===w?ri:ci,ee="x"===w?oi:li,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],ae=-1!==[ri,ci].indexOf(v),re=null!=(J=null==E?void 0:E[_])?J:0,oe=ae?ne:te-C[ie]-k[ie]-re+A.altAxis,le=ae?te+C[ie]+k[ie]-re-A.altAxis:se,ce=p&&ae?function(e,t,i){var n=qi(e,t,i);return n>i?i:n}(oe,te,le):qi(p?oe:ne,te,p?le:se);x[_]=ce,D[_]=ce-te}t.modifiersData[n]=D}},requiresIfExists:["offset"]};const Qi={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,a=i.elements.arrow,r=i.modifiersData.popperOffsets,o=ki(i.placement),l=Ai(o),c=[ci,li].indexOf(o)>=0?"height":"width";if(a&&r){var u=function(e,t){return Di("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Si(e,di))}(s.padding,i),d=Xt(a),h="y"===l?ri:ci,p="y"===l?oi:li,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],g=r[l]-i.rects.reference[l],m=ai(a),v=m?"y"===l?m.clientHeight||0:m.clientWidth||0:0,b=f/2-g/2,y=u[h],w=v-d[c]-u[p],_=v/2-d[c]/2+b,x=qi(y,_,w),C=l;i.modifiersData[n]=((t={})[C]=x,t.centerOffset=x-_,t)}},effect:function(e){var t=e.state,i=e.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&wi(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Gi(e,t,i){return void 0===i&&(i={x:0,y:0}),{top:e.top-t.height-i.y,right:e.right-t.width+i.x,bottom:e.bottom-t.height+i.y,left:e.left-t.width-i.x}}function Zi(e){return[ri,li,oi,ci].some(function(t){return e[t]>=0})}const Ji={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,i=e.name,n=t.rects.reference,s=t.rects.popper,a=t.modifiersData.preventOverflow,r=Mi(t,{elementContext:"reference"}),o=Mi(t,{altBoundary:!0}),l=Gi(r,n),c=Gi(o,s,a),u=Zi(l),d=Zi(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Xi=Oi({defaultModifiers:[Pi,Ri,zi,Fi,Hi,Yi,Ki,Qi,Ji]});const en={"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 tn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function nn(e){return tn(e,"alignment")||"right middle"}function sn(e){let[t,i]=nn(e).split(" ");return{side:t,snap:i}}function an(e){let t=function(e){let t=tn(e,"alignment-container")||window;return"string"==typeof t&&(t=document.querySelector(t)),t}(e),i="left";if(t&&t!==window&&t!==document||(t=document.documentElement),t&&t.nodeType&&t.nodeType===Node.ELEMENT_NODE){let n=t.getBoundingClientRect();e.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function rn(e,t){const i=sn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=nn(e);return en[t]||"right"}(e):(i.snap=an(t),n="submenu"===i.side?en[("right"===i.snap?"left":"right")+" top"]:en[`${i.side} ${i.snap}`]),n}const on={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function ln(e,t,i={}){const n=sn(e),s=rn(e,t),a=on[s.split("-")[0]],r=t.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:a,boundary:r||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:r?"document":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("aui-alignment-use-gpu")}},{name:"eventListeners",enabled:this._eventListenersEnabled},{name:"x-placement",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:e})=>{e.elements.popper&&e.elements.popper.setAttribute("x-placement",e.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return i.enabled&&i.fn(),e}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:e,name:t})=>{e.modifiersData[`${t}#persistent`]={fn:i.onEvents}},fn:({state:e,name:t})=>{const i=e.modifiersData[`${t}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),e}}];r&&t.ownerDocument!=e.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(e){const t=r.getBoundingClientRect(),i=window.getComputedStyle(r),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=s([t.top,i.paddingTop,i.borderTop]),o=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=o,e.offsets.reference.top+=a,e.offsets.popper.left+=o,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=Xi(t,e,l),function(e,t,i){const n="aui-alignment-side-"+t,s="aui-alignment-snap-"+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}ln.prototype={destroy(){return this.popper.destroy(),this},changeTarget(e){const t=e.jquery?e[0]:e;return t&&t!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=t,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}};const cn=ln;function un(e){let t=new i.Deferred;return e?setTimeout(()=>{e.parentElement||t.resolve()},12):t.reject(),t.promise()}var dn,hn,pn=0;function fn(e){if(dn=pn+++"",hn=e?e+dn:"aui-uid-"+dn,document.getElementById(hn)){if(hn=hn+"-"+(new Date).getTime(),document.getElementById(hn))throw new Error('Timestamped fallback ID "'+hn+'" exists.');return hn}return hn}l("id",fn);const gn=fn;function mn(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function vn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var bn="unloaded",yn="loading",wn="error";function _n(e,t){J(e).set("loading-state","success"),e.innerHTML=function(e){return e.map(function(e){var t=e.items.map(function(e){function t(t){return e[t]?`${t} ="true"`:""}function i(t){return e[t]?`${t}="${e[t]}"`:""}var n="aui-item-"+e.type;return`\n <${n} ${i("for")} ${i("href")} ${t("interactive")}\n ${t("checked")} ${t("disabled")} ${t("hidden")}>\n ${S(e.content)}\n </${n}>`}).join("");return`\n <aui-section ${e.label?`label="${e.label}"`:""}>\n ${t}\n </aui-section>`}).join("\n")}(t),Z.init(e)}function xn(e){J(e).set("loading-state",wn),J(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`\n <div class="aui-message aui-message-error aui-dropdown-error">\n <p>${I18n.getText("aui.dropdown.async.error")}</p>\n </div>\n `}function Cn(e){e.src&&J(e).get("loading-state")!==yn&&(!function(e){J(e).set("loading-state",yn),J(e).set("hasErrorBeenShown",!1),te(e,function(e){e.setAttribute("aria-busy","true")}),e.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(e),i.ajax(e.src).done(function(t,i,n){200===n.status?_n(e,t):xn(e)}).fail(function(){xn(e)}).always(function(){!function(e){te(e,function(e){e.setAttribute("aria-busy","false")})}(e)}))}function kn(e,t){return i(e).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(t).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Tn(e){return kn(e,()=>!0)}function An(e){return kn(e,(e,t)=>!mn(t))}function En(e){Tn(e).each((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||mn(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i})}function Dn(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Sn(e,t){var n=t&&t.hasSubmenu&&t.hasSubmenu(),s="submenu auto"===e.getAttribute("data-aui-alignment");!n&&s&&function(e){var t=i(e),n=t.data("previous-data-aui-alignment");n?e.setAttribute("data-aui-alignment",n):e.removeAttribute("data-aui-alignment");t.removeData("previous-data-aui-alignment"),t.data("had-data-aui-alignment-static")||e.removeAttribute("data-aui-alignment-static");t.removeData("had-data-aui-alignment-static")}(e);var a=e.hasAttribute("data-aui-alignment");n&&!s?(!function(e){var t=i(e);e.hasAttribute("data-aui-alignment")&&t.data("previous-data-aui-alignment",e.getAttribute("data-aui-alignment"));t.data("had-data-aui-alignment-static",e.hasAttribute("data-aui-alignment-static"))}(e),e.setAttribute("data-aui-alignment","submenu auto"),e.setAttribute("data-aui-alignment-static",!0)):a||(e.setAttribute("data-aui-alignment","bottom auto"),e.setAttribute("data-aui-alignment-static",!0)),Dn(e),e._auiAlignment=new cn(e,t,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:t.hasSubmenu&&t.hasSubmenu()?[-3,0]:[0,3]}),e._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",function(){this.hasAttribute("resolved")||(Z.init(this),O("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"})())}),i(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",function(e){const t=i(e.currentTarget);if(t.is(".aui-dropdown2-active"))return;if(t.closest(".aui-dropdown2").length)return;const n=t.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&t.is(".aui-dropdown2-trigger")&&(s.blur(),t.trigger("aui-button-invoke"),e.preventDefault());const a=n.find(":focus");a.length&&t.is(".aui-dropdown2-trigger")&&a.blur()});var Mn=!1;function In(){Mn=!0}function Nn(e){Oe(e),e.addEventListener("aui-layer-show",function(t){e===t.target&&(!function(e){var t=i(e);["disabled","interactive","active","checked"].forEach(e=>{t.find(`.${e}`).addClass(`aui-dropdown2-${e}`)})}(e),En(e),i(e).trigger("aui-dropdown2-show"),te(e,function(t){vn(t,!0),e._returnTo=function(e,t){var i=t.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||e.parentNode}(e,t)}))}),e.addEventListener("aui-layer-hide",function(t){e===t.target&&(i(e).trigger("aui-dropdown2-hide"),e._auiAlignment&&e._auiAlignment.destroy(),e._returnTo&&e.parentNode&&e.parentNode!==e._returnTo&&e._returnTo.appendChild(e),e.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Tn(e).removeClass("active aui-dropdown2-active"),te(e,function(e){var t;vn(e,!1),t=!0===Mn,Mn=!1,t&&e.focus()}),delete e.isSubmenu)})}function On(e){var t=i(e);function n(t){return i(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",function(t){n(t.target)&&(t.keyCode===Q.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===Q.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===Q.LEFT?e.isSubmenu&&(In(),e.hide(),t.preventDefault()):t.keyCode===Q.ESCAPE?In():t.keyCode===Q.TAB&&(In(),e.hideAll(!1)))});t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(t){if(!n(t.target))return;const s=t.currentTarget,a=t.keyCode,r=a===Q.ENTER,o=a===Q.SPACE;r&&i(s).is("a[href], button")||"click"!==t.type&&!r&&!o||function(t){const i=t.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void t.preventDefault();t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||e.hideAll(!0)}(t)}),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(t){if(!n(t.target))return;let s=i(Oe(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),a=Oe(s).above();n!==e&&Oe(s).hide(),s=i(a).get(0)}})}function Ln(e){e.classList.add("aui-dropdown2"),e.setAttribute("tabindex","-1"),e.hasAttribute("data-container")&&(e.setAttribute("data-aui-alignment-container",e.getAttribute("data-container")),e.removeAttribute("data-container")),Nn(e),On(e),i(e).on("click keydown",".aui-dropdown2-checkbox",function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),t.isEnabled()&&(t.isChecked()?t.uncheck():t.check())}}),i(e).on("click keydown",".aui-dropdown2-radio",function(e){if("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE){let t=this;if(e.isDefaultPrevented())return;t.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(t).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each(function(){this.uncheck()}),t.check())}})}i(window).on("resize",(0,pt.debounce)(function(){i(".aui-dropdown2").each(function(e,t){Z.init(t),t.isVisible()&&t.hide()})},1e3,!0));var Pn={toggle:function(e){this.isVisible()?this.hide():this.show(e)},show:function(e){const t=this;return te(t,e=>{vn(e,!1)}),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Oe(t).show(),te(t,function(e){vn(e,!0),Sn(t,e)}),setTimeout(()=>function(e,t={}){if(t&&t.type&&-1===t.type.indexOf("mouse")){const i=t.type.indexOf("key")>-1;if(e.isSubmenu)e.focusItem(0);else if(i)if(t.keyCode===Q.UP){const t=An(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e),0),this},hide:function(){return Oe(this).hide(),this},hideAll:function(e=!0){const t=function(e){let t=Oe(e);for(;;){const e=t.below();if(!e)break;if(!e.get(0).isDropdown)break;t=Oe(e)}return t}(this);return t.isVisible()?(t.hide(),e&&te(t.el,e=>{setTimeout(()=>{e.focus()},0),ee(t.el,null)}),this):this},focusNext:function(){var e,t=An(this),i=document.activeElement;t.last()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e+1))):this.focusItem(0)},focusPrevious:function(){var e,t=An(this),i=document.activeElement;t.first()[0]!==i?(e=t.toArray().indexOf(i),this.focusItem(t.get(e-1))):this.focusItem(t.length-1)},focusItem:function(e){const t=An(this);"number"==typeof e&&(e=t.get(e));const n=i(e);n.focus(),t.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Oe(this).isVisible()},isDropdown:!0},Rn={created:function(e){var t=e.children[0];t.setAttribute("aria-disabled","true"),t.classList.add("disabled","aui-dropdown2-disabled")},removed:function(e){var t=e.children[0];t.setAttribute("aria-disabled","false"),t.classList.remove("disabled","aui-dropdown2-disabled")}},$n={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},jn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new ve("change",{bubbles:!0}))},removed:function(e){var t=e.children[0];t.classList.remove("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!1),e.dispatchEvent(new ve("change",{bubbles:!0}))}},zn={created:function(e){Rn.created(e)},removed:function(e){Rn.removed(e)}},Fn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const Hn=function(e=""){return e.split(" ").map(e=>e.trim()).filter(e=>e)},Bn=Z("aui-item-link",{template:Ye()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Rn,interactive:$n,hidden:zn,href:Fn("href"),"item-id":Fn("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),i(t).addClass("aui-dropdown2-sub-trigger")},updated:function(e){e.children[0].setAttribute("aria-controls",e.getAttribute("for"))},removed:function(e){var t=e.children[0];t.removeAttribute("aria-controls"),i(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...Hn(t.oldValue)),t.newValue&&i.classList.add(...Hn(t.newValue))}}}),[Un,Wn]=["checkbox","radio"].map(e=>Z(`aui-item-${e}`,{template:Ye()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Fn("id"),disabled:Rn,interactive:$n,checked:jn,hidden:zn}})),Vn=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(e,t){const i=gn();var n=e.children[0],s=e.children[1];n.textContent=t.newValue,n.id=i,s.setAttribute("aria-labelledby",i)}},created:function(e){e.classList.add("aui-dropdown2-section")}}),Yn=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Oe(e),J(e).set("loading-state",bn),Z.init(e)},detached:function(e){un(e).then(()=>Dn(e))},attributes:{src:{}},prototype:Pn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===bn,i=J(e).get("hasErrorBeenShown");(t||i)&&Cn(e),J(e).get("loading-state")===wn&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:Ln,prototype:Pn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:Ln,prototype:Pn}),Z("aui-dropdown2-trigger",{type:Z.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==e)return;if(n.preventDefault(),!e.isEnabled())return;const a=document.getElementById(t);if(!a)return void m('Could not find a dropdown with id "'+t+'" in the DOM.');const r=i(e);return r.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),r.parents().hasClass("aui-header")&&a.classList.add("aui-dropdown2-in-header"),s?a.show(n):a.toggle(n),a.isSubmenu=e.hasSubmenu(),a}t||(t=e.getAttribute("aria-owns"),t?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),e.setAttribute("aria-haspopup",!0),e.setAttribute("aria-expanded",!1),"A"===e.nodeName&&!e.href&&e.setAttribute("href",`#${t}`),i(e).on("aui-button-invoke",n).on("click",n).on("keydown",function(t){if(t.currentTarget!==e)return;const i=t.keyCode===Q.ENTER||t.keyCode===Q.SPACE,s=t.keyCode===Q.RIGHT&&e.hasSubmenu(),a=(t.keyCode===Q.UP||t.keyCode===Q.DOWN)&&!e.hasSubmenu();i?n(t):(a||s)&&n(t,document.activeElement===e)}).on("mouseenter",function(i){if(i.currentTarget!==e)return;if(i.preventDefault(),!e.isEnabled())return;const n=document.getElementById(t);if(n)return function(e){var t=J(e).get("loading-state")===bn,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Cn(e)}(n),e.hasSubmenu()&&(n.show(i),n.isSubmenu=e.hasSubmenu()),n;m('Could not find a dropdown with id "'+t+'" 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(e){e.classList.add("aui-dropdown2-trigger"),Z.init(e)}}),["checkbox","radio"].map(e=>Z(`aui-dropdown2-${e}`,{type:Z.type.CLASSNAME,created:function(t){const i="true"===t.getAttribute("aria-checked")||t.classList.contains("checked")||t.classList.contains("aui-dropdown2-checked");t.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",i),t.setAttribute("tabindex","0"),Pt&&t.setAttribute("role",`menuitem${e}`)},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-${e}`&&this.parentNode.removeAttribute("checked"),i(this).attr("aria-checked","false").removeClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-uncheck")},check:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${e}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}}));const qn={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"ARIA ATTRIBUTE",extraInfo:'The "aria-expanded" attribute will no longer act as an indicator for the expander if it needs to be expanded. Please update the expander in accordance with AUI guidelines.'}),"replace-selector":O("Expander [data-replace-selector] attribute",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"DATA ATTRIBUTE",extraInfo:'The attribute "data-replace-selector" will no longer have any functionality. It is recommended to update the expander following AUI guidelines.'}),"short-content":O("Expander [.aui-expander-short-content]",{removeInVersion:"10.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},Kn=e=>{const t=i(`#${e.attr("aria-controls")}`),n=t.parent().is(e),s=n?e.find(".aui-expander-short-content"):null;return t.attr("aria-expanded")&&(qn["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),{$content:t,isTriggerParent:n,$shortContent:s,isExpanded:t.hasClass("expanded"),height:t.css("min-height"),isCollapsible:!1!==e.data("collapsible"),textReplacement:e.attr("data-replace-text")}};const Qn=(e,t)=>{if(!t)return;const i=e.data("replace-selector");if(i){qn["replace-selector"]();const n=e.find(i);return e.attr("data-replace-text",n.text()),void n.text(t)}const n=e.find(":not(:has(*)):first"),s=n.length?n:e;e.attr("data-replace-text",s.text()),s.text(t)},Gn={"aui-expander-invoke":function(e){const t=i(e.currentTarget),{isCollapsible:n,isExpanded:s}=Kn(t);s&&n?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){!function(e){const{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=Kn(e);e.attr("aria-expanded","true"),t.addClass("expanded"),t.removeAttr("hidden"),Qn(e,s),i&&n.hide(),e.trigger("aui-expander-expanded")}(i(e.currentTarget))},"aui-expander-collapse":function(e){!function(e){const{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=Kn(e);Qn(e,s),e.attr("aria-expanded","false"),t.removeClass("expanded"),i&&n.show(),0===t.outerHeight()&&t.attr("hidden",""),e.trigger("aui-expander-collapsed")}(i(e.currentTarget))},"click.aui-expander":function(e){i(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}};i(document).on(Gn,".aui-expander-trigger"),i(document).ready(function(){i(".aui-expander-trigger").each(function(){!function(e){const{$content:t,isTriggerParent:i,isExpanded:n}=Kn(e);e.data("replace-selector")&&qn["replace-selector"](),t.attr("aria-expanded")&&(qn["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),(i?e.find(".aui-expander-short-content"):null)&&qn["short-content"](),0===t.outerHeight()&&!n&&t.attr("hidden",""),e.attr("aria-expanded",n?"true":"false")}(i(this))})});function Zn(e,t,n){i(e||".aui-message.aui-remove-on-hide").each(function(){Xn(i(this),t,n)})}function Jn(e){i(e||"div.aui-message.closeable").each(function(){const e=i(this),t=e.find(Tt),n=t.length>0?t.first():i(At);var s;e.addClass("closeable"),e.append(n),(s=e).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Tt,function(e){i(e.target).closest(".aui-message").closeMessage()}).on("keydown.aui-message",Tt,function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())})})}function Xn(e,t,n){t=void 0!==t?t:5e3,n=void 0!==n?n:500,i(e||"div.aui-message.fadeout").each(function(){const e=i(this);let s=!1,a=!1;function r(){e.stop(!0,!1).delay(t).fadeOut(n,function(){e.closeMessage()})}function o(){e.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!a}e.focusin(function(){s=!0,o()}).focusout(function(){s=!1,l()&&r()}).hover(function(){a=!0,o()},function(){a=!1,l()&&r()}),r()})}const es={setup:function(){Zn(),Jn(),Xn()},makeRemoveOnHide:Zn,makeCloseable:Jn,makeFadeout:Xn,createMessage:function(e){this[e]=function(t,n){n||(n=t,t="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function(e,t){const{id:n,closeable:s,removeOnHide:a,fadeout:r,title:o,body:l}=e,c=function(e,t){const{a11yTypeLabel:i}=e;if(""===i)return"";if(null!=i)return i;if(null==i)switch(t){case"error":return I18n.getText("aui.messagecomponent.error.label");case"warning":return I18n.getText("aui.messagecomponent.warning.label");case"info":return I18n.getText("aui.messagecomponent.info.label");case"confirmation":return I18n.getText("aui.messagecomponent.confirmation.label");case"change":return I18n.getText("aui.messagecomponent.change.label");case"generic":case"success":case"hint":return"";default:throw Error(`Provide \`a11yTypeLabel\` for AUI message of custom type ${t}`)}}(e,t),u=c?`<strong hidden>${c}: </strong>`:"",d=n?`${n}-title`:"",h=o?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${S(o)}</strong></p>`:"",p=`<div class="aui-message" role="note" ${d?`aria-labelledby="${d}"`:""}>${h}</div>`,f=i(p).append(i.parseHTML(l||"")).addClass(a?"aui-remove-on-hide":"").addClass(s?"closeable":"").addClass(r?"fadeout":"").addClass(`aui-message-${t}`);n&&(/[#'".\s]/g.test(n)?g("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):f.attr("id",n));return f}(n,e);return function(e,t,i){"prepend"===t?e.prependTo(i):"before"===t?e.insertBefore(i):"after"===t?e.insertAfter(i):e.appendTo(i)}(s,n.insert,t),n.removeOnHide&&(console.warn&&console.warn("Use of AUI Message `removeOnHide` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0."),Zn(s,n.delay,n.duration)),n.closeable&&Jn(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 10.0.0."),Xn(s,n.delay,n.duration)),s}}};i.fn.closeMessage=function(){const e=i(this);e.hasClass("aui-message")&&(e.hasClass("closeable")||e.hasClass("aui-remove-on-hide"))&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),i(document).trigger("aui-message-close",[this]))},es.createMessage("generic"),es.createMessage("error"),es.createMessage("warning"),es.createMessage("info"),es.createMessage("confirmation"),es.createMessage("change"),es.createMessage("success"),es.createMessage("hint");const ts=Z("aui-message",{created:function(e){const t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",es[i](e,{body:t,id:e.getAttribute("id"),a11yTypeLabel:e.getAttribute("a11yTypeLabel"),removeOnHide:e.getAttribute("removeOnHide"),closeable:e.getAttribute("closeable"),delay:e.getAttribute("delay"),duration:e.getAttribute("duration"),fadeout:e.getAttribute("fadeout"),title:e.getAttribute("title")}),e.setAttribute("role","none")}});i(function(){es.setup()}),j(es,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/latest/docs/messages.html'}),j(es,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),j(es,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/latest/docs/messages.html"}),l("messages",es);const is='a[href], area[href], input:not([disabled]):not([type="hidden"]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable], audio[controls], video[controls], summary, [tabindex^="0"], [tabindex^="1"], [tabindex^="2"], [tabindex^="3"], [tabindex^="4"], [tabindex^="5"], [tabindex^="6"], [tabindex^="7"], [tabindex^="8"], [tabindex^="9"]',ns="aui-flag-container",ss={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function as(e){const t=(0,pt.defaults)(e,ss);t.title=(t.title||"").toString().trim();const n=function({body:e,title:t,close:n,type:s,ariaLive:a,ariaLabel:r,ariaDescription:o}){const l=`<div class="aui-message">${t?`<p class="title"><strong>${S(t)}</strong></p>`:""}</div>`;r||(r=function(e){switch(e){case"success":return I18n.getText("aui.flag.default-aria-label.success");case"warning":return I18n.getText("aui.flag.default-aria-label.warning");case"error":return I18n.getText("aui.flag.default-aria-label.error");default:return I18n.getText("aui.flag.default-aria-label.info")}}(s));o||(o="");const c=i(l).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(is).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":S(r),"aria-hidden":"false","aria-live":S(a),role:d,...u?{"data-aui-focus-selector":is.split(", ").map(e=>`.aui-message ${e}`).join(", "),"data-aui-focus":"true"}:{},...o?{"aria-description":S(o)}:{}}).append(c)}(t);return function(e){const t=e[0];t.close=function(){os(e)}}(n),"auto"===t.close?(rs(n),"alert"===n.attr("role")&&function(e,t){e.find(".aui-message").addClass("aui-will-close"),setTimeout(function(){e[0].close()},t)}(n,t.duration)):"manual"===t.close&&rs(n),function(){const e=ls();if(e){const t=e.querySelectorAll(".aui-flag:not([open])");Array.from(t).map(e=>e.parentNode.removeChild(e))}else i("body").prepend('<div id="'+ns+'"></div>')}(),function(e){const t=ls();e.appendTo(t),U(e),e.removeAttr("hidden").attr("open","")}(n),setTimeout(function(){"alertdialog"===n.attr("role")&&fe.global.enter(n)},0),n.get(0)}function rs(e){const t=i(At);return t.on("click",function(){os(e)}),t.on("keypress",function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(os(e),t.preventDefault())}),e.find(".aui-message").append(t)[0]}function os(e){const t=e.get(0);return"alertdialog"===e.attr("role")&&fe.global.exit(e),t.removeAttribute("open"),t.setAttribute("inert",""),t.setAttribute("aria-hidden",!0),t.style.display="none",t.dispatchEvent(new ve("aui-flag-close",{bubbles:!0})),t}function ls(){return document.getElementById(ns)}G("aui/flag",as),l("flag",as);const cs=as;
105
+ /*! @license DOMPurify 3.4.18 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.4.18/LICENSE */
106
106
  function us(e,t){this.v=e,this.k=t}function ds(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=Array(t);i<t;i++)n[i]=e[i];return n}
107
107
  /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
108
- function hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,s,a,r,o=[],l=!0,c=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=a.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ds(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ds(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ps(e){var t,i;function n(t,i){try{var a=e[t](i),r=a.value,o=r instanceof us;Promise.resolve(o?r.v:r).then(function(i){if(o){var l="return"===t&&r.k?t:"next";if(!r.k||i.done)return n(l,i);i=e[l](i).value}s(!!a.done,i)},function(e){n("throw",e)})}catch(e){s(2,e)}}function s(e,s){2===e?t.reject(s):t.resolve({value:s,done:e}),(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,s){return new Promise(function(a,r){var o={key:e,arg:s,resolve:a,reject:r,next:null};i?i=i.next=o:(t=i=o,n(e,s))})},"function"!=typeof e.return&&(this.return=void 0)}ps.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ps.prototype.next=function(e){return this._invoke("next",e)},ps.prototype.throw=function(e){return this._invoke("throw",e)},ps.prototype.return=function(e){return this._invoke("return",e)};const fs=Object.entries,gs=Object.setPrototypeOf,ms=Object.isFrozen,vs=Object.getPrototypeOf,bs=Object.getOwnPropertyDescriptor;let ys=Object.freeze,ws=Object.seal,_s=Object.create,xs="undefined"!=typeof Reflect&&Reflect,Cs=xs.apply,Ts=xs.construct;ys||(ys=function(e){return e}),ws||(ws=function(e){return e}),Cs||(Cs=function(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.apply(t,n)}),Ts||(Ts=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new e(...i)});const ks=Qs(Array.prototype.forEach);Array.prototype.indexOf;const Es=Qs(Array.prototype.lastIndexOf),As=Qs(Array.prototype.pop),Ds=Qs(Array.prototype.push),Ss=Qs(Array.prototype.slice),Is=Qs(Array.prototype.splice),Ms=Array.isArray,Ns=Gs(Set),Os=Qs(Set.prototype.add),Ls=Qs(Set.prototype.has),Ps=Qs(String.prototype.toLowerCase),Rs=Qs(String.prototype.toString),$s=Qs(String.prototype.match),js=Qs(String.prototype.replace),zs=Qs(String.prototype.indexOf),Fs=Qs(String.prototype.trim),Hs=Qs(Number.prototype.toString),Bs=Qs(Boolean.prototype.toString),Us="undefined"==typeof BigInt?null:Qs(BigInt.prototype.toString),Ws="undefined"==typeof Symbol?null:Qs(Symbol.prototype.toString),Vs=Qs(Object.prototype.hasOwnProperty),Ys=Qs(Object.prototype.toString),qs=Qs(RegExp.prototype.test),Ks=Gs(TypeError);function Qs(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return Cs(e,t,n)}}function Gs(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return Ts(e,i)}}function Zs(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ps;if(gs&&gs(e,null),!Ms(t))return e;let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){const e=i(s);e!==s&&(ms(t)||(t[n]=e),s=e)}e[s]=!0}return e}function Js(e){for(let t=0;t<e.length;t++)Vs(e,t)||(e[t]=null);return e}function Xs(e){const t=_s(null);for(const n of fs(e)){var i=hs(n,2);const s=i[0],a=i[1];Vs(e,s)&&(Ms(a)?t[s]=Js(a):a&&"object"==typeof a&&a.constructor===Object?t[s]=Xs(a):t[s]=a)}return t}function ea(e,t){for(;null!==e;){const i=bs(e,t);if(i){if(i.get)return Qs(i.get);if("function"==typeof i.value)return Qs(i.value)}e=vs(e)}return function(){return null}}const ta=ys(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),ia=ys(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),na=ys(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),sa=ys(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),aa=ys(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ra=ys(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),oa=ys(["#text"]),la=ys(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ca=ys(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),ua=ys(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),da=ys(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ha=ws(/{{[\w\W]*|^[\w\W]*}}/g),pa=ws(/<%[\w\W]*|^[\w\W]*%>/g),fa=ws(/\${[\w\W]*/g),ga=ws(/^data-[\-\w.\u00B7-\uFFFF]+$/),ma=ws(/^aria-[\-\w]+$/),va=ws(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),ba=ws(/^(?:\w+script|data):/i),ya=ws(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),wa=ws(/^html$/i),_a=ws(/^[a-z][.\w]*(-[.\w]+)+$/i),xa=ws(/<[/\w!]/g),Ca=ws(/<[/\w]/g),Ta=ws(/<\/no(script|embed|frames)/i),ka=ws(/\/>/i),Ea=1,Aa=3,Da=7,Sa=8,Ia=9,Ma=11,Na=ys(Zs({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),Oa=function(){return"undefined"==typeof window?null:window},La=function(e,t,i,n){return Vs(e,t)&&Ms(e[t])?Zs(n.base?Xs(n.base):{},e[t],n.transform):i},Pa=function(e,t,i){const n=Vs(e,t)?e[t]:void 0;return n&&"object"==typeof n?Xs(n):i()};var Ra=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Oa();const i=t=>e(t);if(i.version="3.4.17",i.removed=[],!t||!t.document||t.document.nodeType!==Ia||!t.Element)return i.isSupported=!1,i;let n=t.document;const s=n,a=s.currentScript;t.DocumentFragment;const r=t.HTMLTemplateElement,o=t.Node,l=t.Element,c=t.NodeFilter;void 0===t.NamedNodeMap&&(t.NamedNodeMap||t.MozNamedAttrMap),t.HTMLFormElement;const u=t.DOMParser,d=t.trustedTypes,h=l.prototype,p=ea(h,"cloneNode"),f=ea(h,"remove"),g=ea(h,"removeAttributeNode"),m=ea(h,"nextSibling"),v=ea(h,"childNodes"),b=ea(h,"parentNode"),y=ea(h,"shadowRoot"),w=ea(h,"attributes"),_=o&&o.prototype?ea(o.prototype,"nodeType"):null,x=o&&o.prototype?ea(o.prototype,"nodeName"):null,C=o&&o.prototype?ea(o.prototype,"ownerDocument"):null,T=function(e){return _?_(e):e.nodeType},k=function(e){return x?x(e):e.nodeName},E=function(e,t){for(;null!==e;){const i=bs(e,t);if(i)return i.get?Qs(i.get):null;e=vs(e)}return null}(h,"namespaceURI"),A=function(e){return E?E(e):e.namespaceURI};if("function"==typeof r){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let D,S,I="",M=!1,N=0;const O=function(){if(N>0)throw Ks('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(e){O(),N++;try{return D.createHTML(e)}finally{N--}},P=function(){return M||(S=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(d,a),M=!0),S},R=n,$=R.implementation,j=R.createNodeIterator,z=R.createDocumentFragment,F=R.getElementsByTagName,H=s.importNode;let B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof fs&&"function"==typeof b&&$&&void 0!==$.createHTMLDocument;const U=ha,W=pa,V=fa,Y=ga,q=ma,K=ba,Q=ya,G=_a;let Z=va,J=null;const X=Zs({},[...ta,...ia,...na,...aa,...oa]);let ee=null;const te=Zs({},[...la,...ca,...ua,...da]);let ie=Object.seal(_s(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ne=null,se=null;const ae=Object.seal(_s(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let re=!0,oe=!0,le=!1,ce=!0,ue=!1,de=!0,he=!1,pe=!1,fe=null,ge=null,me=!1,ve=!1,be=!1,ye=!1,we=!0,_e=!1;const xe="user-content-";let Ce=!0,Te=!1,ke=null,Ee={},Ae=null;const De=Zs({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Se=null;const Ie=Zs({},["audio","video","img","source","image","track"]);let Me=null;const Ne=Zs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Oe="http://www.w3.org/1998/Math/MathML",Le="http://www.w3.org/2000/svg",Pe="http://www.w3.org/1999/xhtml";let Re=Pe,$e=!1,je=null;const ze=Zs({},[Oe,Le,Pe],Rs),Fe=ys(["mi","mo","mn","ms","mtext"]);let He=Zs({},Fe);const Be=ys(["annotation-xml"]);let Ue=Zs({},Be);const We=Zs({},["title","style","font","a","script"]);let Ve=null;const Ye=["application/xhtml+xml","text/html"];let qe=null,Ke=null;const Qe=n.createElement("form"),Ge=function(e){return e instanceof RegExp||e instanceof Function},Ze=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(Ke&&Ke===e)return;e&&"object"==typeof e||(e={}),e=Xs(e),Ve=-1===Ye.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,qe="application/xhtml+xml"===Ve?Rs:Ps,J=La(e,"ALLOWED_TAGS",X,{transform:qe}),ee=La(e,"ALLOWED_ATTR",te,{transform:qe}),je=La(e,"ALLOWED_NAMESPACES",ze,{transform:Rs}),Me=La(e,"ADD_URI_SAFE_ATTR",Ne,{transform:qe,base:Ne}),Se=La(e,"ADD_DATA_URI_TAGS",Ie,{transform:qe,base:Ie}),Ae=La(e,"FORBID_CONTENTS",De,{transform:qe}),ne=La(e,"FORBID_TAGS",Xs({}),{transform:qe}),se=La(e,"FORBID_ATTR",Xs({}),{transform:qe}),Ee=!!Vs(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?Xs(e.USE_PROFILES):e.USE_PROFILES),re=!1!==e.ALLOW_ARIA_ATTR,oe=!1!==e.ALLOW_DATA_ATTR,le=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ce=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,ue=e.SAFE_FOR_TEMPLATES||!1,de=!1!==e.SAFE_FOR_XML,he=e.WHOLE_DOCUMENT||!1,ve=e.RETURN_DOM||!1,be=e.RETURN_DOM_FRAGMENT||!1,ye=e.RETURN_TRUSTED_TYPE||!1,me=e.FORCE_BODY||!1,we=!1!==e.SANITIZE_DOM,_e=e.SANITIZE_NAMED_PROPS||!1,Ce=!1!==e.KEEP_CONTENT,Te=e.IN_PLACE||!1,Z=function(e){try{return qs(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:va,Re="string"==typeof e.NAMESPACE?e.NAMESPACE:Pe,He=Pa(e,"MATHML_TEXT_INTEGRATION_POINTS",()=>Zs({},Fe)),Ue=Pa(e,"HTML_INTEGRATION_POINTS",()=>Zs({},Be));const t=Pa(e,"CUSTOM_ELEMENT_HANDLING",()=>_s(null));if(ie=_s(null),Vs(t,"tagNameCheck")&&Ge(t.tagNameCheck)&&(ie.tagNameCheck=t.tagNameCheck),Vs(t,"attributeNameCheck")&&Ge(t.attributeNameCheck)&&(ie.attributeNameCheck=t.attributeNameCheck),Vs(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ie.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),ws(ie),ue&&(oe=!1),be&&(ve=!0),Ee&&(J=Zs({},oa),ee=_s(null),!0===Ee.html&&(Zs(J,ta),Zs(ee,la)),!0===Ee.svg&&(Zs(J,ia),Zs(ee,ca),Zs(ee,da)),!0===Ee.svgFilters&&(Zs(J,na),Zs(ee,ca),Zs(ee,da)),!0===Ee.mathMl&&(Zs(J,aa),Zs(ee,ua),Zs(ee,da))),ae.tagCheck=null,ae.attributeCheck=null,Vs(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?ae.tagCheck=e.ADD_TAGS:Ms(e.ADD_TAGS)&&(J===X&&(J=Xs(J)),Zs(J,e.ADD_TAGS,qe))),Vs(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?ae.attributeCheck=e.ADD_ATTR:Ms(e.ADD_ATTR)&&(ee===te&&(ee=Xs(ee)),Zs(ee,e.ADD_ATTR,qe))),Vs(e,"ADD_FORBID_CONTENTS")&&Ms(e.ADD_FORBID_CONTENTS)&&(Ae===De&&(Ae=Xs(Ae)),Zs(Ae,e.ADD_FORBID_CONTENTS,qe)),Ce&&(J["#text"]=!0),he&&Zs(J,["html","head","body"]),J.table&&(Zs(J,["tbody"]),delete ne.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Ks('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Ks('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=D;D=e.TRUSTED_TYPES_POLICY;try{I=L("")}catch(e){throw D=t,e}}else null===e.TRUSTED_TYPES_POLICY?(D=void 0,I=""):(void 0===D&&(D=P()),D&&"string"==typeof I&&(I=L("")));ys&&ys(e),Ke=e},Je=Zs({},[...ia,...na,...sa]),Xe=Zs({},[...aa,...ra]),et=function(e){const t=A(e),i=Ps(k(e)),n=b(e);let s,a;return n&&T(n)===Ea?(s={namespaceURI:A(n)},a=Ps(k(n))):(s={namespaceURI:Re},a="template"),!!je[t]&&(t===Le?function(e,t,i){return t.namespaceURI===Pe?"svg"===e:t.namespaceURI===Oe?"svg"===e&&("annotation-xml"===i||He[i]):Boolean(Je[e])}(i,s,a):t===Oe?function(e,t,i){return t.namespaceURI===Pe?"math"===e:t.namespaceURI===Le?"math"===e&&Ue[i]:Boolean(Xe[e])}(i,s,a):t===Pe?function(e,t,i){return!(t.namespaceURI===Le&&!Ue[i])&&!(t.namespaceURI===Oe&&!He[i])&&!Xe[e]&&(We[e]||!Je[e])}(i,s,a):!("application/xhtml+xml"!==Ve||!je[t]))},tt=function(e){Ds(i.removed,{element:e});try{b(e).removeChild(e)}catch(t){if(f(e),!b(e))throw Ks("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},it=function(e,t,i){try{g(e,t)}catch(t){try{e.removeAttribute(i)}catch(e){}}},nt=function(e){ot(e);const t=v(e);t&&ks(Ss(t),e=>{try{f(e)}catch(e){}});const i=T(e)===Ea?w(e):null;if(i)for(let t=i.length-1;t>=0;--t){const n=i[t],s=n&&n.name;"string"==typeof s&&it(e,n,s)}},st=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}Ds(i.removed,{attribute:n||null,from:t});try{n?g(t,n):t.removeAttribute(e)}catch(i){try{t.removeAttribute(e)}catch(e){}}if("is"===e)if(ve||be)try{tt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},at=function(e){const t=w(e);if(t)for(let i=t.length-1;i>=0;--i){const n=t[i],s=n&&n.name;"string"!=typeof s||ee[qe(s)]||it(e,n,s)}},rt=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[e];for(;n.length>0;){const e=n.pop();if(!1===t(e))continue;if(i&&T(e)===Ea){const t=y(e);bt(t)&&n.push(t)}const s=v(e);if(s)for(let e=s.length-1;e>=0;--e)n.push(s[e])}},ot=function(e){rt(e,e=>{T(e)===Ea&&at(e)})},lt=function(e){const t=[];return rt(e,e=>{t.push(e)},!0),t},ct=function(e,t){let n=!1;return ks(i.removed,t=>{t.element&&(n=n||t.element===e,ot(t.element))}),function(e,t){const i=Ns();ks(lt(e),e=>{T(e)===Ea&&Os(i,e)}),ks(t,e=>{T(e)!==Ea||Ls(i,e)||at(e)})}(e,t),n},ut=function(e,t,i,n){const s=pt(e);let a;for(;a=s.nextNode();)Ls(n,a)&&!Ls(ke,a)&&(t&&wt(B.uponSanitizeShadowNode,a,null),Tt(a,i),Mt(a,i),bt(a.content)&&Nt(a.content))},dt=function(e,t){return!!de&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},ht=function(e){let t=null,i=null;if(me)e="<remove></remove>"+e;else{const t=$s(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Ve&&Re===Pe&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=D?L(e):e;if(Re===Pe)try{t=(new u).parseFromString(s,Ve)}catch(e){}if(!t||!t.documentElement){t=$.createDocument(Re,"template",null);try{t.documentElement.innerHTML=$e?I:s}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),Re===Pe?F.call(t,he?"html":"body")[0]:he?t.documentElement:a},pt=function(e){const t=C?C(e):e.ownerDocument;return j.call(t||e,e,c.SHOW_ELEMENT|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},ft=function(e){return e=js(e,U," "),e=js(e,W," "),e=js(e,V," ")},gt=function(e){var t;mt(e);const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&ks(i,e=>{bt(e.content)&&gt(e.content)})},mt=function(e){e.normalize();const t=C?C(e):e.ownerDocument,i=j.call(t||e,e,c.SHOW_TEXT|c.SHOW_COMMENT|c.SHOW_CDATA_SECTION|c.SHOW_PROCESSING_INSTRUCTION,null);let n=i.nextNode();for(;n;)n.data=ft(n.data),n=i.nextNode()},vt=function(e){const t=x?x(e):null;return"string"==typeof t&&("form"===qe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==w(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==v(e)))},bt=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return _(e)===Ma}catch(e){return!1}},yt=function(e){if(!_||"object"!=typeof e||null===e)return!1;try{return"number"==typeof _(e)}catch(e){return!1}};function wt(e,t,n){0!==e.length&&ks(e,e=>{e.call(i,t,n,Ke)})}const _t=function(e,t){if(e instanceof RegExp)return qs(e,t);if(e instanceof Function){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Boolean(e(t,...n))}return!1},xt=function(e,t,i,n){return 0===e.length?t:t===i||t===n?Xs(t):t},Ct=function(e,t){return e!==t&&null===b(e)&&(Te&&ot(e),!0)},Tt=function(e,t){var n;if(n=e,ke&&Os(ke,n),wt(B.beforeSanitizeElements,e,null),Ct(e,t))return!0;if(vt(e))return tt(e),!0;const s=qe(k(e));if(J=xt(B.uponSanitizeElement,J,X,fe),wt(B.uponSanitizeElement,e,{tagName:s,allowedTags:J}),Ct(e,t))return!0;if(function(e,t){return!!(de&&e.hasChildNodes()&&!yt(e.firstElementChild)&&qs(xa,e.textContent)&&qs(xa,e.innerHTML))||!!(de&&Na[t]&&T(e)===Ea&&A(e)===Pe&&(yt(e.firstElementChild)||"string"==typeof e.textContent&&qs(xa,e.textContent)))||e.nodeType===Da||!(!de||e.nodeType!==Sa||!qs(Ca,e.data))}(e,s))return tt(e),!0;if(ne[s]||!(ae.tagCheck instanceof Function&&ae.tagCheck(s))&&!J[s]){const i=function(e,t,i){if(!ne[t]&&At(t)&&_t(ie.tagNameCheck,t))return!1;if(Ce&&!Ae[t]&&!Ae[Ps(t)]){const t=b(e),n=v(e);if(n&&t)for(let s=n.length-1;s>=0;--s){const a=e===i?p(n[s],!0):n[s];t.insertBefore(a,m(e))}}return tt(e),!0}(e,s,t);return!(!1!==i||(wt(B.afterSanitizeElements,e,null),!Ct(e,t)))||i}if(T(e)===Ea&&!et(e))return tt(e),!0;if(("noscript"===s||"noembed"===s||"noframes"===s)&&qs(Ta,e.innerHTML))return tt(e),!0;if(ue&&e.nodeType===Aa){const t=ft(e.textContent);e.textContent!==t&&(Ds(i.removed,{element:e.cloneNode()}),e.textContent=t)}return wt(B.afterSanitizeElements,e,null),Ct(e,t)},kt=function(e,t,i){if(se[t])return!1;if(dt(t,e))return!1;if(we&&("id"===t||"name"===t)&&(i in n||i in Qe))return!1;const s=ee[t]||ae.attributeCheck instanceof Function&&ae.attributeCheck(t,e);return!(!oe||!qs(Y,t))||(!(!re||!qs(q,t))||(s?!!Me[t]||(!!qs(Z,js(i,Q,""))||(!("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==zs(i,"data:")||!Se[e])||(!(!le||qs(K,js(i,Q,"")))||!i))):At(e)&&_t(ie.tagNameCheck,e)&&_t(ie.attributeNameCheck,t,e)||"is"===t&&ie.allowCustomizedBuiltInElements&&_t(ie.tagNameCheck,i)))},Et=Zs({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),At=function(e){return!Et[Ps(e)]&&qs(G,e)},Dt=function(e,t,i,n){if(D&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!i)switch(d.getAttributeType(e,t)){case"TrustedHTML":return L(n);case"TrustedScriptURL":return function(e){O(),N++;try{return D.createScriptURL(e)}finally{N--}}(n)}return n},St=function(e,t,i,n){try{return i?e.setAttributeNS(i,t,n):e.setAttribute(t,n),!vt(e)||(tt(e),!1)}catch(i){return st(t,e),!1}},It=function(e,t){return!(!de||!qs(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,t))||"attributename"===Ps(e)&&null!==$s(t,"href")},Mt=function(e,t){if(wt(B.beforeSanitizeAttributes,e,null),Ct(e,t))return;const n=e.attributes;if(!n||vt(e))return;ee=xt(B.uponSanitizeAttribute,ee,te,ge);const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:ee,forceKeepAttr:void 0};let a=n.length;const r=qe(e.nodeName);for(;a--;){const t=n[a],o=t.name,l=t.namespaceURI,c=t.value,u=qe(o),d=c;let h="value"===o?d:Fs(d),p=!1;s.attrName=u,s.attrValue=h,s.keepAttr=!0,s.forceKeepAttr=void 0,wt(B.uponSanitizeAttribute,e,s),h=s.attrValue,!_e||"id"!==u&&"name"!==u||0===zs(h,xe)||(st(o,e,t),h=xe+h,p=!0),It(o,h)?st(o,e,t):s.forceKeepAttr||(s.keepAttr&&(ce||!qs(ka,h))?(ue&&(h=ft(h)),kt(r,u,h)?(h=Dt(r,u,l,h),h!==d&&St(e,o,l,h)&&p&&As(i.removed)):st(o,e,t)):st(o,e,t))}wt(B.afterSanitizeAttributes,e,null),Ct(e,t)},Nt=function(e){let t=null;const i=pt(e);for(wt(B.beforeSanitizeShadowDOM,e,null);t=i.nextNode();)if(wt(B.uponSanitizeShadowNode,t,null),Tt(t,e),Mt(t,e),bt(t.content)&&Nt(t.content),T(t)===Ea){const e=y(t);bt(e)&&(Ot(e),Nt(e))}ue&&mt(e),wt(B.afterSanitizeShadowDOM,e,null)},Ot=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Nt(e.shadow);continue}const i=e.node,n=T(i)===Ea,s=v(i);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(n){const e=x?x(i):null;if("string"==typeof e&&"template"===qe(e)){const e=i.content;bt(e)&&t.push({node:e,shadow:null})}}if(n){const e=y(i);bt(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,r=null,o=null;if($e=!e,$e&&(e="\x3c!--\x3e"),"string"!=typeof e&&!yt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Hs(e);case"boolean":return Bs(e);case"bigint":return Us?Us(e):"0";case"symbol":return Ws?Ws(e):"Symbol()";case"undefined":default:return Ys(e);case"function":case"object":{if(null===e)return Ys(e);const t=e,i=ea(t,"toString");if("function"==typeof i){const e=i(t);return"string"==typeof e?e:Ys(e)}return Ys(e)}}}(e)))throw Ks("dirty is not a string, aborting");if(!i.isSupported)return e;pe?(J=fe,ee=ge):Ze(t),(B.uponSanitizeElement.length>0||B.uponSanitizeAttribute.length>0)&&(J=Xs(J)),B.uponSanitizeAttribute.length>0&&(ee=Xs(ee)),i.removed=[];const l=Te&&"string"!=typeof e&&yt(e);let c=[];const u=ke;if(l){d=e,de&&rt(d,e=>{const t=T(e);if(t===Da||t===Sa&&qs(Ca,e.data)){try{f(e)}catch(e){}return!1}if(t===Ea){const t=e,i=qe(k(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&dt("for",i)&&t.removeAttribute("for")}catch(e){}}return!0});const t=k(e);if("string"==typeof t){const i=qe(t);if(!J[i]||ne[i])throw nt(e),Ks("root node is forbidden and cannot be sanitized in-place")}if(vt(e))throw nt(e),Ks("root node is clobbered and cannot be sanitized in-place");c=lt(e),ke=Ns()}else if(yt(e))n=ht("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===Ea&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),Ot(n);else{if(!ve&&!ue&&!he&&-1===e.indexOf("<"))return D&&ye?L(e):e;if(n=ht(e),!n)return ve?null:ye?I:""}var d;n&&me&&tt(n.firstChild);const h=l?e:n;try{l&&Ot(e);const t=pt(h);for(;r=t.nextNode();)Tt(r,h),Mt(r,h),bt(r.content)&&Nt(r.content);l&&function(e,t){const i=ke;let n=null;const s=()=>(n||(n=Ns(),ks(t,e=>{Os(n,e)})),n);for(let t=0;;t++){const n=lt(e),a=[e];let r=!1;if(ks(n,e=>{T(e)===Ma?Ds(a,e):r||Ls(i,e)||(r=Ls(s(),e))}),!r)return;if(t>=8)throw Ks("the tree kept changing during in-place sanitization; refusing to return it");ks(a,(t,i)=>{ut(t,i>0,e,s())})}}(e,c)}catch(t){throw l&&(nt(e),ct(e,c)),t}finally{ke=u}if(l){if(ct(e,c))throw Ks("a node selected for removal could not be safely returned; refusing to sanitize in place");return ue&&gt(e),e}if(ve){if(ue&&gt(n),be)for(o=z.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return(ee.shadowroot||ee.shadowrootmode)&&(o=H.call(s,o,!0)),o}let p=he?n.outerHTML:n.innerHTML;return he&&J["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&qs(wa,n.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+p),ue&&(p=ft(p)),D&&ye?L(p):p},i.setConfig=function(){Ze(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),pe=!0,fe=J,ge=ee},i.clearConfig=function(){Ke=null,pe=!1,fe=null,ge=null,D=S,I=""},i.isValidAttribute=function(e,t,i){Ke||Ze({});const n=qe(e),s=qe(t);return("string"!=typeof i||!(It(t,i)||!ce&&qs(ka,i)))&&kt(n,s,i)},i.addHook=function(e,t){"function"==typeof t&&Vs(B,e)&&Ds(B[e],t)},i.removeHook=function(e,t){if(Vs(B,e)){if(void 0!==t){const i=Es(B[e],t);return-1===i?void 0:Is(B[e],i,1)[0]}return As(B[e])}},i.removeHooks=function(e){Vs(B,e)&&(B[e]=[])},i.removeAllHooks=function(){B={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const $a="aui-tooltip",ja={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},za="aui-tooltip",Fa={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let Ha;const Ba=(e=!1)=>{const t=Ha&&Ha.get(0);t&&(t.classList.toggle("hidden",e),t.setAttribute("aria-hidden",e))};class Ua{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options={...Fa,...t},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),Wa.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",$a),null})}observeTriggerRemoval(){const e=[];this.options.$delegationRoot&&this.options.$delegationRoot.get(0)&&e.push(this.options.$delegationRoot.get(0)),this.triggerElement&&e.push(this.triggerElement),this.triggerObservers=e.map(e=>{const t=e.parentElement;if(t){const i=new MutationObserver(()=>{!t.contains(e)&&this.destroy()});return i.observe(t,{childList:!0,subtree:!1}),i}}).filter(e=>!!e)}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(`.${za}`,e):(this.triggerObservers.length>0&&this.triggerObservers.forEach(e=>e.disconnect()),this.$triggerElement.off(`.${za}`))}initContainer(){(void 0===Ha||Ha.get(0)&&!Ha.get(0).isConnected)&&(Ha=i(`<div id="${$a}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(Ha))}buildTip(e){const t=this.options,i=Ha.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=Ra.sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),Ha}getTipTitle(){const e=this.options;let t=("function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"").call(this.triggerElement);return t&&t.trim().length?t:void 0}show(){const e=this.getTipTitle();if(!1===this.enabled||!e)return;Ha&&e!==Ha.text()&&this.hide();const t=this.triggerElement,n=ja[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(t))return;const s=this.buildTip(e).get(0);this.showTooltip(),this.popperInstance=Xi(t,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${za}`,()=>this.hide())}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${za}`)}showTooltip(){Ba(!1)}hideTooltip(){Ba(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Wa=new WeakMap,Va=(e,t)=>{let i=Wa.get(e);return void 0===i&&(i=new Ua(e,t),"object"==typeof e&&Wa.set(e,i)),i},Ya=e=>e.map(e=>`${e}.${za}`).join(" "),qa=Ya(["mouseenter","focus"]),Ka=Ya(["click","mouseleave","blur"]);let Qa,Ga;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return Va(e)}if("string"==typeof e){const i=t.tooltip(!0),n=e;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),t}const i=e||{},n=function(){clearTimeout(Ga),clearTimeout(Qa)},s=function(){n();const e=Va(this,i);Qa=setTimeout(()=>{n(),e.show(),Ha&&(Ha.off(`mouseenter.${za}`),Ha.off(`mouseleave.${za}`),Ha.on(`mouseenter.${za}`,()=>{n()}),Ha.on(`mouseleave.${za}`,()=>{n(),a()}))},300)},a=function(){n();const e=Va(this,i);Ga=setTimeout(()=>{e.hide()},300)},r=function(e){"Escape"===e.code&&a()},o=i.live;return void 0!==o?(i.$delegationRoot=t,t.on(qa,o,s),t.on(Ka,o,a),t.on("keyup",o,r)):(t.on(qa,s),t.on(Ka,a),t.on("keyup",r)),t};var Za=function(e){function t(){return i('<div class="aui-dropdown2-section">')}var n=t();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=t(),a=i("<ul />").appendTo(s);return i.each(e,function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(a),s=i("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);t.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(s),t.selected&&s.addClass("aui-dropdown2-checked")}),i("<div />").append(n).append(s).html()},Ja=function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),a=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),r=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(r).append(a).html()};function Xa(e){var t=i(e.target);er(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function er(e,t,n){var s=e.$select.find("option").filter(function(){var e=i(this);return e.attr("value")===t&&e.prop("selected")!==n});s.length&&(s.prop("selected",n),e.$select.trigger("change"))}function tr(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",function(){return ar(e).length<1})}function ir(e){return e.map(function(){var e=i(this);return{value:e.val(),label:e.text(),icon:e.data("icon"),styleClass:e.data("styleClass"),title:e.attr("title"),disabled:e.attr("disabled"),selected:e.prop("selected")}})}function nr(e){e.$dropdown.html(Za(function(e){return ir(e.getOptions())}(e))),tr(e)}function sr(e){var t=rr(e),n=function(e){return 0===ar(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function ar(e){return ir(e.getSelectedOptions())}function rr(e){return i.map(ar(e),function(e){return e.label})}const or=Z("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||gn("aui-checkbox-multiselect-");e.innerHTML=Ja(t,e.innerHTML),e.$select=i("select",e).on("change",function(){sr(e),tr(e)}),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",Xa.bind(e)).on("aui-dropdown2-item-uncheck",Xa.bind(e)).on("click","button[data-aui-checkbox-multiselect-clear]",e.deselectAllOptions.bind(e)),e.$btn=i(".aui-checkbox-multiselect-btn",e).tooltip({title:function(){return function(e){return e.$dropdown[0].hasAttribute("hidden")?"":rr(e).join(", ")}(e)}}),sr(e),nr(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){er(this,e,!0)},unselectOption:function(e){er(this,e,!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(e){i("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),sr(this),nr(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),sr(this),nr(this)}}});G("aui/checkbox-multiselect",or);const lr=or;var cr=a(722);const ur=a.n(cr)();const dr=function(e){function t(t){return n(function(){return e.hasAttribute(t)},t+" wasn't defined")}function i(i){if(!t(i))return!1;var s=e.getAttribute(i);return n(function(){return document.getElementById(s)},'an element with id set to "'+s+'" was not found')}function n(t,i){return!!t()||(e?m(i,e):m(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},hr="-input";function pr(e){return e.querySelector("label")}const fr=Z("aui-label",{template:Ye()("<label><content></content></label>"),created:function(e){e._label=pr(e)},attached:function(e){dr(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?pr(e).setAttribute("for",`${t.newValue}${hr}`):pr(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?pr(e).setAttribute("form",t.newValue):pr(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});a(217);const gr=i.fn.select2,mr="aui-select2-container",vr="aui-select2-drop aui-dropdown2",br="aui.select2DropdownLayer";i.fn.auiSelect2=function(e){let t;if(i.isPlainObject(e)){const n=i.extend({},e),s=n.hasAvatar?" aui-has-avatar":"";n.containerCssClass=mr+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=vr+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:mr,dropdownCssClass:vr}];const n=t[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let e=n.ajax.params.error;Array.isArray(e)||(e=[e]);let t=n.ajax.transport;t||(t=gr.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...e],t(...i)};n.ajax.transport=i}const s=gr.apply(this,t),a=this,r=n.searchLabel;return a.on("select2-open",function(){const e=i(this),t=e.select2("dropdown");let s=e.data(br);s||(s=Oe(),e.data(br,s)),s.show(),t.css("z-index",s.$el.css("z-index")),i("#select2-drop-mask").css("z-index",s.$el.css("z-index")),n.multiple||e.attr("multiple")||r&&t.find(".select2-search label").text(r)}),a.on("select2-close",function(){const e=i(this),t=e.data(br);t?t.hide():AJS.warn("Warning! AUI: `select2-close` event handler could not discover the layer linked with the Select2 dropdown.","This may be happening when there are many instances of Select2 created on the same DOM element.","Consider checking your code as this can negatively affect performance."),e.removeData("was-ariadescribedby-cleared")}),a.on("select2-loaded",function(){const e=i(this),t=e.data("was-ariadescribedby-cleared");if(n.multiple||e.attr("multiple")||t)return;e.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),e.data("was-ariadescribedby-cleared",!0)}),a.on("select2-focus",function(){const e=i(this),t=e.parent().find(".select2-container");if(n.multiple||e.attr("multiple"))return void(r&&t.find(".select2-search-field label").text(r));const s=t.find("label");if(s.attr("id"))return;const a=t.find(".select2-focusser"),o=a.attr("id")+"-label",l=a.attr("aria-labelledby");s.attr("id",o),a.attr("aria-labelledby",o+" "+l)}),s},i.fn.spin=P(function(e,t){let n={size:"small"};return"object"==typeof t&&(n=i.extend(n,t)),"object"==typeof e&&(n=i.extend(n,e)),"string"==typeof e&&(n.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each(function(){if(!this||!this.nodeType)return;const e=i(this),t=e.data();if(t){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),e.spinStop(),e.append(s),Z.init(this),t.spinner=s}})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=P(function(){return this.each(function(){if(!this||!this.nodeType)return;const e=i(this).data();e&&e.spinner&&(e.spinner.remove(),delete e.spinner)})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});const yr=Z("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||S(this.textContent)},set:function(t){e.setAttribute("value",t)}})},prototype:{serialize:function(){var e={};return this.hasAttribute("img-src")&&(e["img-src"]=encodeURI(this.getAttribute("img-src"))),e.value=this.value,e.label=S(this.textContent),e}}});var wr=a(572),_r=a.n(wr),xr=_r().Collection.extend({initialize:function(e,t){t||(t={}),t.matcher&&(this.matcher=t.matcher),t.model&&(this.model=t.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=t.maxResults||5,this._queryData=t.queryData||{},this._queryParamKey=t.queryParamKey||"q",this._queryEndpoint=t.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,pt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(e){var t,i;this.value=e,i=this.getFilteredResults(e),this.respond(e,i),e&&this._queryEndpoint&&!this.hasQueryCache(e)&&this.shouldGetMoreResults(i)&&(t=this.fetch(e),this.activeQueryCount++,this.trigger("activity",{activity:!0}),t.always(()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})}),t.done((t,i,n)=>{this.addQueryCache(e,t,n)}),t.done(()=>{e=this.value,i=this.getFilteredResults(e),this.respond(e,i)}))},getQueryData:function(e){var t=(0,pt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,pt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return _r().Collection.prototype.fetch.call(this,t)},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(e){var t=[];return e?(t=this.filter(function(t){return!!this.matcher(t,e)},this),this._maxResults&&(t=(0,pt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,pt.pluck)(s,this._idAttribute)},hasQueryCache:function(e){return this.queryCache.hasOwnProperty(e)},findQueryCache:function(e){return this.queryCache[e]},shouldGetMoreResults:function(e){return e.length<this._maxResults},setMaxResults:function(e){this._maxResults=e,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});l("ProgressiveDataSet",xr);const Cr=xr,Tr=_r().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function kr(){this._suggestions=[],this._activeIndex=-1}kr.prototype={onChange:function(){},onHighlightChange:function(){},get:function(e){return this._suggestions[e]},set:function(e){var t=this._suggestions;return this._suggestions=e||[],this.onChange(t),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(e){if(e)for(var t=0;t<this._suggestions.length;t++)this._suggestions[t].id===e.id&&this.highlight(t);return this},highlight:function(e){return this._activeIndex=e,this.onHighlightChange(),this},highlightPrevious:function(){const e=this._activeIndex,t=0===e?this._suggestions.length-1:e-1;return this.highlight(t),this},highlightNext:function(){const e=this._activeIndex,t=e===this._suggestions.length-1?0:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const Er=kr;function Ar(e,t){return e+"-"+t}function Dr(e,t){this.el=e,this.anchor=t}function Sr(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}Dr.prototype={render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let a=0;a<e.length;a++){const r=e[a],o=a+t,l=r.getLabel(),c=r.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=r.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${Ar(i,o)}">${u}${l}${d}</li>`}t?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else t||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(e){Sr(this.el),i(this.el).find("#"+Ar(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var e;i((e=this).el).css("min-width",i(e.anchor).outerWidth()),Oe(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new cn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;Sr(this.el),Oe(this.el).hide(),(e=this)._auiAlignment&&e._auiAlignment.disable()},destroy:function(){var e;this.hide(),(e=this)._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};const Ir=Dr,Mr=Ye()('\n <input type="text" class="text" role="combobox" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" tabindex="-1" type="button"></button>\n <div class="aui-popover" data-aui-alignment="bottom left" hidden>\n <ul role="listbox" class="aui-optionlist"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function Nr(e){e._select.selectedIndex=-1,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Or(e){return e._suggestionModel.getNumberOfResults()}function Lr(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function Pr(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),Yr(e,"")}function Rr(e){e._suggestionsView.hide(),Pr(e)}function $r(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function jr(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&function(e,t){i(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+encodeURI(t)+")")}(e,t)}function zr(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),r=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=r,e._input.value=r,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ve("change",{bubbles:!0}))}}function Fr(e){zr(e,e._suggestionModel.highlighted()),jr(e),Rr(e)}function Hr(e){return new Tr(e.serialize())}function Br(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Hr(n))}return t}function Ur(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function Wr(e,t){return i.map(t,function(e){return e.id}).indexOf(e)}function Vr(e){e._progressiveDataSet=new Cr(Br(e),{model:Tr,matcher:Lr,queryEndpoint:e._queryEndpoint,maxResults:20}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),J(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),J(e).set("should-flag-new-suggestions",!0))}),e._progressiveDataSet.on("respond",function(t){if(t.query&&!e._input.value)return;if(J(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||J(e).set("should-cancel-response",!1));t.query||(t.results=Br(e));var i=-1!==Wr(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new yr;t.setAttribute("value",e._input.value);var i=Hr(t);return i.set("new-value",!0),i}(e));let s=Wr(e.value,t.results);s=-1===s?0:s;const a=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),r=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(r),setTimeout(function(){const t=Ur(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")},50)),e._input.setAttribute("aria-expanded","true"),e._button.setAttribute("aria-expanded","true"),!e._isSync&&a&&e._suggestionsView.getActive()&&J(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()})}function Yr(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout(()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)},50)}function qr(e){$r(e,!0,e.value?"":e._input.value)}function Kr(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function Qr(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function Gr(e){Kr(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==Qr(e);if(i||n)if(t)Nr(e);else{var s=Qr(e);void 0===s?Nr(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(-1)}(e),Rr(e)}const Zr=Z("aui-select",{template:Mr,created:function(e){e._listId=gn(),e._input=e.querySelector("input"),e._select=e.querySelector("select"),e._dropdown=e.querySelector(".aui-popover"),e._datalist=e.querySelector("datalist"),e._button=e.querySelector("button"),e._assistiveStatus=e.querySelector(".aui-select-status.assistive"),e._suggestionsView=new Ir(e._dropdown,e._input),e._suggestionModel=new Er,e._suggestionModel.onChange=function(t){const i=[];e._suggestionModel._suggestions.forEach(function(e){t.some(t=>e.id===t.id)||i.push(e)});const n=Br(e),s=Wr(e.value,n),a=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),Yr(e,a)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=Ur(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),Vr(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),function(e){i(e._dropdown).on("mouseover","li",function(t){Or(e)&&e._suggestionModel.highlight(i(t.target).index())})}(e),function(e){let t=!1;i(document).on("aui-close-layers-on-outer-click.single-select",e=>{t&&(e.preventDefault(),t=!1)}),i(e._dropdown).on("mousedown","li",function(n){if(!Or(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Fr(e),i(e).closest(".aui-layer").length>0&&(t=!0)})}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&zr(e,Hr(t))}(e),function(e){var t=Or(e)?0:-1;e._suggestionModel.highlight(t),Rr(e)}(e),jr(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),un(e).then(()=>{Rr(e),e._suggestionsView.destroy()})},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+hr)},name(e,t){e.querySelector("select").setAttribute("name",t.newValue),e.querySelector("select").setAttribute("aria-label",`${t.newValue} list`),e.querySelector("button").setAttribute("aria-label",`${t.newValue} list`),e.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${t.newValue} list`)},placeholder(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){Gr(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||J(e).set("prevent-open-on-button-click",!0)},"click input":function(e){qr(e)},"click button":function(e){var t=J(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(J(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?$r(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Rr(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return Kr(e),void Pr(e);e._suggestionsView.isVisible()&&Or(e)?t.keyCode===Q.ENTER?(Kr(e),Fr(e),t.preventDefault()):t.keyCode===Q.TAB?(Fr(e),n=!0):t.keyCode===Q.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===Q.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==Q.UP&&t.keyCode!==Q.DOWN||(qr(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout(function(){e._input.value===i||n||e.dispatchEvent(new ve("input",{bubbles:!0}))},0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){if(""===e)(n=this)._input.value="",n._select.innerHTML="";else if(e){var t=this._progressiveDataSet,i=t.findWhere({value:e})||t.findWhere({label:e});!i&&this.hasAttribute("can-create-values")&&(i=new Tr({value:e,label:e})),zr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Gr(this),this},focus:function(){return this._input.focus(),qr(this),this}}});G("aui/select",Zr),l("select",Zr);const Jr=Zr;function Xr(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const eo={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Xr,computeEnumValue:function(e,t){const i=e=>e.toLowerCase()===t.toLowerCase(),n=null===t,s=!n&&!e.values.filter(i).length;return n?e.hasOwnProperty("missingDefault")?e.missingDefault:null:s?e.hasOwnProperty("invalidDefault")?e.invalidDefault:e.hasOwnProperty("missingDefault")?e.missingDefault:null:e.values.length?e.values.filter(i)[0]:null},setEnumAttribute:function(e,t,i){e.setAttribute(t.attribute,i)}};function to(e){return e._input||(e._input=e.querySelector("input"))}function io(e){return e._spinner||(e._spinner=new _t)}function no(e,t){to(t).removeAttribute(e)}function so(e,t,i){to(t).setAttribute(e,i.newValue)}function ao(e){return{removed:no.bind(this,e),fallback:so.bind(this,e)}}const ro={removed:function(e){no.call(this,"form",e),e._formId=null},fallback:function(e,t){so.call(this,"form",e,t),e._formId=t.newValue}},oo={removed:no.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${hr}`;to(e).setAttribute("id",i)}},lo={removed:function(e){no.call(this,"value",e),to(e).value="on"},fallback:function(e,t){so.call(this,"value",e,t)}},co={removed:function(e){to(e).checked=!1},fallback:function(e){to(e).checked=!0}},uo={removed:function(e){to(e).removeAttribute("aria-label")},fallback:function(e,t){to(e).setAttribute("aria-label",t.newValue)}};function ho(e){to(e).addEventListener("keydown",function(t){e.busy&&t.keyCode===Q.SPACE&&t.preventDefault()}),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&to(e).addEventListener("click",function(t){e.busy&&t.preventDefault()}),function(){if(void 0===Ot)try{document.querySelector(":focus-within"),Ot=!0}catch(e){Ot=!1}return Ot}()||(e._input.addEventListener("focus",()=>e.classList.add("active")),e._input.addEventListener("blur",()=>e.classList.remove("active")))}const po=Z("aui-toggle",{template:Ye()('<input type="checkbox" role="switch" 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(e){to(e),io(e).setAttribute("size",ft.SMALL.name),i(to(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),ho(e),e.hasAttribute("checked")&&to(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){dr(e).attributeExists("label")},events:{click:function(e,t){const i=to(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new ve("change",{bubbles:!0}))}(e)),Xr(e,"checked",i.checked)}},attributes:{id:oo,checked:co,disabled:ao("disabled"),form:ro,name:ao("name"),value:lo,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){to(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){to(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:uo},prototype:{focus:function(){return to(this).focus(),this},get checked(){return to(this).checked},set checked(e){to(this).checked!==e&&(to(this).checked=e,Xr(this,"checked",e))},get disabled(){return to(this).disabled},set disabled(e){return Xr(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return ro.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return to(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return to(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===to(this).getAttribute("aria-busy")},set busy(e){const t=to(this),n=io(this);var s,a;return Xr(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),a=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),function(e){e.disabled=a}),e}}}),fo=po;function go(e,t){So(e)&&te(e,function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)}),ee(e,t)}function mo(e,t){if(e._auiAlignment)e._auiAlignment.changeTarget(t),e._auiAlignment.enable();else{let i={overflowContainer:"viewport"===e.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};e._auiAlignment=new cn(e,t,i)}}function vo(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function bo(e,t){var i=t.currentTarget;i&&(go(e,i),mo(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function yo(e=0){return function(t){t.open&&!Oe(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout(function(){(function(e){return J(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null},e))}}const wo={click(e,t){e.open&&!Oe(e).isPersistent()?e.open=!1:(go(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:bo,mouseleave:yo(1e3),focus:bo,blur:yo(0)};function _o(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function xo(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function Co(e){var t=e.currentTarget;"hover"===t.respondsTo&&yo(1e3)(t)}function To(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",_o),e.removeEventListener("mouseleave",xo),e.removeEventListener("blur",Co),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",_o),e.addEventListener("mouseleave",xo),e.addEventListener("blur",Co))}function ko(e,t){return`${e}.nested-layer-${t}`}function Eo(e){return Oe(e).show(),!0===Oe(e).isVisible()}function Ao(e){return Oe(e).hide(),!1===Oe(e).isVisible()}function Do(e){return"hover"!==e.respondsTo}function So(e){return"dialog"!==e.getAttribute("role")}function Io(e){e.__initialised||(Oe(e),i(e).on({[`${be}show`]:function(e){const t=this;e.target===t&&(!function(e){let t=i(e);const n=e.id,s=e=>t.find(X(e.target)).length<1;i(document).on(ko("aui-layer-show",n),e=>{s(e)||t.attr("persistent","")}).on(ko("aui-layer-hide",n),e=>{s(e)||t.removeAttr("persistent")}).on(ko("select2-opening",n),()=>{t.attr("persistent","")}).on(ko("select2-close",n),()=>{setTimeout(()=>{t.removeAttr("persistent")},150)})}(t),te(t,function(e){Do(t)&&fe().enter(i(t),i(e)),mo(t,e),So(t)&&e.setAttribute("aria-expanded","true")}))},[`${be}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(ko("aui-layer-hide",n)).off(ko("aui-layer-show",n)).off(ko("select2-opening",n)).off(ko("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):vo(t),te(t,function(e){Do(t)&&fe().exit(i(t)),So(t)&&e.setAttribute("aria-expanded","false")}),ee(t,null))}}),e.__initialised=!0)}const Mo={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},No=Z("aui-inline-dialog",{prototype:{get open(){return Oe(this).isVisible()},set open(e){this.__propUpdate=!0,e?Eo(this):Ao(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){eo.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=Mo.attribute;return eo.computeEnumValue(Mo,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;eo.setEnumAttribute(this,Mo,e),t!==this.respondsTo&&To(this)},message:function(e){var t,i,n;return i=e,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(t=this).respondsTo])&&n.indexOf(i.type)>-1&&wo[i.type](t,i),this}},attributes:{open:function(e,t){if(Io(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){Eo(e)||Xr(e,"open",!1)}if("removed"===t.type){Ao(e)||Xr(e,"open",!0)}}},"responds-to":function(e,t){eo.computeEnumValue(Mo,t.oldValue)!==eo.computeEnumValue(Mo,t.newValue)&&To(e)}},created:Io,attached:function(e){dr(e).attributeExists("id"),e.setAttribute("tabindex",0),So(e)&&(e.setAttribute("role","group"),te(e,function(t){t.setAttribute("aria-expanded",e.open)}),ie(e,function(e){e.setAttribute("aria-haspopup","true")})),To(e)},detached:function(e){un(e).then(()=>{vo(e),So(e)&&ie(e,function(e){e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded")})})},template:function(e){i('<div class="aui-inline-dialog-contents"></div>').append(e.childNodes).appendTo(e)}});G("aui/inline-dialog2",No),l("InlineDialog2",No);const Oo=No;function Lo(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map(function(e,t){return new Lo(t)})[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 t=this.$el.children(".aui-nav-selected");t.parents(".aui-nav > [aria-expanded=false]").add(t.filter("[aria-expanded=false]")).each(function(){Po(i(this).children(".aui-nav")).expand()});var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",function(){Po(i(this).siblings(".aui-nav")).toggle()}),n.each(function(){var e=i(this).parent("li[aria-expanded]"),t=i(this).find(".aui-icon"),n="true"===e.attr("aria-expanded");t.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))}),this}Lo.prototype.isNested=function(){return 1===this.$treeParent.length},Lo.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Lo.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},Lo.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},Lo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Po=ge("navigation",Lo),Ro=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new Lo(e)},detached:function(e){i(e).removeData()}});l("navigation",Po);const $o=Po;function jo(e,t,{currentProgress:n,value:s}){const a=i(e),r=i(t);"number"==typeof s&&s<=1&&s>=0&&(r.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",function(){r.trigger("aui-progress-indicator-after-update",[n,s])}),function(e,t,i){U(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,r,s))}function zo(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),U(t),n.css("width","")}const Fo={indeterminate:!1,max:1,val:0};function Ho(e){return(0,pt.isNumber)(e)&&(0,pt.isFinite)(e)&&!(0,pt.isNaN)(e)}function Bo(e,t=1){const i=parseFloat(e);return Ho(i)?i:Number(t)}function Uo(e,t=1){return Number(parseFloat(e).toFixed(t))}function Wo(e){const{val:t,max:i}=e,n=function(e){return e>0?e:Fo.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Uo(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Uo(100*a,2)}}function Vo(e){const{val:t,valAsFraction:i,max:n}=Wo(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),zo(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),jo(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Yo(e,t){e._data.val=Bo(t.newValue,t.oldValue||Fo.val),Vo(e)}function qo(e,t){e._data.max=Bo(t.newValue,t.oldValue||Fo.max),Vo(e)}const Ko=Z("aui-progressbar",{template(e){e._data.max=Bo(e.getAttribute("max"),Fo.max),e._data.val=Bo(e.getAttribute("value"),Fo.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Wo(e._data),a=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${a}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${t}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(e){Vo(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:Fo.val,fallback:function(e,t){if(e._updating)return!1;Yo(e,t)}},max:{value:Fo.max,fallback:function(e,t){if(e._updating)return!1;qo(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,pt.defaults)({},Fo))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Vo(this)},get value(){const{val:e}=Wo(this._data);return e},set value(e){if(!Ho(e))return!1;const t={newValue:Uo(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Yo(this,t)},get max(){const{max:e}=Wo(this._data);return e},set max(e){if(!Ho(e))return!1;const t={newValue:Uo(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,qo(this,t)}}}),Qo={update:P(function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var n=i(e).first(),s=n.children(".aui-progress-indicator-value"),a=n.attr("data-value"),r=!a,o=parseFloat(a)||0,l=a&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return r&&s.css("width",0),jo(s,n,{currentProgress:o,value:t}),n},"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:P(zo,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Qo);const Go=Qo;a(99);const Zo={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Jo(e,t){let n=Object.assign({},Zo,t);return e.find("th").each(function(e,t){const s=i(t);n.headers[e]={},s.hasClass("aui-table-column-unsortable")?n.headers[e].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[e].sorter="issue-key"))}),e.tablesorter(n)}let Xo={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){const t=e.split("-"),i=t[0],n=t[1],s="..........",a="000000";let r=(i+s).slice(0,10);return r+=(a+n).slice(-6),r},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each(function(){Jo(i(this))})},setTableSortable:function(e,t){return Jo(e,t)}};i(Xo.setup),l("tablessortable",Xo);function el(e,t=""){var n=i(e),s=t||!1;n.each(function(){var e=i(this);e.attr("id")||e.attr("id",gn(s))})}l("_addID",el);const tl=el;function il(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",il);const nl=il;var sl=window.skateTemplateHtml;function al(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function rl(e){let t=al(e);return t?document.getElementById(t):null}var ol={totalTabsWidth:function(e,t){var i=this.totalVisibleTabWidth(e),n=0;return t.find("li").each(function(e,t){n+=parseInt(t.getAttribute("data-aui-tab-width"))}),i+n},totalVisibleTabWidth:function(e){var t=0;return e.each(function(e,n){t+=i(n).outerWidth()}),t},removeResponsiveDropdown:function(e,t){e.remove(),t.remove()},createResponsiveDropdownTrigger:function(e,t){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-${t}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${t}"\n href="#aui-tabs-responsive-dropdown-${t}">...</a>\n </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>';return e.append(i),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,n){function s(e,t,i){return e+t<=i}for(var a=0,r=0;s(a,n,t)&&r<e.length;r++){a+=i(e[r]).outerWidth(!0)}return e.slice(0,r-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),r=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=r.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(r)},moveTabToResponsiveDropdown:function(e,t,i){var n=e.find("a");e.attr("data-aui-tab-width",e.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),e.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),t.find("ul").prepend(e)},moveInvisibleTabs:function(e,t,n){function s(e){return e>0}for(var a=0;s(t)&&a<e.length;a++){var r=i(e[a]),o=parseInt(r.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(r,n),t-=o}},moveTabOutOfDropdown:function(e,t){e.find("a").hasClass("aui-dropdown2-checked")&&(e.addClass("active-tab"),t.removeClass("active-tab")),e.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),t.before(e)}};function ll(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=rl(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var a=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),r=i(document.getElementById(a));if(r.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),r.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var o=s.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")}t.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),t.closest(".tabs-menu").find("a").attr("aria-selected","false"),t.attr("aria-selected","true"),t.trigger("tabSelect",{tab:t,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function cl(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function ul(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function dl(e){vl.change(i(e.target).closest("a")),e&&e.preventDefault()}function hl(e){e.forEach(function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),a=s.find("li:not(.aui-tabs-responsive-trigger-item)"),r=s.find(".aui-tabs-responsive-trigger").parent(),o=r.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=ol.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(r=ol.createResponsiveDropdownTrigger(s,t),c=ol.createResponsiveDropdown(n,t)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),o.attr("id","aui-tabs-responsive-trigger-"+t),o.attr("href","#aui-tabs-responsive-trigger-"+t),c.attr("id","aui-tabs-responsive-dropdown-"+t),d){var h=ol.moveVisibleTabs(a.toArray(),n,r),p=ol.totalVisibleTabWidth(h),f=n.outerWidth()-p-r.outerWidth(!0);if(f>0){var g=c.find("li");ol.moveInvisibleTabs(g.toArray(),f,r)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",dl),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each(function(){ol.moveTabOutOfDropdown(i(this),r)}),ol.removeResponsiveDropdown(c,r))}(e,t)})}function pl(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function fl(e){var t=i(e);if(e.setAttribute("role","application"),!t.data("aui-tab-events-bound")){var n=t.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each(function(){var e,t,n;t=i(e=this),n=rl(t),al(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(tl(t),t.attr("role","tab"),i(n).attr("aria-labelledby",t.attr("id")),t.parent().hasClass("active-tab")?t.attr("aria-selected","true"):t.attr("aria-selected","false")):g("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",e)}),n.on("click.aui-tabs","a",dl),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(ml)}(e)}}function gl(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each(function(){fl(this)}),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(cl(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(ul(n));if(a){var r=s.querySelector(`a[href$="${a}"]`);r&&ll(r)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function ml(e){e.setAttribute("role","tabpanel")}var vl={setup:function(){!function(){const e=(0,pt.debounce)(hl,200);e(pl()),i(window).on("resize.aui-tabs",()=>e(pl()))}(),gl(),i(".aui-tabs.vertical-tabs").find("a").each(function(){var e=i(this);e.attr("title")||nl(e)&&e.attr("title",e.text())})},change:function(e){var t=e instanceof HTMLElement||e instanceof i?e:document.querySelector(e),n=i(t).first(),s=n.closest(".aui-tabs");ll(n),cl(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=al(e);i&&window.localStorage.setItem(ul(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(vl.setup);const bl=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),fl(e)},template:sl('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(e){var t=i(function(e){return e.querySelectorAll("aui-tabs-pane")}(this)).index(e);return t>-1&&vl.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),yl=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:sl('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),wl=Z("aui-tabs-pane",{attached:function(e){var t=i(function(e){return i(e).closest("aui-tabs").get(0)}(e)),n=i(e),s=t.find("aui-tabs-pane").index(n),a=new yl,r=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),sl.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&r.addClass("active-tab"),n.siblings("ul").append(a)},template:sl("<content></content>")});l("tabs",vl);const _l="_aui-form-notification-initialised",xl="description",Cl="errors",Tl="data-aui-notification-",kl=Tl+"wait",El=Tl+"info",Al=Tl+"error",Dl=[Al,Tl+"success",kl,El];function Sl(e){Il(e)||(!function(e){e.addClass(_l),Ml(e)}(e),Ll(e))}function Il(e){return e.hasClass(_l)}function Ml(e,t){if(t=t||Nl(e),Ol(e)===El){e.parent().find(".description").length||e.after(function(e,t){const i=e.attr("id")||e.attr("name");if(t.length>1){let e=t.map(e=>`<li>${e}</li>`).join("");return`<div class="description" id="${i}-${xl}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${xl}">${t}</div>`}(e,t))}Pl(e)}function Nl(e){var t=Ol(e),i=t?e.attr(t):"";return""===i?i:function(e){var t;try{t=JSON.parse(e)}catch(i){t=[e]}return t}(i)}function Ol(e){let t;return Dl.some(function(i){if(e.is("["+i+"]"))return t=i,!0}),t}function Ll(e){const t=i(e);if(!Il(t))return;const n=Ol(t);jl(t,n===kl);const s=Nl(t);s&&n===Al?Rl(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(Al)||t.parent().find(".error").remove()}function Pl(e){const t=[],i=e.attr("id")||e.attr("name"),n=Ol(e);Nl(e)&&n===Al&&t.push(`${i}-${Cl}`),$l(e,"description").length&&t.push(`${i}-${xl}`);const s=function(e){const t={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(t))if(e.is(i)){const t=e.find(n);if(t.length)return t}return e}(e);s.attr("aria-describedby",t.length?t.join(" "):null)}function Rl(e,t){let i=$l(e,"error");i.length>0&&i.remove(),e.after(function(e,t){const i=e.attr("id")||e.attr("name"),n=t.map(e=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${e}</li>`).join("");return`<div class="error" role="alert" id="${i}-${Cl}"><ul>${n}</ul></div>`}(e,t)),Pl(e)}function $l(e,t){return e.parent().find(`.${t}`)}function jl(e,t){t&&!function(e){return e.next("aui-spinner").length>0}(e)?e.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):e.parent().find("aui-spinner").remove()}const zl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){zl(),Sl(i(e))},attributes:function(){const e={};return Dl.forEach(function(t){e[t]=Ll}),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Fl=["displayfield","watchfield","when","novalidate","state"],Hl=[];var Bl={register:function(e,t){var n;if("string"==typeof e)n=e;else{var s=function(e){var t=!1;return e.some(function(e){var n=-1!==i.inArray(e,Fl);return n&&(t=e),n}),t}(e);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var a={validatorFunction:t,validatorTrigger:n};return Hl.push(a),a},validators:function(){return Hl}};G("aui/form-validation/validator-register",Bl);const Ul=Bl;function Wl(e){var t=e.el.value.length;let i=0===t;var n=parseInt(e.args("minlength"),10),s=parseInt(e.args("maxlength"),10);if(n&&s&&n===s&&!i&&t!==n){const t=Gl("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=Gl("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=Gl("maxlength",e.args);e.invalidate(t)}else e.validate()}function Vl(e){return"password"===e.getAttribute("type")}function Yl(e,t){var i=e.match(t);return!!i&&e===i[0]}function ql(e){var t=Gl("pattern",e.args);Yl(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function Kl(e){var t=Gl("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ql(e){var t=Gl("validnumber",e.args),i=parseInt(e.el.value,10);if(isNaN(i))e.invalidate(t);else{var n=e.args("min"),s=e.args("max");n&&i<parseInt(n,10)?e.invalidate(Gl("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(Gl("max",e.args)):e.validate()}}function Gl(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:Zl[e];var s=i;i||(s=[t(e)]);var a,r=t(e+"-msg");return a=r?[r].concat(s):[n].concat(s),AJS.format.apply(null,a)}Ul.register(["maxlength","minlength"],Wl),Ul.register("[maxlength],[minlength]",Wl),Ul.register(["matchingfield"],function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=Gl("matchingfield",e.args,[t,n]);(Vl(e.el)||Vl(i))&&(s=Gl("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()}),Ul.register(["doesnotcontain"],function(e){var t=Gl("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),Ul.register(["pattern"],ql),Ul.register("[pattern]",ql),Ul.register(["required"],Kl),Ul.register("[required]",Kl),Ul.register(["min","max"],Ql),Ul.register("[min],[max]",Ql),Ul.register(["dateformat"],function(e){var t=e.args("dateformat"),i=Gl("dateformat",e.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)"},s=t.split(""),a="";s.forEach(function(e){var t=n.hasOwnProperty(e);a+=t?n[e]:e});var r=new RegExp(a+"$","i");Yl(e.el.value,r)?e.validate():e.invalidate(i)}),Ul.register(["minchecked","maxchecked"],function(e){var t=i(e.el).find(":checked").length,n=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),a=Gl("minchecked",e.args),r=Gl("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(r):e.invalidate(a)});var Zl={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")};G("aui/form-validation/basic-validators");const Jl="aui-validation-",Xl="data-aui-notification-",ec="aui-validation-state",tc="invalid",ic="valid",nc="validating",sc="unvalidated",ac="_aui-form-validation-initialised",rc="_aui-internal-field-state-changed";function oc(e){(function(e){return e.hasClass(ac)})(e)||(!function(e){e.addClass(ac),Ml(e)}(e),function(e){(function(e){var t,i=function(){e.trigger("aui-stop-typing")};e.on("keyup",function(){clearTimeout(t),t=setTimeout(i,1500)})})(e),function(e){var t=cc(e,"when"),i=cc(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,function(){lc(e)})}(e)}(e),hc(e,sc))}function lc(e){if(!cc(e,"novalidate"))return function(e){!function(e){pc(gc(e),"none")}(e);var t=function(e){var t=[];return uc().forEach(function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)}),t}(e);hc(e,nc);var n=function(e,t){var n=[];return t.forEach(function(t){var s=uc()[t].validatorFunction,a=new i.Deferred,r=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){hc(e,tc,i),t.reject()},args:dc(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a);s(r),n.push(a)}),n}(e,t),s=i.when.apply(i,n);return s.done(function(){hc(e,ic)}),s}(e);hc(e,ic)}function cc(e,t){var i=e.attr("data-"+Jl+t);return i||(i={when:"change"}[t]),i}function uc(){return Ul.validators()}function dc(e){return function(t){return e.attr("data-"+Jl+t)||e.attr(t)}}function hc(e,t,n){if(e.attr("data-"+ec,t),e.attr("aria-invalid",!1),t!==sc){e.trigger(i.Event(rc));var s=gc(e),a={};a[nc]="wait",a[tc]="error",a[ic]="success";var r=a[t];t===nc?function(e){setTimeout(function(){mc(e)===nc&&(pc(e,"wait"),jl(e,!0))},500)}(e):pc(s,r,n),t===tc&&e.attr("aria-invalid",!0)}}function pc(e,t,i){const n=function(e){return e.is("["+Xl+"wait]")}(e);!function(e){fc(e,"wait"),jl(e,!1),fc(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)fc(e,"error");else{const n=e.attr(Xl+t)||"[]",r=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr(Xl+t,JSON.stringify(r)),"error"===t&&Rl(e,r)}}function fc(e,t){e.removeAttr(Xl+t),"error"===t&&($l(e,t).remove(),Pl(e))}function gc(e){var t=cc(e,"displayfield");return void 0===t?e:i("#"+t)}function mc(e){return e.attr("data-"+ec)}function vc(e,t){t.preventDefault(),e.one(rc,function(){e.trigger("submit")})}function bc(e,t){var i="[data-"+ec+"="+t+"]";return e.find(i)}i(document).on("submit",function(e){var t=e.target,n=i(t),s=function(e){var t=e.find("."+ac);return o=t,n=i.map(o,function(e){return mc(i(e))}),s=-1!==n.indexOf(tc),a=-1!==n.indexOf(sc),r=-1!==n.indexOf(nc),s?tc:a?sc:r?nc:ic;var n,s,a,r;var o}(n);if(s===sc)vc(n,e),function(e){var t=bc(e,sc);t.each(function(e,t){yc.validate(i(t))})}(n);else if(s===nc)vc(n,e);else if(s===tc)e.preventDefault(),function(e){var t=bc(e,tc).first();t.focus()}(n);else if(s===ic){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}});const yc={register:Ul.register,validate:function(e){lc(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),oc(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",yc),l("formValidation",yc);var wc=P(function(e,t){var i,n;return function(){var s=arguments,a=this;return clearTimeout(i),i=setTimeout(function(){n=e.apply(a,s),a=s=null},t),n}},"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const _c=wc;l("debounce",wc),l("debounceImmediate",P(function(e,t){var i,n=null;return function(){var s=this,a=arguments;return null===n&&(i=e.apply(s,a)),clearTimeout(n),n=setTimeout(function(){n=s=a=null},t),i}},"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const xc=i(window);function Cc(e){var t,n=this;this.element=e,this.$element=i(e),this.index=i("aui-header, .aui-header").index(e),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=(t=i(n.$element[0].querySelector(".aui-header-primary")),function(e){return t.find(e)})}Cc.prototype={init:function(){var e=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each(function(){e.primaryButtonsWidth+=i(this).outerWidth(!0)}),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each(function(){var t=i(this).parent(),n=t.outerWidth(!0);e.totalWidth+=n,e.menuItems.push({$element:t,outerWidth:n})}),this.rightMostNavItemIndex=this.menuItems.length-1,xc.on("resize",this._resizeHandler=_c(function(){e.constructResponsiveDropdown()},100));var t=this.$applicationLogo.find("img");0!==t.length&&(t.attr("data-aui-responsive-header-index",this.index),t.on("load",function(){e.constructResponsiveDropdown()})),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){xc.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 e,t=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(t>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),e=t-this.moreMenuWidth;for(var i=-1;e-this.menuItems[i+1].outerWidth>=0;)e-=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 e=document.createElement("li"),t=document.createElement("aui-dropdown-menu");t.id=`aui-responsive-header-dropdown-${this.index}`,Z.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,Z.init(n),t.appendChild(n);var s=function(e){var t=document.createElement("a");return t.setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=I18n.getText("aui.words.more"),t}(t);return e.appendChild(s),e.appendChild(t),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(e):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(e),this.moreMenuWidth=i(e).outerWidth(!0),i(e)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+e,a=n;a<=s;a++){var r=this.menuItems[a].$element,o=r.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),r.append(l)}t.find("aui-item-link:first").remove(),r.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=Ye().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var r=this.menuItems[a].$element,o=r.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=i(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 e=Array.from(o.get(0).classList).filter(e=>!e.startsWith("aui-"));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),Ye().wrap(l).textContent=o.text(),r.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new ve("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:r[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const Tc=function(e){let t=e._header;return t instanceof Cc||(t=new Cc(e),t.init(),e._header=t),t};function kc(){i(".aui-header").each(function(){Tc(this)})}i(kc);const Ec={};Ec.setup=P(kc,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",Ec);const Ac=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?Tc(t):console.log("Could not async. initialise aui-header")}});var Dc=a(253),Sc=a.n(Dc);const Ic=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:a,onChangeMonthYear:r})=>({dateFormat:i,defaultDate:n.val(),maxDate:t||n.attr("max"),minDate:e||n.attr("min"),nextText:">",onSelect:function(e){n.val(e),n.trigger("change"),a(),s&&s.call(this,e)},onChangeMonthYear:r,prevText:"<"}),Mc=(e,t)=>{let n,s,a,r=!1;const o=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!a&&!o||t.keyCode===Q.ESCAPE)return h(),void(r=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{r||(o.on("focus blur click mousedown","*",l),r=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{const n=new Oo;n.id=t;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${e}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(e=>e.offset().left<window.innerWidth/2?"left":"right")(e),datePickerUUID:t}),a=e.closest("aui-inline-dialog").get(0),a&&(a._datePickerPopup=n,i(a).on("aui-hide",e=>{r&&e.preventDefault(),o.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._datePickerPopup})),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),e.off("focus click",u),e.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),e.on("focusout keydown",c)}}},Nc=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:r,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=Mc(t,s),g=e=>{i(e.currentTarget).val()&&a.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==a)return e(t)},n=i(()=>{a.datepicker("destroy")});e.show=l,e.hide=c,e.destroyPolyfill=()=>{h(),t.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&t.attr("placeholder",m),v&&t.prop("type",v),t.removeAttr("data-aui-dp-uuid"),n(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=i(e=>{a.datepicker("setDate",e)}),e.getDate=i(()=>a.datepicker("getDate")),e.setMin=i(e=>a.datepicker("option","minDate",e)),e.setMax=i(e=>a.datepicker("option","maxDate",e))}n.languageCode in Oc.prototype.localisations||(n.languageCode="");const y=Oc.prototype.localisations;if(t.attr("aria-controls",s),void 0===a){void 0!==t.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=Ic({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let r;return a.datepicker(e),s&&(r=i("<div/>").addClass("aui-datepicker-hint"),r.append("<span/>").text(s),t.append(r)),a})({config:o,popupContents:r({$field:t}),getCalendarNode:d,hint:n.hint}),p(),t.on("propertychange keyup input paste",g),b=new MutationObserver(function(t){t.forEach(function(t){"min"===t.attributeName?e.setMin(t.target.getAttribute("min")):"max"===t.attributeName&&e.setMax(t.target.getAttribute("max"))})}),b.observe(t.get(0),{attributes:!0})}t.on("focus click",o),t.attr("placeholder",n.placeholder),"text"!==t.prop("type")&&(t.prop("type","text"),t.val(t.attr("value"))),t.trigger("propertychange"),t.attr("data-aui-dp-uuid",s)};function Oc(e,t){let n={};const s=gn("date-picker"),a=i(e),r={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof r.destroyPolyfill&&r.destroyPolyfill()},reset:()=>{r.destroy();const e=!Oc.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&Nc(r)},reconfigure:e=>{n=i.extend(void 0,Oc.prototype.defaultOptions,e),r.reset()}};return r.reconfigure(t),r}function Lc(e,t){const n=i.extend({nextText:">",prevText:"<"},t),s=i(e).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const e=i("<div/>").addClass("aui-datepicker-hint");e.append("<span/>").text(n.hint),s.append(e)}return s.reconfigure=e=>{s.datepicker("destroy"),s.datepicker(e)},s.destroy=()=>{s.datepicker("destroy")},s}Oc.prototype.browserSupportsDateField=function(){if(void 0===Nt){var e=document.createElement("input");e.setAttribute("type","date"),Nt="date"===e.type}return Nt}(),Oc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:Sc().W3C},Oc.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")},"ajs.datepicker.localisations.year-suffix"===Oc.prototype.localisations.yearSuffix&&(Oc.prototype.localisations.yearSuffix="");const Pc="aui-datepicker",Rc=e=>function(t){let i=this.data(Pc);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(Pc,i)),i};i.fn.datePicker=Rc(Oc),l("DatePicker",Oc),i.fn.calendarWidget=Rc(Lc),l("CalendarWidget",Lc);const $c=Oc;a(746),a(229),a(228),a(132),a(903);const jc={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"},zc=_r().View,Fc=_r().View,Hc=_r().View,Bc={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(682);const Uc={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"},Wc='<aui-spinner size="small"></aui-spinner>',Vc="aui-spinner";function Yc(e){0===e.find(Vc).length&&e.find(`.${jc.STATUS}`).append(Wc)}function qc(e){e.find(`.${jc.STATUS} ${Vc}`).remove()}var Kc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Qc=_r().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Uc,this.classNames=jc,this.dataKeys=Bc,this.columns=e.columns,this.isCreateRow=e.isCreateRow,this.allowReorder=e.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),e.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=e.model,this.model=new this._modelClass),this.fieldFocusSelector=e.fieldFocusSelector,this.on(this._event.CANCEL,()=>{this.isCreateRow||(this.disabled=!0)}).on(this._event.SAVE,e=>!this.disabled&&this.submit(e)).on(this._event.FOCUS,e=>this.focus(e)).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(e){return!1!==e.allowEdit?i("<input type='text' />").addClass("text").attr({name:e.name,value:e.value,"aria-label":e.ariaLabel}):e.value?document.createTextNode(e.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(e){27===e.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(e){return this.trigger(this._event.CANCEL),e.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(e){return this.hasFocus()||this.trigger(this._event.FOCUS,e.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(e){var t,i;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):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),t.focus().trigger("select"),this},disable:function(){var e,t;return Kc&&(t=this.$el.find(":submit")).length&&(e=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(t.attr("class")).val(t.val()).data(this.dataKeys.ENABLED_SUBMIT,t),t.replaceWith(e)),this.$el.addClass(this.classNames.DISABLED).find(":submit").prop("disabled",!0),this},enable:function(){var e,t;return Kc&&(t=(e=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&e.length&&e.replaceWith(t),this.$el.removeClass(this.classNames.DISABLED).find(":submit").prop("disabled",!1),this},showLoading:function(){return Yc(this.$el),this},hideLoading:function(){return qc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,e):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(n.renderErrors(t.errors),n.trigger(n._event.VALIDATION_ERROR,t.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return i("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&i.each(e,function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))}),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),i.each(this.columns,function(n,s){var a,r,o=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},e.values,t.model];o&&t.$el.attr("data-"+s.id,o),a=t.isCreateRow&&s.createView?new s.createView({model:t.model}).render(l[0]):s.editView?new s.editView({model:t.model}).render(l[0]):t.defaultColumnRenderer.apply(t,l),r=i("<td />"),"object"==typeof a&&a.done?a.done(function(e){r.append(e)}):r.append(a),s.styleClass&&r.addClass(s.styleClass),r.appendTo(t.$el)}),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=i('<td class="aui-restfultable-operations" />');return e?t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),t.add(i(`<td class="${this.classNames.STATUS}" />`))}}),Gc=document||{},Zc=i(Gc);function Jc(e,t){Zc.trigger(e,t)}function Xc(e,t,n){i(t).trigger(e,n),Jc(e,n),t.id&&Jc(t.id+"-"+e,n)}var eu=_r().Model.extend({sync:function(e,t,i){var n=this,s=i.error;return i.error=function(e){n._serverErrorHandler(e,this),s&&s.apply(this,arguments)},_r().sync.apply(_r(),arguments)},save:function(e,t){var n,s=this,a=(t=t||{}).error,r=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);a&&a.call(s,s,n,t)},this.isNew()?_r().Model.prototype.save.call(this,e,t):e&&((n=new(eu.extend({url:this.url()}))({id:this.id})).save=_r().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),r&&r.call(s,s,t)},n.save(e,t))},destroy:function(e){e=e||{};var t=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:e.data||{},contentType:"application/json",success(i){t.collection&&t.collection.remove(t),e.success&&e.success.call(t,i)},error(i){t._serverErrorHandler(i,this),e.error&&e.error.call(t,i)}}),this},changedAttributes:function(e){var t={},n=this.toJSON();if(i.each(e,function(e,s){n[e]?n[e]&&n[e]!==s&&("object"==typeof s&&(0,pt.isEqual)(s,n[e])||(t[e]=s)):"string"==typeof s?""!==i.trim(s)&&(t[e]=s):i.isArray(s)?0!==s.length&&(t[e]=s):t[e]=s}),!(0,pt.isEmpty)(t))return this.addExpand(t),t},addExpand:function(e){},_serverErrorHandler:function(e,t){var n;400!==e.status&&(n=i.parseJSON(e.responseText||e.data),Xc(Uc.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),_r().Model.prototype.fetch.call(this,e)}});const tu=eu,iu=_r().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Uc,this.classNames=jc,this.dataKeys=Bc,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.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=e.index||0,this.deleteConfirmationCallback=e.deleteConfirmationCallback,this.allowReorder=e.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,()=>this.disabled=!0).on(this._event.FOCUS,e=>this.focus(e)).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(e){if(e.value)return document.createTextNode(e.value.toString())},sync:function(e){var t=this;return this.model.addExpand(e),this.showLoading(),this.model.save(e,{success:function(){t.hideLoading().render(),t.trigger(t._event.UPDATED)},error:function(){t.hideLoading()}}),this},refresh:function(e,t){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),e&&e.apply(this,arguments)},error:function(){i.hideLoading(),t&&t.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Yc(this.$el),this},hideLoading:function(){return qc(this.$el),this},edit:function(e){var t;return t=i(e.target).is("."+this.classNames.EDITABLE)?i(e.target).attr("data-field-name"):i(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",function(t){t.preventDefault(),e.destroy()})},destroy:function(){if(this.deleteConfirmationCallback){let e=this.deleteConfirmationCallback(this.model.toJSON());if(!e||!e.then)throw new Error("deleteConfirmationCallback needs to return a Promise");e.then(()=>this.model.destroy(),()=>{})}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=i(`<td class="${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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,function(n,s){var a,r=i("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),a=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(a).attr("data-field-name",l);r=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(r.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else r.append(a);s.styleClass&&r.addClass(s.styleClass),r.appendTo(e.$el)}),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var nu=_r().View.extend({initialize:function(e){var t=this;if(t.options=i.extend(!0,t._getDefaultOptions(e),e),t.id=this.options.id,t._event=Uc,t.classNames=jc,t.dataKeys=Bc,this.$table=i(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<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(e){var n=i.isFunction(e.header)?e.header():e.header;void 0===n&&(g("You have not specified [header] for column ["+e.id+"]. Using id for now..."),n=e.id),t.$theadRow.append("<th>"+n+"</th>")}),t.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit(function(e){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(t.classNames.MOVEABLE);return n.children().each(function(){var e=i(this),t=parseInt(0+e.css("border-left-width"),10),n=parseInt(0+e.css("border-right-width"),10),a=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(a))}),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(e,n){var s=n.helper[0].clientHeight,a=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each(function(e){i(this).width(a.eq(e).width())});var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(r).css({height:s,visibility:"visible"}),t.getRowFromElement(n.item[0]).trigger(t._event.MODAL)},stop:function(e,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(n.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",function(e){return!i(e.target).is("."+t.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 t.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(e){void 0===t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)}),this._createRow.on(this._event.VALIDATION_ERROR,function(){this.trigger(t._event.FOCUS)}),this._createRow.render({errors:{},values:{}}),this.$create=i('<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(e){t.getRows().forEach(function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))})}),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;i.isFunction(this.options.resources.all)?this.options.resources.all(function(t){e.populate(t)}):i.get(this.options.resources.all,function(t){e.populate(t)})},move:function(e){var t=this,n=function(e){return e.length?{after:t.getRowFromElement(e).model.url()}:{position:"First"}};if(e.row){var s=t.options.reverseOrder?n(e.nextItem):n(e.prevItem);i.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){Xc(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);Xc(t._event.SERVER_ERROR,t,[n,e,this])}}),e.row.showLoading()}},_createCollection:function(){var e=this;return new(this.options.Collection.extend({sort:function(t){if(t||(t={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=e.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,t.silent||this.trigger("refresh",this,t),this},remove:function(...t){return this.tableRows=e.getRows(),_r().Collection.prototype.remove.apply(this,t),this.tableRows=void 0,this}}))([],{comparator:function(t){var i;return(this&&void 0!==this.tableRows?this.tableRows:e.getRows()).some(function(e,n){if(e.model.id===t.id)return i=n,!0}),i}})},populate:function(e){this.options.reverseOrder&&e.reverse(),this.hideGlobalLoading(),e&&e.length?(this._models.reset([],{silent:!0}),this.renderRows(e),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]),Xc(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+Wc+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(e,t){var i,n;if(!e.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(e));return n=new this.options.model(e),i=this._renderRow(n,t),this._models.add(n),this.removeNoEntriesMsg(),Xc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),Xc(this._event.ROW_REMOVED,this,[e,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 e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return i(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<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 e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var n=i(this).data(e.dataKeys.ROW_VIEW);n&&t.push(n)}),t},_renderRow:function(e,t){var i,n,s=this,a=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:e,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(e){Xc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)}),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==a.length?i.insertBefore(a[t]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach(function(e){s.isRowBeingEdited(e)||e.delegateEvents({})})}),n.on(this._event.MODELESS,function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach(function(e){s.isRowBeingEdited(e)||e.delegateEvents()})}),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(e){var t=!1;return this.editRows.some(function(i){if(i.el===e.el)return t=!0,!0}),t},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.on(this._event.FOCUS,function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),t.focusedRow=e,e instanceof iu&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){var t=i.inArray(e,this.editRows);return this.editRows.splice(t,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(e){e.hasUpdates()||e.trigger(this._event.FINISHED_EDITING)},this)},edit:function(e,t){var i=this,n=new this.options.views.editRow({el:e.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:e.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=e.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,function(t,n){i._removeEditRow(this),this.off(),e.render().delegateEvents(),e.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),e.render().delegateEvents(),this.off()}).on(i._event.CANCEL,function(){i._removeEditRow(this),this.off(),e.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,t),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(e=[]){var t=this._models.comparator,i=[];this._models.comparator=void 0;var n=e.map(e=>{var t=new this.options.model(e);return i.push(this._renderRow(t,-1).el),t});return this._models.add(n,{silent:!0}),this._models.comparator=t,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(e){return{model:e.model||tu,allowEdit:!0,views:{editRow:Qc,row:iu},Collection:_r().Collection.extend({url:e.resources.self,model:e.model||tu}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});nu.ClassNames=jc,nu.CustomCreateView=zc,nu.CustomEditView=Fc,nu.CustomReadView=Hc,nu.DataKeys=Bc,nu.EditRow=Qc,nu.EntryModel=tu,nu.Events=Uc,nu.Row=iu,l("RestfulTable",nu);const su=nu;function au(e){return i(e).clone().removeAttr("id")}l("clone",au);const ru=au;var ou=window.DocumentTouch;const lu="ontouchstart"in window||ou&&document instanceof ou;function cu(e,t,i,n){e.find(`[${n}]`).attr(n,(e,n)=>t===n?i:void 0)}function uu(e,t){let n=i("<div></div>");n.append(e),n.find("[id]").each((e,i)=>{const s=t(`${i.id}-`);!function(e,t,i){cu(e,t,i,"aria-controls"),cu(e,t,i,"aria-owns")}(n,i.id,s),i.id=s})}function du(e){return e.offset().top}function hu(e){this.$el=i(e),this.$el.length&&(this.$body=i("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 mu,function(e){if(!i(".aui-sidebar").length)return;(function(e){e.$el.on("mouseenter mouseleave click focus",e.collapsedTriggersSelector,function(t){const n=i(t.target);_u(e,n)})})(e),lu&&function(e){if(window.matchMedia)return window.matchMedia(e).matches;var t=document.createElement("style");t.type="text/css",t.id="testMedia",t.innerText=`@media ${e} { #testMedia { width: 1px; } }`,document.head.appendChild(t);var i="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var t=null,n=function(){null===t&&(t=requestAnimationFrame(function(){e.reflow(),t=null}))};i(window).on("scroll resize",n),n(),e.isAnimated()&&e.$el.on("transitionend webkitTransitionEnd",function(){e.$el.trigger(i.Event(pu+(e.isCollapsed()?"collapse-end":"expand-end")))});e.$el.on("click",".aui-sidebar-toggle",function(t){t.preventDefault(),e.toggle()}),i(".aui-page-panel").on("click",function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()});var s=function(t){r(t)&&e.toggle()};function a(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function r(e){return!(e.which!==Q.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(t=e.target,"value"in t||t.isContentEditable));var t}function o(e){return e.keyCode===Q.TAB&&e.shiftKey}function l(e,t){return e===t.find(":aui-tabbable")[0]}function c(e,t){return e===t.find(":aui-tabbable").last()[0]}function u(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout(function(){e.removeAttr("persistent")},100)}i(document).on("keypress",s),e._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},e.$el.on("touchend",function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())}),e.$el.tooltip({...Cu,live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===yu(t)||n}}),e.$el.tooltip({...Cu,aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}}),e.$el.on("keydown",e.collapsedTriggersSelector,function(t){if(e.isCollapsed()){var n=t.target,s=bu(n);if(!s)return;var r=i(s);a(t)&&s.open&&(t.preventDefault(),u(r),r.on("keydown",function(e){(o(e)&&l(e.target,r)||a(e)&&c(e.target,r))&&(n.focus(),i(this).off("keydown"),wu())}))}})}(this),function(e){i(e.collapsedTriggersSelector).each(function(){var t=i(this);_u(e,t)})}(this))}var pu="_aui-internal-sidebar-";function fu(e){return i.map(e.split(" "),function(e){return pu+e}).join(" ")}function gu(){return document.querySelectorAll(hu.prototype.inlineDialogSelector)}function mu(){this.inlineDialog=null}function vu(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function bu(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function yu(e){return 0!==vu(e).length}function wu(){var e=gu();Array.prototype.forEach.call(e,function(e){e.open=!1})}function _u(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),yu(t))){var n=document.createElement("aui-inline-dialog"),s=gn("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),Z.init(t),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),e.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(hu.prototype.inlineDialogClass),document.body.appendChild(n),Z.init(n),function(e,t,n){n.addEventListener("aui-layer-show",function(s){if(e.isCollapsed()){if(!function(e){return"AUI-INLINE-DIALOG"!==e.target.tagName}(s)&&!function(e){return!e.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var a=i.Event("aui-sidebar-submenu-before-show");t.trigger(a,n),a.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=xu;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var a=vu(e);function r(e){const t=ru(e);return uu(t,gn),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}r(a).appendTo(s)}(t,n)}}else s.preventDefault()}),n.addEventListener("aui-layer-hide",function(){!function(e){e.removeClass("active")}(t)})}(e,t,n),n}}hu.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=fu(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},hu.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=fu(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},hu.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},hu.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>du(this.$el)),this},hu.prototype.setPosition=P(hu.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),hu.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},hu.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:i.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:i.noop,wide:i.noop},t.expanded.narrow={narrow:i.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",a=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][a](this),this},hu.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(pu+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.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),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(pu+"collapse-end",{isResponsive:e}))),this},hu.prototype.collapse=function(){return this._collapse(!1)},hu.prototype._expand=function(e,t){var n=i.Event(pu+"expand-start",{isResponsive:t});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(pu+"expand-end",{isResponsive:t})),this},hu.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},hu.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},hu.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},hu.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},hu.prototype.responsiveReflow=function(e,t){if(e){if(!this.isCollapsed()&&this.isViewportNarrow(t)){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 t!==this._previousViewportWidth&&this.setCollapsedState(t)},hu.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=du(this.$el),r=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!r&&l||(this.setHeight(e,t,a),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(r,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=a,this._previousScrollLeft=s,this},hu.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},hu.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",hu.prototype.collapsedTriggersSelector=[hu.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),hu.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",hu.prototype.tooltipClassName="aui-sidebar-section-tooltip",hu.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",hu.prototype.inlineDialogSelector="."+hu.prototype.inlineDialogClass,mu.prototype.submenu=function(e){return ku(),vu(e)},mu.prototype.hasSubmenu=function(e){return ku(),yu(e)},mu.prototype.submenuHeadingHeight=function(){return ku(),34},mu.prototype.isShowing=function(){return ku(),hu.prototype.isSubmenuVisible()},mu.prototype.show=function(e,t){ku(),function(e){bu(e).open=!0}(t)},mu.prototype.hide=function(){ku(),wu()},mu.prototype.inlineDialogShowHandler=function(){ku()},mu.prototype.inlineDialogHideHandler=function(){ku()},mu.prototype.moveSubmenuToInlineDialog=function(){ku()},mu.prototype.restoreSubmenu=function(){ku()},hu.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(gu(),function(e){return e.open})},hu.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const xu='<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 Cu={gravity:"w",title:function(){var e=i(this);return e.is("a")||e.is("button")?e.attr("title")||e.find(".aui-nav-item-label").text()||e.data("tooltip"):e.children(".aui-nav").attr("title")||e.children(".aui-nav-heading").text()}};var Tu=ge("sidebar",hu);i(function(){Tu(".aui-sidebar")});var ku=O("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});l("sidebar",Tu);const Eu=Tu;a(841),a(581);function Au(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===Q.ESCAPE&&n.is(":visible")&&l.hide()}};"object"!=typeof e&&(e={width:arguments[0],height:arguments[1],id:arguments[2]},e=i.extend({},e,arguments[3])),e=i.extend({},t,e);var n=i("<div></div>").addClass("aui-popup");e.id&&n.attr("id",e.id);var s=2600;i(".aui-dialog").each(function(){var e=i(this);s=e.css("z-index")>s?e.css("z-index"):s});var a=function t(i,a){return e.width=i=i||e.width,e.height=a=a||e.height,n.css({marginTop:-Math.round(a/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:a,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),h(n);var r=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},l={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&a(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),V(),0!==(r=i(".aui-blanket")).length&&e.closeOnOutsideClick&&r.on("click",function(){n.is(":visible")&&l.hide()}),n.show(),Au.current=this,function(t){if(0===i(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return o(e.focusSelector,t);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",t))||o(n,i(".dialog-button-panel",t))||o(n,i(".dialog-page-menu",t))}}(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),r.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),Au.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return l}var Du=function(){function e(e,t,n,s){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<button></button>").html(t).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function t(e,t,n,s,a){e.buttonpanel||e.addButtonPanel(),a||(a="#"),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<a></a>").html(t).attr("href",a).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function n(e,t){var i="left"==e?-1:1;return function(e){var n=this.page[t];if(this.id!=(1==i?n.length-1:0)){i*=e||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 s=0,a=n.length;s<a;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(e){return function(){this.page[e].splice(this.id,1);for(var t=0,i=this.page[e].length;t<i;t++)this.page[e][t].id=t;this.item.remove()}}e.prototype.moveUp=e.prototype.moveLeft=n("left","button"),e.prototype.moveDown=e.prototype.moveRight=n("right","button"),e.prototype.remove=s("button"),e.prototype.html=function(e){return this.item.html(e)},e.prototype.onclick=function(e){let t=this;if(void 0===e)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===e.call(this,t.page.dialog,t.page,i)},"function"==typeof e&&this.item.click(this._onclick)};var a=function(e,t,n,s,a){n instanceof i||(n=i(n)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=i("<button></button>").html(t).addClass("item-button"),a&&(this.button[0].id=a),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var r=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[r]=this;var l=function(){var t;e.curtab+1&&((t=e.panel[e.curtab]).body.hide(),t.item.removeClass("selected"),"function"==typeof t.onblur&&t.onblur()),e.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(o,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==r?e.menu.css("display","none"):e.menu.show()};a.prototype.select=function(){this.button.click()},a.prototype.moveUp=a.prototype.moveLeft=n("left","panel"),a.prototype.moveDown=a.prototype.moveRight=n("right","panel"),a.prototype.remove=s("panel"),a.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},a.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var r=function(e,t){this.dialog=e,this.id=e.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",e.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],t&&this.body.addClass(t),e.popup.element.append(this.element.append(this.menu).append(this.body)),e.page[e.page.length]=this};function o(e,t,n){var s={};+e||(e=(s=Object(e)).width,t=s.height,n=s.id),this.height=t||480,this.width=e||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=Au(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new r(this)}return r.prototype.recalcSize=function(){for(var e=this.header?62:0,t=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},r.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},r.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},r.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},r.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},r.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},r.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},r.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},r.prototype.hide=function(){this.element.hide()},r.prototype.show=function(){this.element.show()},r.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},o.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},o.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},o.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},o.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},o.prototype.addPage=function(e){return new r(this,e),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(e){return this.page[this.curpage].hide(),this.curpage=e,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(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},o.prototype.getPage=function(e){return this.page[e]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(e,t){if(null!=t){var i=e.id||e;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===t?e:t)},o.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("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(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",a=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(a,function(e,n,s,a,r,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=o)&&n.toLowerCase(),s=l,a=c,r=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),r=r&&(r+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||r)for(var h=d.length;h--;){if(r||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==r||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(r||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==r||d[h].button[p].item.html()==s||"button"==n&&!s&&null==a)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][a]&&t.push(d[h][n][a]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)});for(var r={length:t.length},o=t.length;o--;)for(var l in r[o]=t[o],t[o])l in r||function(e){r[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return r},o.prototype.updateHeight=function(){for(var e=0,t=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();Du=R(Du,"Dialog constructor",{alternativeName:"Dialog2"}),Au=R(Au,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",Du),l("popup",Au);const Su=!1;var Iu=-1!==navigator.platform.indexOf("Mac"),Mu=-1!==navigator.userAgent.indexOf("Safari"),Nu=/^(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 Ou=e=>{const t=e[0];if(t){const e=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",e,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}};function Lu(e){var t=[],n=i.Callbacks();function s(e){!Au.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function r(e){(e&&e.split?i.trim(e).split(" "):[e]).forEach(function(e){!function(e){var n=e instanceof Array?e:function(e){var t=[],i="";for(;e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(Nu);n?(i+=n[0],e=e.substring(n[0].length)):s?(t.push(i+s[0]),e=e.substring(s[0].length),i=""):(t.push(i+e[0]),e=e.substring(1),i="")}return t}(e.toString()),r=function(e){var t=e.length;for(;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(n)?"keydown":"keypress";t.push(n),i(document).on(r,Su,n,s),i(document).on(r+" keyup",Su,n,a)}(e)})}function o(e,t,i,n){var s="(",a=")";return n&&n.workaroundJaws&&(s="",a=""),i?t+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",e.shift()):(t=t.replace(/\)$/,""),t+=" "+I18n.getText("aui.keyboard.shortcut.or.x",e.shift())),e.forEach(function(e){t+=" "+I18n.getText("aui.keyboard.shortcut.then.x",e)}),t+=a}return r(e),Lu.makeShortcut({executor:n,bindKeys:r,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),r=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=n.data("kbShortcutAppendedScreenReader")||"",u=n.attr("aria-label"),d=!l,h=!c,p=d?s:s.substring(0,s.length-l.length),f=h?s:u.substring(0,u.length-c.length);a.length;){var g=a.shift();r.some(function(e){return(0,pt.isEqual)(g,e)})||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Iu&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",p+l),n.attr("aria-label",f+c),n.data("kbShortcutAppended",l),n.data("kbShortcutAppendedScreenReader",c),n.data("boundKeyCombos",r.concat(t))},removeShortcutsFromTitle:function(e){var t=i(e),n=t.data("kbShortcutAppended");if(n){var s=t.attr("title");t.attr("title",s.replace(n,"")),t.attr("aria-label",s.replace(n,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:a})}Lu.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,r=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",r=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add(function(){const t=i(n);let s=t.filter("."+a);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(a)}),s.length&&s.removeClass(a),s=e(s,t,r),s&&s.length>0&&(s.addClass(a),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())}),this}}return{moveToNextItem:c(function(e,t,n){var s;return n&&0===e.length?t.eq(0):(s=i.inArray(e.get(0),t))<t.length-1?(s+=1,t.eq(s)):n?t.eq(0):e}),moveToPrevItem:c(function(e,t,n){var s;return n&&0===e.length?t.filter(":last"):(s=i.inArray(e.get(0),t))>0?(s-=1,t.eq(s)):n?t.filter(":last"):e}),click:function(e){return l.push(e),s(e),t.add(function(){const t=i(e);Ou(t)}),this},goTo:function(e){return t.add(function(){window.location.href=e}),this},followLink:function(e){return l.push(e),s(e),t.add(function(){var t=i(e)[0];t&&{a:!0,link:!0}[t.nodeName.toLowerCase()]&&(window.location.href=t.href)}),this},execute:function(e){var i=this;return t.add(function(){e.apply(i,arguments)}),this},evaluate:function(e){e.call(this)},moveToAndClick:function(e){return l.push(e),s(e),t.add(function(){const t=i(e);t.length>0&&(Ou(t),t.moveTo())}),this},moveToAndFocus:function(e){return l.push(e),s(e),t.add(function(t){var n=i(e);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&t.preventDefault())}),this},or:function(e){return n(e),this},unbind:function(){i(document).unbind("keydown keypress",r).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},Lu.fromJSON=function(e,t){var n=[];return e&&i.each(e,function(e,s){const a=s.op,r=s.param;let o;if("execute"===a||"evaluate"===a)o=[new Function(r)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(r)){try{o=JSON.parse(r)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+r)}i.isArray(o)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+r)}else o=[r];i.each(s.keys,function(){var e=this;t&&Iu&&(e=i.map(e,function(e){return e.replace(/ctrl/i,"meta")}));var s=Lu(e);s[a].apply(s,o),n.push(s)})}),n},i(document).on("iframeAppended",function(e,t){i(t).load(function(){i(t).contents().on("keyup keydown keypress",function(e){Mu&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)})})}),l("whenIType",Lu);const Pu=Lu,{FocusManager:Ru,InlineDialog2:$u,LayerManager:ju,ProgressiveDataSet:zu,clone:Fu,debounce:Hu,debounceImmediate:Bu,dim:Uu,escapeHtml:Wu,formValidation:Vu,id:Yu,isClipped:qu,keyCode:Ku,layer:Qu,messages:Gu,populateParameters:Zu,params:Ju,responsiveheader:Xu,select:ed,tablessortable:td,tabs:id,undim:nd,_addID:sd}=window.AJS,{contextPath:ad}=window.AJS})(),r})());
108
+ function hs(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var i=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=i){var n,s,a,r,o=[],l=!0,c=!1;try{if(a=(i=i.call(e)).next,0===t){if(Object(i)!==i)return;l=!1}else for(;!(l=(n=a.call(i)).done)&&(o.push(n.value),o.length!==t);l=!0);}catch(e){c=!0,s=e}finally{try{if(!l&&null!=i.return&&(r=i.return(),Object(r)!==r))return}finally{if(c)throw s}}return o}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ds(e,t);var i={}.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?ds(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ps(e){var t,i;function n(t,i){try{var a=e[t](i),r=a.value,o=r instanceof us;Promise.resolve(o?r.v:r).then(function(i){if(o){var l="return"===t&&r.k?t:"next";if(!r.k||i.done)return n(l,i);i=e[l](i).value}s(!!a.done,i)},function(e){n("throw",e)})}catch(e){s(2,e)}}function s(e,s){2===e?t.reject(s):t.resolve({value:s,done:e}),(t=t.next)?n(t.key,t.arg):i=null}this._invoke=function(e,s){return new Promise(function(a,r){var o={key:e,arg:s,resolve:a,reject:r,next:null};i?i=i.next=o:(t=i=o,n(e,s))})},"function"!=typeof e.return&&(this.return=void 0)}ps.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},ps.prototype.next=function(e){return this._invoke("next",e)},ps.prototype.throw=function(e){return this._invoke("throw",e)},ps.prototype.return=function(e){return this._invoke("return",e)};const fs=Object.entries,gs=Object.keys,ms=Object.setPrototypeOf,vs=Object.isFrozen,bs=Object.getPrototypeOf,ys=Object.getOwnPropertyDescriptor;let ws=Object.freeze,_s=Object.seal,xs=Object.create,Cs="undefined"!=typeof Reflect&&Reflect,ks=Cs.apply,Ts=Cs.construct;ws||(ws=function(e){return e}),_s||(_s=function(e){return e}),ks||(ks=function(e,t){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.apply(t,n)}),Ts||(Ts=function(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new e(...i)});const As=Zs(Array.prototype.forEach),Es=Zs(Array.prototype.lastIndexOf),Ds=Zs(Array.prototype.pop),Ss=Zs(Array.prototype.push),Ms=Zs(Array.prototype.slice),Is=Zs(Array.prototype.splice),Ns=Array.isArray,Os=Js(Set),Ls=Zs(Set.prototype.add),Ps=Zs(Set.prototype.has),Rs=Zs(String.prototype.toLowerCase),$s=Zs(String.prototype.toString),js=Zs(String.prototype.match),zs=Zs(String.prototype.replace),Fs=Zs(String.prototype.indexOf),Hs=Zs(String.prototype.trim),Bs=Zs(Number.prototype.toString),Us=Zs(Boolean.prototype.toString),Ws="undefined"==typeof BigInt?null:Zs(BigInt.prototype.toString),Vs="undefined"==typeof Symbol?null:Zs(Symbol.prototype.toString),Ys=Zs(Object.prototype.hasOwnProperty),qs=Zs(Object.prototype.toString),Ks=RegExp.prototype.test,Qs=function(e,t){return e instanceof RegExp&&(e.lastIndex=0),ks(Ks,e,[t])},Gs=Js(TypeError);function Zs(e){return function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return ks(e,t,n)}}function Js(e){return function(){for(var t=arguments.length,i=new Array(t),n=0;n<t;n++)i[n]=arguments[n];return Ts(e,i)}}function Xs(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rs;if(ms&&ms(e,null),!Ns(t))return e;let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){const e=i(s);e!==s&&(vs(t)||(t[n]=e),s=e)}e[s]=!0}return e}function ea(e){for(let t=0;t<e.length;t++)Ys(e,t)||(e[t]=null);return e}function ta(e){const t=xs(null);for(const n of fs(e)){var i=hs(n,2);const s=i[0],a=i[1];Ys(e,s)&&(Ns(a)?t[s]=ea(a):a&&"object"==typeof a&&a.constructor===Object?t[s]=ta(a):t[s]=a)}return t}function ia(e){const t=xs(null),i=gs(e);let n=i.length;for(;n--;)t[i[n]]=e[i[n]];return t}function na(e,t){for(;null!==e;){const i=ys(e,t);if(i){if(i.get)return Zs(i.get);if("function"==typeof i.value)return Zs(i.value)}e=bs(e)}return function(){return null}}const sa=ws(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),aa=ws(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),ra=ws(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),oa=ws(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),la=ws(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),ca=ws(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),ua=ws(["#text"]),da=ws(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","command","commandfor","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns"]),ha=ws(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dominant-baseline","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","pointer-events","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-orientation","text-rendering","textlength","type","u1","u2","unicode","values","vector-effect","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),pa=ws(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),fa=ws(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),ga=_s(/{{[\w\W]*|^[\w\W]*}}/g),ma=_s(/<%[\w\W]*|^[\w\W]*%>/g),va=_s(/\${[\w\W]*/g),ba=_s(/{{|}}|\${|<%|%>|&lt;%|%&gt;/),ya=_s(/^data-[\-\w.\u00B7-\uFFFF]+$/),wa=_s(/^aria-[\-\w]+$/),_a=_s(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),xa=_s(/^(?:\w+script|data):/i),Ca=_s(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),ka=_s(/^html$/i),Ta=_s(/^[a-z][.\w]*(-[.\w]+)+$/i),Aa=_s(/<[/\w!]/g),Ea=_s(/<[/\w]/g),Da=_s(/<\/no(script|embed|frames)/i),Sa=_s(/\/>/i),Ma=_s(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i),Ia=_s(/^[\r\n\t ]+/),Na=1,Oa=3,La=7,Pa=8,Ra=9,$a=11,ja=ws(Xs({},["style","script","xmp","iframe","noembed","noframes","plaintext","noscript"])),za=function(){return"undefined"==typeof window?null:window},Fa=function(e,t,i,n){return Ys(e,t)&&Ns(e[t])?Xs(n.base?ia(n.base):{},e[t],n.transform):i},Ha=function(e,t,i){const n=Ys(e,t)?e[t]:void 0;return n&&"object"==typeof n?ta(n):i};var Ba=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:za();const i=t=>e(t);if(i.version="3.4.18",i.removed=[],!t||!t.document||t.document.nodeType!==Ra||!t.Element)return i.isSupported=!1,i;let n=t.document;const s=n,a=s.currentScript,r=t.HTMLTemplateElement,o=t.Node,l=t.Element,c=t.NodeFilter,u=t.DOMParser,d=t.trustedTypes,h=l.prototype,p=na(h,"cloneNode"),f=na(h,"remove"),g=na(h,"removeAttributeNode"),m=na(h,"nextSibling"),v=na(h,"childNodes"),b=na(h,"parentNode"),y=na(h,"shadowRoot"),w=na(h,"attributes"),_=o&&o.prototype?na(o.prototype,"nodeType"):null,x=o&&o.prototype?na(o.prototype,"nodeName"):null,C=o&&o.prototype?na(o.prototype,"ownerDocument"):null,k=function(e){return _?_(e):e.nodeType},T=function(e){return x?x(e):e.nodeName},A=function(e,t){for(;null!==e;){const i=ys(e,t);if(i)return i.get?Zs(i.get):null;e=bs(e)}return null}(h,"namespaceURI"),E=function(e){return A?A(e):e.namespaceURI};if("function"==typeof r){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let D,S,M="",I=!1,N=0;const O=function(){if(N>0)throw Gs('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},L=function(e){O(),N++;try{return D.createHTML(e)}finally{N--}},P=function(e){return D&&we?L(e):e},R=function(){return I||(S=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return e.createPolicy(s,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(d,a),I=!0),S},$=n,j=$.implementation,z=$.createNodeIterator,F=$.createDocumentFragment,H=$.getElementsByTagName,B=s.importNode;let U={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof fs&&"function"==typeof b&&j&&void 0!==j.createHTMLDocument;const W=ga,V=ma,Y=va,q=ya,K=wa,Q=xa,G=Ca,Z=Ta;let J=_a,X=null;const ee=Xs({},[...sa,...aa,...ra,...la,...ua]);let te=null;const ie=Xs({},[...da,...ha,...pa,...fa]);let ne=null,se=null,ae=null;const re=Object.seal(xs(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let oe=!0,le=!0,ce=!1,ue=!0,de=!1,he=!0,pe=!1,fe=!1,ge=null,me=null,ve=!1,be=!1,ye=!1,we=!1,_e=!0,xe=!1;const Ce="user-content-";let ke=!0,Te=!1,Ae=null,Ee=!1,De=null;const Se=Xs({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]);let Me=null;const Ie=Xs({},["audio","video","img","source","image","track"]);let Ne=null;const Oe=Xs({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Le="http://www.w3.org/1998/Math/MathML",Pe="http://www.w3.org/2000/svg",Re="http://www.w3.org/1999/xhtml";let $e=Re,je=!1,ze=null;const Fe=Xs({},[Le,Pe,Re],$s),He=ws(Xs({},["mi","mo","mn","ms","mtext"]));let Be=null;const Ue=ws(Xs({},["annotation-xml"]));let We=null;const Ve=ws(xs(null)),Ye=Xs({},["title","style","font","a","script"]);let qe=null;const Ke=["application/xhtml+xml","text/html"];let Qe=null,Ge=null;const Ze=n.createElement("form"),Je=function(e){return e instanceof RegExp||e instanceof Function},Xe=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};e&&"object"==typeof e||(e={}),e=ta(e),qe=-1===Ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Qe="application/xhtml+xml"===qe?$s:Rs,X=Fa(e,"ALLOWED_TAGS",ee,{transform:Qe}),te=Fa(e,"ALLOWED_ATTR",ie,{transform:Qe}),ze=Fa(e,"ALLOWED_NAMESPACES",Fe,{transform:$s}),Ne=Fa(e,"ADD_URI_SAFE_ATTR",Oe,{transform:Qe,base:Oe}),Me=Fa(e,"ADD_DATA_URI_TAGS",Ie,{transform:Qe,base:Ie}),De=Fa(e,"FORBID_CONTENTS",Se,{transform:Qe}),se=Fa(e,"FORBID_TAGS",xs(null),{transform:Qe}),ae=Fa(e,"FORBID_ATTR",xs(null),{transform:Qe}),Ee=!!Ys(e,"USE_PROFILES")&&(e.USE_PROFILES&&"object"==typeof e.USE_PROFILES?ta(e.USE_PROFILES):e.USE_PROFILES),oe=!1!==e.ALLOW_ARIA_ATTR,le=!1!==e.ALLOW_DATA_ATTR,ce=e.ALLOW_UNKNOWN_PROTOCOLS||!1,ue=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,de=e.SAFE_FOR_TEMPLATES||!1,he=!1!==e.SAFE_FOR_XML,pe=e.WHOLE_DOCUMENT||!1,be=e.RETURN_DOM||!1,ye=e.RETURN_DOM_FRAGMENT||!1,we=e.RETURN_TRUSTED_TYPE||!1,ve=e.FORCE_BODY||!1,_e=!1!==e.SANITIZE_DOM,xe=e.SANITIZE_NAMED_PROPS||!1,ke=!1!==e.KEEP_CONTENT,Te=e.IN_PLACE||!1,J=function(e){if(!e)return!1;try{return Qs(e,""),!0}catch(e){return!1}}(e.ALLOWED_URI_REGEXP)?e.ALLOWED_URI_REGEXP:_a,$e="string"==typeof e.NAMESPACE?e.NAMESPACE:Re,Be=Ha(e,"MATHML_TEXT_INTEGRATION_POINTS",He),We=Ha(e,"HTML_INTEGRATION_POINTS",Ue);const t=Ha(e,"CUSTOM_ELEMENT_HANDLING",Ve);if(ne=xs(null),Ys(t,"tagNameCheck")&&Je(t.tagNameCheck)&&(ne.tagNameCheck=t.tagNameCheck),Ys(t,"attributeNameCheck")&&Je(t.attributeNameCheck)&&(ne.attributeNameCheck=t.attributeNameCheck),Ys(t,"allowCustomizedBuiltInElements")&&"boolean"==typeof t.allowCustomizedBuiltInElements&&(ne.allowCustomizedBuiltInElements=t.allowCustomizedBuiltInElements),_s(ne),de&&(le=!1),ye&&(be=!0),Ee&&((Ys(e,"ALLOWED_TAGS")||Ys(e,"ALLOWED_ATTR"))&&"undefined"!=typeof console&&"function"==typeof console.warn&&console.warn("DOMPurify: USE_PROFILES overrides ALLOWED_TAGS and ALLOWED_ATTR. Do not use these options together."),X=Xs({},ua),te=xs(null),!0===Ee.html&&(Xs(X,sa),Xs(te,da)),!0===Ee.svg&&(Xs(X,aa),Xs(te,ha),Xs(te,fa)),!0===Ee.svgFilters&&(Xs(X,ra),Xs(te,ha),Xs(te,fa)),!0===Ee.mathMl&&(Xs(X,la),Xs(te,pa),Xs(te,fa))),re.tagCheck=null,re.attributeCheck=null,Ys(e,"ADD_TAGS")&&("function"==typeof e.ADD_TAGS?re.tagCheck=e.ADD_TAGS:Ns(e.ADD_TAGS)&&(X===ee&&(X=ia(X)),Xs(X,e.ADD_TAGS,Qe))),Ys(e,"ADD_ATTR")&&("function"==typeof e.ADD_ATTR?re.attributeCheck=e.ADD_ATTR:Ns(e.ADD_ATTR)&&(te===ie&&(te=ia(te)),Xs(te,e.ADD_ATTR,Qe))),Ys(e,"ADD_FORBID_CONTENTS")&&Ns(e.ADD_FORBID_CONTENTS)&&(De===Se&&(De=ia(De)),Xs(De,e.ADD_FORBID_CONTENTS,Qe)),ke&&(X["#text"]=!0),pe&&Xs(X,["html","head","body"]),X.table&&(X.tbody=!0,delete se.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw Gs('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw Gs('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');const t=D;D=e.TRUSTED_TYPES_POLICY;try{M=L("")}catch(e){throw D=t,e}}else null===e.TRUSTED_TYPES_POLICY?(D=void 0,M=""):(void 0===D&&(D=R()),D&&"string"==typeof M&&(M=L("")));Ge=ws(e)},et=Xs({},[...aa,...ra,...oa]),tt=Xs({},[...la,...ca]),it=function(e){const t=E(e),i=Rs(T(e)),n=b(e);let s=$e,a="template";return n&&k(n)===Na&&(s=E(n),a=Rs(T(n))),!!ze[t]&&(t===Pe?function(e,t,i){return t===Re?"svg"===e:t===Le?"svg"===e&&("annotation-xml"===i||Be[i]):Boolean(et[e])}(i,s,a):t===Le?function(e,t,i){return t===Re?"math"===e:t===Pe?"math"===e&&We[i]:Boolean(tt[e])}(i,s,a):t===Re?function(e,t,i){return!(t===Pe&&!We[i])&&!(t===Le&&!Be[i])&&!tt[e]&&(Ye[e]||!et[e])}(i,s,a):"application/xhtml+xml"===qe)},nt=function(e){Ss(i.removed,{element:e});try{b(e).removeChild(e)}catch(t){if(f(e),!b(e))throw Gs("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},st=function(e,t,i){try{g(e,t)}catch(t){try{e.removeAttribute(i)}catch(e){}}},at=function(e){ct(e);const t=v(e);t&&As(Ms(t),e=>{try{f(e)}catch(e){}}),k(e)===Na&&ot(e,!1)},rt=function(e,t,n){if(!n)try{n=t.getAttributeNode(e)}catch(e){n=null}if(Ss(i.removed,{attribute:n||null,from:t}),n)st(t,n,e);else try{t.removeAttribute(e)}catch(e){}if("is"===e)if(be||ye)try{nt(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ot=function(e,t){const i=w(e);if(i)for(let n=i.length-1;n>=0;--n){const s=i[n],a=s&&s.name;"string"!=typeof a||t&&te[Qe(a)]||st(e,s,a)}},lt=function(e,t){let i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=[e];for(;n.length>0;){const e=n.pop();if(!1===t(e))continue;if(i&&k(e)===Na){const t=y(e);_t(t)&&n.push(t)}const s=v(e);if(s)for(let e=s.length-1;e>=0;--e)n.push(s[e])}},ct=function(e){lt(e,e=>{k(e)===Na&&ot(e,!0)})},ut=function(e){const t=[];return lt(e,e=>{t.push(e)},!0),t},dt=function(e,t){let n=!1;return As(i.removed,t=>{t.element&&(n=n||t.element===e,ct(t.element))}),function(e,t){const i=Os();As(ut(e),e=>{k(e)===Na&&Ls(i,e)}),As(t,e=>{k(e)!==Na||Ps(i,e)||ot(e,!0)})}(e,t),n},ht=function(e,t,i,n){const s=gt(e);let a;for(;a=s.nextNode();)Ps(n,a)&&!Ps(Ae,a)&&(t&&Ct(U.uponSanitizeShadowNode,a,null),Lt(a,i))},pt=function(e,t){return!!he&&("patchsrc"===e||"for"===e&&"label"!==t&&"output"!==t)},ft=function(e){let t=null,i=null;if(ve)e="<remove></remove>"+e;else{const t=js(e,Ia);i=t&&t[0]}"application/xhtml+xml"===qe&&$e===Re&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=D?L(e):e;if($e===Re)try{t=(new u).parseFromString(s,qe)}catch(e){}if(!t||!t.documentElement){t=j.createDocument($e,"template",null);try{t.documentElement.innerHTML=je?M:s}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),$e===Re?H.call(t,pe?"html":"body")[0]:pe?t.documentElement:a},gt=function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const i=C?C(e):e.ownerDocument;return z.call(i||e,e,(t?0:c.SHOW_ELEMENT)|c.SHOW_COMMENT|c.SHOW_TEXT|c.SHOW_PROCESSING_INSTRUCTION|c.SHOW_CDATA_SECTION,null)},mt=function(e){return e=zs(e,W," "),e=zs(e,V," "),e=zs(e,Y," ")},vt=function(e){var t;bt(e);const i=null===(t=e.querySelectorAll)||void 0===t?void 0:t.call(e,"template");i&&As(i,e=>{_t(e.content)&&vt(e.content)})},bt=function(e){e.normalize();const t=gt(e,!0);let i=t.nextNode();for(;i;)i.data=mt(i.data),i=t.nextNode()},yt=function(e){const t=x?x(e):null;return"string"==typeof t&&("form"===Qe(t)&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||e.attributes!==w(e)||"function"!=typeof e.removeAttribute||"function"!=typeof e.removeAttributeNode||"function"!=typeof e.getAttributeNode||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes||e.nodeType!==_(e)||e.childNodes!==v(e)))},wt=function(e){if(!_||"object"!=typeof e||null===e)return null;try{const t=_(e);return"number"==typeof t?t:null}catch(e){return null}},_t=function(e){return wt(e)===$a},xt=function(e){return null!==wt(e)};function Ct(e,t,n){0!==e.length&&As(e,e=>{e.call(i,t,n,Ge)})}const kt=function(e,t){if(e instanceof RegExp)return Qs(e,t);if(e instanceof Function){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return Boolean(e(t,...n))}return!1},Tt=function(e,t,i,n){return 0===e.length?t:t===i||t===n?ia(t):t},At=function(e,t){return e!==t&&null===b(e)&&(Te&&ct(e),!0)},Et=function(e,t){var n;if(n=e,Ae&&Ls(Ae,n),Ct(U.beforeSanitizeElements,e,null),At(e,t))return!0;if(yt(e))return nt(e),!0;const s=Qe(T(e)),a=k(e);if(X=Tt(U.uponSanitizeElement,X,ee,ge),Ct(U.uponSanitizeElement,e,{tagName:s,allowedTags:X}),At(e,t))return!0;if(function(e,t,i){return!!(he&&i===Na&&e.hasChildNodes()&&!xt(e.firstElementChild)&&Qs(Aa,e.textContent)&&Qs(Aa,e.innerHTML))||!!(he&&ja[t]&&i===Na&&E(e)===Re&&(xt(e.firstElementChild)||"string"==typeof e.textContent&&Qs(Aa,e.textContent)))||i===La||!(!he||i!==Pa||!Qs(Ea,e.data))}(e,s,a))return nt(e),!0;if(se[s]||!(re.tagCheck instanceof Function&&re.tagCheck(s))&&!X[s]){const i=function(e,t,i){if(!se[t]&&Mt(t)&&kt(ne.tagNameCheck,t))return!1;if(ke&&!De[t]&&!De[Rs(t)]){const t=b(e),n=v(e);if(n&&t)for(let s=n.length-1;s>=0;--s){const a=e===i?p(n[s],!0):n[s];t.insertBefore(a,m(e))}}return nt(e),!0}(e,s,t);return!(!1!==i||(Ct(U.afterSanitizeElements,e,null),!At(e,t)))||i}if(a===Na&&!it(e))return nt(e),!0;if(("noscript"===s||"noembed"===s||"noframes"===s)&&Qs(Da,e.innerHTML))return nt(e),!0;if(de&&a===Oa){const t=e.textContent,n=mt(t);t!==n&&(Ss(i.removed,{element:e.cloneNode()}),e.textContent=n)}return Ct(U.afterSanitizeElements,e,null),At(e,t)},Dt=function(e,t,i){if(ae[t])return!1;if(pt(t,e))return!1;if(_e&&("id"===t||"name"===t)&&(i in n||i in Ze))return!1;const s=te[t]||re.attributeCheck instanceof Function&&re.attributeCheck(t,e);if(le&&Qs(q,t))return!0;if(oe&&Qs(K,t))return!0;if(!s)return Mt(e)&&kt(ne.tagNameCheck,e)&&kt(ne.attributeNameCheck,t,e)||"is"===t&&ne.allowCustomizedBuiltInElements&&kt(ne.tagNameCheck,i);if(Ne[t])return!0;const a=zs(i,G,"");return!!Qs(J,a)||(!("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Fs(i,"data:")||!Me[e])||(!(!ce||Qs(Q,a))||!i))},St=Xs({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Mt=function(e){return!St[Rs(e)]&&Qs(Z,e)},It=function(e,t,i,n){if(D&&"object"==typeof d&&"function"==typeof d.getAttributeType&&!i)switch(d.getAttributeType(e,t)){case"TrustedHTML":return L(n);case"TrustedScriptURL":return function(e){O(),N++;try{return D.createScriptURL(e)}finally{N--}}(n)}return n},Nt=function(e,t,i,n){try{return i?e.setAttributeNS(i,t,n):e.setAttribute(t,n),!yt(e)||(nt(e),!1)}catch(i){return rt(t,e),!1}},Ot=function(e,t){return!(!he||!Qs(Ma,t))||"attributename"===Rs(e)&&-1!==Fs(t,"href")},Lt=function(e,t){Et(e,t),function(e,t){if(Ct(U.beforeSanitizeAttributes,e,null),At(e,t))return;const n=e.attributes;if(!n||yt(e))return;te=Tt(U.uponSanitizeAttribute,te,ie,me);const s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:te,forceKeepAttr:void 0};let a=n.length;const r=Qe(T(e));for(;a--;){const t=n[a],o=t.name,l=t.namespaceURI,c=t.value,u=Qe(o),d=c;let h="value"===o?d:Hs(d),p=!1;s.attrName=u,s.attrValue=h,s.keepAttr=!0,s.forceKeepAttr=void 0,Ct(U.uponSanitizeAttribute,e,s),h=s.attrValue,!xe||"id"!==u&&"name"!==u||0===Fs(h,Ce)||(rt(o,e,t),h=Ce+h,p=!0),Ot(o,h)?rt(o,e,t):s.forceKeepAttr||(!s.keepAttr||!ue&&Qs(Sa,h)?rt(o,e,t):(de&&(h=mt(h)),Dt(r,u,h)?(h=It(r,u,l,h),h!==d&&Nt(e,o,l,h)&&p&&Ds(i.removed)):rt(o,e,t)))}Ct(U.afterSanitizeAttributes,e,null),At(e,t)}(e,t),_t(e.content)&&Pt(e.content)},Pt=function(e){let t=null;const i=gt(e);for(Ct(U.beforeSanitizeShadowDOM,e,null);t=i.nextNode();)if(Ct(U.uponSanitizeShadowNode,t,null),Lt(t,e),k(t)===Na){const e=y(t);_t(e)&&(Rt(e),Pt(e))}de&&bt(e),Ct(U.afterSanitizeShadowDOM,e,null)},Rt=function(e){const t=[{node:e,shadow:null}];for(;t.length>0;){const e=t.pop();if(e.shadow){Pt(e.shadow);continue}const i=e.node,n=k(i)===Na,s=v(i);if(s)for(let e=s.length-1;e>=0;--e)t.push({node:s[e],shadow:null});if(n){const e=x?x(i):null;if("string"==typeof e&&"template"===Qe(e)){const e=i.content;_t(e)&&t.push({node:e,shadow:null})}}if(n){const e=y(i);_t(e)&&t.push({node:null,shadow:e},{node:e,shadow:null})}}};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,r=null,o=null;if(je=!e,je&&(e="\x3c!--\x3e"),"string"!=typeof e&&!xt(e)&&"string"!=typeof(e=function(e){switch(typeof e){case"string":return e;case"number":return Bs(e);case"boolean":return Us(e);case"bigint":return Ws?Ws(e):"0";case"symbol":return Vs?Vs(e):"Symbol()";case"undefined":default:return qs(e);case"function":case"object":{if(null===e)return qs(e);const t=e,i=na(t,"toString");if("function"==typeof i){const e=i(t);return"string"==typeof e?e:qs(e)}return qs(e)}}}(e)))throw Gs("dirty is not a string, aborting");if(!i.isSupported)return e;fe?(X=ge,te=me):Xe(t),i.removed=[];const l=Te&&"string"!=typeof e&&xt(e);let c=[];const u=Ae;if(l){d=e,he&&lt(d,e=>{const t=k(e);if(t===La||t===Pa&&Qs(Ea,e.data)){try{f(e)}catch(e){}return!1}if(t===Na){const t=e,i=Qe(T(e));try{t.hasAttribute&&t.hasAttribute("patchsrc")&&t.removeAttribute("patchsrc"),t.hasAttribute&&t.hasAttribute("for")&&pt("for",i)&&t.removeAttribute("for")}catch(e){}}return!0});const t=T(e);if("string"==typeof t){const i=Qe(t);if(!X[i]||se[i])throw at(e),Gs("root node is forbidden and cannot be sanitized in-place")}if(yt(e))throw at(e),Gs("root node is clobbered and cannot be sanitized in-place");c=ut(e),Ae=Os()}else if(xt(e))n=ft("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===Na&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a),Rt(n);else{if(!be&&!de&&!pe&&-1===e.indexOf("<"))return P(e);if(n=ft(e),!n)return be?null:we?M:""}var d;n&&ve&&nt(n.firstChild);const h=l?e:n;try{l&&Rt(e);const t=gt(h);for(;r=t.nextNode();)Lt(r,h);l&&function(e,t){const i=Ae;let n=null;const s=()=>(n||(n=Os(),As(t,e=>{Ls(n,e)})),n);for(let t=0;;t++){const n=ut(e),a=[e];let r=!1;if(As(n,e=>{k(e)===$a?Ss(a,e):r||Ps(i,e)||(r=Ps(s(),e))}),!r)return;if(t>=8)throw Gs("the tree kept changing during in-place sanitization; refusing to return it");As(a,(t,i)=>{ht(t,i>0,e,s())})}}(e,c)}catch(t){throw l&&(at(e),dt(e,c)),t}finally{Ae=u}if(l){if(dt(e,c))throw Gs("a node selected for removal could not be safely returned; refusing to sanitize in place");return de&&vt(e),e}if(be){if(de&&vt(n),ye)for(o=F.call(n.ownerDocument);n.firstChild;)o.appendChild(n.firstChild);else o=n;return(te.shadowroot||te.shadowrootmode)&&(o=B.call(s,o,!0)),o}const p=()=>pe?n.outerHTML:n.innerHTML;let g=p();return de&&Qs(ba,g)&&(bt(n),g=p()),pe&&X["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Qs(ka,n.ownerDocument.doctype.name)&&(g="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+g),P(g)},i.setConfig=function(){Xe(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),fe=!0,ge=X,me=te},i.clearConfig=function(){Ge=null,fe=!1,ge=null,me=null,D=S,M=""},i.isValidAttribute=function(e,t,i){Ge||Xe({});const n=Qe(e),s=Qe(t);return("string"!=typeof i||!(Ot(t,i)||!ue&&Qs(Sa,i)))&&Dt(n,s,i)},i.addHook=function(e,t){"function"==typeof t&&Ys(U,e)&&Ss(U[e],t)},i.removeHook=function(e,t){if(Ys(U,e)){if(void 0!==t){const i=Es(U[e],t);return-1===i?void 0:Is(U[e],i,1)[0]}return Ds(U[e])}},i.removeHooks=function(e){Ys(U,e)&&(U[e]=[])},i.removeAllHooks=function(){U={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const Ua="aui-tooltip",Wa={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},Va="aui-tooltip",Ya={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let qa;const Ka=(e=!1)=>{const t=qa&&qa.get(0);t&&(t.classList.toggle("hidden",e),t.setAttribute("aria-hidden",e))};class Qa{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options={...Ya,...t},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),Ga.delete(this.triggerElement)}moveTitleToTooltip(){const e=this,t=this.$triggerElement;t.attr("title",function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",Ua),null})}observeTriggerRemoval(){const e=[];this.options.$delegationRoot&&this.options.$delegationRoot.get(0)&&e.push(this.options.$delegationRoot.get(0)),this.triggerElement&&e.push(this.triggerElement),this.triggerObservers=e.map(e=>{const t=e.parentElement;if(t){const i=new MutationObserver(()=>{!t.contains(e)&&this.destroy()});return i.observe(t,{childList:!0,subtree:!1}),i}}).filter(e=>!!e)}unbindHandlers(){const e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(`.${Va}`,e):(this.triggerObservers.length>0&&this.triggerObservers.forEach(e=>e.disconnect()),this.$triggerElement.off(`.${Va}`))}initContainer(){(void 0===qa||qa.get(0)&&!qa.get(0).isConnected)&&(qa=i(`<div id="${Ua}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(qa))}buildTip(e){const t=this.options,i=qa.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=Ba.sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),qa}getTipTitle(){const e=this.options;let t=("function"==typeof e.title?e.title:"string"==typeof e.title?()=>e.title:()=>this.originalTitle||"").call(this.triggerElement);return t&&t.trim().length?t:void 0}show(){const e=this.getTipTitle();if(!1===this.enabled||!e)return;qa&&e!==qa.text()&&this.hide();const t=this.triggerElement,n=Wa[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(t))return;const s=this.buildTip(e).get(0);this.showTooltip(),this.popperInstance=Xi(t,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${Va}`,()=>this.hide())}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${Va}`)}showTooltip(){Ka(!1)}hideTooltip(){Ka(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const Ga=new WeakMap,Za=(e,t)=>{let i=Ga.get(e);return void 0===i&&(i=new Qa(e,t),"object"==typeof e&&Ga.set(e,i)),i},Ja=e=>e.map(e=>`${e}.${Va}`).join(" "),Xa=Ja(["mouseenter","focus"]),er=Ja(["click","mouseleave","blur"]);let tr,ir;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return Za(e)}if("string"==typeof e){const i=t.tooltip(!0),n=e;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),t}const i=e||{},n=function(){clearTimeout(ir),clearTimeout(tr)},s=function(){n();const e=Za(this,i);tr=setTimeout(()=>{n(),e.show(),qa&&(qa.off(`mouseenter.${Va}`),qa.off(`mouseleave.${Va}`),qa.on(`mouseenter.${Va}`,()=>{n()}),qa.on(`mouseleave.${Va}`,()=>{n(),a()}))},300)},a=function(){n();const e=Za(this,i);ir=setTimeout(()=>{e.hide()},300)},r=function(e){"Escape"===e.code&&a()},o=i.live;return void 0!==o?(i.$delegationRoot=t,t.on(Xa,o,s),t.on(er,o,a),t.on("keyup",o,r)):(t.on(Xa,s),t.on(er,a),t.on("keyup",r)),t};var nr=function(e){function t(){return i('<div class="aui-dropdown2-section">')}var n=t();i("<button />").attr({type:"button","data-aui-checkbox-multiselect-clear":"",class:"aui-button aui-button-link"}).text(I18n.getText("aui.checkboxmultiselect.clear.selected")).appendTo(n);var s=t(),a=i("<ul />").appendTo(s);return i.each(e,function(e,t){var n=i("<li />").attr({class:t.styleClass||""}).appendTo(a),s=i("<a />").text(t.label).attr("data-value",t.value).addClass("aui-dropdown2-checkbox aui-dropdown2-interactive").appendTo(n);t.icon&&i("<span />").addClass("aui-icon").css("backgroundImage","url("+t.icon+')")').appendTo(s),t.selected&&s.addClass("aui-dropdown2-checked")}),i("<div />").append(n).append(s).html()},sr=function(e,t){var n=e+"-dropdown",s=i("<select />").attr({name:e,multiple:"multiple"}).html(t),a=i("<div>").attr({id:n,class:"aui-checkbox-multiselect-dropdown aui-dropdown2"}),r=i("<button />").attr({class:"aui-checkbox-multiselect-btn aui-button aui-dropdown2-trigger",type:"button","aria-owns":n,"aria-haspopup":!0});return i("<div />").append(s).append(r).append(a).html()};function ar(e){var t=i(e.target);rr(this,t.attr("data-value"),t.hasClass("aui-dropdown2-checked"))}function rr(e,t,n){var s=e.$select.find("option").filter(function(){var e=i(this);return e.attr("value")===t&&e.prop("selected")!==n});s.length&&(s.prop("selected",n),e.$select.trigger("change"))}function or(e){e.$dropdown.find("[data-aui-checkbox-multiselect-clear]").prop("disabled",function(){return dr(e).length<1})}function lr(e){return e.map(function(){var e=i(this);return{value:e.val(),label:e.text(),icon:e.data("icon"),styleClass:e.data("styleClass"),title:e.attr("title"),disabled:e.attr("disabled"),selected:e.prop("selected")}})}function cr(e){e.$dropdown.html(nr(function(e){return lr(e.getOptions())}(e))),or(e)}function ur(e){var t=hr(e),n=function(e){return 0===dr(e).length}(e)?function(e){return i(e).data("allLabel")||"All"}(e):t.join(", ");e.$btn.text(n)}function dr(e){return lr(e.getSelectedOptions())}function hr(e){return i.map(dr(e),function(e){return e.label})}const pr=Z("aui-checkbox-multiselect",{attached:function(e){var t=e.getAttribute("name")||gn("aui-checkbox-multiselect-");e.innerHTML=sr(t,e.innerHTML),e.$select=i("select",e).on("change",function(){ur(e),or(e)}),e.$dropdown=i(".aui-checkbox-multiselect-dropdown",e).on("aui-dropdown2-item-check",ar.bind(e)).on("aui-dropdown2-item-uncheck",ar.bind(e)).on("click","button[data-aui-checkbox-multiselect-clear]",e.deselectAllOptions.bind(e)),e.$btn=i(".aui-checkbox-multiselect-btn",e).tooltip({title:function(){return function(e){return e.$dropdown[0].hasAttribute("hidden")?"":hr(e).join(", ")}(e)}}),ur(e),cr(e)},prototype:{getOptions:function(){return this.$select.find("option")},getSelectedOptions:function(){return this.$select.find("option:selected")},selectOption:function(e){rr(this,e,!0)},unselectOption:function(e){rr(this,e,!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(e){i("<option />").attr({value:e.value,icon:e.icon,disabled:e.disabled,selected:e.selected,title:e.title}).text(e.label).appendTo(this.$select),ur(this),cr(this)},removeOption:function(e){this.$select.find("[value='"+e+"']").remove(),ur(this),cr(this)}}});G("aui/checkbox-multiselect",pr);const fr=pr;var gr=a(722);const mr=a.n(gr)();const vr=function(e){function t(t){return n(function(){return e.hasAttribute(t)},t+" wasn't defined")}function i(i){if(!t(i))return!1;var s=e.getAttribute(i);return n(function(){return document.getElementById(s)},'an element with id set to "'+s+'" was not found')}function n(t,i){return!!t()||(e?m(i,e):m(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},br="-input";function yr(e){return e.querySelector("label")}const wr=Z("aui-label",{template:Ye()("<label><content></content></label>"),created:function(e){e._label=yr(e)},attached:function(e){vr(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?yr(e).setAttribute("for",`${t.newValue}${br}`):yr(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?yr(e).setAttribute("form",t.newValue):yr(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(e){e?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});a(217);const _r=i.fn.select2,xr="aui-select2-container",Cr="aui-select2-drop aui-dropdown2",kr="aui.select2DropdownLayer";i.fn.auiSelect2=function(e){let t;if(i.isPlainObject(e)){const n=i.extend({},e),s=n.hasAvatar?" aui-has-avatar":"";n.containerCssClass=xr+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=Cr+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:xr,dropdownCssClass:Cr}];const n=t[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let e=n.ajax.params.error;Array.isArray(e)||(e=[e]);let t=n.ajax.transport;t||(t=_r.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...e],t(...i)};n.ajax.transport=i}const s=_r.apply(this,t),a=this,r=n.searchLabel;return a.on("select2-open",function(){const e=i(this),t=e.select2("dropdown");let s=e.data(kr);s||(s=Oe(),e.data(kr,s)),s.show(),t.css("z-index",s.$el.css("z-index")),i("#select2-drop-mask").css("z-index",s.$el.css("z-index")),n.multiple||e.attr("multiple")||r&&t.find(".select2-search label").text(r)}),a.on("select2-close",function(){const e=i(this),t=e.data(kr);t?t.hide():AJS.warn("Warning! AUI: `select2-close` event handler could not discover the layer linked with the Select2 dropdown.","This may be happening when there are many instances of Select2 created on the same DOM element.","Consider checking your code as this can negatively affect performance."),e.removeData("was-ariadescribedby-cleared")}),a.on("select2-loaded",function(){const e=i(this),t=e.data("was-ariadescribedby-cleared");if(n.multiple||e.attr("multiple")||t)return;e.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),e.data("was-ariadescribedby-cleared",!0)}),a.on("select2-focus",function(){const e=i(this),t=e.parent().find(".select2-container");if(n.multiple||e.attr("multiple"))return void(r&&t.find(".select2-search-field label").text(r));const s=t.find("label");if(s.attr("id"))return;const a=t.find(".select2-focusser"),o=a.attr("id")+"-label",l=a.attr("aria-labelledby");s.attr("id",o),a.attr("aria-labelledby",o+" "+l)}),s},i.fn.spin=P(function(e,t){let n={size:"small"};return"object"==typeof t&&(n=i.extend(n,t)),"object"==typeof e&&(n=i.extend(n,e)),"string"==typeof e&&(n.size=e),"boolean"==typeof e&&!1===e?this.spinStop():this.each(function(){if(!this||!this.nodeType)return;const e=i(this),t=e.data();if(t){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),e.spinStop(),e.append(s),Z.init(this),t.spinner=s}})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=P(function(){return this.each(function(){if(!this||!this.nodeType)return;const e=i(this).data();e&&e.spinner&&(e.spinner.remove(),delete e.spinner)})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"10.0.0",alternativeName:"<aui-spinner>"});const Tr=Z("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||S(this.textContent)},set:function(t){e.setAttribute("value",t)}})},prototype:{serialize:function(){var e={};return this.hasAttribute("img-src")&&(e["img-src"]=encodeURI(this.getAttribute("img-src"))),e.value=this.value,e.label=S(this.textContent),e}}});var Ar=a(572),Er=a.n(Ar),Dr=Er().Collection.extend({initialize:function(e,t){t||(t={}),t.matcher&&(this.matcher=t.matcher),t.model&&(this.model=t.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=t.maxResults||5,this._queryData=t.queryData||{},this._queryParamKey=t.queryParamKey||"q",this._queryEndpoint=t.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,pt.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(e){var t,i;this.value=e,i=this.getFilteredResults(e),this.respond(e,i),e&&this._queryEndpoint&&!this.hasQueryCache(e)&&this.shouldGetMoreResults(i)&&(t=this.fetch(e),this.activeQueryCount++,this.trigger("activity",{activity:!0}),t.always(()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})}),t.done((t,i,n)=>{this.addQueryCache(e,t,n)}),t.done(()=>{e=this.value,i=this.getFilteredResults(e),this.respond(e,i)}))},getQueryData:function(e){var t=(0,pt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,pt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return Er().Collection.prototype.fetch.call(this,t)},respond:function(e,t){return this.trigger("respond",{query:e,results:t}),t},matcher:function(e,t){},getFilteredResults:function(e){var t=[];return e?(t=this.filter(function(t){return!!this.matcher(t,e)},this),this._maxResults&&(t=(0,pt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,pt.pluck)(s,this._idAttribute)},hasQueryCache:function(e){return this.queryCache.hasOwnProperty(e)},findQueryCache:function(e){return this.queryCache[e]},shouldGetMoreResults:function(e){return e.length<this._maxResults},setMaxResults:function(e){this._maxResults=e,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});l("ProgressiveDataSet",Dr);const Sr=Dr,Mr=Er().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});function Ir(){this._suggestions=[],this._activeIndex=-1}Ir.prototype={onChange:function(){},onHighlightChange:function(){},get:function(e){return this._suggestions[e]},set:function(e){var t=this._suggestions;return this._suggestions=e||[],this.onChange(t),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(e){if(e)for(var t=0;t<this._suggestions.length;t++)this._suggestions[t].id===e.id&&this.highlight(t);return this},highlight:function(e){return this._activeIndex=e,this.onHighlightChange(),this},highlightPrevious:function(){const e=this._activeIndex,t=0===e?this._suggestions.length-1:e-1;return this.highlight(t),this},highlightNext:function(){const e=this._activeIndex,t=e===this._suggestions.length-1?0:e+1;return this.highlight(t),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}};const Nr=Ir;function Or(e,t){return e+"-"+t}function Lr(e,t){this.el=e,this.anchor=t}function Pr(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}Lr.prototype={render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let a=0;a<e.length;a++){const r=e[a],o=a+t,l=r.getLabel(),c=r.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=r.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${Or(i,o)}">${u}${l}${d}</li>`}t?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else t||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(e){Pr(this.el),i(this.el).find("#"+Or(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){var e;i((e=this).el).css("min-width",i(e.anchor).outerWidth()),Oe(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new cn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){var e;Pr(this.el),Oe(this.el).hide(),(e=this)._auiAlignment&&e._auiAlignment.disable()},destroy:function(){var e;this.hide(),(e=this)._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};const Rr=Lr,$r=Ye()('\n <input type="text" class="text" role="combobox" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" tabindex="-1" type="button"></button>\n <div class="aui-popover" data-aui-alignment="bottom left" hidden>\n <ul role="listbox" class="aui-optionlist"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function jr(e){e._select.selectedIndex=-1,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function zr(e){return e._suggestionModel.getNumberOfResults()}function Fr(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function Hr(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),Jr(e,"")}function Br(e){e._suggestionsView.hide(),Hr(e)}function Ur(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Wr(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&function(e,t){i(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+encodeURI(t)+")")}(e,t)}function Vr(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),r=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=r,e._input.value=r,s.innerHTML="",s.options.add(n),s.dispatchEvent(new ve("change",{bubbles:!0}))}}function Yr(e){Vr(e,e._suggestionModel.highlighted()),Wr(e),Br(e)}function qr(e){return new Mr(e.serialize())}function Kr(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(qr(n))}return t}function Qr(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function Gr(e,t){return i.map(t,function(e){return e.id}).indexOf(e)}function Zr(e){e._progressiveDataSet=new Sr(Kr(e),{model:Mr,matcher:Fr,queryEndpoint:e._queryEndpoint,maxResults:20}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(!function(e){e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true"))}(e),J(e).set("should-flag-new-suggestions",!1)):(!function(e){e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false")}(e),J(e).set("should-flag-new-suggestions",!0))}),e._progressiveDataSet.on("respond",function(t){if(t.query&&!e._input.value)return;if(J(e).get("should-cancel-response"))return void(e._progressiveDataSet.activeQueryCount||J(e).set("should-cancel-response",!1));t.query||(t.results=Kr(e));var i=-1!==Gr(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new Tr;t.setAttribute("value",e._input.value);var i=qr(t);return i.set("new-value",!0),i}(e));let s=Gr(e.value,t.results);s=-1===s?0:s;const a=function(e,t){const i=e._suggestionModel.getNumberOfResults();return e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()}(e,t),r=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(r),setTimeout(function(){const t=Qr(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")},50)),e._input.setAttribute("aria-expanded","true"),e._button.setAttribute("aria-expanded","true"),!e._isSync&&a&&e._suggestionsView.getActive()&&J(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),e._suggestionsView.show()})}function Jr(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout(()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)},50)}function Xr(e){Ur(e,!0,e.value?"":e._input.value)}function eo(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function to(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function io(e){eo(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==to(e);if(i||n)if(t)jr(e);else{var s=to(e);void 0===s?jr(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(-1)}(e),Br(e)}const no=Z("aui-select",{template:$r,created:function(e){e._listId=gn(),e._input=e.querySelector("input"),e._select=e.querySelector("select"),e._dropdown=e.querySelector(".aui-popover"),e._datalist=e.querySelector("datalist"),e._button=e.querySelector("button"),e._assistiveStatus=e.querySelector(".aui-select-status.assistive"),e._suggestionsView=new Rr(e._dropdown,e._input),e._suggestionModel=new Nr,e._suggestionModel.onChange=function(t){const i=[];e._suggestionModel._suggestions.forEach(function(e){t.some(t=>e.id===t.id)||i.push(e)});const n=Kr(e),s=Gr(e.value,n),a=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),Jr(e,a)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=Qr(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),Zr(e),function(e){e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId)}(e),e._input.setAttribute("aria-controls",e._listId),function(e){i(e._dropdown).on("mouseover","li",function(t){zr(e)&&e._suggestionModel.highlight(i(t.target).index())})}(e),function(e){let t=!1;i(document).on("aui-close-layers-on-outer-click.single-select",e=>{t&&(e.preventDefault(),t=!1)}),i(e._dropdown).on("mousedown","li",function(n){if(!zr(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Yr(e),i(e).closest(".aui-layer").length>0&&(t=!0)})}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&Vr(e,qr(t))}(e),function(e){var t=zr(e)?0:-1;e._suggestionModel.highlight(t),Br(e)}(e),Wr(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),un(e).then(()=>{Br(e),e._suggestionsView.destroy()})},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+br)},name(e,t){e.querySelector("select").setAttribute("name",t.newValue),e.querySelector("select").setAttribute("aria-label",`${t.newValue} list`),e.querySelector("button").setAttribute("aria-label",`${t.newValue} list`),e.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${t.newValue} list`)},placeholder(e,t){e.querySelector("input").setAttribute("placeholder",t.newValue)},src(e,t){e._queryEndpoint=t.newValue}},events:{"blur input":function(e){io(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||J(e).set("prevent-open-on-button-click",!0)},"click input":function(e){Xr(e)},"click button":function(e){var t=J(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(J(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?Ur(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Br(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return eo(e),void Hr(e);e._suggestionsView.isVisible()&&zr(e)?t.keyCode===Q.ENTER?(eo(e),Yr(e),t.preventDefault()):t.keyCode===Q.TAB?(Yr(e),n=!0):t.keyCode===Q.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===Q.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):t.keyCode!==Q.UP&&t.keyCode!==Q.DOWN||(Xr(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout(function(){e._input.value===i||n||e.dispatchEvent(new ve("input",{bubbles:!0}))},0)}},prototype:{get value(){var e=this._select.options[this._select.selectedIndex];return e?e.value:""},set value(e){if(""===e)(n=this)._input.value="",n._select.innerHTML="";else if(e){var t=this._progressiveDataSet,i=t.findWhere({value:e})||t.findWhere({label:e});!i&&this.hasAttribute("can-create-values")&&(i=new Mr({value:e,label:e})),Vr(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),io(this),this},focus:function(){return this._input.focus(),Xr(this),this}}});G("aui/select",no),l("select",no);const so=no;function ao(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const ro={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:ao,computeEnumValue:function(e,t){const i=e=>e.toLowerCase()===t.toLowerCase(),n=null===t,s=!n&&!e.values.filter(i).length;return n?e.hasOwnProperty("missingDefault")?e.missingDefault:null:s?e.hasOwnProperty("invalidDefault")?e.invalidDefault:e.hasOwnProperty("missingDefault")?e.missingDefault:null:e.values.length?e.values.filter(i)[0]:null},setEnumAttribute:function(e,t,i){e.setAttribute(t.attribute,i)}};function oo(e){return e._input||(e._input=e.querySelector("input"))}function lo(e){return e._spinner||(e._spinner=new _t)}function co(e,t){oo(t).removeAttribute(e)}function uo(e,t,i){oo(t).setAttribute(e,i.newValue)}function ho(e){return{removed:co.bind(this,e),fallback:uo.bind(this,e)}}const po={removed:function(e){co.call(this,"form",e),e._formId=null},fallback:function(e,t){uo.call(this,"form",e,t),e._formId=t.newValue}},fo={removed:co.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${br}`;oo(e).setAttribute("id",i)}},go={removed:function(e){co.call(this,"value",e),oo(e).value="on"},fallback:function(e,t){uo.call(this,"value",e,t)}},mo={removed:function(e){oo(e).checked=!1},fallback:function(e){oo(e).checked=!0}},vo={removed:function(e){oo(e).removeAttribute("aria-label")},fallback:function(e,t){oo(e).setAttribute("aria-label",t.newValue)}};function bo(e){oo(e).addEventListener("keydown",function(t){e.busy&&t.keyCode===Q.SPACE&&t.preventDefault()}),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&oo(e).addEventListener("click",function(t){e.busy&&t.preventDefault()}),function(){if(void 0===Ot)try{document.querySelector(":focus-within"),Ot=!0}catch(e){Ot=!1}return Ot}()||(e._input.addEventListener("focus",()=>e.classList.add("active")),e._input.addEventListener("blur",()=>e.classList.remove("active")))}const yo=Z("aui-toggle",{template:Ye()('<input type="checkbox" role="switch" 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(e){oo(e),lo(e).setAttribute("size",ft.SMALL.name),i(oo(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),bo(e),e.hasAttribute("checked")&&oo(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){vr(e).attributeExists("label")},events:{click:function(e,t){const i=oo(e);e.disabled||e.busy||t.target===i||(i.checked=!i.checked,function(e){e._canFireEventsNow&&e.dispatchEvent(new ve("change",{bubbles:!0}))}(e)),ao(e,"checked",i.checked)}},attributes:{id:fo,checked:mo,disabled:ho("disabled"),form:po,name:ho("name"),value:go,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(e,t){oo(e).setAttribute("tooltip-on",t.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(e,t){oo(e).setAttribute("tooltip-off",t.newValue||I18n.getText("aui.toggle.off"))}},label:vo},prototype:{focus:function(){return oo(this).focus(),this},get checked(){return oo(this).checked},set checked(e){oo(this).checked!==e&&(oo(this).checked=e,ao(this,"checked",e))},get disabled(){return oo(this).disabled},set disabled(e){return ao(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return po.fallback.call(this,this,{newValue:e||null}),this.form},get name(){return oo(this).name},set name(e){return this.setAttribute("name",e),e},get value(){return oo(this).value},set value(e){let t=null===e?"":e;return this.setAttribute("value",t),t},get busy(){return"true"===oo(this).getAttribute("aria-busy")},set busy(e){const t=oo(this),n=lo(this);var s,a;return ao(this,"busy",e),e?(t.setAttribute("aria-busy","true"),t.indeterminate=!0,this.checked?(t.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(t.classList.remove("indeterminate-checked"),t.indeterminate=!1,t.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),a=!!e,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),function(e){e.disabled=a}),e}}}),wo=yo;function _o(e,t){Po(e)&&te(e,function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)}),ee(e,t)}function xo(e,t){if(e._auiAlignment)e._auiAlignment.changeTarget(t),e._auiAlignment.enable();else{let i={overflowContainer:"viewport"===e.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};e._auiAlignment=new cn(e,t,i)}}function Co(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function ko(e,t){var i=t.currentTarget;i&&(_o(e,i),xo(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function To(e=0){return function(t){t.open&&!Oe(t).isPersistent()&&(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout(function(){(function(e){return J(e).get("mouse-inside")||e.contains(document.activeElement)})(t)||(t.open=!1),t._closingTimeout=null},e))}}const Ao={click(e,t){e.open&&!Oe(e).isPersistent()?e.open=!1:(_o(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:ko,mouseleave:To(1e3),focus:ko,blur:To(0)};function Eo(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function Do(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function So(e){var t=e.currentTarget;"hover"===t.respondsTo&&To(1e3)(t)}function Mo(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",Eo),e.removeEventListener("mouseleave",Do),e.removeEventListener("blur",So),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",Eo),e.addEventListener("mouseleave",Do),e.addEventListener("blur",So))}function Io(e,t){return`${e}.nested-layer-${t}`}function No(e){return Oe(e).show(),!0===Oe(e).isVisible()}function Oo(e){return Oe(e).hide(),!1===Oe(e).isVisible()}function Lo(e){return"hover"!==e.respondsTo}function Po(e){return"dialog"!==e.getAttribute("role")}function Ro(e){e.__initialised||(Oe(e),i(e).on({[`${be}show`]:function(e){const t=this;e.target===t&&(!function(e){let t=i(e);const n=e.id,s=e=>t.find(X(e.target)).length<1;i(document).on(Io("aui-layer-show",n),e=>{s(e)||t.attr("persistent","")}).on(Io("aui-layer-hide",n),e=>{s(e)||t.removeAttr("persistent")}).on(Io("select2-opening",n),()=>{t.attr("persistent","")}).on(Io("select2-close",n),()=>{setTimeout(()=>{t.removeAttr("persistent")},150)})}(t),te(t,function(e){Lo(t)&&fe().enter(i(t),i(e)),xo(t,e),Po(t)&&e.setAttribute("aria-expanded","true")}))},[`${be}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(Io("aui-layer-hide",n)).off(Io("aui-layer-show",n)).off(Io("select2-opening",n)).off(Io("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):Co(t),te(t,function(e){Lo(t)&&fe().exit(i(t)),Po(t)&&e.setAttribute("aria-expanded","false")}),ee(t,null))}}),e.__initialised=!0)}const $o={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},jo=Z("aui-inline-dialog",{prototype:{get open(){return Oe(this).isVisible()},set open(e){this.__propUpdate=!0,e?No(this):Oo(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){ro.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=$o.attribute;return ro.computeEnumValue($o,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;ro.setEnumAttribute(this,$o,e),t!==this.respondsTo&&Mo(this)},message:function(e){var t,i,n;return i=e,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(t=this).respondsTo])&&n.indexOf(i.type)>-1&&Ao[i.type](t,i),this}},attributes:{open:function(e,t){if(Ro(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){No(e)||ao(e,"open",!1)}if("removed"===t.type){Oo(e)||ao(e,"open",!0)}}},"responds-to":function(e,t){ro.computeEnumValue($o,t.oldValue)!==ro.computeEnumValue($o,t.newValue)&&Mo(e)}},created:Ro,attached:function(e){vr(e).attributeExists("id"),e.setAttribute("tabindex",0),Po(e)&&(e.setAttribute("role","group"),te(e,function(t){t.setAttribute("aria-expanded",e.open)}),ie(e,function(e){e.setAttribute("aria-haspopup","true")})),Mo(e)},detached:function(e){un(e).then(()=>{Co(e),Po(e)&&ie(e,function(e){e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded")})})},template:function(e){i('<div class="aui-inline-dialog-contents"></div>').append(e.childNodes).appendTo(e)}});G("aui/inline-dialog2",jo),l("InlineDialog2",jo);const zo=jo;function Fo(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map(function(e,t){return new Fo(t)})[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 t=this.$el.children(".aui-nav-selected");t.parents(".aui-nav > [aria-expanded=false]").add(t.filter("[aria-expanded=false]")).each(function(){Ho(i(this).children(".aui-nav")).expand()});var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",function(){Ho(i(this).siblings(".aui-nav")).toggle()}),n.each(function(){var e=i(this).parent("li[aria-expanded]"),t=i(this).find(".aui-icon"),n="true"===e.attr("aria-expanded");t.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))}),this}Fo.prototype.isNested=function(){return 1===this.$treeParent.length},Fo.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Fo.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},Fo.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},Fo.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Ho=ge("navigation",Fo),Bo=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new Fo(e)},detached:function(e){i(e).removeData()}});l("navigation",Ho);const Uo=Ho;function Wo(e,t,{currentProgress:n,value:s}){const a=i(e),r=i(t);"number"==typeof s&&s<=1&&s>=0&&(r.trigger("aui-progress-indicator-before-update",[n,s]),a.one("transitionend webkitTransitionEnd",function(){r.trigger("aui-progress-indicator-after-update",[n,s])}),function(e,t,i){U(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,r,s))}function Vo(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),U(t),n.css("width","")}const Yo={indeterminate:!1,max:1,val:0};function qo(e){return(0,pt.isNumber)(e)&&(0,pt.isFinite)(e)&&!(0,pt.isNaN)(e)}function Ko(e,t=1){const i=parseFloat(e);return qo(i)?i:Number(t)}function Qo(e,t=1){return Number(parseFloat(e).toFixed(t))}function Go(e){const{val:t,max:i}=e,n=function(e){return e>0?e:Yo.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Qo(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Qo(100*a,2)}}function Zo(e){const{val:t,valAsFraction:i,max:n}=Go(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),Vo(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),Wo(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Jo(e,t){e._data.val=Ko(t.newValue,t.oldValue||Yo.val),Zo(e)}function Xo(e,t){e._data.max=Ko(t.newValue,t.oldValue||Yo.max),Zo(e)}const el=Z("aui-progressbar",{template(e){e._data.max=Ko(e.getAttribute("max"),Yo.max),e._data.val=Ko(e.getAttribute("value"),Yo.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=Go(e._data),a=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"\n ${a}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${t}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(e){Zo(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:Yo.val,fallback:function(e,t){if(e._updating)return!1;Jo(e,t)}},max:{value:Yo.max,fallback:function(e,t){if(e._updating)return!1;Xo(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,pt.defaults)({},Yo))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Zo(this)},get value(){const{val:e}=Go(this._data);return e},set value(e){if(!qo(e))return!1;const t={newValue:Qo(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Jo(this,t)},get max(){const{max:e}=Go(this._data);return e},set max(e){if(!qo(e))return!1;const t={newValue:Qo(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Xo(this,t)}}}),tl={update:P(function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var n=i(e).first(),s=n.children(".aui-progress-indicator-value"),a=n.attr("data-value"),r=!a,o=parseFloat(a)||0,l=a&&o===t;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return r&&s.css("width",0),Wo(s,n,{currentProgress:o,value:t}),n},"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:P(Vo,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"10.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",tl);const il=tl;a(99);const nl={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function sl(e,t){let n=Object.assign({},nl,t);return e.find("th").each(function(e,t){const s=i(t);n.headers[e]={},s.hasClass("aui-table-column-unsortable")?n.headers[e].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[e].sorter="issue-key"))}),e.tablesorter(n)}let al={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){const t=e.split("-"),i=t[0],n=t[1],s="..........",a="000000";let r=(i+s).slice(0,10);return r+=(a+n).slice(-6),r},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(e,t,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(e,t,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(e,t,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each(function(){sl(i(this))})},setTableSortable:function(e,t){return sl(e,t)}};i(al.setup),l("tablessortable",al);function rl(e,t=""){var n=i(e),s=t||!1;n.each(function(){var e=i(this);e.attr("id")||e.attr("id",gn(s))})}l("_addID",rl);const ol=rl;function ll(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",ll);const cl=ll;var ul=window.skateTemplateHtml;function dl(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function hl(e){let t=dl(e);return t?document.getElementById(t):null}var pl={totalTabsWidth:function(e,t){var i=this.totalVisibleTabWidth(e),n=0;return t.find("li").each(function(e,t){n+=parseInt(t.getAttribute("data-aui-tab-width"))}),i+n},totalVisibleTabWidth:function(e){var t=0;return e.each(function(e,n){t+=i(n).outerWidth()}),t},removeResponsiveDropdown:function(e,t){e.remove(),t.remove()},createResponsiveDropdownTrigger:function(e,t){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-${t}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${t}"\n href="#aui-tabs-responsive-dropdown-${t}">...</a>\n </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>';return e.append(i),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,n){function s(e,t,i){return e+t<=i}for(var a=0,r=0;s(a,n,t)&&r<e.length;r++){a+=i(e[r]).outerWidth(!0)}return e.slice(0,r-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),r=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),o=r.length-1,l=e.length-1;l>=o;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(r)},moveTabToResponsiveDropdown:function(e,t,i){var n=e.find("a");e.attr("data-aui-tab-width",e.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),e.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),t.find("ul").prepend(e)},moveInvisibleTabs:function(e,t,n){function s(e){return e>0}for(var a=0;s(t)&&a<e.length;a++){var r=i(e[a]),o=parseInt(r.attr("data-aui-tab-width"),10);o<t&&this.moveTabOutOfDropdown(r,n),t-=o}},moveTabOutOfDropdown:function(e,t){e.find("a").hasClass("aui-dropdown2-checked")&&(e.addClass("active-tab"),t.removeClass("active-tab")),e.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),t.before(e)}};function fl(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=hl(t);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var a=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),r=i(document.getElementById(a));if(r.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),r.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var o=s.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")}t.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),t.closest(".tabs-menu").find("a").attr("aria-selected","false"),t.attr("aria-selected","true"),t.trigger("tabSelect",{tab:t,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e)}}function gl(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function ml(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function vl(e){Cl.change(i(e.target).closest("a")),e&&e.preventDefault()}function bl(e){e.forEach(function(e,t){!function(e,t){var n=i(e),s=n.find(".tabs-menu").first(),a=s.find("li:not(.aui-tabs-responsive-trigger-item)"),r=s.find(".aui-tabs-responsive-trigger").parent(),o=r.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=pl.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(r=pl.createResponsiveDropdownTrigger(s,t),c=pl.createResponsiveDropdown(n,t)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),o.attr("id","aui-tabs-responsive-trigger-"+t),o.attr("href","#aui-tabs-responsive-trigger-"+t),c.attr("id","aui-tabs-responsive-dropdown-"+t),d){var h=pl.moveVisibleTabs(a.toArray(),n,r),p=pl.totalVisibleTabWidth(h),f=n.outerWidth()-p-r.outerWidth(!0);if(f>0){var g=c.find("li");pl.moveInvisibleTabs(g.toArray(),f,r)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",vl),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each(function(){pl.moveTabOutOfDropdown(i(this),r)}),pl.removeResponsiveDropdown(c,r))}(e,t)})}function yl(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function wl(e){var t=i(e);if(e.setAttribute("role","application"),!t.data("aui-tab-events-bound")){var n=t.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each(function(){var e,t,n;t=i(e=this),n=hl(t),dl(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(ol(t),t.attr("role","tab"),i(n).attr("aria-labelledby",t.attr("id")),t.parent().hasClass("active-tab")?t.attr("aria-selected","true"):t.attr("aria-selected","false")):g("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",e)}),n.on("click.aui-tabs","a",vl),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(xl)}(e)}}function _l(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each(function(){wl(this)}),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(gl(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(ml(n));if(a){var r=s.querySelector(`a[href$="${a}"]`);r&&fl(r)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function xl(e){e.setAttribute("role","tabpanel")}var Cl={setup:function(){!function(){const e=(0,pt.debounce)(bl,200);e(yl()),i(window).on("resize.aui-tabs",()=>e(yl()))}(),_l(),i(".aui-tabs.vertical-tabs").find("a").each(function(){var e=i(this);e.attr("title")||cl(e)&&e.attr("title",e.text())})},change:function(e){var t=e instanceof HTMLElement||e instanceof i?e:document.querySelector(e),n=i(t).first(),s=n.closest(".aui-tabs");fl(n),gl(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=dl(e);i&&window.localStorage.setItem(ml(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(Cl.setup);const kl=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),wl(e)},template:ul('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(e){var t=i(function(e){return e.querySelectorAll("aui-tabs-pane")}(this)).index(e);return t>-1&&Cl.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),Tl=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:ul('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),Al=Z("aui-tabs-pane",{attached:function(e){var t=i(function(e){return i(e).closest("aui-tabs").get(0)}(e)),n=i(e),s=t.find("aui-tabs-pane").index(n),a=new Tl,r=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),ul.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&r.addClass("active-tab"),n.siblings("ul").append(a)},template:ul("<content></content>")});l("tabs",Cl);const El="_aui-form-notification-initialised",Dl="description",Sl="errors",Ml="data-aui-notification-",Il=Ml+"wait",Nl=Ml+"info",Ol=Ml+"error",Ll=[Ol,Ml+"success",Il,Nl];function Pl(e){Rl(e)||(!function(e){e.addClass(El),$l(e)}(e),Fl(e))}function Rl(e){return e.hasClass(El)}function $l(e,t){if(t=t||jl(e),zl(e)===Nl){e.parent().find(".description").length||e.after(function(e,t){const i=e.attr("id")||e.attr("name");if(t.length>1){let e=t.map(e=>`<li>${e}</li>`).join("");return`<div class="description" id="${i}-${Dl}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${Dl}">${t}</div>`}(e,t))}Hl(e)}function jl(e){var t=zl(e),i=t?e.attr(t):"";return""===i?i:function(e){var t;try{t=JSON.parse(e)}catch(i){t=[e]}return t}(i)}function zl(e){let t;return Ll.some(function(i){if(e.is("["+i+"]"))return t=i,!0}),t}function Fl(e){const t=i(e);if(!Rl(t))return;const n=zl(t);Wl(t,n===Il);const s=jl(t);s&&n===Ol?Bl(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(Ol)||t.parent().find(".error").remove()}function Hl(e){const t=[],i=e.attr("id")||e.attr("name"),n=zl(e);jl(e)&&n===Ol&&t.push(`${i}-${Sl}`),Ul(e,"description").length&&t.push(`${i}-${Dl}`);const s=function(e){const t={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(t))if(e.is(i)){const t=e.find(n);if(t.length)return t}return e}(e);s.attr("aria-describedby",t.length?t.join(" "):null)}function Bl(e,t){let i=Ul(e,"error");i.length>0&&i.remove(),e.after(function(e,t){const i=e.attr("id")||e.attr("name"),n=t.map(e=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${e}</li>`).join("");return`<div class="error" role="alert" id="${i}-${Sl}"><ul>${n}</ul></div>`}(e,t)),Hl(e)}function Ul(e,t){return e.parent().find(`.${t}`)}function Wl(e,t){t&&!function(e){return e.next("aui-spinner").length>0}(e)?e.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):e.parent().find("aui-spinner").remove()}const Vl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){Vl(),Pl(i(e))},attributes:function(){const e={};return Ll.forEach(function(t){e[t]=Fl}),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Yl=["displayfield","watchfield","when","novalidate","state"],ql=[];var Kl={register:function(e,t){var n;if("string"==typeof e)n=e;else{var s=function(e){var t=!1;return e.some(function(e){var n=-1!==i.inArray(e,Yl);return n&&(t=e),n}),t}(e);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+e.join("],[data-aui-validation-")+"]"}var a={validatorFunction:t,validatorTrigger:n};return ql.push(a),a},validators:function(){return ql}};G("aui/form-validation/validator-register",Kl);const Ql=Kl;function Gl(e){var t=e.el.value.length;let i=0===t;var n=parseInt(e.args("minlength"),10),s=parseInt(e.args("maxlength"),10);if(n&&s&&n===s&&!i&&t!==n){const t=ic("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=ic("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=ic("maxlength",e.args);e.invalidate(t)}else e.validate()}function Zl(e){return"password"===e.getAttribute("type")}function Jl(e,t){var i=e.match(t);return!!i&&e===i[0]}function Xl(e){var t=ic("pattern",e.args);Jl(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function ec(e){var t=ic("required",e.args);e.el.value?e.validate():e.invalidate(t)}function tc(e){var t=ic("validnumber",e.args),i=parseInt(e.el.value,10);if(isNaN(i))e.invalidate(t);else{var n=e.args("min"),s=e.args("max");n&&i<parseInt(n,10)?e.invalidate(ic("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(ic("max",e.args)):e.validate()}}function ic(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:nc[e];var s=i;i||(s=[t(e)]);var a,r=t(e+"-msg");return a=r?[r].concat(s):[n].concat(s),AJS.format.apply(null,a)}Ql.register(["maxlength","minlength"],Gl),Ql.register("[maxlength],[minlength]",Gl),Ql.register(["matchingfield"],function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=ic("matchingfield",e.args,[t,n]);(Zl(e.el)||Zl(i))&&(s=ic("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()}),Ql.register(["doesnotcontain"],function(e){var t=ic("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),Ql.register(["pattern"],Xl),Ql.register("[pattern]",Xl),Ql.register(["required"],ec),Ql.register("[required]",ec),Ql.register(["min","max"],tc),Ql.register("[min],[max]",tc),Ql.register(["dateformat"],function(e){var t=e.args("dateformat"),i=ic("dateformat",e.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)"},s=t.split(""),a="";s.forEach(function(e){var t=n.hasOwnProperty(e);a+=t?n[e]:e});var r=new RegExp(a+"$","i");Jl(e.el.value,r)?e.validate():e.invalidate(i)}),Ql.register(["minchecked","maxchecked"],function(e){var t=i(e.el).find(":checked").length,n=!e.args("minchecked")||t>=e.args("minchecked"),s=!e.args("maxchecked")||t<=e.args("maxchecked"),a=ic("minchecked",e.args),r=ic("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(r):e.invalidate(a)});var nc={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")};G("aui/form-validation/basic-validators");const sc="aui-validation-",ac="data-aui-notification-",rc="aui-validation-state",oc="invalid",lc="valid",cc="validating",uc="unvalidated",dc="_aui-form-validation-initialised",hc="_aui-internal-field-state-changed";function pc(e){(function(e){return e.hasClass(dc)})(e)||(!function(e){e.addClass(dc),$l(e)}(e),function(e){(function(e){var t,i=function(){e.trigger("aui-stop-typing")};e.on("keyup",function(){clearTimeout(t),t=setTimeout(i,1500)})})(e),function(e){var t=gc(e,"when"),i=gc(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,function(){fc(e)})}(e)}(e),bc(e,uc))}function fc(e){if(!gc(e,"novalidate"))return function(e){!function(e){yc(_c(e),"none")}(e);var t=function(e){var t=[];return mc().forEach(function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)}),t}(e);bc(e,cc);var n=function(e,t){var n=[];return t.forEach(function(t){var s=mc()[t].validatorFunction,a=new i.Deferred,r=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){bc(e,oc,i),t.reject()},args:vc(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"10.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a);s(r),n.push(a)}),n}(e,t),s=i.when.apply(i,n);return s.done(function(){bc(e,lc)}),s}(e);bc(e,lc)}function gc(e,t){var i=e.attr("data-"+sc+t);return i||(i={when:"change"}[t]),i}function mc(){return Ql.validators()}function vc(e){return function(t){return e.attr("data-"+sc+t)||e.attr(t)}}function bc(e,t,n){if(e.attr("data-"+rc,t),e.attr("aria-invalid",!1),t!==uc){e.trigger(i.Event(hc));var s=_c(e),a={};a[cc]="wait",a[oc]="error",a[lc]="success";var r=a[t];t===cc?function(e){setTimeout(function(){xc(e)===cc&&(yc(e,"wait"),Wl(e,!0))},500)}(e):yc(s,r,n),t===oc&&e.attr("aria-invalid",!0)}}function yc(e,t,i){const n=function(e){return e.is("["+ac+"wait]")}(e);!function(e){wc(e,"wait"),Wl(e,!1),wc(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)wc(e,"error");else{const n=e.attr(ac+t)||"[]",r=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr(ac+t,JSON.stringify(r)),"error"===t&&Bl(e,r)}}function wc(e,t){e.removeAttr(ac+t),"error"===t&&(Ul(e,t).remove(),Hl(e))}function _c(e){var t=gc(e,"displayfield");return void 0===t?e:i("#"+t)}function xc(e){return e.attr("data-"+rc)}function Cc(e,t){t.preventDefault(),e.one(hc,function(){e.trigger("submit")})}function kc(e,t){var i="[data-"+rc+"="+t+"]";return e.find(i)}i(document).on("submit",function(e){var t=e.target,n=i(t),s=function(e){var t=e.find("."+dc);return o=t,n=i.map(o,function(e){return xc(i(e))}),s=-1!==n.indexOf(oc),a=-1!==n.indexOf(uc),r=-1!==n.indexOf(cc),s?oc:a?uc:r?cc:lc;var n,s,a,r;var o}(n);if(s===uc)Cc(n,e),function(e){var t=kc(e,uc);t.each(function(e,t){Tc.validate(i(t))})}(n);else if(s===cc)Cc(n,e);else if(s===oc)e.preventDefault(),function(e){var t=kc(e,oc).first();t.focus()}(n);else if(s===lc){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}});const Tc={register:Ql.register,validate:function(e){fc(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),pc(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",Tc),l("formValidation",Tc);var Ac=P(function(e,t){var i,n;return function(){var s=arguments,a=this;return clearTimeout(i),i=setTimeout(function(){n=e.apply(a,s),a=s=null},t),n}},"AJS.debounce",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const Ec=Ac;l("debounce",Ac),l("debounceImmediate",P(function(e,t){var i,n=null;return function(){var s=this,a=arguments;return null===n&&(i=e.apply(s,a)),clearTimeout(n),n=setTimeout(function(){n=s=a=null},t),i}},"AJS.debounceImmediate",{removeInVersion:"10.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const Dc=i(window);function Sc(e){var t,n=this;this.element=e,this.$element=i(e),this.index=i("aui-header, .aui-header").index(e),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=(t=i(n.$element[0].querySelector(".aui-header-primary")),function(e){return t.find(e)})}Sc.prototype={init:function(){var e=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each(function(){e.primaryButtonsWidth+=i(this).outerWidth(!0)}),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each(function(){var t=i(this).parent(),n=t.outerWidth(!0);e.totalWidth+=n,e.menuItems.push({$element:t,outerWidth:n})}),this.rightMostNavItemIndex=this.menuItems.length-1,Dc.on("resize",this._resizeHandler=Ec(function(){e.constructResponsiveDropdown()},100));var t=this.$applicationLogo.find("img");0!==t.length&&(t.attr("data-aui-responsive-header-index",this.index),t.on("load",function(){e.constructResponsiveDropdown()})),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){Dc.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 e,t=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(t>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),e=t-this.moreMenuWidth;for(var i=-1;e-this.menuItems[i+1].outerWidth>=0;)e-=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 e=document.createElement("li"),t=document.createElement("aui-dropdown-menu");t.id=`aui-responsive-header-dropdown-${this.index}`,Z.init(t);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,Z.init(n),t.appendChild(n);var s=function(e){var t=document.createElement("a");return t.setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=I18n.getText("aui.words.more"),t}(t);return e.appendChild(s),e.appendChild(t),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(e):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(e),this.moreMenuWidth=i(e).outerWidth(!0),i(e)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+e,a=n;a<=s;a++){var r=this.menuItems[a].$element,o=r.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),r.append(l)}t.find("aui-item-link:first").remove(),r.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=Ye().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var r=this.menuItems[a].$element,o=r.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=i(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 e=Array.from(o.get(0).classList).filter(e=>!e.startsWith("aui-"));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),Ye().wrap(l).textContent=o.text(),r.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new ve("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:r[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const Mc=function(e){let t=e._header;return t instanceof Sc||(t=new Sc(e),t.init(),e._header=t),t};function Ic(){i(".aui-header").each(function(){Mc(this)})}i(Ic);const Nc={};Nc.setup=P(Ic,"responsiveheader.setup",{removeInVersion:"10.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",Nc);const Oc=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?Mc(t):console.log("Could not async. initialise aui-header")}});var Lc=a(253),Pc=a.n(Lc);const Rc=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:a,onChangeMonthYear:r})=>({dateFormat:i,defaultDate:n.val(),maxDate:t||n.attr("max"),minDate:e||n.attr("min"),nextText:">",onSelect:function(e){n.val(e),n.trigger("change"),a(),s&&s.call(this,e)},onChangeMonthYear:r,prevText:"<"}),$c=(e,t)=>{let n,s,a,r=!1;const o=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),o=n.closest(".ui-datepicker-header").length;if(!a&&!o||t.keyCode===Q.ESCAPE)return h(),void(r=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{r||(o.on("focus blur click mousedown","*",l),r=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{const n=new zo;n.id=t;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${e}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(e=>e.offset().left<window.innerWidth/2?"left":"right")(e),datePickerUUID:t}),a=e.closest("aui-inline-dialog").get(0),a&&(a._datePickerPopup=n,i(a).on("aui-hide",e=>{r&&e.preventDefault(),o.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._datePickerPopup})),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),e.off("focus click",u),e.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),e.on("focusout keydown",c)}}},jc=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:r,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=$c(t,s),g=e=>{i(e.currentTarget).val()&&a.datepicker("setDate",t.val())},m=t.attr("placeholder"),v=t.prop("type");let b;{const i=e=>t=>{if(void 0!==a)return e(t)},n=i(()=>{a.datepicker("destroy")});e.show=l,e.hide=c,e.destroyPolyfill=()=>{h(),t.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&t.attr("placeholder",m),v&&t.prop("type",v),t.removeAttr("data-aui-dp-uuid"),n(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=i(e=>{a.datepicker("setDate",e)}),e.getDate=i(()=>a.datepicker("getDate")),e.setMin=i(e=>a.datepicker("option","minDate",e)),e.setMax=i(e=>a.datepicker("option","maxDate",e))}n.languageCode in zc.prototype.localisations||(n.languageCode="");const y=zc.prototype.localisations;if(t.attr("aria-controls",s),void 0===a){void 0!==t.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=Rc({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let r;return a.datepicker(e),s&&(r=i("<div/>").addClass("aui-datepicker-hint"),r.append("<span/>").text(s),t.append(r)),a})({config:o,popupContents:r({$field:t}),getCalendarNode:d,hint:n.hint}),p(),t.on("propertychange keyup input paste",g),b=new MutationObserver(function(t){t.forEach(function(t){"min"===t.attributeName?e.setMin(t.target.getAttribute("min")):"max"===t.attributeName&&e.setMax(t.target.getAttribute("max"))})}),b.observe(t.get(0),{attributes:!0})}t.on("focus click",o),t.attr("placeholder",n.placeholder),"text"!==t.prop("type")&&(t.prop("type","text"),t.val(t.attr("value"))),t.trigger("propertychange"),t.attr("data-aui-dp-uuid",s)};function zc(e,t){let n={};const s=gn("date-picker"),a=i(e),r={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof r.destroyPolyfill&&r.destroyPolyfill()},reset:()=>{r.destroy();const e=!zc.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&jc(r)},reconfigure:e=>{n=i.extend(void 0,zc.prototype.defaultOptions,e),r.reset()}};return r.reconfigure(t),r}function Fc(e,t){const n=i.extend({nextText:">",prevText:"<"},t),s=i(e).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const e=i("<div/>").addClass("aui-datepicker-hint");e.append("<span/>").text(n.hint),s.append(e)}return s.reconfigure=e=>{s.datepicker("destroy"),s.datepicker(e)},s.destroy=()=>{s.datepicker("destroy")},s}zc.prototype.browserSupportsDateField=function(){if(void 0===Nt){var e=document.createElement("input");e.setAttribute("type","date"),Nt="date"===e.type}return Nt}(),zc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:Pc().W3C},zc.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")},"ajs.datepicker.localisations.year-suffix"===zc.prototype.localisations.yearSuffix&&(zc.prototype.localisations.yearSuffix="");const Hc="aui-datepicker",Bc=e=>function(t){let i=this.data(Hc);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(Hc,i)),i};i.fn.datePicker=Bc(zc),l("DatePicker",zc),i.fn.calendarWidget=Bc(Fc),l("CalendarWidget",Fc);const Uc=zc;a(746),a(229),a(228),a(132),a(903);const Wc={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"},Vc=Er().View,Yc=Er().View,qc=Er().View,Kc={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(682);const Qc={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"},Gc='<aui-spinner size="small"></aui-spinner>',Zc="aui-spinner";function Jc(e){0===e.find(Zc).length&&e.find(`.${Wc.STATUS}`).append(Gc)}function Xc(e){e.find(`.${Wc.STATUS} ${Zc}`).remove()}var eu=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const tu=Er().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Qc,this.classNames=Wc,this.dataKeys=Kc,this.columns=e.columns,this.isCreateRow=e.isCreateRow,this.allowReorder=e.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),e.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=e.model,this.model=new this._modelClass),this.fieldFocusSelector=e.fieldFocusSelector,this.on(this._event.CANCEL,()=>{this.isCreateRow||(this.disabled=!0)}).on(this._event.SAVE,e=>!this.disabled&&this.submit(e)).on(this._event.FOCUS,e=>this.focus(e)).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(e){return!1!==e.allowEdit?i("<input type='text' />").addClass("text").attr({name:e.name,value:e.value,"aria-label":e.ariaLabel}):e.value?document.createTextNode(e.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(e){27===e.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(e){return this.trigger(this._event.CANCEL),e.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(e){return this.hasFocus()||this.trigger(this._event.FOCUS,e.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(e){var t,i;return this.enable(),t=e?this.$el.find(this.fieldFocusSelector(e)):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),t.focus().trigger("select"),this},disable:function(){var e,t;return eu&&(t=this.$el.find(":submit")).length&&(e=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(t.attr("class")).val(t.val()).data(this.dataKeys.ENABLED_SUBMIT,t),t.replaceWith(e)),this.$el.addClass(this.classNames.DISABLED).find(":submit").prop("disabled",!0),this},enable:function(){var e,t;return eu&&(t=(e=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&e.length&&e.replaceWith(t),this.$el.removeClass(this.classNames.DISABLED).find(":submit").prop("disabled",!1),this},showLoading:function(){return Jc(this.$el),this},hideLoading:function(){return Xc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var e=this.$el;return e.serializeObject?e.serializeObject():e.serialize()},mapSubmitParams:function(e){return this.model.changedAttributes(e)},submit:function(e){var t,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,e):(n.trigger(n._event.CREATED,n.model.toJSON()),n.model=new n._modelClass,n.render({errors:{},values:{}}),n.trigger(n._event.FOCUS)),n.trigger(n._event.SUBMIT_FINISHED)},error:function(e,t,i){400===i.status&&(n.renderErrors(t.errors),n.trigger(n._event.VALIDATION_ERROR,t.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return i("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&i.each(e,function(e,i){t.$el.find("[name='"+e+"']").closest("td").append(t.renderError(e,i))}),this},render:function(e){var t=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),i.each(this.columns,function(n,s){var a,r,o=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},e.values,t.model];o&&t.$el.attr("data-"+s.id,o),a=t.isCreateRow&&s.createView?new s.createView({model:t.model}).render(l[0]):s.editView?new s.editView({model:t.model}).render(l[0]):t.defaultColumnRenderer.apply(t,l),r=i("<td />"),"object"==typeof a&&a.done?a.done(function(e){r.append(e)}):r.append(a),s.styleClass&&r.addClass(s.styleClass),r.appendTo(t.$el)}),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=i('<td class="aui-restfultable-operations" />');return e?t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.update")})).append(i('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(I18n.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),t.add(i(`<td class="${this.classNames.STATUS}" />`))}}),iu=document||{},nu=i(iu);function su(e,t){nu.trigger(e,t)}function au(e,t,n){i(t).trigger(e,n),su(e,n),t.id&&su(t.id+"-"+e,n)}var ru=Er().Model.extend({sync:function(e,t,i){var n=this,s=i.error;return i.error=function(e){n._serverErrorHandler(e,this),s&&s.apply(this,arguments)},Er().sync.apply(Er(),arguments)},save:function(e,t){var n,s=this,a=(t=t||{}).error,r=t.success;t.error=function(e,t){var n=i.parseJSON(t.responseText||t.data);a&&a.call(s,s,n,t)},this.isNew()?Er().Model.prototype.save.call(this,e,t):e&&((n=new(ru.extend({url:this.url()}))({id:this.id})).save=Er().Model.prototype.save,t.success=function(e,t){s.clear().set(e.toJSON()),r&&r.call(s,s,t)},n.save(e,t))},destroy:function(e){e=e||{};var t=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:e.data||{},contentType:"application/json",success(i){t.collection&&t.collection.remove(t),e.success&&e.success.call(t,i)},error(i){t._serverErrorHandler(i,this),e.error&&e.error.call(t,i)}}),this},changedAttributes:function(e){var t={},n=this.toJSON();if(i.each(e,function(e,s){n[e]?n[e]&&n[e]!==s&&("object"==typeof s&&(0,pt.isEqual)(s,n[e])||(t[e]=s)):"string"==typeof s?""!==i.trim(s)&&(t[e]=s):i.isArray(s)?0!==s.length&&(t[e]=s):t[e]=s}),!(0,pt.isEmpty)(t))return this.addExpand(t),t},addExpand:function(e){},_serverErrorHandler:function(e,t){var n;400!==e.status&&(n=i.parseJSON(e.responseText||e.data),au(Qc.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),Er().Model.prototype.fetch.call(this,e)}});const ou=ru,lu=Er().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Qc,this.classNames=Wc,this.dataKeys=Kc,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.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=e.index||0,this.deleteConfirmationCallback=e.deleteConfirmationCallback,this.allowReorder=e.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,()=>this.disabled=!0).on(this._event.FOCUS,e=>this.focus(e)).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(e){if(e.value)return document.createTextNode(e.value.toString())},sync:function(e){var t=this;return this.model.addExpand(e),this.showLoading(),this.model.save(e,{success:function(){t.hideLoading().render(),t.trigger(t._event.UPDATED)},error:function(){t.hideLoading()}}),this},refresh:function(e,t){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),e&&e.apply(this,arguments)},error:function(){i.hideLoading(),t&&t.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return Jc(this.$el),this},hideLoading:function(){return Xc(this.$el),this},edit:function(e){var t;return t=i(e.target).is("."+this.classNames.EDITABLE)?i(e.target).attr("data-field-name"):i(e.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,t),this},renderOperations:function(){var e=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",function(t){t.preventDefault(),e.destroy()})},destroy:function(){if(this.deleteConfirmationCallback){let e=this.deleteConfirmationCallback(this.model.toJSON());if(!e||!e.then)throw new Error("deleteConfirmationCallback needs to return a Promise");e.then(()=>this.model.destroy(),()=>{})}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),s=i(`<td class="${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&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,function(n,s){var a,r=i("<td />"),o=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},t,e.model];if(o&&e.$el.attr("data-"+s.id,o),a=s.readView?new s.readView({model:e.model}).render(c[0]):e.defaultColumnRenderer.apply(e,c),!1!==e.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(a).attr("data-field-name",l);r=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(r.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else r.append(a);s.styleClass&&r.addClass(s.styleClass),r.appendTo(e.$el)}),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,t),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var cu=Er().View.extend({initialize:function(e){var t=this;if(t.options=i.extend(!0,t._getDefaultOptions(e),e),t.id=this.options.id,t._event=Qc,t.classNames=Wc,t.dataKeys=Kc,this.$table=i(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=i("<thead/>"),this.$theadRow=i("<tr />").appendTo(this.$thead),this.$tbody=i("<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(e){var n=i.isFunction(e.header)?e.header():e.header;void 0===n&&(g("You have not specified [header] for column ["+e.id+"]. Using id for now..."),n=e.id),t.$theadRow.append("<th>"+n+"</th>")}),t.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit(function(e){t.focusedRow&&t.focusedRow.trigger(t._event.SAVE),e.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(e,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(t.classNames.MOVEABLE);return n.children().each(function(){var e=i(this),t=parseInt(0+e.css("border-left-width"),10),n=parseInt(0+e.css("border-right-width"),10),a=e[0].clientWidth+t+n;s.append(i("<div/>").html(e.html()).attr("class",e.attr("class")).width(a))}),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(e,n){var s=n.helper[0].clientHeight,a=n.placeholder.find("td");n.item.addClass(t.classNames.MOVEABLE).children().each(function(e){i(this).width(a.eq(e).width())});var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(r).css({height:s,visibility:"visible"}),t.getRowFromElement(n.item[0]).trigger(t._event.MODAL)},stop:function(e,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(n.item[0]).trigger(t._event.MODELESS))},update:function(e,i){var n={row:t.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};t.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",function(e){return!i(e.target).is("."+t.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 t.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(e){void 0===t.options.addPosition&&"bottom"===t.options.createPosition||"bottom"===t.options.addPosition?t.addRow(e):t.addRow(e,0)}),this._createRow.on(this._event.VALIDATION_ERROR,function(){this.trigger(t._event.FOCUS)}),this._createRow.render({errors:{},values:{}}),this.$create=i('<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(e){t.getRows().forEach(function(i){i.model===e&&(i.hasFocus()&&t._createRow&&t._createRow.trigger(t._event.FOCUS),t.removeRow(i))})}),this.fetchInitialResources()},fetchInitialResources:function(){var e=this;i.isFunction(this.options.resources.all)?this.options.resources.all(function(t){e.populate(t)}):i.get(this.options.resources.all,function(t){e.populate(t)})},move:function(e){var t=this,n=function(e){return e.length?{after:t.getRowFromElement(e).model.url()}:{position:"First"}};if(e.row){var s=t.options.reverseOrder?n(e.nextItem):n(e.prevItem);i.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){e.row.hideLoading()},success:function(e){au(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var n=i.parseJSON(e.responseText||e.data);au(t._event.SERVER_ERROR,t,[n,e,this])}}),e.row.showLoading()}},_createCollection:function(){var e=this;return new(this.options.Collection.extend({sort:function(t){if(t||(t={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=e.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,t.silent||this.trigger("refresh",this,t),this},remove:function(...t){return this.tableRows=e.getRows(),Er().Collection.prototype.remove.apply(this,t),this.tableRows=void 0,this}}))([],{comparator:function(t){var i;return(this&&void 0!==this.tableRows?this.tableRows:e.getRows()).some(function(e,n){if(e.model.id===t.id)return i=n,!0}),i}})},populate:function(e){this.options.reverseOrder&&e.reverse(),this.hideGlobalLoading(),e&&e.length?(this._models.reset([],{silent:!0}),this.renderRows(e),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]),au(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=i('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+Gc+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(e,t){var i,n;if(!e.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(e));return n=new this.options.model(e),i=this._renderRow(n,t),this._models.add(n),this.removeNoEntriesMsg(),au(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),au(this._event.ROW_REMOVED,this,[e,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 e=2;return this.allowReorder&&++e,this.options.columns.length+e},getRowFromElement:function(e){return i(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=i("<tr>").addClass(this.classNames.NO_ENTRIES).append(i("<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 e=this,t=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var n=i(this).data(e.dataKeys.ROW_VIEW);n&&t.push(n)}),t},_renderRow:function(e,t){var i,n,s=this,a=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:e,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(e){au(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)}),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==a.length?i.insertBefore(a[t]):this.$tbody.append(i)),i.data(this.dataKeys.ROW_VIEW,n),n.on(this._event.MODAL,function(){s.$table.removeClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("disable"),s.getRows().forEach(function(e){s.isRowBeingEdited(e)||e.delegateEvents({})})}),n.on(this._event.MODELESS,function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach(function(e){s.isRowBeingEdited(e)||e.delegateEvents()})}),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(e){var t=!1;return this.editRows.some(function(i){if(i.el===e.el)return t=!0,!0}),t},_applyFocusCoordinator:function(e){var t=this;return e.hasFocusBound||(e.hasFocusBound=!0,e.on(this._event.FOCUS,function(){t.focusedRow&&t.focusedRow!==e&&t.focusedRow.trigger(t._event.BLUR),t.focusedRow=e,e instanceof lu&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){var t=i.inArray(e,this.editRows);return this.editRows.splice(t,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(e){e.hasUpdates()||e.trigger(this._event.FINISHED_EDITING)},this)},edit:function(e,t){var i=this,n=new this.options.views.editRow({el:e.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:e.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=e.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,function(t,n){i._removeEditRow(this),this.off(),e.render().delegateEvents(),e.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),e.render().delegateEvents(),this.off()}).on(i._event.CANCEL,function(){i._removeEditRow(this),this.off(),e.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,t),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(e=[]){var t=this._models.comparator,i=[];this._models.comparator=void 0;var n=e.map(e=>{var t=new this.options.model(e);return i.push(this._renderRow(t,-1).el),t});return this._models.add(n,{silent:!0}),this._models.comparator=t,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(e){return{model:e.model||ou,allowEdit:!0,views:{editRow:tu,row:lu},Collection:Er().Collection.extend({url:e.resources.self,model:e.model||ou}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});cu.ClassNames=Wc,cu.CustomCreateView=Vc,cu.CustomEditView=Yc,cu.CustomReadView=qc,cu.DataKeys=Kc,cu.EditRow=tu,cu.EntryModel=ou,cu.Events=Qc,cu.Row=lu,l("RestfulTable",cu);const uu=cu;function du(e){return i(e).clone().removeAttr("id")}l("clone",du);const hu=du;var pu=window.DocumentTouch;const fu="ontouchstart"in window||pu&&document instanceof pu;function gu(e,t,i,n){e.find(`[${n}]`).attr(n,(e,n)=>t===n?i:void 0)}function mu(e,t){let n=i("<div></div>");n.append(e),n.find("[id]").each((e,i)=>{const s=t(`${i.id}-`);!function(e,t,i){gu(e,t,i,"aria-controls"),gu(e,t,i,"aria-owns")}(n,i.id,s),i.id=s})}function vu(e){return e.offset().top}function bu(e){this.$el=i(e),this.$el.length&&(this.$body=i("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 xu,function(e){if(!i(".aui-sidebar").length)return;(function(e){e.$el.on("mouseenter mouseleave click focus",e.collapsedTriggersSelector,function(t){const n=i(t.target);Eu(e,n)})})(e),fu&&function(e){if(window.matchMedia)return window.matchMedia(e).matches;var t=document.createElement("style");t.type="text/css",t.id="testMedia",t.innerText=`@media ${e} { #testMedia { width: 1px; } }`,document.head.appendChild(t);var i="1px"===window.getComputedStyle(t,null).width;return t.parentNode.removeChild(t),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var t=null,n=function(){null===t&&(t=requestAnimationFrame(function(){e.reflow(),t=null}))};i(window).on("scroll resize",n),n(),e.isAnimated()&&e.$el.on("transitionend webkitTransitionEnd",function(){e.$el.trigger(i.Event(yu+(e.isCollapsed()?"collapse-end":"expand-end")))});e.$el.on("click",".aui-sidebar-toggle",function(t){t.preventDefault(),e.toggle()}),i(".aui-page-panel").on("click",function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()});var s=function(t){r(t)&&e.toggle()};function a(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function r(e){return!(e.which!==Q.LEFT_SQUARE_BRACKET||e.shiftKey||e.ctrlKey||e.metaKey||(t=e.target,"value"in t||t.isContentEditable));var t}function o(e){return e.keyCode===Q.TAB&&e.shiftKey}function l(e,t){return e===t.find(":aui-tabbable")[0]}function c(e,t){return e===t.find(":aui-tabbable").last()[0]}function u(e){e.attr("persistent",""),e.find(":aui-tabbable").first().focus(),setTimeout(function(){e.removeAttr("persistent")},100)}i(document).on("keypress",s),e._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},e.$el.on("touchend",function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())}),e.$el.tooltip({...Su,live:e.collapsedTriggersSelector,suppress:function(){const t=i(this),n=!1===e.isCollapsed();return!0===Tu(t)||n}}),e.$el.tooltip({...Su,aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}}),e.$el.on("keydown",e.collapsedTriggersSelector,function(t){if(e.isCollapsed()){var n=t.target,s=ku(n);if(!s)return;var r=i(s);a(t)&&s.open&&(t.preventDefault(),u(r),r.on("keydown",function(e){(o(e)&&l(e.target,r)||a(e)&&c(e.target,r))&&(n.focus(),i(this).off("keydown"),Au())}))}})}(this),function(e){i(e.collapsedTriggersSelector).each(function(){var t=i(this);Eu(e,t)})}(this))}var yu="_aui-internal-sidebar-";function wu(e){return i.map(e.split(" "),function(e){return yu+e}).join(" ")}function _u(){return document.querySelectorAll(bu.prototype.inlineDialogSelector)}function xu(){this.inlineDialog=null}function Cu(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function ku(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function Tu(e){return 0!==Cu(e).length}function Au(){var e=_u();Array.prototype.forEach.call(e,function(e){e.open=!1})}function Eu(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),Tu(t))){var n=document.createElement("aui-inline-dialog"),s=gn("sidebar-submenu");return t.attr("aria-controls",s),t.attr("data-aui-trigger",""),Z.init(t),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),e.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(bu.prototype.inlineDialogClass),document.body.appendChild(n),Z.init(n),function(e,t,n){n.addEventListener("aui-layer-show",function(s){if(e.isCollapsed()){if(!function(e){return"AUI-INLINE-DIALOG"!==e.target.tagName}(s)&&!function(e){return!e.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var a=i.Event("aui-sidebar-submenu-before-show");t.trigger(a,n),a.isDefaultPrevented()?s.preventDefault():function(e,t){e.addClass("active"),t.innerHTML=Du;var n=e.is("a")?e.text():e.children(".aui-nav-heading").text(),s=i(t).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var a=Cu(e);function r(e){const t=hu(e);return mu(t,gn),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}r(a).appendTo(s)}(t,n)}}else s.preventDefault()}),n.addEventListener("aui-layer-hide",function(){!function(e){e.removeClass("active")}(t)})}(e,t,n),n}}bu.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=wu(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},bu.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=wu(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},bu.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},bu.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>vu(this.$el)),this},bu.prototype.setPosition=P(bu.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"10.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),bu.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},bu.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:i.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:i.noop,wide:i.noop},t.expanded.narrow={narrow:i.noop,wide:function(e){e.$body.removeClass("aui-sidebar-collapsed"),e.$el.removeClass("aui-sidebar-fly-out")}},t.expanded.wide={narrow:function(e){e._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",a=this.isViewportNarrow(e)?"narrow":"wide";return t[n][s][a](this),this},bu.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(yu+"collapse-start",{isResponsive:e});return this.$el.trigger(t),t.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),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(yu+"collapse-end",{isResponsive:e}))),this},bu.prototype.collapse=function(){return this._collapse(!1)},bu.prototype._expand=function(e,t){var n=i.Event(yu+"expand-start",{isResponsive:t});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",s),this.$el.toggleClass("aui-sidebar-fly-out",s),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),i(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(i.Event(yu+"expand-end",{isResponsive:t})),this},bu.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},bu.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},bu.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},bu.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},bu.prototype.responsiveReflow=function(e,t){if(e){if(!this.isCollapsed()&&this.isViewportNarrow(t)){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 t!==this._previousViewportWidth&&this.setCollapsedState(t)},bu.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=vu(this.$el),r=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!r&&l||(this.setHeight(e,t,a),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(r,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=a,this._previousScrollLeft=s,this},bu.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},bu.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",bu.prototype.collapsedTriggersSelector=[bu.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),bu.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",bu.prototype.tooltipClassName="aui-sidebar-section-tooltip",bu.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",bu.prototype.inlineDialogSelector="."+bu.prototype.inlineDialogClass,xu.prototype.submenu=function(e){return Iu(),Cu(e)},xu.prototype.hasSubmenu=function(e){return Iu(),Tu(e)},xu.prototype.submenuHeadingHeight=function(){return Iu(),34},xu.prototype.isShowing=function(){return Iu(),bu.prototype.isSubmenuVisible()},xu.prototype.show=function(e,t){Iu(),function(e){ku(e).open=!0}(t)},xu.prototype.hide=function(){Iu(),Au()},xu.prototype.inlineDialogShowHandler=function(){Iu()},xu.prototype.inlineDialogHideHandler=function(){Iu()},xu.prototype.moveSubmenuToInlineDialog=function(){Iu()},xu.prototype.restoreSubmenu=function(){Iu()},bu.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(_u(),function(e){return e.open})},bu.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Du='<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 Su={gravity:"w",title:function(){var e=i(this);return e.is("a")||e.is("button")?e.attr("title")||e.find(".aui-nav-item-label").text()||e.data("tooltip"):e.children(".aui-nav").attr("title")||e.children(".aui-nav-heading").text()}};var Mu=ge("sidebar",bu);i(function(){Mu(".aui-sidebar")});var Iu=O("Sidebar.submenus",{removeInVersion:"10.0.0",sinceVersion:"5.8.0"});l("sidebar",Mu);const Nu=Mu;a(841),a(581);function Ou(e){var t={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===Q.ESCAPE&&n.is(":visible")&&l.hide()}};"object"!=typeof e&&(e={width:arguments[0],height:arguments[1],id:arguments[2]},e=i.extend({},e,arguments[3])),e=i.extend({},t,e);var n=i("<div></div>").addClass("aui-popup");e.id&&n.attr("id",e.id);var s=2600;i(".aui-dialog").each(function(){var e=i(this);s=e.css("z-index")>s?e.css("z-index"):s});var a=function t(i,a){return e.width=i=i||e.width,e.height=a=a||e.height,n.css({marginTop:-Math.round(a/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:a,"z-index":parseInt(s,10)+2}),t}(e.width,e.height);i("body").append(n),n.hide(),h(n);var r=i(".aui-blanket"),o=function(e,t){var n=i(e,t);return!!n.length&&(n.focus(),!0)},l={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&a(t,i),this.show()},show:function(){var t=function(){i(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),V(),0!==(r=i(".aui-blanket")).length&&e.closeOnOutsideClick&&r.on("click",function(){n.is(":visible")&&l.hide()}),n.show(),Ou.current=this,function(t){if(0===i(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return o(e.focusSelector,t);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",t))||o(n,i(".dialog-button-panel",t))||o(n,i(".dialog-page-menu",t))}}(n),i(document).trigger("showLayer",["popup",this])};t.call(this),this.show=t},hide:function(){i(document).unbind("keydown",e.keypressListener),r.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var t=document.activeElement;this.element.has(t).length&&t.blur(),i(document).trigger("hideLayer",["popup",this]),Ou.current=null,this.enable()},element:n,remove:function(){n.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=i("<div class='dialog-blanket'> </div>").css({height:n.height(),width:n.width()}),n.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return l}var Lu=function(){function e(e,t,n,s){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<button></button>").html(t).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function t(e,t,n,s,a){e.buttonpanel||e.addButtonPanel(),a||(a="#"),this.page=e,this.onclick=n,this._onclick=function(t){return!0===n.call(this,e.dialog,e,t)},this.item=i("<a></a>").html(t).attr("href",a).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function n(e,t){var i="left"==e?-1:1;return function(e){var n=this.page[t];if(this.id!=(1==i?n.length-1:0)){i*=e||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 s=0,a=n.length;s<a;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(e){return function(){this.page[e].splice(this.id,1);for(var t=0,i=this.page[e].length;t<i;t++)this.page[e][t].id=t;this.item.remove()}}e.prototype.moveUp=e.prototype.moveLeft=n("left","button"),e.prototype.moveDown=e.prototype.moveRight=n("right","button"),e.prototype.remove=s("button"),e.prototype.html=function(e){return this.item.html(e)},e.prototype.onclick=function(e){let t=this;if(void 0===e)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===e.call(this,t.page.dialog,t.page,i)},"function"==typeof e&&this.item.click(this._onclick)};var a=function(e,t,n,s,a){n instanceof i||(n=i(n)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=i("<button></button>").html(t).addClass("item-button"),a&&(this.button[0].id=a),this.item=i("<li></li>").append(this.button).addClass("page-menu-item"),this.body=i("<div></div>").append(n).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var r=e.panel.length,o=this;e.menu.append(this.item),e.body.append(this.body),e.panel[r]=this;var l=function(){var t;e.curtab+1&&((t=e.panel[e.curtab]).body.hide(),t.item.removeClass("selected"),"function"==typeof t.onblur&&t.onblur()),e.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(o,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==r?e.menu.css("display","none"):e.menu.show()};a.prototype.select=function(){this.button.click()},a.prototype.moveUp=a.prototype.moveLeft=n("left","panel"),a.prototype.moveDown=a.prototype.moveRight=n("right","panel"),a.prototype.remove=s("panel"),a.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},a.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var r=function(e,t){this.dialog=e,this.id=e.page.length,this.element=i("<div></div>").addClass("dialog-components"),this.body=i("<div></div>").addClass("dialog-page-body"),this.menu=i("<ul></ul>").addClass("dialog-page-menu").css("height",e.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],t&&this.body.addClass(t),e.popup.element.append(this.element.append(this.menu).append(this.body)),e.page[e.page.length]=this};function o(e,t,n){var s={};+e||(e=(s=Object(e)).width,t=s.height,n=s.id),this.height=t||480,this.width=e||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=Ou(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new r(this)}return r.prototype.recalcSize=function(){for(var e=this.header?62:0,t=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},r.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},r.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},r.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},r.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},r.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},r.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},r.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},r.prototype.hide=function(){this.element.hide()},r.prototype.show=function(){this.element.show()},r.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},o.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},o.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},o.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},o.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},o.prototype.addPage=function(e){return new r(this,e),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(e){return this.page[this.curpage].hide(),this.curpage=e,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(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},o.prototype.getPage=function(e){return this.page[e]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(e,t){if(null!=t){var i=e.id||e;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===t?e:t)},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(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",a=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(a,function(e,n,s,a,r,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=o)&&n.toLowerCase(),s=l,a=c,r=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),r=r&&(r+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||r)for(var h=d.length;h--;){if(r||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==r||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(r||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==r||d[h].button[p].item.html()==s||"button"==n&&!s&&null==a)&&t.push(d[h].button[p]);d[h][n]&&d[h][n][a]&&t.push(d[h][n][a]),"header"==n&&d[h].header&&t.push(d[h].header)}else t=t.concat(d)});for(var r={length:t.length},o=t.length;o--;)for(var l in r[o]=t[o],t[o])l in r||function(e){r[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return r},o.prototype.updateHeight=function(){for(var e=0,t=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(n).body.outerHeight())),n!==this.page[this.curpage].curtab&&this.getPanel(n).body.css({display:"none"});for(n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();Lu=R(Lu,"Dialog constructor",{alternativeName:"Dialog2"}),Ou=R(Ou,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",Lu),l("popup",Ou);const Pu=!1;var Ru=-1!==navigator.platform.indexOf("Mac"),$u=-1!==navigator.userAgent.indexOf("Safari"),ju=/^(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 zu=e=>{const t=e[0];if(t){const e=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",e,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}};function Fu(e){var t=[],n=i.Callbacks();function s(e){!Ou.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function r(e){(e&&e.split?i.trim(e).split(" "):[e]).forEach(function(e){!function(e){var n=e instanceof Array?e:function(e){var t=[],i="";for(;e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(ju);n?(i+=n[0],e=e.substring(n[0].length)):s?(t.push(i+s[0]),e=e.substring(s[0].length),i=""):(t.push(i+e[0]),e=e.substring(1),i="")}return t}(e.toString()),r=function(e){var t=e.length;for(;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(n)?"keydown":"keypress";t.push(n),i(document).on(r,Pu,n,s),i(document).on(r+" keyup",Pu,n,a)}(e)})}function o(e,t,i,n){var s="(",a=")";return n&&n.workaroundJaws&&(s="",a=""),i?t+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",e.shift()):(t=t.replace(/\)$/,""),t+=" "+I18n.getText("aui.keyboard.shortcut.or.x",e.shift())),e.forEach(function(e){t+=" "+I18n.getText("aui.keyboard.shortcut.then.x",e)}),t+=a}return r(e),Fu.makeShortcut({executor:n,bindKeys:r,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),r=n.data("boundKeyCombos")||[],l=n.data("kbShortcutAppended")||"",c=n.data("kbShortcutAppendedScreenReader")||"",u=n.attr("aria-label"),d=!l,h=!c,p=d?s:s.substring(0,s.length-l.length),f=h?s:u.substring(0,u.length-c.length);a.length;){var g=a.shift();r.some(function(e){return(0,pt.isEqual)(g,e)})||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Ru&&(l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),c=c.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),n.attr("title",p+l),n.attr("aria-label",f+c),n.data("kbShortcutAppended",l),n.data("kbShortcutAppendedScreenReader",c),n.data("boundKeyCombos",r.concat(t))},removeShortcutsFromTitle:function(e){var t=i(e),n=t.data("kbShortcutAppended");if(n){var s=t.attr("title");t.attr("title",s.replace(n,"")),t.attr("aria-label",s.replace(n,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:a})}Fu.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,r=e.keypressHandler,o=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",r=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return t.add(function(){const t=i(n);let s=t.filter("."+a);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(a)}),s.length&&s.removeClass(a),s=e(s,t,r),s&&s.length>0&&(s.addClass(a),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())}),this}}return{moveToNextItem:c(function(e,t,n){var s;return n&&0===e.length?t.eq(0):(s=i.inArray(e.get(0),t))<t.length-1?(s+=1,t.eq(s)):n?t.eq(0):e}),moveToPrevItem:c(function(e,t,n){var s;return n&&0===e.length?t.filter(":last"):(s=i.inArray(e.get(0),t))>0?(s-=1,t.eq(s)):n?t.filter(":last"):e}),click:function(e){return l.push(e),s(e),t.add(function(){const t=i(e);zu(t)}),this},goTo:function(e){return t.add(function(){window.location.href=e}),this},followLink:function(e){return l.push(e),s(e),t.add(function(){var t=i(e)[0];t&&{a:!0,link:!0}[t.nodeName.toLowerCase()]&&(window.location.href=t.href)}),this},execute:function(e){var i=this;return t.add(function(){e.apply(i,arguments)}),this},evaluate:function(e){e.call(this)},moveToAndClick:function(e){return l.push(e),s(e),t.add(function(){const t=i(e);t.length>0&&(zu(t),t.moveTo())}),this},moveToAndFocus:function(e){return l.push(e),s(e),t.add(function(t){var n=i(e);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&t.preventDefault())}),this},or:function(e){return n(e),this},unbind:function(){i(document).unbind("keydown keypress",r).unbind("keydown keypress keyup",o);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},Fu.fromJSON=function(e,t){var n=[];return e&&i.each(e,function(e,s){const a=s.op,r=s.param;let o;if("execute"===a||"evaluate"===a)o=[new Function(r)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(r)){try{o=JSON.parse(r)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+r)}i.isArray(o)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+r)}else o=[r];i.each(s.keys,function(){var e=this;t&&Ru&&(e=i.map(e,function(e){return e.replace(/ctrl/i,"meta")}));var s=Fu(e);s[a].apply(s,o),n.push(s)})}),n},i(document).on("iframeAppended",function(e,t){i(t).load(function(){i(t).contents().on("keyup keydown keypress",function(e){$u&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)})})}),l("whenIType",Fu);const Hu=Fu,{FocusManager:Bu,InlineDialog2:Uu,LayerManager:Wu,ProgressiveDataSet:Vu,clone:Yu,debounce:qu,debounceImmediate:Ku,dim:Qu,escapeHtml:Gu,formValidation:Zu,id:Ju,isClipped:Xu,keyCode:ed,layer:td,messages:id,populateParameters:nd,params:sd,responsiveheader:ad,select:rd,tablessortable:od,tabs:ld,undim:cd,_addID:ud}=window.AJS,{contextPath:dd}=window.AJS})(),r})());
109
109
  //# sourceMappingURL=aui-prototyping.nodeps.js.map