@atlassian/aui 10.0.0 → 10.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/aui/aui-prototyping-browserfocus.css +1 -1
- package/dist/aui/aui-prototyping-browserfocus.css.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api-full.js +2 -2
- package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
- package/dist/aui/aui-prototyping-design-tokens-api.js +1 -1
- package/dist/aui/aui-prototyping.css +3 -3
- package/dist/aui/aui-prototyping.css.map +1 -1
- package/dist/aui/aui-prototyping.js +2 -2
- package/dist/aui/aui-prototyping.nodeps.css +3 -3
- package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
- package/dist/aui/aui-prototyping.nodeps.js +2 -2
- package/entry/token-themes-generated/aui-prototyping-design-tokens-base-themes.less +2 -2
- package/package.json +2 -2
- package/src/js/aui/design-tokens/design-tokens-testing-theme.js +3 -3
- package/src/less/aui-avatars.less +1 -1
- package/src/less/imports/aui-theme/core/colors.less +2 -1
- package/entry/deprecated/aui.behaviour.jquery-form-legacy.js +0 -2
- package/src/js-vendor-effective/jquery-form-legacy/jquery.form.js +0 -816
- package/src/js-vendor-effective/jquery-form-legacy/package.json +0 -15
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!!
|
|
2
2
|
* @atlassian/aui - Atlassian User Interface library
|
|
3
|
-
* @version v10.0.
|
|
3
|
+
* @version v10.0.1
|
|
4
4
|
* @link https://aui.atlassian.com
|
|
5
5
|
* @license Apache-2.0
|
|
6
6
|
* @author Atlassian Pty Ltd.
|
|
@@ -101,5 +101,5 @@
|
|
|
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,o=i.config,r=o.textExtraction||"",l="";return l="basic"===r?e(n).attr(o.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof r?r(n,i,s):"function"==typeof(a=t.getColumnData(i,r,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function o(e,n,s,o){for(var r,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[o],o),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+o+': "'+u+'"')):d=!1;for(;--l>=0;)if((r=t.parsers[l])&&"text"!==r.id&&r.is&&r.is(u,e,c))return r;return t.getParserById("text")}function r(e){var s,a,r,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(r=g.columns,l=0;l<r;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=o(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 o,r,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=[],o=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)r=o.normalized.length-1,o.normalized[r][y.columns].$row=o.normalized[r][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[r]=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]?(r=a(s,p[0].cells[d],d),l=void 0===_[d].id?r:_[d].format(r,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,o.normalized.push(f)}o.colMax=b,y.totalRows+=o.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var o,r,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),r=(o=v[d].normalized).length,u=0;u<r;u++)m.push(o[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(o[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,o,r,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){o=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&&(r=f.onRenderTemplate.apply(o,[i,c]))&&"string"==typeof r&&(c=r),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(o,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(o,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(o,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),o.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,o.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow),f.tabIndex&&o.attr("tabindex",0)})).attr({scope:"col"}),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(),r(e),l(e),y(n.$table,t,i)}function p(i){var n,s,a,o=i.config;o.$headers.each((function(r,l){s=e(l),a=t.getColumnData(i,o.headers,r,!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,o=i.config,r=o.sortList,l=r.length,c=t.css.sortNone+" "+o.cssNone,u=[t.css.sortAsc+" "+o.cssAsc,t.css.sortDesc+" "+o.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(o.$extraHeaders).removeClass(u.join(" "));for(o.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==r[s][1]&&(n=o.$headers.not(".sorter-false").filter('[data-column="'+r[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[r[s][1]]).attr("aria-sort",d[r[s][1]]);h.length&&h.filter('[data-column="'+r[s][0]+'"]').removeClass(c).addClass(u[r[s][1]])}o.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(o.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,o,r,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&&(o=n,d.$headers.each((function(){this===o||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),o=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,r=0;r<a.length;r++)a[r][0]!==o&&d.sortList.push(a[r]);if((l=n.order[n.count])<2&&(d.sortList.push([o,l]),n.colSpan>1))for(r=1;r<n.colSpan;r++)d.sortList.push([o+r,l])}else{if(d.sortAppend&&d.sortList.length>1)for(r=0;r<d.sortAppend.length;r++)(u=t.isValueInArray(d.sortAppend[r][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(o,d.sortList)>=0)for(r=0;r<d.sortList.length;r++)u=d.sortList[r],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===o&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(r,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([o,l]),n.colSpan>1))for(r=1;r<n.colSpan;r++)d.sortList.push([o+r,l])}if(null!==d.sortAppend)for(a=d.sortAppend,r=0;r<a.length;r++)a[r][0]!==o&&d.sortList.push(a[r]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,a,o,r,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(r=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[r]===s[r]&&1===y)return n[m.columns].order-s[m.columns].order;if((o=/n/i.test(g(m.parsers,r)))&&m.strings[r]?(o="boolean"==typeof m.string[m.strings[r]]?(f?1:-1)*(m.string[m.strings[r]]?-1:1):m.strings[r]&&m.string[m.strings[r]]||0,d=m.numberSorter?m.numberSorter(n[r],s[r],f,c[r],e):t["sortNumeric"+(f?"Asc":"Desc")](n[r],s[r],o,c[r],r,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[r],p[r],f,r,e):"object"==typeof v&&v.hasOwnProperty(r)?v[r](h[r],p[r],f,r,e):t["sortNatural"+(f?"Asc":"Desc")](n[r],s[r],r,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,o=n.$table;o.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,r,l){t.stopPropagation(),i.isUpdating=!0,o.find(n.selectorRemove).remove();var c,u,d,h,p=o.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(o,r,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)).filter("tr").length,x=o.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||r(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(o,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,a,r,u){var d=i.config;n.stopPropagation(),o.trigger("sortStart",this),function(t,i){var n,s,a,o,r,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(o=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+o+'"]: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=r||0;break;case"o":n=a.order[(r||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}r=0===t?s:r,n=[o,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),o.trigger("sortBegin",this),v(i),c(i,u),o.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(r)&&r(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||r(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*$`);var o,c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&(o=h,!a.test(o))&&(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),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"),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),r(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,o=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[o.$headers.index(o.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?o.$headers.eq(n).filter(a):o.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,o,r,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(r=l[n],o=e(r),u=(c=r.parentNode.rowIndex)+"-"+o.index(),d=r.rowSpan||1,h=r.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),o.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,o=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(o=o.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0}))),i.add(o).addClass(t.css.processing+" "+a.cssProcessing)):i.add(o).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,o=(t=e(t)[0]).config;!0!==n&&(o.$extraHeaders=o.$extraHeaders?o.$extraHeaders.add(i):i),i.find(o.selectorSort).add(i.filter(o.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(o.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(o.namespace+" "),(function(n,r){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==r&&(new Date).getTime()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!o.cancelSelection;o.delayInit&&s(o.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=o.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),o.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),o=i.config,r=a.find("thead:first"),l=r.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+o.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",o.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),r.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(o.namespace+" ")),o.$headers.add(c).removeClass([t.css.header,o.cssHeader,o.cssAsc,o.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(o.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(o.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+o.tableClass+" tablesorter-"+o.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,o,r,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(o=parseInt(i.match(d.hex),16)))return-1;if(s>o)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(r=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(r)!==isNaN(l))return isNaN(r)?1:-1;if(typeof r!=typeof l&&(r+="",l+=""),r<l)return-1;if(r>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var o=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:o||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var o=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:-o||-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,o){if(e===i)return 0;var r=o.config,l=r.string[r.empties[a]||r.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,o){if(e===i)return 0;var r=o.config,l=r.string[r.empties[a]||r.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,o,r,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){(r=t.getWidgetById(i))&&r.id&&(r.priority||(r.priority=10),u[e]=r)})),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&&(o=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+o+" widget"+(1!==o?"s":""),a)))},t.refreshWidgets=function(n,s,a){var o,r=(n=e(n)[0]).config,l=r.widgets,c=t.widgets,u=c.length;for(o=0;o<u;o++)c[o]&&c[o].id&&(s||e.inArray(c[o].id,l)<0)&&(r.debug&&i('Refeshing widgets: Removing "'+c[o].id+'"'),c[o].hasOwnProperty("remove")&&r.widgetInit[c[o].id]&&(c[o].remove(n,r,r.widgetOptions),r.widgetInit[c[o].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,o="",r=e(t);return r.length?(s=!!e.metadata&&r.metadata(),a=" "+(r.attr("class")||""),void 0!==r.data(n)||void 0!==r.data(n.toLowerCase())?o+=r.data(n)||r.data(n.toLowerCase()):s&&void 0!==s[n]?o+=s[n]:i&&void 0!==i[n]?o+=i[n]:" "!==a&&a.match(" "+n+"-")&&(o=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(o)):""},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="",o=s.length;for(n=0;n<o;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,o=a.$headers.filter("[data-column="+s+"]:last"),r=o.length&&o[0].dateFormat||t.getData(o,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===r&&(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,o,r,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)o=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each((function(){a=e(this),u.test(this.className)||o++,r=o%2==0,a.removeClass(s.zebra[r?1:0]).addClass(s.zebra[r?0:1])}));n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,o=i.$tbodies,r=(n.zebra||["even","odd"]).join(" ");for(s=0;s<o.length;s++)(a=e.tablesorter.processTbody(t,o.eq(s),!0)).children().removeClass(r),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 o={};return(()=>{"use strict";a.r(o),a.d(o,{$:()=>Re,AvatarBadged:()=>Ue,AvatarEl:()=>Ze,AvatarGroupEl:()=>lt,CalendarWidget:()=>yc,DatePicker:()=>xc,DropdownEl:()=>Xn,FancyFileInput:()=>_s,FocusManager:()=>Cu,Header:()=>hc,I18n:()=>I18n,InlineDialog2:()=>Tu,InlineDialogEl:()=>dr,ItemButtonEl:()=>Qn,ItemCheckboxEl:()=>Gn,ItemLinkEl:()=>Kn,ItemRadioEl:()=>Zn,LabelEl:()=>ks,LayerManager:()=>ku,MessageEl:()=>ds,NavigationEl:()=>fr,ProgressBarEl:()=>Sr,ProgressiveDataSet:()=>Eu,RestfulTable:()=>Wc,SectionEl:()=>Jn,SelectEl:()=>ua,SpinnerEl:()=>yt,TabContainerEl:()=>tl,TabItemEl:()=>il,TabPaneEl:()=>nl,ToggleEl:()=>Vo,_addID:()=>Vu,banner:()=>ut,bind:()=>C,clone:()=>Au,contextPath:()=>Yu,debounce:()=>Du,debounceImmediate:()=>Su,dialog2:()=>St,dim:()=>Iu,error:()=>m,escapeHtml:()=>Mu,flag:()=>ys,formValidation:()=>Nu,format:()=>b,id:()=>Ou,isClipped:()=>Lu,keyCode:()=>Pu,layer:()=>Ru,log:()=>f,messages:()=>$u,navigation:()=>gr,params:()=>zu,populateParameters:()=>ju,progressBars:()=>Mr,responsiveheader:()=>Fu,select:()=>Hu,sidebar:()=>hu,tablessortable:()=>Uu,tabs:()=>Bu,toInit:()=>je,trigger:()=>k,unbind:()=>T,undim:()=>Wu,version:()=>w,warn:()=>g,whenIType:()=>xu});var e=a(687),t=a.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function r(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return r(),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+)([#<])(.+)/,o=function(t,o){var r,l="";if(r=t.match(i))l=o.length>++t?o[t]:"";else if(r=t.match(n))l=o.length>++r[1]?o[r[1]]:"";else if(r=t.match(s)){var c=o.length>++r[1]?o[r[1]]:null;if(null!==c){for(var u=r[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(o,1));l=v.apply(null,b)}}return l},r=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 o=[];return o.push(e.substring(0,s+1)),o.push(e.substring(0,i)),o.push(e.substring(i+1,s)),o}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=r(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=o(s[2],i),s=r(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="10.0.0";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={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function D(e){return e.replace(A,(e=>E[e]))}l("escapeHtml",D);const S=D,I=Object.prototype.hasOwnProperty,M=[];function N(...e){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,e)}const O=(e,t)=>L(e,t);function L(e,t){if("function"==typeof e)return e;let i=!1;return t=t??{},function(n){let s=function(e){const t=new Error;let i=t.stack??t.stacktrace;return i=i?.replace(/^Error\n/,"")??"",i.split("\n")[e+2]}(n||1)??"";if(!i||!M.includes(s)){M.push(s),i=!0;let n="DEPRECATED "+(t.deprecationType??"")+"- "+(((a=e)?(a=""+a).charAt(0).toUpperCase()+a.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion??"a future release")+".";t.alternativeName&&(n+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(n+=" "+t.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(s),t.extraObject?(n+="\n",N(n,t.extraObject,s)):N(n,s)}var a}}function P(e,t){let i=e.options?.displayName;i=i?" ("+i+")":"";const n=Object.assign({deprecationType:"CSS",extraObject:t},e.options);L("'"+e.selector+"' pattern"+i,n)()}function R(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=L(t||e.name||"this function",i);return function(...t){return n(),e.apply(this,t)}}function $(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=R(e,t,i);return n.prototype=e.prototype,Object.assign(n,e),n}function j(e,t,i){if("function"==typeof e[t]){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=i.displayName??t;e[t]=R(e[t],n,i)}else!function(e,t,i){let n=e[t];(i=i??{}).deprecationType=i.deprecationType??"JS";const s=L(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){const i={selector:t,options:e},n=document.querySelectorAll(t);for(const e of n)P(i,e);!function(e){if(H.push(e),void 0===U){U=new MutationObserver((function(e){e.forEach((function(e){const t=e.addedNodes;for(const e of t)1===e.nodeType&&H.forEach(F(e))}))}));const e={childList:!0,subtree:!0};U.observe(document,e)}}(i)}}function F(e){return function(t){var i,n;i=e,n=t.selector,i instanceof Element&&i.matches(n)&&P(t,e)}}const H=[];let U;function B(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||(B(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:R,construct:$,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(z(t))},prop:j,obj:function(e,t,i){i=i??{};for(const n in e)I.call(e,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=t+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,j(e,n,Object.assign({},i)))},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),o=Array.prototype.slice.apply(a).concat(n);return 0===o.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(" ")),o}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function ae(e){return"true"!==e.getAttribute("aria-disabled")}function oe(e,t){if(ae(e)){var i=se(e);i&&i.message&&i.message(t)}}const re={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(oe(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",re.click(e,t))},mouseenter(e,t){oe(e,t)},mouseleave(e,t){oe(e,t)},focus(e,t){oe(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)||oe(e,t)}};Object.keys(re).forEach((function(e){const t=re[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:o}=e;return{type:t,data:"keydown"===t?o||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,o=a.name,r=i("img[usemap=#"+o+"]").get();return!(!t.href||!o||"map"!==a.nodeName.toLowerCase())&&(r&&e(r))}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],o=a.find(":aui-tabbable");if(!o.length&&ce(a)&&(a.trigger("focus"),t.preventDefault()),!o.length)return;const r=o.index(s);let l=-1;if(r>-1)l=r;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=o.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 o;o=s.length>0?s.first():i>0?t.first():t.last(),a=n.index(o)}return a}(s,l,n,o):0,"IFRAME"!==o.get(l).nodeName&&(o.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){t.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,o;i.isPlainObject(e)?o=e:(a=e,o=s);var r,l=a&&i(a);return l&&l.data(n)?r=l.data(n):(l=(r=new t(l,o||{})).$el).data(n,r),r}}const me="_aui-internal-layer-",ve="_aui-internal-layer-global-";var be=i(document);function ye(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 we(e,t,n){var s=i.Event(me+t),a=i.Event(ve+t),o=new CustomEvent("aui-layer-"+n,{bubbles:!0,cancelable:!0}),r=new CustomEvent("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(o),e[0].dispatchEvent(r),!(s.isDefaultPrevented()||a.isDefaultPrevented()||o.defaultPrevented||r.defaultPrevented)}function _e(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function xe(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}_e.prototype={below:function(){return Se.global.item(Se.global.indexOf(this.$el)-1)},above:function(){return Se.global.item(Se.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(me+e,t),this},off:function(e,t){return this.$el.off(me+e,t),this},show:function(){return this.isVisible()||Se.global.indexOf(this.$el)>-1?this:we(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Se.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ye(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Se.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=xe(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=xe(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!we(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(me+"hide"),this.$el.trigger(ve+"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(me+"show"),this.$el.trigger(ve+"show",[this.$el])}};var Ce=ge("layer",_e);function Te(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function ke(e,t){return Te(e,(function(e){return e[0]===t[0]}))}function Ee(e){return Te(e,(function(e){return Ce(e).isBlanketed()}))}function Ae(e,t){var i=Ee(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function De(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 o=Ce(s);if(i||!o.isPersistent()){if(!o._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Se(){this._stack=[]}function Ie(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Se.global.indexOf(t)>-1}Ce.on=function(e,t,i){return be.on(ve+e,t,i),this},Ce.off=function(e,t,i){return be.off(ve+e,t,i),this},Se.prototype={push:function(e){var t=e instanceof i?e:i(e);if(ke(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Ce(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=Ee(this._stack);return void De(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);De(this._stack,++e,!1)}else De(this._stack,0,!1)},indexOf:function(e){return ke(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=Ce(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=Ce(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=Ce(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=ke(this._stack,n);if(-1===s)return null;const a=Ee(this._stack),o=Ce(n),[r,l]=De(this._stack,s+1,o.isBlanketed(),t);return r&&o._hideLayer(t)?(this._stack.splice(s,1),Ae(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Ce(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=Ee(this._stack);if(t<0)return null;var i=this._stack[t];if(Ce(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=ke(this._stack,n);return De(this._stack,s,!0,e),n}return null}return De(this._stack,t,!0),Ae(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Se.global.getTopLayer();if(t){var i,n=Ee(this._stack),s=Ce(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Se.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Ce(t),!t||s.isPersistent())return;i=ke(this._stack,t),De(this._stack,i,!0,e),Ae(this._stack,n)}else i=ke(this._stack,t),De(this._stack,i,!0,e),Ae(this._stack,n)}}},be.on("keydown",(function(e){e.keyCode===Q.ESCAPE&&(Se.global.popUntilTopPersistent(!0),e.preventDefault())})),be.on("click",".aui-blanket",(function(e){Se.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),be.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&&!Ie(n)){const t=i.Event("aui-close-layers-on-outer-click");return be.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Se.global.hideAll()}if(!Ie(n)&&s.length){var a=Se.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&Ce(a).hide()}}})),Se.global=new Se,Ce.Manager=Se,l("layer",Ce);const Me=Ce;l("LayerManager",Me.Manager);Me.Manager;const Ne={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},Oe=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",Ne)(),e[t]}}));const Le=R((function(e){e||(e=Oe),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:"11.0.0"});l("populateParameters",Le);const Pe=Le;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),Pe()})),l("$",i);const Re=i;function $e(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",$e);const je=$e;a(547);const ze={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.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){r(),"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}(ze),Fe="bottom-end",He=["top-start","top-end","bottom-start","bottom-end"],Ue=Z("aui-avatar-badged",{attributes:{placement:{value:Fe,fallback(e,{newValue:t,oldValue:i}){((e,t,i)=>{const n=He.includes(t)?t:Fe;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 Be=a(2),We=a.n(Be);const Ve=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Ye=(e,t)=>e.querySelector(t),qe=(e,t,i)=>{const n=Ye(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},Ke=e=>{if(e.hasAttribute("src"))Ge(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=Ve.get(t);Ge(e,i)}},Qe=(e,t,i)=>Ye(e,"img").setAttribute(t,i),Ge=(e,t)=>Qe(e,"src",t),Ze=Z("aui-avatar",{template:We()("\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),Ke(e)},src(e,{newValue:t}){Ge(e,t)},alt:{value:"",fallback(e,{newValue:t}){((e,t)=>{Qe(e,"alt",t)})(e,t)}},title(e,{newValue:t}){((e,t)=>{Qe(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",Ke(e),(e=>null!==e.querySelector("aui-avatar-badged"))(e)&&e.setAttribute("role","img")}}),Je="medium",Xe={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},et=(e,t)=>{const i=e.querySelectorAll("aui-avatar"),n=[...i].slice(4);st(i,t);const s=e.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const a=tt(t,n);e.appendChild(a)},tt=(e,t)=>{const i=document.createElement("div"),n=it(`+${t.length}`),s=nt();return t.forEach((e=>{s.append(e)})),i.classList.add("aui-avatar-group-dropdown"),i.style.left=at(e,4.2),i.appendChild(n),i.appendChild(s),i},it=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},nt=()=>{const e=document.createElement("div");return e.classList.add("aui-avatar-group-dropdown-menu"),e},st=(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=at(t,i),e.style.zIndex=""+(5-i))}))},at=(e,t)=>{const i=Xe[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")?ot(i):rt(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach((e=>{e!==i&&ot(e)})))})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=document.querySelector(".aui-avatar-group-dropdown-show");t&&ot(t)}));const ot=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.remove("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","false")},rt=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.add("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","true")},lt=Z("aui-avatar-group",{attributes:{size:{value:Je,fallback(e,{newValue:t,oldValue:i}){const n=(s=t,Object.keys(Xe).includes(s)?s:Je);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),et(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)&&et(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((()=>{et(t,t.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function ct(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),B(e)}(i,t),function(e){const t=e.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"11.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",ct),l("banner",ct);const ut=ct;var dt=a(487);const ht={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},pt={filled:!1,size:ht.MEDIUM.name},ft="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.",gt=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:ft}),mt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:ft});function vt(e){let t=ht.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(ht).map((e=>e.toLowerCase()));i.indexOf(e)>-1&&(t=e)}return t}function bt(e){const{px:t,radius:i}=(0,dt.find)(ht,(t=>t.name===e._data.size))||ht.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,o=n.top+t/2;e.querySelector("svg").style.top=a-o+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const yt=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',bt(e)},attached(e){bt(e)},attributes:{filled:{created:function(e){gt(),e._data.filled=!0,bt(e)},removed:function(e){e._data.filled=!1,bt(e)}},size(e,t){e._data.size=vt(t.newValue),bt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,dt.defaults)({},pt))},set _data(e){return this.__data=e},set filled(e){mt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=vt(e);this.setAttribute("size",t)}}});function wt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function _t(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new yt,e._spinner.setAttribute("size",ht.SMALL.name)},prototype:{busy:function(){return _t(this)||wt(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 _t(this)||!wt(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 _t(this)?(g("It is not valid to call isBusy() on an input button."),!1):wt(this)}}}),G("aui/button");const xt="aui-close-button",Ct=`.${xt}`,Tt=`<button type="button" class="${xt}" aria-label="${I18n.getText("aui.words.close")}">`,kt={"aui-focus":"false","aui-blanketed":"true"};function Et(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 ${Tt}\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(kt,(function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}Et.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)};Me(i).on(e,n),this._handlers.set(t,n)}return this},Et.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Me(i).off(e,n),this._handlers.delete(t)),this},Et.prototype.show=function(){return Me(this.$el).show(),this},Et.prototype.hide=function(){return Me(this.$el).hide(),this},Et.prototype.remove=function(){return Me(this.$el).remove(),this},Et.prototype.isVisible=function(){return Me(this.$el).isVisible()};var At=ge("dialog2",Et),Dt=new Set;At.on=function(e,t){return Dt.has(t)||(Me.on(e,".aui-dialog2",t),Dt.add(t)),this},At.off=function(e,t){return Dt.has(t)&&(Me.off(e,".aui-dialog2",t),Dt.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${Ct}`,(function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),At(i(e.target).closest(".aui-dialog2")).hide())})),At.on("show",(function(e,t){!function(e){const t=e.querySelector(Ct);t&&(O(`Dialog2 [${Ct}]`,{removeInVersion:"11.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:"11.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(xt)&&(e=s.shift()),void(e&&(e.blur(),setTimeout((()=>e.focus()),0)))}e.focus()}(t[0])})),At.on("hide",(function(e,t){const i=Me(t);t.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",At),l("dialog2",At);const St=At;var It,Mt,Nt=navigator.userAgent.toLowerCase(),Ot=(/msie/.test(Nt),/windows nt 5.1/.test(Nt),/windows nt 6.0/.test(Nt),/windows nt 6.1/.test(Nt),/mac os x/.test(Nt));function Lt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){return e instanceof Lt(e).Element||e instanceof Element}function Rt(e){return e instanceof Lt(e).HTMLElement||e instanceof HTMLElement}function $t(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lt(e).ShadowRoot||e instanceof ShadowRoot)}var jt=Math.max,zt=Math.min,Ft=Math.round;function Ht(){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 Ut(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function Bt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,a=1;t&&Rt(e)&&(s=e.offsetWidth>0&&Ft(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ft(n.height)/e.offsetHeight||1);var o=(Pt(e)?Lt(e):window).visualViewport,r=!Ut()&&i,l=(n.left+(r&&o?o.offsetLeft:0))/s,c=(n.top+(r&&o?o.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 Wt(e){var t=Lt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vt(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function qt(e){return Bt(Yt(e)).left+Wt(e).scrollLeft}function Kt(e){return Lt(e).getComputedStyle(e)}function Qt(e){var t=Kt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Gt(e,t,i){void 0===i&&(i=!1);var n,s,a=Rt(t),o=Rt(t)&&function(e){var t=e.getBoundingClientRect(),i=Ft(t.width)/e.offsetWidth||1,n=Ft(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),r=Yt(t),l=Bt(e,o,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!i)&&(("body"!==Vt(t)||Qt(r))&&(c=(n=t)!==Lt(n)&&Rt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Wt(n)),Rt(t)?((u=Bt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=qt(r))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Zt(e){var t=Bt(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 Jt(e){return"html"===Vt(e)?e:e.assignedSlot||e.parentNode||($t(e)?e.host:null)||Yt(e)}function Xt(e){return["html","body","#document"].indexOf(Vt(e))>=0?e.ownerDocument.body:Rt(e)&&Qt(e)?e:Xt(Jt(e))}function ei(e,t){var i;void 0===t&&(t=[]);var n=Xt(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),a=Lt(n),o=s?[a].concat(a.visualViewport||[],Qt(n)?n:[]):n,r=t.concat(o);return s?r:r.concat(ei(Jt(o)))}function ti(e){return["table","td","th"].indexOf(Vt(e))>=0}function ii(e){return Rt(e)&&"fixed"!==Kt(e).position?e.offsetParent:null}function ni(e){for(var t=Lt(e),i=ii(e);i&&ti(i)&&"static"===Kt(i).position;)i=ii(i);return i&&("html"===Vt(i)||"body"===Vt(i)&&"static"===Kt(i).position)?t:i||function(e){var t=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&Rt(e)&&"fixed"===Kt(e).position)return null;var i=Jt(e);for($t(i)&&(i=i.host);Rt(i)&&["html","body"].indexOf(Vt(i))<0;){var n=Kt(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 si="top",ai="bottom",oi="right",ri="left",li="auto",ci=[si,ai,oi,ri],ui="start",di="end",hi="clippingParents",pi="viewport",fi="popper",gi="reference",mi=ci.reduce((function(e,t){return e.concat([t+"-"+ui,t+"-"+di])}),[]),vi=[].concat(ci,[li]).reduce((function(e,t){return e.concat([t,t+"-"+ui,t+"-"+di])}),[]),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&&$t(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===pi?_i(function(e,t){var i=Lt(e),n=Yt(e),s=i.visualViewport,a=n.clientWidth,o=n.clientHeight,r=0,l=0;if(s){a=s.width,o=s.height;var c=Ut();(c||!c&&"fixed"===t)&&(r=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:r+qt(e),y:l}}(e,i)):Pt(t)?function(e,t){var i=Bt(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=Yt(e),n=Wt(e),s=null==(t=e.ownerDocument)?void 0:t.body,a=jt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=jt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),r=-n.scrollLeft+qt(e),l=-n.scrollTop;return"rtl"===Kt(s||i).direction&&(r+=jt(i.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:r,y:l}}(Yt(e)))}function Ci(e,t,i,n){var s="clippingParents"===t?function(e){var t=ei(Jt(e)),i=["absolute","fixed"].indexOf(Kt(e).position)>=0&&Rt(e)?ni(e):e;return Pt(i)?t.filter((function(e){return Pt(e)&&wi(e,i)&&"body"!==Vt(e)})):[]}(e):[].concat(t),a=[].concat(s,[i]),o=a[0],r=a.reduce((function(t,i){var s=xi(e,i,n);return t.top=jt(s.top,t.top),t.right=zt(s.right,t.right),t.bottom=zt(s.bottom,t.bottom),t.left=jt(s.left,t.left),t}),xi(e,o,n));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}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,o=s?ki(s):null,r=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case si:t={x:r,y:i.y-n.height};break;case ai:t={x:r,y:i.y+i.height};break;case oi:t={x:i.x+i.width,y:l};break;case ri: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(o){case ui:t[c]=t[c]-(i[u]/2-n[u]/2);break;case di: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,o=void 0===a?e.strategy:a,r=i.boundary,l=void 0===r?hi:r,c=i.rootBoundary,u=void 0===c?pi:c,d=i.elementContext,h=void 0===d?fi: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,ci)),b=h===fi?gi:fi,y=e.rects.popper,w=e.elements[f?b:h],_=Ci(Pt(w)?w:w.contextElement||Yt(e.elements.popper),l,u,o),x=Bt(e.elements.reference),C=Ai({reference:x,element:y,strategy:"absolute",placement:s}),T=_i(Object.assign({},y,C)),k=h===fi?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===fi&&A){var D=A[s];Object.keys(E).forEach((function(e){var t=[oi,ai].indexOf(e)>=0?1:-1,i=[si,ai].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,o,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:r,setOptions:function(i){var s="function"==typeof i?i(r.options):i;d(),r.options=Object.assign({},a,r.options,s),r.scrollParents={reference:Pt(e)?ei(e):e.contextElement?ei(e.contextElement):[],popper:ei(t)};var o,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})))}),[])}((o=[].concat(n,r.options.modifiers),c=o.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 r.orderedModifiers=h.filter((function(e){return e.enabled})),r.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:r,name:t,instance:u,options:n}),o=function(){};l.push(a||o)}})),u.update()},forceUpdate:function(){if(!c){var e=r.elements,t=e.reference,i=e.popper;if(Ni(t,i)){r.rects={reference:Gt(t,ni(i),"fixed"===r.options.strategy),popper:Zt(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var s=r.orderedModifiers[n],a=s.fn,o=s.options,l=void 0===o?{}:o,d=s.name;"function"==typeof a&&(r=a({state:r,options:l,name:d,instance:u})||r)}else r.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(r)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),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,o=n.resize,r=void 0===o||o,l=Lt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",i.update,Li)})),r&&l.addEventListener("resize",i.update,Li),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",i.update,Li)})),r&&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,o=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.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=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=ri,w=si,_=window;if(c){var x=ni(i),C="clientHeight",T="clientWidth";if(x===Lt(i)&&"static"!==Kt(x=Yt(i)).position&&"absolute"===r&&(C="scrollHeight",T="scrollWidth"),s===si||(s===ri||s===oi)&&a===di)w=ai,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===ri||(s===si||s===ai)&&a===di)y=oi,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:r},c&&$i),A=!0===u?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Ft(i*s)/s||0,y:Ft(n*s)/s||0}}({x:p,y:g},Lt(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,o=void 0===a||a,r=i.roundOffsets,l=void 0===r||r,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:o,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];Rt(s)&&Vt(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}),{});Rt(n)&&Vt(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,o=vi.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ti(e),s=[ri,si].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=a[0],r=a[1];return o=o||0,r=(r||0)*s,[ri,oi].indexOf(n)>=0?{x:r,y:o}:{x:o,y:r}}(i,t.rects,a),e}),{}),r=o[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};var Ui={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ui[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,o=i.altAxis,r=void 0===o||o,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?[Bi(m)]:function(e){if(Ti(e)===li)return[];var t=Bi(e);return[Vi(e),t,Vi(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Ti(i)===li?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,o=i.padding,r=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=ki(n),d=u?r?mi:mi.filter((function(e){return ki(e)===u})):ci,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:o})[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)===ui,S=[si,ai].indexOf(A)>=0,I=S?"width":"height",M=Ii(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?D?oi:ri:D?ai:si;w[I]>_[I]&&(N=Bi(N));var O=Bi(N),L=[];if(a&&L.push(M[A]<=0),r&&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 jt(e,zt(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,o=i.altAxis,r=void 0!==o&&o,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?si:ri,M="y"===w?ai:oi,N="y"===w?"height":"width",O=x[w],L=O+m[I],P=O-m[M],R=p?-T[N]/2:0,$=b===ui?C[N]:T[N],j=b===ui?-T[N]:-C[N],z=t.elements.arrow,F=p&&z?Zt(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=H[I],B=H[M],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-U-E.mainAxis:$-W-U-E.mainAxis,Y=y?-C[N]/2+R+W+B+E.mainAxis:j+W+B+E.mainAxis,q=t.elements.arrow&&ni(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?zt(L,O+V-Q-K):L,O,p?jt(P,G):P);x[w]=Z,D[w]=Z-O}if(r){var J,X="x"===w?si:ri,ee="x"===w?ai:oi,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],ae=-1!==[si,ri].indexOf(v),oe=null!=(J=null==A?void 0:A[_])?J:0,re=ae?ne:te-C[ie]-T[ie]-oe+E.altAxis,le=ae?te+C[ie]+T[ie]-oe-E.altAxis:se,ce=p&&ae?function(e,t,i){var n=qi(e,t,i);return n>i?i:n}(re,te,le):qi(p?re: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,o=i.modifiersData.popperOffsets,r=Ti(i.placement),l=Ei(r),c=[ri,oi].indexOf(r)>=0?"height":"width";if(a&&o){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,ci))}(s.padding,i),d=Zt(a),h="y"===l?si:ri,p="y"===l?ai:oi,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],g=o[l]-i.rects.reference[l],m=ni(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[si,oi,ai,ri].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,o=Ii(t,{elementContext:"reference"}),r=Ii(t,{altBoundary:!0}),l=Gi(o,n),c=Gi(r,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="alignment",tn="right middle",nn="alignment-container",sn="aui-alignment-side-",an="aui-alignment-snap-",on={"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 rn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function ln(e){return rn(e,en)||tn}function cn(e){let[t,i]=ln(e).split(" ");return{side:t,snap:i}}function un(e){let t=function(e){let t=rn(e,nn)||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 dn(e,t){const i=cn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=ln(e);return on[t]||"right"}(e):(i.snap=un(t),n="submenu"===i.side?on[("right"===i.snap?"left":"right")+" top"]:on[`${i.side} ${i.snap}`]),n}const hn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function pn(e,t,i={}){const n=cn(e),s=dn(e,t),a=hn[s.split("-")[0]],o=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const r=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:a,boundary:o||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:o?"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}}];o&&t.ownerDocument!=e.ownerDocument&&r.push({name:"iframeOffset",enabled:!0,fn(e){const t=o.getBoundingClientRect(),i=window.getComputedStyle(o),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=s([t.top,i.paddingTop,i.borderTop]),r=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=r,e.offsets.reference.top+=a,e.offsets.popper.left+=r,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:r,onFirstUpdate:i.onCreate};this.popper=Xi(t,e,l),function(e,t,i){const n=sn+t,s=an+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}pn.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 fn=pn;function gn(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),12):t.reject(),t.promise()}var mn,vn,bn=0;function yn(e){if(mn=bn+++"",vn=e?e+mn:"aui-uid-"+mn,document.getElementById(vn)){if(vn=vn+"-"+(new Date).getTime(),document.getElementById(vn))throw new Error('Timestamped fallback ID "'+vn+'" exists.');return vn}return vn}l("id",yn);const wn=yn;function _n(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function xn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var Cn="unloaded",Tn="loading",kn="error",En="success";function An(e,t){J(e).set("loading-state",En),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} ${i("for")} ${i("href")} ${t("interactive")}\n ${t("checked")} ${t("disabled")} ${t("hidden")} ${i("data-value")} ${i("item-id")}>\n ${S(e.content)}\n </${n}>`})).join("");function i(t){return e[t]?`${t}="${e[t]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>\n ${t}\n </aui-section>`})).join("\n")}(t),Z.init(e)}function Dn(e){J(e).set("loading-state",kn),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 Sn(e){e.src&&J(e).get("loading-state")!==Tn&&(!function(e){J(e).set("loading-state",Tn),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?An(e,t):Dn(e)})).fail((function(){Dn(e)})).always((function(){!function(e){te(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function In(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 Mn(e){return In(e,(()=>!0))}function Nn(e){return In(e,((e,t)=>!_n(t)))}function On(e){Mn(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||_n(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ln(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Pn(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)),Ln(e),e._auiAlignment=new fn(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:"11.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 Rn=!1;function $n(){Rn=!0}function jn(e){Me(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),On(e),i(e).trigger("aui-dropdown2-show"),te(e,(function(t){xn(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"),Mn(e).removeClass("active aui-dropdown2-active"),te(e,(function(e){var t;xn(e,!1),t=!0===Rn,Rn=!1,t&&e.focus()})),delete e.isSubmenu)}))}function zn(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&&($n(),e.hide(),t.preventDefault()):t.keyCode===Q.ESCAPE?$n():t.keyCode===Q.TAB&&($n(),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,o=a===Q.ENTER,r=a===Q.SPACE;o&&i(s).is("a[href], button")||"click"!==t.type&&!o&&!r||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(Me(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),a=Me(s).above();n!==e&&Me(s).hide(),s=i(a).get(0)}}))}function Fn(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")),jn(e),zn(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,dt.debounce)((function(){i(".aui-dropdown2").each((function(e,t){Z.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Hn={toggle:function(e){this.isVisible()?this.hide():this.show(e)},show:function(e){const t=this;return te(t,(e=>{xn(e,!1)})),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Me(t).show(),te(t,(function(e){xn(e,!0),Pn(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=Nn(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e)),0),this},hide:function(){return Me(this).hide(),this},hideAll:function(e=!0){const t=function(e){let t=Me(e);for(;;){const e=t.below();if(!e)break;if(!e.get(0).isDropdown)break;t=Me(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=Nn(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=Nn(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=Nn(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 Me(this).isVisible()},isDropdown:!0},Un={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")}},Bn={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Wn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new CustomEvent("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 CustomEvent("change",{bubbles:!0}))}},Vn={created:function(e){Un.created(e)},removed:function(e){Un.removed(e)}},Yn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const qn=function(e=""){return e.split(" ").map((e=>e.trim())).filter((e=>e))},Kn=Z("aui-item-link",{template:We()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Un,interactive:Bn,hidden:Vn,href:Yn("href"),"item-id":Yn("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(...qn(t.oldValue)),t.newValue&&i.classList.add(...qn(t.newValue))},"data-value":Yn("data-value")}}),Qn=Z("aui-item-button",{template:We()('<button class="aui-button"><content></content></button>'),attributes:{disabled:Un,"item-id":Yn("id"),"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...qn(t.oldValue)),t.newValue&&i.classList.add(...qn(t.newValue))},"data-value":Yn("data-value")}}),[Gn,Zn]=["checkbox","radio"].map((e=>Z(`aui-item-${e}`,{template:We()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Yn("id"),disabled:Un,interactive:Bn,checked:Wn,hidden:Vn,"data-value":Yn("data-value")}}))),Jn=Z("aui-section",{template:We()('\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=wn();var n=e.children[0],s=e.children[1];n.textContent=t.newValue,n.id=i,s.setAttribute("aria-labelledby",i)},"aria-label":{fallback:function(e,t){e.children[1].setAttribute("aria-label",t.newValue)},removed:function(e){e.children[1].removeAttribute("aria-label")}}},created:function(e){e.classList.add("aui-dropdown2-section")}}),Xn=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Me(e),J(e).set("loading-state",Cn),Z.init(e)},detached:function(e){gn(e).then((()=>Ln(e)))},attributes:{src:{}},prototype:Hn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===Cn,i=J(e).get("hasErrorBeenShown");(t||i)&&Sn(e),J(e).get("loading-state")===kn&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:Fn,prototype:Hn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:Fn,prototype:Hn}),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 o=i(e);return o.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),o.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")===Cn,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Sn(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"),Ot&&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 es={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"11.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:"11.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:"11.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},ts=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")&&(es["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 is=(e,t)=>{if(!t)return;const i=e.data("replace-selector");if(i){es["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)},ns={"aui-expander-invoke":function(e){const t=i(e.currentTarget),{isCollapsible:n,isExpanded:s}=ts(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}=ts(e);e.attr("aria-expanded","true"),t.addClass("expanded"),t.prop("hidden",!1),is(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}=ts(e);is(e,s),e.attr("aria-expanded","false"),t.removeClass("expanded"),i&&n.show(),0===t.outerHeight()&&t.prop("hidden",!0),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(ns,".aui-expander-trigger"),i(document).ready((function(){i(".aui-expander-trigger").each((function(){!function(e){const{$content:t,isTriggerParent:i,isExpanded:n}=ts(e);e.data("replace-selector")&&es["replace-selector"](),t.attr("aria-expanded")&&(es["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),(i?e.find(".aui-expander-short-content"):null)&&es["short-content"](),0===t.outerHeight()&&!n&&t.prop("hidden",!0),e.attr("aria-expanded",n?"true":"false")}(i(this))}))}));const ss=500,as=5e3,os=100;function rs(e,t,n){i(e||".aui-message.aui-remove-on-hide").each((function(){cs(i(this),t,n)}))}function ls(e){i(e||"div.aui-message.closeable").each((function(){const e=i(this),t=e.find(Ct),n=t.length>0?t.first():i(Tt);var s;e.addClass("closeable"),e.append(n),(s=e).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Ct,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Ct,(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function cs(e,t,n){t=void 0!==t?t:as,n=void 0!==n?n:ss,i(e||"div.aui-message.fadeout").each((function(){const e=i(this);let s=!1,a=!1;function o(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function r(){e.stop(!0,!1).fadeTo(os,1)}function l(){return!s&&!a}e.focusin((function(){s=!0,r()})).focusout((function(){s=!1,l()&&o()})).hover((function(){a=!0,r()}),(function(){a=!1,l()&&o()})),o()}))}const us={setup:function(){rs(),ls(),cs()},makeRemoveOnHide:rs,makeCloseable:ls,makeFadeout:cs,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:o,title:r,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=r?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${S(r)}</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(o?"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 11.0.0."),rs(s,n.delay,n.duration)),n.closeable&&ls(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),cs(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]))},us.createMessage("generic"),us.createMessage("error"),us.createMessage("warning"),us.createMessage("info"),us.createMessage("confirmation"),us.createMessage("change"),us.createMessage("success"),us.createMessage("hint");const ds=Z("aui-message",{created:function(e){const t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",us[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(){us.setup()})),j(us,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),j(us,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),l("messages",us);const hs='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"]',ps="aui-flag-container",fs={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function gs(e){const t=(0,dt.defaults)(e,fs);t.title=(t.title||"").toString().trim();const n=function({body:e,title:t,close:n,type:s,ariaLive:a,ariaLabel:o,ariaDescription:r}){const l=`<div class="aui-message">${t?`<p class="title"><strong>${S(t)}</strong></p>`:""}</div>`;o||(o=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));r||(r="");const c=i(l).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(hs).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":S(o),"aria-hidden":"false","aria-live":S(a),role:d,...u?{"data-aui-focus-selector":hs.split(", ").map((e=>`.aui-message ${e}`)).join(", "),"data-aui-focus":"true"}:{},...r?{"aria-description":S(r)}:{}}).append(c)}(t);return function(e){const t=e[0];t.close=function(){vs(e)}}(n),"auto"===t.close?(ms(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&&ms(n),function(){const e=bs();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="'+ps+'"></div>')}(),function(e){const t=bs();e.appendTo(t),B(e),e.removeAttr("hidden").attr("open","")}(n),setTimeout((function(){"alertdialog"===n.attr("role")&&fe.global.enter(n)}),0),n.get(0)}function ms(e){const t=i(Tt);return t.on("click",(function(){vs(e)})),t.on("keypress",(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(vs(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function vs(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 CustomEvent("aui-flag-close",{bubbles:!0})),t}function bs(){return document.getElementById(ps)}G("aui/flag",gs),l("flag",gs);const ys=gs;var ws=a(722);const _s=a.n(ws)();const xs=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")}}},Cs="-input";function Ts(e){return e.querySelector("label")}const ks=Z("aui-label",{template:We()("<label><content></content></label>"),created:function(e){e._label=Ts(e)},attached:function(e){xs(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?Ts(e).setAttribute("for",`${t.newValue}${Cs}`):Ts(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?Ts(e).setAttribute("form",t.newValue):Ts(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 Es=i.fn.select2,As="aui-select2-container",Ds="aui-select2-drop aui-dropdown2",Ss="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=As+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=Ds+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:As,dropdownCssClass:Ds}];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=Es.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...e],t(...i)};n.ajax.transport=i}const s=Es.apply(this,t),a=this,o=n.searchLabel;return a.on("select2-open",(function(){const e=i(this),t=e.select2("dropdown");let s=e.data(Ss);s||(s=Me(),e.data(Ss,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")||o&&t.find(".select2-search label").text(o)})),a.on("select2-close",(function(){const e=i(this),t=e.data(Ss);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(o&&t.find(".select2-search-field label").text(o));const s=t.find("label");if(s.attr("id"))return;const a=t.find(".select2-focusser"),r=a.attr("id")+"-label",l=a.attr("aria-labelledby");s.attr("id",r),a.attr("aria-labelledby",r+" "+l)})),s},i.fn.spin=R((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:"11.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=R((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:"11.0.0",alternativeName:"<aui-spinner>"});const Is=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 Ms=a(572),Ns=a.n(Ms),Os=Ns().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,dt.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,dt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,dt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return Ns().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,dt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,dt.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",Os);const Ls=Os,Ps=Ns().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});const Rs=function(){return{_suggestions:[],_activeIndex:-1,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}}};function $s(e,t){return e+"-"+t}function js(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}const zs=function(e,t){const n={el:e,anchor:t,render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let a=0;a<e.length;a++){const o=e[a],r=a+t,l=o.getLabel(),c=o.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=o.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===r}" id="${$s(i,r)}">${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){js(this.el),i(this.el).find("#"+$s(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(e){i(e.el).css("min-width",i(e.anchor).outerWidth())}(this),Me(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new fn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){js(this.el),Me(this.el).hide(),function(e){e._auiAlignment&&e._auiAlignment.disable()}(this)},destroy:function(){this.hide(),function(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}(this),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};return n},Fs=We()('\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'),Hs=-1,Us=-1,Bs=50;function Ws(e){e._select.selectedIndex=Hs,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Vs(e){return e._suggestionModel.getNumberOfResults()}function Ys(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function qs(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),sa(e,"")}function Ks(e){e._suggestionsView.hide(),qs(e)}function Qs(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Gs(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 Zs(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),o=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=o,e._input.value=o,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function Js(e){Zs(e,e._suggestionModel.highlighted()),Gs(e),Ks(e)}function Xs(e){return new Ps(e.serialize())}function ea(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Xs(n))}return t}function ta(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function ia(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function na(e){e._progressiveDataSet=new Ls(ea(e),{model:Ps,matcher:Ys,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=ea(e));var i=-1!==ia(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new Is;t.setAttribute("value",e._input.value);var i=Xs(t);return i.set("new-value",!0),i}(e));let s=ia(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),o=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(o),setTimeout((function(){const t=ta(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")}),Bs)),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 sa(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout((()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)}),Bs)}function aa(e){Qs(e,!0,e.value?"":e._input.value)}function oa(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function ra(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function la(e){oa(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==ra(e);if(i||n)if(t)Ws(e);else{var s=ra(e);void 0===s?Ws(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(Us)}(e),Ks(e)}const ca=Z("aui-select",{template:Fs,created:function(e){e._listId=wn(),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 zs(e._dropdown,e._input),e._suggestionModel=new Rs,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=ea(e),s=ia(e.value,n),a=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),sa(e,a)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=ta(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),na(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){Vs(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(!Vs(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Js(e),i(e).closest(".aui-layer").length>0&&(t=!0)}))}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&Zs(e,Xs(t))}(e),function(e){var t=Vs(e)?0:Us;e._suggestionModel.highlight(t),Ks(e)}(e),Gs(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),gn(e).then((()=>{Ks(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+Cs)},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){la(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){aa(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?Qs(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Ks(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return oa(e),void qs(e);e._suggestionsView.isVisible()&&Vs(e)?t.keyCode===Q.ENTER?(oa(e),Js(e),t.preventDefault()):t.keyCode===Q.TAB?(Js(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||(aa(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new CustomEvent("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 Ps({value:e,label:e})),Zs(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),la(this),this},focus:function(){return this._input.focus(),aa(this),this}}});G("aui/select",ca),l("select",ca);const ua=ca,{entries:da,setPrototypeOf:ha,isFrozen:pa,getPrototypeOf:fa,getOwnPropertyDescriptor:ga}=Object;let{freeze:ma,seal:va,create:ba}=Object,{apply:ya,construct:wa}="undefined"!=typeof Reflect&&Reflect;ma||(ma=function(e){return e}),va||(va=function(e){return e}),ya||(ya=function(e,t,i){return e.apply(t,i)}),wa||(wa=function(e,t){return new e(...t)});const _a=Ra(Array.prototype.forEach),xa=Ra(Array.prototype.lastIndexOf),Ca=Ra(Array.prototype.pop),Ta=Ra(Array.prototype.push),ka=Ra(Array.prototype.splice),Ea=Ra(String.prototype.toLowerCase),Aa=Ra(String.prototype.toString),Da=Ra(String.prototype.match),Sa=Ra(String.prototype.replace),Ia=Ra(String.prototype.indexOf),Ma=Ra(String.prototype.trim),Na=Ra(Object.prototype.hasOwnProperty),Oa=Ra(RegExp.prototype.test),La=(Pa=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return wa(Pa,t)});var Pa;function Ra(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 ya(e,t,n)}}function $a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ea;ha&&ha(e,null);let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){const e=i(s);e!==s&&(pa(t)||(t[n]=e),s=e)}e[s]=!0}return e}function ja(e){for(let t=0;t<e.length;t++){Na(e,t)||(e[t]=null)}return e}function za(e){const t=ba(null);for(const[i,n]of da(e)){Na(e,i)&&(Array.isArray(n)?t[i]=ja(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=za(n):t[i]=n)}return t}function Fa(e,t){for(;null!==e;){const i=ga(e,t);if(i){if(i.get)return Ra(i.get);if("function"==typeof i.value)return Ra(i.value)}e=fa(e)}return function(){return null}}const Ha=ma(["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","section","select","shadow","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"]),Ua=ma(["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"]),Ba=ma(["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"]),Wa=ma(["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"]),Va=ma(["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"]),Ya=ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qa=ma(["#text"]),Ka=ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qa=ma(["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","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","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","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-rendering","textlength","type","u1","u2","unicode","values","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"]),Ga=ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Za=ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ja=va(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xa=va(/<%[\w\W]*|[\w\W]*%>/gm),eo=va(/\$\{[\w\W]*/gm),to=va(/^data-[\-\w.\u00B7-\uFFFF]+$/),io=va(/^aria-[\-\w]+$/),no=va(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),so=va(/^(?:\w+script|data):/i),ao=va(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oo=va(/^html$/i),ro=va(/^[a-z][.\w]*(-[.\w]+)+$/i);var lo=Object.freeze({__proto__:null,ARIA_ATTR:io,ATTR_WHITESPACE:ao,CUSTOM_ELEMENT:ro,DATA_ATTR:to,DOCTYPE_NAME:oo,ERB_EXPR:Xa,IS_ALLOWED_URI:no,IS_SCRIPT_OR_DATA:so,MUSTACHE_EXPR:Ja,TMPLIT_EXPR:eo});const co=1,uo=3,ho=7,po=8,fo=9,go=function(){return"undefined"==typeof window?null:window};var mo=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go();const i=t=>e(t);if(i.version="3.2.6",i.removed=[],!t||!t.document||t.document.nodeType!==fo||!t.Element)return i.isSupported=!1,i;let{document:n}=t;const s=n,a=s.currentScript,{DocumentFragment:o,HTMLTemplateElement:r,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=c.prototype,m=Fa(g,"cloneNode"),v=Fa(g,"remove"),b=Fa(g,"nextSibling"),y=Fa(g,"childNodes"),w=Fa(g,"parentNode");if("function"==typeof r){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:E}=n,{importNode:A}=s;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof da&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:S,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=lo;let{IS_ALLOWED_URI:$}=lo,j=null;const z=$a({},[...Ha,...Ua,...Ba,...Va,...qa]);let F=null;const H=$a({},[...Ka,...Qa,...Ga,...Za]);let U=Object.seal(ba(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}})),B=null,W=null,V=!0,Y=!0,q=!1,K=!0,Q=!1,G=!0,Z=!1,J=!1,X=!1,ee=!1,te=!1,ie=!1,ne=!0,se=!1,ae=!0,oe=!1,re={},le=null;const ce=$a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=$a({},["audio","video","img","source","image","track"]);let he=null;const pe=$a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ve=me,be=!1,ye=null;const we=$a({},[fe,ge,me],Aa);let _e=$a({},["mi","mo","mn","ms","mtext"]),xe=$a({},["annotation-xml"]);const Ce=$a({},["title","style","font","a","script"]);let Te=null;const ke=["application/xhtml+xml","text/html"];let Ee=null,Ae=null;const De=n.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=za(e),Te=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===Te?Aa:Ea,j=Na(e,"ALLOWED_TAGS")?$a({},e.ALLOWED_TAGS,Ee):z,F=Na(e,"ALLOWED_ATTR")?$a({},e.ALLOWED_ATTR,Ee):H,ye=Na(e,"ALLOWED_NAMESPACES")?$a({},e.ALLOWED_NAMESPACES,Aa):we,he=Na(e,"ADD_URI_SAFE_ATTR")?$a(za(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,ue=Na(e,"ADD_DATA_URI_TAGS")?$a(za(de),e.ADD_DATA_URI_TAGS,Ee):de,le=Na(e,"FORBID_CONTENTS")?$a({},e.FORBID_CONTENTS,Ee):ce,B=Na(e,"FORBID_TAGS")?$a({},e.FORBID_TAGS,Ee):za({}),W=Na(e,"FORBID_ATTR")?$a({},e.FORBID_ATTR,Ee):za({}),re=!!Na(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Q=e.SAFE_FOR_TEMPLATES||!1,G=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,$=e.ALLOWED_URI_REGEXP||no,ve=e.NAMESPACE||me,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,xe=e.HTML_INTEGRATION_POINTS||xe,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(Y=!1),te&&(ee=!0),re&&(j=$a({},qa),F=[],!0===re.html&&($a(j,Ha),$a(F,Ka)),!0===re.svg&&($a(j,Ua),$a(F,Qa),$a(F,Za)),!0===re.svgFilters&&($a(j,Ba),$a(F,Qa),$a(F,Za)),!0===re.mathMl&&($a(j,Va),$a(F,Ga),$a(F,Za))),e.ADD_TAGS&&(j===z&&(j=za(j)),$a(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(F===H&&(F=za(F)),$a(F,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&$a(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=za(le)),$a(le,e.FORBID_CONTENTS,Ee)),ae&&(j["#text"]=!0),Z&&$a(j,["html","head","body"]),j.table&&($a(j,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=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}}(f,a)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));ma&&ma(e),Ae=e}},Me=$a({},[...Ua,...Ba,...Wa]),Ne=$a({},[...Va,...Ya]),Oe=function(e){Ta(i.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},Le=function(e,t){try{Ta(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ta(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,i=null;if(X)e="<remove></remove>"+e;else{const t=Da(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Te&&ve===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=_?_.createHTML(e):e;if(ve===me)try{t=(new p).parseFromString(s,Te)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?x:s}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),ve===me?E.call(t,Z?"html":"body")[0]:Z?t.documentElement:a},Re=function(e){return T.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$e=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,n){_a(e,(e=>{e.call(i,t,n,Ae)}))}const Fe=function(e){let t=null;if(ze(D.beforeSanitizeElements,e,null),$e(e))return Oe(e),!0;const n=Ee(e.nodeName);if(ze(D.uponSanitizeElement,e,{tagName:n,allowedTags:j}),G&&e.hasChildNodes()&&!je(e.firstElementChild)&&Oa(/<[/\w!]/g,e.innerHTML)&&Oa(/<[/\w!]/g,e.textContent))return Oe(e),!0;if(e.nodeType===ho)return Oe(e),!0;if(G&&e.nodeType===po&&Oa(/<[/\w]/g,e.data))return Oe(e),!0;if(!j[n]||B[n]){if(!B[n]&&Ue(n)){if(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,n))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(n))return!1}if(ae&&!le[n]){const t=w(e)||e.parentNode,i=y(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n){const s=m(i[n],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,b(e))}}}return Oe(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const i=Ea(e.tagName),n=Ea(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===i:t.namespaceURI===fe?"svg"===i&&("annotation-xml"===n||_e[n]):Boolean(Me[i]):e.namespaceURI===fe?t.namespaceURI===me?"math"===i:t.namespaceURI===ge?"math"===i&&xe[n]:Boolean(Ne[i]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[n])&&!(t.namespaceURI===fe&&!_e[n])&&!Ne[i]&&(Ce[i]||!Me[i]):!("application/xhtml+xml"!==Te||!ye[e.namespaceURI]))}(e)?(Oe(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Oa(/<\/no(script|embed|frames)/i,e.innerHTML)?(Q&&e.nodeType===uo&&(t=e.textContent,_a([S,I,M],(e=>{t=Sa(t,e," ")})),e.textContent!==t&&(Ta(i.removed,{element:e.cloneNode()}),e.textContent=t)),ze(D.afterSanitizeElements,e,null),!1):(Oe(e),!0)},He=function(e,t,i){if(ne&&("id"===t||"name"===t)&&(i in n||i in De))return!1;if(Y&&!W[t]&&Oa(N,t));else if(V&&Oa(O,t));else if(!F[t]||W[t]){if(!(Ue(e)&&(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&Oa(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,i)||U.tagNameCheck instanceof Function&&U.tagNameCheck(i))))return!1}else if(he[t]);else if(Oa($,Sa(i,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ia(i,"data:")||!ue[e]){if(q&&!Oa(L,Sa(i,P,"")));else if(i)return!1}else;return!0},Ue=function(e){return"annotation-xml"!==e&&Da(e,R)},Be=function(e){ze(D.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||$e(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let s=t.length;for(;s--;){const a=t[s],{name:o,namespaceURI:r,value:l}=a,c=Ee(o),u=l;let d="value"===o?u:Ma(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,ze(D.uponSanitizeAttribute,e,n),d=n.attrValue,!se||"id"!==c&&"name"!==c||(Le(o,e),d="user-content-"+d),G&&Oa(/((--!?|])>)|<\/(style|title)/i,d)){Le(o,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Le(o,e);continue}if(!K&&Oa(/\/>/i,d)){Le(o,e);continue}Q&&_a([S,I,M],(e=>{d=Sa(d,e," ")}));const h=Ee(e.nodeName);if(He(h,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(r);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{r?e.setAttributeNS(r,o,d):e.setAttribute(o,d),$e(e)?Oe(e):Ca(i.removed)}catch(t){Le(o,e)}}else Le(o,e)}ze(D.afterSanitizeAttributes,e,null)},We=function e(t){let i=null;const n=Re(t);for(ze(D.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)ze(D.uponSanitizeShadowNode,i,null),Fe(i),Be(i),i.content instanceof o&&e(i.content);ze(D.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,r=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw La("toString is not a function");if("string"!=typeof(e=e.toString()))throw La("dirty is not a string, aborting")}if(!i.isSupported)return e;if(J||Ie(t),i.removed=[],"string"==typeof e&&(oe=!1),oe){if(e.nodeName){const t=Ee(e.nodeName);if(!j[t]||B[t])throw La("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Pe("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===co&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return _&&ie?_.createHTML(e):e;if(n=Pe(e),!n)return ee?null:ie?x:""}n&&X&&Oe(n.firstChild);const u=Re(oe?e:n);for(;r=u.nextNode();)Fe(r),Be(r),r.content instanceof o&&We(r.content);if(oe)return e;if(ee){if(te)for(c=k.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(s,c,!0)),c}let d=Z?n.outerHTML:n.innerHTML;return Z&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Oa(oo,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Q&&_a([S,I,M],(e=>{d=Sa(d,e," ")})),_&&ie?_.createHTML(d):d},i.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},i.clearConfig=function(){Ae=null,J=!1},i.isValidAttribute=function(e,t,i){Ae||Ie({});const n=Ee(e),s=Ee(t);return He(n,s,i)},i.addHook=function(e,t){"function"==typeof t&&Ta(D[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=xa(D[e],t);return-1===i?void 0:ka(D[e],i,1)[0]}return Ca(D[e])},i.removeHooks=function(e){D[e]=[]},i.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const vo="aui-tooltip",bo={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},yo="aui-tooltip",wo={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let _o;const xo=(e=!1)=>{const t=_o&&_o.get(0);t&&(t.classList.toggle("hidden",e),t.setAttribute("aria-hidden",e))};class Co{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options={...wo,...t},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),To.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",vo),null}))}restoreOriginalAttributes(){const e=this.$triggerElement;this.originalTitle&&e.attr("title",this.originalTitle),e.attr("aria-describedby")===vo&&e.removeAttr("aria-describedby")}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(`.${yo}`,e):(this.triggerObservers.length>0&&this.triggerObservers.forEach((e=>e.disconnect())),this.$triggerElement.off(`.${yo}`))}initContainer(){(void 0===_o||_o.get(0)&&!_o.get(0).isConnected)&&(_o=i(`<div id="${vo}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(_o))}buildTip(e){const t=this.options,i=_o.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=mo.sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),_o}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;_o&&e!==_o.text()&&this.hide();const t=this.triggerElement,n=bo[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.${yo}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${yo}`)}showTooltip(){xo(!1)}hideTooltip(){xo(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const To=new WeakMap,ko=(e,t)=>{let i=To.get(e);return void 0===i&&(i=new Co(e,t),"object"==typeof e&&To.set(e,i)),i},Eo=e=>e.map((e=>`${e}.${yo}`)).join(" "),Ao=Eo(["mouseenter","focus"]),Do=Eo(["click","mouseleave","blur"]);let So,Io;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return ko(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(Io),clearTimeout(So)},s=function(){n();const e=ko(this,i);So=setTimeout((()=>{n(),e.show(),_o&&(_o.off(`mouseenter.${yo}`),_o.off(`mouseleave.${yo}`),_o.on(`mouseenter.${yo}`,(()=>{n()})),_o.on(`mouseleave.${yo}`,(()=>{n(),a()})))}),300)},a=function(){n();const e=ko(this,i);Io=setTimeout((()=>{e.hide()}),300)},o=function(e){"Escape"===e.code&&a()},r=i.live;return void 0!==r?(i.$delegationRoot=t,t.on(Ao,r,s),t.on(Do,r,a),t.on("keyup",r,o)):(t.on(Ao,s),t.on(Do,a),t.on("keyup",o)),t};function Mo(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const No={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Mo,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 yt)}function Po(e,t){Oo(t).removeAttribute(e)}function Ro(e,t,i){Oo(t).setAttribute(e,i.newValue)}function $o(e){return{removed:Po.bind(this,e),fallback:Ro.bind(this,e)}}const jo={removed:function(e){Po.call(this,"form",e),e._formId=null},fallback:function(e,t){Ro.call(this,"form",e,t),e._formId=t.newValue}},zo={removed:Po.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${Cs}`;Oo(e).setAttribute("id",i)}},Fo={removed:function(e){Po.call(this,"value",e),Oo(e).value="on"},fallback:function(e,t){Ro.call(this,"value",e,t)}},Ho={removed:function(e){Oo(e).checked=!1},fallback:function(e){Oo(e).checked=!0}},Uo={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===Mt)try{document.querySelector(":focus-within"),Mt=!0}catch(e){Mt=!1}return Mt}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const Wo=Z("aui-toggle",{template:We()('<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",ht.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){xs(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 CustomEvent("change",{bubbles:!0}))}(e)),Mo(e,"checked",i.checked)}},attributes:{id:zo,checked:Ho,disabled:$o("disabled"),form:jo,name:$o("name"),value:Fo,"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:Uo},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,Mo(this,"checked",e))},get disabled(){return Oo(this).disabled},set disabled(e){return Mo(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return jo.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 Mo(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}}}),Vo=Wo,Yo=1e3;function qo(e,t){rr(e)&&te(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),ee(e,t)}function Ko(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 fn(e,t,i)}}function Qo(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Go(e,t){var i=t.currentTarget;i&&(qo(e,i),Ko(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function Zo(e=0){return function(t){t.open&&!Me(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 Jo={click(e,t){e.open&&!Me(e).isPersistent()?e.open=!1:(qo(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:Go,mouseleave:Zo(Yo),focus:Go,blur:Zo(0)};function Xo(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function er(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function tr(e){var t=e.currentTarget;"hover"===t.respondsTo&&Zo(Yo)(t)}function ir(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",Xo),e.removeEventListener("mouseleave",er),e.removeEventListener("blur",tr),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",Xo),e.addEventListener("mouseleave",er),e.addEventListener("blur",tr))}function nr(e,t){return`${e}.nested-layer-${t}`}function sr(e){return Me(e).show(),!0===Me(e).isVisible()}function ar(e){return Me(e).hide(),!1===Me(e).isVisible()}function or(e){return"hover"!==e.respondsTo}function rr(e){return"dialog"!==e.getAttribute("role")}function lr(e){e.__initialised||(Me(e),i(e).on({[`${me}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(nr("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(nr("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(nr("select2-opening",n),(()=>{t.attr("persistent","")})).on(nr("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(t),te(t,(function(e){or(t)&&fe().enter(i(t),i(e)),Ko(t,e),rr(t)&&e.setAttribute("aria-expanded","true")})))},[`${me}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(nr("aui-layer-hide",n)).off(nr("aui-layer-show",n)).off(nr("select2-opening",n)).off(nr("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):Qo(t),te(t,(function(e){or(t)&&fe().exit(i(t)),rr(t)&&e.setAttribute("aria-expanded","false")})),ee(t,null))}}),e.__initialised=!0)}const cr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},ur=Z("aui-inline-dialog",{prototype:{get open(){return Me(this).isVisible()},set open(e){this.__propUpdate=!0,e?sr(this):ar(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){No.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=cr.attribute;return No.computeEnumValue(cr,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;No.setEnumAttribute(this,cr,e),t!==this.respondsTo&&ir(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&&Jo[i.type](t,i),this}},attributes:{open:function(e,t){if(lr(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){sr(e)||Mo(e,"open",!1)}if("removed"===t.type){ar(e)||Mo(e,"open",!0)}}},"responds-to":function(e,t){No.computeEnumValue(cr,t.oldValue)!==No.computeEnumValue(cr,t.newValue)&&ir(e)}},created:lr,attached:function(e){xs(e).attributeExists("id"),e.setAttribute("tabindex",0),rr(e)&&(e.setAttribute("role","group"),te(e,(function(t){t.setAttribute("aria-expanded",e.open)})),ie(e,(function(e){e.setAttribute("aria-haspopup","true")}))),ir(e)},detached:function(e){gn(e).then((()=>{Qo(e),rr(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",ur),l("InlineDialog2",ur);const dr=ur;function hr(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new hr(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(){pr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){pr(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}hr.prototype.isNested=function(){return 1===this.$treeParent.length},hr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},hr.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},hr.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},hr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const pr=ge("navigation",hr),fr=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new hr(e)},detached:function(e){i(e).removeData()}});l("navigation",pr);const gr=pr,mr="aui-progress-indicator-after-update",vr="aui-progress-indicator-before-update",br="transitionend webkitTransitionEnd";function yr(e,t,{currentProgress:n,value:s}){const a=i(e),o=i(t);"number"==typeof s&&s<=1&&s>=0&&(o.trigger(vr,[n,s]),a.one(br,(function(){o.trigger(mr,[n,s])})),function(e,t,i){B(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,o,s))}function wr(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),B(t),n.css("width","")}const _r={indeterminate:!1,max:1,val:0};function xr(e){return(0,dt.isNumber)(e)&&(0,dt.isFinite)(e)&&!(0,dt.isNaN)(e)}function Cr(e,t=1){const i=parseFloat(e);return xr(i)?i:Number(t)}function Tr(e,t=1){return Number(parseFloat(e).toFixed(t))}function kr(e){const{val:t,max:i}=e,n=function(e){return e>0?e:_r.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Tr(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Tr(100*a,2)}}function Er(e){const{val:t,valAsFraction:i,max:n}=kr(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),wr(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),yr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Ar(e,t){e._data.val=Cr(t.newValue,t.oldValue||_r.val),Er(e)}function Dr(e,t){e._data.max=Cr(t.newValue,t.oldValue||_r.max),Er(e)}const Sr=Z("aui-progressbar",{template(e){e._data.max=Cr(e.getAttribute("max"),_r.max),e._data.val=Cr(e.getAttribute("value"),_r.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=kr(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){Er(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:_r.val,fallback:function(e,t){if(e._updating)return!1;Ar(e,t)}},max:{value:_r.max,fallback:function(e,t){if(e._updating)return!1;Dr(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,dt.defaults)({},_r))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Er(this)},get value(){const{val:e}=kr(this._data);return e},set value(e){if(!xr(e))return!1;const t={newValue:Tr(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Ar(this,t)},get max(){const{max:e}=kr(this._data);return e},set max(e){if(!xr(e))return!1;const t={newValue:Tr(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Dr(this,t)}}}),Ir={update:R((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"),o=!a,r=parseFloat(a)||0,l=a&&r===t;if(l){l=r===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return o&&s.css("width",0),yr(s,n,{currentProgress:r,value:t}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(wr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Ir);const Mr=Ir;a(99);const Nr={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Or(e,t){let n=Object.assign({},Nr,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 Lr={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 o=(i+s).slice(0,10);return o+=(a+n).slice(-6),o},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(){Or(i(this))}))},setTableSortable:function(e,t){return Or(e,t)}};i(Lr.setup),l("tablessortable",Lr);function Pr(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",wn(s))}))}l("_addID",Pr);const Rr=Pr;function $r(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",$r);const jr=$r;var zr=window.skateTemplateHtml,Fr="_internal-aui-tabs-",Hr='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function Ur(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Br(e){let t=Ur(e);return t?document.getElementById(t):null}var Wr={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,o=0;s(a,n,t)&&o<e.length;o++){a+=i(e[o]).outerWidth(!0)}return e.slice(0,o-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),o=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),r=o.length-1,l=e.length-1;l>=r;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(o)},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 o=i(e[a]),r=parseInt(o.attr("data-aui-tab-width"),10);r<t&&this.moveTabOutOfDropdown(o,n),t-=r}},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 Vr(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=Br(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"),o=i(document.getElementById(a));if(o.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),o.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 r=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");r.removeClass("active-tab"),r.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 Yr(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function qr(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return Fr+(t||"")+(i&&"true"!==i?"-"+i:"")}function Kr(e){el.change(i(e.target).closest("a")),e&&e.preventDefault()}function Qr(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)"),o=s.find(".aui-tabs-responsive-trigger").parent(),r=o.find("a"),l=r.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Wr.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(o=Wr.createResponsiveDropdownTrigger(s,t),c=Wr.createResponsiveDropdown(n,t)),r.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),r.attr("id","aui-tabs-responsive-trigger-"+t),r.attr("href","#aui-tabs-responsive-trigger-"+t),c.attr("id","aui-tabs-responsive-dropdown-"+t),d){var h=Wr.moveVisibleTabs(a.toArray(),n,o),p=Wr.totalVisibleTabWidth(h),f=n.outerWidth()-p-o.outerWidth(!0);if(f>0){var g=c.find("li");Wr.moveInvisibleTabs(g.toArray(),f,o)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Kr),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Wr.moveTabOutOfDropdown(i(this),o)})),Wr.removeResponsiveDropdown(c,o))}(e,t)}))}function Gr(){return i(Hr).toArray()}function Zr(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=Br(t),Ur(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(Rr(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",Kr),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(Xr)}(e)}}function Jr(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){Zr(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(Yr(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(qr(n));if(a){var o=s.querySelector(`a[href$="${a}"]`);o&&Vr(o)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function Xr(e){e.setAttribute("role","tabpanel")}var el={setup:function(){!function(){const e=(0,dt.debounce)(Qr,200);e(Gr()),i(window).on("resize.aui-tabs",(()=>e(Gr())))}(),Jr(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||jr(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");Vr(n),Yr(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=Ur(e);i&&window.localStorage.setItem(qr(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(el.setup);const tl=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),Zr(e)},template:zr('<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&&el.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),il=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:zr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nl=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 il,o=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),zr.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&o.addClass("active-tab"),n.siblings("ul").append(a)},template:zr("<content></content>")});l("tabs",el);const sl="_aui-form-notification-initialised",al="aria-describedby",ol="description",rl="errors",ll="data-aui-notification-",cl=ll+"wait",ul=ll+"info",dl=ll+"error",hl=[dl,ll+"success",cl,ul];function pl(e){fl(e)||(!function(e){e.addClass(sl),gl(e)}(e),bl(e))}function fl(e){return e.hasClass(sl)}function gl(e,t){if(t=t||ml(e),vl(e)===ul){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}-${ol}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${ol}">${t}</div>`}(e,t))}yl(e)}function ml(e){var t=vl(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 vl(e){let t;return hl.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function bl(e){const t=i(e);if(!fl(t))return;const n=vl(t);xl(t,n===cl);const s=ml(t);s&&n===dl?wl(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(dl)||t.parent().find(".error").remove()}function yl(e){const t=[],i=e.attr("id")||e.attr("name"),n=vl(e);ml(e)&&n===dl&&t.push(`${i}-${rl}`),_l(e,"description").length&&t.push(`${i}-${ol}`);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(al,t.length?t.join(" "):null)}function wl(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}-${rl}"><ul>${n}</ul></div>`}(e,t)),yl(e)}function _l(e,t){return e.parent().find(`.${t}`)}function xl(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 Cl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){Cl(),pl(i(e))},attributes:function(){const e={};return hl.forEach((function(t){e[t]=bl})),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Tl=["displayfield","watchfield","when","novalidate","state"],kl=[];var El={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,Tl);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 kl.push(a),a},validators:function(){return kl}};G("aui/form-validation/validator-register",El);const Al=El;function Dl(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=Ll("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=Ll("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=Ll("maxlength",e.args);e.invalidate(t)}else e.validate()}function Sl(e){return"password"===e.getAttribute("type")}function Il(e,t){var i=e.match(t);return!!i&&e===i[0]}function Ml(e){var t=Ll("pattern",e.args);Il(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function Nl(e){var t=Ll("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ol(e){var t=Ll("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(Ll("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(Ll("max",e.args)):e.validate()}}function Ll(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:Pl[e];var s=i;i||(s=[t(e)]);var a,o=t(e+"-msg");return a=o?[o].concat(s):[n].concat(s),AJS.format.apply(null,a)}Al.register(["maxlength","minlength"],Dl),Al.register("[maxlength],[minlength]",Dl),Al.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=Ll("matchingfield",e.args,[t,n]);(Sl(e.el)||Sl(i))&&(s=Ll("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Al.register(["doesnotcontain"],(function(e){var t=Ll("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Al.register(["pattern"],Ml),Al.register("[pattern]",Ml),Al.register(["required"],Nl),Al.register("[required]",Nl),Al.register(["min","max"],Ol),Al.register("[min],[max]",Ol),Al.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=Ll("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 o=new RegExp(a+"$","i");Il(e.el.value,o)?e.validate():e.invalidate(i)})),Al.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=Ll("minchecked",e.args),o=Ll("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(o):e.invalidate(a)}));var Pl={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 Rl="aui-validation-",$l="data-aui-notification-",jl="aui-validation-state",zl="invalid",Fl="valid",Hl="validating",Ul="unvalidated",Bl="_aui-form-validation-initialised",Wl="_aui-internal-field-state-changed";function Vl(e){(function(e){return e.hasClass(Bl)})(e)||(!function(e){e.addClass(Bl),gl(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=ql(e,"when"),i=ql(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,(function(){Yl(e)}))}(e)}(e),Gl(e,Ul))}function Yl(e){if(!ql(e,"novalidate"))return function(e){!function(e){Zl(Xl(e),"none")}(e);var t=function(e){var t=[];return Kl().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);Gl(e,Hl);var n=function(e,t){var n=[];return t.forEach((function(t){var s=Kl()[t].validatorFunction,a=new i.Deferred,o=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){Gl(e,zl,i),t.reject()},args:Ql(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a);s(o),n.push(a)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){Gl(e,Fl)})),s}(e);Gl(e,Fl)}function ql(e,t){var i=e.attr("data-"+Rl+t);return i||(i={when:"change"}[t]),i}function Kl(){return Al.validators()}function Ql(e){return function(t){return e.attr("data-"+Rl+t)||e.attr(t)}}function Gl(e,t,n){if(e.attr("data-"+jl,t),e.attr("aria-invalid",!1),t!==Ul){e.trigger(i.Event(Wl));var s=Xl(e),a={};a[Hl]="wait",a[zl]="error",a[Fl]="success";var o=a[t];t===Hl?function(e){setTimeout((function(){ec(e)===Hl&&(Zl(e,"wait"),xl(e,!0))}),500)}(e):Zl(s,o,n),t===zl&&e.attr("aria-invalid",!0)}}function Zl(e,t,i){const n=function(e){return e.is("["+$l+"wait]")}(e);!function(e){Jl(e,"wait"),xl(e,!1),Jl(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)Jl(e,"error");else{const n=e.attr($l+t)||"[]",o=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr($l+t,JSON.stringify(o)),"error"===t&&wl(e,o)}}function Jl(e,t){e.removeAttr($l+t),"error"===t&&(_l(e,t).remove(),yl(e))}function Xl(e){var t=ql(e,"displayfield");return void 0===t?e:i("#"+t)}function ec(e){return e.attr("data-"+jl)}function tc(e,t){t.preventDefault(),e.one(Wl,(function(){e.trigger("submit")}))}function ic(e,t){var i="[data-"+jl+"="+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("."+Bl);return r=t,n=i.map(r,(function(e){return ec(i(e))})),s=-1!==n.indexOf(zl),a=-1!==n.indexOf(Ul),o=-1!==n.indexOf(Hl),s?zl:a?Ul:o?Hl:Fl;var n,s,a,o;var r}(n);if(s===Ul)tc(n,e),function(e){var t=ic(e,Ul);t.each((function(e,t){nc.validate(i(t))}))}(n);else if(s===Hl)tc(n,e);else if(s===zl)e.preventDefault(),function(e){var t=ic(e,zl).first();t.focus()}(n);else if(s===Fl){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}}));const nc={register:Al.register,validate:function(e){Yl(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),Vl(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",nc),l("formValidation",nc);var sc=R((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:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const ac=sc;l("debounce",sc);var oc=R((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:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});l("debounceImmediate",oc);const rc=i(window);function lc(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)})}lc.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,rc.on("resize",this._resizeHandler=ac((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(){rc.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 o=this.menuItems[a].$element,r=o.children("a");if(r.attr("aria-controls")){var l=i(document.getElementById(r.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),o.append(l)}t.find("aui-item-link:first").remove(),o.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=We().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var o=this.menuItems[a].$element,r=o.children("a");Z.init(r);var l=document.createElement("aui-item-link");if(l.setAttribute("href",r.attr("href")),r.attr("aria-controls")){var c=i(document.getElementById(r.attr("aria-controls")));l.setAttribute("for",r.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(r.get(0).hasAttribute("data-aui-extra-classes")){const e=Array.from(r.get(0).classList).filter((e=>!e.startsWith("aui-")));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),We().wrap(l).textContent=r.text(),o.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:o[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const cc=function(e){let t=e._header;return t instanceof lc||(t=new lc(e),t.init(),e._header=t),t};function uc(){i(".aui-header").each((function(){cc(this)}))}i(uc);const dc={};dc.setup=R(uc,"responsiveheader.setup",{removeInVersion:"11.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",dc);const hc=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?cc(t):console.log("Could not async. initialise aui-header")}});var pc=a(253),fc=a.n(pc);const gc=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:a,onChangeMonthYear:o})=>({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:o,prevText:"<"}),mc=(e,t)=>{let n,s,a,o=!1;const r=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),r=n.closest(".ui-datepicker-header").length;if(!a&&!r||t.keyCode===Q.ESCAPE)return h(),void(o=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{o||(r.on("focus blur click mousedown","*",l),o=!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 dr;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=>{o&&e.preventDefault(),r.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._datePickerPopup}))),r.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),r.off("keydown",c),r.off("focus blur click mousedown keydown",l)},createPolyfill:function(){r.on("keydown",l),e.on("focusout keydown",c)}}},vc=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:o,handleFieldFocus:r,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 bc.prototype.localisations||(n.languageCode="");const y=bc.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=gc({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),r=i.extend(void 0,s,y);n.firstDay>-1&&(r.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let o;return a.datepicker(e),s&&(o=i("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(s),t.append(o)),a})({config:r,popupContents:o({$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})}if(t.on("focus click",r),t.attr("placeholder",n.placeholder),"text"!==t.prop("type")){t.prop("type","text");const e=t.attr("value");e&&t.val(e)}t.trigger("propertychange"),t.attr("data-aui-dp-uuid",s)};function bc(e,t){let n={};const s=wn("date-picker"),a=i(e),o={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof o.destroyPolyfill&&o.destroyPolyfill()},reset:()=>{o.destroy();const e=!bc.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&vc(o)},reconfigure:e=>{n=i.extend(void 0,bc.prototype.defaultOptions,e),o.reset()}};return o.reconfigure(t),o}function yc(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}bc.prototype.browserSupportsDateField=function(){if(void 0===It){var e=document.createElement("input");e.setAttribute("type","date"),It="date"===e.type}return It}(),bc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:fc().W3C},bc.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"===bc.prototype.localisations.yearSuffix&&(bc.prototype.localisations.yearSuffix="");const wc="aui-datepicker",_c=e=>function(t){let i=this.data(wc);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(wc,i)),i};i.fn.datePicker=_c(bc),l("DatePicker",bc),i.fn.calendarWidget=_c(yc),l("CalendarWidget",yc);const xc=bc;a(229),a(228),a(132),a(903);const Cc={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"},Tc=Ns().View,kc=Ns().View,Ec=Ns().View,Ac={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(682);const Dc={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"},Sc='<aui-spinner size="small"></aui-spinner>',Ic="aui-spinner";function Mc(e){0===e.find(Ic).length&&e.find(`.${Cc.STATUS}`).append(Sc)}function Nc(e){e.find(`.${Cc.STATUS} ${Ic}`).remove()}var Oc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Lc=Ns().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Dc,this.classNames=Cc,this.dataKeys=Ac,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 Oc&&(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 Oc&&(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 Mc(this.$el),this},hideLoading:function(){return Nc(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,o,r=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:r,allowEdit:s.allowEdit},e.values,t.model];r&&t.$el.attr("data-"+s.id,r),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),o=i("<td />"),"object"==typeof a&&a.done?a.done((function(e){o.append(e)})):o.append(a),s.styleClass&&o.addClass(s.styleClass),o.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}" />`))}}),Pc=document||{},Rc=i(Pc);function $c(e,t){Rc.trigger(e,t)}function jc(e,t,n){i(t).trigger(e,n),$c(e,n),t.id&&$c(t.id+"-"+e,n)}const zc=e=>JSON.parse(e||"null");var Fc=Ns().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)},Ns().sync.apply(Ns(),arguments)},save:function(e,t){var i,n=this,s=(t=t||{}).error,a=t.success;t.error=function(e,t){var i=zc(t.responseText||t.data);s&&s.call(n,n,i,t)},this.isNew()?Ns().Model.prototype.save.call(this,e,t):e&&((i=new(Fc.extend({url:this.url()}))({id:this.id})).save=Ns().Model.prototype.save,t.success=function(e,t){n.clear().set(e.toJSON()),a&&a.call(n,n,t)},i.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,dt.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,dt.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),jc(Dc.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),Ns().Model.prototype.fetch.call(this,e)}});const Hc=Fc,Uc=Ns().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Dc,this.classNames=Cc,this.dataKeys=Ac,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 Mc(this.$el),this},hideLoading:function(){return Nc(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,o=i("<td />"),r=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:r,allowEdit:s.allowEdit},t,e.model];if(r&&e.$el.attr("data-"+s.id,r),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);o=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(o.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else o.append(a);s.styleClass&&o.addClass(s.styleClass),o.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 Bc=Ns().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=Dc,t.classNames=Cc,t.dataKeys=Ac,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 o='<td colspan="'+t.getColumnCount()+'"> </td>';n.placeholder.html(o).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){jc(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var i=zc(e.responseText||e.data);jc(t._event.SERVER_ERROR,t,[i,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(),Ns().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]),jc(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">'+Sc+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(),jc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),jc(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){jc(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 Uc&&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||Hc,allowEdit:!0,views:{editRow:Lc,row:Uc},Collection:Ns().Collection.extend({url:e.resources.self,model:e.model||Hc}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});Bc.ClassNames=Cc,Bc.CustomCreateView=Tc,Bc.CustomEditView=kc,Bc.CustomReadView=Ec,Bc.DataKeys=Ac,Bc.EditRow=Lc,Bc.EntryModel=Hc,Bc.Events=Dc,Bc.Row=Uc,l("RestfulTable",Bc);const Wc=Bc;function Vc(e){return i(e).clone().removeAttr("id")}l("clone",Vc);const Yc=Vc;var qc=window.DocumentTouch;const Kc="ontouchstart"in window||qc&&document instanceof qc;function Qc(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function Gc(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){Qc(e,t,i,"aria-controls"),Qc(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Zc(e){return e.offset().top}function Jc(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 iu,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);ru(e,n)}))})(e),Kc&&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(Xc+(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){o(t)&&e.toggle()};function a(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function o(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 r(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===au(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=su(n);if(!s)return;var o=i(s);a(t)&&s.open&&(t.preventDefault(),u(o),o.on("keydown",(function(e){(r(e)&&l(e.target,o)||a(e)&&c(e.target,o))&&(n.focus(),i(this).off("keydown"),ou())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);ru(e,t)}))}(this))}var Xc="_aui-internal-sidebar-";function eu(e){return i.map(e.split(" "),(function(e){return Xc+e})).join(" ")}function tu(){return document.querySelectorAll(Jc.prototype.inlineDialogSelector)}function iu(){this.inlineDialog=null}function nu(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function su(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function au(e){return 0!==nu(e).length}function ou(){var e=tu();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function ru(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),au(t))){var n=document.createElement("aui-inline-dialog"),s=wn("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(Jc.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=lu;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=nu(e);function o(e){const t=Yc(e);return Gc(t,wn),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}o(a).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}Jc.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=eu(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},Jc.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=eu(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},Jc.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},Jc.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>Zc(this.$el)),this},Jc.prototype.setPosition=R(Jc.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Jc.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},Jc.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},Jc.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(Xc+"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(Xc+"collapse-end",{isResponsive:e}))),this},Jc.prototype.collapse=function(){return this._collapse(!1)},Jc.prototype._expand=function(e,t){var n=i.Event(Xc+"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(Xc+"expand-end",{isResponsive:t})),this},Jc.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Jc.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Jc.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Jc.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},Jc.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)},Jc.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=Zc(this.$el),o=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var r=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);r||!o&&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(o,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},Jc.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},Jc.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Jc.prototype.collapsedTriggersSelector=[Jc.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Jc.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Jc.prototype.tooltipClassName="aui-sidebar-section-tooltip",Jc.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Jc.prototype.inlineDialogSelector="."+Jc.prototype.inlineDialogClass,iu.prototype.submenu=function(e){return du(),nu(e)},iu.prototype.hasSubmenu=function(e){return du(),au(e)},iu.prototype.submenuHeadingHeight=function(){return du(),34},iu.prototype.isShowing=function(){return du(),Jc.prototype.isSubmenuVisible()},iu.prototype.show=function(e,t){du(),function(e){su(e).open=!0}(t)},iu.prototype.hide=function(){du(),ou()},iu.prototype.inlineDialogShowHandler=function(){du()},iu.prototype.inlineDialogHideHandler=function(){du()},iu.prototype.moveSubmenuToInlineDialog=function(){du()},iu.prototype.restoreSubmenu=function(){du()},Jc.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(tu(),(function(e){return e.open}))},Jc.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const lu='<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 uu=ge("sidebar",Jc);i((function(){uu(".aui-sidebar")}));var du=O("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});l("sidebar",uu);const hu=uu;a(841),a(581);const pu=2600;function fu(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=pu;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 o=i(".aui-blanket"),r=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!==(o=i(".aui-blanket")).length&&e.closeOnOutsideClick&&o.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),fu.current=this,function(t){if(0===i(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return r(e.focusSelector,t);var n=":input:visible:enabled:first";r(n,i(".dialog-page-body",t))||r(n,i(".dialog-button-panel",t))||r(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),o.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]),fu.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 gu=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 o=e.panel.length,r=this;e.menu.append(this.item),e.body.append(this.body),e.panel[o]=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=r.id,r.body.show(),r.item.addClass("selected"),"function"==typeof r.onselect&&r.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(r,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==o?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 o=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 r(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=fu(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new o(this)}return o.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)}},o.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},o.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},o.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},o.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},o.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},o.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},o.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},o.prototype.hide=function(){this.element.hide()},o.prototype.show=function(){this.element.show()},o.prototype.remove=function(){this.element.remove()},r.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},r.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},r.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},r.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},r.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},r.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},r.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},r.prototype.addPage=function(e){return new o(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},r.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},r.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},r.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},r.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},r.prototype.getPage=function(e){return this.page[e]},r.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},r.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)},r.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},r.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},r.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},r.prototype.disable=function(){return this.popup.disable(),this},r.prototype.enable=function(){return this.popup.enable(),this},r.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,o,r,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=r)&&n.toLowerCase(),s=l,a=c,o=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),o=o&&(o+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||o)for(var h=d.length;h--;){if(o||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==o||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(o||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==o||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 o={length:t.length},r=t.length;r--;)for(var l in o[r]=t[r],t[r])l in o||function(e){o[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return o},r.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)},r.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},r.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},r.prototype.getCurPanelButton=function(){return this.getCurPanel().button},r}();gu=$(gu,"Dialog constructor",{alternativeName:"Dialog2"}),fu=$(fu,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",gu),l("popup",fu);const mu=!1;var vu=-1!==navigator.platform.indexOf("Mac"),bu=-1!==navigator.userAgent.indexOf("Safari"),yu=/^(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 wu=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 _u(e){var t=[],n=i.Callbacks();function s(e){!fu.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function o(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(yu);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()),o=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(o,mu,n,s),i(document).on(o+" keyup",mu,n,a)}(e)}))}function r(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 o(e),_u.makeShortcut({executor:n,bindKeys:o,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),o=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();o.some((function(e){return(0,dt.isEqual)(g,e)}))||(l=r(g.slice(),l,d),c=r(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}vu&&(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",o.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})}_u.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,o=e.keypressHandler,r=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",o=!s.hasOwnProperty("wrapAround")||s.wrapAround,r=!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};r&&i(document).one("keydown",(function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(a)})),s.length&&s.removeClass(a),s=e(s,t,o),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);wu(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&&(wu(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",o).unbind("keydown keypress keyup",r);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},_u.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const a=s.op,o=s.param;let r;if("execute"===a||"evaluate"===a)r=[new Function(o)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(o)){try{r=JSON.parse(o)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+o)}i.isArray(r)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+o)}else r=[o];i.each(s.keys,(function(){var e=this;t&&vu&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=_u(e);s[a].apply(s,r),n.push(s)}))})),n},i(document).on("iframeAppended",(function(e,t){i(t).load((function(){i(t).contents().on("keyup keydown keypress",(function(e){bu&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),l("whenIType",_u);const xu=_u,{FocusManager:Cu,InlineDialog2:Tu,LayerManager:ku,ProgressiveDataSet:Eu,clone:Au,debounce:Du,debounceImmediate:Su,dim:Iu,escapeHtml:Mu,formValidation:Nu,id:Ou,isClipped:Lu,keyCode:Pu,layer:Ru,messages:$u,populateParameters:ju,params:zu,responsiveheader:Fu,select:Hu,tablessortable:Uu,tabs:Bu,undim:Wu,_addID:Vu}=window.AJS,{contextPath:Yu}=window.AJS})(),o})()));
|
|
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,o=i.config,r=o.textExtraction||"",l="";return l="basic"===r?e(n).attr(o.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof r?r(n,i,s):"function"==typeof(a=t.getColumnData(i,r,s))?a(n,i,s):n.textContent||n.innerText||e(n).text()||"",e.trim(l)}function o(e,n,s,o){for(var r,l=t.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=a(e,c=n[s].cells[o],o),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+o+': "'+u+'"')):d=!1;for(;--l>=0;)if((r=t.parsers[l])&&"text"!==r.id&&r.is&&r.is(u,e,c))return r;return t.getParserById("text")}function r(e){var s,a,r,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(r=g.columns,l=0;l<r;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=o(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 o,r,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=[],o=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)r=o.normalized.length-1,o.normalized[r][y.columns].$row=o.normalized[r][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(t.css.cssHasChild),v.child[r]=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]?(r=a(s,p[0].cells[d],d),l=void 0===_[d].id?r:_[d].format(r,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,o.normalized.push(f)}o.colMax=b,y.totalRows+=o.normalized.length}y.showProcessing&&t.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,a){var o,r,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),r=(o=v[d].normalized).length,u=0;u<r;u++)m.push(o[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(o[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,o,r,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){o=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&&(r=f.onRenderTemplate.apply(o,[i,c]))&&"string"==typeof r&&(c=r),e(this).html('<div class="'+t.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(o,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=u(t.getData(o,a,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=t.getData(o,a,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),o.addClass(t.css.header+" "+f.cssHeader),f.headerList[i]=this,o.parent().addClass(t.css.headerRow+" "+f.cssHeaderRow),f.tabIndex&&o.attr("tabindex",0)})).attr({scope:"col"}),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(),r(e),l(e),y(n.$table,t,i)}function p(i){var n,s,a,o=i.config;o.$headers.each((function(r,l){s=e(l),a=t.getColumnData(i,o.headers,r,!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,o=i.config,r=o.sortList,l=r.length,c=t.css.sortNone+" "+o.cssNone,u=[t.css.sortAsc+" "+o.cssAsc,t.css.sortDesc+" "+o.cssDesc],d=["ascending","descending"],h=e(i).find("tfoot tr").children().add(o.$extraHeaders).removeClass(u.join(" "));for(o.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==r[s][1]&&(n=o.$headers.not(".sorter-false").filter('[data-column="'+r[s][0]+'"]'+(1===l?":last":""))).length){for(a=0;a<n.length;a++)n[a].sortDisabled||n.eq(a).removeClass(c).addClass(u[r[s][1]]).attr("aria-sort",d[r[s][1]]);h.length&&h.filter('[data-column="'+r[s][0]+'"]').removeClass(c).addClass(u[r[s][1]])}o.$headers.not(".sorter-false").each((function(){var i=e(this),n=this.order[(this.count+1)%(o.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,o,r,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&&(o=n,d.$headers.each((function(){this===o||!h&&e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc)||(this.count=-1)}))),o=n.column,h){if(d.sortList=[],null!==d.sortForce)for(a=d.sortForce,r=0;r<a.length;r++)a[r][0]!==o&&d.sortList.push(a[r]);if((l=n.order[n.count])<2&&(d.sortList.push([o,l]),n.colSpan>1))for(r=1;r<n.colSpan;r++)d.sortList.push([o+r,l])}else{if(d.sortAppend&&d.sortList.length>1)for(r=0;r<d.sortAppend.length;r++)(u=t.isValueInArray(d.sortAppend[r][0],d.sortList))>=0&&d.sortList.splice(u,1);if(t.isValueInArray(o,d.sortList)>=0)for(r=0;r<d.sortList.length;r++)u=d.sortList[r],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===o&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(r,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([o,l]),n.colSpan>1))for(r=1;r<n.colSpan;r++)d.sortList.push([o+r,l])}if(null!==d.sortAppend)for(a=d.sortAppend,r=0;r<a.length;r++)a[r][0]!==o&&d.sortList.push(a[r]);p.trigger("sortBegin",i),setTimeout((function(){f(i),v(i),c(i),p.trigger("sortEnd",i)}),1)}function v(e){var i,a,o,r,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(r=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[r]===s[r]&&1===y)return n[m.columns].order-s[m.columns].order;if((o=/n/i.test(g(m.parsers,r)))&&m.strings[r]?(o="boolean"==typeof m.string[m.strings[r]]?(f?1:-1)*(m.string[m.strings[r]]?-1:1):m.strings[r]&&m.string[m.strings[r]]||0,d=m.numberSorter?m.numberSorter(n[r],s[r],f,c[r],e):t["sortNumeric"+(f?"Asc":"Desc")](n[r],s[r],o,c[r],r,e)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[r],p[r],f,r,e):"object"==typeof v&&v.hasOwnProperty(r)?v[r](h[r],p[r],f,r,e):t["sortNatural"+(f?"Asc":"Desc")](n[r],s[r],r,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,o=n.$table;o.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,r,l){t.stopPropagation(),i.isUpdating=!0,o.find(n.selectorRemove).remove();var c,u,d,h,p=o.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(o,r,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)).filter("tr").length,x=o.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||r(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(o,c,u)}})).bind("updateComplete"+n.namespace,(function(){i.isUpdating=!1})).bind("sorton"+n.namespace,(function(n,a,r,u){var d=i.config;n.stopPropagation(),o.trigger("sortStart",this),function(t,i){var n,s,a,o,r,l=t.config,c=i||l.sortList;l.sortList=[],e.each(c,(function(t,i){if(o=parseInt(i[0],10),a=l.$headers.filter('[data-column="'+o+'"]: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=r||0;break;case"o":n=a.order[(r||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}r=0===t?s:r,n=[o,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),o.trigger("sortBegin",this),v(i),c(i,u),o.trigger("sortEnd",this),t.applyWidget(i),e.isFunction(r)&&r(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||r(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*$`);var o,c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&(o=h,!a.test(o))&&(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),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"),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),r(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,o=(t=e(t)[0]).config;if(i[n])return s?i[n]:i[o.$headers.index(o.$headers.filter('[data-column="'+n+'"]:last'))];for(a in i)if("string"==typeof a&&(s?o.$headers.eq(n).filter(a):o.$headers.filter('[data-column="'+n+'"]:last').filter(a)).length)return i[a]}},t.computeColumnIndex=function(t){var i,n,s,a,o,r,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(r=l[n],o=e(r),u=(c=r.parentNode.rowIndex)+"-"+o.index(),d=r.rowSpan||1,h=r.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),o.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,o=s||i.find("."+t.css.header);n?(void 0!==s&&a.sortList.length>0&&(o=o.filter((function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),a.sortList)>=0}))),i.add(o).addClass(t.css.processing+" "+a.cssProcessing)):i.add(o).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,o=(t=e(t)[0]).config;!0!==n&&(o.$extraHeaders=o.$extraHeaders?o.$extraHeaders.add(i):i),i.find(o.selectorSort).add(i.filter(o.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(o.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(o.namespace+" "),(function(n,r){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==r&&(new Date).getTime()-a>250)){if("mousedown"===u)return a=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!o.cancelSelection;o.delayInit&&s(o.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=o.$headers[i.index(c)]).sortDisabled||m(t,c,n)}})),o.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),o=i.config,r=a.find("thead:first"),l=r.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+o.cssHeaderRow),c=a.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",o.widgets)>=0&&(a.trigger("applyWidgetId",["uitheme"]),a.trigger("applyWidgetId",["zebra"])),r.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(o.namespace+" ")),o.$headers.add(c).removeClass([t.css.header,o.cssHeader,o.cssAsc,o.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(o.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(o.namespace+" ")),t.restoreHeaders(i),a.toggleClass(t.css.table+" "+o.tableClass+" tablesorter-"+o.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,o,r,l,c,u,d=t.regex;if(d.hex.test(i)){if((s=parseInt(e.match(d.hex),16))<(o=parseInt(i.match(d.hex),16)))return-1;if(s>o)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(r=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(a[c])?a[c]||0:parseFloat(a[c])||0,isNaN(r)!==isNaN(l))return isNaN(r)?1:-1;if(typeof r!=typeof l&&(r+="",l+=""),r<l)return-1;if(r>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,a){if(e===i)return 0;var o=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:-o||-1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:o||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,a){if(e===i)return 0;var o=a.string[a.empties[n]||a.emptyTo];return""===e&&0!==o?"boolean"==typeof o?o?-1:1:o||1:""===i&&0!==o?"boolean"==typeof o?o?1:-1:-o||-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,o){if(e===i)return 0;var r=o.config,l=r.string[r.empties[a]||r.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,o){if(e===i)return 0;var r=o.config,l=r.string[r.empties[a]||r.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,o,r,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){(r=t.getWidgetById(i))&&r.id&&(r.priority||(r.priority=10),u[e]=r)})),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&&(o=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+o+" widget"+(1!==o?"s":""),a)))},t.refreshWidgets=function(n,s,a){var o,r=(n=e(n)[0]).config,l=r.widgets,c=t.widgets,u=c.length;for(o=0;o<u;o++)c[o]&&c[o].id&&(s||e.inArray(c[o].id,l)<0)&&(r.debug&&i('Refeshing widgets: Removing "'+c[o].id+'"'),c[o].hasOwnProperty("remove")&&r.widgetInit[c[o].id]&&(c[o].remove(n,r,r.widgetOptions),r.widgetInit[c[o].id]=!1));!0!==a&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,a,o="",r=e(t);return r.length?(s=!!e.metadata&&r.metadata(),a=" "+(r.attr("class")||""),void 0!==r.data(n)||void 0!==r.data(n.toLowerCase())?o+=r.data(n)||r.data(n.toLowerCase()):s&&void 0!==s[n]?o+=s[n]:i&&void 0!==i[n]?o+=i[n]:" "!==a&&a.match(" "+n+"-")&&(o=a.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),e.trim(o)):""},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="",o=s.length;for(n=0;n<o;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,o=a.$headers.filter("[data-column="+s+"]:last"),r=o.length&&o[0].dateFormat||t.getData(o,t.getColumnData(i,a.headers,s),"dateFormat")||a.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===r?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===r&&(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,o,r,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)o=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each((function(){a=e(this),u.test(this.className)||o++,r=o%2==0,a.removeClass(s.zebra[r?1:0]).addClass(s.zebra[r?0:1])}));n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,a,o=i.$tbodies,r=(n.zebra||["even","odd"]).join(" ");for(s=0;s<o.length;s++)(a=e.tablesorter.processTbody(t,o.eq(s),!0)).children().removeClass(r),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 o={};return(()=>{"use strict";a.r(o),a.d(o,{$:()=>Re,AvatarBadged:()=>Ue,AvatarEl:()=>Ze,AvatarGroupEl:()=>lt,CalendarWidget:()=>yc,DatePicker:()=>xc,DropdownEl:()=>Xn,FancyFileInput:()=>_s,FocusManager:()=>Cu,Header:()=>hc,I18n:()=>I18n,InlineDialog2:()=>Tu,InlineDialogEl:()=>dr,ItemButtonEl:()=>Qn,ItemCheckboxEl:()=>Gn,ItemLinkEl:()=>Kn,ItemRadioEl:()=>Zn,LabelEl:()=>ks,LayerManager:()=>ku,MessageEl:()=>ds,NavigationEl:()=>fr,ProgressBarEl:()=>Sr,ProgressiveDataSet:()=>Eu,RestfulTable:()=>Wc,SectionEl:()=>Jn,SelectEl:()=>ua,SpinnerEl:()=>yt,TabContainerEl:()=>tl,TabItemEl:()=>il,TabPaneEl:()=>nl,ToggleEl:()=>Vo,_addID:()=>Vu,banner:()=>ut,bind:()=>C,clone:()=>Au,contextPath:()=>Yu,debounce:()=>Du,debounceImmediate:()=>Su,dialog2:()=>St,dim:()=>Iu,error:()=>m,escapeHtml:()=>Mu,flag:()=>ys,formValidation:()=>Nu,format:()=>b,id:()=>Ou,isClipped:()=>Lu,keyCode:()=>Pu,layer:()=>Ru,log:()=>f,messages:()=>$u,navigation:()=>gr,params:()=>zu,populateParameters:()=>ju,progressBars:()=>Mr,responsiveheader:()=>Fu,select:()=>Hu,sidebar:()=>hu,tablessortable:()=>Uu,tabs:()=>Bu,toInit:()=>je,trigger:()=>k,unbind:()=>T,undim:()=>Wu,version:()=>w,warn:()=>g,whenIType:()=>xu});var e=a(687),t=a.n(e);const i=window.jQuery||window.Zepto||t(),n="AJS",s="I18n";function r(){"object"!=typeof window[n]&&(window[n]={})}function l(e,t){return r(),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+)([#<])(.+)/,o=function(t,o){var r,l="";if(r=t.match(i))l=o.length>++t?o[t]:"";else if(r=t.match(n))l=o.length>++r[1]?o[r[1]]:"";else if(r=t.match(s)){var c=o.length>++r[1]?o[r[1]]:null;if(null!==c){for(var u=r[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(o,1));l=v.apply(null,b)}}return l},r=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 o=[];return o.push(e.substring(0,s+1)),o.push(e.substring(0,i)),o.push(e.substring(i+1,s)),o}}return null};return function(e){var i=arguments,n="";if(!e)return n;for(var s=r(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=o(s[2],i),s=r(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="10.0.1";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={"<":"<",">":">","&":"&",'"':""","'":"'","`":"`"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function D(e){return e.replace(A,(e=>E[e]))}l("escapeHtml",D);const S=D,I=Object.prototype.hasOwnProperty,M=[];function N(...e){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,e)}const O=(e,t)=>L(e,t);function L(e,t){if("function"==typeof e)return e;let i=!1;return t=t??{},function(n){let s=function(e){const t=new Error;let i=t.stack??t.stacktrace;return i=i?.replace(/^Error\n/,"")??"",i.split("\n")[e+2]}(n||1)??"";if(!i||!M.includes(s)){M.push(s),i=!0;let n="DEPRECATED "+(t.deprecationType??"")+"- "+(((a=e)?(a=""+a).charAt(0).toUpperCase()+a.substring(1):"")+" has been deprecated")+(t.sinceVersion?" since "+t.sinceVersion:"")+" and will be removed in "+(t.removeInVersion??"a future release")+".";t.alternativeName&&(n+=" Use "+t.alternativeName+" instead. "),t.extraInfo&&(n+=" "+t.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(s),t.extraObject?(n+="\n",N(n,t.extraObject,s)):N(n,s)}var a}}function P(e,t){let i=e.options?.displayName;i=i?" ("+i+")":"";const n=Object.assign({deprecationType:"CSS",extraObject:t},e.options);L("'"+e.selector+"' pattern"+i,n)()}function R(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=L(t||e.name||"this function",i);return function(...t){return n(),e.apply(this,t)}}function $(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=R(e,t,i);return n.prototype=e.prototype,Object.assign(n,e),n}function j(e,t,i){if("function"==typeof e[t]){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=i.displayName??t;e[t]=R(e[t],n,i)}else!function(e,t,i){let n=e[t];(i=i??{}).deprecationType=i.deprecationType??"JS";const s=L(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){const i={selector:t,options:e},n=document.querySelectorAll(t);for(const e of n)P(i,e);!function(e){if(H.push(e),void 0===U){U=new MutationObserver((function(e){e.forEach((function(e){const t=e.addedNodes;for(const e of t)1===e.nodeType&&H.forEach(F(e))}))}));const e={childList:!0,subtree:!0};U.observe(document,e)}}(i)}}function F(e){return function(t){var i,n;i=e,n=t.selector,i instanceof Element&&i.matches(n)&&P(t,e)}}const H=[];let U;function B(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||(B(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:R,construct:$,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(z(t))},prop:j,obj:function(e,t,i){i=i??{};for(const n in e)I.call(e,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=t+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,j(e,n,Object.assign({},i)))},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),o=Array.prototype.slice.apply(a).concat(n);return 0===o.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(" ")),o}function se(e){return document.getElementById(e.getAttribute("aria-controls"))}function ae(e){return"true"!==e.getAttribute("aria-disabled")}function oe(e,t){if(ae(e)){var i=se(e);i&&i.message&&i.message(t)}}const re={click(e,t){(function(e,t){var n=i(t).closest("a[href]",e);return!!n.length&&n[0]!==e})(e,t.target)||(oe(e,t),t.preventDefault())},keydown(e,t){const i=t.data;i!==Q.ENTER&&i!==Q.SPACE||(t.preventDefault(),t.type="click",re.click(e,t))},mouseenter(e,t){oe(e,t)},mouseleave(e,t){oe(e,t)},focus(e,t){oe(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)||oe(e,t)}};Object.keys(re).forEach((function(e){const t=re[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:o}=e;return{type:t,data:"keydown"===t?o||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,o=a.name,r=i("img[usemap=#"+o+"]").get();return!(!t.href||!o||"map"!==a.nodeName.toLowerCase())&&(r&&e(r))}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],o=a.find(":aui-tabbable");if(!o.length&&ce(a)&&(a.trigger("focus"),t.preventDefault()),!o.length)return;const r=o.index(s);let l=-1;if(r>-1)l=r;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=o.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 o;o=s.length>0?s.first():i>0?t.first():t.last(),a=n.index(o)}return a}(s,l,n,o):0,"IFRAME"!==o.get(l).nodeName&&(o.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){t.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,o;i.isPlainObject(e)?o=e:(a=e,o=s);var r,l=a&&i(a);return l&&l.data(n)?r=l.data(n):(l=(r=new t(l,o||{})).$el).data(n,r),r}}const me="_aui-internal-layer-",ve="_aui-internal-layer-global-";var be=i(document);function ye(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 we(e,t,n){var s=i.Event(me+t),a=i.Event(ve+t),o=new CustomEvent("aui-layer-"+n,{bubbles:!0,cancelable:!0}),r=new CustomEvent("aui-"+n,{bubbles:!0,cancelable:!0});return e.trigger(s),e.trigger(a,[e]),e[0].dispatchEvent(o),e[0].dispatchEvent(r),!(s.isDefaultPrevented()||a.isDefaultPrevented()||o.defaultPrevented||r.defaultPrevented)}function _e(e){this.$el=i(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function xe(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}_e.prototype={below:function(){return Se.global.item(Se.global.indexOf(this.$el)-1)},above:function(){return Se.global.item(Se.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(me+e,t),this},off:function(e,t){return this.$el.off(me+e,t),this},show:function(){return this.isVisible()||Se.global.indexOf(this.$el)>-1?this:we(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Se.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const e=this;return ye(this.$el.get(0),"opacity",(function(){e.isVisible()||(this.style.display="none")}),!0),Se.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=xe(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=xe(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return!(e&&!we(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(me+"hide"),this.$el.trigger(ve+"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(me+"show"),this.$el.trigger(ve+"show",[this.$el])}};var Ce=ge("layer",_e);function Te(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return-1}function ke(e,t){return Te(e,(function(e){return e[0]===t[0]}))}function Ee(e){return Te(e,(function(e){return Ce(e).isBlanketed()}))}function Ae(e,t){var i=Ee(e);t!==i&&(i>-1?V(!1,e[i].css("z-index")-20):Y())}function De(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 o=Ce(s);if(i||!o.isPersistent()){if(!o._hideLayer(n))return[!1,s];e.splice(a,1)}}return[!0,s]}function Se(){this._stack=[]}function Ie(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return Se.global.indexOf(t)>-1}Ce.on=function(e,t,i){return be.on(ve+e,t,i),this},Ce.off=function(e,t,i){return be.off(ve+e,t,i),this},Se.prototype={push:function(e){var t=e instanceof i?e:i(e);if(ke(this._stack,t)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(t);var n=Ce(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=Ee(this._stack);return void De(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);De(this._stack,++e,!1)}else De(this._stack,0,!1)},indexOf:function(e){return ke(this._stack,i(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach((function(e){let t=Ce(e);t.isBlanketed()||t.isPersistent()||t.hide()})),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s--;s>=0;){t=this._stack[s];var a=Ce(t);if(!a.isPersistent()||a.isBlanketed())return t;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,n=e instanceof i?e:i(e),s=ke(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){t=this._stack[s];var a=Ce(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=ke(this._stack,n);if(-1===s)return null;const a=Ee(this._stack),o=Ce(n),[r,l]=De(this._stack,s+1,o.isBlanketed(),t);return r&&o._hideLayer(t)?(this._stack.splice(s,1),Ae(this._stack,a),n):l},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=Ce(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=Ee(this._stack);if(t<0)return null;var i=this._stack[t];if(Ce(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=ke(this._stack,n);return De(this._stack,s,!0,e),n}return null}return De(this._stack,t,!0),Ae(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t=Se.global.getTopLayer();if(t){var i,n=Ee(this._stack),s=Ce(t);if(s.isPersistent()){if(s.isBlanketed())return;if(t=Se.global.getNextLowerNonPersistentOrBlanketedLayer(t),s=Ce(t),!t||s.isPersistent())return;i=ke(this._stack,t),De(this._stack,i,!0,e),Ae(this._stack,n)}else i=ke(this._stack,t),De(this._stack,i,!0,e),Ae(this._stack,n)}}},be.on("keydown",(function(e){e.keyCode===Q.ESCAPE&&(Se.global.popUntilTopPersistent(!0),e.preventDefault())})),be.on("click",".aui-blanket",(function(e){Se.global.popUntilTopBlanketed(!0)&&e.preventDefault()})),be.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&&!Ie(n)){const t=i.Event("aui-close-layers-on-outer-click");return be.trigger(t),t.isDefaultPrevented()?void e.preventDefault():void Se.global.hideAll()}if(!Ie(n)&&s.length){var a=Se.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);a&&Ce(a).hide()}}})),Se.global=new Se,Ce.Manager=Se,l("layer",Ce);const Me=Ce;l("LayerManager",Me.Manager);Me.Manager;const Ne={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},Oe=l("params",new Proxy({},{get:function(e,t){return O("AJS.params",Ne)(),e[t]}}));const Le=R((function(e){e||(e=Oe),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:"11.0.0"});l("populateParameters",Le);const Pe=Le;i((function(){var e=i("body");e.data("auiVersion")||e.attr("data-aui-version",w),Pe()})),l("$",i);const Re=i;function $e(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",$e);const je=$e;a(547);const ze={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.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){r(),"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}(ze),Fe="bottom-end",He=["top-start","top-end","bottom-start","bottom-end"],Ue=Z("aui-avatar-badged",{attributes:{placement:{value:Fe,fallback(e,{newValue:t,oldValue:i}){((e,t,i)=>{const n=He.includes(t)?t:Fe;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 Be=a(2),We=a.n(Be);const Ve=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Ye=(e,t)=>e.querySelector(t),qe=(e,t,i)=>{const n=Ye(e,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},Ke=e=>{if(e.hasAttribute("src"))Ge(e,e.getAttribute("src"));else{const t=(e=>"project"===e.getAttribute("type")?"project":"user")(e),i=Ve.get(t);Ge(e,i)}},Qe=(e,t,i)=>Ye(e,"img").setAttribute(t,i),Ge=(e,t)=>Qe(e,"src",t),Ze=Z("aui-avatar",{template:We()("\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),Ke(e)},src(e,{newValue:t}){Ge(e,t)},alt:{value:"",fallback(e,{newValue:t}){((e,t)=>{Qe(e,"alt",t)})(e,t)}},title(e,{newValue:t}){((e,t)=>{Qe(e,"title",t)})(e,t)}},created:function(e){e.className="aui-avatar",Ke(e),(e=>null!==e.querySelector("aui-avatar-badged"))(e)&&e.setAttribute("role","img")}}),Je="medium",Xe={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},et=(e,t)=>{const i=e.querySelectorAll("aui-avatar"),n=[...i].slice(4);st(i,t);const s=e.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const a=tt(t,n);e.appendChild(a)},tt=(e,t)=>{const i=document.createElement("div"),n=it(`+${t.length}`),s=nt();return t.forEach((e=>{s.append(e)})),i.classList.add("aui-avatar-group-dropdown"),i.style.left=at(e,4.2),i.appendChild(n),i.appendChild(s),i},it=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},nt=()=>{const e=document.createElement("div");return e.classList.add("aui-avatar-group-dropdown-menu"),e},st=(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=at(t,i),e.style.zIndex=""+(5-i))}))},at=(e,t)=>{const i=Xe[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")?ot(i):rt(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach((e=>{e!==i&&ot(e)})))})),document.addEventListener("keydown",(e=>{if("Escape"!==e.key)return;const t=document.querySelector(".aui-avatar-group-dropdown-show");t&&ot(t)}));const ot=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.remove("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","false")},rt=e=>{const t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.add("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","true")},lt=Z("aui-avatar-group",{attributes:{size:{value:Je,fallback(e,{newValue:t,oldValue:i}){const n=(s=t,Object.keys(Xe).includes(s)?s:Je);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),et(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)&&et(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((()=>{et(t,t.getAttribute("size"))}),0)}))})).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function ct(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),B(e)}(i,t),function(e){const t=e.querySelectorAll(".aui-banner[hidden]"),i=O("Banner [hidden] attribute",{removeInVersion:"11.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",ct),l("banner",ct);const ut=ct;var dt=a(487);const ht={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},pt={filled:!1,size:ht.MEDIUM.name},ft="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.",gt=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:ft}),mt=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:ft});function vt(e){let t=ht.MEDIUM.name;if("string"==typeof e){e=e.toLowerCase();const i=Object.keys(ht).map((e=>e.toLowerCase()));i.indexOf(e)>-1&&(t=e)}return t}function bt(e){const{px:t,radius:i}=(0,dt.find)(ht,(t=>t.name===e._data.size))||ht.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,o=n.top+t/2;e.querySelector("svg").style.top=a-o+"px"}}(e,t):function(e){delete e.querySelector("svg").style.top}(e)}const yt=Z("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',bt(e)},attached(e){bt(e)},attributes:{filled:{created:function(e){gt(),e._data.filled=!0,bt(e)},removed:function(e){e._data.filled=!1,bt(e)}},size(e,t){e._data.size=vt(t.newValue),bt(e)}},prototype:{get _data(){return this.__data||(this._data=(0,dt.defaults)({},pt))},set _data(e){return this.__data=e},set filled(e){mt(),e?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(e){const t=vt(e);this.setAttribute("size",t)}}});function wt(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function _t(e){return"INPUT"===e.nodeName}Z("aui-button",{type:Z.type.CLASSNAME,created:function(e){e._spinner=new yt,e._spinner.setAttribute("size",ht.SMALL.name)},prototype:{busy:function(){return _t(this)||wt(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 _t(this)||!wt(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 _t(this)?(g("It is not valid to call isBusy() on an input button."),!1):wt(this)}}}),G("aui/button");const xt="aui-close-button",Ct=`.${xt}`,Tt=`<button type="button" class="${xt}" aria-label="${I18n.getText("aui.words.close")}">`,kt={"aui-focus":"false","aui-blanketed":"true"};function Et(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 ${Tt}\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(kt,(function(e,i){const n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)}))}Et.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)};Me(i).on(e,n),this._handlers.set(t,n)}return this},Et.prototype.off=function(e,t){const i=this.$el,n=this._handlers.get(t);return n&&(Me(i).off(e,n),this._handlers.delete(t)),this},Et.prototype.show=function(){return Me(this.$el).show(),this},Et.prototype.hide=function(){return Me(this.$el).hide(),this},Et.prototype.remove=function(){return Me(this.$el).remove(),this},Et.prototype.isVisible=function(){return Me(this.$el).isVisible()};var At=ge("dialog2",Et),Dt=new Set;At.on=function(e,t){return Dt.has(t)||(Me.on(e,".aui-dialog2",t),Dt.add(t)),this},At.off=function(e,t){return Dt.has(t)&&(Me.off(e,".aui-dialog2",t),Dt.delete(t)),this},i(document).on("click keydown",`.aui-dialog2-header ${Ct}`,(function(e){("click"===e.type||e.keyCode===Q.ENTER||e.keyCode===Q.SPACE)&&(e.preventDefault(),At(i(e.target).closest(".aui-dialog2")).hide())})),At.on("show",(function(e,t){!function(e){const t=e.querySelector(Ct);t&&(O(`Dialog2 [${Ct}]`,{removeInVersion:"11.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:"11.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(xt)&&(e=s.shift()),void(e&&(e.blur(),setTimeout((()=>e.focus()),0)))}e.focus()}(t[0])})),At.on("hide",(function(e,t){const i=Me(t);t.data("aui-remove-on-hide")&&i.remove()})),G("aui/dialog2",At),l("dialog2",At);const St=At;var It,Mt,Nt=navigator.userAgent.toLowerCase(),Ot=(/msie/.test(Nt),/windows nt 5.1/.test(Nt),/windows nt 6.0/.test(Nt),/windows nt 6.1/.test(Nt),/mac os x/.test(Nt));function Lt(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Pt(e){return e instanceof Lt(e).Element||e instanceof Element}function Rt(e){return e instanceof Lt(e).HTMLElement||e instanceof HTMLElement}function $t(e){return"undefined"!=typeof ShadowRoot&&(e instanceof Lt(e).ShadowRoot||e instanceof ShadowRoot)}var jt=Math.max,zt=Math.min,Ft=Math.round;function Ht(){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 Ut(){return!/^((?!chrome|android).)*safari/i.test(Ht())}function Bt(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,a=1;t&&Rt(e)&&(s=e.offsetWidth>0&&Ft(n.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Ft(n.height)/e.offsetHeight||1);var o=(Pt(e)?Lt(e):window).visualViewport,r=!Ut()&&i,l=(n.left+(r&&o?o.offsetLeft:0))/s,c=(n.top+(r&&o?o.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 Wt(e){var t=Lt(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function Vt(e){return e?(e.nodeName||"").toLowerCase():null}function Yt(e){return((Pt(e)?e.ownerDocument:e.document)||window.document).documentElement}function qt(e){return Bt(Yt(e)).left+Wt(e).scrollLeft}function Kt(e){return Lt(e).getComputedStyle(e)}function Qt(e){var t=Kt(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Gt(e,t,i){void 0===i&&(i=!1);var n,s,a=Rt(t),o=Rt(t)&&function(e){var t=e.getBoundingClientRect(),i=Ft(t.width)/e.offsetWidth||1,n=Ft(t.height)/e.offsetHeight||1;return 1!==i||1!==n}(t),r=Yt(t),l=Bt(e,o,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(a||!a&&!i)&&(("body"!==Vt(t)||Qt(r))&&(c=(n=t)!==Lt(n)&&Rt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:Wt(n)),Rt(t)?((u=Bt(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):r&&(u.x=qt(r))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Zt(e){var t=Bt(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 Jt(e){return"html"===Vt(e)?e:e.assignedSlot||e.parentNode||($t(e)?e.host:null)||Yt(e)}function Xt(e){return["html","body","#document"].indexOf(Vt(e))>=0?e.ownerDocument.body:Rt(e)&&Qt(e)?e:Xt(Jt(e))}function ei(e,t){var i;void 0===t&&(t=[]);var n=Xt(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),a=Lt(n),o=s?[a].concat(a.visualViewport||[],Qt(n)?n:[]):n,r=t.concat(o);return s?r:r.concat(ei(Jt(o)))}function ti(e){return["table","td","th"].indexOf(Vt(e))>=0}function ii(e){return Rt(e)&&"fixed"!==Kt(e).position?e.offsetParent:null}function ni(e){for(var t=Lt(e),i=ii(e);i&&ti(i)&&"static"===Kt(i).position;)i=ii(i);return i&&("html"===Vt(i)||"body"===Vt(i)&&"static"===Kt(i).position)?t:i||function(e){var t=/firefox/i.test(Ht());if(/Trident/i.test(Ht())&&Rt(e)&&"fixed"===Kt(e).position)return null;var i=Jt(e);for($t(i)&&(i=i.host);Rt(i)&&["html","body"].indexOf(Vt(i))<0;){var n=Kt(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 si="top",ai="bottom",oi="right",ri="left",li="auto",ci=[si,ai,oi,ri],ui="start",di="end",hi="clippingParents",pi="viewport",fi="popper",gi="reference",mi=ci.reduce((function(e,t){return e.concat([t+"-"+ui,t+"-"+di])}),[]),vi=[].concat(ci,[li]).reduce((function(e,t){return e.concat([t,t+"-"+ui,t+"-"+di])}),[]),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&&$t(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===pi?_i(function(e,t){var i=Lt(e),n=Yt(e),s=i.visualViewport,a=n.clientWidth,o=n.clientHeight,r=0,l=0;if(s){a=s.width,o=s.height;var c=Ut();(c||!c&&"fixed"===t)&&(r=s.offsetLeft,l=s.offsetTop)}return{width:a,height:o,x:r+qt(e),y:l}}(e,i)):Pt(t)?function(e,t){var i=Bt(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=Yt(e),n=Wt(e),s=null==(t=e.ownerDocument)?void 0:t.body,a=jt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),o=jt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),r=-n.scrollLeft+qt(e),l=-n.scrollTop;return"rtl"===Kt(s||i).direction&&(r+=jt(i.clientWidth,s?s.clientWidth:0)-a),{width:a,height:o,x:r,y:l}}(Yt(e)))}function Ci(e,t,i,n){var s="clippingParents"===t?function(e){var t=ei(Jt(e)),i=["absolute","fixed"].indexOf(Kt(e).position)>=0&&Rt(e)?ni(e):e;return Pt(i)?t.filter((function(e){return Pt(e)&&wi(e,i)&&"body"!==Vt(e)})):[]}(e):[].concat(t),a=[].concat(s,[i]),o=a[0],r=a.reduce((function(t,i){var s=xi(e,i,n);return t.top=jt(s.top,t.top),t.right=zt(s.right,t.right),t.bottom=zt(s.bottom,t.bottom),t.left=jt(s.left,t.left),t}),xi(e,o,n));return r.width=r.right-r.left,r.height=r.bottom-r.top,r.x=r.left,r.y=r.top,r}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,o=s?ki(s):null,r=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(a){case si:t={x:r,y:i.y-n.height};break;case ai:t={x:r,y:i.y+i.height};break;case oi:t={x:i.x+i.width,y:l};break;case ri: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(o){case ui:t[c]=t[c]-(i[u]/2-n[u]/2);break;case di: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,o=void 0===a?e.strategy:a,r=i.boundary,l=void 0===r?hi:r,c=i.rootBoundary,u=void 0===c?pi:c,d=i.elementContext,h=void 0===d?fi: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,ci)),b=h===fi?gi:fi,y=e.rects.popper,w=e.elements[f?b:h],_=Ci(Pt(w)?w:w.contextElement||Yt(e.elements.popper),l,u,o),x=Bt(e.elements.reference),C=Ai({reference:x,element:y,strategy:"absolute",placement:s}),T=_i(Object.assign({},y,C)),k=h===fi?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===fi&&A){var D=A[s];Object.keys(E).forEach((function(e){var t=[oi,ai].indexOf(e)>=0?1:-1,i=[si,ai].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,o,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},Mi,a),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:r,setOptions:function(i){var s="function"==typeof i?i(r.options):i;d(),r.options=Object.assign({},a,r.options,s),r.scrollParents={reference:Pt(e)?ei(e):e.contextElement?ei(e.contextElement):[],popper:ei(t)};var o,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})))}),[])}((o=[].concat(n,r.options.modifiers),c=o.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 r.orderedModifiers=h.filter((function(e){return e.enabled})),r.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:r,name:t,instance:u,options:n}),o=function(){};l.push(a||o)}})),u.update()},forceUpdate:function(){if(!c){var e=r.elements,t=e.reference,i=e.popper;if(Ni(t,i)){r.rects={reference:Gt(t,ni(i),"fixed"===r.options.strategy),popper:Zt(i)},r.reset=!1,r.placement=r.options.placement,r.orderedModifiers.forEach((function(e){return r.modifiersData[e.name]=Object.assign({},e.data)}));for(var n=0;n<r.orderedModifiers.length;n++)if(!0!==r.reset){var s=r.orderedModifiers[n],a=s.fn,o=s.options,l=void 0===o?{}:o,d=s.name;"function"==typeof a&&(r=a({state:r,options:l,name:d,instance:u})||r)}else r.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(e){u.forceUpdate(),e(r)}))},function(){return o||(o=new Promise((function(e){Promise.resolve().then((function(){o=void 0,e(s())}))}))),o}),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,o=n.resize,r=void 0===o||o,l=Lt(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&c.forEach((function(e){e.addEventListener("scroll",i.update,Li)})),r&&l.addEventListener("resize",i.update,Li),function(){a&&c.forEach((function(e){e.removeEventListener("scroll",i.update,Li)})),r&&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,o=e.offsets,r=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,d=e.isFixed,h=o.x,p=void 0===h?0:h,f=o.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=o.hasOwnProperty("x"),b=o.hasOwnProperty("y"),y=ri,w=si,_=window;if(c){var x=ni(i),C="clientHeight",T="clientWidth";if(x===Lt(i)&&"static"!==Kt(x=Yt(i)).position&&"absolute"===r&&(C="scrollHeight",T="scrollWidth"),s===si||(s===ri||s===oi)&&a===di)w=ai,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===ri||(s===si||s===ai)&&a===di)y=oi,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:r},c&&$i),A=!0===u?function(e,t){var i=e.x,n=e.y,s=t.devicePixelRatio||1;return{x:Ft(i*s)/s||0,y:Ft(n*s)/s||0}}({x:p,y:g},Lt(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,o=void 0===a||a,r=i.roundOffsets,l=void 0===r||r,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:o,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];Rt(s)&&Vt(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}),{});Rt(n)&&Vt(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,o=vi.reduce((function(e,i){return e[i]=function(e,t,i){var n=Ti(e),s=[ri,si].indexOf(n)>=0?-1:1,a="function"==typeof i?i(Object.assign({},t,{placement:e})):i,o=a[0],r=a[1];return o=o||0,r=(r||0)*s,[ri,oi].indexOf(n)>=0?{x:r,y:o}:{x:o,y:r}}(i,t.rects,a),e}),{}),r=o[t.placement],l=r.x,c=r.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=o}};var Ui={left:"right",right:"left",bottom:"top",top:"bottom"};function Bi(e){return e.replace(/left|right|bottom|top/g,(function(e){return Ui[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,o=i.altAxis,r=void 0===o||o,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?[Bi(m)]:function(e){if(Ti(e)===li)return[];var t=Bi(e);return[Vi(e),t,Vi(t)]}(m)),y=[m].concat(b).reduce((function(e,i){return e.concat(Ti(i)===li?function(e,t){void 0===t&&(t={});var i=t,n=i.placement,s=i.boundary,a=i.rootBoundary,o=i.padding,r=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?vi:l,u=ki(n),d=u?r?mi:mi.filter((function(e){return ki(e)===u})):ci,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:o})[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)===ui,S=[si,ai].indexOf(A)>=0,I=S?"width":"height",M=Ii(t,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=S?D?oi:ri:D?ai:si;w[I]>_[I]&&(N=Bi(N));var O=Bi(N),L=[];if(a&&L.push(M[A]<=0),r&&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 jt(e,zt(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,o=i.altAxis,r=void 0!==o&&o,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?si:ri,M="y"===w?ai:oi,N="y"===w?"height":"width",O=x[w],L=O+m[I],P=O-m[M],R=p?-T[N]/2:0,$=b===ui?C[N]:T[N],j=b===ui?-T[N]:-C[N],z=t.elements.arrow,F=p&&z?Zt(z):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},U=H[I],B=H[M],W=qi(0,C[N],F[N]),V=y?C[N]/2-R-W-U-E.mainAxis:$-W-U-E.mainAxis,Y=y?-C[N]/2+R+W+B+E.mainAxis:j+W+B+E.mainAxis,q=t.elements.arrow&&ni(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?zt(L,O+V-Q-K):L,O,p?jt(P,G):P);x[w]=Z,D[w]=Z-O}if(r){var J,X="x"===w?si:ri,ee="x"===w?ai:oi,te=x[_],ie="y"===_?"height":"width",ne=te+m[X],se=te-m[ee],ae=-1!==[si,ri].indexOf(v),oe=null!=(J=null==A?void 0:A[_])?J:0,re=ae?ne:te-C[ie]-T[ie]-oe+E.altAxis,le=ae?te+C[ie]+T[ie]-oe-E.altAxis:se,ce=p&&ae?function(e,t,i){var n=qi(e,t,i);return n>i?i:n}(re,te,le):qi(p?re: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,o=i.modifiersData.popperOffsets,r=Ti(i.placement),l=Ei(r),c=[ri,oi].indexOf(r)>=0?"height":"width";if(a&&o){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,ci))}(s.padding,i),d=Zt(a),h="y"===l?si:ri,p="y"===l?ai:oi,f=i.rects.reference[c]+i.rects.reference[l]-o[l]-i.rects.popper[c],g=o[l]-i.rects.reference[l],m=ni(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[si,oi,ai,ri].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,o=Ii(t,{elementContext:"reference"}),r=Ii(t,{altBoundary:!0}),l=Gi(o,n),c=Gi(r,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="alignment",tn="right middle",nn="alignment-container",sn="aui-alignment-side-",an="aui-alignment-snap-",on={"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 rn(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function ln(e){return rn(e,en)||tn}function cn(e){let[t,i]=ln(e).split(" ");return{side:t,snap:i}}function un(e){let t=function(e){let t=rn(e,nn)||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 dn(e,t){const i=cn(e);let n;return i.snap&&"auto"!==i.snap?n=function(e){const t=ln(e);return on[t]||"right"}(e):(i.snap=un(t),n="submenu"===i.side?on[("right"===i.snap?"left":"right")+" top"]:on[`${i.side} ${i.snap}`]),n}const hn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function pn(e,t,i={}){const n=cn(e),s=dn(e,t),a=hn[s.split("-")[0]],o=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const r=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:a,boundary:o||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:o?"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}}];o&&t.ownerDocument!=e.ownerDocument&&r.push({name:"iframeOffset",enabled:!0,fn(e){const t=o.getBoundingClientRect(),i=window.getComputedStyle(o),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),a=s([t.top,i.paddingTop,i.borderTop]),r=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=r,e.offsets.reference.top+=a,e.offsets.popper.left+=r,e.offsets.popper.top+=a,e}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:r,onFirstUpdate:i.onCreate};this.popper=Xi(t,e,l),function(e,t,i){const n=sn+t,s=an+i;e.classList.contains(n)||e.classList.add(n),e.classList.contains(s)||e.classList.add(s)}(e,n.side,n.snap)}pn.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 fn=pn;function gn(e){let t=new i.Deferred;return e?setTimeout((()=>{e.parentElement||t.resolve()}),12):t.reject(),t.promise()}var mn,vn,bn=0;function yn(e){if(mn=bn+++"",vn=e?e+mn:"aui-uid-"+mn,document.getElementById(vn)){if(vn=vn+"-"+(new Date).getTime(),document.getElementById(vn))throw new Error('Timestamped fallback ID "'+vn+'" exists.');return vn}return vn}l("id",yn);const wn=yn;function _n(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function xn(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}var Cn="unloaded",Tn="loading",kn="error",En="success";function An(e,t){J(e).set("loading-state",En),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} ${i("for")} ${i("href")} ${t("interactive")}\n ${t("checked")} ${t("disabled")} ${t("hidden")} ${i("data-value")} ${i("item-id")}>\n ${S(e.content)}\n </${n}>`})).join("");function i(t){return e[t]?`${t}="${e[t]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>\n ${t}\n </aui-section>`})).join("\n")}(t),Z.init(e)}function Dn(e){J(e).set("loading-state",kn),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 Sn(e){e.src&&J(e).get("loading-state")!==Tn&&(!function(e){J(e).set("loading-state",Tn),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?An(e,t):Dn(e)})).fail((function(){Dn(e)})).always((function(){!function(e){te(e,(function(e){e.setAttribute("aria-busy","false")}))}(e)})))}function In(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 Mn(e){return In(e,(()=>!0))}function Nn(e){return In(e,((e,t)=>!_n(t)))}function On(e){Mn(e).each(((e,t)=>{return(i=t).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||_n(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i}))}function Ln(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Pn(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)),Ln(e),e._auiAlignment=new fn(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:"11.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 Rn=!1;function $n(){Rn=!0}function jn(e){Me(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),On(e),i(e).trigger("aui-dropdown2-show"),te(e,(function(t){xn(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"),Mn(e).removeClass("active aui-dropdown2-active"),te(e,(function(e){var t;xn(e,!1),t=!0===Rn,Rn=!1,t&&e.focus()})),delete e.isSubmenu)}))}function zn(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&&($n(),e.hide(),t.preventDefault()):t.keyCode===Q.ESCAPE?$n():t.keyCode===Q.TAB&&($n(),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,o=a===Q.ENTER,r=a===Q.SPACE;o&&i(s).is("a[href], button")||"click"!==t.type&&!o&&!r||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(Me(e).above()).get(0);for(;s&&s.isDropdown&&s!==e;){const e=s.getAttribute("id"),n=t.target.getAttribute("aria-controls"),a=Me(s).above();n!==e&&Me(s).hide(),s=i(a).get(0)}}))}function Fn(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")),jn(e),zn(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,dt.debounce)((function(){i(".aui-dropdown2").each((function(e,t){Z.init(t),t.isVisible()&&t.hide()}))}),1e3,!0));var Hn={toggle:function(e){this.isVisible()?this.hide():this.show(e)},show:function(e){const t=this;return te(t,(e=>{xn(e,!1)})),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&ee(t,e.currentTarget),Me(t).show(),te(t,(function(e){xn(e,!0),Pn(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=Nn(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}}(t,e)),0),this},hide:function(){return Me(this).hide(),this},hideAll:function(e=!0){const t=function(e){let t=Me(e);for(;;){const e=t.below();if(!e)break;if(!e.get(0).isDropdown)break;t=Me(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=Nn(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=Nn(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=Nn(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 Me(this).isVisible()},isDropdown:!0},Un={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")}},Bn={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Wn={created:function(e){var t=e.children[0];t.classList.add("checked","aui-dropdown2-checked"),t.setAttribute("aria-checked",!0),e.dispatchEvent(new CustomEvent("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 CustomEvent("change",{bubbles:!0}))}},Vn={created:function(e){Un.created(e)},removed:function(e){Un.removed(e)}},Yn=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};const qn=function(e=""){return e.split(" ").map((e=>e.trim())).filter((e=>e))},Kn=Z("aui-item-link",{template:We()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Un,interactive:Bn,hidden:Vn,href:Yn("href"),"item-id":Yn("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(...qn(t.oldValue)),t.newValue&&i.classList.add(...qn(t.newValue))},"data-value":Yn("data-value")}}),Qn=Z("aui-item-button",{template:We()('<button class="aui-button"><content></content></button>'),attributes:{disabled:Un,"item-id":Yn("id"),"extra-classes":function(e,t){const i=e.children[0];t.oldValue&&i.classList.remove(...qn(t.oldValue)),t.newValue&&i.classList.add(...qn(t.newValue))},"data-value":Yn("data-value")}}),[Gn,Zn]=["checkbox","radio"].map((e=>Z(`aui-item-${e}`,{template:We()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":Yn("id"),disabled:Un,interactive:Bn,checked:Wn,hidden:Vn,"data-value":Yn("data-value")}}))),Jn=Z("aui-section",{template:We()('\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=wn();var n=e.children[0],s=e.children[1];n.textContent=t.newValue,n.id=i,s.setAttribute("aria-labelledby",i)},"aria-label":{fallback:function(e,t){e.children[1].setAttribute("aria-label",t.newValue)},removed:function(e){e.children[1].removeAttribute("aria-label")}}},created:function(e){e.classList.add("aui-dropdown2-section")}}),Xn=Z("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",Me(e),J(e).set("loading-state",Cn),Z.init(e)},detached:function(e){gn(e).then((()=>Ln(e)))},attributes:{src:{}},prototype:Hn,events:{"aui-layer-show":function(e){var t=J(e).get("loading-state")===Cn,i=J(e).get("hasErrorBeenShown");(t||i)&&Sn(e),J(e).get("loading-state")===kn&&J(e).set("hasErrorBeenShown",!0)}}});Z("aui-dropdown2",{type:Z.type.CLASSNAME,created:Fn,prototype:Hn}),Z("data-aui-dropdown2",{type:Z.type.ATTRIBUTE,created:Fn,prototype:Hn}),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 o=i(e);return o.parent().hasClass("aui-buttons")&&a.classList.add("aui-dropdown2-in-buttons"),o.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")===Cn,i=J(e).get("hasErrorBeenShown");(t||i&&!e.isVisible())&&Sn(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"),Ot&&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 es={"aria-expanded":O("Expander [aria-expanded] attribute",{removeInVersion:"11.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:"11.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:"11.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},ts=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")&&(es["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 is=(e,t)=>{if(!t)return;const i=e.data("replace-selector");if(i){es["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)},ns={"aui-expander-invoke":function(e){const t=i(e.currentTarget),{isCollapsible:n,isExpanded:s}=ts(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}=ts(e);e.attr("aria-expanded","true"),t.addClass("expanded"),t.prop("hidden",!1),is(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}=ts(e);is(e,s),e.attr("aria-expanded","false"),t.removeClass("expanded"),i&&n.show(),0===t.outerHeight()&&t.prop("hidden",!0),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(ns,".aui-expander-trigger"),i(document).ready((function(){i(".aui-expander-trigger").each((function(){!function(e){const{$content:t,isTriggerParent:i,isExpanded:n}=ts(e);e.data("replace-selector")&&es["replace-selector"](),t.attr("aria-expanded")&&(es["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),(i?e.find(".aui-expander-short-content"):null)&&es["short-content"](),0===t.outerHeight()&&!n&&t.prop("hidden",!0),e.attr("aria-expanded",n?"true":"false")}(i(this))}))}));const ss=500,as=5e3,os=100;function rs(e,t,n){i(e||".aui-message.aui-remove-on-hide").each((function(){cs(i(this),t,n)}))}function ls(e){i(e||"div.aui-message.closeable").each((function(){const e=i(this),t=e.find(Ct),n=t.length>0?t.first():i(Tt);var s;e.addClass("closeable"),e.append(n),(s=e).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Ct,(function(e){i(e.target).closest(".aui-message").closeMessage()})).on("keydown.aui-message",Ct,(function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(i(e.target).closest(".aui-message").closeMessage(),e.preventDefault())}))}))}function cs(e,t,n){t=void 0!==t?t:as,n=void 0!==n?n:ss,i(e||"div.aui-message.fadeout").each((function(){const e=i(this);let s=!1,a=!1;function o(){e.stop(!0,!1).delay(t).fadeOut(n,(function(){e.closeMessage()}))}function r(){e.stop(!0,!1).fadeTo(os,1)}function l(){return!s&&!a}e.focusin((function(){s=!0,r()})).focusout((function(){s=!1,l()&&o()})).hover((function(){a=!0,r()}),(function(){a=!1,l()&&o()})),o()}))}const us={setup:function(){rs(),ls(),cs()},makeRemoveOnHide:rs,makeCloseable:ls,makeFadeout:cs,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:o,title:r,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=r?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${S(r)}</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(o?"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 11.0.0."),rs(s,n.delay,n.duration)),n.closeable&&ls(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),cs(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]))},us.createMessage("generic"),us.createMessage("error"),us.createMessage("warning"),us.createMessage("info"),us.createMessage("confirmation"),us.createMessage("change"),us.createMessage("success"),us.createMessage("hint");const ds=Z("aui-message",{created:function(e){const t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",us[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(){us.setup()})),j(us,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),j(us,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(us,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),l("messages",us);const hs='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"]',ps="aui-flag-container",fs={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function gs(e){const t=(0,dt.defaults)(e,fs);t.title=(t.title||"").toString().trim();const n=function({body:e,title:t,close:n,type:s,ariaLive:a,ariaLabel:o,ariaDescription:r}){const l=`<div class="aui-message">${t?`<p class="title"><strong>${S(t)}</strong></p>`:""}</div>`;o||(o=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));r||(r="");const c=i(l).append(i.parseHTML(e||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(hs).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":S(o),"aria-hidden":"false","aria-live":S(a),role:d,...u?{"data-aui-focus-selector":hs.split(", ").map((e=>`.aui-message ${e}`)).join(", "),"data-aui-focus":"true"}:{},...r?{"aria-description":S(r)}:{}}).append(c)}(t);return function(e){const t=e[0];t.close=function(){vs(e)}}(n),"auto"===t.close?(ms(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&&ms(n),function(){const e=bs();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="'+ps+'"></div>')}(),function(e){const t=bs();e.appendTo(t),B(e),e.removeAttr("hidden").attr("open","")}(n),setTimeout((function(){"alertdialog"===n.attr("role")&&fe.global.enter(n)}),0),n.get(0)}function ms(e){const t=i(Tt);return t.on("click",(function(){vs(e)})),t.on("keypress",(function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(vs(e),t.preventDefault())})),e.find(".aui-message").append(t)[0]}function vs(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 CustomEvent("aui-flag-close",{bubbles:!0})),t}function bs(){return document.getElementById(ps)}G("aui/flag",gs),l("flag",gs);const ys=gs;var ws=a(722);const _s=a.n(ws)();const xs=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")}}},Cs="-input";function Ts(e){return e.querySelector("label")}const ks=Z("aui-label",{template:We()("<label><content></content></label>"),created:function(e){e._label=Ts(e)},attached:function(e){xs(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?Ts(e).setAttribute("for",`${t.newValue}${Cs}`):Ts(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?Ts(e).setAttribute("form",t.newValue):Ts(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 Es=i.fn.select2,As="aui-select2-container",Ds="aui-select2-drop aui-dropdown2",Ss="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=As+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=Ds+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(n)}else t=arguments.length?arguments:[{containerCssClass:As,dropdownCssClass:Ds}];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=Es.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...e],t(...i)};n.ajax.transport=i}const s=Es.apply(this,t),a=this,o=n.searchLabel;return a.on("select2-open",(function(){const e=i(this),t=e.select2("dropdown");let s=e.data(Ss);s||(s=Me(),e.data(Ss,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")||o&&t.find(".select2-search label").text(o)})),a.on("select2-close",(function(){const e=i(this),t=e.data(Ss);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(o&&t.find(".select2-search-field label").text(o));const s=t.find("label");if(s.attr("id"))return;const a=t.find(".select2-focusser"),r=a.attr("id")+"-label",l=a.attr("aria-labelledby");s.attr("id",r),a.attr("aria-labelledby",r+" "+l)})),s},i.fn.spin=R((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:"11.0.0",alternativeName:"<aui-spinner>"}),i.fn.spinStop=R((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:"11.0.0",alternativeName:"<aui-spinner>"});const Is=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 Ms=a(572),Ns=a.n(Ms),Os=Ns().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,dt.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,dt.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,dt.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t={add:!0,update:!0,remove:!1,data:this.getQueryData(e)};return Ns().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,dt.first)(t,this._maxResults)),t):t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,dt.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",Os);const Ls=Os,Ps=Ns().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});const Rs=function(){return{_suggestions:[],_activeIndex:-1,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}}};function $s(e,t){return e+"-"+t}function js(e){i(e).find(".aui-select-active").removeClass("aui-select-active")}const zs=function(e,t){const n={el:e,anchor:t,render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let a=0;a<e.length;a++){const o=e[a],r=a+t,l=o.getLabel(),c=o.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=o.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===r}" id="${$s(i,r)}">${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){js(this.el),i(this.el).find("#"+$s(this.currListId,e)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(e){i(e.el).css("min-width",i(e.anchor).outerWidth())}(this),Me(this.el).show(),function(e){e.anchor&&!e._auiAlignment&&(e._auiAlignment=new fn(e.el,e.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),e._auiAlignment&&(e._auiAlignment.enable(),e._auiAlignment.scheduleUpdate())}(this)},hide:function(){js(this.el),Me(this.el).hide(),function(e){e._auiAlignment&&e._auiAlignment.disable()}(this)},destroy:function(){this.hide(),function(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}(this),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};return n},Fs=We()('\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'),Hs=-1,Us=-1,Bs=50;function Ws(e){e._select.selectedIndex=Hs,function(e){e._input.removeAttribute("style"),i(e._input).removeClass("aui-select-has-inline-image")}(e)}function Vs(e){return e._suggestionModel.getNumberOfResults()}function Ys(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function qs(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),sa(e,"")}function Ks(e){e._suggestionsView.hide(),qs(e)}function Qs(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function Gs(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 Zs(e,t){if(t){var i,n=document.createElement("option"),s=e._select,a=t.get("value")||t.get("label"),o=(i=t.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",a),n.textContent=o,e._input.value=o,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function Js(e){Zs(e,e._suggestionModel.highlighted()),Gs(e),Ks(e)}function Xs(e){return new Ps(e.serialize())}function ea(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(Xs(n))}return t}function ta(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function ia(e,t){return i.map(t,(function(e){return e.id})).indexOf(e)}function na(e){e._progressiveDataSet=new Ls(ea(e),{model:Ps,matcher:Ys,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=ea(e));var i=-1!==ia(e._input.value,t.results),n=!e._input.value;!e.hasAttribute("can-create-values")||i||n||t.results.push(function(e){var t=new Is;t.setAttribute("value",e._input.value);var i=Xs(t);return i.set("new-value",!0),i}(e));let s=ia(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),o=t.results[s];e._autoHighlight&&(e._suggestionModel.setHighlighted(o),setTimeout((function(){const t=ta(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")}),Bs)),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 sa(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout((()=>{const i=e._assistiveStatus.innerText;t!==i&&(e._assistiveStatus.innerText=t)}),Bs)}function aa(e){Qs(e,!0,e.value?"":e._input.value)}function oa(e){(function(e){return e._progressiveDataSet.activeQueryCount>0})(e)&&J(e).set("should-cancel-response",!0)}function ra(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function la(e){oa(e),function(e){var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==ra(e);if(i||n)if(t)Ws(e);else{var s=ra(e);void 0===s?Ws(e):e._input.value=s}}(e),function(e){e._suggestionModel.highlight(Us)}(e),Ks(e)}const ca=Z("aui-select",{template:Fs,created:function(e){e._listId=wn(),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 zs(e._dropdown,e._input),e._suggestionModel=new Rs,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=ea(e),s=ia(e.value,n),a=t.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),sa(e,a)},e._suggestionModel.onHighlightChange=function(){const t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);const i=ta(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){Z.init(e),na(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){Vs(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(!Vs(e))return!1;e._suggestionModel.highlight(i(n.target).index()),Js(e),i(e).closest(".aui-layer").length>0&&(t=!0)}))}(e),function(e){var t=e._datalist.querySelector("aui-option[selected]");t&&Zs(e,Xs(t))}(e),function(e){var t=Vs(e)?0:Us;e._suggestionModel.highlight(t),Ks(e)}(e),Gs(e)},detached:function(e){i(document).off("aui-close-layers-on-outer-click"),gn(e).then((()=>{Ks(e),e._suggestionsView.destroy()}))},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+Cs)},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){la(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){aa(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?Qs(e,!0):J(e).get("button-clicked-prevent-dropdown-hide")?J(e).set("button-clicked-prevent-dropdown-hide",!1):Ks(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===Q.ESCAPE)return oa(e),void qs(e);e._suggestionsView.isVisible()&&Vs(e)?t.keyCode===Q.ENTER?(oa(e),Js(e),t.preventDefault()):t.keyCode===Q.TAB?(Js(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||(aa(e),t.preventDefault()),n=n||t.defaultPrevented,setTimeout((function(){e._input.value===i||n||e.dispatchEvent(new CustomEvent("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 Ps({value:e,label:e})),Zs(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),la(this),this},focus:function(){return this._input.focus(),aa(this),this}}});G("aui/select",ca),l("select",ca);const ua=ca,{entries:da,setPrototypeOf:ha,isFrozen:pa,getPrototypeOf:fa,getOwnPropertyDescriptor:ga}=Object;let{freeze:ma,seal:va,create:ba}=Object,{apply:ya,construct:wa}="undefined"!=typeof Reflect&&Reflect;ma||(ma=function(e){return e}),va||(va=function(e){return e}),ya||(ya=function(e,t,i){return e.apply(t,i)}),wa||(wa=function(e,t){return new e(...t)});const _a=Ra(Array.prototype.forEach),xa=Ra(Array.prototype.lastIndexOf),Ca=Ra(Array.prototype.pop),Ta=Ra(Array.prototype.push),ka=Ra(Array.prototype.splice),Ea=Ra(String.prototype.toLowerCase),Aa=Ra(String.prototype.toString),Da=Ra(String.prototype.match),Sa=Ra(String.prototype.replace),Ia=Ra(String.prototype.indexOf),Ma=Ra(String.prototype.trim),Na=Ra(Object.prototype.hasOwnProperty),Oa=Ra(RegExp.prototype.test),La=(Pa=TypeError,function(){for(var e=arguments.length,t=new Array(e),i=0;i<e;i++)t[i]=arguments[i];return wa(Pa,t)});var Pa;function Ra(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 ya(e,t,n)}}function $a(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ea;ha&&ha(e,null);let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){const e=i(s);e!==s&&(pa(t)||(t[n]=e),s=e)}e[s]=!0}return e}function ja(e){for(let t=0;t<e.length;t++){Na(e,t)||(e[t]=null)}return e}function za(e){const t=ba(null);for(const[i,n]of da(e)){Na(e,i)&&(Array.isArray(n)?t[i]=ja(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=za(n):t[i]=n)}return t}function Fa(e,t){for(;null!==e;){const i=ga(e,t);if(i){if(i.get)return Ra(i.get);if("function"==typeof i.value)return Ra(i.value)}e=fa(e)}return function(){return null}}const Ha=ma(["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","section","select","shadow","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"]),Ua=ma(["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"]),Ba=ma(["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"]),Wa=ma(["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"]),Va=ma(["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"]),Ya=ma(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),qa=ma(["#text"]),Ka=ma(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","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","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Qa=ma(["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","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","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","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-rendering","textlength","type","u1","u2","unicode","values","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"]),Ga=ma(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","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"]),Za=ma(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),Ja=va(/\{\{[\w\W]*|[\w\W]*\}\}/gm),Xa=va(/<%[\w\W]*|[\w\W]*%>/gm),eo=va(/\$\{[\w\W]*/gm),to=va(/^data-[\-\w.\u00B7-\uFFFF]+$/),io=va(/^aria-[\-\w]+$/),no=va(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),so=va(/^(?:\w+script|data):/i),ao=va(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),oo=va(/^html$/i),ro=va(/^[a-z][.\w]*(-[.\w]+)+$/i);var lo=Object.freeze({__proto__:null,ARIA_ATTR:io,ATTR_WHITESPACE:ao,CUSTOM_ELEMENT:ro,DATA_ATTR:to,DOCTYPE_NAME:oo,ERB_EXPR:Xa,IS_ALLOWED_URI:no,IS_SCRIPT_OR_DATA:so,MUSTACHE_EXPR:Ja,TMPLIT_EXPR:eo});const co=1,uo=3,ho=7,po=8,fo=9,go=function(){return"undefined"==typeof window?null:window};var mo=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:go();const i=t=>e(t);if(i.version="3.2.6",i.removed=[],!t||!t.document||t.document.nodeType!==fo||!t.Element)return i.isSupported=!1,i;let{document:n}=t;const s=n,a=s.currentScript,{DocumentFragment:o,HTMLTemplateElement:r,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=t,g=c.prototype,m=Fa(g,"cloneNode"),v=Fa(g,"remove"),b=Fa(g,"nextSibling"),y=Fa(g,"childNodes"),w=Fa(g,"parentNode");if("function"==typeof r){const e=n.createElement("template");e.content&&e.content.ownerDocument&&(n=e.content.ownerDocument)}let _,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:E}=n,{importNode:A}=s;let D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof da&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:S,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=lo;let{IS_ALLOWED_URI:$}=lo,j=null;const z=$a({},[...Ha,...Ua,...Ba,...Va,...qa]);let F=null;const H=$a({},[...Ka,...Qa,...Ga,...Za]);let U=Object.seal(ba(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}})),B=null,W=null,V=!0,Y=!0,q=!1,K=!0,Q=!1,G=!0,Z=!1,J=!1,X=!1,ee=!1,te=!1,ie=!1,ne=!0,se=!1,ae=!0,oe=!1,re={},le=null;const ce=$a({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let ue=null;const de=$a({},["audio","video","img","source","image","track"]);let he=null;const pe=$a({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),fe="http://www.w3.org/1998/Math/MathML",ge="http://www.w3.org/2000/svg",me="http://www.w3.org/1999/xhtml";let ve=me,be=!1,ye=null;const we=$a({},[fe,ge,me],Aa);let _e=$a({},["mi","mo","mn","ms","mtext"]),xe=$a({},["annotation-xml"]);const Ce=$a({},["title","style","font","a","script"]);let Te=null;const ke=["application/xhtml+xml","text/html"];let Ee=null,Ae=null;const De=n.createElement("form"),Se=function(e){return e instanceof RegExp||e instanceof Function},Ie=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Ae||Ae!==e){if(e&&"object"==typeof e||(e={}),e=za(e),Te=-1===ke.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Ee="application/xhtml+xml"===Te?Aa:Ea,j=Na(e,"ALLOWED_TAGS")?$a({},e.ALLOWED_TAGS,Ee):z,F=Na(e,"ALLOWED_ATTR")?$a({},e.ALLOWED_ATTR,Ee):H,ye=Na(e,"ALLOWED_NAMESPACES")?$a({},e.ALLOWED_NAMESPACES,Aa):we,he=Na(e,"ADD_URI_SAFE_ATTR")?$a(za(pe),e.ADD_URI_SAFE_ATTR,Ee):pe,ue=Na(e,"ADD_DATA_URI_TAGS")?$a(za(de),e.ADD_DATA_URI_TAGS,Ee):de,le=Na(e,"FORBID_CONTENTS")?$a({},e.FORBID_CONTENTS,Ee):ce,B=Na(e,"FORBID_TAGS")?$a({},e.FORBID_TAGS,Ee):za({}),W=Na(e,"FORBID_ATTR")?$a({},e.FORBID_ATTR,Ee):za({}),re=!!Na(e,"USE_PROFILES")&&e.USE_PROFILES,V=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,Q=e.SAFE_FOR_TEMPLATES||!1,G=!1!==e.SAFE_FOR_XML,Z=e.WHOLE_DOCUMENT||!1,ee=e.RETURN_DOM||!1,te=e.RETURN_DOM_FRAGMENT||!1,ie=e.RETURN_TRUSTED_TYPE||!1,X=e.FORCE_BODY||!1,ne=!1!==e.SANITIZE_DOM,se=e.SANITIZE_NAMED_PROPS||!1,ae=!1!==e.KEEP_CONTENT,oe=e.IN_PLACE||!1,$=e.ALLOWED_URI_REGEXP||no,ve=e.NAMESPACE||me,_e=e.MATHML_TEXT_INTEGRATION_POINTS||_e,xe=e.HTML_INTEGRATION_POINTS||xe,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Se(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(U.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(U.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(Y=!1),te&&(ee=!0),re&&(j=$a({},qa),F=[],!0===re.html&&($a(j,Ha),$a(F,Ka)),!0===re.svg&&($a(j,Ua),$a(F,Qa),$a(F,Za)),!0===re.svgFilters&&($a(j,Ba),$a(F,Qa),$a(F,Za)),!0===re.mathMl&&($a(j,Va),$a(F,Ga),$a(F,Za))),e.ADD_TAGS&&(j===z&&(j=za(j)),$a(j,e.ADD_TAGS,Ee)),e.ADD_ATTR&&(F===H&&(F=za(F)),$a(F,e.ADD_ATTR,Ee)),e.ADD_URI_SAFE_ATTR&&$a(he,e.ADD_URI_SAFE_ATTR,Ee),e.FORBID_CONTENTS&&(le===ce&&(le=za(le)),$a(le,e.FORBID_CONTENTS,Ee)),ae&&(j["#text"]=!0),Z&&$a(j,["html","head","body"]),j.table&&($a(j,["tbody"]),delete B.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw La('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=e.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=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}}(f,a)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));ma&&ma(e),Ae=e}},Me=$a({},[...Ua,...Ba,...Wa]),Ne=$a({},[...Va,...Ya]),Oe=function(e){Ta(i.removed,{element:e});try{w(e).removeChild(e)}catch(t){v(e)}},Le=function(e,t){try{Ta(i.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){Ta(i.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ee||te)try{Oe(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Pe=function(e){let t=null,i=null;if(X)e="<remove></remove>"+e;else{const t=Da(e,/^[\r\n\t ]+/);i=t&&t[0]}"application/xhtml+xml"===Te&&ve===me&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const s=_?_.createHTML(e):e;if(ve===me)try{t=(new p).parseFromString(s,Te)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(ve,"template",null);try{t.documentElement.innerHTML=be?x:s}catch(e){}}const a=t.body||t.documentElement;return e&&i&&a.insertBefore(n.createTextNode(i),a.childNodes[0]||null),ve===me?E.call(t,Z?"html":"body")[0]:Z?t.documentElement:a},Re=function(e){return T.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$e=function(e){return e instanceof h&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof d)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},je=function(e){return"function"==typeof l&&e instanceof l};function ze(e,t,n){_a(e,(e=>{e.call(i,t,n,Ae)}))}const Fe=function(e){let t=null;if(ze(D.beforeSanitizeElements,e,null),$e(e))return Oe(e),!0;const n=Ee(e.nodeName);if(ze(D.uponSanitizeElement,e,{tagName:n,allowedTags:j}),G&&e.hasChildNodes()&&!je(e.firstElementChild)&&Oa(/<[/\w!]/g,e.innerHTML)&&Oa(/<[/\w!]/g,e.textContent))return Oe(e),!0;if(e.nodeType===ho)return Oe(e),!0;if(G&&e.nodeType===po&&Oa(/<[/\w]/g,e.data))return Oe(e),!0;if(!j[n]||B[n]){if(!B[n]&&Ue(n)){if(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,n))return!1;if(U.tagNameCheck instanceof Function&&U.tagNameCheck(n))return!1}if(ae&&!le[n]){const t=w(e)||e.parentNode,i=y(e)||e.childNodes;if(i&&t){for(let n=i.length-1;n>=0;--n){const s=m(i[n],!0);s.__removalCount=(e.__removalCount||0)+1,t.insertBefore(s,b(e))}}}return Oe(e),!0}return e instanceof c&&!function(e){let t=w(e);t&&t.tagName||(t={namespaceURI:ve,tagName:"template"});const i=Ea(e.tagName),n=Ea(t.tagName);return!!ye[e.namespaceURI]&&(e.namespaceURI===ge?t.namespaceURI===me?"svg"===i:t.namespaceURI===fe?"svg"===i&&("annotation-xml"===n||_e[n]):Boolean(Me[i]):e.namespaceURI===fe?t.namespaceURI===me?"math"===i:t.namespaceURI===ge?"math"===i&&xe[n]:Boolean(Ne[i]):e.namespaceURI===me?!(t.namespaceURI===ge&&!xe[n])&&!(t.namespaceURI===fe&&!_e[n])&&!Ne[i]&&(Ce[i]||!Me[i]):!("application/xhtml+xml"!==Te||!ye[e.namespaceURI]))}(e)?(Oe(e),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!Oa(/<\/no(script|embed|frames)/i,e.innerHTML)?(Q&&e.nodeType===uo&&(t=e.textContent,_a([S,I,M],(e=>{t=Sa(t,e," ")})),e.textContent!==t&&(Ta(i.removed,{element:e.cloneNode()}),e.textContent=t)),ze(D.afterSanitizeElements,e,null),!1):(Oe(e),!0)},He=function(e,t,i){if(ne&&("id"===t||"name"===t)&&(i in n||i in De))return!1;if(Y&&!W[t]&&Oa(N,t));else if(V&&Oa(O,t));else if(!F[t]||W[t]){if(!(Ue(e)&&(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&Oa(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&Oa(U.tagNameCheck,i)||U.tagNameCheck instanceof Function&&U.tagNameCheck(i))))return!1}else if(he[t]);else if(Oa($,Sa(i,P,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==Ia(i,"data:")||!ue[e]){if(q&&!Oa(L,Sa(i,P,"")));else if(i)return!1}else;return!0},Ue=function(e){return"annotation-xml"!==e&&Da(e,R)},Be=function(e){ze(D.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||$e(e))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let s=t.length;for(;s--;){const a=t[s],{name:o,namespaceURI:r,value:l}=a,c=Ee(o),u=l;let d="value"===o?u:Ma(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,ze(D.uponSanitizeAttribute,e,n),d=n.attrValue,!se||"id"!==c&&"name"!==c||(Le(o,e),d="user-content-"+d),G&&Oa(/((--!?|])>)|<\/(style|title)/i,d)){Le(o,e);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Le(o,e);continue}if(!K&&Oa(/\/>/i,d)){Le(o,e);continue}Q&&_a([S,I,M],(e=>{d=Sa(d,e," ")}));const h=Ee(e.nodeName);if(He(h,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(r);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{r?e.setAttributeNS(r,o,d):e.setAttribute(o,d),$e(e)?Oe(e):Ca(i.removed)}catch(t){Le(o,e)}}else Le(o,e)}ze(D.afterSanitizeAttributes,e,null)},We=function e(t){let i=null;const n=Re(t);for(ze(D.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)ze(D.uponSanitizeShadowNode,i,null),Fe(i),Be(i),i.content instanceof o&&e(i.content);ze(D.afterSanitizeShadowDOM,t,null)};return i.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,a=null,r=null,c=null;if(be=!e,be&&(e="\x3c!--\x3e"),"string"!=typeof e&&!je(e)){if("function"!=typeof e.toString)throw La("toString is not a function");if("string"!=typeof(e=e.toString()))throw La("dirty is not a string, aborting")}if(!i.isSupported)return e;if(J||Ie(t),i.removed=[],"string"==typeof e&&(oe=!1),oe){if(e.nodeName){const t=Ee(e.nodeName);if(!j[t]||B[t])throw La("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof l)n=Pe("\x3c!----\x3e"),a=n.ownerDocument.importNode(e,!0),a.nodeType===co&&"BODY"===a.nodeName||"HTML"===a.nodeName?n=a:n.appendChild(a);else{if(!ee&&!Q&&!Z&&-1===e.indexOf("<"))return _&&ie?_.createHTML(e):e;if(n=Pe(e),!n)return ee?null:ie?x:""}n&&X&&Oe(n.firstChild);const u=Re(oe?e:n);for(;r=u.nextNode();)Fe(r),Be(r),r.content instanceof o&&We(r.content);if(oe)return e;if(ee){if(te)for(c=k.call(n.ownerDocument);n.firstChild;)c.appendChild(n.firstChild);else c=n;return(F.shadowroot||F.shadowrootmode)&&(c=A.call(s,c,!0)),c}let d=Z?n.outerHTML:n.innerHTML;return Z&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&Oa(oo,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Q&&_a([S,I,M],(e=>{d=Sa(d,e," ")})),_&&ie?_.createHTML(d):d},i.setConfig=function(){Ie(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),J=!0},i.clearConfig=function(){Ae=null,J=!1},i.isValidAttribute=function(e,t,i){Ae||Ie({});const n=Ee(e),s=Ee(t);return He(n,s,i)},i.addHook=function(e,t){"function"==typeof t&&Ta(D[e],t)},i.removeHook=function(e,t){if(void 0!==t){const i=xa(D[e],t);return-1===i?void 0:ka(D[e],i,1)[0]}return Ca(D[e])},i.removeHooks=function(e){D[e]=[]},i.removeAllHooks=function(){D={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const vo="aui-tooltip",bo={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},yo="aui-tooltip",wo={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let _o;const xo=(e=!1)=>{const t=_o&&_o.get(0);t&&(t.classList.toggle("hidden",e),t.setAttribute("aria-hidden",e))};class Co{constructor(e,t){this.triggerElement=e,this.$triggerElement=i(this.triggerElement),this.options={...wo,...t},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),To.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",vo),null}))}restoreOriginalAttributes(){const e=this.$triggerElement;this.originalTitle&&e.attr("title",this.originalTitle),e.attr("aria-describedby")===vo&&e.removeAttr("aria-describedby")}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(`.${yo}`,e):(this.triggerObservers.length>0&&this.triggerObservers.forEach((e=>e.disconnect())),this.$triggerElement.off(`.${yo}`))}initContainer(){(void 0===_o||_o.get(0)&&!_o.get(0).isConnected)&&(_o=i(`<div id="${vo}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(_o))}buildTip(e){const t=this.options,i=_o.find(".aui-tooltip-content");return t.html?(t.sanitize&&(e=mo.sanitize(e)),i.html(e)):i.text(e),t.maxWidth&&i.css("max-width",t.maxWidth+"px"),_o}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;_o&&e!==_o.text()&&this.hide();const t=this.triggerElement,n=bo[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.${yo}`,(()=>this.hide()))}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${yo}`)}showTooltip(){xo(!1)}hideTooltip(){xo(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const To=new WeakMap,ko=(e,t)=>{let i=To.get(e);return void 0===i&&(i=new Co(e,t),"object"==typeof e&&To.set(e,i)),i},Eo=e=>e.map((e=>`${e}.${yo}`)).join(" "),Ao=Eo(["mouseenter","focus"]),Do=Eo(["click","mouseleave","blur"]);let So,Io;i.fn.tooltip=function(e){const t=this;if(!0===e){const e=t.get(0);return ko(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(Io),clearTimeout(So)},s=function(){n();const e=ko(this,i);So=setTimeout((()=>{n(),e.show(),_o&&(_o.off(`mouseenter.${yo}`),_o.off(`mouseleave.${yo}`),_o.on(`mouseenter.${yo}`,(()=>{n()})),_o.on(`mouseleave.${yo}`,(()=>{n(),a()})))}),300)},a=function(){n();const e=ko(this,i);Io=setTimeout((()=>{e.hide()}),300)},o=function(e){"Escape"===e.code&&a()},r=i.live;return void 0!==r?(i.$delegationRoot=t,t.on(Ao,r,s),t.on(Do,r,a),t.on("keyup",r,o)):(t.on(Ao,s),t.on(Do,a),t.on("keyup",o)),t};function Mo(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}const No={computeBooleanValue:function(e){return null!==e},setBooleanAttribute:Mo,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 yt)}function Po(e,t){Oo(t).removeAttribute(e)}function Ro(e,t,i){Oo(t).setAttribute(e,i.newValue)}function $o(e){return{removed:Po.bind(this,e),fallback:Ro.bind(this,e)}}const jo={removed:function(e){Po.call(this,"form",e),e._formId=null},fallback:function(e,t){Ro.call(this,"form",e,t),e._formId=t.newValue}},zo={removed:Po.bind(void 0,"id"),fallback:function(e,t){const i=`${t.newValue}${Cs}`;Oo(e).setAttribute("id",i)}},Fo={removed:function(e){Po.call(this,"value",e),Oo(e).value="on"},fallback:function(e,t){Ro.call(this,"value",e,t)}},Ho={removed:function(e){Oo(e).checked=!1},fallback:function(e){Oo(e).checked=!0}},Uo={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===Mt)try{document.querySelector(":focus-within"),Mt=!0}catch(e){Mt=!1}return Mt}()||(e._input.addEventListener("focus",(()=>e.classList.add("active"))),e._input.addEventListener("blur",(()=>e.classList.remove("active"))))}const Wo=Z("aui-toggle",{template:We()('<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",ht.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){xs(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 CustomEvent("change",{bubbles:!0}))}(e)),Mo(e,"checked",i.checked)}},attributes:{id:zo,checked:Ho,disabled:$o("disabled"),form:jo,name:$o("name"),value:Fo,"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:Uo},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,Mo(this,"checked",e))},get disabled(){return Oo(this).disabled},set disabled(e){return Mo(this,"disabled",e)},get form(){return document.getElementById(this._formId)},set form(e){return jo.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 Mo(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}}}),Vo=Wo,Yo=1e3;function qo(e,t){rr(e)&&te(e,(function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)})),ee(e,t)}function Ko(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 fn(e,t,i)}}function Qo(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function Go(e,t){var i=t.currentTarget;i&&(qo(e,i),Ko(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function Zo(e=0){return function(t){t.open&&!Me(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 Jo={click(e,t){e.open&&!Me(e).isPersistent()?e.open=!1:(qo(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:Go,mouseleave:Zo(Yo),focus:Go,blur:Zo(0)};function Xo(e){var t=e.currentTarget;J(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function er(e){var t=e.currentTarget;J(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function tr(e){var t=e.currentTarget;"hover"===t.respondsTo&&Zo(Yo)(t)}function ir(e){J(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",Xo),e.removeEventListener("mouseleave",er),e.removeEventListener("blur",tr),"hover"===e.respondsTo&&(J(e).set("mouse-inside",!1),e.addEventListener("mouseenter",Xo),e.addEventListener("mouseleave",er),e.addEventListener("blur",tr))}function nr(e,t){return`${e}.nested-layer-${t}`}function sr(e){return Me(e).show(),!0===Me(e).isVisible()}function ar(e){return Me(e).hide(),!1===Me(e).isVisible()}function or(e){return"hover"!==e.respondsTo}function rr(e){return"dialog"!==e.getAttribute("role")}function lr(e){e.__initialised||(Me(e),i(e).on({[`${me}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(nr("aui-layer-show",n),(e=>{s(e)||t.attr("persistent","")})).on(nr("aui-layer-hide",n),(e=>{s(e)||t.removeAttr("persistent")})).on(nr("select2-opening",n),(()=>{t.attr("persistent","")})).on(nr("select2-close",n),(()=>{setTimeout((()=>{t.removeAttr("persistent")}),150)}))}(t),te(t,(function(e){or(t)&&fe().enter(i(t),i(e)),Ko(t,e),rr(t)&&e.setAttribute("aria-expanded","true")})))},[`${me}hide`]:function(e){const t=this;var n;e.target===t&&(n=t.id,i(document).off(nr("aui-layer-hide",n)).off(nr("aui-layer-show",n)).off(nr("select2-opening",n)).off(nr("select2-close",n)),t.ownerDocument.body.contains(t)?function(e){e._auiAlignment&&e._auiAlignment.disable()}(t):Qo(t),te(t,(function(e){or(t)&&fe().exit(i(t)),rr(t)&&e.setAttribute("aria-expanded","false")})),ee(t,null))}}),e.__initialised=!0)}const cr={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},ur=Z("aui-inline-dialog",{prototype:{get open(){return Me(this).isVisible()},set open(e){this.__propUpdate=!0,e?sr(this):ar(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(e){No.setBooleanAttribute(this,"persistent",e)},get respondsTo(){var e=cr.attribute;return No.computeEnumValue(cr,this.getAttribute(e))},set respondsTo(e){const t=this.respondsTo;No.setEnumAttribute(this,cr,e),t!==this.respondsTo&&ir(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&&Jo[i.type](t,i),this}},attributes:{open:function(e,t){if(lr(e),e.__propUpdate)delete e.__propUpdate;else{if("created"===t.type){sr(e)||Mo(e,"open",!1)}if("removed"===t.type){ar(e)||Mo(e,"open",!0)}}},"responds-to":function(e,t){No.computeEnumValue(cr,t.oldValue)!==No.computeEnumValue(cr,t.newValue)&&ir(e)}},created:lr,attached:function(e){xs(e).attributeExists("id"),e.setAttribute("tabindex",0),rr(e)&&(e.setAttribute("role","group"),te(e,(function(t){t.setAttribute("aria-expanded",e.open)})),ie(e,(function(e){e.setAttribute("aria-haspopup","true")}))),ir(e)},detached:function(e){gn(e).then((()=>{Qo(e),rr(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",ur),l("InlineDialog2",ur);const dr=ur;function hr(e){if(this.$el=i(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map((function(e,t){return new hr(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(){pr(i(this).children(".aui-nav")).expand()}));var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",(function(){pr(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}hr.prototype.isNested=function(){return 1===this.$treeParent.length},hr.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},hr.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},hr.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},hr.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const pr=ge("navigation",hr),fr=Z("aui-nav",{type:Z.type.CLASSNAME,attached:function(e){new hr(e)},detached:function(e){i(e).removeData()}});l("navigation",pr);const gr=pr,mr="aui-progress-indicator-after-update",vr="aui-progress-indicator-before-update",br="transitionend webkitTransitionEnd";function yr(e,t,{currentProgress:n,value:s}){const a=i(e),o=i(t);"number"==typeof s&&s<=1&&s>=0&&(o.trigger(vr,[n,s]),a.one(br,(function(){o.trigger(mr,[n,s])})),function(e,t,i){B(e),e.css("width",100*i+"%"),t.attr("data-value",i)}(a,o,s))}function wr(e){var t=i(e).first(),n=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),B(t),n.css("width","")}const _r={indeterminate:!1,max:1,val:0};function xr(e){return(0,dt.isNumber)(e)&&(0,dt.isFinite)(e)&&!(0,dt.isNaN)(e)}function Cr(e,t=1){const i=parseFloat(e);return xr(i)?i:Number(t)}function Tr(e,t=1){return Number(parseFloat(e).toFixed(t))}function kr(e){const{val:t,max:i}=e,n=function(e){return e>0?e:_r.max}(i),s=function(e,t){return Math.max(0,Math.min(e,t))}(t,n),a=Tr(s/n,6);return{max:n,val:s,valAsFraction:a,valAsPercent:Tr(100*a,2)}}function Er(e){const{val:t,valAsFraction:i,max:n}=kr(e._data),s=e.querySelector(".aui-progress-indicator"),a=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),wr(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),yr(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:a,value:i}))}function Ar(e,t){e._data.val=Cr(t.newValue,t.oldValue||_r.val),Er(e)}function Dr(e,t){e._data.max=Cr(t.newValue,t.oldValue||_r.max),Er(e)}const Sr=Z("aui-progressbar",{template(e){e._data.max=Cr(e.getAttribute("max"),_r.max),e._data.val=Cr(e.getAttribute("value"),_r.val),e._data.indeterminate=e.hasAttribute("indeterminate");const{val:t,max:i,valAsFraction:n,valAsPercent:s}=kr(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){Er(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:_r.val,fallback:function(e,t){if(e._updating)return!1;Ar(e,t)}},max:{value:_r.max,fallback:function(e,t){if(e._updating)return!1;Dr(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,dt.defaults)({},_r))},set _data(e){return this.__data=e},get indeterminate(){return this._data.indeterminate},set indeterminate(e){this._data.indeterminate=!!e,Er(this)},get value(){const{val:e}=kr(this._data);return e},set value(e){if(!xr(e))return!1;const t={newValue:Tr(e,6)};this._updating=!0,this.setAttribute("value",t.newValue),this._updating=!1,Ar(this,t)},get max(){const{max:e}=kr(this._data);return e},set max(e){if(!xr(e))return!1;const t={newValue:Tr(e,6)};this._updating=!0,this.setAttribute("max",t.newValue),this._updating=!1,Dr(this,t)}}}),Ir={update:R((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"),o=!a,r=parseFloat(a)||0,l=a&&r===t;if(l){l=r===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return o&&s.css("width",0),yr(s,n,{currentProgress:r,value:t}),n}),"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(wr,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",Ir);const Mr=Ir;a(99);const Nr={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function Or(e,t){let n=Object.assign({},Nr,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 Lr={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 o=(i+s).slice(0,10);return o+=(a+n).slice(-6),o},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(){Or(i(this))}))},setTableSortable:function(e,t){return Or(e,t)}};i(Lr.setup),l("tablessortable",Lr);function Pr(e,t=""){var n=i(e),s=t||!1;n.each((function(){var e=i(this);e.attr("id")||e.attr("id",wn(s))}))}l("_addID",Pr);const Rr=Pr;function $r(e){return(e=i(e)).prop("scrollWidth")>e.prop("clientWidth")}l("isClipped",$r);const jr=$r;var zr=window.skateTemplateHtml,Fr="_internal-aui-tabs-",Hr='.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])';function Ur(e){let t=i(e),n=String(t.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Br(e){let t=Ur(e);return t?document.getElementById(t):null}var Wr={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,o=0;s(a,n,t)&&o<e.length;o++){a+=i(e[o]).outerWidth(!0)}return e.slice(0,o-1)},moveVisibleTabs:function(e,t,n){for(var s=n.find("a").attr("aria-controls"),a=i("#"+s),o=this.findNewVisibleTabs(e,t.outerWidth(),n.parent().outerWidth(!0)),r=o.length-1,l=e.length-1;l>=r;l--){var c=i(e[l]);this.moveTabToResponsiveDropdown(c,a,n)}return i(o)},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 o=i(e[a]),r=parseInt(o.attr("data-aui-tab-width"),10);r<t&&this.moveTabOutOfDropdown(o,n),t-=r}},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 Vr(e){var t=i(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var n=Br(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"),o=i(document.getElementById(a));if(o.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),o.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 r=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");r.removeClass("active-tab"),r.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 Yr(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function qr(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return Fr+(t||"")+(i&&"true"!==i?"-"+i:"")}function Kr(e){el.change(i(e.target).closest("a")),e&&e.preventDefault()}function Qr(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)"),o=s.find(".aui-tabs-responsive-trigger").parent(),r=o.find("a"),l=r.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=Wr.totalTabsWidth(a,c)>n.outerWidth();if(!u&&d&&(o=Wr.createResponsiveDropdownTrigger(s,t),c=Wr.createResponsiveDropdown(n,t)),r.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),r.attr("id","aui-tabs-responsive-trigger-"+t),r.attr("href","#aui-tabs-responsive-trigger-"+t),c.attr("id","aui-tabs-responsive-dropdown-"+t),d){var h=Wr.moveVisibleTabs(a.toArray(),n,o),p=Wr.totalVisibleTabWidth(h),f=n.outerWidth()-p-o.outerWidth(!0);if(f>0){var g=c.find("li");Wr.moveInvisibleTabs(g.toArray(),f,o)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",Kr),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each((function(){Wr.moveTabOutOfDropdown(i(this),o)})),Wr.removeResponsiveDropdown(c,o))}(e,t)}))}function Gr(){return i(Hr).toArray()}function Zr(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=Br(t),Ur(e)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',e),n?(Rr(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",Kr),t.data("aui-tab-events-bound",!0),function(e){[].slice.call(e.querySelectorAll(".tabs-pane")).forEach(Xr)}(e)}}function Jr(){var e=i(".aui-tabs:not(.aui-tabs-disabled)");e.each((function(){Zr(this)})),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(Yr(n)&&window.localStorage)if(n.attr("id")){var a=window.localStorage.getItem(qr(n));if(a){var o=s.querySelector(`a[href$="${a}"]`);o&&Vr(o)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e)}function Xr(e){e.setAttribute("role","tabpanel")}var el={setup:function(){!function(){const e=(0,dt.debounce)(Qr,200);e(Gr()),i(window).on("resize.aui-tabs",(()=>e(Gr())))}(),Jr(),i(".aui-tabs.vertical-tabs").find("a").each((function(){var e=i(this);e.attr("title")||jr(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");Vr(n),Yr(s)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=Ur(e);i&&window.localStorage.setItem(qr(t),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(el.setup);const tl=Z("aui-tabs",{created:function(e){i(e).addClass("aui-tabs horizontal-tabs"),Z.init(e),Zr(e)},template:zr('<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&&el.change(function(e){return e.querySelectorAll("li[is=aui-tabs-tab]")}(this)[t].children[0]),this}}}),il=Z("aui-tabs-tab",{extends:"li",created:function(e){i(e).addClass("menu-item")},template:zr('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),nl=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 il,o=i(a);n.addClass("tabs-pane"),a.firstChild.setAttribute("href","#"+e.id),zr.wrap(a).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&o.addClass("active-tab"),n.siblings("ul").append(a)},template:zr("<content></content>")});l("tabs",el);const sl="_aui-form-notification-initialised",al="aria-describedby",ol="description",rl="errors",ll="data-aui-notification-",cl=ll+"wait",ul=ll+"info",dl=ll+"error",hl=[dl,ll+"success",cl,ul];function pl(e){fl(e)||(!function(e){e.addClass(sl),gl(e)}(e),bl(e))}function fl(e){return e.hasClass(sl)}function gl(e,t){if(t=t||ml(e),vl(e)===ul){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}-${ol}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${ol}">${t}</div>`}(e,t))}yl(e)}function ml(e){var t=vl(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 vl(e){let t;return hl.some((function(i){if(e.is("["+i+"]"))return t=i,!0})),t}function bl(e){const t=i(e);if(!fl(t))return;const n=vl(t);xl(t,n===cl);const s=ml(t);s&&n===dl?wl(t,s):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(dl)||t.parent().find(".error").remove()}function yl(e){const t=[],i=e.attr("id")||e.attr("name"),n=vl(e);ml(e)&&n===dl&&t.push(`${i}-${rl}`),_l(e,"description").length&&t.push(`${i}-${ol}`);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(al,t.length?t.join(" "):null)}function wl(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}-${rl}"><ul>${n}</ul></div>`}(e,t)),yl(e)}function _l(e,t){return e.parent().find(`.${t}`)}function xl(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 Cl=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});Z("data-aui-notification-field",{attached:function(e){Cl(),pl(i(e))},attributes:function(){const e={};return hl.forEach((function(t){e[t]=bl})),e}(),type:Z.type.ATTRIBUTE}),G("aui/form-notification");var Tl=["displayfield","watchfield","when","novalidate","state"],kl=[];var El={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,Tl);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 kl.push(a),a},validators:function(){return kl}};G("aui/form-validation/validator-register",El);const Al=El;function Dl(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=Ll("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){const t=Ll("minlength",e.args);e.invalidate(t)}else if(s&&t>s){const t=Ll("maxlength",e.args);e.invalidate(t)}else e.validate()}function Sl(e){return"password"===e.getAttribute("type")}function Il(e,t){var i=e.match(t);return!!i&&e===i[0]}function Ml(e){var t=Ll("pattern",e.args);Il(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function Nl(e){var t=Ll("required",e.args);e.el.value?e.validate():e.invalidate(t)}function Ol(e){var t=Ll("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(Ll("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(Ll("max",e.args)):e.validate()}}function Ll(e,t,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+e]:Pl[e];var s=i;i||(s=[t(e)]);var a,o=t(e+"-msg");return a=o?[o].concat(s):[n].concat(s),AJS.format.apply(null,a)}Al.register(["maxlength","minlength"],Dl),Al.register("[maxlength],[minlength]",Dl),Al.register(["matchingfield"],(function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=Ll("matchingfield",e.args,[t,n]);(Sl(e.el)||Sl(i))&&(s=Ll("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()})),Al.register(["doesnotcontain"],(function(e){var t=Ll("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)})),Al.register(["pattern"],Ml),Al.register("[pattern]",Ml),Al.register(["required"],Nl),Al.register("[required]",Nl),Al.register(["min","max"],Ol),Al.register("[min],[max]",Ol),Al.register(["dateformat"],(function(e){var t=e.args("dateformat"),i=Ll("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 o=new RegExp(a+"$","i");Il(e.el.value,o)?e.validate():e.invalidate(i)})),Al.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=Ll("minchecked",e.args),o=Ll("maxchecked",e.args);n&&s?e.validate():n?s||e.invalidate(o):e.invalidate(a)}));var Pl={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 Rl="aui-validation-",$l="data-aui-notification-",jl="aui-validation-state",zl="invalid",Fl="valid",Hl="validating",Ul="unvalidated",Bl="_aui-form-validation-initialised",Wl="_aui-internal-field-state-changed";function Vl(e){(function(e){return e.hasClass(Bl)})(e)||(!function(e){e.addClass(Bl),gl(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=ql(e,"when"),i=ql(e,"watchfield"),n=i?e.add("#"+i):e;n.on(t,(function(){Yl(e)}))}(e)}(e),Gl(e,Ul))}function Yl(e){if(!ql(e,"novalidate"))return function(e){!function(e){Zl(Xl(e),"none")}(e);var t=function(e){var t=[];return Kl().forEach((function(i,n){var s=i.validatorTrigger;e.is(s)&&t.push(n)})),t}(e);Gl(e,Hl);var n=function(e,t){var n=[];return t.forEach((function(t){var s=Kl()[t].validatorFunction,a=new i.Deferred,o=function(e,t){var i={validate:function(){t.resolve()},invalidate:function(i){Gl(e,zl,i),t.reject()},args:Ql(e),el:e[0],$el:e};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(e,a);s(o),n.push(a)})),n}(e,t),s=i.when.apply(i,n);return s.done((function(){Gl(e,Fl)})),s}(e);Gl(e,Fl)}function ql(e,t){var i=e.attr("data-"+Rl+t);return i||(i={when:"change"}[t]),i}function Kl(){return Al.validators()}function Ql(e){return function(t){return e.attr("data-"+Rl+t)||e.attr(t)}}function Gl(e,t,n){if(e.attr("data-"+jl,t),e.attr("aria-invalid",!1),t!==Ul){e.trigger(i.Event(Wl));var s=Xl(e),a={};a[Hl]="wait",a[zl]="error",a[Fl]="success";var o=a[t];t===Hl?function(e){setTimeout((function(){ec(e)===Hl&&(Zl(e,"wait"),xl(e,!0))}),500)}(e):Zl(s,o,n),t===zl&&e.attr("aria-invalid",!0)}}function Zl(e,t,i){const n=function(e){return e.is("["+$l+"wait]")}(e);!function(e){Jl(e,"wait"),xl(e,!1),Jl(e,"success")}(e);var s,a;if(!("success"===t&&!n))if("none"===t)Jl(e,"error");else{const n=e.attr($l+t)||"[]",o=i?(s=i,a=n,JSON.parse(a).concat([s])):[];e.attr($l+t,JSON.stringify(o)),"error"===t&&wl(e,o)}}function Jl(e,t){e.removeAttr($l+t),"error"===t&&(_l(e,t).remove(),yl(e))}function Xl(e){var t=ql(e,"displayfield");return void 0===t?e:i("#"+t)}function ec(e){return e.attr("data-"+jl)}function tc(e,t){t.preventDefault(),e.one(Wl,(function(){e.trigger("submit")}))}function ic(e,t){var i="[data-"+jl+"="+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("."+Bl);return r=t,n=i.map(r,(function(e){return ec(i(e))})),s=-1!==n.indexOf(zl),a=-1!==n.indexOf(Ul),o=-1!==n.indexOf(Hl),s?zl:a?Ul:o?Hl:Fl;var n,s,a,o;var r}(n);if(s===Ul)tc(n,e),function(e){var t=ic(e,Ul);t.each((function(e,t){nc.validate(i(t))}))}(n);else if(s===Hl)tc(n,e);else if(s===zl)e.preventDefault(),function(e){var t=ic(e,zl).first();t.focus()}(n);else if(s===Fl){var a=i.Event("aui-valid-submit");n.trigger(a),a.isDefaultPrevented()&&e.preventDefault()}}));const nc={register:Al.register,validate:function(e){Yl(e=i(e))}};Z("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate"),Vl(i(e)),Z.init(e)},type:Z.type.ATTRIBUTE}),G("aui/form-validation",nc),l("formValidation",nc);var sc=R((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:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const ac=sc;l("debounce",sc);var oc=R((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:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});l("debounceImmediate",oc);const rc=i(window);function lc(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)})}lc.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,rc.on("resize",this._resizeHandler=ac((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(){rc.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 o=this.menuItems[a].$element,r=o.children("a");if(r.attr("aria-controls")){var l=i(document.getElementById(r.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),o.append(l)}t.find("aui-item-link:first").remove(),o.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=We().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-e+1,a=n;a>=s;a--){var o=this.menuItems[a].$element,r=o.children("a");Z.init(r);var l=document.createElement("aui-item-link");if(l.setAttribute("href",r.attr("href")),r.attr("aria-controls")){var c=i(document.getElementById(r.attr("aria-controls")));l.setAttribute("for",r.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(r.get(0).hasAttribute("data-aui-extra-classes")){const e=Array.from(r.get(0).classList).filter((e=>!e.startsWith("aui-")));l.setAttribute("extra-classes",e.join(" "))}Z.init(l),We().wrap(l).textContent=r.text(),o.detach(),t.insertBefore(l,t.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:o[0],newItem:l}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const cc=function(e){let t=e._header;return t instanceof lc||(t=new lc(e),t.init(),e._header=t),t};function uc(){i(".aui-header").each((function(){cc(this)}))}i(uc);const dc={};dc.setup=R(uc,"responsiveheader.setup",{removeInVersion:"11.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),l("responsiveheader",dc);const hc=Z("aui-header-end",{type:Z.type.ELEMENT,created:function(e){const t=e.parentElement;t&&t.classList.contains("aui-header")?cc(t):console.log("Could not async. initialise aui-header")}});var pc=a(253),fc=a.n(pc);const gc=({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:a,onChangeMonthYear:o})=>({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:o,prevText:"<"}),mc=(e,t)=>{let n,s,a,o=!1;const r=i("body"),l=t=>{let n=i(t.target),a=n.closest(s).length||n.is(e),r=n.closest(".ui-datepicker-header").length;if(!a&&!r||t.keyCode===Q.ESCAPE)return h(),void(o=!1);n.get(0)!==e.get(0)&&t.preventDefault()},c=()=>{o||(r.on("focus blur click mousedown","*",l),o=!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 dr;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=>{o&&e.preventDefault(),r.off("focus blur","*",l),a&&a._datePickerPopup&&delete a._datePickerPopup}))),r.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),r.off("keydown",c),r.off("focus blur click mousedown keydown",l)},createPolyfill:function(){r.on("keydown",l),e.on("focusout keydown",c)}}},vc=function(e){const t=e.getField(),n=e.getOptions(),s=e.getUUID();let a;const{getPopupContents:o,handleFieldFocus:r,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 bc.prototype.localisations||(n.languageCode="");const y=bc.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=gc({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:t,onSelect:n.onSelect,hide:e.hide,onChangeMonthYear:u}),r=i.extend(void 0,s,y);n.firstDay>-1&&(r.firstDay=n.firstDay),a=(({config:e,popupContents:t,getCalendarNode:n,hint:s})=>{const a=i(n());let o;return a.datepicker(e),s&&(o=i("<div/>").addClass("aui-datepicker-hint"),o.append("<span/>").text(s),t.append(o)),a})({config:r,popupContents:o({$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})}if(t.on("focus click",r),t.attr("placeholder",n.placeholder),"text"!==t.prop("type")){t.prop("type","text");const e=t.attr("value");e&&t.val(e)}t.trigger("propertychange"),t.attr("data-aui-dp-uuid",s)};function bc(e,t){let n={};const s=wn("date-picker"),a=i(e),o={getUUID:()=>s,getField:()=>a,getOptions:()=>n,destroy:()=>{"function"==typeof o.destroyPolyfill&&o.destroyPolyfill()},reset:()=>{o.destroy();const e=!bc.prototype.browserSupportsDateField,t=!1!==n.overrideBrowserDefault;(e||t)&&vc(o)},reconfigure:e=>{n=i.extend(void 0,bc.prototype.defaultOptions,e),o.reset()}};return o.reconfigure(t),o}function yc(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}bc.prototype.browserSupportsDateField=function(){if(void 0===It){var e=document.createElement("input");e.setAttribute("type","date"),It="date"===e.type}return It}(),bc.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:fc().W3C},bc.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"===bc.prototype.localisations.yearSuffix&&(bc.prototype.localisations.yearSuffix="");const wc="aui-datepicker",_c=e=>function(t){let i=this.data(wc);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(wc,i)),i};i.fn.datePicker=_c(bc),l("DatePicker",bc),i.fn.calendarWidget=_c(yc),l("CalendarWidget",yc);const xc=bc;a(229),a(228),a(132),a(903);const Cc={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"},Tc=Ns().View,kc=Ns().View,Ec=Ns().View,Ac={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};a(682);const Dc={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"},Sc='<aui-spinner size="small"></aui-spinner>',Ic="aui-spinner";function Mc(e){0===e.find(Ic).length&&e.find(`.${Cc.STATUS}`).append(Sc)}function Nc(e){e.find(`.${Cc.STATUS} ${Ic}`).remove()}var Oc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const Lc=Ns().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=i(this.el),this._event=Dc,this.classNames=Cc,this.dataKeys=Ac,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 Oc&&(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 Oc&&(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 Mc(this.$el),this},hideLoading:function(){return Nc(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,o,r=e.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:r,allowEdit:s.allowEdit},e.values,t.model];r&&t.$el.attr("data-"+s.id,r),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),o=i("<td />"),"object"==typeof a&&a.done?a.done((function(e){o.append(e)})):o.append(a),s.styleClass&&o.addClass(s.styleClass),o.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}" />`))}}),Pc=document||{},Rc=i(Pc);function $c(e,t){Rc.trigger(e,t)}function jc(e,t,n){i(t).trigger(e,n),$c(e,n),t.id&&$c(t.id+"-"+e,n)}const zc=e=>JSON.parse(e||"null");var Fc=Ns().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)},Ns().sync.apply(Ns(),arguments)},save:function(e,t){var i,n=this,s=(t=t||{}).error,a=t.success;t.error=function(e,t){var i=zc(t.responseText||t.data);s&&s.call(n,n,i,t)},this.isNew()?Ns().Model.prototype.save.call(this,e,t):e&&((i=new(Fc.extend({url:this.url()}))({id:this.id})).save=Ns().Model.prototype.save,t.success=function(e,t){n.clear().set(e.toJSON()),a&&a.call(n,n,t)},i.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,dt.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,dt.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),jc(Dc.SERVER_ERROR,this,[n,e,t]))},fetch:function(e){e=e||{},this.clear(),Ns().Model.prototype.fetch.call(this,e)}});const Hc=Fc,Uc=Ns().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=Dc,this.classNames=Cc,this.dataKeys=Ac,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 Mc(this.$el),this},hideLoading:function(){return Nc(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,o=i("<td />"),r=t[s.id],l=s.fieldName||s.id,c=[{name:l,value:r,allowEdit:s.allowEdit},t,e.model];if(r&&e.$el.attr("data-"+s.id,r),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);o=i("<td />").append(u).appendTo(e.$el),a&&i.trim(a)||(o.addClass(e.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else o.append(a);s.styleClass&&o.addClass(s.styleClass),o.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 Bc=Ns().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=Dc,t.classNames=Cc,t.dataKeys=Ac,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 o='<td colspan="'+t.getColumnCount()+'"> </td>';n.placeholder.html(o).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){jc(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var i=zc(e.responseText||e.data);jc(t._event.SERVER_ERROR,t,[i,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(),Ns().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]),jc(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">'+Sc+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(),jc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),jc(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){jc(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 Uc&&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||Hc,allowEdit:!0,views:{editRow:Lc,row:Uc},Collection:Ns().Collection.extend({url:e.resources.self,model:e.model||Hc}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||I18n.getText("aui.words.loading")}}});Bc.ClassNames=Cc,Bc.CustomCreateView=Tc,Bc.CustomEditView=kc,Bc.CustomReadView=Ec,Bc.DataKeys=Ac,Bc.EditRow=Lc,Bc.EntryModel=Hc,Bc.Events=Dc,Bc.Row=Uc,l("RestfulTable",Bc);const Wc=Bc;function Vc(e){return i(e).clone().removeAttr("id")}l("clone",Vc);const Yc=Vc;var qc=window.DocumentTouch;const Kc="ontouchstart"in window||qc&&document instanceof qc;function Qc(e,t,i,n){e.find(`[${n}]`).attr(n,((e,n)=>t===n?i:void 0))}function Gc(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){Qc(e,t,i,"aria-controls"),Qc(e,t,i,"aria-owns")}(n,i.id,s),i.id=s}))}function Zc(e){return e.offset().top}function Jc(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 iu,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);ru(e,n)}))})(e),Kc&&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(Xc+(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){o(t)&&e.toggle()};function a(e){return e.keyCode===Q.TAB&&!e.shiftKey&&!e.altKey}function o(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 r(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===au(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=su(n);if(!s)return;var o=i(s);a(t)&&s.open&&(t.preventDefault(),u(o),o.on("keydown",(function(e){(r(e)&&l(e.target,o)||a(e)&&c(e.target,o))&&(n.focus(),i(this).off("keydown"),ou())})))}}))}(this),function(e){i(e.collapsedTriggersSelector).each((function(){var t=i(this);ru(e,t)}))}(this))}var Xc="_aui-internal-sidebar-";function eu(e){return i.map(e.split(" "),(function(e){return Xc+e})).join(" ")}function tu(){return document.querySelectorAll(Jc.prototype.inlineDialogSelector)}function iu(){this.inlineDialog=null}function nu(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function su(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function au(e){return 0!==nu(e).length}function ou(){var e=tu();Array.prototype.forEach.call(e,(function(e){e.open=!1}))}function ru(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),au(t))){var n=document.createElement("aui-inline-dialog"),s=wn("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(Jc.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=lu;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=nu(e);function o(e){const t=Yc(e);return Gc(t,wn),t.hasClass("aui-expander-content")&&(t.find(".aui-expander-cutoff").remove(),t.removeClass("aui-expander-content")),t}o(a).appendTo(s)}(t,n)}}else s.preventDefault()})),n.addEventListener("aui-layer-hide",(function(){!function(e){e.removeClass("active")}(t)}))}(e,t,n),n}}Jc.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=eu(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},Jc.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=eu(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},Jc.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},Jc.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>Zc(this.$el)),this},Jc.prototype.setPosition=R(Jc.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Jc.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},Jc.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},Jc.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=i.Event(Xc+"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(Xc+"collapse-end",{isResponsive:e}))),this},Jc.prototype.collapse=function(){return this._collapse(!1)},Jc.prototype._expand=function(e,t){var n=i.Event(Xc+"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(Xc+"expand-end",{isResponsive:t})),this},Jc.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Jc.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Jc.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Jc.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},Jc.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)},Jc.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var a=Zc(this.$el),o=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||a!==this._previousOffsetTop){var r=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);r||!o&&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(o,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},Jc.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},Jc.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Jc.prototype.collapsedTriggersSelector=[Jc.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Jc.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Jc.prototype.tooltipClassName="aui-sidebar-section-tooltip",Jc.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Jc.prototype.inlineDialogSelector="."+Jc.prototype.inlineDialogClass,iu.prototype.submenu=function(e){return du(),nu(e)},iu.prototype.hasSubmenu=function(e){return du(),au(e)},iu.prototype.submenuHeadingHeight=function(){return du(),34},iu.prototype.isShowing=function(){return du(),Jc.prototype.isSubmenuVisible()},iu.prototype.show=function(e,t){du(),function(e){su(e).open=!0}(t)},iu.prototype.hide=function(){du(),ou()},iu.prototype.inlineDialogShowHandler=function(){du()},iu.prototype.inlineDialogHideHandler=function(){du()},iu.prototype.moveSubmenuToInlineDialog=function(){du()},iu.prototype.restoreSubmenu=function(){du()},Jc.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(tu(),(function(e){return e.open}))},Jc.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const lu='<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 uu=ge("sidebar",Jc);i((function(){uu(".aui-sidebar")}));var du=O("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});l("sidebar",uu);const hu=uu;a(841),a(581);const pu=2600;function fu(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=pu;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 o=i(".aui-blanket"),r=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!==(o=i(".aui-blanket")).length&&e.closeOnOutsideClick&&o.on("click",(function(){n.is(":visible")&&l.hide()})),n.show(),fu.current=this,function(t){if(0===i(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return r(e.focusSelector,t);var n=":input:visible:enabled:first";r(n,i(".dialog-page-body",t))||r(n,i(".dialog-button-panel",t))||r(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),o.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]),fu.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 gu=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 o=e.panel.length,r=this;e.menu.append(this.item),e.body.append(this.body),e.panel[o]=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=r.id,r.body.show(),r.item.addClass("selected"),"function"==typeof r.onselect&&r.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(r,t)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==o?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 o=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 r(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=fu(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new o(this)}return o.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)}},o.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},o.prototype.addPanel=function(e,t,i,n){return new a(this,e,t,i,n),this.recalcSize(),this},o.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},o.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},o.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},o.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},o.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},o.prototype.hide=function(){this.element.hide()},o.prototype.show=function(){this.element.show()},o.prototype.remove=function(){this.element.remove()},r.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},r.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},r.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},r.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},r.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},r.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},r.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},r.prototype.addPage=function(e){return new o(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},r.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},r.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},r.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},r.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},r.prototype.getPage=function(e){return this.page[e]},r.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},r.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)},r.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},r.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},r.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},r.prototype.disable=function(){return this.popup.disable(),this},r.prototype.enable=function(){return this.popup.enable(),this},r.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,o,r,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[a]?(d.push(i.page[a]),n=(n=r)&&n.toLowerCase(),s=l,a=c,o=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),o=o&&(o+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||o)for(var h=d.length;h--;){if(o||"panel"==n&&(s||!s&&null==a))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==o||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==a)&&t.push(d[h].panel[p]);if(o||"button"==n&&(s||!s&&null==a))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==o||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 o={length:t.length},r=t.length;r--;)for(var l in o[r]=t[r],t[r])l in o||function(e){o[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return o},r.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)},r.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},r.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},r.prototype.getCurPanelButton=function(){return this.getCurPanel().button},r}();gu=$(gu,"Dialog constructor",{alternativeName:"Dialog2"}),fu=$(fu,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",gu),l("popup",fu);const mu=!1;var vu=-1!==navigator.platform.indexOf("Mac"),bu=-1!==navigator.userAgent.indexOf("Safari"),yu=/^(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 wu=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 _u(e){var t=[],n=i.Callbacks();function s(e){!fu.current&&n&&n.fire(e)}function a(e){e.preventDefault()}function o(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(yu);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()),o=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(o,mu,n,s),i(document).on(o+" keyup",mu,n,a)}(e)}))}function r(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 o(e),_u.makeShortcut({executor:n,bindKeys:o,addShortcutsToTitle:function(e){for(var n=i(e),s=n.attr("title")||"",a=t.slice(),o=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();o.some((function(e){return(0,dt.isEqual)(g,e)}))||(l=r(g.slice(),l,d),c=r(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}vu&&(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",o.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})}_u.makeShortcut=function(e){var t=e.executor,n=e.bindKeys,s=e.addShortcutsToTitle,a=e.removeShortcutsFromTitle,o=e.keypressHandler,r=e.defaultPreventionHandler,l=[];function c(e){return function(n,s){var a=(s=s||{}).focusedClass||"focused",o=!s.hasOwnProperty("wrapAround")||s.wrapAround,r=!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};r&&i(document).one("keydown",(function(e){e.keyCode===Q.ESCAPE&&s&&s.removeClass(a)})),s.length&&s.removeClass(a),s=e(s,t,o),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);wu(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&&(wu(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",o).unbind("keydown keypress keyup",r);for(var e=0,t=l.length;e<t;e++)a(l[e]);l=[]}}},_u.fromJSON=function(e,t){var n=[];return e&&i.each(e,(function(e,s){const a=s.op,o=s.param;let r;if("execute"===a||"evaluate"===a)r=[new Function(o)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(o)){try{r=JSON.parse(o)}catch(e){m("When using a parameter array, array must be in strict JSON format: "+o)}i.isArray(r)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+o)}else r=[o];i.each(s.keys,(function(){var e=this;t&&vu&&(e=i.map(e,(function(e){return e.replace(/ctrl/i,"meta")})));var s=_u(e);s[a].apply(s,r),n.push(s)}))})),n},i(document).on("iframeAppended",(function(e,t){i(t).load((function(){i(t).contents().on("keyup keydown keypress",(function(e){bu&&"keypress"===e.type||i(e.target).is(":input")||i.event.trigger(e,arguments,document,!0)}))}))})),l("whenIType",_u);const xu=_u,{FocusManager:Cu,InlineDialog2:Tu,LayerManager:ku,ProgressiveDataSet:Eu,clone:Au,debounce:Du,debounceImmediate:Su,dim:Iu,escapeHtml:Mu,formValidation:Nu,id:Ou,isClipped:Lu,keyCode:Pu,layer:Ru,messages:$u,populateParameters:ju,params:zu,responsiveheader:Fu,select:Hu,tablessortable:Uu,tabs:Bu,undim:Wu,_addID:Vu}=window.AJS,{contextPath:Yu}=window.AJS})(),o})()));
|
|
105
105
|
//# sourceMappingURL=aui-prototyping.nodeps.js.map
|