@atlassian/aui 10.0.4 → 10.1.0

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.
Files changed (34) hide show
  1. package/dist/aui/aui-css-deprecations.js +3 -1
  2. package/dist/aui/aui-css-deprecations.js.map +1 -1
  3. package/dist/aui/aui-prototyping-browserfocus.css +1 -1
  4. package/dist/aui/aui-prototyping-browserfocus.css.map +1 -1
  5. package/dist/aui/aui-prototyping-design-tokens-api-full.js +4 -10
  6. package/dist/aui/aui-prototyping-design-tokens-api-full.js.map +1 -1
  7. package/dist/aui/aui-prototyping-design-tokens-api.js +1 -10
  8. package/dist/aui/aui-prototyping-design-tokens-api.js.map +1 -1
  9. package/dist/aui/aui-prototyping-design-tokens-compatibility.css.map +1 -1
  10. package/dist/aui/aui-prototyping.css +6 -6
  11. package/dist/aui/aui-prototyping.css.map +1 -1
  12. package/dist/aui/aui-prototyping.js +64 -104
  13. package/dist/aui/aui-prototyping.js.map +1 -1
  14. package/dist/aui/aui-prototyping.nodeps.css +6 -6
  15. package/dist/aui/aui-prototyping.nodeps.css.map +1 -1
  16. package/dist/aui/aui-prototyping.nodeps.js +64 -104
  17. package/dist/aui/aui-prototyping.nodeps.js.map +1 -1
  18. package/package.json +8 -7
  19. package/src/js/aui/blanket.js +1 -1
  20. package/src/js/aui/flag.js +1 -1
  21. package/src/js/aui/form-validation.js +1 -1
  22. package/src/js/aui/inline-dialog.js +30 -23
  23. package/src/js/aui/layer.js +1 -1
  24. package/src/js/aui/query-input.js +1 -1
  25. package/src/js/aui/restful-table/entry-model.js +2 -2
  26. package/src/js/aui/restful-table/event-handlers.js +1 -1
  27. package/src/js/aui/restful-table/row.js +1 -1
  28. package/src/js/aui/restful-table.js +2 -2
  29. package/src/js/aui/select2.js +3 -3
  30. package/src/js/aui/tabs.js +2 -2
  31. package/src/js/aui/when-i-type.js +2 -2
  32. package/src/js-vendor-effective/jquery.hotkeys/jquery.hotkeys.js +2 -2
  33. package/src/js-vendor-effective/select2/select2.js +31 -29
  34. package/src/js-vendor-effective/tablesorter/jquery.tablesorter.js +35 -35
@@ -1,105 +1,65 @@
1
- /*!!
2
- * @atlassian/aui - Atlassian User Interface library
3
- * @version v10.0.4
4
- * @link https://aui.atlassian.com
5
- * @license Apache-2.0
6
- * @author Atlassian Pty Ltd.
7
- */
8
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jquery")):"function"==typeof define&&define.amd?define("@atlassian/aui",["jquery"],e):"object"==typeof exports?exports["@atlassian/aui"]=e(require("jquery")):t.AJS=e(t.jQuery)}(window,t=>(()=>{var e={547:()=>{console.debug("AUI import for WRM I18n not loaded")},581:()=>{jQuery.fn.moveTo=function(t){var e,i=jQuery.extend({transition:!1,scrollOffset:35},t),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(e=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:e},1e3,function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating}),this;var r=jQuery("html, body");return r.is(":animated")&&(r.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(e),setTimeout(function(){jQuery(document).trigger("moveToFinished",n)},100),this}return jQuery(document).trigger("moveToFinished",this),this}},973:(t,e,i)=>{var n,s,r;r="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g,n=[i(126),i(687),e],s=function(t,e,i){r.Backbone=function(t,e,i,n){var s=t.Backbone,r=Array.prototype.slice;e.VERSION="1.6.0",e.$=n,e.noConflict=function(){return t.Backbone=s,this},e.emulateHTTP=!1,e.emulateJSON=!1;var a,o=e.Events={},l=/\s+/,c=function(t,e,n,s,r){var a,o=0;if(n&&"object"==typeof n){void 0!==s&&"context"in r&&void 0===r.context&&(r.context=s);for(a=i.keys(n);o<a.length;o++)e=c(t,e,a[o],n[a[o]],r)}else if(n&&l.test(n))for(a=n.split(l);o<a.length;o++)e=t(e,a[o],s,r);else e=t(e,n,s,r);return e};o.on=function(t,e,i){return this._events=c(u,this._events||{},t,e,{context:i,ctx:this,listening:a}),a&&((this._listeners||(this._listeners={}))[a.id]=a,a.interop=!1),this},o.listenTo=function(t,e,n){if(!t)return this;var s=t._listenId||(t._listenId=i.uniqueId("l")),r=this._listeningTo||(this._listeningTo={}),o=a=r[s];o||(this._listenId||(this._listenId=i.uniqueId("l")),o=a=r[s]=new m(this,t));var l=d(t,e,n,this);if(a=void 0,l)throw l;return o.interop&&o.on(e,n),this};var u=function(t,e,i,n){if(i){var s=t[e]||(t[e]=[]),r=n.context,a=n.ctx,o=n.listening;o&&o.count++,s.push({callback:i,context:r,ctx:r||a,listening:o})}return t},d=function(t,e,i,n){try{t.on(e,i,n)}catch(t){return t}};o.off=function(t,e,i){return this._events?(this._events=c(h,this._events,t,e,{context:i,listeners:this._listeners}),this):this},o.stopListening=function(t,e,n){var s=this._listeningTo;if(!s)return this;for(var r=t?[t._listenId]:i.keys(s),a=0;a<r.length;a++){var o=s[r[a]];if(!o)break;o.obj.off(e,n,this),o.interop&&o.off(e,n)}return i.isEmpty(s)&&(this._listeningTo=void 0),this};var h=function(t,e,n,s){if(t){var r,a=s.context,o=s.listeners,l=0;if(e||a||n){for(r=e?[e]:i.keys(t);l<r.length;l++){var c=t[e=r[l]];if(!c)break;for(var u=[],d=0;d<c.length;d++){var h=c[d];if(n&&n!==h.callback&&n!==h.callback._callback||a&&a!==h.context)u.push(h);else{var p=h.listening;p&&p.off(e,n)}}u.length?t[e]=u:delete t[e]}return t}for(r=i.keys(o);l<r.length;l++)o[r[l]].cleanup()}};o.once=function(t,e,i){var n=c(p,{},t,e,this.off.bind(this));return"string"==typeof t&&null==i&&(e=void 0),this.on(n,e,i)},o.listenToOnce=function(t,e,i){var n=c(p,{},e,i,this.stopListening.bind(this,t));return this.listenTo(t,n)};var p=function(t,e,n,s){if(n){var r=t[e]=i.once(function(){s(e,r),n.apply(this,arguments)});r._callback=n}return t};o.trigger=function(t){if(!this._events)return this;for(var e=Math.max(0,arguments.length-1),i=Array(e),n=0;n<e;n++)i[n]=arguments[n+1];return c(f,this._events,t,void 0,i),this};var f=function(t,e,i,n){if(t){var s=t[e],r=t.all;s&&r&&(r=r.slice()),s&&g(s,n),r&&g(r,[e].concat(n))}return t},g=function(t,e){var i,n=-1,s=t.length,r=e[0],a=e[1],o=e[2];switch(e.length){case 0:for(;++n<s;)(i=t[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,a);return;case 3:for(;++n<s;)(i=t[n]).callback.call(i.ctx,r,a,o);return;default:for(;++n<s;)(i=t[n]).callback.apply(i.ctx,e);return}},m=function(t,e){this.id=t._listenId,this.listener=t,this.obj=e,this.interop=!0,this.count=0,this._events=void 0};m.prototype.on=o.on,m.prototype.off=function(t,e){var i;this.interop?(this._events=c(h,this._events,t,e,{context:void 0,listeners:void 0}),i=!this._events):(this.count--,i=0===this.count),i&&this.cleanup()},m.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},o.bind=o.on,o.unbind=o.off,i.extend(e,o);var v=e.Model=function(t,e){var n=t||{};e||(e={}),this.preinitialize.apply(this,arguments),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},e.collection&&(this.collection=e.collection),e.parse&&(n=this.parse(n,e)||{});var s=i.result(this,"defaults");n=i.defaults(i.extend({},s,n),s),this.set(n,e),this.changed={},this.initialize.apply(this,arguments)};i.extend(v.prototype,o,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(t){return i.clone(this.attributes)},sync:function(){return e.sync.apply(this,arguments)},get:function(t){return this.attributes[t]},escape:function(t){return i.escape(this.get(t))},has:function(t){return null!=this.get(t)},matches:function(t){return!!i.iteratee(t,this)(this.attributes)},set:function(t,e,n){if(null==t)return this;var s;if("object"==typeof t?(s=t,n=e):(s={})[t]=e,n||(n={}),!this._validate(s,n))return!1;var r=n.unset,a=n.silent,o=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,d=this._previousAttributes;for(var h in s)e=s[h],i.isEqual(c[h],e)||o.push(h),i.isEqual(d[h],e)?delete u[h]:u[h]=e,r?delete c[h]:c[h]=e;if(this.idAttribute in s){var p=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,p,n)}if(!a){o.length&&(this._pending=n);for(var f=0;f<o.length;f++)this.trigger("change:"+o[f],this,c[o[f]],n)}if(l)return this;if(!a)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(t,e){return this.set(t,void 0,i.extend({},e,{unset:!0}))},clear:function(t){var e={};for(var n in this.attributes)e[n]=void 0;return this.set(e,i.extend({},t,{unset:!0}))},hasChanged:function(t){return null==t?!i.isEmpty(this.changed):i.has(this.changed,t)},changedAttributes:function(t){if(!t)return!!this.hasChanged()&&i.clone(this.changed);var e,n=this._changing?this._previousAttributes:this.attributes,s={};for(var r in t){var a=t[r];i.isEqual(n[r],a)||(s[r]=a,e=!0)}return!!e&&s},previous:function(t){return null!=t&&this._previousAttributes?this._previousAttributes[t]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(t){t=i.extend({parse:!0},t);var e=this,n=t.success;return t.success=function(i){var s=t.parse?e.parse(i,t):i;if(!e.set(s,t))return!1;n&&n.call(t.context,e,i,t),e.trigger("sync",e,i,t)},K(this,t),this.sync("read",this,t)},save:function(t,e,n){var s;null==t||"object"==typeof t?(s=t,n=e):(s={})[t]=e;var r=(n=i.extend({validate:!0,parse:!0},n)).wait;if(s&&!r){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;var a=this,o=n.success,l=this.attributes;n.success=function(t){a.attributes=l;var e=n.parse?a.parse(t,n):t;if(r&&(e=i.extend({},s,e)),e&&!a.set(e,n))return!1;o&&o.call(n.context,a,t,n),a.trigger("sync",a,t,n)},K(this,n),s&&r&&(this.attributes=i.extend({},l,s));var c=this.isNew()?"create":n.patch?"patch":"update";"patch"!==c||n.attrs||(n.attrs=s);var u=this.sync(c,this,n);return this.attributes=l,u},destroy:function(t){t=t?i.clone(t):{};var e=this,n=t.success,s=t.wait,r=function(){e.stopListening(),e.trigger("destroy",e,e.collection,t)};t.success=function(i){s&&r(),n&&n.call(t.context,e,i,t),e.isNew()||e.trigger("sync",e,i,t)};var a=!1;return this.isNew()?i.defer(t.success):(K(this,t),a=this.sync("delete",this,t)),s||r(),a},url:function(){var t=i.result(this,"urlRoot")||i.result(this.collection,"url")||q();if(this.isNew())return t;var e=this.get(this.idAttribute);return t.replace(/[^\/]$/,"$&/")+encodeURIComponent(e)},parse:function(t,e){return t},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(t){return this._validate({},i.extend({},t,{validate:!0}))},_validate:function(t,e){if(!e.validate||!this.validate)return!0;t=i.extend({},this.attributes,t);var n=this.validationError=this.validate(t,e)||null;return!n||(this.trigger("invalid",this,n,i.extend(e,{validationError:n})),!1)}});var b=e.Collection=function(t,e){e||(e={}),this.preinitialize.apply(this,arguments),e.model&&(this.model=e.model),void 0!==e.comparator&&(this.comparator=e.comparator),this._reset(),this.initialize.apply(this,arguments),t&&this.reset(t,i.extend({silent:!0},e))},y={add:!0,remove:!0,merge:!0},w={add:!0,remove:!1},_=function(t,e,i){i=Math.min(Math.max(i,0),t.length);var n,s=Array(t.length-i),r=e.length;for(n=0;n<s.length;n++)s[n]=t[n+i];for(n=0;n<r;n++)t[n+i]=e[n];for(n=0;n<s.length;n++)t[n+r+i]=s[n]};i.extend(b.prototype,o,{model:v,preinitialize:function(){},initialize:function(){},toJSON:function(t){return this.map(function(e){return e.toJSON(t)})},sync:function(){return e.sync.apply(this,arguments)},add:function(t,e){return this.set(t,i.extend({merge:!1},e,w))},remove:function(t,e){e=i.extend({},e);var n=!i.isArray(t);t=n?[t]:t.slice();var s=this._removeModels(t,e);return!e.silent&&s.length&&(e.changes={added:[],merged:[],removed:s},this.trigger("update",this,e)),n?s[0]:s},set:function(t,e){if(null!=t){(e=i.extend({},y,e)).parse&&!this._isModel(t)&&(t=this.parse(t,e)||[]);var n=!i.isArray(t);t=n?[t]:t.slice();var s=e.at;null!=s&&(s=+s),s>this.length&&(s=this.length),s<0&&(s+=this.length+1);var r,a,o=[],l=[],c=[],u=[],d={},h=e.add,p=e.merge,f=e.remove,g=!1,m=this.comparator&&null==s&&!1!==e.sort,v=i.isString(this.comparator)?this.comparator:null;for(a=0;a<t.length;a++){r=t[a];var b=this.get(r);if(b){if(p&&r!==b){var w=this._isModel(r)?r.attributes:r;e.parse&&(w=b.parse(w,e)),b.set(w,e),c.push(b),m&&!g&&(g=b.hasChanged(v))}d[b.cid]||(d[b.cid]=!0,o.push(b)),t[a]=b}else h&&(r=t[a]=this._prepareModel(r,e))&&(l.push(r),this._addReference(r,e),d[r.cid]=!0,o.push(r))}if(f){for(a=0;a<this.length;a++)d[(r=this.models[a]).cid]||u.push(r);u.length&&this._removeModels(u,e)}var x=!1,C=!m&&h&&f;if(o.length&&C?(x=this.length!==o.length||i.some(this.models,function(t,e){return t!==o[e]}),this.models.length=0,_(this.models,o,0),this.length=this.models.length):l.length&&(m&&(g=!0),_(this.models,l,null==s?this.length:s),this.length=this.models.length),g&&this.sort({silent:!0}),!e.silent){for(a=0;a<l.length;a++)null!=s&&(e.index=s+a),(r=l[a]).trigger("add",r,this,e);(g||x)&&this.trigger("sort",this,e),(l.length||u.length||c.length)&&(e.changes={added:l,removed:u,merged:c},this.trigger("update",this,e))}return n?t[0]:t}},reset:function(t,e){e=e?i.clone(e):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],e);return e.previousModels=this.models,this._reset(),t=this.add(t,i.extend({silent:!0},e)),e.silent||this.trigger("reset",this,e),t},push:function(t,e){return this.add(t,i.extend({at:this.length},e))},pop:function(t){var e=this.at(this.length-1);return this.remove(e,t)},unshift:function(t,e){return this.add(t,i.extend({at:0},e))},shift:function(t){var e=this.at(0);return this.remove(e,t)},slice:function(){return r.apply(this.models,arguments)},get:function(t){if(null!=t)return this._byId[t]||this._byId[this.modelId(this._isModel(t)?t.attributes:t,t.idAttribute)]||t.cid&&this._byId[t.cid]},has:function(t){return null!=this.get(t)},at:function(t){return t<0&&(t+=this.length),this.models[t]},where:function(t,e){return this[e?"find":"filter"](t)},findWhere:function(t){return this.where(t,!0)},sort:function(t){var e=this.comparator;if(!e)throw new Error("Cannot sort a set without a comparator");t||(t={});var n=e.length;return i.isFunction(e)&&(e=e.bind(this)),1===n||i.isString(e)?this.models=this.sortBy(e):this.models.sort(e),t.silent||this.trigger("sort",this,t),this},pluck:function(t){return this.map(t+"")},fetch:function(t){var e=(t=i.extend({parse:!0},t)).success,n=this;return t.success=function(i){var s=t.reset?"reset":"set";n[s](i,t),e&&e.call(t.context,n,i,t),n.trigger("sync",n,i,t)},K(this,t),this.sync("read",this,t)},create:function(t,e){var n=(e=e?i.clone(e):{}).wait;if(!(t=this._prepareModel(t,e)))return!1;n||this.add(t,e);var s=this,r=e.success;return e.success=function(t,e,i){n&&(t.off("error",s._forwardPristineError,s),s.add(t,i)),r&&r.call(i.context,t,e,i)},n&&t.once("error",this._forwardPristineError,this),t.save(null,e),t},parse:function(t,e){return t},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(t,e){return t[e||this.model.prototype.idAttribute||"id"]},values:function(){return new C(this,T)},keys:function(){return new C(this,k)},entries:function(){return new C(this,E)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(t,e){return this._isModel(t)?(t.collection||(t.collection=this),t):((e=e?i.clone(e):{}).collection=this,(n=this.model.prototype?new this.model(t,e):this.model(t,e)).validationError?(this.trigger("invalid",this,n.validationError,e),!1):n);var n},_removeModels:function(t,e){for(var i=[],n=0;n<t.length;n++){var s=this.get(t[n]);if(s){var r=this.indexOf(s);this.models.splice(r,1),this.length--,delete this._byId[s.cid];var a=this.modelId(s.attributes,s.idAttribute);null!=a&&delete this._byId[a],e.silent||(e.index=r,s.trigger("remove",s,this,e)),i.push(s),this._removeReference(s,e)}}return t.length>0&&!e.silent&&delete e.index,i},_isModel:function(t){return t instanceof v},_addReference:function(t,e){this._byId[t.cid]=t;var i=this.modelId(t.attributes,t.idAttribute);null!=i&&(this._byId[i]=t),t.on("all",this._onModelEvent,this)},_removeReference:function(t,e){delete this._byId[t.cid];var i=this.modelId(t.attributes,t.idAttribute);null!=i&&delete this._byId[i],this===t.collection&&delete t.collection,t.off("all",this._onModelEvent,this)},_onModelEvent:function(t,e,i,n){if(e){if(("add"===t||"remove"===t)&&i!==this)return;if("destroy"===t&&this.remove(e,n),"changeId"===t){var s=this.modelId(e.previousAttributes(),e.idAttribute),r=this.modelId(e.attributes,e.idAttribute);null!=s&&delete this._byId[s],null!=r&&(this._byId[r]=e)}}this.trigger.apply(this,arguments)},_forwardPristineError:function(t,e,i){this.has(t)||this._onModelEvent("error",t,e,i)}});var x="function"==typeof Symbol&&Symbol.iterator;x&&(b.prototype[x]=b.prototype.values);var C=function(t,e){this._collection=t,this._kind=e,this._index=0},T=1,k=2,E=3;x&&(C.prototype[x]=function(){return this}),C.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var t,e=this._collection.at(this._index);if(this._index++,this._kind===T)t=e;else{var i=this._collection.modelId(e.attributes,e.idAttribute);t=this._kind===k?i:[i,e]}return{value:t,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var A=e.View=function(t){this.cid=i.uniqueId("view"),this.preinitialize.apply(this,arguments),i.extend(this,i.pick(t,D)),this._ensureElement(),this.initialize.apply(this,arguments)},S=/^(\S+)\s*(.*)$/,D=["model","collection","el","id","attributes","className","tagName","events"];i.extend(A.prototype,o,{tagName:"div",$:function(t){return this.$el.find(t)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(t){return this.undelegateEvents(),this._setElement(t),this.delegateEvents(),this},_setElement:function(t){this.$el=t instanceof e.$?t:e.$(t),this.el=this.$el[0]},delegateEvents:function(t){if(t||(t=i.result(this,"events")),!t)return this;for(var e in this.undelegateEvents(),t){var n=t[e];if(i.isFunction(n)||(n=this[n]),n){var s=e.match(S);this.delegate(s[1],s[2],n.bind(this))}}return this},delegate:function(t,e,i){return this.$el.on(t+".delegateEvents"+this.cid,e,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(t,e,i){return this.$el.off(t+".delegateEvents"+this.cid,e,i),this},_createElement:function(t){return document.createElement(t)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var t=i.extend({},i.result(this,"attributes"));this.id&&(t.id=i.result(this,"id")),this.className&&(t.class=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(t)}},_setAttributes:function(t){this.$el.attr(t)}});var I=function(t,e,i,n){switch(e){case 1:return function(){return t[i](this[n])};case 2:return function(e){return t[i](this[n],e)};case 3:return function(e,s){return t[i](this[n],N(e,this),s)};case 4:return function(e,s,r){return t[i](this[n],N(e,this),s,r)};default:return function(){var e=r.call(arguments);return e.unshift(this[n]),t[i].apply(t,e)}}},M=function(t,e,n,s){i.each(n,function(i,n){e[n]&&(t.prototype[n]=I(e,i,n,s))})},N=function(t,e){return i.isFunction(t)?t:i.isObject(t)&&!e._isModel(t)?O(t):i.isString(t)?function(e){return e.get(t)}:t},O=function(t){var e=i.matches(t);return function(t){return e(t.attributes)}},L={forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},P={keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1};i.each([[b,L,"models"],[v,P,"attributes"]],function(t){var e=t[0],n=t[1],s=t[2];e.mixin=function(t){var n=i.reduce(i.functions(t),function(t,e){return t[e]=0,t},{});M(e,t,n,s)},M(e,i,n,s)}),e.sync=function(t,n,s){var r=R[t];i.defaults(s||(s={}),{emulateHTTP:e.emulateHTTP,emulateJSON:e.emulateJSON});var a={type:r,dataType:"json"};if(s.url||(a.url=i.result(n,"url")||q()),null!=s.data||!n||"create"!==t&&"update"!==t&&"patch"!==t||(a.contentType="application/json",a.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),s.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){a.type="POST",s.emulateJSON&&(a.data._method=r);var o=s.beforeSend;s.beforeSend=function(t){if(t.setRequestHeader("X-HTTP-Method-Override",r),o)return o.apply(this,arguments)}}"GET"===a.type||s.emulateJSON||(a.processData=!1);var l=s.error;s.error=function(t,e,i){s.textStatus=e,s.errorThrown=i,l&&l.call(s.context,t,e,i)};var c=s.xhr=e.ajax(i.extend(a,s));return n.trigger("request",n,c,s),c};var R={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};e.ajax=function(){return e.$.ajax.apply(e.$,arguments)};var $=e.Router=function(t){t||(t={}),this.preinitialize.apply(this,arguments),t.routes&&(this.routes=t.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},j=/\((.*?)\)/g,z=/(\(\?)?:\w+/g,F=/\*\w+/g,H=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend($.prototype,o,{preinitialize:function(){},initialize:function(){},route:function(t,n,s){i.isRegExp(t)||(t=this._routeToRegExp(t)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var r=this;return e.history.route(t,function(i){var a=r._extractParameters(t,i);!1!==r.execute(s,a,n)&&(r.trigger.apply(r,["route:"+n].concat(a)),r.trigger("route",n,a),e.history.trigger("route",r,n,a))}),this},execute:function(t,e,i){t&&t.apply(this,e)},navigate:function(t,i){return e.history.navigate(t,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var t,e=i.keys(this.routes);null!=(t=e.pop());)this.route(t,this.routes[t])}},_routeToRegExp:function(t){return t=t.replace(H,"\\$&").replace(j,"(?:$1)?").replace(z,function(t,e){return e?t:"([^/?]+)"}).replace(F,"([^?]*?)"),new RegExp("^"+t+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(t,e){var n=t.exec(e).slice(1);return i.map(n,function(t,e){return e===n.length-1?t||null:t?decodeURIComponent(t):null})}});var B=e.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},U=/^[#\/]|\s+$/g,W=/^\/+|\/+$/g,V=/#.*$/;B.started=!1,i.extend(B.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(t){return decodeURI(t.replace(/%25/g,"%2525"))},getSearch:function(){var t=this.location.href.replace(/#.*/,"").match(/\?.+/);return t?t[0]:""},getHash:function(t){var e=(t||this).location.href.match(/#(.*)$/);return e?e[1]:""},getPath:function(){var t=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===t.charAt(0)?t.slice(1):t},getFragment:function(t){return null==t&&(t=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),t.replace(U,"")},start:function(t){if(B.started)throw new Error("Backbone.history has already been started");if(B.started=!0,this.options=i.extend({root:"/"},this.options,t),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!(!this.history||!this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(W,"/"),this._wantsHashChange&&this._wantsPushState){if(!this._hasPushState&&!this.atRoot()){var e=this.root.slice(0,-1)||"/";return this.location.replace(e+"#"+this.getPath()),!0}this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0})}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,s=n.insertBefore(this.iframe,n.firstChild).contentWindow;s.document.open(),s.document.close(),s.location.hash="#"+this.fragment}var r=window.addEventListener||function(t,e){return attachEvent("on"+t,e)};if(this._usePushState?r("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?r("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var t=window.removeEventListener||function(t,e){return detachEvent("on"+t,e)};this._usePushState?t("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&t("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),B.started=!1},route:function(t,e){this.handlers.unshift({route:t,callback:e})},checkUrl:function(t){var e=this.getFragment();if(e===this.fragment&&this.iframe&&(e=this.getHash(this.iframe.contentWindow)),e===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(e),this.loadUrl()},loadUrl:function(t){return this.matchRoot()?(t=this.fragment=this.getFragment(t),i.some(this.handlers,function(e){if(e.route.test(t))return e.callback(t),!0})||this.notfound()):this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(t,e){if(!B.started)return!1;e&&!0!==e||(e={trigger:!!e}),t=this.getFragment(t||"");var i=this.root;this._trailingSlash||""!==t&&"?"!==t.charAt(0)||(i=i.slice(0,-1)||"/");var n=i+t;t=t.replace(V,"");var s=this.decodeFragment(t);if(this.fragment!==s){if(this.fragment=s,this._usePushState)this.history[e.replace?"replaceState":"pushState"]({},document.title,n);else{if(!this._wantsHashChange)return this.location.assign(n);if(this._updateHash(this.location,t,e.replace),this.iframe&&t!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;e.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,t,e.replace)}}return e.trigger?this.loadUrl(t):void 0}},_updateHash:function(t,e,i){if(i){var n=t.href.replace(/(javascript:|#).*$/,"");t.replace(n+"#"+e)}else t.hash="#"+e}}),e.history=new B;var Y=function(t,e){var n,s=this;return n=t&&i.has(t,"constructor")?t.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,e),n.prototype=i.create(s.prototype,t),n.prototype.constructor=n,n.__super__=s.prototype,n};v.extend=b.extend=$.extend=A.extend=B.extend=Y;var q=function(){throw new Error('A "url" property or function must be specified')},K=function(t,e){var i=e.error;e.error=function(n){i&&i.call(e.context,t,n,e),t.trigger("error",t,n,e)}};return e._debug=function(){return{root:t,_:i}},e}(r,i,t,e)}.apply(e,n),void 0===s||(t.exports=s)},722:function(t,e,i){var n,s,r;
9
- /*! jQuery Fancy File Input plugin - v2.0.4 - 2018-11-23
10
- * Copyright (c) 2018 Atlassian Pty Ltd; Licensed Apache-2.0 */void 0===(r=this)&&void 0!==window&&(r=window),n=[i(687)],void 0===(s=function(t){return r.FancyFileInput=function(t){"use strict";var e=/^.*[\\\/]/,i=/\{0\}/gi,n=function(){var t=3,e=document.createElement("div"),i=e.getElementsByTagName("i");do{e.innerHTML="\x3c!--[if gt IE "+ ++t+"]><i></i><![endif]--\x3e"}while(i[0]);return t>4?t:document.documentMode}();function s(e,i){var n=t(e).data("FancyFileInput");if(n)return n;i=t.extend({},s.defaults,i),this.el=e,this.$el=t(e),this.$label=this.createLabel(i.buttonText),this._addLabelText(),this.$clearButton=t("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||i.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||i.multipleFileTextPattern,this._eventNamespace=".ffi",this.CLASSES={disabled:"is-disabled",focused:"is-focused",active:"is-active",valid:"is-valid",invalid:"is-invalid"},this[this.isDisabled()?"disable":"enable"](),this.isFocused=!1}return s.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},s.prototype._addLabelText=function(){var e=t('label[for="'+this.el.id+'"]');e.length&&this.$el.attr("aria-label",e.text())},s.prototype.createLabel=function(e){var i=this.$el.parent(".ffi[data-ffi-button-text]");return i.length||(i=this.$el.wrap(t("<label>",{class:"ffi","data-ffi-button-text":e})).parent()),i},s.prototype.isDisabled=function(){return this.$el.is(":disabled")},s.prototype.formatMultipleFileText=function(t){return this.multipleFileTextPattern.replace(i,t)},s.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,t.proxy(this.checkValidity,this)).on("change"+this._eventNamespace,t.proxy(this.change,this)).on("keydown"+this._eventNamespace,t.proxy(this.keydown,this)).on("mousedown"+this._eventNamespace,t.proxy(this.mousedown,this)).on("mouseup"+this._eventNamespace,t.proxy(this.mouseup,this)).on("focus"+this._eventNamespace,t.proxy(this.focus,this)).on("blur"+this._eventNamespace,t.proxy(this.blur,this)),this.$clearButton.on("click"+this._eventNamespace,t.proxy(this.clear,this))},s.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},s.prototype.fireEvent=function(t){this.$el.trigger(t+this._eventNamespace)},s.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},s.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},s.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},s.prototype.focus=function(){var t=this;this.$label.addClass(this.CLASSES.focused),n&&!this.isFocused&&(this.isFocused=!0,setTimeout(function(){t.$el.blur(),t.$el.focus()},0))},s.prototype.blur=function(){n&&this.isFocused||(this.$label.removeClass(this.CLASSES.focused),this.isFocused=!1)},s.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},s.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},s.prototype.keydown=function(t){var e=t.which,i=9;if(8!==e&&46!==e||(this.clear(),t.preventDefault()),n&&e===i){var s=this;this.isFocused=!1,this.$el.prop("disabled",!0),setTimeout(function(){s.$el.prop("disabled",!1).blur()},0)}},s.prototype.checkValidity=function(){if(this.el.required){var t=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,t).toggleClass(this.CLASSES.valid,!t)}},s.prototype.change=function(){var t,i="";this.checkValidity(),(t=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(i=t.replace(e,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(i),this.fireEvent("value-changed")},s.prototype.setFieldText=function(t){var e="data-ffi-value";t.length?(this.$label.attr(e,t),this.fireEvent("value-added")):(this.$label.removeAttr(e),this.fireEvent("value-cleared"))},t.fn.fancyFileInput=function(e){return this.each(function(){var i=new s(this,e);t(this).data("FancyFileInput",i)})},s}(t)}.apply(e,n))||(t.exports=s)},745:(t,e,i)=>{var n,s,r;
11
- /*!
12
- * jQuery UI :data 1.14.1
13
- * https://jqueryui.com
14
- *
15
- * Copyright OpenJS Foundation and other contributors
16
- * Released under the MIT license.
17
- * https://jquery.org/license
18
- */!function(){"use strict";s=[i(687),i(309)],void 0===(r="function"==typeof(n=function(t){return t.extend(t.expr.pseudos,{data:t.expr.createPseudo(function(e){return function(i){return!!t.data(i,e)}})})})?n.apply(e,s):n)||(t.exports=r)}()},891:(t,e,i)=>{var n,s,r;
19
- /*!
20
- * jQuery UI Keycode 1.14.1
21
- * https://jqueryui.com
22
- *
23
- * Copyright OpenJS Foundation and other contributors
24
- * Released under the MIT license.
25
- * https://jquery.org/license
26
- */!function(){"use strict";s=[i(687),i(309)],void 0===(r="function"==typeof(n=function(t){return t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})?n.apply(e,s):n)||(t.exports=r)}()},786:(t,e,i)=>{var n,s,r;!function(){"use strict";s=[i(687),i(309)],n=function(t){return t.ui.plugin={add:function(e,i,n){var s,r=t.ui[e].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,r=t.plugins[e];if(r&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<r.length;s++)t.options[r[s][0]]&&r[s][1].apply(t.element,i)}}},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)}()},41:(t,e,i)=>{var n,s,r;
27
- /*!
28
- * jQuery UI Scroll Parent 1.14.1
29
- * https://jqueryui.com
30
- *
31
- * Copyright OpenJS Foundation and other contributors
32
- * Released under the MIT license.
33
- * https://jquery.org/license
34
- */!function(){"use strict";s=[i(687),i(309)],void 0===(r="function"==typeof(n=function(t){return t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:t(this[0].ownerDocument||document)}})?n.apply(e,s):n)||(t.exports=r)}()},309:(t,e,i)=>{var n,s,r;!function(){"use strict";s=[i(687)],void 0===(r="function"==typeof(n=function(t){return t.ui=t.ui||{},t.ui.version="1.14.1"})?n.apply(e,s):n)||(t.exports=r)}()},229:(t,e,i)=>{var n,s,r;
35
- /*!
36
- * jQuery UI Widget 1.14.1
37
- * https://jqueryui.com
38
- *
39
- * Copyright OpenJS Foundation and other contributors
40
- * Released under the MIT license.
41
- * https://jquery.org/license
42
- */!function(){"use strict";s=[i(687),i(309)],n=function(t){var e=0,i=Array.prototype.hasOwnProperty,n=Array.prototype.slice;return t.cleanData=function(e){return function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove");e(i)}}(t.cleanData),t.widget=function(e,i,n){var s,r,a,o={},l=e.split(".")[0];if("__proto__"===(e=e.split(".")[1])||"constructor"===e)return t.error("Invalid widget name: "+e);var c=l+"-"+e;return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},s=t[l][e],r=t[l][e]=function(t,e){if(!this||!this._createWidget)return new r(t,e);arguments.length&&this._createWidget(t,e)},t.extend(r,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(a=new i).options=t.widget.extend({},a.options),t.each(n,function(t,e){o[t]="function"==typeof e?function(){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}return function(){var t,i=this._super,r=this._superApply;return this._super=n,this._superApply=s,t=e.apply(this,arguments),this._super=i,this._superApply=r,t}}():e}),r.prototype=t.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||e},o,{constructor:r,namespace:l,widgetName:e,widgetFullName:c}),s?(t.each(s._childConstructors,function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),t.widget.bridge(e,r),r},t.widget.extend=function(e){for(var s,r,a=n.call(arguments,1),o=0,l=a.length;o<l;o++)for(s in a[o])r=a[o][s],i.call(a[o],s)&&void 0!==r&&(t.isPlainObject(r)?e[s]=t.isPlainObject(e[s])?t.widget.extend({},e[s],r):t.widget.extend({},r):e[s]=r);return e},t.widget.bridge=function(e,i){var s=i.prototype.widgetFullName||e;t.fn[e]=function(r){var a="string"==typeof r,o=n.call(arguments,1),l=this;return a?this.length||"instance"!==r?this.each(function(){var i,n=t.data(this,s);return"instance"===r?(l=n,!1):n?"function"!=typeof n[r]||"_"===r.charAt(0)?t.error("no such method '"+r+"' for "+e+" widget instance"):(i=n[r].apply(n,o))!==n&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(o.length&&(r=t.widget.extend.apply(null,[r].concat(o))),this.each(function(){var e=t.data(this,s);e?(e.option(r||{}),e._init&&e._init()):t.data(this,s,new i(r,this))})),l}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(i,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=e++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),i),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,function(t,i){e._removeClass(i,t)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,r,a=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(a={},n=e.split("."),e=n.shift(),n.length){for(s=a[e]=t.widget.extend({},this.options[e]),r=0;r<n.length-1;r++)s[n[r]]=s[n[r]]||{},s=s[n[r]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];a[e]=i}return this._setOptions(a),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(n=t(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function s(){var i=[];e.element.each(function(e,s){t.map(n.classesElementLookup,function(t){return t}).some(function(t){return t.is(s)})||i.push(s)}),n._on(t(i),{remove:"_untrackClassesElement"})}function r(r,a){var o,l;for(l=0;l<r.length;l++)o=n.classesElementLookup[r[l]]||t(),e.add?(s(),o=t(t.uniqueSort(o.get().concat(e.element.get())))):o=t(o.not(e.element).get()),n.classesElementLookup[r[l]]=o,i.push(r[l]),a&&e.classes[r[l]]&&i.push(e.classes[r[l]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&r(e.keys.match(/\S+/g)||[],!0),e.extra&&r(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,function(n,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[n]=t(s.not(e.target).get()))}),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof t||null===t,r={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(e,i,n){var s,r=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,function(n,a){function o(){if(e||!0!==r.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof a?r[a]:a).apply(r,arguments)}"string"!=typeof a&&(o.guid=a.guid=a.guid||o.guid||t.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+r.eventNamespace,u=l[2];u?s.on(c,u,o):i.on(c,o)})},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_delay:function(t,e){function i(){return("string"==typeof t?n[t]:t).apply(n,arguments)}var n=this;return setTimeout(i,e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var s,r,a=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},function(e,i){t.Widget.prototype["_"+e]=function(n,s,r){var a;"string"==typeof s&&(s={effect:s});var o=s?!0===s||"number"==typeof s?i:s.effect||i:e;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),a=!t.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),a&&t.effects&&t.effects.effect[o]?n[e](s):o!==e&&n[o]?n[o](s.duration,s.easing,r):n.queue(function(i){t(this)[e](),r&&r.call(n[0]),i()})}}),t.widget},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)}()},253:(t,e,i)=>{var n,s,r;
43
- /*!
44
- * jQuery UI Datepicker 1.14.1
45
- * https://jqueryui.com
46
- *
47
- * Copyright OpenJS Foundation and other contributors
48
- * Released under the MIT license.
49
- * https://jquery.org/license
50
- */!function(){"use strict";s=[i(687),i(309),i(891)],n=function(t){var e;function i(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}function n(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=s(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function s(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,r)}function r(){t.datepicker._isDisabledDatepicker(e.inline?e.dpDiv.parent()[0]:e.input[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function a(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}return t.extend(t.ui,{datepicker:{version:"1.14.1"}}),t.extend(n.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return a(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s,r;s="div"===(n=e.nodeName.toLowerCase())||"span"===n,e.id||(this.uuid+=1,e.id="dp"+this.uuid),(r=this._newInst(t(e),s)).settings=t.extend({},i||{}),"input"===n?this._connectDatepicker(e,r):s&&this._inlineDatepicker(e,r)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?s(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s,r,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=t("<span>").addClass(this._appendClass).text(a),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),r?i.trigger.html(t("<img>").attr({src:r,alt:s,title:s})):i.trigger.text(s)),e[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]?(t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])):t.datepicker._showDatepicker(e[0]),!1}))},_autoSize:function(t){if(this._get(t,"autoSize")&&!t.inline){var e,i,n,s,r=new Date(2009,11,20),a=this._get(t,"dateFormat");a.match(/[DM]/)&&(e=function(t){for(i=0,n=0,s=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},r.setMonth(e(this._get(t,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(e(this._get(t,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),t.input.attr("size",this._formatDate(t,r).length)}},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,r){var o,l,c,u,d,h=this._dialogInst;return h||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(h=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",h)),a(h.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(h,i):i,this._dialogInput.val(i),this._pos=r?r.length?r:[r.pageX,r.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,d=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+d]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),h.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",h),this},_destroyDatepicker:function(i){var n,s=t(i),r=t.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),t.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==n&&"span"!==n||s.removeClass(this.markerClassName).empty(),t.datepicker._hideDatepicker(),e===r&&(e=null,this._curInst=null))},_enableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,r.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}))},_disableDatepicker:function(e){var i,n,s=t(e),r=t.data(e,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,r.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,function(t){return t===e?null:t}),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(t){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,r,o,l,c=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):c?"all"===i?t.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),r=this._getDateDatepicker(e,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),a(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),c),this._autoSize(c),this._setDate(c,r),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){var e=this._getInst(t);e&&this._updateDatepicker(e)},_setDateDatepicker:function(t,e){var i=this._getInst(t);i&&(this._setDate(i,e),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(t,e){var i=this._getInst(t);return i&&!i.inline&&this._setDateFromField(i,e),i?this._getDate(i):null},_doKeyDown:function(e){var i,n,s,r=t.datepicker._getInst(e.target),a=!0,o=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),a=!1;break;case 13:return(s=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",r.dpDiv))[0]&&t.datepicker._selectDay(e.target,r.selectedMonth,r.selectedYear,s[0]),(i=t.datepicker._get(r,"onSelect"))?(n=t.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),a=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),a=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?1:-1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(r,"stepBigMonths"):-t.datepicker._get(r,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),a=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,o?-1:1,"D"),a=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(r,"stepBigMonths"):+t.datepicker._get(r,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),a=e.ctrlKey||e.metaKey;break;default:a=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):a=!1;a&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n,s=t.datepicker._getInst(e.target);if(t.datepicker._get(s,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(e){var i=t.datepicker._getInst(e.target);if(i.input.val()!==i.lastVal)try{t.datepicker.parseDate(t.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,t.datepicker._getFormatConfig(i))&&(t.datepicker._setDateFromField(i),t.datepicker._updateAlternate(i),t.datepicker._updateDatepicker(i))}catch(t){}return!0},_showDatepicker:function(e){var n,s,r,o,l,c,u;("input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e)||(n=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==n&&(t.datepicker._curInst.dpDiv.stop(!0,!0),n&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(r=(s=t.datepicker._get(n,"beforeShow"))?s.apply(e,[e,n]):{})&&(a(n.settings,r),n.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(n),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),o=!1,t(e).parents().each(function(){return!(o|="fixed"===t(this).css("position"))}),l={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,n.dpDiv.empty(),n.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(n),l=t.datepicker._checkOffset(n,l,o),n.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":o?"fixed":"absolute",display:"none",left:l.left+"px",top:l.top+"px"}),n.inline||(c=t.datepicker._get(n,"showAnim"),u=t.datepicker._get(n,"duration"),n.dpDiv.css("z-index",i(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[c]?n.dpDiv.show(c,t.datepicker._get(n,"showOptions"),u):n.dpDiv[c||"show"](c?u:null),t.datepicker._shouldFocusInput(n)&&n.input.trigger("focus"),t.datepicker._curInst=n)))},_updateDatepicker:function(i){this.maxRows=4,e=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,s=this._getNumberOfMonths(i),a=s[1],o=17,l=i.dpDiv.find("."+this._dayOverClass+" a"),c=t.datepicker._get(i,"onUpdateDatepicker");l.length>0&&r.apply(l.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&i.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",o*a+"em"),i.dpDiv[(1!==s[0]||1!==s[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout(function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null},0)),c&&c.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),r=e.dpDiv.outerHeight(),a=e.input?e.input.outerWidth():0,o=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-a:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+o?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+r>c&&c>r?Math.abs(r+o):0),i},_findPos:function(e){for(var i,n=this._getInst(e),s=this._get(n,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[s?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s,r,a=this._curInst;!a||e&&a!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),s=function(){t.datepicker._tidyDialog(a)},t.effects&&t.effects.effect[i]?a.dpDiv.hide(i,t.datepicker._get(a,"showOptions"),n,s):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(r=this._get(a,"onClose"))&&r.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){if(t.datepicker._curInst){var i=t(e.target),n=t.datepicker._getInst(i[0]);(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===n)||t.datepicker._hideDatepicker()}},_adjustDate:function(e,i,n){var s=t(e),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i,n),this._updateDatepicker(r))},_gotoToday:function(e){var i,n=t(e),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(i=new Date,s.selectedDay=i.getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(e,i,n){var s=t(e),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(s)},_selectDay:function(e,i,n,s){var r,a=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((r=this._getInst(a[0])).selectedDay=r.currentDay=parseInt(t("a",s).attr("data-date")),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(e,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(e){var i=t(e);this._selectDate(i,"")},_selectDate:function(e,i){var n,s=t(e),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s,r=this._get(e,"altField");r&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),s=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(r).val(s))},noWeekends:function(t){var e=t.getDay();return[e>0&&e<6,""]},iso8601Week:function(t){var e,i=new Date(t.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),e=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((e-i)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,r,a,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:(new Date).getFullYear()%100+parseInt(c,10),d=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,h=(n?n.dayNames:null)||this._defaults.dayNames,p=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,f=(n?n.monthNames:null)||this._defaults.monthNames,g=-1,m=-1,v=-1,b=-1,y=!1,w=function(t){var i=s+1<e.length&&e.charAt(s+1)===t;return i&&s++,i},_=function(t){var e=w(t),n="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,s=new RegExp("^\\d{"+("y"===t?n:1)+","+n+"}"),r=i.substring(l).match(s);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},x=function(e,n,s){var r=-1,a=t.map(w(e)?s:n,function(t,e){return[[e,t]]}).sort(function(t,e){return-(t[1].length-e[1].length)});if(t.each(a,function(t,e){var n=e[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return r=e[0],l+=n.length,!1}),-1!==r)return r+1;throw"Unknown name at position "+l},C=function(){if(i.charAt(l)!==e.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<e.length;s++)if(y)"'"!==e.charAt(s)||w("'")?C():y=!1;else switch(e.charAt(s)){case"d":v=_("d");break;case"D":x("D",d,h);break;case"o":b=_("o");break;case"m":m=_("m");break;case"M":m=x("M",p,f);break;case"y":g=_("y");break;case"@":g=(o=new Date(_("@"))).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"!":g=(o=new Date((_("!")-this._ticksTo1970)/1e4)).getFullYear(),m=o.getMonth()+1,v=o.getDate();break;case"'":w("'")?C():y=!0;break;default:C()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===g?g=(new Date).getFullYear():g<100&&(g+=(new Date).getFullYear()-(new Date).getFullYear()%100+(g<=u?0:-100)),b>-1)for(m=1,v=b;;){if(v<=(r=this._getDaysInMonth(g,m-1)))break;m++,v-=r}if((o=this._daylightSavingAdjust(new Date(g,m-1,v))).getFullYear()!==g||o.getMonth()+1!==m||o.getDate()!==v)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(e){var i=n+1<t.length&&t.charAt(n+1)===e;return i&&n++,i},c=function(t,e,i){var n=""+e;if(l(t))for(;n.length<i;)n="0"+n;return n},u=function(t,e,i,n){return l(t)?n[e]:i[e]},d="",h=!1;if(e)for(n=0;n<t.length;n++)if(h)"'"!==t.charAt(n)||l("'")?d+=t.charAt(n):h=!1;else switch(t.charAt(n)){case"d":d+=c("d",e.getDate(),2);break;case"D":d+=u("D",e.getDay(),s,r);break;case"o":d+=c("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":d+=c("m",e.getMonth()+1,2);break;case"M":d+=u("M",e.getMonth(),a,o);break;case"y":d+=l("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":d+=e.getTime();break;case"!":d+=1e4*e.getTime()+this._ticksTo1970;break;case"'":l("'")?d+="'":h=!0;break;default:d+=t.charAt(n)}return d},_possibleChars:function(t){var e,i="",n=!1,s=function(i){var n=e+1<t.length&&t.charAt(e+1)===i;return n&&e++,n};for(e=0;e<t.length;e++)if(n)"'"!==t.charAt(e)||s("'")?i+=t.charAt(e):n=!1;else switch(t.charAt(e)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=t.charAt(e)}return i},_get:function(t,e){return void 0!==t.settings[e]?t.settings[e]:this._defaults[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),r=s,a=this._getFormatConfig(t);try{r=this.parseDate(i,n,a)||s}catch(t){n=e?"":n}t.selectedDay=r.getDate(),t.drawMonth=t.selectedMonth=r.getMonth(),t.drawYear=t.selectedYear=r.getFullYear(),t.currentDay=n?r.getDate():0,t.currentMonth=n?r.getMonth():0,t.currentYear=n?r.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s=function(t){var e=new Date;return e.setDate(e.getDate()+t),e},r=function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(t){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=n.getFullYear(),r=n.getMonth(),a=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,r));break;case"y":case"Y":s+=parseInt(l[1],10),a=Math.min(a,t.datepicker._getDaysInMonth(s,r))}l=o.exec(i)}return new Date(s,r,a)},a=null==i||""===i?n:"string"==typeof i?r(i):"number"==typeof i?isNaN(i)?n:s(i):new Date(i.getTime());return(a=a&&"Invalid Date"===a.toString()?n:a)&&(a.setHours(0),a.setMinutes(0),a.setSeconds(0),a.setMilliseconds(0)),this._daylightSavingAdjust(a)},_daylightSavingAdjust:function(t){return t?(t.setHours(t.getHours()>12?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,r=t.selectedYear,a=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=a.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=a.getMonth(),t.drawYear=t.selectedYear=t.currentYear=a.getFullYear(),s===t.selectedMonth&&r===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map(function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])})},_generateHTML:function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g,m,v,b,y,w,_,x,C,T,k,E,A,S,D,I,M,N,O,L,P,R,$,j,z,F,H=new Date,B=this._daylightSavingAdjust(new Date(H.getFullYear(),H.getMonth(),H.getDate())),U=this._get(e,"isRTL"),W=this._get(e,"showButtonPanel"),V=this._get(e,"hideIfNoPrevNext"),Y=this._get(e,"navigationAsDateFormat"),q=this._getNumberOfMonths(e),K=this._get(e,"showCurrentAtPos"),Q=this._get(e,"stepMonths"),G=1!==q[0]||1!==q[1],J=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),Z=this._getMinMaxDate(e,"min"),X=this._getMinMaxDate(e,"max"),tt=e.drawMonth-K,et=e.drawYear;if(tt<0&&(tt+=12,et--),X)for(i=this._daylightSavingAdjust(new Date(X.getFullYear(),X.getMonth()-q[0]*q[1]+1,X.getDate())),i=Z&&i<Z?Z:i;this._daylightSavingAdjust(new Date(et,tt,1))>i;)--tt<0&&(tt=11,et--);for(e.drawMonth=tt,e.drawYear=et,n=this._get(e,"prevText"),n=Y?this.formatDate(n,this._daylightSavingAdjust(new Date(et,tt-Q,1)),this._getFormatConfig(e)):n,s=this._canAdjustMonth(e,-1,et,tt)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML:V?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"e":"w")).text(n))[0].outerHTML,r=this._get(e,"nextText"),r=Y?this.formatDate(r,this._daylightSavingAdjust(new Date(et,tt+Q,1)),this._getFormatConfig(e)):r,a=this._canAdjustMonth(e,1,et,tt)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:r}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(r))[0].outerHTML:V?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:r}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(U?"w":"e")).text(r))[0].outerHTML,o=this._get(e,"currentText"),l=this._get(e,"gotoCurrent")&&e.currentDay?J:B,o=Y?this.formatDate(o,l,this._getFormatConfig(e)):o,c="",e.inline||(c=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),u="",W&&(u=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(U?c:"").append(this._isInRange(e,l)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(U?"":c)[0].outerHTML),d=parseInt(this._get(e,"firstDay"),10),d=isNaN(d)?0:d,h=this._get(e,"showWeek"),p=this._get(e,"dayNames"),f=this._get(e,"dayNamesMin"),g=this._get(e,"monthNames"),m=this._get(e,"monthNamesShort"),v=this._get(e,"beforeShowDay"),b=this._get(e,"showOtherMonths"),y=this._get(e,"selectOtherMonths"),w=this._getDefaultDate(e),_="",C=0;C<q[0];C++){for(T="",this.maxRows=4,k=0;k<q[1];k++){if(E=this._daylightSavingAdjust(new Date(et,tt,e.selectedDay)),A=" ui-corner-all",S="",G){if(S+="<div class='ui-datepicker-group",q[1]>1)switch(k){case 0:S+=" ui-datepicker-group-first",A=" ui-corner-"+(U?"right":"left");break;case q[1]-1:S+=" ui-datepicker-group-last",A=" ui-corner-"+(U?"left":"right");break;default:S+=" ui-datepicker-group-middle",A=""}S+="'>"}for(S+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+A+"'>"+(/all|left/.test(A)&&0===C?U?a:s:"")+(/all|right/.test(A)&&0===C?U?s:a:"")+this._generateMonthYearHeader(e,tt,et,Z,X,C>0||k>0,g,m)+"</div><table class='ui-datepicker-calendar'><thead><tr>",D=h?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",x=0;x<7;x++)D+="<th scope='col'"+((x+d+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+p[I=(x+d)%7]+"'>"+f[I]+"</span></th>";for(S+=D+"</tr></thead><tbody>",M=this._getDaysInMonth(et,tt),et===e.selectedYear&&tt===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,M)),N=(this._getFirstDayOfMonth(et,tt)-d+7)%7,O=Math.ceil((N+M)/7),L=G&&this.maxRows>O?this.maxRows:O,this.maxRows=L,P=this._daylightSavingAdjust(new Date(et,tt,1-N)),R=0;R<L;R++){for(S+="<tr>",$=h?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(P)+"</td>":"",x=0;x<7;x++)j=v?v.apply(e.input?e.input[0]:null,[P]):[!0,""],F=(z=P.getMonth()!==tt)&&!y||!j[0]||Z&&P<Z||X&&P>X,$+="<td class='"+((x+d+6)%7>=5?" ui-datepicker-week-end":"")+(z?" ui-datepicker-other-month":"")+(P.getTime()===E.getTime()&&tt===e.selectedMonth&&e._keyEvent||w.getTime()===P.getTime()&&w.getTime()===E.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(z&&!b?"":" "+j[1]+(P.getTime()===J.getTime()?" "+this._currentClass:"")+(P.getTime()===B.getTime()?" ui-datepicker-today":""))+"'"+(z&&!b||!j[2]?"":" title='"+j[2].replace(/'/g,"&#39;")+"'")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+P.getMonth()+"' data-year='"+P.getFullYear()+"'")+">"+(z&&!b?"&#xa0;":F?"<span class='ui-state-default'>"+P.getDate()+"</span>":"<a class='ui-state-default"+(P.getTime()===B.getTime()?" ui-state-highlight":"")+(P.getTime()===J.getTime()?" ui-state-active":"")+(z?" ui-priority-secondary":"")+"' href='#' aria-current='"+(P.getTime()===J.getTime()?"true":"false")+"' data-date='"+P.getDate()+"'>"+P.getDate()+"</a>")+"</td>",P.setDate(P.getDate()+1),P=this._daylightSavingAdjust(P);S+=$+"</tr>"}++tt>11&&(tt=0,et++),T+=S+="</tbody></table>"+(G?"</div>"+(q[0]>0&&k===q[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}_+=T}return _+=u,e._keyEvent=!1,_},_generateMonthYearHeader:function(t,e,i,n,s,r,a,o){var l,c,u,d,h,p,f,g,m=this._get(t,"changeMonth"),v=this._get(t,"changeYear"),b=this._get(t,"showMonthAfterYear"),y=this._get(t,"selectMonthLabel"),w=this._get(t,"selectYearLabel"),_="<div class='ui-datepicker-title'>",x="";if(r||!m)x+="<span class='ui-datepicker-month'>"+a[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,x+="<select class='ui-datepicker-month' aria-label='"+y+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(x+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+o[u]+"</option>");x+="</select>"}if(b||(_+=x+(!r&&m&&v?"":"&#xa0;")),!t.yearshtml)if(t.yearshtml="",r||!v)_+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(d=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),p=function(t){var e=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10);return isNaN(e)?h:e},f=p(d[0]),g=Math.max(f,p(d[1]||"")),f=n?Math.max(f,n.getFullYear()):f,g=s?Math.min(g,s.getFullYear()):g,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+w+"' data-handler='selectYear' data-event='change'>";f<=g;f++)t.yearshtml+="<option value='"+f+"'"+(f===i?" selected='selected'":"")+">"+f+"</option>";t.yearshtml+="</select>",_+=t.yearshtml,t.yearshtml=null}return _+=this._get(t,"yearSuffix"),b&&(_+=(!r&&m&&v?"":"&#xa0;")+x),_+="</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0),r=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),a=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,r)));t.selectedDay=a.getDate(),t.drawMonth=t.selectedMonth=a.getMonth(),t.drawYear=t.selectedYear=a.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=i&&e<i?i:e;return n&&s>n?n:s},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){var e=this._get(t,"numberOfMonths");return null==e?[1,1]:"number"==typeof e?[1,e]:e},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t),r=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(t,r)},_isInRange:function(t,e){var i,n,s=this._getMinMaxDate(t,"min"),r=this._getMinMaxDate(t,"max"),a=null,o=null,l=this._get(t,"yearRange");return l&&(i=l.split(":"),n=(new Date).getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||e.getTime()>=s.getTime())&&(!r||e.getTime()<=r.getTime())&&(!a||e.getFullYear()>=a)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear);var s=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay));return this.formatDate(this._get(t,"dateFormat"),s,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"!=typeof e||"isDisabled"!==e&&"getDate"!==e&&"widget"!==e?"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}):t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i))},t.datepicker=new n,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.14.1",t.datepicker},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)}()},132:(t,e,i)=>{var n,s,r;
51
- /*!
52
- * jQuery UI Draggable 1.14.1
53
- * https://jqueryui.com
54
- *
55
- * Copyright OpenJS Foundation and other contributors
56
- * Released under the MIT license.
57
- * https://jquery.org/license
58
- */!function(){"use strict";s=[i(687),i(228),i(745),i(786),i(41),i(309),i(229)],void 0===(r="function"==typeof(n=function(t){return t.widget("ui.draggable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map(function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=this.document[0].activeElement;t(e.target).closest(i).length||t(i).trigger("blur")},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===t(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",e)&&i._clear()}):!1!==this._trigger("stop",e)&&this._clear(),!1},_mouseUp:function(e){return this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper,s=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options,r=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,t(r).width()-this.helperProportions.width-this.margins.left,(t(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e||(e=this.position);var i="absolute"===t?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n,s,r,a=this.options,o=this._isRootNode(this.scrollParent[0]),l=t.pageX,c=t.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,t.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-a.grid[1]:s+a.grid[1]:s,r=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each(function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))})},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))})},drag:function(e,i,n){t.each(n.sortables,function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,t.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&t.contains(r.element[0],this.element[0])&&(s=!1),s})),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},e.target=r.currentItem[0],r._mouseCapture(e,!0),r._mouseStart(e,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",e),n.dropped=r.element,t.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(e),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",e,r._uiHash(r)),r._mouseStop(e,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,function(){this.refreshPositions()}))})}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(e,i,n){var s=n.options;s._cursor&&t("body").css("cursor",s._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(e,i,n){var s=n.options;s._opacity&&t(i.helper).css("opacity",s._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,r=!1,a=n.scrollParentNotHidden[0],o=n.document[0];a!==o&&"HTML"!==a.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+a.offsetHeight-e.pageY<s.scrollSensitivity?a.scrollTop=r=a.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(a.scrollTop=r=a.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+a.offsetWidth-e.pageX<s.scrollSensitivity?a.scrollLeft=r=a.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(a.scrollLeft=r=a.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(o).scrollTop()<s.scrollSensitivity?r=t(o).scrollTop(t(o).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(o).scrollTop())<s.scrollSensitivity&&(r=t(o).scrollTop(t(o).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(o).scrollLeft()<s.scrollSensitivity?r=t(o).scrollLeft(t(o).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(o).scrollLeft())<s.scrollSensitivity&&(r=t(o).scrollLeft(t(o).scrollLeft()+s.scrollSpeed)))),!1!==r&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})})},drag:function(e,i,n){var s,r,a,o,l,c,u,d,h,p,f=n.options,g=f.snapTolerance,m=i.offset.left,v=m+n.helperProportions.width,b=i.offset.top,y=b+n.helperProportions.height;for(h=n.snapElements.length-1;h>=0;h--)c=(l=n.snapElements[h].left-n.margins.left)+n.snapElements[h].width,d=(u=n.snapElements[h].top-n.margins.top)+n.snapElements[h].height,v<l-g||m>c+g||y<u-g||b>d+g||!t.contains(n.snapElements[h].item.ownerDocument,n.snapElements[h].item)?(n.snapElements[h].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=!1):("inner"!==f.snapMode&&(s=Math.abs(u-y)<=g,r=Math.abs(d-b)<=g,a=Math.abs(l-v)<=g,o=Math.abs(c-m)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),p=s||r||a||o,"outer"!==f.snapMode&&(s=Math.abs(u-b)<=g,r=Math.abs(d-y)<=g,a=Math.abs(l-m)<=g,o=Math.abs(c-v)<=g,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:d-n.helperProportions.height,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[h].snapping&&(s||r||a||o||p)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[h].item})),n.snapElements[h].snapping=s||r||a||o||p)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s,r=n.options,a=t.makeArray(t(r.stack)).sort(function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)});a.length&&(s=parseInt(t(a[0]).css("zIndex"),10)||0,t(a).each(function(e){t(this).css("zIndex",s+e)}),this.css("zIndex",s+a.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){var s=t(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(e,i,n){var s=n.options;s._zIndex&&t(i.helper).css("zIndex",s._zIndex)}}),t.ui.draggable})?n.apply(e,s):n)||(t.exports=r)}()},228:(t,e,i)=>{var n,s,r;
59
- /*!
60
- * jQuery UI Mouse 1.14.1
61
- * https://jqueryui.com
62
- *
63
- * Copyright OpenJS Foundation and other contributors
64
- * Released under the MIT license.
65
- * https://jquery.org/license
66
- */!function(){"use strict";s=[i(687),i(309),i(229)],void 0===(r="function"==typeof(n=function(t){var e=!1;return t(document).on("mouseup",function(){e=!1}),t.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,function(t){return e._mouseDown(t)}).on("click."+this.widgetName,function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,r="string"==typeof this.options.cancel&&t(i.target).closest(this.options.cancel).length;return!(s&&!r&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(t){if(this._mouseMoved&&!t.which)if(t.originalEvent.altKey||t.originalEvent.ctrlKey||t.originalEvent.metaKey||t.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(t);return(t.which||t.button)&&(this._mouseMoved=!0),this._mouseStarted?(this._mouseDrag(t),t.preventDefault()):(this._mouseDistanceMet(t)&&this._mouseDelayMet(t)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,t),this._mouseStarted?this._mouseDrag(t):this._mouseUp(t)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&t.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,e=!1,i.preventDefault()},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})?n.apply(e,s):n)||(t.exports=r)}()},903:(t,e,i)=>{var n,s,r;
67
- /*!
68
- * jQuery UI Sortable 1.14.1
69
- * https://jqueryui.com
70
- *
71
- * Copyright OpenJS Foundation and other contributors
72
- * Released under the MIT license.
73
- * https://jquery.org/license
74
- */!function(){"use strict";s=[i(687),i(228),i(745),i(41),i(309),i(229)],n=function(t){return t.widget("ui.sortable",t.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(t,e,i){return t>=e&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each(function(){if(t.data(this,r.widgetName+"-item")===r)return n=t(this),!1}),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each(function(){this===e.target&&(s=!0)}),!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=t("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this._storedStylesheet=t("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,s,r,a=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!a.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if(s=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===r?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(e)})}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each(function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))}),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each(function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")}),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=t.left,a=r+t.width,o=t.top,l=o+t.height,c=this.offset.click.top,u=this.offset.click.left,d="x"===this.options.axis||n+c>o&&n+c<l,h="y"===this.options.axis||e+u>r&&e+u<a,p=d&&h;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:r<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!n||!s)&&(e=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,r,a=[],o=[],l=this._connectWith();if(l&&e)for(i=l.length-1;i>=0;i--)for(n=(s=t(l[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push(["function"==typeof r.options.items?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return t(a)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0})},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,r,a,o,l,c,u=this.items,d=[["function"==typeof this.options.items?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],h=this._connectWith();if(h&&this.ready)for(i=h.length-1;i>=0;i--)for(n=(s=t(h[i],this.document[0])).length-1;n>=0;n--)(r=t.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(d.push(["function"==typeof r.options.items?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=d.length-1;i>=0;i--)for(a=d[i][1],n=0,c=(o=d[i][0]).length;n<c;n++)(l=t(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){var i,n,s,r;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=s.outerWidth(),n.height=s.outerHeight()),r=s.offset(),n.left=r.left,n.top=r.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;e>=0;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,r){i&&!s.forcePlaceholderSize||(r.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||r.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each(function(){t("<td>&#160;</td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(e){var i,n,s,r,a,o,l,c,u,d,h=null,p=null;for(i=this.containers.length-1;i>=0;i--)if(!t.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(h&&t.contains(this.containers[i].element[0],h.element[0]))continue;h=this.containers[i],p=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",e,this._uiHash(this)),this.containers[i].containerCache.over=0);if(h)if(1===this.containers.length)this.containers[p].containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1);else{for(s=1e4,r=null,a=(u=h.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",d=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)t.contains(this.containers[p].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,e[d]-l>this.items[n][o]/2&&(c=!0),Math.abs(e[d]-l)<s&&(s=Math.abs(e[d]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[p])return void(this.currentContainer.containerCache.over||(this.containers[p]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1));r?this._rearrange(e,r,null,!0):this._rearrange(e,null,this.containers[p].element,!0),this._trigger("change",e,this._uiHash()),this.containers[p]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[p],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[p]._trigger("over",e,this._uiHash(this)),this.containers[p].containerCache.over=1}},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),n[0].style.width&&!i.forceHelperSize||n.width(this.currentItem.width()),n[0].style.height&&!i.forceHelperSize||n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),Array.isArray(t)&&(t={left:+t[0],top:+t[1]||0}),"left"in t&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),"document"!==s.containment&&"window"!==s.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(e=t(s.containment)[0],i=t(s.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(e){var i,n,s=this.options,r=e.pageX,a=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)"auto"!==this._storedCSS[i]&&"static"!==this._storedCSS[i]||(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}for(this.fromOutside&&!e&&n.push(function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))}),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push(function(t){this._trigger("update",t,this._uiHash())}),this!==this.currentContainer&&(e||(n.push(function(t){this._trigger("remove",t,this._uiHash())}),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)}()},841:()=>{!function(t){function e(t){this.num=0,this.timer=t>0&&t}function i(i){if(t.isPlainObject(i.data)||t.isArray(i.data)||"string"==typeof i.data){var s,r=i.handler,a={timer:700,combo:[]};"string"==typeof(s=i.data)?a.combo=[s]:t.isArray(s)?a.combo=s:t.extend(a,s),a.combo=t.map(a.combo,function(t){return t.toLowerCase()}),i.index=new e(a.timer),i.handler=function(e){if(this===e.target||!/textarea|select|input/i.test(e.target.nodeName)&&"true"!==t(e.target).prop("contenteditable")){var s="keypress"!==e.type?t.hotkeys.specialKeys[e.which]:null,o=String.fromCharCode(e.which).toLowerCase(),l="",c={};e.altKey&&"alt"!==s&&(l+="alt+"),e.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),e.metaKey&&!e.ctrlKey&&"meta"!==s&&(l+="meta+"),e.shiftKey&&"shift"!==s&&(l+="shift+"),e.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+t.hotkeys.shiftNums[s||o]]=!0);var u=i.index,d=a.combo;if(n(d[u.val()],c)){if(u.val()===d.length-1)return u.reset(),r.apply(this,arguments);u.inc()}else u.reset(),n(d[0],c)&&u.inc()}}}}function n(t,e){for(var i=t.split(" "),n=0,s=i.length;n<s;n++)if(e[i[n]])return!0;return!1}t.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},t.each(t.hotkeys.keypressKeys,function(e,i){t.hotkeys.shiftNums[i]=i}),e.prototype.val=function(){return this.num},e.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(t.proxy(e.prototype.reset,this),this.timer)),this.num++},e.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},t.each(["keydown","keyup","keypress"],function(){t.event.special[this]={add:i}})}(jQuery)},217:()=>{var t;void 0===(t=jQuery).fn.each2&&t.extend(t.fn,{each2:function(e){for(var i=t([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==e.call(i[0],n,i););return this}}),function(t,e){"use strict";if(window.Select2===e){var i,n,s,r,a,o,l,c,u={x:0,y:0},d={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(t){switch(t=t.which?t.which:t){case d.LEFT:case d.RIGHT:case d.UP:case d.DOWN:return!0}return!1},isControl:function(t){switch(t.which){case d.SHIFT:case d.CTRL:case d.ALT:return!0}return!!t.metaKey},isFunctionKey:function(t){return(t=t.which?t.which:t)>=112&&t<=123}},h={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};o=t(document),c=1,r=function(){return c++},i=N(Object,{bind:function(t){var e=this;return function(){t.apply(e,arguments)}},init:function(i){var n,s,a=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==e&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=t(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=t("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+r()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=t(document.body),x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(D(i.containerCss,this.opts.element)),this.container.addClass(D(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",_),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",_),this.results=n=this.container.find(a),this.search=s=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",_),this.results.on("mousemove",function(i){var n=u;n!==e&&n.x===i.pageX&&n.y===i.pageY||t(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",a,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",a,this.bind(function(t){this._touchEvent=!0,this.highlightUnderEvent(t)})),this.dropdown.on("touchmove",a,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",a,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(t){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),function(t,e){var i=w(t,function(t){e.trigger("scroll-debounced",t)});e.on("scroll",function(t){g(t.target,e.get())>=0&&i(t)})}(80,this.results),this.dropdown.on("scroll-debounced",a,this.bind(this.loadMoreIfNeeded)),t(this.container).on("change",".select2-input",function(t){t.stopPropagation()}),t(this.dropdown).on("change",".select2-input",function(t){t.stopPropagation()}),t.fn.mousewheel&&n.mousewheel(function(t,e,i,s){var r=n.scrollTop();s>0&&r-s<=0?(n.scrollTop(0),_(t)):s<0&&n.get(0).scrollHeight-n.scrollTop()+s<=n.height()&&(n.scrollTop(n.get(0).scrollHeight-n.height()),_(t))}),y(s),s.on("keyup-change input paste",this.bind(this.updateResults)),s.on("focus",function(){s.addClass("select2-focused")}),s.on("blur",function(){s.removeClass("select2-focused")}),this.dropdown.on("mouseup",a,this.bind(function(e){t(e.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(e),this.selectHighlighted(e))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(t){t.stopPropagation()}),this.lastSearchTerm=e,t.isFunction(this.opts.initSelection)&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var o=i.element.prop("disabled");o===e&&(o=!1),this.enable(!o);var c=i.element.prop("readonly");c===e&&(c=!1),this.readonly(c),l=l||function(){var e=t("<div class='select2-measure-scrollbar'></div>");e.appendTo(document.body);var i={width:e.width()-e[0].clientWidth,height:e.height()-e[0].clientHeight};return e.remove(),i}(),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var t=this.opts.element,i=t.data("select2"),n=this;this.close(),t.length&&t[0].detachEvent&&n._sync&&t.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,i!==e&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),t.removeData("select2").off(".select2"),t.is("input[type='hidden']")?t.css("display",""):(t.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?t.attr({tabindex:this.elementTabIndex}):t.removeAttr("tabindex"),t.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(t){return t.is("option")?{id:t.prop("value"),text:t.text(),element:t.get(),css:t.attr("class"),disabled:t.prop("disabled"),locked:m(t.attr("locked"),"locked")||m(t.data("locked"),!0)}:t.is("optgroup")?{text:t.attr("label"),children:[],element:t.get(),css:t.attr("class")}:void 0},prepareOpts:function(i){var n,s,a,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&t.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw new Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i.debug=i.debug||t.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");t.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&t.isFunction(i.ajax.processResults)&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;t.isFunction(u.noMatches)&&(i.formatNoMatches=u.noMatches),t.isFunction(u.searching)&&(i.formatSearching=u.searching),t.isFunction(u.inputTooShort)&&(i.formatInputTooShort=u.inputTooShort),t.isFunction(u.inputTooLong)&&(i.formatInputTooLong=u.inputTooLong),t.isFunction(u.loadingMore)&&(i.formatLoading=u.loadingMore),t.isFunction(u.maximumSelected)&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=t.extend({},{populateResults:function(n,s,a){var o,c=this.opts.id,u=this.liveRegion;o=function(n,s,d){var h,p,f,g,m,v,b,y,w,_,x=[];for(h=0,p=(n=i.sortResults(n,s,a)).length;h<p;h+=1)g=!(m=!0===(f=n[h]).disabled)&&c(f)!==e,v=f.children&&f.children.length>0,(b=t("<li></li>")).addClass("select2-results-dept-"+d),b.addClass("select2-result"),b.addClass(g?"select2-result-selectable":"select2-result-unselectable"),m&&b.addClass("select2-disabled"),v&&b.addClass("select2-result-with-children"),b.addClass(l.opts.formatResultCssClass(f)),b.attr("role","presentation"),(y=t(document.createElement("div"))).addClass("select2-result-label"),y.attr("id","select2-result-label-"+r()),y.attr("role","option"),(_=i.formatResult(f,y,a,l.opts.escapeMarkup))!==e&&(y.html(_),b.append(y)),v&&((w=t("<ul></ul>")).addClass("select2-result-sub"),o(f.children,w,d+1),b.append(w)),b.data("select2-data",f),x.push(b[0]);s.append(x),u.text(i.formatMatches(n.length))},o(s,n,0)}},t.fn.select2.defaults,i)).id&&(a=i.id,i.id=function(t){return t[a]}),t.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind(function(t){var i,s,r,a={results:[],more:!1},o=t.term;r=function(e,i){var n;e.is("option")?t.matcher(o,e.text(),e)&&i.push(l.optionToData(e)):e.is("optgroup")&&(n=l.optionToData(e),e.children().each2(function(t,e){r(e,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==e&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(t,e){r(e,a.results)}),t.callback(a)}),i.id=function(t){return t.id}):"query"in i||("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=k.call(i.element,i.ajax)):"data"in i?i.query=E(i.data):"tags"in i&&(i.query=A(i.tags),i.createSearchChoice===e&&(i.createSearchChoice=function(e){return{id:t.trim(e),text:t.trim(e)}}),i.initSelection===e&&(i.initSelection=function(e,n){var s=[];t(v(e.val(),i.separator,i.transformVal)).each(function(){var e={id:this,text:this},n=i.tags;t.isFunction(n)&&(n=n()),t(n).each(function(){if(m(this.id,e.id))return e=this,!1}),s.push(e)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.unshift(e)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(t,e){t.push(e)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(t){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var t=n.prop("disabled");t===e&&(t=!1),this.enable(!t);var i=n.prop("readonly");i===e&&(i=!1),this.readonly(i),this.container&&(x(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(D(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(x(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(D(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)!==e&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(e){t.each(e,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(e){var i=t.Event("select2-selecting",{val:this.id(e),object:e,choice:e});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(e){e=e||{},e=t.extend({},e,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(e),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var t=this._enabled&&!this._readonly,e=!t;return t!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",e),this.close(),this.enabledInterface=t,!0)},enable:function(t){t===e&&(t=!0),this._enabled!==t&&(this._enabled=t,this.opts.element.prop("disabled",!t),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(t){t===e&&(t=!1),this._readonly!==t&&(this._readonly=t,this.opts.element.prop("readonly",t),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var e,i,n,s,r,a=this.dropdown,o=this.container,c=o.offset(),u=o.outerHeight(!1),d=o.outerWidth(!1),h=a.outerHeight(!1),p=t(window),f=p.width(),g=p.height(),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,w=b+h<=v,_=c.top-h>=p.scrollTop(),x=a.outerWidth(!1);a.hasClass("select2-drop-above")?(i=!0,!_&&w&&(n=!0,i=!1)):(i=!1,!w&&_&&(n=!0,i=!0)),n&&(a.hide(),c=this.container.offset(),u=this.container.outerHeight(!1),d=this.container.outerWidth(!1),h=a.outerHeight(!1),m=p.scrollLeft()+f,v=p.scrollTop()+g,b=c.top+u,y=c.left,x=a.outerWidth(!1),a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=t(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(x=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:l.width))>d?d=x:x=d,h=a.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(b-=(e=this.body.offset()).top,y-=e.left),!(y+x<=m)&&c.left+m+o.outerWidth(!1)>x&&(y=c.left+this.container.outerWidth(!1)-x),s={left:y,width:d},i?(this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above"),h=a.outerHeight(!1),s.top=c.top-h,s.bottom="auto"):(s.top=b,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=t.extend(s,D(this.opts.dropdownCss,this.opts.element)),a.css(s)},shouldOpen:function(){var e;return!this.opened()&&(!1!==this._enabled&&!0!==this._readonly&&(e=t.Event("select2-opening"),this.opts.element.trigger(e),!e.isDefaultPrevented()))},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),o.on("mousemove.select2Event",function(t){u.x=t.pageX,u.y=t.pageY}),!0)},opening:function(){var e,i=this.containerEventName,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(e=t("#select2-drop-mask")).length&&((e=t(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),e.hide(),e.appendTo(this.body),e.on("mousedown touchstart click",function(i){p(e);var n,s=t("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==e[0]&&this.dropdown.before(e),t("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),e.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){t(this).on(s+" "+n+" "+r,function(t){a.opened()&&a.positionDropdown()})})},close:function(){if(this.opened()){var e=this.containerEventName,i="scroll."+e,n="resize."+e,s="orientationchange."+e;this.container.parents().add(window).each(function(){t(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),t("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),o.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(t.Event("select2-close"))}},externalSearch:function(t){this.open(),this.search.val(t),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var t=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return t!==e&&(this.search.val(t),this.search.select(),!0)},getMaximumSelectionSize:function(){return D(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var e,i,n,s,r,a,o,l,c=this.results;(i=this.highlight())<0||(0!=i?(e=this.findHighlightableChoices().find(".select2-result-label"),s=(l=((n=t(e[i])).offset()||{}).top||0)+n.outerHeight(!0),i===e.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-r)),(a=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+a)):c.scrollTop(0))},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(e){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=t(i[n+=e]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(e){var i,n,s=this.findHighlightableChoices();if(0===arguments.length)return g(s.filter(".select2-highlighted")[0],s.get());e>=s.length&&(e=s.length-1),e<0&&(e=0),this.removeHighlight(),(i=t(s[e])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(e){var i=t(e.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var t=this.results,e=t.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==e.length&&e.offset().top-t.offset().top-t.height()<=this.opts.loadMorePadding&&(e.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind(function(a){n.opened()&&(n.opts.populateResults.call(this,t,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(e.detach().appendTo(t).html(n.opts.escapeMarkup(D(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):e.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))})}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),d=t.data(this.container,"select2-last-term");if((!0===i||!d||!m(u,d))&&(t.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var h=this.getMaximumSelectionSize();if(!(h>=1&&(n=this.data(),t.isArray(n)&&n.length>=h&&S(l.formatSelectionTooBig,"formatSelectionTooBig"))))return a.val().length<l.minimumInputLength?(S(l.formatInputTooShort,"formatInputTooShort")?f("<li class='select2-no-results'>"+D(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):f(""),void(i&&this.showSearch&&this.showSearch(!0))):void(l.maximumInputLength&&a.val().length>l.maximumInputLength?S(l.formatInputTooLong,"formatInputTooLong")?f("<li class='select2-no-results'>"+D(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):f(""):(l.formatSearching&&0===this.findHighlightableChoices().length&&f("<li class='select2-searching'>"+D(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),(s=this.tokenize())!=e&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(r==this.queryCount)if(this.opened())if(n.hasError!==e&&S(l.formatAjaxError,"formatAjaxError"))f("<li class='select2-ajax-error'>"+D(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");else{if(this.context=n.context===e?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&(s=this.opts.createSearchChoice.call(c,a.val(),n.results))!==e&&null!==s&&c.id(s)!==e&&null!==c.id(s)&&0===t(n.results).filter(function(){return m(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&S(l.formatNoMatches,"formatNoMatches"))return f("<li class='select2-no-results'>"+D(l.formatNoMatches,l.element,a.val())+"</li>"),void(this.showSearch&&this.showSearch(a.val()));o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&S(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(D(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),p(),this.opts.element.trigger({type:"select2-loaded",items:n})}else this.search.removeClass("select2-active")})})));f("<li class='select2-selection-limit'>"+D(l.formatSelectionTooBig,l.element,h)+"</li>")}function p(){a.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function f(t){o.html(t),p()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var t;(t=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var e,i=t[0],n=t.val().length;t.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((e=i.createTextRange()).collapse(!1),e.select()))},0)},selectHighlighted:function(t){if(this._touchMoved)this.clearTouchMoved();else{var e=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(e),this.onSelect(i,t)):t&&t.noFocus&&this.close()}},getPlaceholder:function(){var t;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((t=this.getPlaceholderOption())!==e?t.text():e)},getPlaceholderOption:function(){if(this.select){var i=this.select.children("option").first();if(this.opts.placeholderOption!==e)return"first"===this.opts.placeholderOption&&i||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(""===t.trim(i.text())&&""===i.val())return i}},initContainerWidth:function(){var e=function(){var e,i,n,s,r;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if("string"==typeof(e=this.opts.element.attr("style")))for(s=0,r=(i=e.split(";")).length;s<r;s+=1)if(null!==(n=i[s].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&n.length>=1)return n[1];return"resolve"===this.opts.width?(e=this.opts.element.css("width")).indexOf("%")>0?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}return t.isFunction(this.opts.width)?this.opts.width():this.opts.width}.call(this);null!==e&&this.container.css("width",e)}}),n=N(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container"}).html(["<a role='button' class='select2-choice' tabindex='-1'>"," <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr>"," <span class='select2-arrow' role='presentation'><b role='presentation'></b></span>","</a>","<label for='' class='select2-offscreen'></label>","<input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' />","<div class='select2-drop select2-display-none'>"," <div class='select2-search'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true'"," aria-autocomplete='list' />"," </div>"," <ul class='select2-results' role='listbox'>"," </ul>","</div>"].join(""))},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var e,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(e=this.search.get(0)).createTextRange?((i=e.createTextRange()).collapse(!1),i.select()):e.setSelectionRange&&(n=this.search.val().length,e.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){t("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var e,i,n=this.container,s=this.dropdown,a=r();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=e=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),e.find(".select2-chosen").attr("id","select2-chosen-"+a),this.focusser.attr("aria-labelledby","select2-chosen-"+a),this.results.attr("id","select2-results-"+a),this.search.attr("aria-owns","select2-results-"+a),this.focusser.attr("id","s2id_autogen"+a),i=t("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(t("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&229!=t.keyCode)if(t.which!==d.PAGE_UP&&t.which!==d.PAGE_DOWN)switch(t.which){case d.UP:case d.DOWN:return this.moveHighlight(t.which===d.UP?-1:1),void _(t);case d.ENTER:return this.selectHighlighted(),void _(t);case d.TAB:return void this.selectHighlighted({noFocus:!0});case d.ESC:return this.cancel(t),void _(t)}else _(t)})),this.search.on("blur",this.bind(function(t){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(t){if(this.isInterfaceEnabled()&&t.which!==d.TAB&&!d.isControl(t)&&!d.isFunctionKey(t)&&t.which!==d.ESC){if(!1!==this.opts.openOnEnter||t.which!==d.ENTER){if(t.which==d.DOWN||t.which==d.UP||t.which==d.ENTER&&this.opts.openOnEnter){if(t.altKey||t.ctrlKey||t.shiftKey||t.metaKey)return;return this.open(),void _(t)}return t.which==d.DELETE||t.which==d.BACKSPACE?(this.opts.allowClear&&this.clear(),void _(t)):void 0}_(t)}})),y(this.focusser),this.focusser.on("keyup-change input",this.bind(function(t){if(this.opts.minimumResultsForSearch>=0){if(t.stopPropagation(),this.opened())return;this.open()}})),e.on("mousedown touchstart","abbr",this.bind(function(t){var e;this.isInterfaceEnabled()&&(this.clear(),(e=t).preventDefault(),e.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),e.on("mousedown touchstart",this.bind(function(i){p(e),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),_(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),e.on("focus",this.bind(function(t){_(t)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(t.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(e){var i=this.selection.data("select2-data");if(i){var n=t.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==e&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.setPlaceholder(),t.lastSearchTerm=t.search.val())})}},isPlaceholderOptionSelected:function(){var t;return this.getPlaceholder()!==e&&((t=this.getPlaceholderOption())!==e&&t.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===e||null===this.opts.element.val())},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=t.find("option").filter(function(){return this.selected&&!this.disabled});e(i.optionToData(n))}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=i.val(),r=null;e.query({matcher:function(t,i,n){var a=m(s,e.id(n));return a&&(r=n),a},callback:t.isFunction(n)?function(){n(r)}:t.noop})}),e},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===e?e:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var t=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===e)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(t)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,e,i){var n=0,s=this;if(this.findHighlightableChoices().each2(function(t,e){if(m(s.id(e.data("select2-data")),s.opts.element.val()))return n=t,!1}),!1!==i&&(!0===e&&n>=0?this.highlight(n):this.highlight(0)),!0===e){var r=this.opts.minimumResultsForSearch;r>=0&&this.showSearch(I(t.results)>=r)}},showSearch:function(e){this.showSearchInput!==e&&(this.showSearchInput=e,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!e),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!e),t(this.dropdown,this.container).toggleClass("select2-with-searchbox",e))},onSelect:function(t,e){if(this.triggerSelect(t)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(t)),this.updateSelection(t),this.opts.element.trigger({type:"select2-selected",val:this.id(t),choice:t}),this.lastSearchTerm=this.search.val(),this.close(),e&&e.noFocus||!this.opts.shouldFocusInput(this)||this.focusser.focus(),m(i,this.id(t))||this.triggerChange({added:t,removed:n})}},updateSelection:function(t){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",t),s.empty(),null!==t&&(i=this.opts.formatSelection(t,s,this.opts.escapeMarkup)),i!==e&&s.append(i),(n=this.opts.formatSelectionCssClass(t,s))!==e&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==e&&this.container.addClass("select2-allowclear")},val:function(){var t,i=!1,n=null,s=this,r=this.data();if(0===arguments.length)return this.opts.element.val();if(t=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(t).find("option").filter(function(){return this.selected}).each2(function(t,e){return n=s.optionToData(e),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!t&&0!==t)return void this.clear(i);if(this.opts.initSelection===e)throw new Error("cannot call val() if initSelection() is not defined");this.opts.element.val(t),this.opts.initSelection(this.opts.element,function(t){s.opts.element.val(t?s.id(t):""),s.updateSelection(t),s.setPlaceholder(),i&&s.triggerChange({added:t,removed:r})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(t){var i,n=!1;if(0===arguments.length)return(i=this.selection.data("select2-data"))==e&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),t?(i=this.data(),this.opts.element.val(t?this.id(t):""),this.updateSelection(t),n&&this.triggerChange({added:t,removed:i})):this.clear(n)}}),s=N(i,{createContainer:function(){return t(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html(["<ul class='select2-choices'>"," <li class='select2-search-field'>"," <label for='' class='select2-offscreen'></label>"," <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'>"," </li>","</ul>","<div class='select2-drop select2-drop-multi select2-display-none'>"," <ul class='select2-results'>"," </ul>","</div>"].join(""))},prepareOpts:function(){var e=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===e.element.get(0).tagName.toLowerCase()?e.initSelection=function(t,e){var n=[];t.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(t,e){n.push(i.optionToData(e))}),e(n)}:"data"in e&&(e.initSelection=e.initSelection||function(i,n){var s=v(i.val(),e.separator,e.transformVal),r=[];e.query({matcher:function(i,n,a){var o=t.grep(s,function(t){return m(t,e.id(a))}).length;return o&&r.push(a),o},callback:t.isFunction(n)?function(){for(var t=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(m(a,e.id(l))){t.push(l),r.splice(o,1);break}}n(t)}:t.noop})}),e},selectChoice:function(t){var e=this.container.find(".select2-search-choice-focus");e.length&&t&&t[0]==e[0]||(e.length&&this.opts.element.trigger("choice-deselected",e),e.removeClass("select2-search-choice-focus"),t&&t.length&&(this.close(),t.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",t)))},destroy:function(){t("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var e,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=e=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(e){n.search[0].focus(),n.selectChoice(t(this))}),this.search.attr("id","s2id_autogen"+r()),this.search.prev().text(t("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=e.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(e){var i=0,n=0;if("selectionStart"in(e=t(e)[0]))i=e.selectionStart,n=e.selectionEnd-i;else if("selection"in document){e.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-e.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==d.LEFT||i.which==d.RIGHT||i.which==d.BACKSPACE||i.which==d.DELETE||i.which==d.ENTER)){var o=n;return i.which==d.LEFT&&s.length?o=s:i.which==d.RIGHT?o=r.length?r:null:i.which===d.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:r):i.which==d.DELETE?this.unselect(n.first())&&(this.search.width(10),o=r.length?r:null):i.which==d.ENTER&&(o=null),this.selectChoice(o),_(i),void(o&&o.length||this.open())}if((i.which===d.BACKSPACE&&1==this.keydowns||i.which==d.LEFT)&&0==a.offset&&!a.length)return this.selectChoice(e.find(".select2-search-choice:not(.select2-locked)").last()),void _(i);if(this.selectChoice(null),this.opened())switch(i.which){case d.UP:case d.DOWN:return this.moveHighlight(i.which===d.UP?-1:1),void _(i);case d.ENTER:return this.selectHighlighted(),void _(i);case d.TAB:return this.selectHighlighted({noFocus:!0}),void this.close();case d.ESC:return this.cancel(i),void _(i)}if(i.which!==d.TAB&&!d.isControl(i)&&!d.isFunctionKey(i)&&i.which!==d.BACKSPACE&&i.which!==d.ESC){if(i.which===d.ENTER){if(!1===this.opts.openOnEnter)return;if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),i.which!==d.PAGE_UP&&i.which!==d.PAGE_DOWN||_(i),i.which===d.ENTER&&_(i)}}})),this.search.on("keyup",this.bind(function(t){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(e){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),e.stopImmediatePropagation(),this.opts.element.trigger(t.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(e){this.isInterfaceEnabled()&&(t(e.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.open(),this.focusSearch(),e.preventDefault()))})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(t.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var t=this;this.opts.initSelection.call(null,this.opts.element,function(i){i!==e&&null!==i&&(t.updateSelection(i),t.close(),t.clearSearch())})}},clearSearch:function(){var t=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(t).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(t.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(e){var i={},n=[],s=this;t(e).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var t=this.search.val();null!=(t=this.opts.tokenizer.call(this,t,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(t),t.length>0&&this.open())},onSelect:function(t,e){this.triggerSelect(t)&&""!==t.text&&(this.addSelectedChoice(t),this.opts.element.trigger({type:"selected",val:this.id(t),choice:t}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),!this.select&&this.opts.closeOnSelect||this.postprocessResults(t,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:t}),e&&e.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(e){var i=this.getVal(),n=this;t(e).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,r=!i.locked,a=t("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=t("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i);return(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))!=e&&l.find("div").replaceWith(t("<div></div>").html(n)),(s=this.opts.formatSelectionCssClass(i,l.find("div")))!=e&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",_).on("click dblclick",this.bind(function(e){this.isInterfaceEnabled()&&(this.unselect(t(e.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),_(e),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(e){var i,n,s=this.getVal();if(0===(e=e.closest(".select2-search-choice")).length)throw"Invalid argument: "+e+". Must be .select2-search-choice";if(i=e.data("select2-data")){var r=t.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=g(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return e.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(t,e,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2(function(t,e){g(a.id(e.data("select2-data")),n)>=0&&(e.addClass("select2-selected"),e.find(".select2-result-selectable").addClass("select2-selected"))}),r.each2(function(t,e){e.is(".select2-result-selectable")||0!==e.find(".select2-result-selectable:not(.select2-selected)").length||e.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!t||t&&!t.more&&0===this.results.find(".select2-no-results").length)&&S(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+D(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-b(this.search)},resizeSearch:function(){var e,i,n,s,r=b(this.search);e=function(e){if(!a){var i=e[0].currentStyle||window.getComputedStyle(e[0],null);(a=t(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),t(document.body).append(a)}return a.text(e.val()),a.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<e&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=e),this.search.width(Math.floor(s))},getVal:function(){var t;return this.select?null===(t=this.select.val())?[]:t:v(t=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(e){if(this.select)this.select.val(e);else{var i=[],n={};t(e).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(t,e){e=e.slice(0),t=t.slice(0);for(var i=0;i<e.length;i++)for(var n=0;n<t.length;n++)if(m(this.opts.id(e[i]),this.opts.id(t[n]))){e.splice(i,1),i--,t.splice(n,1);break}return{added:e,removed:t}},val:function(i,n){var s,r=this;if(0===arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i)return this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),void(n&&this.triggerChange({added:this.data(),removed:s}));if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===e)throw new Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(e){var i=t.map(e,r.id);r.setVal(i),r.updateSelection(e),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw new Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var e=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){e.push(i.opts.id(t(this).data("select2-data")))}),this.setVal(e),this.triggerChange()},data:function(e,i){var n,s,r=this;if(0===arguments.length)return this.selection.children(".select2-search-choice").map(function(){return t(this).data("select2-data")}).get();s=this.data(),e||(e=[]),n=t.map(e,function(t){return r.opts.id(t)}),this.setVal(n),this.updateSelection(e),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),t.fn.select2=function(){var i,n,s,r,a,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],d={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:t.extend({},o[0])).element=t(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(n=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else{if("string"!=typeof o[0])throw"Invalid arguments to select2 plugin: "+o;if(g(o[0],l)<0)throw"Unknown method: "+o[0];if(r=e,(n=t(this).data("select2"))===e)return;if("container"===(s=o[0])?r=n.container:"dropdown"===s?r=n.dropdown:(d[s]&&(s=d[s]),r=n[s].apply(n,o.slice(1))),g(o[0],c)>=0||g(o[0],u)>=0&&1==o.length)return!1}}),r===e?this:r},t.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(t,e,i,n){var s=[];return C(this.text(t),i.term,s,n),s.join("")},transformVal:function(e){return t.trim(e)},formatSelection:function(t,i,n){return t?n(this.text(t)):e},sortResults:function(t,e,i){return t},formatResultCssClass:function(t){return t.css},formatSelectionCssClass:function(t,i){return e},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(t){return t==e?null:t.id},text:function(e){return e&&this.data&&this.data.text?t.isFunction(this.data.text)?this.data.text(e):e[this.data.text]:e.text},matcher:function(t,e){return f(""+e).toUpperCase().indexOf(f(""+t).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(t,i,n,s){var r,a,o,l,c,u=t,d=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return e;for(;;){for(a=-1,o=0,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=t.indexOf(c))>=0));o++);if(a<0)break;if(r=t.substring(0,a),t=t.substring(a+c.length),r.length>0&&(r=s.createSearchChoice.call(this,r,i))!==e&&null!==r&&s.id(r)!==e&&null!==s.id(r)){for(d=!1,o=0,l=i.length;o<l;o++)if(m(s.id(r),s.id(i[o]))){d=!0;break}d||n(r)}}return u!==t?t:void 0},escapeMarkup:T,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(t){return t},adaptDropdownCssClass:function(t){return null},nextSearchTerm:function(t,i){return e},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(t){return!("ontouchstart"in window||navigator.msMaxTouchPoints>0)||!(t.opts.minimumResultsForSearch<0)}},t.fn.select2.locales=[],t.fn.select2.locales.en={formatMatches:function(t){return 1===t?"One result is available, press enter to select it.":t+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(t,e,i){return"Loading failed"},formatInputTooShort:function(t,e){var i=e-t.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(t,e){var i=t.length-e;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(t){return"You can only select "+t+" item"+(1==t?"":"s")},formatLoadMore:function(t){return"Loading more results…"},formatSearching:function(){return"Searching…"}},t.extend(t.fn.select2.defaults,t.fn.select2.locales.en),t.fn.select2.ajaxDefaults={transport:t.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:k,local:E,tags:A},util:{debounce:w,markMatch:C,escapeMarkup:T,stripDiacritics:f},class:{abstract:i,single:n,multi:s}}}function p(e){var i=t(document.createTextNode(""));e.before(i),i.before(e),i.remove()}function f(t){return t.replace(/[^\u0000-\u007E]/g,function(t){return h[t]||t})}function g(t,e){for(var i=0,n=e.length;i<n;i+=1)if(m(t,e[i]))return i;return-1}function m(t,i){return t===i||t!==e&&i!==e&&(null!==t&&null!==i&&(t.constructor===String?t+""==i+"":i.constructor===String&&i+""==t+""))}function v(t,e,i){var n,s,r;if(null===t||t.length<1)return[];for(s=0,r=(n=t.split(e)).length;s<r;s+=1)n[s]=i(n[s]);return n}function b(t){return t.outerWidth(!1)-t.width()}function y(i){var n="keyup-change-value";i.on("keydown",function(){t.data(i,n)===e&&t.data(i,n,i.val())}),i.on("keyup",function(){var s=t.data(i,n);s!==e&&i.val()!==s&&(t.removeData(i,n),i.trigger("keyup-change"))})}function w(t,i,n){var s;return n=n||e,function(){var e=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,e)},t)}}function _(t){t.preventDefault(),t.stopPropagation()}function x(e,i,n){var s,r,a=[];(s=t.trim(e.attr("class")))&&t((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)}),(s=t.trim(i.attr("class")))&&t((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)}),e.attr("class",a.join(" "))}function C(t,e,i,n){var s=f(t.toUpperCase()).indexOf(f(e.toUpperCase())),r=e.length;s<0?i.push(n(t)):(i.push(n(t.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(t.substring(s,s+r))),i.push("</span>"),i.push(n(t.substring(s+r,t.length))))}function T(t){var e={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(t).replace(/[&<>"'\/\\]/g,function(t){return e[t]})}function k(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,r=a,c=i.transport||t.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||e,dataType:i.dataType||"json"},d=t.extend({},t.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&"function"==typeof s.abort&&s.abort(),i.params&&(t.isFunction(i.params)?t.extend(d,i.params.call(o)):t.extend(d,i.params)),t.extend(d,{url:r,dataType:i.dataType,data:n,success:function(t){var e=i.results(t,l.page,l);l.callback(e)},error:function(t,e,i){var n={hasError:!0,jqXHR:t,textStatus:e,errorThrown:i};l.callback(n)}}),s=c.call(o,d)},r)}}function E(e){var i,n,s=e,r=function(t){return""+t.text};t.isArray(s)&&(s={results:n=s}),!1===t.isFunction(s)&&(n=s,s=function(){return n});var a=s();return a.text&&(r=a.text,t.isFunction(r)||(i=a.text,r=function(t){return t[i]})),function(e){var i,n=e.term,a={results:[]};""!==n?(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],t(s.children).each2(function(t,e){i(e,o.children)}),(o.children.length||e.matcher(n,r(o),s))&&a.push(o)}else e.matcher(n,r(s),s)&&a.push(s)},t(s().results).each2(function(t,e){i(e,a.results)}),e.callback(a)):e.callback(s())}}function A(i){var n=t.isFunction(i);return function(s){var r=s.term,a={results:[]},o=n?i(s):i;t.isArray(o)&&(t(o).each(function(){var t=this.text!==e,i=t?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(t?this:{id:this,text:this})}),s.callback(a))}}function S(e,i){if(t.isFunction(e))return!0;if(!e)return!1;if("string"==typeof e)return!0;throw new Error(i+" must be a string, function, or falsy value")}function D(e,i){if(t.isFunction(e)){var n=Array.prototype.slice.call(arguments,2);return e.apply(i,n)}return e}function I(e){var i=0;return t.each(e,function(t,e){e.children?i+=I(e.children):i++}),i}function M(){var e=this;t.each(arguments,function(t,i){e[i].remove(),e[i]=null})}function N(e,i){var n=function(){};return(n.prototype=new e).constructor=n,n.prototype.parent=e.prototype,n.prototype=t.extend(n.prototype,i),n}}(jQuery)},2:(t,e,i)=>{var n;!function(){"use strict";var s=window.DocumentFragment,r=window.HTMLElement.prototype,a=r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;function o(t,e){if(t.__SKATE_TEMPLATE_HTML_DATA)return t.__SKATE_TEMPLATE_HTML_DATA[e]}function l(t,e,i){return t.__SKATE_TEMPLATE_HTML_DATA||(t.__SKATE_TEMPLATE_HTML_DATA={}),t.__SKATE_TEMPLATE_HTML_DATA[e]=i,t}function c(t){var e=t.match(/\s*<([^\s>]+)/),i=document.createElement(e&&{caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"}[e[1]]||"div");return i.innerHTML=t,u(i.childNodes)}function u(t){for(var e=document.createDocumentFragment();t&&t.length;)e.appendChild(t[0]);return e}function d(t,e){for(var i=[],n=t.nextSibling;n!==e;)i.push(n),n=n.nextSibling;return i}function h(t,e){if(e){for(var i=t.querySelectorAll(e),n=i.length,s=[],r=0;r<n;r++){var a=i[r];a.parentNode===t&&s.push(a)}return s}return[].slice.call(t.childNodes)||[]}function p(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++)t.container.insertBefore(e[n],t.endNode);t.isDefault=!0}function f(t){for(var e=t.defaultNodes,i=e.length,n=0;n<i;n++){var s=e[n];s.parentNode.removeChild(s)}t.isDefault=!1}function g(t,e){return{get:function(){var i=t[e];return"function"==typeof i?i.bind(t):i},set:function(i){t[e]=i}}}function m(t){var e,i=t.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{e=JSON.parse(i[2])}catch(e){throw new Error('Unable to parse content comment data: "'+e+'" in "\x3c!--'+t.textContent+'--\x3e".')}return{data:e||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}function v(t){var e,i,n=t.childNodes,s=n.length,r=[];for(e=0;e<s;e++){var a=n[e];if(8===a.nodeType){var o=m(a);if(o)if("open"===o.type){if(i)throw new Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i={container:a.parentNode,contentNode:a,defaultNodes:o.data.defaultContent&&c(o.data.defaultContent).childNodes||[],isDefault:o.data.isDefault,selector:o.data.selector,startNode:a}}else if("close"===o.type){if(!i)throw new Error('Unmatched closing content placeholder: "'+a.textContent+'" in "'+a.parentNode.innerHTML+'".');i.endNode=a,r.push(i),i=void 0}}else r=r.concat(v(a))}return r}function b(){var t=[].slice.call(arguments).join("");return function(e){var i=u(e.childNodes);e.innerHTML=t,function(t){var e=t.getElementsByTagName("content");if(e&&e.length){for(var i=[];e.length;){var n=e[0],s=n.parentNode,r=n.getAttribute("select"),a=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:r,startNode:a}),s.replaceChild(o,n),s.insertBefore(a,o),a.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:r})+" "}l(t,"content",i)}}(e),i.childNodes.length&&b.wrap(e).appendChild(i)}}b.wrap=function(t){return o(t,"content")||l(t,"content",v(t)),function(t,e){var i={};for(var n in t)n in e?Object.defineProperty(i,n,e[n]):Object.defineProperty(i,n,g(t,n));return i}(t,(i=o(e=t,"content"),n=i.length,{childNodes:{get:function(){for(var t=[],e=0;e<n;e++){var s=i[e];s.isDefault||(t=t.concat(d(s.startNode,s.endNode)))}return t}},firstChild:{get:function(){var t=this.childNodes;return t.length&&t[0]||null}},innerHTML:{get:function(){for(var t="",e=this.childNodes,i=e.length,n=0;n<i;n++){var s=e[n];t+=s.outerHTML||s.textContent}return t},set:function(t){for(var e=c(t),s=0;s<n;s++){for(var r=i[s],a=d(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var u=h(e,r.selector),g=0;g<u.length;g++)r.container.insertBefore(u[g],r.endNode);u.length?f(r):p(r)}}},lastChild:{get:function(){for(var t=n-1;t>-1;t--)if(!i[t].isDefault){var e=this.childNodes;return e[e.length-1]}return null}},outerHTML:{get:function(){var t=this.tagName.toLowerCase(),e="<"+t,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];e+=" "+r.nodeName+'="'+r.nodeValue+'"'}return e+=">",(e+=this.innerHTML)+"</"+t+">"}},textContent:{get:function(){for(var t="",e=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)t+=e[n].textContent;return t},set:function(t){var e;this.innerHTML="";for(var s=0;s<n;s++){var r=i[s];if(!r.selector){e=r;break}}e&&(t?(f(e),e.container.insertBefore(document.createTextNode(t),e.endNode)):p(e))}},appendChild:{value:function(t){if(t instanceof s){var e=t.childNodes;return[].slice.call(e).forEach(function(t){this.appendChild(t)}.bind(this)),this}for(var r=0;r<n;r++){var o=i[r],l=o.selector;if(!l||t instanceof window.HTMLElement&&a.call(t,l)){f(o),o.endNode.parentNode.insertBefore(t,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(t,i){return"afterbegin"===t?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===t?this.appendChild(c(i)):e.insertAdjacentHTML(t,i),this}},insertBefore:{value:function(t,e){if(!e)return this.appendChild(t);if(t instanceof s){var r=t.childNodes;if(r)for(var o=r.length,l=0;l<o;l++)this.insertBefore(r[l],e);return this}var c=!1;t:for(var u=0;u<n;u++)for(var h=i[u],p=d(h.startNode,h.endNode),f=p.length,g=0;g<f;g++){var m=p[g];if(m===e&&(c=!0),c){var v=h.selector;if(!v||a.call(t,v)){m.parentNode.insertBefore(t,m);break t}}}if(!c)throw new Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return t}},removeChild:{value:function(t){for(var e=!1,s=0;s<n;s++){var r=i[s];if(r.container===t.parentNode){r.container.removeChild(t),e=!0;break}r.startNode.nextSibling===r.endNode&&p(r)}if(!e)throw new Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return t}},replaceChild:{value:function(t,e){for(var s=0;s<n;s++){var r=i[s];if(r.container===e.parentNode){r.container.replaceChild(t,e);break}}return this}}}));var e,i,n},window.skateTemplateHtml=b,void 0===(n=function(){return b}.call(e,i,e,t))||(t.exports=n),t.exports=b}()},221:(t,e)=>{var i,n,s;n=[e],i=function(t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var e="data-skate-ignore";t.ATTR_IGNORE=e;var i="a";t.TYPE_ATTRIBUTE=i;var n="c";t.TYPE_CLASSNAME=n;var s="t";t.TYPE_ELEMENT=s},void 0===(s="function"==typeof i?i.apply(e,n):i)||(t.exports=s)},894:(t,e)=>{var i,n,s;n=[e,t],i=function(t,e){"use strict";e.exports=function(t){var e=void 0===arguments[1]?"":arguments[1],i=t.__SKATE_DATA||(t.__SKATE_DATA={});return e&&(i[e]||(i[e]={}))||i}},void 0===(s="function"==typeof i?i.apply(e,n):i)||(t.exports=s)},310:(t,e,i)=>{var n,s,r;s=[e,t,i(108),i(740),i(580),i(590),i(537)],n=function(t,e,i,n,s,r,a){"use strict";var o,l=(o=i)&&o.__esModule?o.default:o,c=n.initElements,u=n.removeElements,d=a.getClosestIgnoredElement;function h(t){for(var e=t.length,i=0;i<e;i++){var n=t[i],s=n.addedNodes,r=n.removedNodes;s&&s.length&&!d(s[0].parentNode)&&c(s),r&&r.length&&u(r)}}function p(){var t=new window.MutationObserver(h);return t.observe(document,{childList:!0,subtree:!0}),t}e.exports={register:function(t){return t&&this.unregister(),l.observer||(l.observer=p()),this},unregister:function(){return l.observer&&(l.observer.disconnect(),l.observer=void 0),this}}},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},590:(t,e)=>{var i,n,s;n=[e],void 0===(s="function"==typeof(i=function(t){"use strict";var e=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=e||i,s=window.HTMLElement.prototype;function r(t,e){var i=t.childNodes;if(i)for(var n=i.length,s=0;s<n;s++){var a=i[s];e(a,t),r(a,e)}}function a(){var t=Object.getOwnPropertyDescriptor(s,"innerHTML"),e=function(){return t.get.call(this)};e._hasBeenEnhanced=!0,Object.defineProperty(s,"innerHTML",{get:e,set:function(e){r(this,function(t,e){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,e,null,null,null,null),t.dispatchEvent(i)}),t.set.call(this,e)}})}if(n){var o=Object.getOwnPropertyDescriptor(s,"innerHTML");o&&o.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),a())}})?i.apply(e,n):i)||(t.exports=s)},108:(t,e,i)=>{var n,s,r;s=[e,t,i(996)],n=function(t,e,i){"use strict";var n,s="__skate_"+(n=i,n&&n.__esModule?n.default:n).replace(/[^\w]/g,"_");window[s]||(window[s]={observer:void 0,registry:{}}),e.exports=window[s]},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},740:(t,e,i)=>{var n,s,r;s=[e,i(221),i(894),i(580),i(937),i(537)],n=function(t,e,i,n,s,r){"use strict";var a=function(t){return t&&t.__esModule?t.default:t};Object.defineProperty(t,"__esModule",{value:!0});var o=e.ATTR_IGNORE,l=a(i),c=a(s),u=r.camelCase,d=r.elementContains,h=r.hasOwn,p=r.inherit,f=r.objEach,g=window.Node,m=window.HTMLElement.prototype,v=m.matches||m.msMatchesSelector||m.webkitMatchesSelector||m.mozMatchesSelector||m.oMatchesSelector,b=!v.call(document.createElement("div"),"div"),y=function(t,e){if(b){var i=t.cloneNode();return document.createElement("div").appendChild(i),v.call(i,e)}return v.call(t,e)},w=/Edge/.test(navigator.userAgent);function _(t){var e=t.split(" ");return{name:e.shift(),delegate:e.join(" ")}}function x(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i)if(h(i,n)&&h(i[n],"value")&&!t.hasAttribute(n)){var s=i[n].value;s="function"==typeof s?s(t):s,t.setAttribute(n,s)}}function C(t,e,i){Object.defineProperty(t,i,{get:function(){return this.getAttribute(e)},set:function(t){void 0===t?this.removeAttribute(e):this.setAttribute(e,t)}})}function T(t,e){var i=e.attributes;if("object"==typeof i)for(var n in i){var s=u(n);h(i,n)&&!h(t,s)&&C(t,n,s)}}function k(t,e,i){var n,s,r,a=i.name,o=i.newValue;w&&(r=l(t,"cachedAttributeOldValues"));var c=w&&h(r,a)?r[a]:i.oldValue,u="string"==typeof o,d="string"==typeof c,p=e.attributes,f=p&&p[a];!d&&u?s="created":d&&u?s="updated":d&&!u&&(s="removed"),w&&("removed"===s?delete r[a]:r[a]=o),f&&"function"==typeof f[s]?n=f[s]:f&&"function"==typeof f.fallback?n=f.fallback:"function"==typeof f?n=f:"function"==typeof p&&(n=p),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(t,{type:s,name:a,newValue:o,oldValue:c})}function E(t,e){var i,n=t.attributes,s=[],r=n.length;for(i=0;i<r;i++)s.push(n[i]);for(i=0;i<r;i++){var a=s[i];k(t,e,{name:a.nodeName,newValue:a.value||a.nodeValue})}}function A(t,e){var i=t.attributes;e.attributes&&!c.isNativeCustomElement(e.id)&&new window.MutationObserver(function(n){n.forEach(function(n){var s=n.attributeName,r=i[s];k(t,e,{name:s,newValue:r&&(r.value||r.nodeValue),oldValue:n.oldValue})})}).observe(t,{attributes:!0,attributeOldValue:!0})}function S(t,e){function i(e,i){return function(n){if(!i)return e(t,n,t);for(var s=n.target;s&&s!==document&&s!==t.parentNode;){if(y(s,i))return e(t,n,s);s=s.parentNode}}}"object"==typeof e.events&&f(e.events,function(e,n){var s=_(n),r=!!s.delegate&&("blur"===s.name||"focus"===s.name);t.addEventListener(s.name,i(e,s.delegate),r)})}function D(t,e){var i=l(t,e.id);i.created||(i.created=!0,p(t,e.prototype,!0),e.template&&!t.hasAttribute(e.resolvedAttribute)&&e.template(t),t.removeAttribute(e.unresolvedAttribute),t.setAttribute(e.resolvedAttribute,""),S(t,e),A(t,e),T(t,e),x(t,e),E(t,e),e.created&&e.created(t))}function I(t,e){var i=l(t,e.id);i.attached||d(document,t)&&(i.attached=!0,e.attached&&e.attached(t),i.detached=!1)}function M(t,e){var i=l(t,e.id);i.detached||(i.detached=!0,e.detached&&e.detached(t),i.attached=!1)}function N(t,e){D(t,e),I(t,e)}function O(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE&&!i.attributes[o]){for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)N(i,n[r]);var a=i.childNodes||[];a.length&&O(a)}}}function L(t){for(var e=0;e<t.length;e++){var i=t[e];if(i.nodeType===g.ELEMENT_NODE){L(i.childNodes);for(var n=c.getForElement(i),s=n.length,r=0;r<s;r++)M(i,n[r])}}}t.initElements=O,t.removeElements=L,t.triggerAttached=I,t.triggerAttributeChanged=k,t.triggerCreated=D,t.triggerDetached=M},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},580:(t,e)=>{var i,n,s;n=[e],void 0===(s="function"==typeof(i=function(t){"use strict";!function(t){
75
- /**
76
- * @license
77
- * Copyright (c) 2014 The Polymer Project Authors. All rights reserved.
78
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
79
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
80
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
81
- * Code distributed by Google as part of the polymer project is also
82
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
83
- */
84
- "undefined"==typeof WeakMap&&function(){var t=Object.defineProperty,e=Date.now()%1e9,i=function(){this.name="__st"+(1e9*Math.random()>>>0)+e+++"__"};i.prototype={set:function(e,i){var n=e[this.name];return n&&n[0]===e?n[1]=i:t(e,this.name,{value:[e,i],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];return!(!e||e[0]!==t||(e[0]=e[1]=void 0,0))},has:function(t){var e=t[this.name];return!!e&&e[0]===t}},window.WeakMap=i}(),function(t){if(!t.JsMutationObserver){var e,i=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))e=setTimeout;else if(window.setImmediate)e=window.setImmediate;else{var n=[],s=String(Math.random());window.addEventListener("message",function(t){if(t.data===s){var e=n;n=[],e.forEach(function(t){t()})}}),e=function(t){n.push(t),window.postMessage(s,"*")}}var r,a,o=!1,l=[],c=0;g.prototype={observe:function(t,e){if(t=d(t),!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var n,s=i.get(t);s||i.set(t,s=[]);for(var r=0;r<s.length;r++)if(s[r].observer===this){(n=s[r]).removeListeners(),n.options=e;break}n||(n=new C(this,t,e),s.push(n),this.nodes_.push(t)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=i.get(t),n=0;n<e.length;n++){var s=e[n];if(s.observer===this){s.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},C.prototype={enqueue:function(t){var e=this.observer.records_,i=e.length;if(e.length>0){var n=x(e[i-1],t);if(n)return void(e[i-1]=n)}else u(this.observer);e[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=i.get(t);e||i.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=i.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,i=t.relatedNode.namespaceURI,n=t.target;(r=new b("attributes",n)).attributeName=e,r.attributeNamespace=i;var s=t.attrChange===MutationEvent.ADDITION?null:t.prevValue;f(n,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(i)))return t.attributeOldValue?y(s):r});break;case"DOMCharacterDataModified":var r=b("characterData",n=t.target);s=t.prevValue,f(n,function(t){if(t.characterData)return t.characterDataOldValue?y(s):r});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":var a,o,l=t.target;"DOMNodeInserted"===t.type?(a=[l],o=[]):(a=[],o=[l]);var c=l.previousSibling,u=l.nextSibling;(r=b("childList",t.target.parentNode)).addedNodes=a,r.removedNodes=o,r.previousSibling=c,r.nextSibling=u,f(t.relatedNode,function(t){if(t.childList)return r})}w()}},t.JsMutationObserver=g,t.MutationObserver||(t.MutationObserver=g,g._isPolyfilled=!0)}function u(t){l.push(t),o||(o=!0,e(h))}function d(t){return window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(t)||t}function h(){o=!1;var t=l;l=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var i=t.takeRecords();p(t),i.length&&(t.callback_(i,t),e=!0)}),e&&h()}function p(t){t.nodes_.forEach(function(e){var n=i.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}function f(t,e){for(var n=t;n;n=n.parentNode){var s=i.get(n);if(s)for(var r=0;r<s.length;r++){var a=s[r],o=a.options;if(n===t||o.subtree){var l=e(o);l&&a.enqueue(l)}}}}function g(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++c}function m(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function v(t){var e=new m(t.type,t.target);return e.addedNodes=t.addedNodes.slice(),e.removedNodes=t.removedNodes.slice(),e.previousSibling=t.previousSibling,e.nextSibling=t.nextSibling,e.attributeName=t.attributeName,e.attributeNamespace=t.attributeNamespace,e.oldValue=t.oldValue,e}function b(t,e){return r=new m(t,e)}function y(t){return a||((a=v(r)).oldValue=t,a)}function w(){r=a=void 0}function _(t){return t===a||t===r}function x(t,e){return t===e?t:a&&_(t)?a:null}function C(t,e,i){this.observer=t,this.target=e,this.options=i,this.transientObservedNodes=[]}}(t)}(window)})?i.apply(e,n):i)||(t.exports=s)},937:(t,e,i)=>{var n,s,r;s=[e,t,i(221),i(108),i(537)],n=function(t,e,i,n,s){"use strict";var r=function(t){return t&&t.__esModule?t.default:t},a=i.TYPE_ATTRIBUTE,o=i.TYPE_CLASSNAME,l=i.TYPE_ELEMENT,c=r(n),u=s.hasOwn,d=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;function p(t){var e=t.classList;if(e)return e;var i=t.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}e.exports={clear:function(){return c.registry={},this},get:function(t){return u(c.registry,t)&&c.registry[t]},getForElement:function(t){var e,i,n=t.attributes,s=n.length,r=[],u=n.is,d=u&&(u.value||u.nodeValue),h=(t.tagName||t.localName).toLowerCase(),f=d||h;this.isType(f,l)&&(i=(e=c.registry[f]).extends,d?h===i&&r.push(e):i||r.push(e));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,a)&&((i=(e=c.registry[m]).extends)&&h!==i||r.push(e))}for(var v=p(t),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,o)&&((i=(e=c.registry[w]).extends)&&h!==i||r.push(e))}return r},isType:function(t,e){var i=this.get(t);return i&&i.type===e},isNativeCustomElement:function(t){return h()&&this.isType(t,l)&&d(t)},set:function(t,e){if(u(c.registry,t))throw new Error('A component definition of type "'+e.type+'" with the ID of "'+t+'" already exists.');return c.registry[t]=e,this}}},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},714:(t,e,i)=>{var n,s,r;s=[e,t,i(221),i(310),i(740),i(937),i(537),i(996)],n=function(t,e,i,n,s,r,a,o){"use strict";var l=function(t){return t&&t.__esModule?t.default:t},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,d=i.TYPE_ELEMENT,h=l(n),p=s.triggerCreated,f=s.triggerAttached,g=s.triggerDetached,m=s.triggerAttributeChanged,v=s.initElements,b=l(r),y=a.debounce,w=a.inherit,_=l(o),x=window.HTMLElement,C=!!document.attachEvent;function T(){return C?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState}var k=y(function(){var t=function(){v(document.documentElement.childNodes)};T()?t():C?window.addEventListener("load",t):document.addEventListener("DOMContentLoaded",t)});function E(t){function e(){var i,n=t.extends,s=t.id;return n?(i=document.createElement(n)).setAttribute("is",s):i=document.createElement(s),t.prototype=e.prototype,p(i,t),i}return e.prototype=t.prototype,e}function A(t,e){if(e=w({},e),(e=w(e,A.defaults)).id=t,b.set(t,e),b.isNativeCustomElement(t)){var i=e.extends?document.createElement(e.extends).constructor.prototype:x.prototype;i.isPrototypeOf(e.prototype)||(e.prototype=w(Object.create(i),e.prototype,!0));var n={prototype:w(e.prototype,{createdCallback:function(){p(this,e)},attachedCallback:function(){f(this,e)},detachedCallback:function(){g(this,e)},attributeChangedCallback:function(t,i,n){m(this,e,{name:t,oldValue:i,newValue:n})}})};return e.extends&&(n.extends=e.extends),document.registerElement(t,n)}if(k(),h.register(!!e.detached),b.isType(t,d))return E(e)}A.init=function(t){var e=t;return t?("string"==typeof t?e=t=document.querySelectorAll(t):t instanceof x&&(e=[t]),v(e),t):t},A.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:d},A.version=_,A.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:d,unresolvedAttribute:"unresolved"};var S=window.skate;A.noConflict=function(){return window.skate=S,A},window.skate=A,e.exports=A},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},537:(t,e,i)=>{var n,s,r;s=[e,i(221)],n=function(t,e){"use strict";t.hasOwn=r,t.camelCase=a,t.elementContains=o,t.debounce=l,t.getClosestIgnoredElement=c,t.inherit=u,t.objEach=d,t.supportsNativeCustomElements=h,t.isValidNativeCustomElementName=p,Object.defineProperty(t,"__esModule",{value:!0});var i=e.ATTR_IGNORE,n=window.HTMLElement.prototype;t.elementPrototype=n;var s=n.contains;function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(t){return t.split(/-/g).map(function(t,e){return 0===e?t:t[0].toUpperCase()+t.substring(1)}).join("")}function o(t,e){return t!==document||t.contains?t.contains?t.contains(e):s.call(t,e):document.head.contains(e)||document.body.contains(e)}function l(t){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,t()},1))}}function c(t){for(var e=t;e instanceof Element;){if(e.hasAttribute(i))return e;e=e.parentNode}}function u(t,e,i){for(var n=Object.getOwnPropertyNames(e),s=n.length,r=0;r<s;r++){var a=n[r];if(i||void 0===t[a]){var o=Object.getOwnPropertyDescriptor(e,a);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?t[a]=e[a]:Object.defineProperty(t,a,o)}}return t}function d(t,e){for(var i in t)r(t,i)&&e(t[i],i)}function h(){return"function"==typeof document.registerElement}function p(t){return t.indexOf("-")>0}},void 0===(r="function"==typeof n?n.apply(e,s):n)||(t.exports=r)},996:(t,e)=>{var i,n,s;n=[e,t],i=function(t,e){"use strict";e.exports="0.13.17"},void 0===(s="function"==typeof i?i.apply(e,n):i)||(t.exports=s)},99:()=>{
85
- /**!
86
- * TableSorter 2.17.8 - Client-side table sorting with ease!
87
- * @requires jQuery v1.2.6+
88
- *
89
- * Copyright (c) 2007 Christian Bach
90
- * Examples and docs at: http://tablesorter.com
91
- * Dual licensed under the MIT and GPL licenses:
92
- * http://www.opensource.org/licenses/mit-license.php
93
- * http://www.gnu.org/licenses/gpl.html
94
- *
95
- * @type jQuery
96
- * @name tablesorter
97
- * @cat Plugins/Tablesorter
98
- * @author Christian Bach/christian.bach@polyester.se
99
- * @contributor Rob Garrison/https://github.com/Mottie/tablesorter
100
- */
101
- /**!
102
- * Modified by Atlassian.
103
- */
104
- !function(t){"use strict";t.extend({tablesorter:new function(){var e=this;function i(){var t=arguments[0],e=arguments.length>1?Array.prototype.slice.call(arguments):t;"undefined"!=typeof console&&void 0!==console.log?console[/error/i.test(t)?"error":/warn/i.test(t)?"warn":"log"](e):alert(e)}function n(t,e){i(t+" ("+((new Date).getTime()-e.getTime())+"ms)")}function s(t){for(var e in t)return!1;return!0}function r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return l="basic"===o?t(n).attr(a.textAttribute)||n.textContent||n.innerText||t(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=e.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||t(n).text()||"",t.trim(l)}function a(t,n,s,a){for(var o,l=e.parsers.length,c=!1,u="",d=!0;""===u&&d;)n[++s]?(u=r(t,c=n[s].cells[a],a),t.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):d=!1;for(;--l>=0;)if((o=e.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,t,c))return o;return e.getParserById("text")}function o(t){var s,r,o,l,c,u,d,h,p,f,g=t.config,m=g.$tbodies=g.$table.children("tbody:not(."+g.cssInfoBlock+")"),v=0,b="",y=m.length;if(0===y)return g.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(g.debug&&(f=new Date,i("Detecting parsers for each column")),r={extractors:[],parsers:[]};v<y;){if((s=m[v].rows)[v])for(o=g.columns,l=0;l<o;l++)c=g.$headers.filter('[data-column="'+l+'"]:last'),u=e.getColumnData(t,g.headers,l),p=e.getParserById(e.getData(c,u,"extractor")),h=e.getParserById(e.getData(c,u,"sorter")),d="false"===e.getData(c,u,"parser"),g.empties[l]=(e.getData(c,u,"empty")||g.emptyTo||(g.emptyToBottom?"bottom":"top")).toLowerCase(),g.strings[l]=(e.getData(c,u,"string")||g.stringTo||"max").toLowerCase(),d&&(h=e.getParserById("no-parser")),p||(p=!1),h||(h=a(t,s,-1,l)),g.debug&&(b+="column:"+l+"; extractor:"+p.id+"; parser:"+h.id+"; string:"+g.strings[l]+"; empty: "+g.empties[l]+"\n"),r.parsers[l]=h,r.extractors[l]=p;v+=r.parsers.length?y:1}g.debug&&(i(b||"No parsers detected"),n("Completed detecting parsers",f)),g.parsers=r.parsers,g.extractors=r.extractors}function l(s){var a,o,l,c,u,d,h,p,f,g,m,v,b,y=s.config,w=y.$table.children("tbody"),_=y.extractors,x=y.parsers;if(y.cache={},y.totalRows=0,!x)return y.debug?i("Warning: *Empty table!* Not building a cache"):"";for(y.debug&&(g=new Date),y.showProcessing&&e.isProcessing(s,!0),h=0;h<w.length;h++)if(b=[],a=y.cache[h]={normalized:[]},!w.eq(h).hasClass(y.cssInfoBlock)){for(m=w[h]&&w[h].rows.length||0,u=0;u<m;++u)if(v={child:[]},p=t(w[h].rows[u]),[new Array(y.columns)],f=[],p.hasClass(y.cssChildRow)&&0!==u)o=a.normalized.length-1,a.normalized[o][y.columns].$row=a.normalized[o][y.columns].$row.add(p),p.prev().hasClass(y.cssChildRow)||p.prev().addClass(e.css.cssHasChild),v.child[o]=t.trim(p[0].textContent||p[0].innerText||p.text()||"");else{for(v.$row=p,v.order=u,d=0;d<y.columns;++d)void 0!==x[d]?(o=r(s,p[0].cells[d],d),l=void 0===_[d].id?o:_[d].format(o,s,p[0].cells[d],d),c="no-parser"===x[d].id?"":x[d].format(l,s,p[0].cells[d],d),f.push(y.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(x[d].type||"").toLowerCase()&&(b[d]=Math.max(Math.abs(c)||0,b[d]||0))):y.debug&&i("No parser found for cell:",p[0].cells[d],"does it have a header?");f[y.columns]=v,a.normalized.push(f)}a.colMax=b,y.totalRows+=a.normalized.length}y.showProcessing&&e.isProcessing(s),y.debug&&n("Building cache for "+m+" rows",g)}function c(i,r){var a,o,l,c,u,d,h,p=i.config,f=p.widgetOptions,g=i.tBodies,m=[],v=p.cache;if(s(v))return p.appender?p.appender(i,m):i.isUpdating?p.$table.trigger("updateComplete",i):"";for(p.debug&&(h=new Date),d=0;d<g.length;d++)if((l=t(g[d])).length&&!l.hasClass(p.cssInfoBlock)){for(c=e.processTbody(i,l,!0),o=(a=v[d].normalized).length,u=0;u<o;u++)m.push(a[u][p.columns].$row),p.appender&&(!p.pager||p.pager.removeRows&&f.pager_removeRows||p.pager.ajax)||c.append(a[u][p.columns].$row);e.processTbody(i,c,!1)}p.appender&&p.appender(i,m),p.debug&&n("Rebuilt table",h),r||p.appender||e.applyWidget(i),i.isUpdating&&p.$table.trigger("updateComplete",i)}function u(t){return/^d/i.test(t)||1===t}function d(s){var r,a,o,l,c,d,h,f=s.config;f.headerList=[],f.headerContent=[],f.debug&&(h=new Date),f.columns=e.computeColumnIndex(f.$table.children("thead, tfoot").children("tr")),l=f.cssIcon?'<i class="'+(f.cssIcon===e.css.icon?e.css.icon:f.cssIcon+" "+e.css.icon)+'"></i>':"",f.$headers=t(s).find(f.selectorHeaders).each(function(i){a=t(this),r=e.getColumnData(s,f.headers,i,!0),f.headerContent[i]=t(this).html(),""!==f.headerTemplate&&(c=f.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,t(this).html()),f.onRenderTemplate&&(o=f.onRenderTemplate.apply(a,[i,c]))&&"string"==typeof o&&(c=o),t(this).html('<div class="'+e.css.headerIn+'">'+c+"</div>")),f.onRenderHeader&&f.onRenderHeader.apply(a,[i]),this.column=parseInt(t(this).attr("data-column"),10),this.order=u(e.getData(a,r,"sortInitialOrder")||f.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(d=e.getData(a,r,"lockedOrder")||!1)&&!1!==d&&(this.order=this.lockedOrder=u(d)?[1,1,1]:[0,0,0]),a.addClass(e.css.header+" "+f.cssHeader),f.headerList[i]=this,a.parent().addClass(e.css.headerRow+" "+f.cssHeaderRow),f.tabIndex&&a.attr("tabindex",0)}).attr({scope:"col"}),p(s),f.debug&&(n("Built headers:",h),i(f.$headers))}function h(t,e,i){var n=t.config;n.$table.find(n.selectorRemove).remove(),o(t),l(t),y(n.$table,e,i)}function p(i){var n,s,r,a=i.config;a.$headers.each(function(o,l){s=t(l),r=e.getColumnData(i,a.headers,o,!0),n="false"===e.getData(l,r,"sorter")||"false"===e.getData(l,r,"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,r,a=i.config,o=a.sortList,l=o.length,c=e.css.sortNone+" "+a.cssNone,u=[e.css.sortAsc+" "+a.cssAsc,e.css.sortDesc+" "+a.cssDesc],d=["ascending","descending"],h=t(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",d[o[s][1]]);h.length&&h.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each(function(){var i=t(this),n=this.order[(this.count+1)%(a.sortReset?3:2)],s=i.text()+": "+e.language[i.hasClass(e.css.sortAsc)?"sortAsc":i.hasClass(e.css.sortDesc)?"sortDesc":"sortNone"]+e.language[0===n?"nextAsc":1===n?"nextDesc":"nextNone"];i.attr("aria-label",s)})}function g(t,e){return t&&t[e]&&t[e].type||""}function m(i,n,s){if(i.isUpdating)return setTimeout(function(){m(i,n,s)},50);var r,a,o,l,u,d=i.config,h=!s[d.sortMultiSortKey],p=d.$table;if(p.trigger("sortStart",i),n.count=s[d.sortResetKey]?2:(n.count+1)%(d.sortReset?3:2),d.sortRestart&&(a=n,d.$headers.each(function(){this===a||!h&&t(this).is("."+e.css.sortDesc+",."+e.css.sortAsc)||(this.count=-1)})),a=n.column,h){if(d.sortList=[],null!==d.sortForce)for(r=d.sortForce,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}else{if(d.sortAppend&&d.sortList.length>1)for(o=0;o<d.sortAppend.length;o++)(u=e.isValueInArray(d.sortAppend[o][0],d.sortList))>=0&&d.sortList.splice(u,1);if(e.isValueInArray(a,d.sortList)>=0)for(o=0;o<d.sortList.length;o++)u=d.sortList[o],l=d.$headers.filter('[data-column="'+u[0]+'"]:last')[0],u[0]===a&&(u[1]=l.order[n.count],2===u[1]&&(d.sortList.splice(o,1),l.count=-1));else if((l=n.order[n.count])<2&&(d.sortList.push([a,l]),n.colSpan>1))for(o=1;o<n.colSpan;o++)d.sortList.push([a+o,l])}if(null!==d.sortAppend)for(r=d.sortAppend,o=0;o<r.length;o++)r[o][0]!==a&&d.sortList.push(r[o]);p.trigger("sortBegin",i),setTimeout(function(){f(i),v(i),c(i),p.trigger("sortEnd",i)},1)}function v(t){var i,r,a,o,l,c,u,d,h,p,f=0,m=t.config,v=m.textSorter||"",b=m.sortList,y=b.length,w=t.tBodies.length;if(!m.serverSideSorting&&!s(m.cache)){for(m.debug&&(l=new Date),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort(function(n,s){for(i=0;i<y;i++){if(o=b[i][0],u=b[i][1],f=0===u,m.sortStable&&n[o]===s[o]&&1===y)return n[m.columns].order-s[m.columns].order;if((a=/n/i.test(g(m.parsers,o)))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(f?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,d=m.numberSorter?m.numberSorter(n[o],s[o],f,c[o],t):e["sortNumeric"+(f?"Asc":"Desc")](n[o],s[o],a,c[o],o,t)):(h=f?n:s,p=f?s:n,d="function"==typeof v?v(h[o],p[o],f,o,t):"object"==typeof v&&v.hasOwnProperty(o)?v[o](h[o],p[o],f,o,t):e["sortNatural"+(f?"Asc":"Desc")](n[o],s[o],o,t,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(e,i){var n=e[0];n.isUpdating&&e.trigger("updateComplete",n),t.isFunction(i)&&i(e[0])}function y(t,i,n){var s=t[0].config.sortList;!1!==i&&!t[0].isProcessing&&s.length?t.trigger("sorton",[s,function(){b(t,n)},!0]):(b(t,n),e.applyWidget(t[0],!1))}function w(i){var n=i.config,a=n.$table;a.unbind("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(n.namespace+" ")).bind("sortReset"+n.namespace,function(e,s){e.stopPropagation(),n.sortList=[],f(i),v(i),c(i),t.isFunction(s)&&s(i)}).bind("updateAll"+n.namespace,function(t,s,r){t.stopPropagation(),i.isUpdating=!0,e.refreshWidgets(i,!0,!0),e.restoreHeaders(i),d(i),e.bindEvents(i,n.$headers,!0),w(i),h(i,s,r)}).bind("update"+n.namespace+" updateRows"+n.namespace,function(t,e,n){t.stopPropagation(),i.isUpdating=!0,p(i),h(i,e,n)}).bind("updateCell"+n.namespace,function(e,s,o,l){e.stopPropagation(),i.isUpdating=!0,a.find(n.selectorRemove).remove();var c,u,d,h,p=a.find("tbody"),f=t(s),g=p.index(t.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),m=t.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");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?r(i,s,h):n.extractors[h].format(r(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(a,o,l))}).bind("addRows"+n.namespace,function(e,l,c,u){if(e.stopPropagation(),i.isUpdating=!0,s(n.cache))p(i),h(i,c,u);else{var d,f,g,m,v,b,w,_=(l=t(l)).filter("tr").length,x=a.find("tbody").index(l.parents("tbody").filter(":first"));for(n.parsers&&n.parsers.length||o(i),d=0;d<_;d++){for(g=l[d].cells.length,w=[],b={child:[],$row:l.eq(d),order:n.cache[x].normalized.length},f=0;f<g;f++)m=void 0===n.extractors[f].id?r(i,l[d].cells[f],f):n.extractors[f].format(r(i,l[d].cells[f],f),i,l[d].cells[f],f),v="no-parser"===n.parsers[f].id?"":n.parsers[f].format(m,i,l[d].cells[f],f),w[f]=n.ignoreCase&&"string"==typeof v?v.toLowerCase():v,"numeric"===(n.parsers[f].type||"").toLowerCase()&&(n.cache[x].colMax[f]=Math.max(Math.abs(w[f])||0,n.cache[x].colMax[f]||0));w.push(b),n.cache[x].normalized.push(w)}y(a,c,u)}}).bind("updateComplete"+n.namespace,function(){i.isUpdating=!1}).bind("sorton"+n.namespace,function(n,r,o,u){var d=i.config;n.stopPropagation(),a.trigger("sortStart",this),function(e,i){var n,s,r,a,o,l=e.config,c=i||l.sortList;l.sortList=[],t.each(c,function(e,i){if(a=parseInt(i[0],10),r=l.$headers.filter('[data-column="'+a+'"]:last')[0]){switch(s=(s=(""+i[1]).match(/^(1|d|s|o|n)/))?s[0]:""){case"1":case"d":s=1;break;case"s":s=o||0;break;case"o":n=r.order[(o||0)%(l.sortReset?3:2)],s=0===n?1:1===n?0:2;break;case"n":r.count=r.count+1,s=r.order[r.count%(l.sortReset?3:2)];break;default:s=0}o=0===e?s:o,n=[a,parseInt(s,10)||0],l.sortList.push(n),s=t.inArray(n[1],r.order),r.count=s>=0?s:n[1]%(l.sortReset?3:2)}})}(i,r),f(i),d.delayInit&&s(d.cache)&&l(i),a.trigger("sortBegin",this),v(i),c(i,u),a.trigger("sortEnd",this),e.applyWidget(i),t.isFunction(o)&&o(i)}).bind("appendCache"+n.namespace,function(e,n,s){e.stopPropagation(),c(i,s),t.isFunction(n)&&n(i)}).bind("updateCache"+n.namespace,function(e,s){n.parsers&&n.parsers.length||o(i),l(i),t.isFunction(s)&&s(i)}).bind("applyWidgetId"+n.namespace,function(t,s){t.stopPropagation(),e.getWidgetById(s).format(i,n,n.widgetOptions)}).bind("applyWidgets"+n.namespace,function(t,n){t.stopPropagation(),e.applyWidget(i,n)}).bind("refreshWidgets"+n.namespace,function(t,n,s){t.stopPropagation(),e.refreshWidgets(i,n,s)}).bind("destroy"+n.namespace,function(t,n,s){t.stopPropagation(),e.destroy(i,n,s)}).bind("resetToLoadState"+n.namespace,function(){e.refreshWidgets(i,!0,!0),n=t.extend(!0,e.defaults,n.originalSettings),i.hasInitialized=!1,e.setup(i,n)})}e.version="2.17.8",e.parsers=[],e.widgets=[],e.defaults={theme:"default",widthFixed:!1,showProcessing:!1,headerTemplate:"{content}",onRenderTemplate:null,onRenderHeader:null,cancelSelection:!0,tabIndex:!0,dateFormat:"mmddyyyy",sortMultiSortKey:"shiftKey",sortResetKey:"ctrlKey",usNumberFormat:!0,delayInit:!1,serverSideSorting:!1,headers:{},ignoreCase:!0,sortForce:null,sortList:[],sortAppend:null,sortStable:!1,sortInitialOrder:"asc",sortLocaleCompare:!1,sortReset:!1,sortRestart:!1,emptyTo:"bottom",stringTo:"max",textExtraction:"basic",textAttribute:"data-text",textSorter:null,numberSorter:null,widgets:[],widgetOptions:{zebra:["even","odd"]},initWidgets:!0,initialized:null,tableClass:"",cssAsc:"",cssDesc:"",cssNone:"",cssHeader:"",cssHeaderRow:"",cssProcessing:"",cssChildRow:"tablesorter-childRow",cssIcon:"tablesorter-icon",cssInfoBlock:"tablesorter-infoOnly",selectorHeaders:"> thead th, > thead td",selectorSort:"th, td",selectorRemove:".remove-me",debug:!1,headerList:[],empties:{},strings:{},parsers:[]},e.css={table:"tablesorter",cssHasChild:"tablesorter-hasChildRow",childRow:"tablesorter-childRow",header:"tablesorter-header",headerRow:"tablesorter-headerRow",headerIn:"tablesorter-header-inner",icon:"tablesorter-icon",info:"tablesorter-infoOnly",processing:"tablesorter-processing",sortAsc:"tablesorter-headerAsc",sortDesc:"tablesorter-headerDesc",sortNone:"tablesorter-headerUnSorted"},e.language={sortAsc:"Ascending sort applied, ",sortDesc:"Descending sort applied, ",sortNone:"No sort applied, ",nextAsc:"activate to apply an ascending sort",nextDesc:"activate to apply a descending sort",nextNone:"activate to remove the sort"},e.log=i,e.benchmark=n,e.construct=function(i){return this.each(function(){var n=this,s=t.extend(!0,{},e.defaults,i);s.originalSettings=i,!n.hasInitialized&&e.buildTable&&"TABLE"!==this.tagName?e.buildTable(n,s):e.setup(n,s)})},e.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 r=new RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`);function a(t){return r.test(t)}var c=[];for(var u of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var h=s[u];h&&!a(h)&&(c.push(u),i(`ERROR: ${u} must contain only valid CSS class names but is '${h}'`))}if(c.length>0)return s.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var p,g="",m=t(n),v=t.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=s,t.data(n,"tablesorter",s),s.debug&&t.data(n,"startoveralltimer",new Date),s.supportsDataObject=((p=t.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(e.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(e){var i,n,s=e.config;s.widthFixed&&0===s.$table.find("colgroup").length&&(i=t("<colgroup>"),n=t(e).width(),t(e.tBodies).not("."+s.cssInfoBlock).find("tr:first").children(":visible").each(function(){i.append(t("<col>").css("width",parseInt(t(this).width()/n*1e3,10)/10+"%"))}),s.$table.prepend(i))}(n),o(n),s.totalRows=0,s.delayInit||l(n),e.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),e.applyWidget(n,!0),s.sortList.length>0?m.trigger("sorton",[s.sortList,{},!s.initWidgets,!0]):(f(n),s.initWidgets&&e.applyWidget(n,!1)),s.showProcessing&&m.unbind("sortBegin"+s.namespace+" sortEnd"+s.namespace).bind("sortBegin"+s.namespace+" sortEnd"+s.namespace,function(t){clearTimeout(s.processTimer),e.isProcessing(n),"sortBegin"===t.type&&(s.processTimer=setTimeout(function(){e.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,s.debug&&e.benchmark("Overall initialization time",t.data(n,"startoveralltimer")),m.trigger("tablesorter-initialized",n),"function"==typeof s.initialized&&s.initialized(n)},e.getColumnData=function(e,i,n,s){if(null!=i){var r,a=(e=t(e)[0]).config;if(i[n])return s?i[n]:i[a.$headers.index(a.$headers.filter('[data-column="'+n+'"]:last'))];for(r in i)if("string"==typeof r&&(s?a.$headers.eq(n).filter(r):a.$headers.filter('[data-column="'+n+'"]:last').filter(r)).length)return i[r]}},e.computeColumnIndex=function(e){var i,n,s,r,a,o,l,c,u,d,h,p,f,g=[],m={},v=0;for(i=0;i<e.length;i++)for(l=e[i].cells,n=0;n<l.length;n++){for(o=l[n],a=t(o),u=(c=o.parentNode.rowIndex)+"-"+a.index(),d=o.rowSpan||1,h=o.colSpan||1,void 0===g[c]&&(g[c]=[]),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),a.attr({"data-column":p}),s=c;s<c+d;s++)for(void 0===g[s]&&(g[s]=[]),f=g[s],r=p;r<p+h;r++)f[r]="x"}return v+1},e.isProcessing=function(i,n,s){var r=(i=t(i))[0].config,a=s||i.find("."+e.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter(function(){return!this.sortDisabled&&e.isValueInArray(parseFloat(t(this).attr("data-column")),r.sortList)>=0})),i.add(a).addClass(e.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(e.css.processing+" "+r.cssProcessing)},e.processTbody=function(e,i,n){var s;if(e=t(e)[0],n)return e.isProcessing=!0,i.before('<span class="tablesorter-savemyplace"/>'),s=t.fn.detach?i.detach():i.remove();s=t(e).find("span.tablesorter-savemyplace"),i.insertAfter(s),s.remove(),e.isProcessing=!1},e.clearTableBody=function(e){t(e)[0].config.$tbodies.children().detach()},e.bindEvents=function(e,i,n){var r,a=(e=t(e)[0]).config;!0!==n&&(a.$extraHeaders=a.$extraHeaders?a.$extraHeaders.add(i):i),i.find(a.selectorSort).add(i.filter(a.selectorSort)).unbind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" ")).bind("mousedown mouseup sort keyup ".split(" ").join(a.namespace+" "),function(n,o){var c,u=n.type;if(!(1!==(n.which||n.button)&&!/sort|keyup/.test(u)||"keyup"===u&&13!==n.which||"mouseup"===u&&!0!==o&&(new Date).getTime()-r>250)){if("mousedown"===u)return r=(new Date).getTime(),/(input|select|button|textarea)/i.test(n.target.tagName)?"":!a.cancelSelection;a.delayInit&&s(a.cache)&&l(e),c=t.fn.closest?t(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:t(this).parents("th, td")[0],(c=a.$headers[i.index(c)]).sortDisabled||m(e,c,n)}}),a.cancelSelection&&i.attr("unselectable","on").bind("selectstart",!1).css({"user-select":"none",MozUserSelect:"none"})},e.restoreHeaders=function(i){var n=t(i)[0].config;n.$table.find(n.selectorHeaders).each(function(i){t(this).find("."+e.css.headerIn).length&&t(this).html(n.headerContent[i])})},e.destroy=function(i,n,s){if((i=t(i)[0]).hasInitialized){e.refreshWidgets(i,!0,!0);var r=t(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+e.css.headerRow).removeClass(e.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&t.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").unbind("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([e.css.header,a.cssHeader,a.cssAsc,a.cssDesc,e.css.sortAsc,e.css.sortDesc,e.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).unbind("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),e.restoreHeaders(i),r.toggleClass(e.css.table+" "+a.tableClass+" tablesorter-"+a.theme,!1===n),i.hasInitialized=!1,delete i.config.cache,"function"==typeof s&&s(i)}},e.regex={chunk:/(^([+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?)?$|^0x[0-9a-f]+$|\d+)/gi,chunks:/(^\\0|\\0$)/,hex:/^0x[0-9a-f]+$/i},e.sortNatural=function(t,i){if(t===i)return 0;var n,s,r,a,o,l,c,u,d=e.regex;if(d.hex.test(i)){if((s=parseInt(t.match(d.hex),16))<(a=parseInt(i.match(d.hex),16)))return-1;if(s>a)return 1}for(n=t.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),r=i.replace(d.chunk,"\\0$1\\0").replace(d.chunks,"").split("\\0"),u=Math.max(n.length,r.length),c=0;c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return-1;if(o>l)return 1}return 0},e.sortNaturalAsc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:e.sortNatural(t,i)},e.sortNaturalDesc=function(t,i,n,s,r){if(t===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===t&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-1:e.sortNatural(i,t)},e.sortText=function(t,e){return t>e?1:t<e?-1:0},e.getTextValue=function(t,e,i){if(i){var n,s=t?t.length:0,r=i+e;for(n=0;n<s;n++)r+=t.charCodeAt(n);return e*r}return 0},e.sortNumericAsc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),t-i)},e.sortNumericDesc=function(t,i,n,s,r,a){if(t===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===t&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(t)&&(t=e.getTextValue(t,n,s)),isNaN(i)&&(i=e.getTextValue(i,n,s)),i-t)},e.sortNumeric=function(t,e){return t-e},e.characterEquivalents={a:"áàâãäąå",A:"ÁÀÂÃÄĄÅ",c:"çćč",C:"ÇĆČ",e:"éèêëěę",E:"ÉÈÊËĚĘ",i:"íìİîïı",I:"ÍÌİÎÏ",o:"óòôõö",O:"ÓÒÔÕÖ",ss:"ß",SS:"ẞ",u:"úùûüů",U:"ÚÙÛÜŮ"},e.replaceAccents=function(t){var i,n="[",s=e.characterEquivalents;if(!e.characterRegex){for(i in e.characterRegexArray={},s)"string"==typeof i&&(n+=s[i],e.characterRegexArray[i]=new RegExp("["+s[i]+"]","g"));e.characterRegex=new RegExp(n+"]")}if(e.characterRegex.test(t))for(i in s)"string"==typeof i&&(t=t.replace(e.characterRegexArray[i],i));return t},e.isValueInArray=function(t,e){var i,n=e.length;for(i=0;i<n;i++)if(e[i][0]===t)return i;return-1},e.addParser=function(t){var i,n=e.parsers.length,s=!0;for(i=0;i<n;i++)e.parsers[i].id.toLowerCase()===t.id.toLowerCase()&&(s=!1);s&&e.parsers.push(t)},e.getParserById=function(t){if("false"==t)return!1;var i,n=e.parsers.length;for(i=0;i<n;i++)if(e.parsers[i].id.toLowerCase()===t.toString().toLowerCase())return e.parsers[i];return!1},e.addWidget=function(t){e.widgets.push(t)},e.hasWidget=function(e,i){return(e=t(e)).length&&e[0].config&&e[0].config.widgetInit[i]||!1},e.getWidgetById=function(t){var i,n,s=e.widgets.length;for(i=0;i<s;i++)if((n=e.widgets[i])&&n.hasOwnProperty("id")&&n.id.toLowerCase()===t.toLowerCase())return n},e.applyWidget=function(i,s){var r,a,o,l=(i=t(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=t.grep(l.widgets,function(e,i){return t.inArray(e,l.widgets)===i}),t.each(l.widgets||[],function(t,i){(o=e.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[t]=o)}),u.sort(function(t,e){return t.priority<e.priority?-1:t.priority===e.priority?0:1}),t.each(u,function(e,n){n&&(!s&&l.widgetInit[n.id]||(l.widgetInit[n.id]=!0,n.hasOwnProperty("options")&&(c=i.config.widgetOptions=t.extend(!0,{},n.options,c)),n.hasOwnProperty("init")&&n.init(i,n,l,c)),!s&&n.hasOwnProperty("format")&&n.format(i,l,c,!1))})),setTimeout(function(){i.isApplyingWidgets=!1},0),l.debug&&(a=l.widgets.length,n("Completed "+(!0===s?"initializing ":"applying ")+a+" widget"+(1!==a?"s":""),r)))},e.refreshWidgets=function(n,s,r){var a,o=(n=t(n)[0]).config,l=o.widgets,c=e.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||t.inArray(c[a].id,l)<0)&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&e.applyWidget(n,s)},e.getData=function(e,i,n){var s,r,a="",o=t(e);return o.length?(s=!!t.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(new RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),t.trim(a)):""},e.formatFloat=function(e,i){return"string"!=typeof e||""===e?e:(e=(i&&i.config?!1!==i.config.usNumberFormat:void 0===i||i)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),n=parseFloat(e),isNaN(n)?t.trim(e):n);var n},e.isDigit=function(t){return!isNaN(t)||/^[\-+(]?\d+[)]?$/.test(t.toString().replace(/[,.'"\s]/g,""))}}});var e=t.tablesorter;t.fn.extend({tablesorter:e.construct}),e.addParser({id:"no-parser",is:function(){return!1},format:function(){return""},type:"text"}),e.addParser({id:"text",is:function(){return!0},format:function(i,n){var s=n.config;return i&&(i=t.trim(s.ignoreCase?i.toLocaleLowerCase():i),i=s.sortLocaleCompare?e.replaceAccents(i):i),i},type:"text"}),e.addParser({id:"digit",is:function(t){return e.isDigit(t)},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"currency",is:function(t){return/^\(?\d+[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]|[\u00a3$\u20ac\u00a4\u00a5\u00a2?.]\d+\)?$/.test((t||"").replace(/[+\-,. ]/g,""))},format:function(i,n){var s=e.formatFloat((i||"").replace(/[^\w,. \-()]/g,""),n);return i&&"number"==typeof s?s:i?t.trim(i&&n.config.ignoreCase?i.toLocaleLowerCase():i):i},type:"numeric"}),e.addParser({id:"ipAddress",is:function(t){return/^\d{1,3}[\.]\d{1,3}[\.]\d{1,3}[\.]\d{1,3}$/.test(t)},format:function(t,i){var n,s=t?t.split("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return t?e.formatFloat(r,i):t},type:"numeric"}),e.addParser({id:"url",is:function(t){return/^(https?|ftp|file):\/\//.test(t)},format:function(e){return e?t.trim(e.replace(/(https?|ftp|file):\/\//,"")):e},parsed:!0,type:"text"}),e.addParser({id:"isoDate",is:function(t){return/^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}/.test(t)},format:function(t,i){return t?e.formatFloat(""!==t?new Date(t.replace(/-/g,"/")).getTime()||t:"",i):t},type:"numeric"}),e.addParser({id:"percent",is:function(t){return/(\d\s*?%|%\s*?\d)/.test(t)&&t.length<15},format:function(t,i){return t?e.formatFloat(t.replace(/%/g,""),i):t},type:"numeric"}),e.addParser({id:"usLongDate",is:function(t){return/^[A-Z]{3,10}\.?\s+\d{1,2},?\s+(\d{4})(\s+\d{1,2}:\d{2}(:\d{2})?(\s+[AP]M)?)?$/i.test(t)||/^\d{1,2}\s+[A-Z]{3,10}\s+\d{4}/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date(t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"shortDate",is:function(t){return/(^\d{1,2}[\/\s]\d{1,2}[\/\s]\d{4})|(^\d{4}[\/\s]\d{1,2}[\/\s]\d{1,2})/.test((t||"").replace(/\s+/g," ").replace(/[\-.,]/g,"/"))},format:function(t,i,n,s){if(t){var r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||e.getData(a,e.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;t=t.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?t=t.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(t=t.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return t?e.formatFloat(new Date(t).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"time",is:function(t){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(t)},format:function(t,i){return t?e.formatFloat(new Date("2000/01/01 "+t.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||t,i):t},type:"numeric"}),e.addParser({id:"metadata",is:function(){return!1},format:function(e,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return t(n).metadata()[r]},type:"numeric"}),e.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u=new RegExp(n.cssChildRow,"i"),d=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<d.length;c++)a=0,d.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){r=t(this),u.test(this.className)||a++,o=a%2==0,r.removeClass(s.zebra[o?1:0]).addClass(s.zebra[o?0:1])});n.debug&&e.benchmark("Applying Zebra widget",l)},remove:function(e,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=t.tablesorter.processTbody(e,a.eq(s),!0)).children().removeClass(o),t.tablesorter.processTbody(e,r,!1)}})}(jQuery)},682:()=>{jQuery.fn.serializeObject=function(){var t={};return this.find(":input:not(:button):not(:submit):not(:radio):not('select[multiple]')").each(function(){""!==this.name&&(null===this.value&&(this.value=""),t[this.name]=this.value.match(/^(tru|fals)e$/i)?"true"==this.value.toLowerCase():this.value)}),this.find("input:radio:checked").each(function(){t[this.name]=this.value}),this.find("select[multiple]").each(function(){var e=jQuery(this),i=e.val();e.data("aui-ss")?t[this.name]=i?i[0]:"":t[this.name]=null!==i?i:[]}),t}},687:e=>{"use strict";e.exports=t},171:(t,e,i)=>{Object.defineProperty(e,"__esModule",{value:!0});var n="1.13.7",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,d=a.hasOwnProperty,h="undefined"!=typeof ArrayBuffer,p="undefined"!=typeof DataView,f=Array.isArray,g=Object.keys,m=Object.create,v=h&&ArrayBuffer.isView,b=isNaN,y=isFinite,w=!{toString:null}.propertyIsEnumerable("toString"),_=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=Math.pow(2,53)-1;function C(t,e){return e=null==e?t.length-1:+e,function(){for(var i=Math.max(arguments.length-e,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+e];switch(e){case 0:return t.call(this,n);case 1:return t.call(this,arguments[0],n);case 2:return t.call(this,arguments[0],arguments[1],n)}var r=Array(e+1);for(s=0;s<e;s++)r[s]=arguments[s];return r[e]=n,t.apply(this,r)}}function T(t){var e=typeof t;return"function"===e||"object"===e&&!!t}function k(t){return null===t}function E(t){return void 0===t}function A(t){return!0===t||!1===t||"[object Boolean]"===u.call(t)}function S(t){return!(!t||1!==t.nodeType)}function D(t){var e="[object "+t+"]";return function(t){return u.call(t)===e}}var I=D("String"),M=D("Number"),N=D("Date"),O=D("RegExp"),L=D("Error"),P=D("Symbol"),R=D("ArrayBuffer"),$=D("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(t){return"function"==typeof t||!1});var z=$,F=D("Object"),H=p&&(!/\[native code\]/.test(String(DataView))||F(new DataView(new ArrayBuffer(8)))),B="undefined"!=typeof Map&&F(new Map),U=D("DataView");var W=H?function(t){return null!=t&&z(t.getInt8)&&R(t.buffer)}:U,V=f||D("Array");function Y(t,e){return null!=t&&d.call(t,e)}var q=D("Arguments");!function(){q(arguments)||(q=function(t){return Y(t,"callee")})}();var K=q;function Q(t){return!P(t)&&y(t)&&!isNaN(parseFloat(t))}function G(t){return M(t)&&b(t)}function J(t){return function(){return t}}function Z(t){return function(e){var i=t(e);return"number"==typeof i&&i>=0&&i<=x}}function X(t){return function(e){return null==e?void 0:e[t]}}var tt=X("byteLength"),et=Z(tt),it=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/;var nt=h?function(t){return v?v(t)&&!W(t):et(t)&&it.test(u.call(t))}:J(!1),st=X("length");function rt(t,e){e=function(t){for(var e={},i=t.length,n=0;n<i;++n)e[t[n]]=!0;return{contains:function(t){return!0===e[t]},push:function(i){return e[i]=!0,t.push(i)}}}(e);var i=_.length,n=t.constructor,s=z(n)&&n.prototype||a,r="constructor";for(Y(t,r)&&!e.contains(r)&&e.push(r);i--;)(r=_[i])in t&&t[r]!==s[r]&&!e.contains(r)&&e.push(r)}function at(t){if(!T(t))return[];if(g)return g(t);var e=[];for(var i in t)Y(t,i)&&e.push(i);return w&&rt(t,e),e}function ot(t){if(null==t)return!0;var e=st(t);return"number"==typeof e&&(V(t)||I(t)||K(t))?0===e:0===st(at(t))}function lt(t,e){var i=at(e),n=i.length;if(null==t)return!n;for(var s=Object(t),r=0;r<n;r++){var a=i[r];if(e[a]!==s[a]||!(a in s))return!1}return!0}function ct(t){return t instanceof ct?t:this instanceof ct?void(this._wrapped=t):new ct(t)}function ut(t){return new Uint8Array(t.buffer||t,t.byteOffset||0,tt(t))}ct.VERSION=n,ct.prototype.value=function(){return this._wrapped},ct.prototype.valueOf=ct.prototype.toJSON=ct.prototype.value,ct.prototype.toString=function(){return String(this._wrapped)};var dt="[object DataView]";function ht(t,e,i,n){if(t===e)return 0!==t||1/t==1/e;if(null==t||null==e)return!1;if(t!=t)return e!=e;var s=typeof t;return("function"===s||"object"===s||"object"==typeof e)&&pt(t,e,i,n)}function pt(t,e,i,n){t instanceof ct&&(t=t._wrapped),e instanceof ct&&(e=e._wrapped);var s=u.call(t);if(s!==u.call(e))return!1;if(H&&"[object Object]"==s&&W(t)){if(!W(e))return!1;s=dt}switch(s){case"[object RegExp]":case"[object String]":return""+t==""+e;case"[object Number]":return+t!=+t?+e!=+e:0===+t?1/+t==1/e:+t===+e;case"[object Date]":case"[object Boolean]":return+t===+e;case"[object Symbol]":return o.valueOf.call(t)===o.valueOf.call(e);case"[object ArrayBuffer]":case dt:return pt(ut(t),ut(e),i,n)}var r="[object Array]"===s;if(!r&&nt(t)){if(tt(t)!==tt(e))return!1;if(t.buffer===e.buffer&&t.byteOffset===e.byteOffset)return!0;r=!0}if(!r){if("object"!=typeof t||"object"!=typeof e)return!1;var a=t.constructor,l=e.constructor;if(a!==l&&!(z(a)&&a instanceof a&&z(l)&&l instanceof l)&&"constructor"in t&&"constructor"in e)return!1}n=n||[];for(var c=(i=i||[]).length;c--;)if(i[c]===t)return n[c]===e;if(i.push(t),n.push(e),r){if((c=t.length)!==e.length)return!1;for(;c--;)if(!ht(t[c],e[c],i,n))return!1}else{var d,h=at(t);if(c=h.length,at(e).length!==c)return!1;for(;c--;)if(!Y(e,d=h[c])||!ht(t[d],e[d],i,n))return!1}return i.pop(),n.pop(),!0}function ft(t,e){return ht(t,e)}function gt(t){if(!T(t))return[];var e=[];for(var i in t)e.push(i);return w&&rt(t,e),e}function mt(t){var e=st(t);return function(i){if(null==i)return!1;var n=gt(i);if(st(n))return!1;for(var s=0;s<e;s++)if(!z(i[t[s]]))return!1;return t!==_t||!z(i[vt])}}var vt="forEach",bt=["clear","delete"],yt=["get","has","set"],wt=bt.concat(vt,yt),_t=bt.concat(yt),xt=["add"].concat(bt,vt,"has"),Ct=B?mt(wt):D("Map"),Tt=B?mt(_t):D("WeakMap"),kt=B?mt(xt):D("Set"),Et=D("WeakSet");function At(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=t[e[s]];return n}function St(t){for(var e=at(t),i=e.length,n=Array(i),s=0;s<i;s++)n[s]=[e[s],t[e[s]]];return n}function Dt(t){for(var e={},i=at(t),n=0,s=i.length;n<s;n++)e[t[i[n]]]=i[n];return e}function It(t){var e=[];for(var i in t)z(t[i])&&e.push(i);return e.sort()}function Mt(t,e){return function(i){var n=arguments.length;if(e&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=t(r),o=a.length,l=0;l<o;l++){var c=a[l];e&&void 0!==i[c]||(i[c]=r[c])}return i}}var Nt=Mt(gt),Ot=Mt(at),Lt=Mt(gt,!0);function Pt(t){if(!T(t))return{};if(m)return m(t);var e=function(){};e.prototype=t;var i=new e;return e.prototype=null,i}function Rt(t,e){var i=Pt(t);return e&&Ot(i,e),i}function $t(t){return T(t)?V(t)?t.slice():Nt({},t):t}function jt(t,e){return e(t),t}function zt(t){return V(t)?t:[t]}function Ft(t){return ct.toPath(t)}function Ht(t,e){for(var i=e.length,n=0;n<i;n++){if(null==t)return;t=t[e[n]]}return i?t:void 0}function Bt(t,e,i){var n=Ht(t,Ft(e));return E(n)?i:n}function Ut(t,e){for(var i=(e=Ft(e)).length,n=0;n<i;n++){var s=e[n];if(!Y(t,s))return!1;t=t[s]}return!!i}function Wt(t){return t}function Vt(t){return t=Ot({},t),function(e){return lt(e,t)}}function Yt(t){return t=Ft(t),function(e){return Ht(e,t)}}function qt(t,e,i){if(void 0===e)return t;switch(null==i?3:i){case 1:return function(i){return t.call(e,i)};case 3:return function(i,n,s){return t.call(e,i,n,s)};case 4:return function(i,n,s,r){return t.call(e,i,n,s,r)}}return function(){return t.apply(e,arguments)}}function Kt(t,e,i){return null==t?Wt:z(t)?qt(t,e,i):T(t)&&!V(t)?Vt(t):Yt(t)}function Qt(t,e){return Kt(t,e,1/0)}function Gt(t,e,i){return ct.iteratee!==Qt?ct.iteratee(t,e):Kt(t,e,i)}function Jt(t,e,i){e=Gt(e,i);for(var n=at(t),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=e(t[o],o,t)}return r}function Zt(){}function Xt(t){return null==t?Zt:function(e){return Bt(t,e)}}function te(t,e,i){var n=Array(Math.max(0,t));e=qt(e,i,1);for(var s=0;s<t;s++)n[s]=e(s);return n}function ee(t,e){return null==e&&(e=t,t=0),t+Math.floor(Math.random()*(e-t+1))}ct.toPath=zt,ct.iteratee=Qt;var ie=Date.now||function(){return(new Date).getTime()};function ne(t){var e=function(e){return t[e]},i="(?:"+at(t).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(t){return t=null==t?"":""+t,n.test(t)?t.replace(s,e):t}}var se={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},re=ne(se),ae=ne(Dt(se)),oe=ct.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},le=/(.)^/,ce={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},ue=/\\|'|\r|\n|\u2028|\u2029/g;function de(t){return"\\"+ce[t]}var he=/^\s*(\w|\$)+\s*$/;function pe(t,e,i){!e&&i&&(e=i),e=Lt({},e,ct.templateSettings);var n=RegExp([(e.escape||le).source,(e.interpolate||le).source,(e.evaluate||le).source].join("|")+"|$","g"),s=0,r="__p+='";t.replace(n,function(e,i,n,a,o){return r+=t.slice(s,o).replace(ue,de),s=o+e.length,i?r+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?r+="'+\n((__t=("+n+"))==null?'':__t)+\n'":a&&(r+="';\n"+a+"\n__p+='"),e}),r+="';\n";var a,o=e.variable;if(o){if(!he.test(o))throw new Error("variable is not a bare identifier: "+o)}else r="with(obj||{}){\n"+r+"}\n",o="obj";r="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+r+"return __p;\n";try{a=new Function(o,"_",r)}catch(t){throw t.source=r,t}var l=function(t){return a.call(this,t,ct)};return l.source="function("+o+"){\n"+r+"}",l}function fe(t,e,i){var n=(e=Ft(e)).length;if(!n)return z(i)?i.call(t):i;for(var s=0;s<n;s++){var r=null==t?void 0:t[e[s]];void 0===r&&(r=i,s=n),t=z(r)?r.call(t):r}return t}var ge=0;function me(t){var e=++ge+"";return t?t+e:e}function ve(t){var e=ct(t);return e._chain=!0,e}function be(t,e,i,n,s){if(!(n instanceof e))return t.apply(i,s);var r=Pt(t.prototype),a=t.apply(r,s);return T(a)?a:r}var ye=C(function(t,e){var i=ye.placeholder,n=function(){for(var s=0,r=e.length,a=Array(r),o=0;o<r;o++)a[o]=e[o]===i?arguments[s++]:e[o];for(;s<arguments.length;)a.push(arguments[s++]);return be(t,n,this,this,a)};return n});ye.placeholder=ct;var we=C(function(t,e,i){if(!z(t))throw new TypeError("Bind must be called on a function");var n=C(function(s){return be(t,n,e,this,i.concat(s))});return n}),_e=Z(st);function xe(t,e,i,n){if(n=n||[],e||0===e){if(e<=0)return n.concat(t)}else e=1/0;for(var s=n.length,r=0,a=st(t);r<a;r++){var o=t[r];if(_e(o)&&(V(o)||K(o)))if(e>1)xe(o,e-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var Ce=C(function(t,e){var i=(e=xe(e,!1,!1)).length;if(i<1)throw new Error("bindAll must be passed function names");for(;i--;){var n=e[i];t[n]=we(t[n],t)}return t});function Te(t,e){var i=function(n){var s=i.cache,r=""+(e?e.apply(this,arguments):n);return Y(s,r)||(s[r]=t.apply(this,arguments)),s[r]};return i.cache={},i}var ke=C(function(t,e,i){return setTimeout(function(){return t.apply(null,i)},e)}),Ee=ye(ke,ct,1);function Ae(t,e,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:ie(),n=null,a=t.apply(s,r),n||(s=r=null)},c=function(){var c=ie();o||!1!==i.leading||(o=c);var u=e-(c-o);return s=this,r=arguments,u<=0||u>e?(n&&(clearTimeout(n),n=null),o=c,a=t.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function Se(t,e,i){var n,s,r,a,o,l=function(){var c=ie()-s;e>c?n=setTimeout(l,e-c):(n=null,i||(a=t.apply(o,r)),n||(r=o=null))},c=C(function(c){return o=this,r=c,s=ie(),n||(n=setTimeout(l,e),i&&(a=t.apply(o,r))),a});return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function De(t,e){return ye(e,t)}function Ie(t){return function(){return!t.apply(this,arguments)}}function Me(){var t=arguments,e=t.length-1;return function(){for(var i=e,n=t[e].apply(this,arguments);i--;)n=t[i].call(this,n);return n}}function Ne(t,e){return function(){if(--t<1)return e.apply(this,arguments)}}function Oe(t,e){var i;return function(){return--t>0&&(i=e.apply(this,arguments)),t<=1&&(e=null),i}}var Le=ye(Oe,2);function Pe(t,e,i){e=Gt(e,i);for(var n,s=at(t),r=0,a=s.length;r<a;r++)if(e(t[n=s[r]],n,t))return n}function Re(t){return function(e,i,n){i=Gt(i,n);for(var s=st(e),r=t>0?0:s-1;r>=0&&r<s;r+=t)if(i(e[r],r,e))return r;return-1}}var $e=Re(1),je=Re(-1);function ze(t,e,i,n){for(var s=(i=Gt(i,n,1))(e),r=0,a=st(t);r<a;){var o=Math.floor((r+a)/2);i(t[o])<s?r=o+1:a=o}return r}function Fe(t,e,i){return function(n,s,r){var a=0,o=st(n);if("number"==typeof r)t>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return n[r=i(n,s)]===s?r:-1;if(s!=s)return(r=e(c.call(n,a,o),G))>=0?r+a:-1;for(r=t>0?a:o-1;r>=0&&r<o;r+=t)if(n[r]===s)return r;return-1}}var He=Fe(1,$e,ze),Be=Fe(-1,je);function Ue(t,e,i){var n=(_e(t)?$e:Pe)(t,e,i);if(void 0!==n&&-1!==n)return t[n]}function We(t,e){return Ue(t,Vt(e))}function Ve(t,e,i){var n,s;if(e=qt(e,i),_e(t))for(n=0,s=t.length;n<s;n++)e(t[n],n,t);else{var r=at(t);for(n=0,s=r.length;n<s;n++)e(t[r[n]],r[n],t)}return t}function Ye(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=e(t[o],o,t)}return r}function qe(t){return function(e,i,n,s){var r=arguments.length>=3;return function(e,i,n,s){var r=!_e(e)&&at(e),a=(r||e).length,o=t>0?0:a-1;for(s||(n=e[r?r[o]:o],o+=t);o>=0&&o<a;o+=t){var l=r?r[o]:o;n=i(n,e[l],l,e)}return n}(e,qt(i,s,4),n,r)}}var Ke=qe(1),Qe=qe(-1);function Ge(t,e,i){var n=[];return e=Gt(e,i),Ve(t,function(t,i,s){e(t,i,s)&&n.push(t)}),n}function Je(t,e,i){return Ge(t,Ie(Gt(e)),i)}function Ze(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(!e(t[a],a,t))return!1}return!0}function Xe(t,e,i){e=Gt(e,i);for(var n=!_e(t)&&at(t),s=(n||t).length,r=0;r<s;r++){var a=n?n[r]:r;if(e(t[a],a,t))return!0}return!1}function ti(t,e,i,n){return _e(t)||(t=At(t)),("number"!=typeof i||n)&&(i=0),He(t,e,i)>=0}var ei=C(function(t,e,i){var n,s;return z(e)?s=e:(e=Ft(e),n=e.slice(0,-1),e=e[e.length-1]),Ye(t,function(t){var r=s;if(!r){if(n&&n.length&&(t=Ht(t,n)),null==t)return;r=t[e]}return null==r?r:r.apply(t,i)})});function ii(t,e){return Ye(t,Yt(e))}function ni(t,e){return Ge(t,Vt(e))}function si(t,e,i){var n,s,r=-1/0,a=-1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n>r&&(r=n);else e=Gt(e,i),Ve(t,function(t,i,n){((s=e(t,i,n))>a||s===-1/0&&r===-1/0)&&(r=t,a=s)});return r}function ri(t,e,i){var n,s,r=1/0,a=1/0;if(null==e||"number"==typeof e&&"object"!=typeof t[0]&&null!=t)for(var o=0,l=(t=_e(t)?t:At(t)).length;o<l;o++)null!=(n=t[o])&&n<r&&(r=n);else e=Gt(e,i),Ve(t,function(t,i,n){((s=e(t,i,n))<a||s===1/0&&r===1/0)&&(r=t,a=s)});return r}var ai=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function oi(t){return t?V(t)?c.call(t):I(t)?t.match(ai):_e(t)?Ye(t,Wt):At(t):[]}function li(t,e,i){if(null==e||i)return _e(t)||(t=At(t)),t[ee(t.length-1)];var n=oi(t),s=st(n);e=Math.max(Math.min(e,s),0);for(var r=s-1,a=0;a<e;a++){var o=ee(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,e)}function ci(t){return li(t,1/0)}function ui(t,e,i){var n=0;return e=Gt(e,i),ii(Ye(t,function(t,i,s){return{value:t,index:n++,criteria:e(t,i,s)}}).sort(function(t,e){var i=t.criteria,n=e.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return-1}return t.index-e.index}),"value")}function di(t,e){return function(i,n,s){var r=e?[[],[]]:{};return n=Gt(n,s),Ve(i,function(e,s){var a=n(e,s,i);t(r,e,a)}),r}}var hi=di(function(t,e,i){Y(t,i)?t[i].push(e):t[i]=[e]}),pi=di(function(t,e,i){t[i]=e}),fi=di(function(t,e,i){Y(t,i)?t[i]++:t[i]=1}),gi=di(function(t,e,i){t[i?0:1].push(e)},!0);function mi(t){return null==t?0:_e(t)?t.length:at(t).length}function vi(t,e,i){return e in i}var bi=C(function(t,e){var i={},n=e[0];if(null==t)return i;z(n)?(e.length>1&&(n=qt(n,e[1])),e=gt(t)):(n=vi,e=xe(e,!1,!1),t=Object(t));for(var s=0,r=e.length;s<r;s++){var a=e[s],o=t[a];n(o,a,t)&&(i[a]=o)}return i}),yi=C(function(t,e){var i,n=e[0];return z(n)?(n=Ie(n),e.length>1&&(i=e[1])):(e=Ye(xe(e,!1,!1),String),n=function(t,i){return!ti(e,i)}),bi(t,n,i)});function wi(t,e,i){return c.call(t,0,Math.max(0,t.length-(null==e||i?1:e)))}function _i(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[0]:wi(t,t.length-e)}function xi(t,e,i){return c.call(t,null==e||i?1:e)}function Ci(t,e,i){return null==t||t.length<1?null==e||i?void 0:[]:null==e||i?t[t.length-1]:xi(t,Math.max(0,t.length-e))}function Ti(t){return Ge(t,Boolean)}function ki(t,e){return xe(t,e,!1)}var Ei=C(function(t,e){return e=xe(e,!0,!0),Ge(t,function(t){return!ti(e,t)})}),Ai=C(function(t,e){return Ei(t,e)});function Si(t,e,i,n){A(e)||(n=i,i=e,e=!1),null!=i&&(i=Gt(i,n));for(var s=[],r=[],a=0,o=st(t);a<o;a++){var l=t[a],c=i?i(l,a,t):l;e&&!i?(a&&r===c||s.push(l),r=c):i?ti(r,c)||(r.push(c),s.push(l)):ti(s,l)||s.push(l)}return s}var Di=C(function(t){return Si(xe(t,!0,!0))});function Ii(t){for(var e=[],i=arguments.length,n=0,s=st(t);n<s;n++){var r=t[n];if(!ti(e,r)){var a;for(a=1;a<i&&ti(arguments[a],r);a++);a===i&&e.push(r)}}return e}function Mi(t){for(var e=t&&si(t,st).length||0,i=Array(e),n=0;n<e;n++)i[n]=ii(t,n);return i}var Ni=C(Mi);function Oi(t,e){for(var i={},n=0,s=st(t);n<s;n++)e?i[t[n]]=e[n]:i[t[n][0]]=t[n][1];return i}function Li(t,e,i){null==e&&(e=t||0,t=0),i||(i=e<t?-1:1);for(var n=Math.max(Math.ceil((e-t)/i),0),s=Array(n),r=0;r<n;r++,t+=i)s[r]=t;return s}function Pi(t,e){if(null==e||e<1)return[];for(var i=[],n=0,s=t.length;n<s;)i.push(c.call(t,n,n+=e));return i}function Ri(t,e){return t._chain?ct(e).chain():e}function $i(t){return Ve(It(t),function(e){var i=ct[e]=t[e];ct.prototype[e]=function(){var t=[this._wrapped];return l.apply(t,arguments),Ri(this,i.apply(ct,t))}}),ct}Ve(["pop","push","reverse","shift","sort","splice","unshift"],function(t){var e=r[t];ct.prototype[t]=function(){var i=this._wrapped;return null!=i&&(e.apply(i,arguments),"shift"!==t&&"splice"!==t||0!==i.length||delete i[0]),Ri(this,i)}}),Ve(["concat","join","slice"],function(t){var e=r[t];ct.prototype[t]=function(){var t=this._wrapped;return null!=t&&(t=e.apply(t,arguments)),Ri(this,t)}});var ji=$i({__proto__:null,VERSION:n,restArguments:C,isObject:T,isNull:k,isUndefined:E,isBoolean:A,isElement:S,isString:I,isNumber:M,isDate:N,isRegExp:O,isError:L,isSymbol:P,isArrayBuffer:R,isDataView:W,isArray:V,isFunction:z,isArguments:K,isFinite:Q,isNaN:G,isTypedArray:nt,isEmpty:ot,isMatch:lt,isEqual:ft,isMap:Ct,isWeakMap:Tt,isSet:kt,isWeakSet:Et,keys:at,allKeys:gt,values:At,pairs:St,invert:Dt,functions:It,methods:It,extend:Nt,extendOwn:Ot,assign:Ot,defaults:Lt,create:Rt,clone:$t,tap:jt,get:Bt,has:Ut,mapObject:Jt,identity:Wt,constant:J,noop:Zt,toPath:zt,property:Yt,propertyOf:Xt,matcher:Vt,matches:Vt,times:te,random:ee,now:ie,escape:re,unescape:ae,templateSettings:oe,template:pe,result:fe,uniqueId:me,chain:ve,iteratee:Qt,partial:ye,bind:we,bindAll:Ce,memoize:Te,delay:ke,defer:Ee,throttle:Ae,debounce:Se,wrap:De,negate:Ie,compose:Me,after:Ne,before:Oe,once:Le,findKey:Pe,findIndex:$e,findLastIndex:je,sortedIndex:ze,indexOf:He,lastIndexOf:Be,find:Ue,detect:Ue,findWhere:We,each:Ve,forEach:Ve,map:Ye,collect:Ye,reduce:Ke,foldl:Ke,inject:Ke,reduceRight:Qe,foldr:Qe,filter:Ge,select:Ge,reject:Je,every:Ze,all:Ze,some:Xe,any:Xe,contains:ti,includes:ti,include:ti,invoke:ei,pluck:ii,where:ni,max:si,min:ri,shuffle:ci,sample:li,sortBy:ui,groupBy:hi,indexBy:pi,countBy:fi,partition:gi,toArray:oi,size:mi,pick:bi,omit:yi,first:_i,head:_i,take:_i,initial:wi,last:Ci,rest:xi,tail:xi,drop:xi,compact:Ti,flatten:ki,without:Ai,uniq:Si,unique:Si,union:Di,intersection:Ii,difference:Ei,unzip:Mi,transpose:Mi,zip:Ni,object:Oi,range:Li,chunk:Pi,mixin:$i,default:ct});ji._=ji,e.VERSION=n,e._=ji,e._escape=re,e._unescape=ae,e.after=Ne,e.allKeys=gt,e.before=Oe,e.bind=we,e.bindAll=Ce,e.chain=ve,e.chunk=Pi,e.clone=$t,e.compact=Ti,e.compose=Me,e.constant=J,e.contains=ti,e.countBy=fi,e.create=Rt,e.debounce=Se,e.defaults=Lt,e.defer=Ee,e.delay=ke,e.difference=Ei,e.each=Ve,e.every=Ze,e.extend=Nt,e.extendOwn=Ot,e.filter=Ge,e.find=Ue,e.findIndex=$e,e.findKey=Pe,e.findLastIndex=je,e.findWhere=We,e.first=_i,e.flatten=ki,e.functions=It,e.get=Bt,e.groupBy=hi,e.has=Ut,e.identity=Wt,e.indexBy=pi,e.indexOf=He,e.initial=wi,e.intersection=Ii,e.invert=Dt,e.invoke=ei,e.isArguments=K,e.isArray=V,e.isArrayBuffer=R,e.isBoolean=A,e.isDataView=W,e.isDate=N,e.isElement=S,e.isEmpty=ot,e.isEqual=ft,e.isError=L,e.isFinite=Q,e.isFunction=z,e.isMap=Ct,e.isMatch=lt,e.isNaN=G,e.isNull=k,e.isNumber=M,e.isObject=T,e.isRegExp=O,e.isSet=kt,e.isString=I,e.isSymbol=P,e.isTypedArray=nt,e.isUndefined=E,e.isWeakMap=Tt,e.isWeakSet=Et,e.iteratee=Qt,e.keys=at,e.last=Ci,e.lastIndexOf=Be,e.map=Ye,e.mapObject=Jt,e.matcher=Vt,e.max=si,e.memoize=Te,e.min=ri,e.mixin=$i,e.negate=Ie,e.noop=Zt,e.now=ie,e.object=Oi,e.omit=yi,e.once=Le,e.pairs=St,e.partial=ye,e.partition=gi,e.pick=bi,e.pluck=ii,e.property=Yt,e.propertyOf=Xt,e.random=ee,e.range=Li,e.reduce=Ke,e.reduceRight=Qe,e.reject=Je,e.rest=xi,e.restArguments=C,e.result=fe,e.sample=li,e.shuffle=ci,e.size=mi,e.some=Xe,e.sortBy=ui,e.sortedIndex=ze,e.tap=jt,e.template=pe,e.templateSettings=oe,e.throttle=Ae,e.times=te,e.toArray=oi,e.toPath=zt,e.union=Di,e.uniq=Si,e.uniqueId=me,e.unzip=Mi,e.values=At,e.where=ni,e.without=Ai,e.wrap=De,e.zip=Ni},126:(t,e,i)=>{var n=i(171);t.exports=n._}},i={};function n(t){var s=i[t];if(void 0!==s)return s.exports;var r=i[t]={exports:{}};return e[t].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var s={};return(()=>{"use strict";n.r(s),n.d(s,{$:()=>Rt,AvatarBadged:()=>Bt,AvatarEl:()=>Jt,AvatarGroupEl:()=>le,CalendarWidget:()=>Jl,DatePicker:()=>tc,DropdownEl:()=>Vn,FancyFileInput:()=>us,FocusManager:()=>tu,Header:()=>Wl,I18n:()=>I18n,InlineDialog2:()=>eu,InlineDialogEl:()=>Qa,ItemButtonEl:()=>Hn,ItemCheckboxEl:()=>Bn,ItemLinkEl:()=>Fn,ItemRadioEl:()=>Un,LabelEl:()=>fs,LayerManager:()=>iu,MessageEl:()=>ts,NavigationEl:()=>Za,ProgressBarEl:()=>uo,ProgressiveDataSet:()=>nu,RestfulTable:()=>xc,SectionEl:()=>Wn,SelectEl:()=>Gs,SpinnerEl:()=>ye,TabContainerEl:()=>Po,TabItemEl:()=>Ro,TabPaneEl:()=>$o,ToggleEl:()=>Ia,_addID:()=>xu,banner:()=>ue,bind:()=>C,clone:()=>su,contextPath:()=>Cu,debounce:()=>ru,debounceImmediate:()=>au,dialog2:()=>De,dim:()=>ou,error:()=>m,escapeHtml:()=>lu,flag:()=>ls,formValidation:()=>cu,format:()=>b,id:()=>uu,isClipped:()=>du,keyCode:()=>hu,layer:()=>pu,log:()=>f,messages:()=>fu,navigation:()=>Xa,params:()=>mu,populateParameters:()=>gu,progressBars:()=>po,responsiveheader:()=>vu,select:()=>bu,sidebar:()=>Wc,tablessortable:()=>yu,tabs:()=>wu,toInit:()=>jt,trigger:()=>k,unbind:()=>T,undim:()=>_u,version:()=>w,warn:()=>g,whenIType:()=>Xc});var t=n(687),e=n.n(t);const i=window.jQuery||window.Zepto||e(),r="AJS",a="I18n";function o(){"object"!=typeof window[r]&&(window[r]={})}function l(t,e){return o(),window[r][t]=e}var c=n(714),u=n.n(c);function d(t){let i;return{type:u().type.CLASSNAME,attached:function(n){!function(t,e){let i=!1;if(e(()=>{i=!0}),i)return;const n=new MutationObserver(t=>{(function(t){for(const e of t)if("childList"===e.type)return!0;return!1})(t)&&e(()=>n.disconnect())});n.observe(t,{childList:!0})}(n,s=>{i=s;const r=e()(`input[type=${t}]`,n);r.each(function(t,i){e()('<span class="aui-form-glyph"></span>').insertAfter(i)});r.length>0&&i()})},detached:function(t){e()(".aui-form-glyph",t).remove(),i&&i()}}}function h(t,e){var n=i(t);return void 0===e&&(e=!0),n.each(function(){this.disabled=!e})}function p(t){return function(){"undefined"!=typeof console&&console[t]&&Function.prototype.apply.call(console[t],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 t=i(this).siblings(".field-help");t.hasClass("hidden")?t.removeClass("hidden"):t.addClass("hidden")})});var f=p("log"),g=p("warn"),m=p("error");function v(t){var e=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(e,a){var o,l="";if(o=e.match(i))l=a.length>++e?a[e]:"";else if(o=e.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=e.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),d=!1,h=null,p=0;p<u.length;p++){var f=u[p].match(r);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 "'+e+'" from message "'+t+'" is invalid.');var b=[l].concat(Array.prototype.slice.call(a,1));l=v.apply(null,b)}}return l},o=function(t){for(var e=!1,i=-1,n=0,s=0;s<t.length;s++){var r=t.charAt(s);if("'"==r&&(e=!e),!e)if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0===--n){var a=[];return a.push(t.substring(0,s+1)),a.push(t.substring(0,i)),a.push(t.substring(i+1,s)),a}}return null};return function(t){var i=arguments,n="";if(!t)return n;for(var s=o(t);s;)t=t.substring(s[0].length),n+=s[1].replace(e,""),n+=a(s[2],i),s=o(t);return n+=t.replace(e,"")}.apply(null,arguments)}l("error",m),l("log",f),l("warn",g),l("format",v);const b=v;var y="10.0.4";l("version",y);const w=y,_=!1,x=i(window);function C(t,e,i){try{return"function"==typeof i?x.on(t,_,e,i):x.on(t,_,e)}catch(t){f("error while binding: ",t.message)}}function T(t,e){try{return x.off(t,e)}catch(t){f("error while unbinding: ",t.message)}}function k(t,e){try{return x.trigger(t,e)}catch(t){f("error while triggering: "+t.message)}}l("bind",C),l("trigger",k),l("unbind",T);const E={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},A=new RegExp(`[${Object.keys(E).join("")}]`,"g");function S(t){return t.replace(A,t=>E[t])}l("escapeHtml",S);const D=S,I=Object.prototype.hasOwnProperty,M=[];function N(...t){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,t)}const O=(t,e)=>L(t,e);function L(t,e){if("function"==typeof t)return t;let i=!1;return e=e??{},function(n){let s=function(t){const e=new Error;let i=e.stack??e.stacktrace;return i=i?.replace(/^Error\n/,"")??"",i.split("\n")[t+2]}(n||1)??"";if(!i||!M.includes(s)){M.push(s),i=!0;let n="DEPRECATED "+(e.deprecationType??"")+"- "+(((r=t)?(r=""+r).charAt(0).toUpperCase()+r.substring(1):"")+" has been deprecated")+(e.sinceVersion?" since "+e.sinceVersion:"")+" and will be removed in "+(e.removeInVersion??"a future release")+".";e.alternativeName&&(n+=" Use "+e.alternativeName+" instead. "),e.extraInfo&&(n+=" "+e.extraInfo),s=""===s?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(s),e.extraObject?(n+="\n",N(n,e.extraObject,s)):N(n,s)}var r}}function P(t,e){let i=t.options?.displayName;i=i?" ("+i+")":"";const n=Object.assign({deprecationType:"CSS",extraObject:e},t.options);L("'"+t.selector+"' pattern"+i,n)()}function R(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=L(e||t.name||"this function",i);return function(...e){return n(),t.apply(this,e)}}function $(t,e,i){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=R(t,e,i);return n.prototype=t.prototype,Object.assign(n,t),n}function j(t,e,i){if("function"==typeof t[e]){(i=i??{}).deprecationType=i.deprecationType??"JS";const n=i.displayName??e;t[e]=R(t[e],n,i)}else!function(t,e,i){let n=t[e];(i=i??{}).deprecationType=i.deprecationType??"JS";const s=L(i.displayName??e,i);Object.defineProperty(t,e,{get:function(){return s(),n},set:function(t){return n=t,s(),t}})}(t,e,i)}function z(t){return function(e){const i={selector:e,options:t},n=document.querySelectorAll(e);for(const t of n)P(i,t);!function(t){if(H.push(t),void 0===B){B=new MutationObserver(function(t){t.forEach(function(t){const e=t.addedNodes;for(const t of e)1===t.nodeType&&H.forEach(F(t))})});const t={childList:!0,subtree:!0};B.observe(document,t)}}(i)}}function F(t){return function(e){var i,n;i=t,n=e.selector,i instanceof Element&&i.matches(n)&&P(e,t)}}const H=[];let B;function U(t){t=t.jquery?t[0]:t,window.getComputedStyle(t,null).getPropertyValue("left")}var W;function V(t,e){W||(W=document.body),!0===t&&q();const n=!!V.$dim&&!V.$dim[0].hasAttribute("hidden");return V.$dim&&(V.$dim.remove(),V.$dim=null),V.$dim=i('<div aria-hidden="true"></div>').addClass("aui-blanket"),V.$dim.appendTo(document.body),n||(U(V.$dim),V.cachedOverflow={overflow:W.style.overflow,overflowX:W.style.overflowX,overflowY:W.style.overflowY},W.style.overflowX="hidden",W.style.overflowY="hidden",W.style.overflow="hidden"),V.$dim.removeAttr("hidden"),e&&V.$dim.css({zIndex:e}),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(t,e){"string"==typeof t&&(t=[t]),t.forEach(z(e))},prop:j,obj:function(t,e,i){i=i??{};for(const n in t)I.call(t,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=e+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,j(t,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(t,e){window.define&&(0,window.define)(t,[],function(){return e});return e}const J=u().noConflict();const Z=function(t){return{set:function(e,i){void 0===t._state&&(t._state={}),t._state[e]=i},get:function(e){if(t._state)return t._state[e]}}};function X(t){return Z(t).get("last-trigger")||nt(t)[0]}function tt(t,e){var i=e&&e.nodeType&&1===e.nodeType;return Z(t).set("last-trigger",!!i&&e)}function et(t,e){var i=X(t);i&&e(i)}function it(t,e){return Array.prototype.forEach.call(nt(t),e)}function nt(t){const e=window.frames,i=`[aria-controls="${t.id}"]`;let n=[],s=!1;for(let t=0;t<e.length;t++)try{let s=e[t].document.querySelectorAll(i);n=n.concat(Array.prototype.slice.apply(s))}catch(t){s=!0}const r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&g([`No triggers found for element (${t.id}) in iframes from the same origin.`,"However some iframes in this document are cross-origin.","The trigger-element relations crossing the origin boundary are not supported."].join(" ")),a}function st(t){return document.getElementById(t.getAttribute("aria-controls"))}function rt(t){return"true"!==t.getAttribute("aria-disabled")}function at(t,e){if(rt(t)){var i=st(t);i&&i.message&&i.message(e)}}const ot={click(t,e){(function(t,e){var n=i(e).closest("a[href]",t);return!!n.length&&n[0]!==t})(t,e.target)||(at(t,e),e.preventDefault())},keydown(t,e){const i=e.data;i!==Q.ENTER&&i!==Q.SPACE||(e.preventDefault(),e.type="click",ot.click(t,e))},mouseenter(t,e){at(t,e)},mouseleave(t,e){at(t,e)},focus(t,e){at(t,e)},blur(t,e){(function(t,e){let n=e.relatedTarget;return n||(n=document.activeElement),i(st(t)).find(n).length>0})(t,e)||at(t,e)}};Object.keys(ot).forEach(function(t){const e=ot[t];i(document).on(`${t}.aui-trigger`,"[data-aui-trigger]",function(i){e(i.currentTarget,function(t,e){const{target:i,currentTarget:n,relatedTarget:s}=t,{keyCode:r,which:a}=t;return{type:e,data:"keydown"===e?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>t.preventDefault()}}(i,t))})}),J("data-aui-trigger",{type:J.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return rt(this)}}}),G("aui/trigger"),function(){function t(t){return"visible"===i.css(t,"visibility")&&i(t).is(":visible")}function e(e,n){var s=e.nodeName.toLowerCase();if("aui-select"===s)return!0;if("area"===s){var r=e.parentNode,a=r.name,o=i("img[usemap=#"+a+"]").get();return!(!e.href||!a||"map"!==r.nodeName.toLowerCase())&&(o&&t(o))}var l=/input|select|textarea|button|object|iframe/.test(s),c="a"===s,u=e.href||n;return(l?!e.disabled:c?u:n)&&t(e)}i.extend(i.expr.pseudos,{"aui-focusable":t=>e(t,!isNaN(i.attr(t,"tabindex"))),"aui-tabbable":function(t){var n=i.attr(t,"tabindex"),s=isNaN(n);return(s||n>=0)&&e(t,!s)}})}();var lt="_aui-focus-restore";function ct(t){return t.is(".aui-dialog2")||t.is('[aui-focus-trap="true"]')}function ut(){this._focusTrapStack=[],this._handler}function dt(t,e){if(0===t.length)return;if(e.keyCode!==Q.TAB)return;const n=e.shiftKey?-1:1,s=e.target,r=t[t.length-1],a=r.find(":aui-tabbable");if(!a.length&&ct(r)&&(r.trigger("focus"),e.preventDefault()),!a.length)return;const o=a.index(s);let l=-1;if(o>-1)l=o;else{let t;if(t=i(s).closest(".aui-layer"),!t.length){t=r.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(s)}if(t.length){const e=t.find(":aui-tabbable"),i=e.index(s)+n;if(!(i<0||i>=e.length))return;{const e=X(t.get(0));l=a.index(e)}}}l=l>-1?function(t,e,i,n){function s(t){return(t+i)%n.length}let r=s(e);if("radio"===t.type&&t.name)for(;n.eq(r).attr("name")===t.name&&r!==e;)r=s(r);if(r!==e&&"radio"===n.eq(r).attr("type")){const t=n.eq(r).attr("name"),e=n.filter(function(){return"radio"===this.type&&this.name===t}),s=e.filter(":checked");let a;a=s.length>0?s.first():i>0?e.first():e.last(),r=n.index(a)}return r}(s,l,n,a):0,"IFRAME"!==a.get(l).nodeName&&(a.eq(l).trigger("focus"),e.preventDefault())}let ht;function pt(){return ht||(ht=new ut),ht}ut.defaultFocusSelector=":aui-tabbable",ut.prototype.enter=function(t,e){if(function(t,e=document.activeElement){t.data(lt,e)}(t,e),"false"!==t.attr("data-aui-focus")){var n=t.attr("data-aui-focus-selector")||ut.defaultFocusSelector;(t.is(n)?t:t.find(n)).first().trigger("focus")}ct(t)&&(this._focusTrapStack.push(t),this._handler||(this._handler=dt.bind(void 0,this._focusTrapStack),i(document).on("keydown.aui-focus-manager",this._handler)))},ut.prototype.exit=function(t){ct(t)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(t),1),this._focusTrapStack.length||(i(document).off(".aui-focus-manager",this._handler),delete this._handler));var e=document.activeElement;if(t[0]===e||t.has(e).length){e.blur();var n=function(t){return i(t.data(lt))}(t);n.length&&(t.removeData(lt),n.trigger("focus"))}},pt.global=pt(),l("FocusManager",pt);const ft=pt;function gt(t,e){var n="_aui-widget-"+t;return function(t,s){var r,a;i.isPlainObject(t)?a=t:(r=t,a=s);var o,l=r&&i(r);return l&&l.data(n)?o=l.data(n):(l=(o=new e(l,a||{})).$el).data(n,o),o}}const mt="_aui-internal-layer-",vt="_aui-internal-layer-global-";var bt=i(document);function yt(t,e,i,n){!function(t,e){var i=window.getComputedStyle(t).transitionProperty;return!!i&&i.indexOf(e)>-1}(t,e)?i.call(t):t.addEventListener("transitionend",function s(r){e===r.propertyName&&(i.call(t),n&&t.removeEventListener("transitionend",s))})}function wt(t,e,n){var s=i.Event(mt+e),r=i.Event(vt+e),a=new CustomEvent("aui-layer-"+n,{bubbles:!0,cancelable:!0}),o=new CustomEvent("aui-"+n,{bubbles:!0,cancelable:!0});return t.trigger(s),t.trigger(r,[t]),t[0].dispatchEvent(a),t[0].dispatchEvent(o),!(s.isDefaultPrevented()||r.isDefaultPrevented()||a.defaultPrevented||o.defaultPrevented)}function _t(t){this.$el=i(t||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function xt(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}_t.prototype={below:function(){return Dt.global.item(Dt.global.indexOf(this.$el)-1)},above:function(){return Dt.global.item(Dt.global.indexOf(this.$el)+1)},changeSize:function(t,e){return this.$el.css("width",t),this.$el.css("height","content"===e?"":e),this},on:function(t,e){return this.$el.on(mt+t,e),this},off:function(t,e){return this.$el.off(mt+t,e),this},show:function(){return this.isVisible()||Dt.global.indexOf(this.$el)>-1?this:wt(this.$el,"beforeShow","show")?("none"===this.$el.css("display")&&this.$el.css("display",""),Dt.global.push(this.$el),this):this},hide:function(){if(!this.isVisible())return this;const t=this;return yt(this.$el.get(0),"opacity",function(){t.isVisible()||(this.style.display="none")},!0),Dt.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 t=xt(this.el,"modal"),e=this.el.hasAttribute("persistent");return"true"===t||e},getDOMContainer:function(){let t=xt(this.el,"dom-container");return t&&(t=document.querySelector(t)||document.body),t},_hideLayer:function(t){return!(t&&!wt(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&ft.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(mt+"hide"),this.$el.trigger(vt+"hide",[this.$el]),!0)},_showLayer:function(t){let e=this.getDOMContainer();if(this.isBlanketed()||e){let t=e||"body";this.$el.parent().is(t)||this.$el.appendTo(t)}this.$el.data("_aui-layer-shown",!0),this.$el.data("_aui-layer-cached-z-index",this.$el.css("z-index")),this.$el.css("z-index",t),this.el.removeAttribute("hidden"),this.el.setAttribute("open",""),this.isBlanketed()&&ft.global.enter(this.$el),this.$el.trigger(mt+"show"),this.$el.trigger(vt+"show",[this.$el])}};var Ct=gt("layer",_t);function Tt(t,e){for(var i=t.length;i--;)if(e(t[i]))return i;return-1}function kt(t,e){return Tt(t,function(t){return t[0]===e[0]})}function Et(t){return Tt(t,function(t){return Ct(t).isBlanketed()})}function At(t,e){var i=Et(t);e!==i&&(i>-1?V(!1,t[i].css("z-index")-20):Y())}function St(t,e,i,n=!0){if(e<0)return[!1,null];for(var s,r=t.length-1;r>=e;r--){s=t[r];var a=Ct(s);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];t.splice(r,1)}}return[!0,s]}function Dt(){this._stack=[]}function It(t){if(!t.length)return!1;var e=document.getElementById(t.attr("aria-controls"));return Dt.global.indexOf(e)>-1}Ct.on=function(t,e,i){return bt.on(vt+t,e,i),this},Ct.off=function(t,e,i){return bt.off(vt+t,e,i),this},Dt.prototype={push:function(t){var e=t instanceof i?t:i(t);if(kt(this._stack,e)>=0)throw new Error("The given element is already an active layer.");this.popLayersBeside(e);var n=Ct(e),s=function(t){var e;if(t.length){var i=t[t.length-1],n=parseInt(i.css("z-index"),10);e=(isNaN(n)?0:n)+100}else e=0;return Math.max(3e3,e)}(this._stack);return n._showLayer(s),n.isBlanketed()&&V(!1,s-20),this._stack.push(e),this},popLayersBeside:function(t){const e=i(t).get(0);if(!function(t){return!!X(t)}(e)){var n=Et(this._stack);return void St(this._stack,++n,!1)}const s=function(t){var e=X(t);if(e)return i(e).closest(".aui-layer").get(0)}(e);if(s){let t=this.indexOf(s);St(this._stack,++t,!1)}else St(this._stack,0,!1)},indexOf:function(t){return kt(this._stack,i(t))},item:function(t){return this._stack[t]},hideAll:function(){return this._stack.slice().reverse().forEach(function(t){let e=Ct(t);e.isBlanketed()||e.isPersistent()||e.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s--;s>=0;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()||r.isBlanketed())return e;s--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(t){var e,n=t instanceof i?t:i(t),s=kt(this._stack,n);if(s<0)return null;for(s++;s<this._stack.length;){e=this._stack[s];var r=Ct(e);if(!r.isPersistent()&&!r.isBlanketed())return e;s++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(t=>t.attr("open"))||null},popUntil:function(t,e=!1){var n=t instanceof i?t:i(t),s=kt(this._stack,n);if(-1===s)return null;const r=Et(this._stack),a=Ct(n),[o,l]=St(this._stack,s+1,a.isBlanketed(),e);return o&&a._hideLayer(e)?(this._stack.splice(s,1),At(this._stack,r),n):l},popTopIfNonPersistent:function(t=!1){var e=this.getTopLayer(),i=Ct(e);return!e||i.isPersistent()?null:this.popUntil(e,t)},popUntilTopBlanketed:function(t=!1){var e=Et(this._stack);if(e<0)return null;var i=this._stack[e];if(Ct(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=kt(this._stack,n);return St(this._stack,s,!0,t),n}return null}return St(this._stack,e,!0),At(this._stack,e),i},popUntilTopPersistent:function(t=!1){var e=Dt.global.getTopLayer();if(e){var i,n=Et(this._stack),s=Ct(e);if(s.isPersistent()){if(s.isBlanketed())return;if(e=Dt.global.getNextLowerNonPersistentOrBlanketedLayer(e),s=Ct(e),!e||s.isPersistent())return;i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}else i=kt(this._stack,e),St(this._stack,i,!0,t),At(this._stack,n)}}},bt.on("keydown",function(t){t.keyCode===Q.ESCAPE&&(Dt.global.popUntilTopPersistent(!0),t.preventDefault())}),bt.on("click",".aui-blanket",function(t){Dt.global.popUntilTopBlanketed(!0)&&t.preventDefault()}),bt.on("click",function(t){var e=i(t.target);if(!e.closest(".aui-blanket").length){var n=e.closest("[aria-controls]"),s=e.closest(".aui-layer");if(!s.length&&!It(n)){const e=i.Event("aui-close-layers-on-outer-click");return bt.trigger(e),e.isDefaultPrevented()?void t.preventDefault():void Dt.global.hideAll()}if(!It(n)&&s.length){var r=Dt.global.getNextHigherNonPeristentAndNonBlanketedLayer(s);r&&Ct(r).hide()}}}),Dt.global=new Dt,Ct.Manager=Dt,l("layer",Ct);const Mt=Ct;l("LayerManager",Mt.Manager);Mt.Manager;const Nt={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},Ot=l("params",new Proxy({},{get:function(t,e){return O("AJS.params",Nt)(),t[e]}}));const Lt=R(function(t){t||(t=Ot),i(".parameters input").each(function(){var e=this.value,n=this.title||this.id;i(this).hasClass("list")?t[n]?t[n].push(e):t[n]=[e]:t[n]=e.match(/^(tru|fals)e$/i)?"true"===e.toLowerCase():e})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});l("populateParameters",Lt);const Pt=Lt;i(function(){var t=i("body");t.data("auiVersion")||t.attr("data-aui-version",w),Pt()}),l("$",i);const Rt=i;function $t(t){return i.when(i.ready).then(function(){setTimeout(function(){try{t.call(this,i)}catch(e){m("Failed to run init function: "+e.message,t,e,e.stack)}},1)}),this}l("toInit",$t);const jt=$t;n(547);const zt={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(t,...e){return Object.prototype.hasOwnProperty.call(this.keys,t)?b.apply(null,[this.keys[t]].concat(e)):t}},I18n=function(t){o(),"object"!=typeof window[r][a]&&(window[r][a]={});const e=window[r][a];for(const i in t)void 0===e[i]&&(e[i]=t[i]);return e}(zt),Ft="bottom-end",Ht=["top-start","top-end","bottom-start","bottom-end"],Bt=J("aui-avatar-badged",{attributes:{placement:{value:Ft,fallback(t,{newValue:e,oldValue:i}){((t,e,i)=>{const n=Ht.includes(e)?e:Ft;i&&t.classList.remove(`aui-avatar-badged-${i}`),t.classList.add(`aui-avatar-badged-${n}`)})(t,e,i)}}},created:function(t){t.classList.add("aui-avatar-badged")}});var Ut=n(2),Wt=n.n(Ut);const Vt=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),Yt=(t,e)=>t.querySelector(e),qt=(t,e,i)=>{const n=Yt(t,".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${e}`)},Kt=t=>{if(t.hasAttribute("src"))Gt(t,t.getAttribute("src"));else{const e=(t=>"project"===t.getAttribute("type")?"project":"user")(t),i=Vt.get(e);Gt(t,i)}},Qt=(t,e,i)=>Yt(t,"img").setAttribute(e,i),Gt=(t,e)=>Qt(t,"src",e),Jt=J("aui-avatar",{template:Wt()("\n <span class='aui-avatar'>\n <span class='aui-avatar-inner'>\n <img />\n </span>\n <content></content>\n </span>\n "),attributes:{size(t,{newValue:e,oldValue:i}){qt(t,e,i)},type(t,{newValue:e,oldValue:i}){qt(t,e,i),Kt(t)},src(t,{newValue:e}){Gt(t,e)},alt:{value:"",fallback(t,{newValue:e}){((t,e)=>{Qt(t,"alt",e)})(t,e)}},title(t,{newValue:e}){((t,e)=>{Qt(t,"title",e)})(t,e)}},created:function(t){t.className="aui-avatar",Kt(t),(t=>null!==t.querySelector("aui-avatar-badged"))(t)&&t.setAttribute("role","img")}}),Zt="medium",Xt={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},te=(t,e)=>{const i=t.querySelectorAll("aui-avatar"),n=[...i].slice(4);se(i,e);const s=t.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;const r=ee(e,n);t.appendChild(r)},ee=(t,e)=>{const i=document.createElement("div"),n=ie(`+${e.length}`),s=ne();return e.forEach(t=>{s.append(t)}),i.classList.add("aui-avatar-group-dropdown"),i.style.left=re(t,4.2),i.appendChild(n),i.appendChild(s),i},ie=t=>{const e=document.createElement("button");return e.classList.add("aui-avatar-group-dropdown-button","aui-avatar-inner"),e.innerText=t,e.setAttribute("aria-expanded",!1),e.setAttribute("aria-haspopup","dialog"),e},ne=()=>{const t=document.createElement("div");return t.classList.add("aui-avatar-group-dropdown-menu"),t},se=(t,e)=>{t.forEach((t,i)=>{const n=i>=4;t.classList.add(n?"aui-avatar-group-dropdown-item":"aui-avatar-group-item"),n?t.setAttribute("size","medium"):(t.setAttribute("size",e),t.style.left=re(e,i),t.style.zIndex=""+(5-i))})},re=(t,e)=>{const i=Xt[t];return`${(i-.25*i)*e}px`};document.addEventListener("click",t=>{const e=t.target.matches(".aui-avatar-group-dropdown-button"),i=t.target.closest(".aui-avatar-group-dropdown");(e||null===i)&&(e&&(i.classList.contains("aui-avatar-group-dropdown-show")?ae(i):oe(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach(t=>{t!==i&&ae(t)}))}),document.addEventListener("keydown",t=>{if("Escape"!==t.key)return;const e=document.querySelector(".aui-avatar-group-dropdown-show");e&&ae(e)});const ae=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.remove("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","false")},oe=t=>{const e=t.querySelector(".aui-avatar-group-dropdown-button");t.classList.add("aui-avatar-group-dropdown-show"),e.setAttribute("aria-expanded","true")},le=J("aui-avatar-group",{attributes:{size:{value:Zt,fallback(t,{newValue:e,oldValue:i}){const n=(s=e,Object.keys(Xt).includes(s)?s:Zt);var s;((t,e,i)=>{i&&t.classList.remove(`aui-avatar-group-${i}`),t.classList.add(`aui-avatar-group-${e}`)})(t,n,i),J.init(t),te(t,n)}}},created(t){t.classList.add("aui-avatar-group")}});new MutationObserver(function(t){t.forEach(function(t){const e=t.target;((t,e)=>t.removedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.removedNodes[0].classList.contains("aui-avatar-group-item"))(t,e)&&te(e,e.getAttribute("size")),((t,e)=>t.addedNodes.length>0&&e.classList.contains("aui-avatar-group")&&t.addedNodes[0].classList.contains("aui-avatar"))(t,e)&&setTimeout(()=>{te(e,e.getAttribute("size"))},0)})}).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1});function ce(t){const e=document.getElementById("header");if(!e)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:t="",type:e="error"}){const i=document.createElement("div");i.className=`aui-banner aui-banner-${e}`,i.setAttribute("role","alert"),i.innerHTML=t;const n=document.createElement("div");return n.innerText=`${e}`,n.classList.add("assistive"),i.prepend(n),i}(t);return function(t,e){e.prepend(t),U(t)}(i,e),function(t){const e=t.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."});e.forEach(function(t){i(),t.remove()})}(e),i}G("aui/banner",ce),l("banner",ce);const ue=ce;var de=n(126);const he={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},pe={filled:!1,size:he.MEDIUM.name},fe="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.",ge=O("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe}),me=O("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:fe});function ve(t){let e=he.MEDIUM.name;if("string"==typeof t){t=t.toLowerCase();const i=Object.keys(he).map(t=>t.toLowerCase());i.indexOf(t)>-1&&(e=t)}return e}function be(t){const{px:e,radius:i}=(0,de.find)(he,e=>e.name===t._data.size)||he.MEDIUM;!function(t,e,i){const n=t.querySelector("svg"),s=t.querySelector("circle");n.setAttribute("size",e),n.setAttribute("height",e),n.setAttribute("width",e),n.setAttribute("viewBox",`0 0 ${e} ${e}`);const r=e/2;s.setAttribute("cx",r),s.setAttribute("cy",r),s.setAttribute("r",i)}(t,e,i),t._data.filled?function(t,e){const i=t.parentNode;if(i&&1===i.nodeType){const n=t.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+e/2;t.querySelector("svg").style.top=r-a+"px"}}(t,e):function(t){delete t.querySelector("svg").style.top}(t)}const ye=J("aui-spinner",{template(t){t.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',be(t)},attached(t){be(t)},attributes:{filled:{created:function(t){ge(),t._data.filled=!0,be(t)},removed:function(t){t._data.filled=!1,be(t)}},size(t,e){t._data.size=ve(e.newValue),be(t)}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},pe))},set _data(t){return this.__data=t},set filled(t){me(),t?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(t){const e=ve(t);this.setAttribute("size",e)}}});function we(t){return t.hasAttribute("aria-busy")&&"true"===t.getAttribute("aria-busy")}function _e(t){return"INPUT"===t.nodeName}J("aui-button",{type:J.type.CLASSNAME,created:function(t){t._spinner=new ye,t._spinner.setAttribute("size",he.SMALL.name)},prototype:{busy:function(){return _e(this)||we(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 _e(this)||!we(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 _e(this)?(g("It is not valid to call isBusy() on an input button."),!1):we(this)}}}),G("aui/button");const xe="aui-close-button",Ce=`.${xe}`,Te=`<button type="button" class="${xe}" aria-label="${I18n.getText("aui.words.close")}">`,ke={"aui-focus":"false","aui-blanketed":"true"};function Ee(t){var e;this._handlers=new WeakMap,this.$el=i(t||`\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 ${Te}\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"),e=this.$el,i.each(ke,function(t,i){const n="data-"+t;e[0].hasAttribute(n)||e.attr(n,i)})}Ee.prototype.on=function(t,e){const i=this.$el;if(!this._handlers.get(e)){const n=function(t){t.target===i.get(0)&&e.apply(this,arguments)};Mt(i).on(t,n),this._handlers.set(e,n)}return this},Ee.prototype.off=function(t,e){const i=this.$el,n=this._handlers.get(e);return n&&(Mt(i).off(t,n),this._handlers.delete(e)),this},Ee.prototype.show=function(){return Mt(this.$el).show(),this},Ee.prototype.hide=function(){return Mt(this.$el).hide(),this},Ee.prototype.remove=function(){return Mt(this.$el).remove(),this},Ee.prototype.isVisible=function(){return Mt(this.$el).isVisible()};var Ae=gt("dialog2",Ee),Se=new Set;Ae.on=function(t,e){return Se.has(e)||(Mt.on(t,".aui-dialog2",e),Se.add(e)),this},Ae.off=function(t,e){return Se.has(e)&&(Mt.off(t,".aui-dialog2",e),Se.delete(e)),this},i(document).on("click keydown",`.aui-dialog2-header ${Ce}`,function(t){("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE)&&(t.preventDefault(),Ae(i(t.target).closest(".aui-dialog2")).hide())}),Ae.on("show",function(t,e){!function(t){const e=t.querySelector(Ce);e&&(O(`Dialog2 [${Ce}]`,{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"})(),e.setAttribute("tabindex","0"));t.setAttribute("tabindex","-1");const i=t.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=t.querySelector("[autofocus]");if(n)return document.activeElement.blur(),void setTimeout(()=>n.focus(),0);if(i){const e=t.querySelector(i);if(e)return e.blur(),void setTimeout(()=>e.focus(),0)}const s=[...t.querySelectorAll('a[href], button, input, textarea, select, details,[tabindex]:not([tabindex="-1"])')].filter(t=>!t.hasAttribute("disabled")&&!t.getAttribute("aria-hidden"));if(s.length){let t=s.shift();return t.classList.contains(xe)&&(t=s.shift()),void(t&&(t.blur(),setTimeout(()=>t.focus(),0)))}t.focus()}(e[0])}),Ae.on("hide",function(t,e){const i=Mt(e);e.data("aui-remove-on-hide")&&i.remove()}),G("aui/dialog2",Ae),l("dialog2",Ae);const De=Ae;var Ie,Me,Ne=navigator.userAgent.toLowerCase(),Oe=(/msie/.test(Ne),/windows nt 5.1/.test(Ne),/windows nt 6.0/.test(Ne),/windows nt 6.1/.test(Ne),/mac os x/.test(Ne));function Le(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function Pe(t){return t instanceof Le(t).Element||t instanceof Element}function Re(t){return t instanceof Le(t).HTMLElement||t instanceof HTMLElement}function $e(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Le(t).ShadowRoot||t instanceof ShadowRoot)}var je=Math.max,ze=Math.min,Fe=Math.round;function He(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Be(){return!/^((?!chrome|android).)*safari/i.test(He())}function Ue(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,r=1;e&&Re(t)&&(s=t.offsetWidth>0&&Fe(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&Fe(n.height)/t.offsetHeight||1);var a=(Pe(t)?Le(t):window).visualViewport,o=!Be()&&i,l=(n.left+(o&&a?a.offsetLeft:0))/s,c=(n.top+(o&&a?a.offsetTop:0))/r,u=n.width/s,d=n.height/r;return{width:u,height:d,top:c,right:l+u,bottom:c+d,left:l,x:l,y:c}}function We(t){var e=Le(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Ve(t){return t?(t.nodeName||"").toLowerCase():null}function Ye(t){return((Pe(t)?t.ownerDocument:t.document)||window.document).documentElement}function qe(t){return Ue(Ye(t)).left+We(t).scrollLeft}function Ke(t){return Le(t).getComputedStyle(t)}function Qe(t){var e=Ke(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ge(t,e,i){void 0===i&&(i=!1);var n,s,r=Re(e),a=Re(e)&&function(t){var e=t.getBoundingClientRect(),i=Fe(e.width)/t.offsetWidth||1,n=Fe(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),o=Ye(e),l=Ue(t,a,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!i)&&(("body"!==Ve(e)||Qe(o))&&(c=(n=e)!==Le(n)&&Re(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:We(n)),Re(e)?((u=Ue(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):o&&(u.x=qe(o))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Je(t){var e=Ue(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Ze(t){return"html"===Ve(t)?t:t.assignedSlot||t.parentNode||($e(t)?t.host:null)||Ye(t)}function Xe(t){return["html","body","#document"].indexOf(Ve(t))>=0?t.ownerDocument.body:Re(t)&&Qe(t)?t:Xe(Ze(t))}function ti(t,e){var i;void 0===e&&(e=[]);var n=Xe(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),r=Le(n),a=s?[r].concat(r.visualViewport||[],Qe(n)?n:[]):n,o=e.concat(a);return s?o:o.concat(ti(Ze(a)))}function ei(t){return["table","td","th"].indexOf(Ve(t))>=0}function ii(t){return Re(t)&&"fixed"!==Ke(t).position?t.offsetParent:null}function ni(t){for(var e=Le(t),i=ii(t);i&&ei(i)&&"static"===Ke(i).position;)i=ii(i);return i&&("html"===Ve(i)||"body"===Ve(i)&&"static"===Ke(i).position)?e:i||function(t){var e=/firefox/i.test(He());if(/Trident/i.test(He())&&Re(t)&&"fixed"===Ke(t).position)return null;var i=Ze(t);for($e(i)&&(i=i.host);Re(i)&&["html","body"].indexOf(Ve(i))<0;){var n=Ke(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}var si="top",ri="bottom",ai="right",oi="left",li="auto",ci=[si,ri,ai,oi],ui="start",di="end",hi="viewport",pi="popper",fi=ci.reduce(function(t,e){return t.concat([e+"-"+ui,e+"-"+di])},[]),gi=[].concat(ci,[li]).reduce(function(t,e){return t.concat([e,e+"-"+ui,e+"-"+di])},[]),mi=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function vi(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}}),n.push(t)}return t.forEach(function(t){e.set(t.name,t)}),t.forEach(function(t){i.has(t.name)||s(t)}),n}function bi(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&$e(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function yi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function wi(t,e,i){return e===hi?yi(function(t,e){var i=Le(t),n=Ye(t),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=Be();(c||!c&&"fixed"===e)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+qe(t),y:l}}(t,i)):Pe(e)?function(t,e){var i=Ue(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):yi(function(t){var e,i=Ye(t),n=We(t),s=null==(e=t.ownerDocument)?void 0:e.body,r=je(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=je(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),o=-n.scrollLeft+qe(t),l=-n.scrollTop;return"rtl"===Ke(s||i).direction&&(o+=je(i.clientWidth,s?s.clientWidth:0)-r),{width:r,height:a,x:o,y:l}}(Ye(t)))}function _i(t,e,i,n){var s="clippingParents"===e?function(t){var e=ti(Ze(t)),i=["absolute","fixed"].indexOf(Ke(t).position)>=0&&Re(t)?ni(t):t;return Pe(i)?e.filter(function(t){return Pe(t)&&bi(t,i)&&"body"!==Ve(t)}):[]}(t):[].concat(e),r=[].concat(s,[i]),a=r[0],o=r.reduce(function(e,i){var s=wi(t,i,n);return e.top=je(s.top,e.top),e.right=ze(s.right,e.right),e.bottom=ze(s.bottom,e.bottom),e.left=je(s.left,e.left),e},wi(t,a,n));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function xi(t){return t.split("-")[0]}function Ci(t){return t.split("-")[1]}function Ti(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ki(t){var e,i=t.reference,n=t.element,s=t.placement,r=s?xi(s):null,a=s?Ci(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case si:e={x:o,y:i.y-n.height};break;case ri:e={x:o,y:i.y+i.height};break;case ai:e={x:i.x+i.width,y:l};break;case oi:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=r?Ti(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ui:e[c]=e[c]-(i[u]/2-n[u]/2);break;case di:e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}function Ei(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function Ai(t,e){return e.reduce(function(e,i){return e[i]=t,e},{})}function Si(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,r=i.strategy,a=void 0===r?t.strategy:r,o=i.boundary,l=void 0===o?"clippingParents":o,c=i.rootBoundary,u=void 0===c?hi:c,d=i.elementContext,h=void 0===d?pi:d,p=i.altBoundary,f=void 0!==p&&p,g=i.padding,m=void 0===g?0:g,v=Ei("number"!=typeof m?m:Ai(m,ci)),b=h===pi?"reference":pi,y=t.rects.popper,w=t.elements[f?b:h],_=_i(Pe(w)?w:w.contextElement||Ye(t.elements.popper),l,u,a),x=Ue(t.elements.reference),C=ki({reference:x,element:y,strategy:"absolute",placement:s}),T=yi(Object.assign({},y,C)),k=h===pi?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=t.modifiersData.offset;if(h===pi&&A){var S=A[s];Object.keys(E).forEach(function(t){var e=[ai,ri].indexOf(t)>=0?1:-1,i=[si,ri].indexOf(t)>=0?"y":"x";E[t]+=S[i]*e})}return E}var Di={placement:"bottom",modifiers:[],strategy:"absolute"};function Ii(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(t){return!(t&&"function"==typeof t.getBoundingClientRect)})}function Mi(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,r=void 0===s?Di:s;return function(t,e,i){void 0===i&&(i=r);var s,a,o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Di,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:o,setOptions:function(i){var s="function"==typeof i?i(o.options):i;d(),o.options=Object.assign({},r,o.options,s),o.scrollParents={reference:Pe(t)?ti(t):t.contextElement?ti(t.contextElement):[],popper:ti(e)};var a,c,h=function(t){var e=vi(t);return mi.reduce(function(t,i){return t.concat(e.filter(function(t){return t.phase===i}))},[])}((a=[].concat(n,o.options.modifiers),c=a.reduce(function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t},{}),Object.keys(c).map(function(t){return c[t]})));return o.orderedModifiers=h.filter(function(t){return t.enabled}),o.orderedModifiers.forEach(function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var r=s({state:o,name:e,instance:u,options:n}),a=function(){};l.push(r||a)}}),u.update()},forceUpdate:function(){if(!c){var t=o.elements,e=t.reference,i=t.popper;if(Ii(e,i)){o.rects={reference:Ge(e,ni(i),"fixed"===o.options.strategy),popper:Je(i)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach(function(t){return o.modifiersData[t.name]=Object.assign({},t.data)});for(var n=0;n<o.orderedModifiers.length;n++)if(!0!==o.reset){var s=o.orderedModifiers[n],r=s.fn,a=s.options,l=void 0===a?{}:a,d=s.name;"function"==typeof r&&(o=r({state:o,options:l,name:d,instance:u})||o)}else o.reset=!1,n=-1}}},update:(s=function(){return new Promise(function(t){u.forceUpdate(),t(o)})},function(){return a||(a=new Promise(function(t){Promise.resolve().then(function(){a=void 0,t(s())})})),a}),destroy:function(){d(),c=!0}};if(!Ii(t,e))return u;function d(){l.forEach(function(t){return t()}),l=[]}return u.setOptions(i).then(function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)}),u}}var Ni={passive:!0};const Oi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=Le(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach(function(t){t.addEventListener("scroll",i.update,Ni)}),o&&l.addEventListener("resize",i.update,Ni),function(){r&&c.forEach(function(t){t.removeEventListener("scroll",i.update,Ni)}),o&&l.removeEventListener("resize",i.update,Ni)}},data:{}};const Li={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=ki({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var Pi={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ri(t){var e,i=t.popper,n=t.popperRect,s=t.placement,r=t.variation,a=t.offsets,o=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,d=t.isFixed,h=a.x,p=void 0===h?0:h,f=a.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=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),y=oi,w=si,_=window;if(c){var x=ni(i),C="clientHeight",T="clientWidth";if(x===Le(i)&&"static"!==Ke(x=Ye(i)).position&&"absolute"===o&&(C="scrollHeight",T="scrollWidth"),s===si||(s===oi||s===ai)&&r===di)w=ri,g-=(d&&x===_&&_.visualViewport?_.visualViewport.height:x[C])-n.height,g*=l?1:-1;if(s===oi||(s===si||s===ri)&&r===di)y=ai,p-=(d&&x===_&&_.visualViewport?_.visualViewport.width:x[T])-n.width,p*=l?1:-1}var k,E=Object.assign({position:o},c&&Pi),A=!0===u?function(t,e){var i=t.x,n=t.y,s=e.devicePixelRatio||1;return{x:Fe(i*s)/s||0,y:Fe(n*s)/s||0}}({x:p,y:g},Le(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,((e={})[w]=b?g+"px":"",e[y]=v?p+"px":"",e.transform="",e))}const $i={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,r=i.adaptive,a=void 0===r||r,o=i.roundOffsets,l=void 0===o||o,c={placement:xi(e.placement),variation:Ci(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ri(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ri(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};const ji={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach(function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Re(s)&&Ve(s)&&(Object.assign(s.style,i),Object.keys(n).forEach(function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)}))})},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(t){var n=e.elements[t],s=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce(function(t,e){return t[e]="",t},{});Re(n)&&Ve(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(t){n.removeAttribute(t)}))})}},requires:["computeStyles"]};const zi={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,r=void 0===s?[0,0]:s,a=gi.reduce(function(t,i){return t[i]=function(t,e,i){var n=xi(t),s=[oi,si].indexOf(n)>=0?-1:1,r="function"==typeof i?i(Object.assign({},e,{placement:t})):i,a=r[0],o=r[1];return a=a||0,o=(o||0)*s,[oi,ai].indexOf(n)>=0?{x:o,y:a}:{x:a,y:o}}(i,e.rects,r),t},{}),o=a[e.placement],l=o.x,c=o.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=a}};var Fi={left:"right",right:"left",bottom:"top",top:"bottom"};function Hi(t){return t.replace(/left|right|bottom|top/g,function(t){return Fi[t]})}var Bi={start:"end",end:"start"};function Ui(t){return t.replace(/start|end/g,function(t){return Bi[t]})}const Wi={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,d=i.rootBoundary,h=i.altBoundary,p=i.flipVariations,f=void 0===p||p,g=i.allowedAutoPlacements,m=e.options.placement,v=xi(m),b=l||(v===m||!f?[Hi(m)]:function(t){if(xi(t)===li)return[];var e=Hi(t);return[Ui(t),e,Ui(e)]}(m)),y=[m].concat(b).reduce(function(t,i){return t.concat(xi(i)===li?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,r=i.rootBoundary,a=i.padding,o=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?gi:l,u=Ci(n),d=u?o?fi:fi.filter(function(t){return Ci(t)===u}):ci,h=d.filter(function(t){return c.indexOf(t)>=0});0===h.length&&(h=d);var p=h.reduce(function(e,i){return e[i]=Si(t,{placement:i,boundary:s,rootBoundary:r,padding:a})[xi(i)],e},{});return Object.keys(p).sort(function(t,e){return p[t]-p[e]})}(e,{placement:i,boundary:u,rootBoundary:d,padding:c,flipVariations:f,allowedAutoPlacements:g}):i)},[]),w=e.rects.reference,_=e.rects.popper,x=new Map,C=!0,T=y[0],k=0;k<y.length;k++){var E=y[k],A=xi(E),S=Ci(E)===ui,D=[si,ri].indexOf(A)>=0,I=D?"width":"height",M=Si(e,{placement:E,boundary:u,rootBoundary:d,altBoundary:h,padding:c}),N=D?S?ai:oi:S?ri:si;w[I]>_[I]&&(N=Hi(N));var O=Hi(N),L=[];if(r&&L.push(M[A]<=0),o&&L.push(M[N]<=0,M[O]<=0),L.every(function(t){return t})){T=E,C=!1;break}x.set(E,L)}if(C)for(var P=function(t){var e=y.find(function(e){var i=x.get(e);if(i)return i.slice(0,t).every(function(t){return t})});if(e)return T=e,"break"},R=f?3:1;R>0;R--){if("break"===P(R))break}e.placement!==T&&(e.modifiersData[n]._skip=!0,e.placement=T,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Vi(t,e,i){return je(t,ze(e,i))}const Yi={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,r=void 0===s||s,a=i.altAxis,o=void 0!==a&&a,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,d=i.padding,h=i.tether,p=void 0===h||h,f=i.tetherOffset,g=void 0===f?0:f,m=Si(e,{boundary:l,rootBoundary:c,padding:d,altBoundary:u}),v=xi(e.placement),b=Ci(e.placement),y=!b,w=Ti(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,C=e.rects.reference,T=e.rects.popper,k="function"==typeof g?g(Object.assign({},e.rects,{placement:e.placement})):g,E="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),A=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,S={x:0,y:0};if(x){if(r){var D,I="y"===w?si:oi,M="y"===w?ri:ai,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=e.elements.arrow,F=p&&z?Je(z):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[I],U=H[M],W=Vi(0,C[N],F[N]),V=y?C[N]/2-R-W-B-E.mainAxis:$-W-B-E.mainAxis,Y=y?-C[N]/2+R+W+U+E.mainAxis:j+W+U+E.mainAxis,q=e.elements.arrow&&ni(e.elements.arrow),K=q?"y"===w?q.clientTop||0:q.clientLeft||0:0,Q=null!=(D=null==A?void 0:A[w])?D:0,G=O+Y-Q,J=Vi(p?ze(L,O+V-Q-K):L,O,p?je(P,G):P);x[w]=J,S[w]=J-O}if(o){var Z,X="x"===w?si:oi,tt="x"===w?ri:ai,et=x[_],it="y"===_?"height":"width",nt=et+m[X],st=et-m[tt],rt=-1!==[si,oi].indexOf(v),at=null!=(Z=null==A?void 0:A[_])?Z:0,ot=rt?nt:et-C[it]-T[it]-at+E.altAxis,lt=rt?et+C[it]+T[it]-at-E.altAxis:st,ct=p&&rt?function(t,e,i){var n=Vi(t,e,i);return n>i?i:n}(ot,et,lt):Vi(p?ot:nt,et,p?lt:st);x[_]=ct,S[_]=ct-et}e.modifiersData[n]=S}},requiresIfExists:["offset"]};const qi={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=xi(i.placement),l=Ti(o),c=[oi,ai].indexOf(o)>=0?"height":"width";if(r&&a){var u=function(t,e){return Ei("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:Ai(t,ci))}(s.padding,i),d=Je(r),h="y"===l?si:oi,p="y"===l?ri:ai,f=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],g=a[l]-i.rects.reference[l],m=ni(r),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=Vi(y,_,w),C=l;i.modifiersData[n]=((e={})[C]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&bi(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ki(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Qi(t){return[si,ai,ri,oi].some(function(e){return t[e]>=0})}const Gi={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,r=e.modifiersData.preventOverflow,a=Si(e,{elementContext:"reference"}),o=Si(e,{altBoundary:!0}),l=Ki(a,n),c=Ki(o,s,r),u=Qi(l),d=Qi(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":d})}};var Ji=Mi({defaultModifiers:[Oi,Li,$i,ji,zi,Wi,Yi,qi,Gi]});const Zi={"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 Xi(t,e){return t.getAttribute(e)||t.getAttribute("data-aui-"+e)}function tn(t){return Xi(t,"alignment")||"right middle"}function en(t){let[e,i]=tn(t).split(" ");return{side:e,snap:i}}function nn(t){let e=function(t){let e=Xi(t,"alignment-container")||window;return"string"==typeof e&&(e=document.querySelector(e)),e}(t),i="left";if(e&&e!==window&&e!==document||(e=document.documentElement),e&&e.nodeType&&e.nodeType===Node.ELEMENT_NODE){let n=e.getBoundingClientRect();t.getBoundingClientRect().left-n.left>(n.right-n.left)/2&&(i="right")}return i}function sn(t,e){const i=en(t);let n;return i.snap&&"auto"!==i.snap?n=function(t){const e=tn(t);return Zi[e]||"right"}(t):(i.snap=nn(e),n="submenu"===i.side?Zi[("right"===i.snap?"left":"right")+" top"]:Zi[`${i.side} ${i.snap}`]),n}const rn={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function an(t,e,i={}){const n=en(t),s=sn(t,e),r=rn[s.split("-")[0]],a=e.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;const o=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:r,boundary:a||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:a?"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:t})=>{t.elements.popper&&t.elements.popper.setAttribute("x-placement",t.placement)}},{name:"onUpdate",enabled:i.hasOwnProperty("onUpdate"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={enabled:!0,fn:i.onUpdate}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return i.enabled&&i.fn(),t}},{name:"onEvents",enabled:i.hasOwnProperty("onEvents"),phase:"afterWrite",effect:({state:t,name:e})=>{t.modifiersData[`${e}#persistent`]={fn:i.onEvents}},fn:({state:t,name:e})=>{const i=t.modifiersData[`${e}#persistent`];return this._triggerOnEvents&&(this._eventListenersEnabled?i.fn.enabled&&i.fn.enabled():i.fn.disabled&&i.fn.disabled(),this._triggerOnEvents=!1),t}}];a&&e.ownerDocument!=t.ownerDocument&&o.push({name:"iframeOffset",enabled:!0,fn(t){const e=a.getBoundingClientRect(),i=window.getComputedStyle(a),n=(t,e)=>t+e,s=t=>t.map(parseFloat).filter(Boolean).reduce(n,0),r=s([e.top,i.paddingTop,i.borderTop]),o=s([e.left,i.paddingLeft,i.borderLeft]);return t.offsets.reference.left+=o,t.offsets.reference.top+=r,t.offsets.popper.left+=o,t.offsets.popper.top+=r,t}});const l={placement:s,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:o,onFirstUpdate:i.onCreate};this.popper=Ji(e,t,l),function(t,e,i){const n="aui-alignment-side-"+e,s="aui-alignment-snap-"+i;t.classList.contains(n)||t.classList.add(n),t.classList.contains(s)||t.classList.add(s)}(t,n.side,n.snap)}an.prototype={destroy(){return this.popper.destroy(),this},changeTarget(t){const e=t.jquery?t[0]:t;return e&&e!==this.popper.state.elements.reference&&(this.popper.state.elements.reference=e,this.popper.setOptions({})),this},scheduleUpdate(){return this.popper.update(),this},enable(){return this._eventListenersEnabled=!0,this._triggerOnEvents=!0,this.popper.setOptions({}),this},disable(){return this._eventListenersEnabled=!1,this._triggerOnEvents=!0,this.popper.setOptions({}),this}};const on=an;function ln(t){let e=new i.Deferred;return t?setTimeout(()=>{t.parentElement||e.resolve()},12):e.reject(),e.promise()}var cn,un,dn=0;function hn(t){if(cn=dn+++"",un=t?t+cn:"aui-uid-"+cn,document.getElementById(un)){if(un=un+"-"+(new Date).getTime(),document.getElementById(un))throw new Error('Timestamped fallback ID "'+un+'" exists.');return un}return un}l("id",hn);const pn=hn;function fn(t){return t.hasAttribute("hidden")||t.classList.contains("hidden")}function gn(t,e){t.setAttribute("aria-expanded",!!e),t.classList[e?"add":"remove"]("active","aui-dropdown2-active")}var mn="unloaded",vn="loading",bn="error";function yn(t,e){Z(t).set("loading-state","success"),t.innerHTML=function(t){return t.map(function(t){var e=t.items.map(function(t){function e(e){return t[e]?`${e} ="true"`:""}function i(e){return t[e]?`${e}="${t[e]}"`:""}var n="aui-item-"+t.type;return`<${n} ${i("for")} ${i("href")} ${e("interactive")}\n ${e("checked")} ${e("disabled")} ${e("hidden")} ${i("data-value")} ${i("item-id")}>\n ${D(t.content)}\n </${n}>`}).join("");function i(e){return t[e]?`${e}="${t[e]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>\n ${e}\n </aui-section>`}).join("\n")}(e),J.init(t)}function wn(t){Z(t).set("loading-state",bn),Z(t).set("hasErrorBeenShown",t.isVisible()),t.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 _n(t){t.src&&Z(t).get("loading-state")!==vn&&(!function(t){Z(t).set("loading-state",vn),Z(t).set("hasErrorBeenShown",!1),et(t,function(t){t.setAttribute("aria-busy","true")}),t.innerHTML=`\n <div class="aui-dropdown-loading">\n <aui-spinner size="small"></aui-spinner> ${I18n.getText("aui.dropdown.async.loading")}\n </div>\n `}(t),i.ajax(t.src).done(function(e,i,n){200===n.status?yn(t,e):wn(t)}).fail(function(){wn(t)}).always(function(){!function(t){et(t,function(t){t.setAttribute("aria-busy","false")})}(t)}))}function xn(t,e){return i(t).find(["> ul > li","> .aui-dropdown2-section > ul > li",'> .aui-dropdown2-section > div[role="group"] > ul > li','> div > .aui-dropdown2-section > div[role="group"] > ul > li',"aui-item-link","aui-item-checkbox","aui-item-radio"].join(", ")).filter(e).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function Cn(t){return xn(t,()=>!0)}function Tn(t){return xn(t,(t,e)=>!fn(e))}function kn(t){Cn(t).each((t,e)=>{return(i=e).setAttribute("tabindex","-1"),void((i.classList.contains("aui-dropdown2-disabled")||fn(i.parentElement))&&i.setAttribute("aria-disabled","true"));var i})}function En(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function An(t,e){var n=e&&e.hasSubmenu&&e.hasSubmenu(),s="submenu auto"===t.getAttribute("data-aui-alignment");!n&&s&&function(t){var e=i(t),n=e.data("previous-data-aui-alignment");n?t.setAttribute("data-aui-alignment",n):t.removeAttribute("data-aui-alignment");e.removeData("previous-data-aui-alignment"),e.data("had-data-aui-alignment-static")||t.removeAttribute("data-aui-alignment-static");e.removeData("had-data-aui-alignment-static")}(t);var r=t.hasAttribute("data-aui-alignment");n&&!s?(!function(t){var e=i(t);t.hasAttribute("data-aui-alignment")&&e.data("previous-data-aui-alignment",t.getAttribute("data-aui-alignment"));e.data("had-data-aui-alignment-static",t.hasAttribute("data-aui-alignment-static"))}(t),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):r||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),En(t),t._auiAlignment=new on(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}i(document).on("mousedown",".aui-dropdown2-trigger",function(){this.hasAttribute("resolved")||(J.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(t){const e=i(t.currentTarget);if(e.is(".aui-dropdown2-active"))return;if(e.closest(".aui-dropdown2").length)return;const n=e.closest(".aui-dropdown2-trigger-group"),s=n.find(".aui-dropdown2-active");s.length&&e.is(".aui-dropdown2-trigger")&&(s.blur(),e.trigger("aui-button-invoke"),t.preventDefault());const r=n.find(":focus");r.length&&e.is(".aui-dropdown2-trigger")&&r.blur()});var Sn=!1;function Dn(){Sn=!0}function In(t){Mt(t),t.addEventListener("aui-layer-show",function(e){t===e.target&&(!function(t){var e=i(t);["disabled","interactive","active","checked"].forEach(t=>{e.find(`.${t}`).addClass(`aui-dropdown2-${t}`)})}(t),kn(t),i(t).trigger("aui-dropdown2-show"),et(t,function(e){gn(e,!0),t._returnTo=function(t,e){var i=e.getAttribute("data-dropdown2-hide-location");return document.getElementById(i)||t.parentNode}(t,e)}))}),t.addEventListener("aui-layer-hide",function(e){t===e.target&&(i(t).trigger("aui-dropdown2-hide"),t._auiAlignment&&t._auiAlignment.destroy(),t._returnTo&&t.parentNode&&t.parentNode!==t._returnTo&&t._returnTo.appendChild(t),t.classList.remove("aui-dropdown2-in-header","aui-dropdown2-in-buttons"),Cn(t).removeClass("active aui-dropdown2-active"),et(t,function(t){var e;gn(t,!1),e=!0===Sn,Sn=!1,e&&t.focus()}),delete t.isSubmenu)})}function Mn(t){var e=i(t);function n(e){return i(e).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===t}e.on("keydown",function(e){n(e.target)&&(e.keyCode===Q.DOWN?(t.focusNext(),e.preventDefault()):e.keyCode===Q.UP?(t.focusPrevious(),e.preventDefault()):e.keyCode===Q.LEFT?t.isSubmenu&&(Dn(),t.hide(),e.preventDefault()):e.keyCode===Q.ESCAPE?Dn():e.keyCode===Q.TAB&&(Dn(),t.hideAll(!1)))});e.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(e){if(!n(e.target))return;const s=e.currentTarget,r=e.keyCode,a=r===Q.ENTER,o=r===Q.SPACE;a&&i(s).is("a[href], button")||"click"!==e.type&&!a&&!o||function(e){const i=e.currentTarget;if("true"===i.getAttribute("aria-disabled"))return void e.preventDefault();e.currentTarget.hasSubmenu&&e.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||t.hideAll(!0)}(e)}),e.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(e){if(!n(e.target))return;let s=i(Mt(t).above()).get(0);for(;s&&s.isDropdown&&s!==t;){const t=s.getAttribute("id"),n=e.target.getAttribute("aria-controls"),r=Mt(s).above();n!==t&&Mt(s).hide(),s=i(r).get(0)}})}function Nn(t){t.classList.add("aui-dropdown2"),t.setAttribute("tabindex","-1"),t.hasAttribute("data-container")&&(t.setAttribute("data-aui-alignment-container",t.getAttribute("data-container")),t.removeAttribute("data-container")),In(t),Mn(t),i(t).on("click keydown",".aui-dropdown2-checkbox",function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),e.isEnabled()&&(e.isChecked()?e.uncheck():e.check())}}),i(t).on("click keydown",".aui-dropdown2-radio",function(t){if("click"===t.type||t.keyCode===Q.ENTER||t.keyCode===Q.SPACE){let e=this;if(t.isDefaultPrevented())return;e.isInteractive()&&t.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(i(e).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each(function(){this.uncheck()}),e.check())}})}i(window).on("resize",(0,de.debounce)(function(){i(".aui-dropdown2").each(function(t,e){J.init(e),e.isVisible()&&e.hide()})},1e3,!0));var On={toggle:function(t){this.isVisible()?this.hide():this.show(t)},show:function(t){const e=this;return et(e,t=>{gn(t,!1)}),t&&t.currentTarget&&t.currentTarget.classList.contains("aui-dropdown2-trigger")&&tt(e,t.currentTarget),Mt(e).show(),et(e,function(t){gn(t,!0),An(e,t)}),setTimeout(()=>function(t,e={}){if(e&&e.type&&-1===e.type.indexOf("mouse")){const i=e.type.indexOf("key")>-1;if(t.isSubmenu)t.focusItem(0);else if(i)if(e.keyCode===Q.UP){const e=Tn(t);e&&e.length&&t.focusItem(e.length-1)}else t.focusItem(0);else t.focus()}}(e,t),0),this},hide:function(){return Mt(this).hide(),this},hideAll:function(t=!0){const e=function(t){let e=Mt(t);for(;;){const t=e.below();if(!t)break;if(!t.get(0).isDropdown)break;e=Mt(t)}return e}(this);return e.isVisible()?(e.hide(),t&&et(e.el,t=>{setTimeout(()=>{t.focus()},0),tt(e.el,null)}),this):this},focusNext:function(){var t,e=Tn(this),i=document.activeElement;e.last()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t+1))):this.focusItem(0)},focusPrevious:function(){var t,e=Tn(this),i=document.activeElement;e.first()[0]!==i?(t=e.toArray().indexOf(i),this.focusItem(e.get(t-1))):this.focusItem(e.length-1)},focusItem:function(t){const e=Tn(this);"number"==typeof t&&(t=e.get(t));const n=i(t);n.focus(),e.removeClass("active aui-dropdown2-active"),n.addClass("active aui-dropdown2-active")},isVisible:function(){return Mt(this).isVisible()},isDropdown:!0},Ln={created:function(t){var e=t.children[0];e.setAttribute("aria-disabled","true"),e.classList.add("disabled","aui-dropdown2-disabled")},removed:function(t){var e=t.children[0];e.setAttribute("aria-disabled","false"),e.classList.remove("disabled","aui-dropdown2-disabled")}},Pn={created:function(t){t.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(t){t.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},Rn={created:function(t){var e=t.children[0];e.classList.add("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!0),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))},removed:function(t){var e=t.children[0];e.classList.remove("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",!1),t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}},$n={created:function(t){Ln.created(t)},removed:function(t){Ln.removed(t)}},jn=function(t){return{fallback:function(e,i){e.children[0].setAttribute(t,i.newValue)},removed:function(e){e.children[0].removeAttribute(t)}}};const zn=function(t=""){return t.split(" ").map(t=>t.trim()).filter(t=>t)},Fn=J("aui-item-link",{template:Wt()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:Ln,interactive:Pn,hidden:$n,href:jn("href"),"item-id":jn("id"),for:{created:function(t){var e=t.children[0];e.setAttribute("aria-controls",t.getAttribute("for")),i(e).addClass("aui-dropdown2-sub-trigger")},updated:function(t){t.children[0].setAttribute("aria-controls",t.getAttribute("for"))},removed:function(t){var e=t.children[0];e.removeAttribute("aria-controls"),i(e).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...zn(e.oldValue)),e.newValue&&i.classList.add(...zn(e.newValue))},"data-value":jn("data-value")}}),Hn=J("aui-item-button",{template:Wt()('<button class="aui-button"><content></content></button>'),attributes:{disabled:Ln,"item-id":jn("id"),"extra-classes":function(t,e){const i=t.children[0];e.oldValue&&i.classList.remove(...zn(e.oldValue)),e.newValue&&i.classList.add(...zn(e.newValue))},"data-value":jn("data-value")}}),[Bn,Un]=["checkbox","radio"].map(t=>J(`aui-item-${t}`,{template:Wt()(`<span role="menuitem${t}" class="aui-dropdown2-${t}" tabindex="-1"><content></content></span>`),attributes:{"item-id":jn("id"),disabled:Ln,interactive:Pn,checked:Rn,hidden:$n,"data-value":jn("data-value")}})),Wn=J("aui-section",{template:Wt()('\n <span aria-hidden="true" class="aui-dropdown2-heading"></span>\n <div class="aui-dropdown2-item-group" role="group">\n <content></content>\n </div>\n '),attributes:{label:function(t,e){const i=pn();var n=t.children[0],s=t.children[1];n.textContent=e.newValue,n.id=i,s.setAttribute("aria-labelledby",i)},"aria-label":{fallback:function(t,e){t.children[1].setAttribute("aria-label",e.newValue)},removed:function(t){t.children[1].removeAttribute("aria-label")}}},created:function(t){t.classList.add("aui-dropdown2-section")}}),Vn=J("aui-dropdown-menu",{created:function(t){t.setAttribute("role","menu"),t.className="aui-dropdown2",Mt(t),Z(t).set("loading-state",mn),J.init(t)},detached:function(t){ln(t).then(()=>En(t))},attributes:{src:{}},prototype:On,events:{"aui-layer-show":function(t){var e=Z(t).get("loading-state")===mn,i=Z(t).get("hasErrorBeenShown");(e||i)&&_n(t),Z(t).get("loading-state")===bn&&Z(t).set("hasErrorBeenShown",!0)}}});J("aui-dropdown2",{type:J.type.CLASSNAME,created:Nn,prototype:On}),J("data-aui-dropdown2",{type:J.type.ATTRIBUTE,created:Nn,prototype:On}),J("aui-dropdown2-trigger",{type:J.type.CLASSNAME,created:function(t){let e=t.getAttribute("aria-controls");function n(n,s=!1){if(n.currentTarget!==t)return;if(n.preventDefault(),!t.isEnabled())return;const r=document.getElementById(e);if(!r)return void m('Could not find a dropdown with id "'+e+'" in the DOM.');const a=i(t);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=t.hasSubmenu(),r}e||(e=t.getAttribute("aria-owns"),e?(t.removeAttribute("aria-owns"),t.setAttribute("aria-controls",e)):m('Dropdown triggers need either a "aria-owns" or "aria-controls" attribute')),t.setAttribute("aria-haspopup",!0),t.setAttribute("aria-expanded",!1),"A"===t.nodeName&&!t.href&&t.setAttribute("href",`#${e}`),i(t).on("aui-button-invoke",n).on("click",n).on("keydown",function(e){if(e.currentTarget!==t)return;const i=e.keyCode===Q.ENTER||e.keyCode===Q.SPACE,s=e.keyCode===Q.RIGHT&&t.hasSubmenu(),r=(e.keyCode===Q.UP||e.keyCode===Q.DOWN)&&!t.hasSubmenu();i?n(e):(r||s)&&n(e,document.activeElement===t)}).on("mouseenter",function(i){if(i.currentTarget!==t)return;if(i.preventDefault(),!t.isEnabled())return;const n=document.getElementById(e);if(n)return function(t){var e=Z(t).get("loading-state")===mn,i=Z(t).get("hasErrorBeenShown");(e||i&&!t.isVisible())&&_n(t)}(n),t.hasSubmenu()&&(n.show(i),n.isSubmenu=t.hasSubmenu()),n;m('Could not find a dropdown with id "'+e+'" in the DOM.')})},prototype:{disable:function(){this.setAttribute("aria-disabled","true"),this.classList.add("disabled","aui-dropdown2-disabled")},enable:function(){this.setAttribute("aria-disabled","false"),this.classList.remove("disabled","aui-dropdown2-disabled")},isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")&&!1===this.classList.contains("aui-dropdown2-disabled")},hasSubmenu:function(){return this.classList.contains("aui-dropdown2-sub-trigger")}}}),J("aui-dropdown2-sub-trigger",{type:J.type.CLASSNAME,created:function(t){t.classList.add("aui-dropdown2-trigger"),J.init(t)}}),["checkbox","radio"].map(t=>J(`aui-dropdown2-${t}`,{type:J.type.CLASSNAME,created:function(e){const i="true"===e.getAttribute("aria-checked")||e.classList.contains("checked")||e.classList.contains("aui-dropdown2-checked");e.classList[i?"add":"remove"]("checked","aui-dropdown2-checked"),e.setAttribute("aria-checked",i),e.setAttribute("tabindex","0"),Oe&&e.setAttribute("role",`menuitem${t}`)},prototype:{isEnabled:function(){return"true"!==this.getAttribute("aria-disabled")},isChecked:function(){return"true"===this.getAttribute("aria-checked")},isInteractive:function(){return this.classList.contains("aui-dropdown2-interactive")},uncheck:function(){this.parentNode.tagName.toLowerCase()===`aui-item-${t}`&&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-${t}`&&this.parentNode.setAttribute("checked",""),i(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}}));const Yn={"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)"})},qn=t=>{const e=i(`#${t.attr("aria-controls")}`),n=e.parent().is(t),s=n?t.find(".aui-expander-short-content"):null;return e.attr("aria-expanded")&&(Yn["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),{$content:e,isTriggerParent:n,$shortContent:s,isExpanded:e.hasClass("expanded"),height:e.css("min-height"),isCollapsible:!1!==t.data("collapsible"),textReplacement:t.attr("data-replace-text")}};const Kn=(t,e)=>{if(!e)return;const i=t.data("replace-selector");if(i){Yn["replace-selector"]();const n=t.find(i);return t.attr("data-replace-text",n.text()),void n.text(e)}const n=t.find(":not(:has(*)):first"),s=n.length?n:t;t.attr("data-replace-text",s.text()),s.text(e)},Qn={"aui-expander-invoke":function(t){const e=i(t.currentTarget),{isCollapsible:n,isExpanded:s}=qn(e);s&&n?e.trigger("aui-expander-collapse"):e.trigger("aui-expander-expand")},"aui-expander-expand":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=qn(t);t.attr("aria-expanded","true"),e.addClass("expanded"),e.prop("hidden",!1),Kn(t,s),i&&n.hide(),t.trigger("aui-expander-expanded")}(i(t.currentTarget))},"aui-expander-collapse":function(t){!function(t){const{$content:e,isTriggerParent:i,$shortContent:n,textReplacement:s}=qn(t);Kn(t,s),t.attr("aria-expanded","false"),e.removeClass("expanded"),i&&n.show(),0===e.outerHeight()&&e.prop("hidden",!0),t.trigger("aui-expander-collapsed")}(i(t.currentTarget))},"click.aui-expander":function(t){i(t.currentTarget).trigger("aui-expander-invoke",t.currentTarget)}};i(document).on(Qn,".aui-expander-trigger"),i(document).ready(function(){i(".aui-expander-trigger").each(function(){!function(t){const{$content:e,isTriggerParent:i,isExpanded:n}=qn(t);t.data("replace-selector")&&Yn["replace-selector"](),e.attr("aria-expanded")&&(Yn["aria-expanded"](),"true"===e.attr("aria-expanded")&&e.addClass("expanded"),e.removeAttr("aria-expanded")),(i?t.find(".aui-expander-short-content"):null)&&Yn["short-content"](),0===e.outerHeight()&&!n&&e.prop("hidden",!0),t.attr("aria-expanded",n?"true":"false")}(i(this))})});function Gn(t,e,n){i(t||".aui-message.aui-remove-on-hide").each(function(){Zn(i(this),e,n)})}function Jn(t){i(t||"div.aui-message.closeable").each(function(){const t=i(this),e=t.find(Ce),n=e.length>0?e.first():i(Te);var s;t.addClass("closeable"),t.append(n),(s=t).unbind("click.aui-message").unbind("keydown.aui-message"),s.on("click.aui-message",Ce,function(t){i(t.target).closest(".aui-message").closeMessage()}).on("keydown.aui-message",Ce,function(t){t.which!==Q.ENTER&&t.which!==Q.SPACE||(i(t.target).closest(".aui-message").closeMessage(),t.preventDefault())})})}function Zn(t,e,n){e=void 0!==e?e:5e3,n=void 0!==n?n:500,i(t||"div.aui-message.fadeout").each(function(){const t=i(this);let s=!1,r=!1;function a(){t.stop(!0,!1).delay(e).fadeOut(n,function(){t.closeMessage()})}function o(){t.stop(!0,!1).fadeTo(100,1)}function l(){return!s&&!r}t.focusin(function(){s=!0,o()}).focusout(function(){s=!1,l()&&a()}).hover(function(){r=!0,o()},function(){r=!1,l()&&a()}),a()})}const Xn={setup:function(){Gn(),Jn(),Zn()},makeRemoveOnHide:Gn,makeCloseable:Jn,makeFadeout:Zn,createMessage:function(t){this[t]=function(e,n){n||(n=e,e="#aui-message-bar"),n.closeable=null!==n.closeable&&!1!==n.closeable,n.title=(n.title||"").toString().trim();let s=function(t,e){const{id:n,closeable:s,removeOnHide:r,fadeout:a,title:o,body:l}=t,c=function(t,e){const{a11yTypeLabel:i}=t;if(""===i)return"";if(null!=i)return i;if(null==i)switch(e){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 ${e}`)}}(t,e),u=c?`<strong hidden>${c}: </strong>`:"",d=n?`${n}-title`:"",h=o?`<p class="title" ${d?`id="${d}" aria-hidden="true"`:""}>${u}<strong>${D(o)}</strong></p>`:"",p=`<div class="aui-message" role="note" ${d?`aria-labelledby="${d}"`:""}>${h}</div>`,f=i(p).append(i.parseHTML(l||"")).addClass(r?"aui-remove-on-hide":"").addClass(s?"closeable":"").addClass(a?"fadeout":"").addClass(`aui-message-${e}`);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,t);return function(t,e,i){"prepend"===e?t.prependTo(i):"before"===e?t.insertBefore(i):"after"===e?t.insertAfter(i):t.appendTo(i)}(s,n.insert,e),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."),Gn(s,n.delay,n.duration)),n.closeable&&Jn(s),n.fadeout&&(console.warn&&console.warn("Use of AUI Message `fadeout` is deprecated due to accessibility reasons and will be removed in AUI 11.0.0."),Zn(s,n.delay,n.duration)),s}}};i.fn.closeMessage=function(){const t=i(this);t.hasClass("aui-message")&&(t.hasClass("closeable")||t.hasClass("aui-remove-on-hide"))&&(t.stop(!0),t.trigger("messageClose",[this]),t.remove(),i(document).trigger("aui-message-close",[this]))},Xn.createMessage("generic"),Xn.createMessage("error"),Xn.createMessage("warning"),Xn.createMessage("info"),Xn.createMessage("confirmation"),Xn.createMessage("change"),Xn.createMessage("success"),Xn.createMessage("hint");const ts=J("aui-message",{created:function(t){const e=t.innerHTML,i=t.getAttribute("type")||"info";t.innerHTML="",Xn[i](t,{body:e,id:t.getAttribute("id"),a11yTypeLabel:t.getAttribute("a11yTypeLabel"),removeOnHide:t.getAttribute("removeOnHide"),closeable:t.getAttribute("closeable"),delay:t.getAttribute("delay"),duration:t.getAttribute("duration"),fadeout:t.getAttribute("fadeout"),title:t.getAttribute("title")}),t.setAttribute("role","none")}});i(function(){Xn.setup()}),j(Xn,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),j(Xn,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(Xn,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(Xn,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(Xn,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(Xn,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),j(Xn,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),l("messages",Xn);const es='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"]',is="aui-flag-container",ns={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function ss(t){const e=(0,de.defaults)(t,ns);e.title=(e.title||"").toString().trim();const n=function({body:t,title:e,close:n,type:s,ariaLive:r,ariaLabel:a,ariaDescription:o}){const l=`<div class="aui-message">${e?`<p class="title"><strong>${D(e)}</strong></p>`:""}</div>`;a||(a=function(t){switch(t){case"success":return I18n.getText("aui.flag.default-aria-label.success");case"warning":return I18n.getText("aui.flag.default-aria-label.warning");case"error":return I18n.getText("aui.flag.default-aria-label.error");default:return I18n.getText("aui.flag.default-aria-label.info")}}(s));o||(o="");const c=i(l).append(i.parseHTML(t||"")).addClass("never"===n?"":"closeable").addClass(`aui-message-${s}`),u=c.find(es).length>0,d=u?"alertdialog":"alert";return i('<div class="aui-flag"></div>').attr({"aria-label":D(a),"aria-hidden":"false","aria-live":D(r),role:d,...u?{"data-aui-focus-selector":es.split(", ").map(t=>`.aui-message ${t}`).join(", "),"data-aui-focus":"true"}:{},...o?{"aria-description":D(o)}:{}}).append(c)}(e);return function(t){const e=t[0];e.close=function(){as(t)}}(n),"auto"===e.close?(rs(n),"alert"===n.attr("role")&&function(t,e){t.find(".aui-message").addClass("aui-will-close"),setTimeout(function(){t[0].close()},e)}(n,e.duration)):"manual"===e.close&&rs(n),function(){const t=os();if(t){const e=t.querySelectorAll(".aui-flag:not([open])");Array.from(e).map(t=>t.parentNode.removeChild(t))}else i("body").prepend('<div id="'+is+'"></div>')}(),function(t){const e=os();t.appendTo(e),U(t),t.removeAttr("hidden").attr("open","")}(n),setTimeout(function(){"alertdialog"===n.attr("role")&&ft.global.enter(n)},0),n.get(0)}function rs(t){const e=i(Te);return e.on("click",function(){as(t)}),e.on("keypress",function(e){e.which!==Q.ENTER&&e.which!==Q.SPACE||(as(t),e.preventDefault())}),t.find(".aui-message").append(e)[0]}function as(t){const e=t.get(0);return"alertdialog"===t.attr("role")&&ft.global.exit(t),e.removeAttribute("open"),e.setAttribute("inert",""),e.setAttribute("aria-hidden",!0),e.style.display="none",e.dispatchEvent(new CustomEvent("aui-flag-close",{bubbles:!0})),e}function os(){return document.getElementById(is)}G("aui/flag",ss),l("flag",ss);const ls=ss;var cs=n(722);const us=n.n(cs)();const ds=function(t){function e(e){return n(function(){return t.hasAttribute(e)},e+" wasn't defined")}function i(i){if(!e(i))return!1;var s=t.getAttribute(i);return n(function(){return document.getElementById(s)},'an element with id set to "'+s+'" was not found')}function n(e,i){return!!e()||(t?m(i,t):m(i),!1)}return{attributeExists:e,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},hs="-input";function ps(t){return t.querySelector("label")}const fs=J("aui-label",{template:Wt()("<label><content></content></label>"),created:function(t){t._label=ps(t)},attached:function(t){ds(t).attributeExists("for")},attributes:{for:function(t,e){t.hasAttribute("for")?ps(t).setAttribute("for",`${e.newValue}${hs}`):ps(t).removeAttribute("for")},form:function(t,e){t.hasAttribute("form")?ps(t).setAttribute("form",e.newValue):ps(t).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(t){t?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(t,e){t.disabled&&e.preventDefault()}}});n(217);const gs=i.fn.select2,ms="aui-select2-container",vs="aui-select2-drop aui-dropdown2",bs="aui.select2DropdownLayer";i.fn.auiSelect2=function(t){let e;if(i.isPlainObject(t)){const n=i.extend({},t),s=n.hasAvatar?" aui-has-avatar":"";n.containerCssClass=ms+s+(n.containerCssClass?" "+n.containerCssClass:""),n.dropdownCssClass=vs+s+(n.dropdownCssClass?" "+n.dropdownCssClass:""),e=Array.prototype.slice.call(arguments,1),e.unshift(n)}else e=arguments.length?arguments:[{containerCssClass:ms,dropdownCssClass:vs}];const n=e[0];if(n.ajax&&n.ajax.params&&n.ajax.params.error){let t=n.ajax.params.error;Array.isArray(t)||(t=[t]);let e=n.ajax.transport;e||(e=gs.ajaxDefaults.transport);const i=function(...i){return i[0].error=[i[0].error,...t],e(...i)};n.ajax.transport=i}const s=gs.apply(this,e),r=this,a=n.searchLabel;return r.on("select2-open",function(){const t=i(this),e=t.select2("dropdown");let s=t.data(bs);s||(s=Mt(),t.data(bs,s)),s.show(),e.css("z-index",s.$el.css("z-index")),i("#select2-drop-mask").css("z-index",s.$el.css("z-index")),n.multiple||t.attr("multiple")||a&&e.find(".select2-search label").text(a)}),r.on("select2-close",function(){const t=i(this),e=t.data(bs);e?e.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."),t.removeData("was-ariadescribedby-cleared")}),r.on("select2-loaded",function(){const t=i(this),e=t.data("was-ariadescribedby-cleared");if(n.multiple||t.attr("multiple")||e)return;t.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),t.data("was-ariadescribedby-cleared",!0)}),r.on("select2-focus",function(){const t=i(this),e=t.parent().find(".select2-container");if(n.multiple||t.attr("multiple"))return void(a&&e.find(".select2-search-field label").text(a));const s=e.find("label");if(s.attr("id"))return;const r=e.find(".select2-focusser"),o=r.attr("id")+"-label",l=r.attr("aria-labelledby");s.attr("id",o),r.attr("aria-labelledby",o+" "+l)}),s},i.fn.spin=R(function(t,e){let n={size:"small"};return"object"==typeof e&&(n=i.extend(n,e)),"object"==typeof t&&(n=i.extend(n,t)),"string"==typeof t&&(n.size=t),"boolean"==typeof t&&!1===t?this.spinStop():this.each(function(){if(!this||!this.nodeType)return;const t=i(this),e=t.data();if(e){const s=i("<aui-spinner filled></aui-spinner>");s.attr("size",n.size),s.css("color",n.color),t.spinStop(),t.append(s),J.init(this),e.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 t=i(this).data();t&&t.spinner&&(t.spinner.remove(),delete t.spinner)})},"jQuery.fn.spinStop",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"});const ys=J("aui-option",{created:function(t){Object.defineProperty(t,"value",{get:function(){return t.getAttribute("value")||D(this.textContent)},set:function(e){t.setAttribute("value",e)}})},prototype:{serialize:function(){var t={};return this.hasAttribute("img-src")&&(t["img-src"]=encodeURI(this.getAttribute("img-src"))),t.value=this.value,t.label=D(this.textContent),t}}});var ws=n(973),_s=n.n(ws),xs=_s().Collection.extend({initialize:function(t,e){e||(e={}),e.matcher&&(this.matcher=e.matcher),e.model&&(this.model=e.model),this._idAttribute=(new this.model).idAttribute,this._maxResults=e.maxResults||5,this._queryData=e.queryData||{},this._queryParamKey=e.queryParamKey||"q",this._queryEndpoint=e.queryEndpoint||"",this.value=null,this.queryCache={},this.activeQueryCount=0,(0,de.bindAll)(this,"query","respond")},url:function(){return this._queryEndpoint},query:function(t){var e,i;this.value=t,i=this.getFilteredResults(t),this.respond(t,i),t&&this._queryEndpoint&&!this.hasQueryCache(t)&&this.shouldGetMoreResults(i)&&(e=this.fetch(t),this.activeQueryCount++,this.trigger("activity",{activity:!0}),e.always(()=>{this.activeQueryCount--,this.trigger("activity",{activity:!!this.activeQueryCount})}),e.done((e,i,n)=>{this.addQueryCache(t,e,n)}),e.done(()=>{t=this.value,i=this.getFilteredResults(t),this.respond(t,i)}))},getQueryData:function(t){var e=(0,de.isFunction)(this._queryData)?this._queryData(t):this._queryData,i=(0,de.extend)({},e);return i[this._queryParamKey]=t,i},fetch:function(t){var e={add:!0,update:!0,remove:!1,data:this.getQueryData(t)};return _s().Collection.prototype.fetch.call(this,e)},respond:function(t,e){return this.trigger("respond",{query:t,results:e}),e},matcher:function(t,e){},getFilteredResults:function(t){var e=[];return t?(e=this.filter(function(e){return!!this.matcher(e,t)},this),this._maxResults&&(e=(0,de.first)(e,this._maxResults)),e):e},addQueryCache:function(t,e,i){var n=this.queryCache,s=this.parse(e,i);n[t]=(0,de.pluck)(s,this._idAttribute)},hasQueryCache:function(t){return this.queryCache.hasOwnProperty(t)},findQueryCache:function(t){return this.queryCache[t]},shouldGetMoreResults:function(t){return t.length<this._maxResults},setMaxResults:function(t){this._maxResults=t,this.value&&this.respond(this.value,this.getFilteredResults(this.value))}});l("ProgressiveDataSet",xs);const Cs=xs,Ts=_s().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}});const ks=function(){return{_suggestions:[],_activeIndex:-1,onChange:function(){},onHighlightChange:function(){},get:function(t){return this._suggestions[t]},set:function(t){var e=this._suggestions;return this._suggestions=t||[],this.onChange(e),this},getNumberOfResults:function(){return this._suggestions.length},setHighlighted:function(t){if(t)for(var e=0;e<this._suggestions.length;e++)this._suggestions[e].id===t.id&&this.highlight(e);return this},highlight:function(t){return this._activeIndex=t,this.onHighlightChange(),this},highlightPrevious:function(){const t=this._activeIndex,e=0===t?this._suggestions.length-1:t-1;return this.highlight(e),this},highlightNext:function(){const t=this._activeIndex,e=t===this._suggestions.length-1?0:t+1;return this.highlight(e),this},highlighted:function(){return this.get(this._activeIndex)},highlightedIndex:function(){return this._activeIndex}}};function Es(t,e){return t+"-"+e}function As(t){i(t).find(".aui-select-active").removeClass("aui-select-active")}const Ss=function(t,e){const n={el:t,anchor:e,render:function(t,e,i,n){this.currListId=i;let s="";if(t.length){for(let r=0;r<t.length;r++){const a=t[r],o=r+e,l=a.getLabel(),c=a.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",d=a.get("new-value")?` (<em>${I18n.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${Es(i,o)}">${u}${l}${d}</li>`}e?this.el.querySelector("ul").innerHTML+=s:this.el.querySelector("ul").innerHTML=s}else e||(this.el.querySelector("ul").innerHTML=`<li role="option" class="aui-select-no-suggestions">${I18n.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(t){As(this.el),i(this.el).find("#"+Es(this.currListId,t)).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){!function(t){i(t.el).css("min-width",i(t.anchor).outerWidth())}(this),Mt(this.el).show(),function(t){t.anchor&&!t._auiAlignment&&(t._auiAlignment=new on(t.el,t.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),t._auiAlignment&&(t._auiAlignment.enable(),t._auiAlignment.scheduleUpdate())}(this)},hide:function(){As(this.el),Mt(this.el).hide(),function(t){t._auiAlignment&&t._auiAlignment.disable()}(this)},destroy:function(){this.hide(),function(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}(this),delete this.currListId},isVisible:function(){return i(this.el).is(":visible")}};return n},Ds=Wt()('\n <input type="text" class="text" role="combobox" aria-expanded="false">\n <select></select>\n <datalist>\n <content select="aui-option"></content>\n </datalist>\n <button class="aui-button" tabindex="-1" type="button"></button>\n <div class="aui-popover" data-aui-alignment="bottom left" hidden>\n <ul role="listbox" class="aui-optionlist"></ul>\n </div>\n <div class="aui-select-status assistive" aria-live="polite" role="status"></div>\n');function Is(t){t._select.selectedIndex=-1,function(t){t._input.removeAttribute("style"),i(t._input).removeClass("aui-select-has-inline-image")}(t)}function Ms(t){return t._suggestionModel.getNumberOfResults()}function Ns(t,e){return 0===t.get("label").toLowerCase().indexOf(e.toLowerCase())}function Os(t){t._input.setAttribute("aria-expanded","false"),t._button.setAttribute("aria-expanded","false"),t._input.removeAttribute("aria-activedescendant"),Ws(t,"")}function Ls(t){t._suggestionsView.hide(),Os(t)}function Ps(t,e,i){t._autoHighlight=e,void 0===i&&(i=t._input.value),t._progressiveDataSet.query(i)}function Rs(t){var e=t._suggestionModel.highlighted()&&t._suggestionModel.highlighted().get("img-src");e&&function(t,e){i(t._input).addClass("aui-select-has-inline-image"),t._input.setAttribute("style","background-image: url("+encodeURI(e)+")")}(t,e)}function $s(t,e){if(e){var i,n=document.createElement("option"),s=t._select,r=e.get("value")||e.get("label"),a=(i=e.getLabel(),(new DOMParser).parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,t._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function js(t){$s(t,t._suggestionModel.highlighted()),Rs(t),Ls(t)}function zs(t){return new Ts(t.serialize())}function Fs(t){for(var e=[],i=0;i<t._datalist.children.length;i++){var n=t._datalist.children[i];e.push(zs(n))}return e}function Hs(t){var e=t._dropdown.querySelector(".aui-select-active");return e&&e.id}function Bs(t,e){return i.map(e,function(t){return t.id}).indexOf(t)}function Us(t){t._progressiveDataSet=new Cs(Fs(t),{model:Ts,matcher:Ns,queryEndpoint:t._queryEndpoint,maxResults:20}),t._isSync=!t._queryEndpoint,t._progressiveDataSet.on("activity",function(){t._progressiveDataSet.activeQueryCount&&!t._isSync?(!function(t){t._button.isBusy()||(t._button.busy(),t._input.setAttribute("aria-busy","true"),t._dropdown.setAttribute("aria-busy","true"))}(t),Z(t).set("should-flag-new-suggestions",!1)):(!function(t){t._button.idle(),t._input.setAttribute("aria-busy","false"),t._dropdown.setAttribute("aria-busy","false")}(t),Z(t).set("should-flag-new-suggestions",!0))}),t._progressiveDataSet.on("respond",function(e){if(e.query&&!t._input.value)return;if(Z(t).get("should-cancel-response"))return void(t._progressiveDataSet.activeQueryCount||Z(t).set("should-cancel-response",!1));e.query||(e.results=Fs(t));var i=-1!==Bs(t._input.value,e.results),n=!t._input.value;!t.hasAttribute("can-create-values")||i||n||e.results.push(function(t){var e=new ys;e.setAttribute("value",t._input.value);var i=zs(e);return i.set("new-value",!0),i}(t));let s=Bs(t.value,e.results);s=-1===s?0:s;const r=function(t,e){const i=t._suggestionModel.getNumberOfResults();return t._suggestionModel.set(),t._suggestionModel.set(e.results),i!==t._suggestionModel.getNumberOfResults()}(t,e),a=e.results[s];t._autoHighlight&&(t._suggestionModel.setHighlighted(a),setTimeout(function(){const e=Hs(t);null!=e?t._input.setAttribute("aria-activedescendant",e):t._input.removeAttribute("aria-activedescendant")},50)),t._input.setAttribute("aria-expanded","true"),t._button.setAttribute("aria-expanded","true"),!t._isSync&&r&&t._suggestionsView.getActive()&&Z(t).get("should-flag-new-suggestions")&&(t.querySelector(".aui-select-status").innerHTML=I18n.getText("aui.select.new.suggestions")),t._suggestionsView.show()})}function Ws(t,e){clearTimeout(t.assistiveStatusTimerId),t.assistiveStatusTimerId=setTimeout(()=>{const i=t._assistiveStatus.innerText;e!==i&&(t._assistiveStatus.innerText=e)},50)}function Vs(t){Ps(t,!0,t.value?"":t._input.value)}function Ys(t){(function(t){return t._progressiveDataSet.activeQueryCount>0})(t)&&Z(t).set("should-cancel-response",!0)}function qs(t){if(t._select.selectedIndex>=0)return t._select.options[t._select.selectedIndex].textContent}function Ks(t){Ys(t),function(t){var e=!t.hasAttribute("no-empty-values"),i=!t._input.value,n=t._input.value!==qs(t);if(i||n)if(e)Is(t);else{var s=qs(t);void 0===s?Is(t):t._input.value=s}}(t),function(t){t._suggestionModel.highlight(-1)}(t),Ls(t)}const Qs=J("aui-select",{template:Ds,created:function(t){t._listId=pn(),t._input=t.querySelector("input"),t._select=t.querySelector("select"),t._dropdown=t.querySelector(".aui-popover"),t._datalist=t.querySelector("datalist"),t._button=t.querySelector("button"),t._assistiveStatus=t.querySelector(".aui-select-status.assistive"),t._suggestionsView=new Ss(t._dropdown,t._input),t._suggestionModel=new ks,t._suggestionModel.onChange=function(e){const i=[];t._suggestionModel._suggestions.forEach(function(t){e.some(e=>t.id===e.id)||i.push(t)});const n=Fs(t),s=Bs(t.value,n),r=e.length+i.length?"":`${I18n.getText("aui.select.no.suggestions")}`;t._suggestionsView.render(i,e.length,t._listId,s),Ws(t,r)},t._suggestionModel.onHighlightChange=function(){const e=t._suggestionModel.highlightedIndex();t._suggestionsView.setActive(e);const i=Hs(t);null!=i?t._input.setAttribute("aria-activedescendant",i):t._input.removeAttribute("aria-activedescendant")}},attached:function(t){J.init(t),Us(t),function(t){t._dropdown.id=t._listId,t.querySelector("button").setAttribute("aria-controls",t._listId)}(t),t._input.setAttribute("aria-controls",t._listId),function(t){i(t._dropdown).on("mouseover","li",function(e){Ms(t)&&t._suggestionModel.highlight(i(e.target).index())})}(t),function(t){let e=!1;i(document).on("aui-close-layers-on-outer-click.single-select",t=>{e&&(t.preventDefault(),e=!1)}),i(t._dropdown).on("mousedown","li",function(n){if(!Ms(t))return!1;t._suggestionModel.highlight(i(n.target).index()),js(t),i(t).closest(".aui-layer").length>0&&(e=!0)})}(t),function(t){var e=t._datalist.querySelector("aui-option[selected]");e&&$s(t,zs(e))}(t),function(t){var e=Ms(t)?0:-1;t._suggestionModel.highlight(e),Ls(t)}(t),Rs(t)},detached:function(t){i(document).off("aui-close-layers-on-outer-click"),ln(t).then(()=>{Ls(t),t._suggestionsView.destroy()})},attributes:{id(t,e){t.id&&(t.querySelector("input").id=e.newValue+hs)},name(t,e){t.querySelector("select").setAttribute("name",e.newValue),t.querySelector("select").setAttribute("aria-label",`${e.newValue} list`),t.querySelector("button").setAttribute("aria-label",`${e.newValue} list`),t.querySelector('ul[role="listbox"]').setAttribute("aria-label",`${e.newValue} list`)},placeholder(t,e){t.querySelector("input").setAttribute("placeholder",e.newValue)},src(t,e){t._queryEndpoint=e.newValue}},events:{"blur input":function(t){Ks(t)},"mousedown button":function(t){document.activeElement!==t._input||t._dropdown.hasAttribute("hidden")||Z(t).set("prevent-open-on-button-click",!0)},"click input":function(t){Vs(t)},"click button":function(t){var e=Z(t);e.get("prevent-open-on-button-click")?e.set("prevent-open-on-button-click",!1):(Z(t).set("button-clicked-prevent-dropdown-hide",!0),t.focus())},input:function(t){t._input.value?Ps(t,!0):Z(t).get("button-clicked-prevent-dropdown-hide")?Z(t).set("button-clicked-prevent-dropdown-hide",!1):Ls(t)},"keydown input":function(t,e){var i=t._input.value,n=!1;if(e.keyCode===Q.ESCAPE)return Ys(t),void Os(t);t._suggestionsView.isVisible()&&Ms(t)?e.keyCode===Q.ENTER?(Ys(t),js(t),e.preventDefault()):e.keyCode===Q.TAB?(js(t),n=!0):e.keyCode===Q.UP?(t._suggestionModel.highlightPrevious(),e.preventDefault()):e.keyCode===Q.DOWN&&(t._suggestionModel.highlightNext(),e.preventDefault()):e.keyCode!==Q.UP&&e.keyCode!==Q.DOWN||(Vs(t),e.preventDefault()),n=n||e.defaultPrevented,setTimeout(function(){t._input.value===i||n||t.dispatchEvent(new CustomEvent("input",{bubbles:!0}))},0)}},prototype:{get value(){var t=this._select.options[this._select.selectedIndex];return t?t.value:""},set value(t){if(""===t)(n=this)._input.value="",n._select.innerHTML="";else if(t){var e=this._progressiveDataSet,i=e.findWhere({value:t})||e.findWhere({label:t});!i&&this.hasAttribute("can-create-values")&&(i=new Ts({value:t,label:t})),$s(this,i)}var n;return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),Ks(this),this},focus:function(){return this._input.focus(),Vs(this),this}}});G("aui/select",Qs),l("select",Qs);const Gs=Qs,{entries:Js,setPrototypeOf:Zs,isFrozen:Xs,getPrototypeOf:tr,getOwnPropertyDescriptor:er}=Object;let{freeze:ir,seal:nr,create:sr}=Object,{apply:rr,construct:ar}="undefined"!=typeof Reflect&&Reflect;ir||(ir=function(t){return t}),nr||(nr=function(t){return t}),rr||(rr=function(t,e){for(var i=arguments.length,n=new Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return t.apply(e,n)}),ar||(ar=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];return new t(...i)});const or=xr(Array.prototype.forEach),lr=xr(Array.prototype.lastIndexOf),cr=xr(Array.prototype.pop),ur=xr(Array.prototype.push),dr=xr(Array.prototype.splice),hr=xr(String.prototype.toLowerCase),pr=xr(String.prototype.toString),fr=xr(String.prototype.match),gr=xr(String.prototype.replace),mr=xr(String.prototype.indexOf),vr=xr(String.prototype.trim),br=xr(Object.prototype.hasOwnProperty),yr=xr(RegExp.prototype.test),wr=(_r=TypeError,function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return ar(_r,e)});var _r;function xr(t){return function(e){e instanceof RegExp&&(e.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 rr(t,e,n)}}function Cr(t,e){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:hr;Zs&&Zs(t,null);let n=e.length;for(;n--;){let s=e[n];if("string"==typeof s){const t=i(s);t!==s&&(Xs(e)||(e[n]=t),s=t)}t[s]=!0}return t}function Tr(t){for(let e=0;e<t.length;e++){br(t,e)||(t[e]=null)}return t}function kr(t){const e=sr(null);for(const[i,n]of Js(t)){br(t,i)&&(Array.isArray(n)?e[i]=Tr(n):n&&"object"==typeof n&&n.constructor===Object?e[i]=kr(n):e[i]=n)}return e}function Er(t,e){for(;null!==t;){const i=er(t,e);if(i){if(i.get)return xr(i.get);if("function"==typeof i.value)return xr(i.value)}t=tr(t)}return function(){return null}}const Ar=ir(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),Sr=ir(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","slot","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),Dr=ir(["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"]),Ir=ir(["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"]),Mr=ir(["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"]),Nr=ir(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),Or=ir(["#text"]),Lr=ir(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),Pr=ir(["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"]),Rr=ir(["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"]),$r=ir(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),jr=nr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zr=nr(/<%[\w\W]*|[\w\W]*%>/gm),Fr=nr(/\$\{[\w\W]*/gm),Hr=nr(/^data-[\-\w.\u00B7-\uFFFF]+$/),Br=nr(/^aria-[\-\w]+$/),Ur=nr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Wr=nr(/^(?:\w+script|data):/i),Vr=nr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Yr=nr(/^html$/i),qr=nr(/^[a-z][.\w]*(-[.\w]+)+$/i);var Kr=Object.freeze({__proto__:null,ARIA_ATTR:Br,ATTR_WHITESPACE:Vr,CUSTOM_ELEMENT:qr,DATA_ATTR:Hr,DOCTYPE_NAME:Yr,ERB_EXPR:zr,IS_ALLOWED_URI:Ur,IS_SCRIPT_OR_DATA:Wr,MUSTACHE_EXPR:jr,TMPLIT_EXPR:Fr});const Qr=1,Gr=3,Jr=7,Zr=8,Xr=9,ta=function(){return"undefined"==typeof window?null:window};var ea=function t(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ta();const i=e=>t(e);if(i.version="3.2.7",i.removed=[],!e||!e.document||e.document.nodeType!==Xr||!e.Element)return i.isSupported=!1,i;let{document:n}=e;const s=n,r=s.currentScript,{DocumentFragment:a,HTMLTemplateElement:o,Node:l,Element:c,NodeFilter:u,NamedNodeMap:d=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:h,DOMParser:p,trustedTypes:f}=e,g=c.prototype,m=Er(g,"cloneNode"),v=Er(g,"remove"),b=Er(g,"nextSibling"),y=Er(g,"childNodes"),w=Er(g,"parentNode");if("function"==typeof o){const t=n.createElement("template");t.content&&t.content.ownerDocument&&(n=t.content.ownerDocument)}let _,x="";const{implementation:C,createNodeIterator:T,createDocumentFragment:k,getElementsByTagName:E}=n,{importNode:A}=s;let S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};i.isSupported="function"==typeof Js&&"function"==typeof w&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:D,ERB_EXPR:I,TMPLIT_EXPR:M,DATA_ATTR:N,ARIA_ATTR:O,IS_SCRIPT_OR_DATA:L,ATTR_WHITESPACE:P,CUSTOM_ELEMENT:R}=Kr;let{IS_ALLOWED_URI:$}=Kr,j=null;const z=Cr({},[...Ar,...Sr,...Dr,...Mr,...Or]);let F=null;const H=Cr({},[...Lr,...Pr,...Rr,...$r]);let B=Object.seal(sr(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}})),U=null,W=null,V=!0,Y=!0,q=!1,K=!0,Q=!1,G=!0,J=!1,Z=!1,X=!1,tt=!1,et=!1,it=!1,nt=!0,st=!1,rt=!0,at=!1,ot={},lt=null;const ct=Cr({},["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 ut=null;const dt=Cr({},["audio","video","img","source","image","track"]);let ht=null;const pt=Cr({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ft="http://www.w3.org/1998/Math/MathML",gt="http://www.w3.org/2000/svg",mt="http://www.w3.org/1999/xhtml";let vt=mt,bt=!1,yt=null;const wt=Cr({},[ft,gt,mt],pr);let _t=Cr({},["mi","mo","mn","ms","mtext"]),xt=Cr({},["annotation-xml"]);const Ct=Cr({},["title","style","font","a","script"]);let Tt=null;const kt=["application/xhtml+xml","text/html"];let Et=null,At=null;const St=n.createElement("form"),Dt=function(t){return t instanceof RegExp||t instanceof Function},It=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!At||At!==t){if(t&&"object"==typeof t||(t={}),t=kr(t),Tt=-1===kt.indexOf(t.PARSER_MEDIA_TYPE)?"text/html":t.PARSER_MEDIA_TYPE,Et="application/xhtml+xml"===Tt?pr:hr,j=br(t,"ALLOWED_TAGS")?Cr({},t.ALLOWED_TAGS,Et):z,F=br(t,"ALLOWED_ATTR")?Cr({},t.ALLOWED_ATTR,Et):H,yt=br(t,"ALLOWED_NAMESPACES")?Cr({},t.ALLOWED_NAMESPACES,pr):wt,ht=br(t,"ADD_URI_SAFE_ATTR")?Cr(kr(pt),t.ADD_URI_SAFE_ATTR,Et):pt,ut=br(t,"ADD_DATA_URI_TAGS")?Cr(kr(dt),t.ADD_DATA_URI_TAGS,Et):dt,lt=br(t,"FORBID_CONTENTS")?Cr({},t.FORBID_CONTENTS,Et):ct,U=br(t,"FORBID_TAGS")?Cr({},t.FORBID_TAGS,Et):kr({}),W=br(t,"FORBID_ATTR")?Cr({},t.FORBID_ATTR,Et):kr({}),ot=!!br(t,"USE_PROFILES")&&t.USE_PROFILES,V=!1!==t.ALLOW_ARIA_ATTR,Y=!1!==t.ALLOW_DATA_ATTR,q=t.ALLOW_UNKNOWN_PROTOCOLS||!1,K=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Q=t.SAFE_FOR_TEMPLATES||!1,G=!1!==t.SAFE_FOR_XML,J=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,et=t.RETURN_DOM_FRAGMENT||!1,it=t.RETURN_TRUSTED_TYPE||!1,X=t.FORCE_BODY||!1,nt=!1!==t.SANITIZE_DOM,st=t.SANITIZE_NAMED_PROPS||!1,rt=!1!==t.KEEP_CONTENT,at=t.IN_PLACE||!1,$=t.ALLOWED_URI_REGEXP||Ur,vt=t.NAMESPACE||mt,_t=t.MATHML_TEXT_INTEGRATION_POINTS||_t,xt=t.HTML_INTEGRATION_POINTS||xt,B=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(B.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&Dt(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(B.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(B.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Q&&(Y=!1),et&&(tt=!0),ot&&(j=Cr({},Or),F=[],!0===ot.html&&(Cr(j,Ar),Cr(F,Lr)),!0===ot.svg&&(Cr(j,Sr),Cr(F,Pr),Cr(F,$r)),!0===ot.svgFilters&&(Cr(j,Dr),Cr(F,Pr),Cr(F,$r)),!0===ot.mathMl&&(Cr(j,Mr),Cr(F,Rr),Cr(F,$r))),t.ADD_TAGS&&(j===z&&(j=kr(j)),Cr(j,t.ADD_TAGS,Et)),t.ADD_ATTR&&(F===H&&(F=kr(F)),Cr(F,t.ADD_ATTR,Et)),t.ADD_URI_SAFE_ATTR&&Cr(ht,t.ADD_URI_SAFE_ATTR,Et),t.FORBID_CONTENTS&&(lt===ct&&(lt=kr(lt)),Cr(lt,t.FORBID_CONTENTS,Et)),rt&&(j["#text"]=!0),J&&Cr(j,["html","head","body"]),j.table&&(Cr(j,["tbody"]),delete U.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw wr('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw wr('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');_=t.TRUSTED_TYPES_POLICY,x=_.createHTML("")}else void 0===_&&(_=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let i=null;const n="data-tt-policy-suffix";e&&e.hasAttribute(n)&&(i=e.getAttribute(n));const s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+s+" could not be created."),null}}(f,r)),null!==_&&"string"==typeof x&&(x=_.createHTML(""));ir&&ir(t),At=t}},Mt=Cr({},[...Sr,...Dr,...Ir]),Nt=Cr({},[...Mr,...Nr]),Ot=function(t){ur(i.removed,{element:t});try{w(t).removeChild(t)}catch(e){v(t)}},Lt=function(t,e){try{ur(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){ur(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(tt||et)try{Ot(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Pt=function(t){let e=null,i=null;if(X)t="<remove></remove>"+t;else{const e=fr(t,/^[\r\n\t ]+/);i=e&&e[0]}"application/xhtml+xml"===Tt&&vt===mt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const s=_?_.createHTML(t):t;if(vt===mt)try{e=(new p).parseFromString(s,Tt)}catch(t){}if(!e||!e.documentElement){e=C.createDocument(vt,"template",null);try{e.documentElement.innerHTML=bt?x:s}catch(t){}}const r=e.body||e.documentElement;return t&&i&&r.insertBefore(n.createTextNode(i),r.childNodes[0]||null),vt===mt?E.call(e,J?"html":"body")[0]:J?e.documentElement:r},Rt=function(t){return T.call(t.ownerDocument||t,t,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},$t=function(t){return t instanceof h&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof d)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},jt=function(t){return"function"==typeof l&&t instanceof l};function zt(t,e,n){or(t,t=>{t.call(i,e,n,At)})}const Ft=function(t){let e=null;if(zt(S.beforeSanitizeElements,t,null),$t(t))return Ot(t),!0;const n=Et(t.nodeName);if(zt(S.uponSanitizeElement,t,{tagName:n,allowedTags:j}),G&&t.hasChildNodes()&&!jt(t.firstElementChild)&&yr(/<[/\w!]/g,t.innerHTML)&&yr(/<[/\w!]/g,t.textContent))return Ot(t),!0;if(t.nodeType===Jr)return Ot(t),!0;if(G&&t.nodeType===Zr&&yr(/<[/\w]/g,t.data))return Ot(t),!0;if(!j[n]||U[n]){if(!U[n]&&Bt(n)){if(B.tagNameCheck instanceof RegExp&&yr(B.tagNameCheck,n))return!1;if(B.tagNameCheck instanceof Function&&B.tagNameCheck(n))return!1}if(rt&&!lt[n]){const e=w(t)||t.parentNode,i=y(t)||t.childNodes;if(i&&e){for(let n=i.length-1;n>=0;--n){const s=m(i[n],!0);s.__removalCount=(t.__removalCount||0)+1,e.insertBefore(s,b(t))}}}return Ot(t),!0}return t instanceof c&&!function(t){let e=w(t);e&&e.tagName||(e={namespaceURI:vt,tagName:"template"});const i=hr(t.tagName),n=hr(e.tagName);return!!yt[t.namespaceURI]&&(t.namespaceURI===gt?e.namespaceURI===mt?"svg"===i:e.namespaceURI===ft?"svg"===i&&("annotation-xml"===n||_t[n]):Boolean(Mt[i]):t.namespaceURI===ft?e.namespaceURI===mt?"math"===i:e.namespaceURI===gt?"math"===i&&xt[n]:Boolean(Nt[i]):t.namespaceURI===mt?!(e.namespaceURI===gt&&!xt[n])&&!(e.namespaceURI===ft&&!_t[n])&&!Nt[i]&&(Ct[i]||!Mt[i]):!("application/xhtml+xml"!==Tt||!yt[t.namespaceURI]))}(t)?(Ot(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!yr(/<\/no(script|embed|frames)/i,t.innerHTML)?(Q&&t.nodeType===Gr&&(e=t.textContent,or([D,I,M],t=>{e=gr(e,t," ")}),t.textContent!==e&&(ur(i.removed,{element:t.cloneNode()}),t.textContent=e)),zt(S.afterSanitizeElements,t,null),!1):(Ot(t),!0)},Ht=function(t,e,i){if(nt&&("id"===e||"name"===e)&&(i in n||i in St))return!1;if(Y&&!W[e]&&yr(N,e));else if(V&&yr(O,e));else if(!F[e]||W[e]){if(!(Bt(t)&&(B.tagNameCheck instanceof RegExp&&yr(B.tagNameCheck,t)||B.tagNameCheck instanceof Function&&B.tagNameCheck(t))&&(B.attributeNameCheck instanceof RegExp&&yr(B.attributeNameCheck,e)||B.attributeNameCheck instanceof Function&&B.attributeNameCheck(e,t))||"is"===e&&B.allowCustomizedBuiltInElements&&(B.tagNameCheck instanceof RegExp&&yr(B.tagNameCheck,i)||B.tagNameCheck instanceof Function&&B.tagNameCheck(i))))return!1}else if(ht[e]);else if(yr($,gr(i,P,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==mr(i,"data:")||!ut[t]){if(q&&!yr(L,gr(i,P,"")));else if(i)return!1}else;return!0},Bt=function(t){return"annotation-xml"!==t&&fr(t,R)},Ut=function(t){zt(S.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||$t(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let s=e.length;for(;s--;){const r=e[s],{name:a,namespaceURI:o,value:l}=r,c=Et(a),u=l;let d="value"===a?u:vr(u);if(n.attrName=c,n.attrValue=d,n.keepAttr=!0,n.forceKeepAttr=void 0,zt(S.uponSanitizeAttribute,t,n),d=n.attrValue,!st||"id"!==c&&"name"!==c||(Lt(a,t),d="user-content-"+d),G&&yr(/((--!?|])>)|<\/(style|title|textarea)/i,d)){Lt(a,t);continue}if("attributename"===c&&fr(d,"href")){Lt(a,t);continue}if(n.forceKeepAttr)continue;if(!n.keepAttr){Lt(a,t);continue}if(!K&&yr(/\/>/i,d)){Lt(a,t);continue}Q&&or([D,I,M],t=>{d=gr(d,t," ")});const h=Et(t.nodeName);if(Ht(h,c,d)){if(_&&"object"==typeof f&&"function"==typeof f.getAttributeType)if(o);else switch(f.getAttributeType(h,c)){case"TrustedHTML":d=_.createHTML(d);break;case"TrustedScriptURL":d=_.createScriptURL(d)}if(d!==u)try{o?t.setAttributeNS(o,a,d):t.setAttribute(a,d),$t(t)?Ot(t):cr(i.removed)}catch(e){Lt(a,t)}}else Lt(a,t)}zt(S.afterSanitizeAttributes,t,null)},Wt=function t(e){let i=null;const n=Rt(e);for(zt(S.beforeSanitizeShadowDOM,e,null);i=n.nextNode();)zt(S.uponSanitizeShadowNode,i,null),Ft(i),Ut(i),i.content instanceof a&&t(i.content);zt(S.afterSanitizeShadowDOM,e,null)};return i.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,r=null,o=null,c=null;if(bt=!t,bt&&(t="\x3c!--\x3e"),"string"!=typeof t&&!jt(t)){if("function"!=typeof t.toString)throw wr("toString is not a function");if("string"!=typeof(t=t.toString()))throw wr("dirty is not a string, aborting")}if(!i.isSupported)return t;if(Z||It(e),i.removed=[],"string"==typeof t&&(at=!1),at){if(t.nodeName){const e=Et(t.nodeName);if(!j[e]||U[e])throw wr("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof l)n=Pt("\x3c!----\x3e"),r=n.ownerDocument.importNode(t,!0),r.nodeType===Qr&&"BODY"===r.nodeName||"HTML"===r.nodeName?n=r:n.appendChild(r);else{if(!tt&&!Q&&!J&&-1===t.indexOf("<"))return _&&it?_.createHTML(t):t;if(n=Pt(t),!n)return tt?null:it?x:""}n&&X&&Ot(n.firstChild);const u=Rt(at?t:n);for(;o=u.nextNode();)Ft(o),Ut(o),o.content instanceof a&&Wt(o.content);if(at)return t;if(tt){if(et)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=J?n.outerHTML:n.innerHTML;return J&&j["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&yr(Yr,n.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+d),Q&&or([D,I,M],t=>{d=gr(d,t," ")}),_&&it?_.createHTML(d):d},i.setConfig=function(){It(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},i.clearConfig=function(){At=null,Z=!1},i.isValidAttribute=function(t,e,i){At||It({});const n=Et(t),s=Et(e);return Ht(n,s,i)},i.addHook=function(t,e){"function"==typeof e&&ur(S[t],e)},i.removeHook=function(t,e){if(void 0!==e){const i=lr(S[t],e);return-1===i?void 0:dr(S[t],i,1)[0]}return cr(S[t])},i.removeHooks=function(t){S[t]=[]},i.removeAllHooks=function(){S={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},i}();const ia="aui-tooltip",na={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},sa="aui-tooltip",ra={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200};let aa;const oa=(t=!1)=>{const e=aa&&aa.get(0);e&&(e.classList.toggle("hidden",t),e.setAttribute("aria-hidden",t))};class la{constructor(t,e){this.triggerElement=t,this.$triggerElement=i(this.triggerElement),this.options={...ra,...e},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),ca.delete(this.triggerElement)}moveTitleToTooltip(){const t=this,e=this.$triggerElement;e.attr("title",function(i,n){return t.originalTitle=n,t.options.aria&&e.attr("aria-describedby",ia),null})}restoreOriginalAttributes(){const t=this.$triggerElement;this.originalTitle&&t.attr("title",this.originalTitle),t.attr("aria-describedby")===ia&&t.removeAttr("aria-describedby")}observeTriggerRemoval(){const t=[];this.options.$delegationRoot&&this.options.$delegationRoot.get(0)&&t.push(this.options.$delegationRoot.get(0)),this.triggerElement&&t.push(this.triggerElement),this.triggerObservers=t.map(t=>{const e=t.parentElement;if(e){const i=new MutationObserver(()=>{!e.contains(t)&&this.destroy()});return i.observe(e,{childList:!0,subtree:!1}),i}}).filter(t=>!!t)}unbindHandlers(){const t=this.options.live;this.options.$delegationRoot&&t?this.options.$delegationRoot.off(`.${sa}`,t):(this.triggerObservers.length>0&&this.triggerObservers.forEach(t=>t.disconnect()),this.$triggerElement.off(`.${sa}`))}initContainer(){(void 0===aa||aa.get(0)&&!aa.get(0).isConnected)&&(aa=i(`<div id="${ia}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),i(document.body).append(aa))}buildTip(t){const e=this.options,i=aa.find(".aui-tooltip-content");return e.html?(e.sanitize&&(t=ea.sanitize(t)),i.html(t)):i.text(t),e.maxWidth&&i.css("max-width",e.maxWidth+"px"),aa}getTipTitle(){const t=this.options;let e=("function"==typeof t.title?t.title:"string"==typeof t.title?()=>t.title:()=>this.originalTitle||"").call(this.triggerElement);return e&&e.trim().length?e:void 0}show(){const t=this.getTipTitle();if(!1===this.enabled||!t)return;aa&&t!==aa.text()&&this.hide();const e=this.triggerElement,n=na[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(e))return;const s=this.buildTip(t).get(0);this.showTooltip(),this.popperInstance=Ji(e,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),i(window).on(`scroll.${sa}`,()=>this.hide())}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),i(window).off(`scroll.${sa}`)}showTooltip(){oa(!1)}hideTooltip(){oa(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}const ca=new WeakMap,ua=(t,e)=>{let i=ca.get(t);return void 0===i&&(i=new la(t,e),"object"==typeof t&&ca.set(t,i)),i},da=t=>t.map(t=>`${t}.${sa}`).join(" "),ha=da(["mouseenter","focus"]),pa=da(["click","mouseleave","blur"]);let fa,ga;i.fn.tooltip=function(t){const e=this;if(!0===t){const t=e.get(0);return ua(t)}if("string"==typeof t){const i=e.tooltip(!0),n=t;if("function"!=typeof i[n])throw new Error(`Method ${n} does not exist on tooltip.`);return i[n](),e}const i=t||{},n=function(){clearTimeout(ga),clearTimeout(fa)},s=function(){n();const t=ua(this,i);fa=setTimeout(()=>{n(),t.show(),aa&&(aa.off(`mouseenter.${sa}`),aa.off(`mouseleave.${sa}`),aa.on(`mouseenter.${sa}`,()=>{n()}),aa.on(`mouseleave.${sa}`,()=>{n(),r()}))},300)},r=function(){n();const t=ua(this,i);ga=setTimeout(()=>{t.hide()},300)},a=function(t){"Escape"===t.code&&r()},o=i.live;return void 0!==o?(i.$delegationRoot=e,e.on(ha,o,s),e.on(pa,o,r),e.on("keyup",o,a)):(e.on(ha,s),e.on(pa,r),e.on("keyup",a)),e};function ma(t,e,i){i?t.setAttribute(e,""):t.removeAttribute(e)}const va={computeBooleanValue:function(t){return null!==t},setBooleanAttribute:ma,computeEnumValue:function(t,e){const i=t=>t.toLowerCase()===e.toLowerCase(),n=null===e,s=!n&&!t.values.filter(i).length;return n?t.hasOwnProperty("missingDefault")?t.missingDefault:null:s?t.hasOwnProperty("invalidDefault")?t.invalidDefault:t.hasOwnProperty("missingDefault")?t.missingDefault:null:t.values.length?t.values.filter(i)[0]:null},setEnumAttribute:function(t,e,i){t.setAttribute(e.attribute,i)}};function ba(t){return t._input||(t._input=t.querySelector("input"))}function ya(t){return t._spinner||(t._spinner=new ye)}function wa(t,e){ba(e).removeAttribute(t)}function _a(t,e,i){ba(e).setAttribute(t,i.newValue)}function xa(t){return{removed:wa.bind(this,t),fallback:_a.bind(this,t)}}const Ca={removed:function(t){wa.call(this,"form",t),t._formId=null},fallback:function(t,e){_a.call(this,"form",t,e),t._formId=e.newValue}},Ta={removed:wa.bind(void 0,"id"),fallback:function(t,e){const i=`${e.newValue}${hs}`;ba(t).setAttribute("id",i)}},ka={removed:function(t){wa.call(this,"value",t),ba(t).value="on"},fallback:function(t,e){_a.call(this,"value",t,e)}},Ea={removed:function(t){ba(t).checked=!1},fallback:function(t){ba(t).checked=!0}},Aa={removed:function(t){ba(t).removeAttribute("aria-label")},fallback:function(t,e){ba(t).setAttribute("aria-label",e.newValue)}};function Sa(t){ba(t).addEventListener("keydown",function(e){t.busy&&e.keyCode===Q.SPACE&&e.preventDefault()}),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&ba(t).addEventListener("click",function(e){t.busy&&e.preventDefault()}),function(){if(void 0===Me)try{document.querySelector(":focus-within"),Me=!0}catch(t){Me=!1}return Me}()||(t._input.addEventListener("focus",()=>t.classList.add("active")),t._input.addEventListener("blur",()=>t.classList.remove("active")))}const Da=J("aui-toggle",{template:Wt()('<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(t){ba(t),ya(t).setAttribute("size",he.SMALL.name),i(ba(t)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),Sa(t),t.hasAttribute("checked")&&ba(t).setAttribute("checked",""),t._canFireEventsNow=!0},attached:function(t){ds(t).attributeExists("label")},events:{click:function(t,e){const i=ba(t);t.disabled||t.busy||e.target===i||(i.checked=!i.checked,function(t){t._canFireEventsNow&&t.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}(t)),ma(t,"checked",i.checked)}},attributes:{id:Ta,checked:Ea,disabled:xa("disabled"),form:Ca,name:xa("name"),value:ka,"tooltip-on":{value:I18n.getText("aui.toggle.on"),fallback:function(t,e){ba(t).setAttribute("tooltip-on",e.newValue||I18n.getText("aui.toggle.on"))}},"tooltip-off":{value:I18n.getText("aui.toggle.off"),fallback:function(t,e){ba(t).setAttribute("tooltip-off",e.newValue||I18n.getText("aui.toggle.off"))}},label:Aa},prototype:{focus:function(){return ba(this).focus(),this},get checked(){return ba(this).checked},set checked(t){ba(this).checked!==t&&(ba(this).checked=t,ma(this,"checked",t))},get disabled(){return ba(this).disabled},set disabled(t){return ma(this,"disabled",t)},get form(){return document.getElementById(this._formId)},set form(t){return Ca.fallback.call(this,this,{newValue:t||null}),this.form},get name(){return ba(this).name},set name(t){return this.setAttribute("name",t),t},get value(){return ba(this).value},set value(t){let e=null===t?"":t;return this.setAttribute("value",e),e},get busy(){return"true"===ba(this).getAttribute("aria-busy")},set busy(t){const e=ba(this),n=ya(this);var s,r;return ma(this,"busy",t),t?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),i(this.querySelector(".aui-toggle-tick")).append(n)):i(this.querySelector(".aui-toggle-cross")).append(n)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),n.parentNode&&n.parentNode.removeChild(this._spinner)),r=!!t,(s=this).id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${s.id}"]`),function(t){t.disabled=r}),t}}}),Ia=Da;function Ma(t,e){Va(t)&&et(t,function(i){i.setAttribute("aria-expanded","false"),e.setAttribute("aria-expanded",t.open)}),tt(t,e)}function Na(t,e){if(t._auiAlignment)t._auiAlignment.changeTarget(e),t._auiAlignment.enable();else{let i={overflowContainer:"viewport"===t.getAttribute("contained-by")?"viewport":"window",positionFixed:!1,eventsEnabled:!0};t._auiAlignment=new on(t,e,i)}}function Oa(t){t._auiAlignment&&(t._auiAlignment.destroy(),delete t._auiAlignment)}function La(t,e){var i=e.currentTarget;i&&(Ma(t,i),Na(t,i)),t.open||(t.open=!0),clearTimeout(t._closingTimeout)}function Pa(t=0){return function(e){e.open&&!Mt(e).isPersistent()&&(clearTimeout(e._closingTimeout),e._closingTimeout=setTimeout(function(){(function(t){return Z(t).get("mouse-inside")||t.contains(document.activeElement)})(e)||(e.open=!1),e._closingTimeout=null},t))}}const Ra={click(t,e){t.open&&!Mt(t).isPersistent()?t.open=!1:(Ma(t,e.currentTarget),t.open=!0),clearTimeout(t._closingTimeout)},mouseenter:La,mouseleave:Pa(1e3),focus:La,blur:Pa(0)};function $a(t){var e=t.currentTarget;Z(e).set("mouse-inside",!0),e.message({type:"mouseenter"})}function ja(t){var e=t.currentTarget;Z(e).set("mouse-inside",!1),e.message({type:"mouseleave"})}function za(t){var e=t.currentTarget;"hover"===e.respondsTo&&Pa(1e3)(e)}function Fa(t){Z(t).set("mouse-inside",void 0),t.removeEventListener("mouseenter",$a),t.removeEventListener("mouseleave",ja),t.removeEventListener("blur",za),"hover"===t.respondsTo&&(Z(t).set("mouse-inside",!1),t.addEventListener("mouseenter",$a),t.addEventListener("mouseleave",ja),t.addEventListener("blur",za))}function Ha(t,e){return`${t}.nested-layer-${e}`}function Ba(t){return Mt(t).show(),!0===Mt(t).isVisible()}function Ua(t){return Mt(t).hide(),!1===Mt(t).isVisible()}function Wa(t){return"hover"!==t.respondsTo}function Va(t){return"dialog"!==t.getAttribute("role")}function Ya(t){t.__initialised||(Mt(t),i(t).on({[`${mt}show`]:function(t){const e=this;t.target===e&&(!function(t){let e=i(t);const n=t.id,s=t=>e.find(X(t.target)).length<1;i(document).on(Ha("aui-layer-show",n),t=>{s(t)||e.attr("persistent","")}).on(Ha("aui-layer-hide",n),t=>{s(t)||e.removeAttr("persistent")}).on(Ha("select2-opening",n),()=>{e.attr("persistent","")}).on(Ha("select2-close",n),()=>{setTimeout(()=>{e.removeAttr("persistent")},150)})}(e),et(e,function(t){Wa(e)&&ft().enter(i(e),i(t)),Na(e,t),Va(e)&&t.setAttribute("aria-expanded","true")}))},[`${mt}hide`]:function(t){const e=this;var n;t.target===e&&(n=e.id,i(document).off(Ha("aui-layer-hide",n)).off(Ha("aui-layer-show",n)).off(Ha("select2-opening",n)).off(Ha("select2-close",n)),e.ownerDocument.body.contains(e)?function(t){t._auiAlignment&&t._auiAlignment.disable()}(e):Oa(e),et(e,function(t){Wa(e)&&ft().exit(i(e)),Va(e)&&t.setAttribute("aria-expanded","false")}),tt(e,null))}}),t.__initialised=!0)}const qa={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},Ka=J("aui-inline-dialog",{prototype:{get open(){return Mt(this).isVisible()},set open(t){this.__propUpdate=!0,t?Ba(this):Ua(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(t){va.setBooleanAttribute(this,"persistent",t)},get respondsTo(){var t=qa.attribute;return va.computeEnumValue(qa,this.getAttribute(t))},set respondsTo(t){const e=this.respondsTo;va.setEnumAttribute(this,qa,t),e!==this.respondsTo&&Fa(this)},message:function(t){var e,i,n;return i=t,(n={toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]}[(e=this).respondsTo])&&n.indexOf(i.type)>-1&&Ra[i.type](e,i),this}},attributes:{open:function(t,e){if(Ya(t),t.__propUpdate)delete t.__propUpdate;else{if("created"===e.type){Ba(t)||ma(t,"open",!1)}if("removed"===e.type){Ua(t)||ma(t,"open",!0)}}},"responds-to":function(t,e){va.computeEnumValue(qa,e.oldValue)!==va.computeEnumValue(qa,e.newValue)&&Fa(t)}},created:Ya,attached:function(t){ds(t).attributeExists("id"),t.setAttribute("tabindex",0),Va(t)&&(t.setAttribute("role","group"),et(t,function(e){e.setAttribute("aria-expanded",t.open)}),it(t,function(t){t.setAttribute("aria-haspopup","true")})),Fa(t)},detached:function(t){ln(t).then(()=>{Oa(t),Va(t)&&it(t,function(t){t.removeAttribute("aria-haspopup"),t.removeAttribute("aria-expanded")})})},template:function(t){i('<div class="aui-inline-dialog-contents"></div>').append(t.childNodes).appendTo(t)}});G("aui/inline-dialog2",Ka),l("InlineDialog2",Ka);const Qa=Ka;function Ga(t){if(this.$el=i(t).closest(".aui-nav"),this.$el.length>1)return this.$el.map(function(t,e){return new Ga(e)})[0];if(this.$el.data("aui-navigation"))return this.$el.data("aui-navigation");this.$el.data("aui-navigation",this),this.$treeParent=this.$el.parent("li[aria-expanded]"),this.$subtreeToggleIcon=this.$treeParent.children(".aui-nav-subtree-toggle").children("span.aui-icon"),this.$el.children("li:has(.aui-nav-selected)").addClass("aui-nav-child-selected");var e=this.$el.children(".aui-nav-selected");e.parents(".aui-nav > [aria-expanded=false]").add(e.filter("[aria-expanded=false]")).each(function(){Ja(i(this).children(".aui-nav")).expand()});var n=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return n.on("click",function(){Ja(i(this).siblings(".aui-nav")).toggle()}),n.each(function(){var t=i(this).parent("li[aria-expanded]"),e=i(this).find(".aui-icon"),n="true"===t.attr("aria-expanded");e.text(n?I18n.getText("aui.words.collapse"):I18n.getText("aui.words.expand"))}),this}Ga.prototype.isNested=function(){return 1===this.$treeParent.length},Ga.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},Ga.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},Ga.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},Ga.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};const Ja=gt("navigation",Ga),Za=J("aui-nav",{type:J.type.CLASSNAME,attached:function(t){new Ga(t)},detached:function(t){i(t).removeData()}});l("navigation",Ja);const Xa=Ja;function to(t,e,{currentProgress:n,value:s}){const r=i(t),a=i(e);"number"==typeof s&&s<=1&&s>=0&&(a.trigger("aui-progress-indicator-before-update",[n,s]),r.one("transitionend webkitTransitionEnd",function(){a.trigger("aui-progress-indicator-after-update",[n,s])}),function(t,e,i){U(t),t.css("width",100*i+"%"),e.attr("data-value",i)}(r,a,s))}function eo(t){var e=i(t).first(),n=e.children(".aui-progress-indicator-value");e.removeAttr("data-value"),U(e),n.css("width","")}const io={indeterminate:!1,max:1,val:0};function no(t){return(0,de.isNumber)(t)&&(0,de.isFinite)(t)&&!(0,de.isNaN)(t)}function so(t,e=1){const i=parseFloat(t);return no(i)?i:Number(e)}function ro(t,e=1){return Number(parseFloat(t).toFixed(e))}function ao(t){const{val:e,max:i}=t,n=function(t){return t>0?t:io.max}(i),s=function(t,e){return Math.max(0,Math.min(t,e))}(e,n),r=ro(s/n,6);return{max:n,val:s,valAsFraction:r,valAsPercent:ro(100*r,2)}}function oo(t){const{val:e,valAsFraction:i,max:n}=ao(t._data),s=t.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");t.indeterminate?(s.removeAttribute("aria-valuenow"),eo(s)):(s.setAttribute("aria-valuenow",e),s.setAttribute("aria-valuemax",n),to(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function lo(t,e){t._data.val=so(e.newValue,e.oldValue||io.val),oo(t)}function co(t,e){t._data.max=so(e.newValue,e.oldValue||io.max),oo(t)}const uo=J("aui-progressbar",{template(t){t._data.max=so(t.getAttribute("max"),io.max),t._data.val=so(t.getAttribute("value"),io.val),t._data.indeterminate=t.hasAttribute("indeterminate");const{val:e,max:i,valAsFraction:n,valAsPercent:s}=ao(t._data),r=t._data.indeterminate?"":`data-value="${n}"`;t.innerHTML=`<div class="aui-progress-indicator"\n ${r}\n role="progressbar"\n aria-valuemin="0"\n aria-valuenow="${e}"\n aria-valuemax="${i}"\n tabindex="0"\n >\n <span class="aui-progress-indicator-value" style="width: ${s}%"></span>\n </div>`},attached(t){oo(t)},attributes:{indeterminate:{created:function(t){t.indeterminate=!0},removed:function(t){t.indeterminate=!1}},value:{value:io.val,fallback:function(t,e){if(t._updating)return!1;lo(t,e)}},max:{value:io.max,fallback:function(t,e){if(t._updating)return!1;co(t,e)}}},prototype:{get _data(){return this.__data||(this._data=(0,de.defaults)({},io))},set _data(t){return this.__data=t},get indeterminate(){return this._data.indeterminate},set indeterminate(t){this._data.indeterminate=!!t,oo(this)},get value(){const{val:t}=ao(this._data);return t},set value(t){if(!no(t))return!1;const e={newValue:ro(t,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,lo(this,e)},get max(){const{max:t}=ao(this._data);return t},set max(t){if(!no(t))return!1;const e={newValue:ro(t,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,co(this,e)}}}),ho={update:R(function(t,e){if("string"==typeof t){let e=document.getElementById(t);e&&(t=e)}var n=i(t).first(),s=n.children(".aui-progress-indicator-value"),r=n.attr("data-value"),a=!r,o=parseFloat(r)||0,l=r&&o===e;if(l){l=o===100*(parseFloat(s.get(0).style.width)||0)}if(!l)return a&&s.css("width",0),to(s,n,{currentProgress:o,value:e}),n},"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:R(eo,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};l("progressBars",ho);const po=ho;n(99);const fo={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function go(t,e){let n=Object.assign({},fo,e);return t.find("th").each(function(t,e){const s=i(e);n.headers[t]={},s.hasClass("aui-table-column-unsortable")?n.headers[t].sorter=!1:(s.attr("tabindex","0"),s.wrapInner("<span class='aui-table-header-content'/>"),s.hasClass("aui-table-column-issue-key")&&(n.headers[t].sorter="issue-key"))}),t.tablesorter(n)}let mo={setup:function(){i.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(t){const e=t.split("-"),i=e[0],n=e[1],s="..........",r="000000";let a=(i+s).slice(0,10);return a+=(r+n).slice(-6),a},type:"text"}),i.tablesorter.addParser({id:"textSortAttributeParser",is:function(t,e,i){return i.hasAttribute("data-sort-value")&&(!i.hasAttribute("data-sort-type")||"text"===i.getAttribute("data-sort-type"))},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"text"}),i.tablesorter.addParser({id:"numericSortAttributeParser",is:function(t,e,i){return"numeric"===i.getAttribute("data-sort-type")&&i.hasAttribute("data-sort-value")},format:function(t,e,i){return i.getAttribute("data-sort-value")},type:"numeric"}),i(".aui-table-sortable").each(function(){go(i(this))})},setTableSortable:function(t,e){return go(t,e)}};i(mo.setup),l("tablessortable",mo);function vo(t,e=""){var n=i(t),s=e||!1;n.each(function(){var t=i(this);t.attr("id")||t.attr("id",pn(s))})}l("_addID",vo);const bo=vo;function yo(t){return(t=i(t)).prop("scrollWidth")>t.prop("clientWidth")}l("isClipped",yo);const wo=yo;var _o=window.skateTemplateHtml;function xo(t){let e=i(t),n=String(e.attr("href")||"").trim();return 0===n.indexOf("#")?n.substr(1):null}function Co(t){let e=xo(t);return e?document.getElementById(e):null}var To={totalTabsWidth:function(t,e){var i=this.totalVisibleTabWidth(t),n=0;return e.find("li").each(function(t,e){n+=parseInt(e.getAttribute("data-aui-tab-width"))}),i+n},totalVisibleTabWidth:function(t){var e=0;return t.each(function(t,n){e+=i(n).outerWidth()}),e},removeResponsiveDropdown:function(t,e){t.remove(),e.remove()},createResponsiveDropdownTrigger:function(t,e){var i=`<li class="menu-item aui-tabs-responsive-trigger-item">\n <a\n class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"\n id="aui-tabs-responsive-trigger-${e}"\n aria-haspopup="true"\n aria-controls="aui-tabs-responsive-dropdown-${e}"\n href="#aui-tabs-responsive-dropdown-${e}">...</a>\n </li>`;return t.append(i),t.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(t,e){var i='<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+e+'"><ul></ul></div>';return t.append(i),t.find("#aui-tabs-responsive-dropdown-"+e)},findNewVisibleTabs:function(t,e,n){function s(t,e,i){return t+e<=i}for(var r=0,a=0;s(r,n,e)&&a<t.length;a++){r+=i(t[a]).outerWidth(!0)}return t.slice(0,a-1)},moveVisibleTabs:function(t,e,n){for(var s=n.find("a").attr("aria-controls"),r=i("#"+s),a=this.findNewVisibleTabs(t,e.outerWidth(),n.parent().outerWidth(!0)),o=a.length-1,l=t.length-1;l>=o;l--){var c=i(t[l]);this.moveTabToResponsiveDropdown(c,r,n)}return i(a)},moveTabToResponsiveDropdown:function(t,e,i){var n=t.find("a");t.attr("data-aui-tab-width",t.outerWidth(!0)),n.addClass("aui-dropdown2-radio aui-tabs-responsive-item"),t.hasClass("active-tab")&&(n.addClass("aui-dropdown2-checked"),i.addClass("active-tab")),e.find("ul").prepend(t)},moveInvisibleTabs:function(t,e,n){function s(t){return t>0}for(var r=0;s(e)&&r<t.length;r++){var a=i(t[r]),o=parseInt(a.attr("data-aui-tab-width"),10);o<e&&this.moveTabOutOfDropdown(a,n),e-=o}},moveTabOutOfDropdown:function(t,e){t.find("a").hasClass("aui-dropdown2-checked")&&(t.addClass("active-tab"),e.removeClass("active-tab")),t.children("a").removeClass("aui-dropdown2-radio aui-tabs-responsive-item aui-dropdown2-checked"),e.before(t)}};function ko(t){var e=i(t);if(!e.hasClass("aui-tabs-responsive-trigger")){var n=Co(e);if(n){var s=i(n);s.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var r=e.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),a=i(document.getElementById(r));if(a.find("li a").attr("aria-checked",!1).removeClass("checked aui-dropdown2-checked"),a.find("li").removeClass("active-tab"),e.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),e.hasClass("aui-tabs-responsive-item")){var o=s.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");o.removeClass("active-tab"),o.find("a").removeClass("checked").removeAttr("aria-checked")}e.hasClass("aui-tabs-responsive-item")&&s.parent(".aui-tabs").find("li.menu-item.aui-tabs-responsive-trigger-item").addClass("active-tab"),e.closest(".tabs-menu").find("a").attr("aria-selected","false"),e.attr("aria-selected","true"),e.trigger("tabSelect",{tab:e,pane:s})}else m("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",t)}}function Eo(t){return void 0!==t.attr("data-aui-persist")&&"false"!==t.attr("data-aui-persist")}function Ao(t){var e=t.attr("id"),i=t.attr("data-aui-persist");return"_internal-aui-tabs-"+(e||"")+(i&&"true"!==i?"-"+i:"")}function So(t){Lo.change(i(t.target).closest("a")),t&&t.preventDefault()}function Do(t){t.forEach(function(t,e){!function(t,e){var n=i(t),s=n.find(".tabs-menu").first(),r=s.find("li:not(.aui-tabs-responsive-trigger-item)"),a=s.find(".aui-tabs-responsive-trigger").parent(),o=a.find("a"),l=o.attr("aria-controls"),c=i(document.getElementById(l)).attr("aria-checked",!1),u=c.length>0,d=To.totalTabsWidth(r,c)>n.outerWidth();if(!u&&d&&(a=To.createResponsiveDropdownTrigger(s,e),c=To.createResponsiveDropdown(n,e)),o.attr("aria-controls","aui-tabs-responsive-dropdown-"+e),o.attr("id","aui-tabs-responsive-trigger-"+e),o.attr("href","#aui-tabs-responsive-trigger-"+e),c.attr("id","aui-tabs-responsive-dropdown-"+e),d){var h=To.moveVisibleTabs(r.toArray(),n,a),p=To.totalVisibleTabWidth(h),f=n.outerWidth()-p-a.outerWidth(!0);if(f>0){var g=c.find("li");To.moveInvisibleTabs(g.toArray(),f,a)}n.hasClass("aui-tabs-disabled")||c.on("click.aui-tabs","a",So),s.is(":visible")&&s.hide().show()}u&&!d&&(c.find("li").each(function(){To.moveTabOutOfDropdown(i(this),a)}),To.removeResponsiveDropdown(c,a))}(t,e)})}function Io(){return i('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function Mo(t){var e=i(t);if(t.setAttribute("role","application"),!e.data("aui-tab-events-bound")){var n=e.children("ul.tabs-menu");n.attr("role","tablist"),n.children("li").attr("role","presentation"),n.find("> .menu-item a").each(function(){var t,e,n;e=i(t=this),n=Co(e),xo(t)||m('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',t),n?(bo(e),e.attr("role","tab"),i(n).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.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.",t)}),n.on("click.aui-tabs","a",So),e.data("aui-tab-events-bound",!0),function(t){[].slice.call(t.querySelectorAll(".tabs-pane")).forEach(Oo)}(t)}}function No(){var t=i(".aui-tabs:not(.aui-tabs-disabled)");t.each(function(){Mo(this)}),function(t){for(var e=0,i=t.length;e<i;e++){var n=t.eq(e),s=t.get(e);if(Eo(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(Ao(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&ko(a)}}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(t)}function Oo(t){t.setAttribute("role","tabpanel")}var Lo={setup:function(){!function(){const t=(0,de.debounce)(Do,200);t(Io()),i(window).on("resize.aui-tabs",()=>t(Io()))}(),No(),i(".aui-tabs.vertical-tabs").find("a").each(function(){var t=i(this);t.attr("title")||wo(t)&&t.attr("title",t.text())})},change:function(t){var e=t instanceof HTMLElement||t instanceof i?t:document.querySelector(t),n=i(e).first(),s=n.closest(".aui-tabs");ko(n),Eo(s)&&window.localStorage&&function(t){var e=t.closest(".aui-tabs");if(e.attr("id")){var i=xo(t);i&&window.localStorage.setItem(Ao(e),"#"+i)}else g("A tab group must specify an id attribute if it specifies data-aui-persist.")}(n)}};i(Lo.setup);const Po=J("aui-tabs",{created:function(t){i(t).addClass("aui-tabs horizontal-tabs"),J.init(t),Mo(t)},template:_o('<ul class="tabs-menu">','<content select="li[is=aui-tabs-tab]"></content>',"</ul>",'<content select="aui-tabs-pane"></content>'),prototype:{select:function(t){var e=i(function(t){return t.querySelectorAll("aui-tabs-pane")}(this)).index(t);return e>-1&&Lo.change(function(t){return t.querySelectorAll("li[is=aui-tabs-tab]")}(this)[e].children[0]),this}}}),Ro=J("aui-tabs-tab",{extends:"li",created:function(t){i(t).addClass("menu-item")},template:_o('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),$o=J("aui-tabs-pane",{attached:function(t){var e=i(function(t){return i(t).closest("aui-tabs").get(0)}(t)),n=i(t),s=e.find("aui-tabs-pane").index(n),r=new Ro,a=i(r);n.addClass("tabs-pane"),r.firstChild.setAttribute("href","#"+t.id),_o.wrap(r).textContent=n.attr("title"),0===s&&n.addClass("active-pane"),n.hasClass("active-pane")&&a.addClass("active-tab"),n.siblings("ul").append(r)},template:_o("<content></content>")});l("tabs",Lo);const jo="_aui-form-notification-initialised",zo="description",Fo="errors",Ho="data-aui-notification-",Bo=Ho+"wait",Uo=Ho+"info",Wo=Ho+"error",Vo=[Wo,Ho+"success",Bo,Uo];function Yo(t){qo(t)||(!function(t){t.addClass(jo),Ko(t)}(t),Jo(t))}function qo(t){return t.hasClass(jo)}function Ko(t,e){if(e=e||Qo(t),Go(t)===Uo){t.parent().find(".description").length||t.after(function(t,e){const i=t.attr("id")||t.attr("name");if(e.length>1){let t=e.map(t=>`<li>${t}</li>`).join("");return`<div class="description" id="${i}-${zo}"><ul>${t}</ul></div>`}return`<div class="description" id="${i}-${zo}">${e}</div>`}(t,e))}Zo(t)}function Qo(t){var e=Go(t),i=e?t.attr(e):"";return""===i?i:function(t){var e;try{e=JSON.parse(t)}catch(i){e=[t]}return e}(i)}function Go(t){let e;return Vo.some(function(i){if(t.is("["+i+"]"))return e=i,!0}),e}function Jo(t){const e=i(t);if(!qo(e))return;const n=Go(e);el(e,n===Bo);const s=Qo(e);s&&n===Wo?Xo(e,s):t.constructor.prototype.hasOwnProperty("jquery")||t.hasAttribute(Wo)||e.parent().find(".error").remove()}function Zo(t){const e=[],i=t.attr("id")||t.attr("name"),n=Go(t);Qo(t)&&n===Wo&&e.push(`${i}-${Fo}`),tl(t,"description").length&&e.push(`${i}-${zo}`);const s=function(t){const e={"aui-select":'input[type="text"][role="combobox"]'};for(let[i,n]of Object.entries(e))if(t.is(i)){const e=t.find(n);if(e.length)return e}return t}(t);s.attr("aria-describedby",e.length?e.join(" "):null)}function Xo(t,e){let i=tl(t,"error");i.length>0&&i.remove(),t.after(function(t,e){const i=t.attr("id")||t.attr("name"),n=e.map(t=>`<li><span class="aui-icon aui-icon-small aui-iconfont-error aui-icon-notification"></span>${t}</li>`).join("");return`<div class="error" role="alert" id="${i}-${Fo}"><ul>${n}</ul></div>`}(t,e)),Zo(t)}function tl(t,e){return t.parent().find(`.${e}`)}function el(t,e){e&&!function(t){return t.next("aui-spinner").length>0}(t)?t.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):t.parent().find("aui-spinner").remove()}const il=O("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});J("data-aui-notification-field",{attached:function(t){il(),Yo(i(t))},attributes:function(){const t={};return Vo.forEach(function(e){t[e]=Jo}),t}(),type:J.type.ATTRIBUTE}),G("aui/form-notification");var nl=["displayfield","watchfield","when","novalidate","state"],sl=[];var rl={register:function(t,e){var n;if("string"==typeof t)n=t;else{var s=function(t){var e=!1;return t.some(function(t){var n=-1!==i.inArray(t,nl);return n&&(e=t),n}),e}(t);if(s)return g('Validators cannot be registered with the argument "'+s+'", as it is a reserved argument.'),!1;n="[data-aui-validation-"+t.join("],[data-aui-validation-")+"]"}var r={validatorFunction:e,validatorTrigger:n};return sl.push(r),r},validators:function(){return sl}};G("aui/form-validation/validator-register",rl);const al=rl;function ol(t){var e=t.el.value.length;let i=0===e;var n=parseInt(t.args("minlength"),10),s=parseInt(t.args("maxlength"),10);if(n&&s&&n===s&&!i&&e!==n){const e=pl("exactlength",t.args,[n]);t.invalidate(e)}else if(n&&e<n&&!i){const e=pl("minlength",t.args);t.invalidate(e)}else if(s&&e>s){const e=pl("maxlength",t.args);t.invalidate(e)}else t.validate()}function ll(t){return"password"===t.getAttribute("type")}function cl(t,e){var i=t.match(e);return!!i&&t===i[0]}function ul(t){var e=pl("pattern",t.args);cl(t.el.value,new RegExp(t.args("pattern")))?t.validate():t.invalidate(e)}function dl(t){var e=pl("required",t.args);t.el.value?t.validate():t.invalidate(e)}function hl(t){var e=pl("validnumber",t.args),i=parseInt(t.el.value,10);if(isNaN(i))t.invalidate(e);else{var n=t.args("min"),s=t.args("max");n&&i<parseInt(n,10)?t.invalidate(pl("min",t.args)):s&&i>parseInt(s,10)?t.invalidate(pl("max",t.args)):t.validate()}}function pl(t,e,i){var n;n=void 0!==I18n.keys?I18n.keys["aui.validation.message."+t]:fl[t];var s=i;i||(s=[e(t)]);var r,a=e(t+"-msg");return r=a?[a].concat(s):[n].concat(s),AJS.format.apply(null,r)}al.register(["maxlength","minlength"],ol),al.register("[maxlength],[minlength]",ol),al.register(["matchingfield"],function(t){var e=t.el.value,i=document.getElementById(t.args("matchingfield")),n=i.value,s=pl("matchingfield",t.args,[e,n]);(ll(t.el)||ll(i))&&(s=pl("matchingfield-novalue",t.args)),e&&n&&n!==e?t.invalidate(s):t.validate()}),al.register(["doesnotcontain"],function(t){var e=pl("doesnotcontain",t.args);-1===t.el.value.indexOf(t.args("doesnotcontain"))?t.validate():t.invalidate(e)}),al.register(["pattern"],ul),al.register("[pattern]",ul),al.register(["required"],dl),al.register("[required]",dl),al.register(["min","max"],hl),al.register("[min],[max]",hl),al.register(["dateformat"],function(t){var e=t.args("dateformat"),i=pl("dateformat",t.args),n={Y:"[0-9]{4}",y:"[0-9]{2}",m:"(0?[1-9]|10|11|12)",M:"[Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec]",D:"[Mon|Tue|Wed|Thu|Fri|Sat|Sun]",d:"([0-2]?[1-9]|10|20|30|31)"},s=e.split(""),r="";s.forEach(function(t){var e=n.hasOwnProperty(t);r+=e?n[t]:t});var a=new RegExp(r+"$","i");cl(t.el.value,a)?t.validate():t.invalidate(i)}),al.register(["minchecked","maxchecked"],function(t){var e=i(t.el).find(":checked").length,n=!t.args("minchecked")||e>=t.args("minchecked"),s=!t.args("maxchecked")||e<=t.args("maxchecked"),r=pl("minchecked",t.args),a=pl("maxchecked",t.args);n&&s?t.validate():n?s||t.invalidate(a):t.invalidate(r)});var fl={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 gl="aui-validation-",ml="data-aui-notification-",vl="aui-validation-state",bl="invalid",yl="valid",wl="validating",_l="unvalidated",xl="_aui-form-validation-initialised",Cl="_aui-internal-field-state-changed";function Tl(t){(function(t){return t.hasClass(xl)})(t)||(!function(t){t.addClass(xl),Ko(t)}(t),function(t){(function(t){var e,i=function(){t.trigger("aui-stop-typing")};t.on("keyup",function(){clearTimeout(e),e=setTimeout(i,1500)})})(t),function(t){var e=El(t,"when"),i=El(t,"watchfield"),n=i?t.add("#"+i):t;n.on(e,function(){kl(t)})}(t)}(t),Dl(t,_l))}function kl(t){if(!El(t,"novalidate"))return function(t){!function(t){Il(Nl(t),"none")}(t);var e=function(t){var e=[];return Al().forEach(function(i,n){var s=i.validatorTrigger;t.is(s)&&e.push(n)}),e}(t);Dl(t,wl);var n=function(t,e){var n=[];return e.forEach(function(e){var s=Al()[e].validatorFunction,r=new i.Deferred,a=function(t,e){var i={validate:function(){e.resolve()},invalidate:function(i){Dl(t,bl,i),e.reject()},args:Sl(t),el:t[0],$el:t};return j(i,"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),i}(t,r);s(a),n.push(r)}),n}(t,e),s=i.when.apply(i,n);return s.done(function(){Dl(t,yl)}),s}(t);Dl(t,yl)}function El(t,e){var i=t.attr("data-"+gl+e);return i||(i={when:"change"}[e]),i}function Al(){return al.validators()}function Sl(t){return function(e){return t.attr("data-"+gl+e)||t.attr(e)}}function Dl(t,e,n){if(t.attr("data-"+vl,e),t.attr("aria-invalid",!1),e!==_l){t.trigger(i.Event(Cl));var s=Nl(t),r={};r[wl]="wait",r[bl]="error",r[yl]="success";var a=r[e];e===wl?function(t){setTimeout(function(){Ol(t)===wl&&(Il(t,"wait"),el(t,!0))},500)}(t):Il(s,a,n),e===bl&&t.attr("aria-invalid",!0)}}function Il(t,e,i){const n=function(t){return t.is("["+ml+"wait]")}(t);!function(t){Ml(t,"wait"),el(t,!1),Ml(t,"success")}(t);var s,r;if(!("success"===e&&!n))if("none"===e)Ml(t,"error");else{const n=t.attr(ml+e)||"[]",a=i?(s=i,r=n,JSON.parse(r).concat([s])):[];t.attr(ml+e,JSON.stringify(a)),"error"===e&&Xo(t,a)}}function Ml(t,e){t.removeAttr(ml+e),"error"===e&&(tl(t,e).remove(),Zo(t))}function Nl(t){var e=El(t,"displayfield");return void 0===e?t:i("#"+e)}function Ol(t){return t.attr("data-"+vl)}function Ll(t,e){e.preventDefault(),t.one(Cl,function(){t.trigger("submit")})}function Pl(t,e){var i="[data-"+vl+"="+e+"]";return t.find(i)}i(document).on("submit",function(t){var e=t.target,n=i(e),s=function(t){var e=t.find("."+xl);return o=e,n=i.map(o,function(t){return Ol(i(t))}),s=-1!==n.indexOf(bl),r=-1!==n.indexOf(_l),a=-1!==n.indexOf(wl),s?bl:r?_l:a?wl:yl;var n,s,r,a;var o}(n);if(s===_l)Ll(n,t),function(t){var e=Pl(t,_l);e.each(function(t,e){Rl.validate(i(e))})}(n);else if(s===wl)Ll(n,t);else if(s===bl)t.preventDefault(),function(t){var e=Pl(t,bl).first();e.focus()}(n);else if(s===yl){var r=i.Event("aui-valid-submit");n.trigger(r),r.isDefaultPrevented()&&t.preventDefault()}});const Rl={register:al.register,validate:function(t){kl(t=i(t))}};J("data-aui-validation-field",{attached:function(t){t.form&&t.form.setAttribute("novalidate","novalidate"),Tl(i(t)),J.init(t)},type:J.type.ATTRIBUTE}),G("aui/form-validation",Rl),l("formValidation",Rl);var $l=R(function(t,e){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout(function(){n=t.apply(r,s),r=s=null},e),n}},"AJS.debounce",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});const jl=$l;l("debounce",$l),l("debounceImmediate",R(function(t,e){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=t.apply(s,r)),clearTimeout(n),n=setTimeout(function(){n=s=r=null},e),i}},"AJS.debounceImmediate",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));const zl=i(window);function Fl(t){var e,n=this;this.element=t,this.$element=i(t),this.index=i("aui-header, .aui-header").index(t),this.$secondaryNav=this.$element.find(".aui-header-secondary .aui-nav").first(),this.menuItems=[],this.totalWidth=0,this.$moreMenu=void 0,this.rightMostNavItemIndex=void 0,this.$applicationLogo=this.$element.find("#logo"),this.moreMenuWidth=0,this.primaryButtonsWidth=0,this.$headerFind=(e=i(n.$element[0].querySelector(".aui-header-primary")),function(t){return e.find(t)})}Fl.prototype={init:function(){var t=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each(function(){t.primaryButtonsWidth+=i(this).outerWidth(!0)}),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each(function(){var e=i(this).parent(),n=e.outerWidth(!0);t.totalWidth+=n,t.menuItems.push({$element:e,outerWidth:n})}),this.rightMostNavItemIndex=this.menuItems.length-1,zl.on("resize",this._resizeHandler=jl(function(){t.constructResponsiveDropdown()},100));var e=this.$applicationLogo.find("img");0!==e.length&&(e.attr("data-aui-responsive-header-index",this.index),e.on("load",function(){t.constructResponsiveDropdown()})),this.constructResponsiveDropdown(),this.$headerFind(".aui-nav").css("width","auto")},destroy:function(){zl.off("resize",this._resizeHandler)},calculateAvailableWidth:function(){return(this.$secondaryNav.is(":visible")?this.$secondaryNav.offset().left:this.$element.outerWidth())-(this.$applicationLogo.offset().left+this.$applicationLogo.outerWidth(!0)+this.primaryButtonsWidth)},showResponsiveDropdown:function(){void 0===this.$moreMenu&&(this.$moreMenu=this.createResponsiveDropdownTrigger()),this.$moreMenu.css("display","")},hideResponsiveDropdown:function(){void 0!==this.$moreMenu&&this.$moreMenu.css("display","none")},constructResponsiveDropdown:function(){if(this.menuItems.length){var t,e=this.calculateAvailableWidth(this.$element,this.primaryButtonsWidth);if(e>this.totalWidth)this.showAll();else{this.showResponsiveDropdown(),t=e-this.moreMenuWidth;for(var i=-1;t-this.menuItems[i+1].outerWidth>=0;)t-=this.menuItems[i+1].outerWidth,i++;i<this.rightMostNavItemIndex?this.moveToResponsiveDropdown(this.rightMostNavItemIndex-i):this.rightMostNavItemIndex<i&&this.moveOutOfResponsiveDropdown(i-this.rightMostNavItemIndex)}}},createResponsiveDropdownTrigger:function(){var t=document.createElement("li"),e=document.createElement("aui-dropdown-menu");e.id=`aui-responsive-header-dropdown-${this.index}`,J.init(e);var n=document.createElement("aui-section");n.id=`aui-responsive-header-dropdown-list-${this.index}`,J.init(n),e.appendChild(n);var s=function(t){var e=document.createElement("a");return e.setAttribute("class","aui-dropdown2-trigger"),e.setAttribute("href","#"),e.id=t.id+"-trigger",e.setAttribute("aria-controls",t.id),e.innerHTML=I18n.getText("aui.words.more"),e}(e);return t.appendChild(s),t.appendChild(e),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(t):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(t),this.moreMenuWidth=i(t).outerWidth(!0),i(t)},moveOutOfResponsiveDropdown:function(t){if(!(t<=0)){for(var e=i(`#aui-responsive-header-dropdown-${this.index}`),n=this.rightMostNavItemIndex+1,s=this.rightMostNavItemIndex+t,r=n;r<=s;r++){var a=this.menuItems[r].$element,o=a.children("a");if(o.attr("aria-controls")){var l=i(document.getElementById(o.attr("aria-controls")));l.removeClass("aui-dropdown2-sub-menu"),a.append(l)}e.find("aui-item-link:first").remove(),a.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=t}},moveToResponsiveDropdown:function(t){if(!(t<=0)){for(var e=Wt().wrap(this.$moreMenu[0].querySelector("aui-section")),n=this.rightMostNavItemIndex,s=this.rightMostNavItemIndex-t+1,r=n;r>=s;r--){var a=this.menuItems[r].$element,o=a.children("a");J.init(o);var l=document.createElement("aui-item-link");if(l.setAttribute("href",o.attr("href")),o.attr("aria-controls")){var c=i(document.getElementById(o.attr("aria-controls")));l.setAttribute("for",o.attr("aria-controls")),c.addClass("aui-dropdown2-sub-menu"),c.appendTo("body")}if(o.get(0).hasAttribute("data-aui-extra-classes")){const t=Array.from(o.get(0).classList).filter(t=>!t.startsWith("aui-"));l.setAttribute("extra-classes",t.join(" "))}J.init(l),Wt().wrap(l).textContent=o.text(),a.detach(),e.insertBefore(l,e.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:a[0],newItem:l}}))}this.rightMostNavItemIndex-=t}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};const Hl=function(t){let e=t._header;return e instanceof Fl||(e=new Fl(t),e.init(),t._header=e),e};function Bl(){i(".aui-header").each(function(){Hl(this)})}i(Bl);const Ul={};Ul.setup=R(Bl,"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",Ul);const Wl=J("aui-header-end",{type:J.type.ELEMENT,created:function(t){const e=t.parentElement;e&&e.classList.contains("aui-header")?Hl(e):console.log("Could not async. initialise aui-header")}});var Vl=n(253),Yl=n.n(Vl);const ql=({minDate:t,maxDate:e,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({dateFormat:i,defaultDate:n.val(),maxDate:e||n.attr("max"),minDate:t||n.attr("min"),nextText:">",onSelect:function(t){n.val(t),n.trigger("change"),r(),s&&s.call(this,t)},onChangeMonthYear:a,prevText:"<"}),Kl=(t,e)=>{let n,s,r,a=!1;const o=i("body"),l=e=>{let n=i(e.target),r=n.closest(s).length||n.is(t),o=n.closest(".ui-datepicker-header").length;if(!r&&!o||e.keyCode===Q.ESCAPE)return h(),void(a=!1);n.get(0)!==t.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||d()},d=()=>{n.get(0).open=!0},h=()=>{n.get(0).open=!1};return{calendarContainerSelector:null,getPopupContents:({$field:t})=>(n=(({horizontalAlignment:t,datePickerUUID:e})=>{const n=new Qa;n.id=e;const s=i(n);return s.attr("persistent",""),s.attr("data-aui-focus","false"),s.attr("alignment",`bottom ${t}`),s.addClass("aui-datepicker-dialog"),s})({horizontalAlignment:(t=>t.offset().left<window.innerWidth/2?"left":"right")(t),datePickerUUID:e}),r=t.closest("aui-inline-dialog").get(0),r&&(r._datePickerPopup=n,i(r).on("aui-hide",t=>{a&&t.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup})),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:d,hideDatePicker:h,handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{h(),t.off("focus click",u),t.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),t.on("focusout keydown",c)}}},Ql=function(t){const e=t.getField(),n=t.getOptions(),s=t.getUUID();let r;const{getPopupContents:a,handleFieldFocus:o,showDatePicker:l,hideDatePicker:c,handleChangeMonthYear:u,getCalendarNode:d,destroyPolyfill:h,createPolyfill:p}=Kl(e,s),g=t=>{i(t.currentTarget).val()&&r.datepicker("setDate",e.val())},m=e.attr("placeholder"),v=e.prop("type");let b;{const i=t=>e=>{if(void 0!==r)return t(e)},n=i(()=>{r.datepicker("destroy")});t.show=l,t.hide=c,t.destroyPolyfill=()=>{h(),e.off("propertychange keyup input paste",g),b&&(b.disconnect(),b=null),m&&e.attr("placeholder",m),v&&e.prop("type",v),e.removeAttr("data-aui-dp-uuid"),n(),delete t.destroyPolyfill,delete t.show,delete t.hide},t.setDate=i(t=>{r.datepicker("setDate",t)}),t.getDate=i(()=>r.datepicker("getDate")),t.setMin=i(t=>r.datepicker("option","minDate",t)),t.setMax=i(t=>r.datepicker("option","maxDate",t))}n.languageCode in Gl.prototype.localisations||(n.languageCode="");const y=Gl.prototype.localisations;if(e.attr("aria-controls",s),void 0===r){void 0!==e.attr("step")&&f("WARNING: The date picker polyfill currently does not support the step attribute!");const s=ql({dateFormat:n.dateFormat,minDate:n.minDate,maxDate:n.maxDate,$field:e,onSelect:n.onSelect,hide:t.hide,onChangeMonthYear:u}),o=i.extend(void 0,s,y);n.firstDay>-1&&(o.firstDay=n.firstDay),r=(({config:t,popupContents:e,getCalendarNode:n,hint:s})=>{const r=i(n());let a;return r.datepicker(t),s&&(a=i("<div/>").addClass("aui-datepicker-hint"),a.append("<span/>").text(s),e.append(a)),r})({config:o,popupContents:a({$field:e}),getCalendarNode:d,hint:n.hint}),p(),e.on("propertychange keyup input paste",g),b=new MutationObserver(function(e){e.forEach(function(e){"min"===e.attributeName?t.setMin(e.target.getAttribute("min")):"max"===e.attributeName&&t.setMax(e.target.getAttribute("max"))})}),b.observe(e.get(0),{attributes:!0})}if(e.on("focus click",o),e.attr("placeholder",n.placeholder),"text"!==e.prop("type")){e.prop("type","text");const t=e.attr("value");t&&e.val(t)}e.trigger("propertychange"),e.attr("data-aui-dp-uuid",s)};function Gl(t,e){let n={};const s=pn("date-picker"),r=i(t),a={getUUID:()=>s,getField:()=>r,getOptions:()=>n,destroy:()=>{"function"==typeof a.destroyPolyfill&&a.destroyPolyfill()},reset:()=>{a.destroy();const t=!Gl.prototype.browserSupportsDateField,e=!1!==n.overrideBrowserDefault;(t||e)&&Ql(a)},reconfigure:t=>{n=i.extend(void 0,Gl.prototype.defaultOptions,t),a.reset()}};return a.reconfigure(e),a}function Jl(t,e){const n=i.extend({nextText:">",prevText:"<"},e),s=i(t).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(n);if(n.hint){const t=i("<div/>").addClass("aui-datepicker-hint");t.append("<span/>").text(n.hint),s.append(t)}return s.reconfigure=t=>{s.datepicker("destroy"),s.datepicker(t)},s.destroy=()=>{s.datepicker("destroy")},s}Gl.prototype.browserSupportsDateField=function(){if(void 0===Ie){var t=document.createElement("input");t.setAttribute("type","date"),Ie="date"===t.type}return Ie}(),Gl.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:i("html").attr("lang")||"en-AU",dateFormat:Yl().W3C},Gl.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"===Gl.prototype.localisations.yearSuffix&&(Gl.prototype.localisations.yearSuffix="");const Zl="aui-datepicker",Xl=t=>function(e){let i=this.data(Zl);return i?"object"==typeof e?i.reconfigure(e):"destroy"===e&&i.destroy():(i=new t(this,e),this.data(Zl,i)),i};i.fn.datePicker=Xl(Gl),l("DatePicker",Gl),i.fn.calendarWidget=Xl(Jl),l("CalendarWidget",Jl);const tc=Gl;n(229),n(228),n(132),n(903);const ec={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"},ic=_s().View,nc=_s().View,sc=_s().View,rc={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(682);const ac={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"},oc='<aui-spinner size="small"></aui-spinner>',lc="aui-spinner";function cc(t){0===t.find(lc).length&&t.find(`.${ec.STATUS}`).append(oc)}function uc(t){t.find(`.${ec.STATUS} ${lc}`).remove()}var dc=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");const hc=_s().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(t){this.$el=i(this.el),this._event=ac,this.classNames=ec,this.dataKeys=rc,this.columns=t.columns,this.isCreateRow=t.isCreateRow,this.allowReorder=t.allowReorder,this.events["click ."+this.classNames.CANCEL]="_cancel",this.delegateEvents(),t.isUpdateMode?this.isUpdateMode=!0:(this._modelClass=t.model,this.model=new this._modelClass),this.fieldFocusSelector=t.fieldFocusSelector,this.on(this._event.CANCEL,()=>{this.isCreateRow||(this.disabled=!0)}).on(this._event.SAVE,t=>!this.disabled&&this.submit(t)).on(this._event.FOCUS,t=>this.focus(t)).on(this._event.BLUR,()=>{this.$el.removeClass(this.classNames.FOCUSED),this.disable()}).on(this._event.SUBMIT_STARTED,()=>this._submitStarted()).on(this._event.SUBMIT_FINISHED,()=>this._submitFinished())},defaultColumnRenderer:function(t){return!1!==t.allowEdit?i("<input type='text' />").addClass("text").attr({name:t.name,value:t.value,"aria-label":t.ariaLabel}):t.value?document.createTextNode(t.value):void 0},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},_handleKeyUpEvent:function(t){27===t.keyCode&&this.trigger(this._event.CANCEL)},_cancel:function(t){return this.trigger(this._event.CANCEL),t.preventDefault(),this},_submitStarted:function(){return this.submitting=!0,this.showLoading().disable().delegateEvents({}),this},_submitFinished:function(){return this.submitting=!1,this.hideLoading().enable().delegateEvents(this.events),this},_focus:function(t){return this.hasFocus()||this.trigger(this._event.FOCUS,t.target.name),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(t){var e,i;return this.enable(),e=t?this.$el.find(this.fieldFocusSelector(t)):0===(i=this.$el.find(this.classNames.ERROR+":first")).length?this.$el.find(":input:text:first"):i.parent().find(":input"),this.$el.addClass(this.classNames.FOCUSED),e.focus().trigger("select"),this},disable:function(){var t,e;return dc&&(e=this.$el.find(":submit")).length&&(t=i("<input type='submit' class='"+this.classNames.SUBMIT+"' />").addClass(e.attr("class")).val(e.val()).data(this.dataKeys.ENABLED_SUBMIT,e),e.replaceWith(t)),this.$el.addClass(this.classNames.DISABLED).find(":submit").prop("disabled",!0),this},enable:function(){var t,e;return dc&&(e=(t=this.$el.find(this.classNames.SUBMIT)).data(this.dataKeys.ENABLED_SUBMIT))&&t.length&&t.replaceWith(e),this.$el.removeClass(this.classNames.DISABLED).find(":submit").prop("disabled",!1),this},showLoading:function(){return cc(this.$el),this},hideLoading:function(){return uc(this.$el),this},hasUpdates:function(){return!!this.mapSubmitParams(this.serializeObject())},serializeObject:function(){var t=this.$el;return t.serializeObject?t.serializeObject():t.serialize()},mapSubmitParams:function(t){return this.model.changedAttributes(t)},submit:function(t){var e,n=this;if(document.activeElement!==window&&i(document.activeElement).blur(),this.isUpdateMode){if(!(e=this.mapSubmitParams(this.serializeObject())))return n.trigger(n._event.CANCEL)}else this.model.clear(),e=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(e,{success:function(){n.isUpdateMode?n.trigger(n._event.UPDATED,n.model,t):(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(t,e,i){400===i.status&&(n.renderErrors(e.errors),n.trigger(n._event.VALIDATION_ERROR,e.errors)),n.trigger(n._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(t,e){return i("<div />").attr("data-field",t).addClass(this.classNames.ERROR).text(e)},renderErrors:function(t){var e=this;return this.$("."+this.classNames.ERROR).remove(),t&&i.each(t,function(t,i){e.$el.find("[name='"+t+"']").closest("td").append(e.renderError(t,i))}),this},render:function(t){var e=this;return this.$el.empty(),this.allowReorder&&i('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),i.each(this.columns,function(n,s){var r,a,o=t.values[s.id],l=[{name:s.id,ariaLabel:s.inputAriaLabel?s.inputAriaLabel:s.header,value:o,allowEdit:s.allowEdit},t.values,e.model];o&&e.$el.attr("data-"+s.id,o),r=e.isCreateRow&&s.createView?new s.createView({model:e.model}).render(l[0]):s.editView?new s.editView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),a=i("<td />"),"object"==typeof r&&r.done?r.done(function(t){a.append(t)}):a.append(r),s.styleClass&&a.addClass(s.styleClass),a.appendTo(e.$el)}),this.$el.append(this.renderOperations(t.update,t.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,t.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(t){var e=i('<td class="aui-restfultable-operations" />');return t?e.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})):e.append(i('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:I18n.getText("aui.words.add")})),e.add(i(`<td class="${this.classNames.STATUS}" />`))}}),pc=document||{},fc=i(pc);function gc(t,e){fc.trigger(t,e)}function mc(t,e,n){i(e).trigger(t,n),gc(t,n),e.id&&gc(e.id+"-"+t,n)}const vc=t=>JSON.parse(t||"null");var bc=_s().Model.extend({sync:function(t,e,i){var n=this,s=i.error;return i.error=function(t){n._serverErrorHandler(t,this),s&&s.apply(this,arguments)},_s().sync.apply(_s(),arguments)},save:function(t,e){var i,n=this,s=(e=e||{}).error,r=e.success;e.error=function(t,e){var i=vc(e.responseText||e.data);s&&s.call(n,n,i,e)},this.isNew()?_s().Model.prototype.save.call(this,t,e):t&&((i=new(bc.extend({url:this.url()}))({id:this.id})).save=_s().Model.prototype.save,e.success=function(t,e){n.clear().set(t.toJSON()),r&&r.call(n,n,e)},i.save(t,e))},destroy:function(t){t=t||{};var e=this,n=this.url();return i.ajax({url:n,type:"DELETE",dataType:"json",data:t.data||{},contentType:"application/json",success(i){e.collection&&e.collection.remove(e),t.success&&t.success.call(e,i)},error(i){e._serverErrorHandler(i,this),t.error&&t.error.call(e,i)}}),this},changedAttributes:function(t){var e={},n=this.toJSON();if(i.each(t,function(t,s){n[t]?n[t]&&n[t]!==s&&("object"==typeof s&&(0,de.isEqual)(s,n[t])||(e[t]=s)):"string"==typeof s?""!==i.trim(s)&&(e[t]=s):i.isArray(s)?0!==s.length&&(e[t]=s):e[t]=s}),!(0,de.isEmpty)(e))return this.addExpand(e),e},addExpand:function(t){},_serverErrorHandler:function(t,e){var n;400!==t.status&&(n=i.parseJSON(t.responseText||t.data),mc(ac.SERVER_ERROR,this,[n,t,e]))},fetch:function(t){t=t||{},this.clear(),_s().Model.prototype.fetch.call(this,t)}});const yc=bc,wc=_s().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(t){if(t=t||{},this._event=ac,this.classNames=ec,this.dataKeys=rc,this.columns=t.columns,this.allowEdit=t.allowEdit,this.allowDelete=t.allowDelete,!this.events["click .aui-restfultable-editable"])throw new Error("It appears you have overridden the events property. To add events you will need to usea work around. https://github.com/documentcloud/backbone/issues/244");this.index=t.index||0,this.deleteConfirmationCallback=t.deleteConfirmationCallback,this.allowReorder=t.allowReorder,this.$el=i(this.el),this.on(this._event.CANCEL,()=>this.disabled=!0).on(this._event.FOCUS,t=>this.focus(t)).on(this._event.BLUR,()=>this.unfocus()).on(this._event.MODAL,()=>this.$el.addClass(this.classNames.ACTIVE)).on(this._event.MODELESS,()=>this.$el.removeClass(this.classNames.ACTIVE))},renderDragHandle:function(){return'<span class="'+this.classNames.DRAG_HANDLE+'"></span></td>'},defaultColumnRenderer:function(t){if(t.value)return document.createTextNode(t.value.toString())},sync:function(t){var e=this;return this.model.addExpand(t),this.showLoading(),this.model.save(t,{success:function(){e.hideLoading().render(),e.trigger(e._event.UPDATED)},error:function(){e.hideLoading()}}),this},refresh:function(t,e){var i=this;return this.showLoading(),this.model.fetch({success:function(){i.hideLoading().render(),t&&t.apply(this,arguments)},error:function(){i.hideLoading(),e&&e.apply(this,arguments)}}),this},hasFocus:function(){return this.$el.hasClass(this.classNames.FOCUSED)},focus:function(){return i(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return i(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return cc(this.$el),this},hideLoading:function(){return uc(this.$el),this},edit:function(t){var e;return e=i(t.target).is("."+this.classNames.EDITABLE)?i(t.target).attr("data-field-name"):i(t.target).closest("."+this.classNames.EDITABLE).attr("data-field-name"),this.trigger(this._event.ROW_EDIT,e),this},renderOperations:function(){var t=this;if(!1!==this.allowDelete)return i("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(I18n.getText("aui.words.delete")).on("click",function(e){e.preventDefault(),t.destroy()})},destroy:function(){if(this.deleteConfirmationCallback){let t=this.deleteConfirmationCallback(this.model.toJSON());if(!t||!t.then)throw new Error("deleteConfirmationCallback needs to return a Promise");t.then(()=>this.model.destroy(),()=>{})}else this.model.destroy()},render:function(){var t=this,e=this.model.toJSON(),n=i("<td class='aui-restfultable-operations' />").append(this.renderOperations({},e)),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(t.$el),this.$el.attr("data-id",this.model.id),i.each(this.columns,function(n,s){var r,a=i("<td />"),o=e[s.id],l=s.fieldName||s.id,c=[{name:l,value:o,allowEdit:s.allowEdit},e,t.model];if(o&&t.$el.attr("data-"+s.id,o),r=s.readView?new s.readView({model:t.model}).render(c[0]):t.defaultColumnRenderer.apply(t,c),!1!==t.allowEdit&&!1!==s.allowEdit){var u=i("<span />").addClass(t.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(r).attr("data-field-name",l);a=i("<td />").append(u).appendTo(t.$el),r&&i.trim(r)||(a.addClass(t.classNames.NO_VALUE),u.html(i("<em />").text(this.emptyText||I18n.getText("aui.enter.value"))))}else a.append(r);s.styleClass&&a.addClass(s.styleClass),a.appendTo(t.$el)}),this.$el.append(n).append(s).addClass(this.classNames.ROW+" "+this.classNames.READ_ONLY),this.trigger(this._event.RENDER,this.$el,e),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this}});var _c=_s().View.extend({initialize:function(t){var e=this;if(e.options=i.extend(!0,e._getDefaultOptions(t),t),e.id=this.options.id,e._event=ac,e.classNames=ec,e.dataKeys=rc,this.$table=i(t.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(t){var n=i.isFunction(t.header)?t.header():t.header;void 0===n&&(g("You have not specified [header] for column ["+t.id+"]. Using id for now..."),n=t.id),e.$theadRow.append("<th>"+n+"</th>")}),e.$theadRow.append("<th></th><th></th>"),this._models=this._createCollection(),this._rowClass=this.options.views.row,this.editRows=[],this.$table.closest("form").submit(function(t){e.focusedRow&&e.focusedRow.trigger(e._event.SAVE),t.preventDefault()}),this.options.allowReorder&&(this.$theadRow.prepend("<th />"),this.$tbody.sortable({handle:"."+this.classNames.DRAG_HANDLE,helper:function(t,n){var s=i("<div/>").attr("class",n.attr("class")).addClass(e.classNames.MOVEABLE);return n.children().each(function(){var t=i(this),e=parseInt(0+t.css("border-left-width"),10),n=parseInt(0+t.css("border-right-width"),10),r=t[0].clientWidth+e+n;s.append(i("<div/>").html(t.html()).attr("class",t.attr("class")).width(r))}),(s=i("<div class='aui-restfultable-readonly'/>").append(s)).css({left:n.offset().left}),s.appendTo(document.body),s},start:function(t,n){var s=n.helper[0].clientHeight,r=n.placeholder.find("td");n.item.addClass(e.classNames.MOVEABLE).children().each(function(t){i(this).width(r.eq(t).width())});var a='<td colspan="'+e.getColumnCount()+'">&nbsp;</td>';n.placeholder.html(a).css({height:s,visibility:"visible"}),e.getRowFromElement(n.item[0]).trigger(e._event.MODAL)},stop:function(t,n){i(n.item[0]).is(":visible")&&(n.item.removeClass(e.classNames.MOVEABLE).children().attr("style",""),n.placeholder.removeClass(e.classNames.ROW),e.getRowFromElement(n.item[0]).trigger(e._event.MODELESS))},update:function(t,i){var n={row:e.getRowFromElement(i.item[0]),item:i.item,nextItem:i.item.next(),prevItem:i.item.prev()};e.move(n)},axis:"y",delay:0,containment:"document",cursor:"move",scroll:!0,zIndex:8e3}),this.$tbody.on("selectstart mousedown",function(t){return!i(t.target).is("."+e.classNames.DRAG_HANDLE)})),!1!==this.options.allowCreate&&(this._createRow=new this.options.views.editRow({columns:this.options.columns,isCreateRow:!0,model:this.options.model.extend({url:function(){return e.options.resources.self}}),cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector}),this._createRow.on(this._event.CREATED,function(t){void 0===e.options.addPosition&&"bottom"===e.options.createPosition||"bottom"===e.options.addPosition?e.addRow(t):e.addRow(t,0)}),this._createRow.on(this._event.VALIDATION_ERROR,function(){this.trigger(e._event.FOCUS)}),this._createRow.render({errors:{},values:{}}),this.$create=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(t){e.getRows().forEach(function(i){i.model===t&&(i.hasFocus()&&e._createRow&&e._createRow.trigger(e._event.FOCUS),e.removeRow(i))})}),this.fetchInitialResources()},fetchInitialResources:function(){var t=this;i.isFunction(this.options.resources.all)?this.options.resources.all(function(e){t.populate(e)}):i.get(this.options.resources.all,function(e){t.populate(e)})},move:function(t){var e=this,n=function(t){return t.length?{after:e.getRowFromElement(t).model.url()}:{position:"First"}};if(t.row){var s=e.options.reverseOrder?n(t.nextItem):n(t.prevItem);i.ajax({url:t.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(s),complete:function(){t.row.hideLoading()},success:function(t){mc(e._event.REORDER_SUCCESS,e,[t])},error:function(t){var i=vc(t.responseText||t.data);mc(e._event.SERVER_ERROR,e,[i,t,this])}}),t.row.showLoading()}},_createCollection:function(){var t=this;return new(this.options.Collection.extend({sort:function(e){if(e||(e={}),!this.comparator)throw new Error("Cannot sort a set without a comparator");return this.tableRows=t.getRows(),this.models=this.sortBy(this.comparator,this),this.tableRows=void 0,e.silent||this.trigger("refresh",this,e),this},remove:function(...e){return this.tableRows=t.getRows(),_s().Collection.prototype.remove.apply(this,e),this.tableRows=void 0,this}}))([],{comparator:function(e){var i;return(this&&void 0!==this.tableRows?this.tableRows:t.getRows()).some(function(t,n){if(t.model.id===e.id)return i=n,!0}),i}})},populate:function(t){this.options.reverseOrder&&t.reverse(),this.hideGlobalLoading(),t&&t.length?(this._models.reset([],{silent:!0}),this.renderRows(t),this.isEmpty()&&this.showNoEntriesMsg()):this.showNoEntriesMsg(),this.$table.append(this.$thead),"bottom"===this.options.createPosition?this.$table.append(this.$tbody).append(this.$create):this.$table.append(this.$create).append(this.$tbody),this.$table.trigger(this._event.INITIALIZED,[this]),mc(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">'+oc+this.options.loadingMsg+"</span></div>")),this.$loading.is(":visible")||this.$loading.insertAfter(this.$table),this},hideGlobalLoading:function(){return this.$loading&&this.$loading.remove(),this},addRow:function(t,e){var i,n;if(!t.id)throw new Error("RestfulTable.addRow: to add a row values object must contain an id. Maybe you are not returning it from your restend point?Recieved:"+JSON.stringify(t));return n=new this.options.model(t),i=this._renderRow(n,e),this._models.add(n),this.removeNoEntriesMsg(),mc(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(t){this._models.remove(t.model),t.remove(),this.isEmpty()&&this.showNoEntriesMsg(),mc(this._event.ROW_REMOVED,this,[t,this])},isEmpty:function(){return 0===this._models.length},getModels:function(){return this._models},getTable:function(){return this.$table},getTableBody:function(){return this.$tbody},getCreateRow:function(){return this._createRow},getColumnCount:function(){var t=2;return this.allowReorder&&++t,this.options.columns.length+t},getRowFromElement:function(t){return i(t).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 t=this,e=[];return this.$tbody.find("."+this.classNames.READ_ONLY).each(function(){var n=i(this).data(t.dataKeys.ROW_VIEW);n&&e.push(n)}),e},_renderRow:function(t,e){var i,n,s=this,r=this.$tbody.find("."+this.classNames.READ_ONLY);return n=new this._rowClass({model:t,columns:this.options.columns,allowEdit:this.options.allowEdit,allowDelete:this.options.allowDelete,allowReorder:this.options.allowReorder,deleteConfirmationCallback:this.options.deleteConfirmationCallback}),this.removeNoEntriesMsg(),n.on(this._event.ROW_EDIT,function(t){mc(this._event.EDIT_ROW,{},[this,s]),s.edit(this,t)}),i=n.render().$el,-1!==e&&("number"==typeof e&&0!==r.length?i.insertBefore(r[e]):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(t){s.isRowBeingEdited(t)||t.delegateEvents({})})}),n.on(this._event.MODELESS,function(){s.$table.addClass(s.classNames.ALLOW_HOVER),s.$tbody.sortable("enable"),s.getRows().forEach(function(t){s.isRowBeingEdited(t)||t.delegateEvents()})}),this._applyFocusCoordinator(n),this.trigger(this._event.ROW_INITIALIZED,n),n},isRowBeingEdited:function(t){var e=!1;return this.editRows.some(function(i){if(i.el===t.el)return e=!0,!0}),e},_applyFocusCoordinator:function(t){var e=this;return t.hasFocusBound||(t.hasFocusBound=!0,t.on(this._event.FOCUS,function(){e.focusedRow&&e.focusedRow!==t&&e.focusedRow.trigger(e._event.BLUR),e.focusedRow=t,t instanceof wc&&e._createRow&&e._createRow.enable()})),this},_removeEditRow:function(t){var e=i.inArray(t,this.editRows);return this.editRows.splice(e,1),this},_shiftFocusAfterEdit:function(){return this.editRows.length>0?this.editRows[this.editRows.length-1].trigger(this._event.FOCUS):this._createRow&&this._createRow.trigger(this._event.FOCUS),this},_saveEditRowOnBlur:function(){return this.editRows.length<=1},dismissEditRows:function(){this.editRows.forEach(function(t){t.hasUpdates()||t.trigger(this._event.FINISHED_EDITING)},this)},edit:function(t,e){var i=this,n=new this.options.views.editRow({el:t.el,columns:this.options.columns,isUpdateMode:!0,allowReorder:this.options.allowReorder,fieldFocusSelector:this.options.fieldFocusSelector,model:t.model,cancelAccessKey:this.options.cancelAccessKey,submitAccessKey:this.options.submitAccessKey}),s=t.model.toJSON();return s.update=!0,n.render({errors:{},update:!0,values:s}).on(i._event.UPDATED,function(e,n){i._removeEditRow(this),this.off(),t.render().delegateEvents(),t.trigger(i._event.UPDATED),!1!==n&&i._shiftFocusAfterEdit()}).on(i._event.VALIDATION_ERROR,function(){this.trigger(i._event.FOCUS)}).on(i._event.FINISHED_EDITING,function(){i._removeEditRow(this),t.render().delegateEvents(),this.off()}).on(i._event.CANCEL,function(){i._removeEditRow(this),this.off(),t.render().delegateEvents(),i._shiftFocusAfterEdit()}).on(i._event.BLUR,function(){i.dismissEditRows(),i._saveEditRowOnBlur()&&this.trigger(i._event.SAVE,!1)}),this._applyFocusCoordinator(n),n.trigger(i._event.FOCUS,e),i._createRow&&i._createRow.disable(),this.editRows.push(n),n},renderRows:function(t=[]){var e=this._models.comparator,i=[];this._models.comparator=void 0;var n=t.map(t=>{var e=new this.options.model(t);return i.push(this._renderRow(e,-1).el),e});return this._models.add(n,{silent:!0}),this._models.comparator=e,this.removeNoEntriesMsg(),this.$tbody.append(i),this},_getDefaultOptions:function(t){return{model:t.model||yc,allowEdit:!0,views:{editRow:hc,row:wc},Collection:_s().Collection.extend({url:t.resources.self,model:t.model||yc}),allowReorder:!1,fieldFocusSelector:function(t){return":input[name="+t+"], #"+t},loadingMsg:t.loadingMsg||I18n.getText("aui.words.loading")}}});_c.ClassNames=ec,_c.CustomCreateView=ic,_c.CustomEditView=nc,_c.CustomReadView=sc,_c.DataKeys=rc,_c.EditRow=hc,_c.EntryModel=yc,_c.Events=ac,_c.Row=wc,l("RestfulTable",_c);const xc=_c;function Cc(t){return i(t).clone().removeAttr("id")}l("clone",Cc);const Tc=Cc;var kc=window.DocumentTouch;const Ec="ontouchstart"in window||kc&&document instanceof kc;function Ac(t,e,i,n){t.find(`[${n}]`).attr(n,(t,n)=>e===n?i:void 0)}function Sc(t,e){let n=i("<div></div>");n.append(t),n.find("[id]").each((t,i)=>{const s=e(`${i.id}-`);!function(t,e,i){Ac(t,e,i,"aria-controls"),Ac(t,e,i,"aria-owns")}(n,i.id,s),i.id=s})}function Dc(t){return t.offset().top}function Ic(t){this.$el=i(t),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 Lc,function(t){if(!i(".aui-sidebar").length)return;(function(t){t.$el.on("mouseenter mouseleave click focus",t.collapsedTriggersSelector,function(e){const n=i(e.target);zc(t,n)})})(t),Ec&&function(t){if(window.matchMedia)return window.matchMedia(t).matches;var e=document.createElement("style");e.type="text/css",e.id="testMedia",e.innerText=`@media ${t} { #testMedia { width: 1px; } }`,document.head.appendChild(e);var i="1px"===window.getComputedStyle(e,null).width;return e.parentNode.removeChild(e),i}("only screen and (max-device-width:1024px)")&&i("body").addClass("aui-page-sidebar-touch");var e=null,n=function(){null===e&&(e=requestAnimationFrame(function(){t.reflow(),e=null}))};i(window).on("scroll resize",n),n(),t.isAnimated()&&t.$el.on("transitionend webkitTransitionEnd",function(){t.$el.trigger(i.Event(Mc+(t.isCollapsed()?"collapse-end":"expand-end")))});t.$el.on("click",".aui-sidebar-toggle",function(e){e.preventDefault(),t.toggle()}),i(".aui-page-panel").on("click",function(){!t.isCollapsed()&&t.isViewportNarrow()&&t.collapse()});var s=function(e){a(e)&&t.toggle()};function r(t){return t.keyCode===Q.TAB&&!t.shiftKey&&!t.altKey}function a(t){return!(t.which!==Q.LEFT_SQUARE_BRACKET||t.shiftKey||t.ctrlKey||t.metaKey||(e=t.target,"value"in e||e.isContentEditable));var e}function o(t){return t.keyCode===Q.TAB&&t.shiftKey}function l(t,e){return t===e.find(":aui-tabbable")[0]}function c(t,e){return t===e.find(":aui-tabbable").last()[0]}function u(t){t.attr("persistent",""),t.find(":aui-tabbable").first().focus(),setTimeout(function(){t.removeAttr("persistent")},100)}i(document).on("keypress",s),t._remove=function(){i(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),i(document).off("keypress",s),i(window).off("scroll resize",n)},t.$el.on("touchend",function(e){t.isCollapsed()&&(t.expand(),e.preventDefault())}),t.$el.tooltip({...Hc,live:t.collapsedTriggersSelector,suppress:function(){const e=i(this),n=!1===t.isCollapsed();return!0===$c(e)||n}}),t.$el.tooltip({...Hc,aria:!1,live:t.toggleSelector,title:function(){return t.isCollapsed()?I18n.getText("aui.sidebar.expand.tooltip"):I18n.getText("aui.sidebar.collapse.tooltip")}}),t.$el.on("keydown",t.collapsedTriggersSelector,function(e){if(t.isCollapsed()){var n=e.target,s=Rc(n);if(!s)return;var a=i(s);r(e)&&s.open&&(e.preventDefault(),u(a),a.on("keydown",function(t){(o(t)&&l(t.target,a)||r(t)&&c(t.target,a))&&(n.focus(),i(this).off("keydown"),jc())}))}})}(this),function(t){i(t.collapsedTriggersSelector).each(function(){var e=i(this);zc(t,e)})}(this))}var Mc="_aui-internal-sidebar-";function Nc(t){return i.map(t.split(" "),function(t){return Mc+t}).join(" ")}function Oc(){return document.querySelectorAll(Ic.prototype.inlineDialogSelector)}function Lc(){this.inlineDialog=null}function Pc(t){return t.is("a")?t.next(".aui-nav"):t.children(".aui-nav, hr")}function Rc(t){var e=t.getAttribute("aria-controls");return document.getElementById(e)}function $c(t){return 0!==Pc(t).length}function jc(){var t=Oc();Array.prototype.forEach.call(t,function(t){t.open=!1})}function zc(t,e){if(!e.data("_aui-sidebar-submenu-constructed")&&(e.data("_aui-sidebar-submenu-constructed",!0),$c(e))){var n=document.createElement("aui-inline-dialog"),s=pn("sidebar-submenu");return e.attr("aria-controls",s),e.attr("data-aui-trigger",""),J.init(e),n.setAttribute("id",s),n.setAttribute("alignment","right top"),n.setAttribute("hidden",""),n.setAttribute("contained-by","viewport"),t.isCollapsed()&&n.setAttribute("responds-to","hover"),i(n).addClass(Ic.prototype.inlineDialogClass),document.body.appendChild(n),J.init(n),function(t,e,n){n.addEventListener("aui-layer-show",function(s){if(t.isCollapsed()){if(!function(t){return"AUI-INLINE-DIALOG"!==t.target.tagName}(s)&&!function(t){return!t.target.classList.contains("aui-sidebar-submenu-dialog")}(s)){var r=i.Event("aui-sidebar-submenu-before-show");e.trigger(r,n),r.isDefaultPrevented()?s.preventDefault():function(t,e){t.addClass("active"),e.innerHTML=Fc;var n=t.is("a")?t.text():t.children(".aui-nav-heading").text(),s=i(e).find(".aui-navgroup-inner");s.children(".aui-nav-heading").attr("title",n).children("strong").text(n);var r=Pc(t);function a(t){const e=Tc(t);return Sc(e,pn),e.hasClass("aui-expander-content")&&(e.find(".aui-expander-cutoff").remove(),e.removeClass("aui-expander-content")),e}a(r).appendTo(s)}(e,n)}}else s.preventDefault()}),n.addEventListener("aui-layer-hide",function(){!function(t){t.removeClass("active")}(e)})}(t,e,n),n}}Ic.prototype.on=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Nc(t);return this.$el.on.apply(this.$el,[i].concat(e)),this},Ic.prototype.off=function(){var t=arguments[0],e=Array.prototype.slice.call(arguments,1),i=Nc(t);return this.$el.off.apply(this.$el,[i].concat(e)),this},Ic.prototype.setHeight=function(t,e,i){var n=Math.max(0,i-t);return this.$wrapper.height(e-n),this},Ic.prototype.setTopPosition=function(t=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",t>Dc(this.$el)),this},Ic.prototype.setPosition=R(Ic.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),Ic.prototype.setLeftPosition=function(t=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-t}),this},Ic.prototype.setCollapsedState=function(t){var e={collapsed:{},expanded:{}};e.collapsed.narrow={narrow:i.noop,wide:function(e){e._expand(t,!0)}},e.collapsed.wide={narrow:i.noop,wide:i.noop},e.expanded.narrow={narrow:i.noop,wide:function(t){t.$body.removeClass("aui-sidebar-collapsed"),t.$el.removeClass("aui-sidebar-fly-out")}},e.expanded.wide={narrow:function(t){t._collapse(!0)},wide:i.noop};var n=this.isCollapsed()?"collapsed":"expanded",s=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",r=this.isViewportNarrow(t)?"narrow":"wide";return e[n][s][r](this),this},Ic.prototype._collapse=function(t){if(this.isCollapsed())return this;var e=i.Event(Mc+"collapse-start",{isResponsive:t});return this.$el.trigger(e),e.isDefaultPrevented()||(this.$body.addClass("aui-sidebar-collapsed"),this.$el.attr("aria-expanded","false"),this.$el.removeClass("aui-sidebar-fly-out"),this.$el.find(this.submenuTriggersSelector).attr("tabindex",0),i(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(i.Event(Mc+"collapse-end",{isResponsive:t}))),this},Ic.prototype.collapse=function(){return this._collapse(!1)},Ic.prototype._expand=function(t,e){var n=i.Event(Mc+"expand-start",{isResponsive:e});if(this.$el.trigger(n),n.isDefaultPrevented())return this;var s=this.isViewportNarrow(t);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(Mc+"expand-end",{isResponsive:e})),this},Ic.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},Ic.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},Ic.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},Ic.prototype.isViewportNarrow=function(t){return(t=void 0===t?this._previousViewportWidth:t)<1240},Ic.prototype.responsiveReflow=function(t,e){if(t){if(!this.isCollapsed()&&this.isViewportNarrow(e)){var i=this.isAnimated();i&&this.$el.removeClass("aui-is-animated"),this.collapse(),i&&(this.$el[0].offsetHeight,this.$el.addClass("aui-is-animated"))}}else e!==this._previousViewportWidth&&this.setCollapsedState(e)},Ic.prototype.reflow=function(t=window.pageYOffset,e=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=Dc(this.$el),a=null===this._previousViewportWidth;if(t!==this._previousScrollTop||e!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=t!==this._previousScrollTop&&(t<0||t+e>n);o||!a&&l||(this.setHeight(t,e,r),this.setTopPosition(t))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=t,this._previousViewportHeight=e,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},Ic.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},Ic.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",Ic.prototype.collapsedTriggersSelector=[Ic.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),Ic.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",Ic.prototype.tooltipClassName="aui-sidebar-section-tooltip",Ic.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",Ic.prototype.inlineDialogSelector="."+Ic.prototype.inlineDialogClass,Lc.prototype.submenu=function(t){return Uc(),Pc(t)},Lc.prototype.hasSubmenu=function(t){return Uc(),$c(t)},Lc.prototype.submenuHeadingHeight=function(){return Uc(),34},Lc.prototype.isShowing=function(){return Uc(),Ic.prototype.isSubmenuVisible()},Lc.prototype.show=function(t,e){Uc(),function(t){Rc(t).open=!0}(e)},Lc.prototype.hide=function(){Uc(),jc()},Lc.prototype.inlineDialogShowHandler=function(){Uc()},Lc.prototype.inlineDialogHideHandler=function(){Uc()},Lc.prototype.moveSubmenuToInlineDialog=function(){Uc()},Lc.prototype.restoreSubmenu=function(){Uc()},Ic.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(Oc(),function(t){return t.open})},Ic.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};const Fc='<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 Hc={gravity:"w",title:function(){var t=i(this);return t.is("a")||t.is("button")?t.attr("title")||t.find(".aui-nav-item-label").text()||t.data("tooltip"):t.children(".aui-nav").attr("title")||t.children(".aui-nav-heading").text()}};var Bc=gt("sidebar",Ic);i(function(){Bc(".aui-sidebar")});var Uc=O("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});l("sidebar",Bc);const Wc=Bc;n(841),n(581);function Vc(t){var e={width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(t){t.keyCode===Q.ESCAPE&&n.is(":visible")&&l.hide()}};"object"!=typeof t&&(t={width:arguments[0],height:arguments[1],id:arguments[2]},t=i.extend({},t,arguments[3])),t=i.extend({},e,t);var n=i("<div></div>").addClass("aui-popup");t.id&&n.attr("id",t.id);var s=2600;i(".aui-dialog").each(function(){var t=i(this);s=t.css("z-index")>s?t.css("z-index"):s});var r=function e(i,r){return t.width=i=i||t.width,t.height=r=r||t.height,n.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(i/2)+"px",width:i,height:r,"z-index":parseInt(s,10)+2}),e}(t.width,t.height);i("body").append(n),n.hide(),h(n);var a=i(".aui-blanket"),o=function(t,e){var n=i(t,e);return!!n.length&&(n.focus(),!0)},l={changeSize:function(e,i){(e&&e!=t.width||i&&i!=t.height)&&r(e,i),this.show()},show:function(){var e=function(){i(document).off("keydown",t.keypressListener).on("keydown",t.keypressListener),V(),0!==(a=i(".aui-blanket")).length&&t.closeOnOutsideClick&&a.on("click",function(){n.is(":visible")&&l.hide()}),n.show(),Vc.current=this,function(e){if(0===i(".dialog-page-body",e).find(":focus").length){if(t.focusSelector)return o(t.focusSelector,e);var n=":input:visible:enabled:first";o(n,i(".dialog-page-body",e))||o(n,i(".dialog-button-panel",e))||o(n,i(".dialog-page-menu",e))}}(n),i(document).trigger("showLayer",["popup",this])};e.call(this),this.show=e},hide:function(){i(document).unbind("keydown",t.keypressListener),a.unbind(),this.element.hide(),0===i(".aui-dialog:visible").length&&Y();var e=document.activeElement;this.element.has(e).length&&e.blur(),i(document).trigger("hideLayer",["popup",this]),Vc.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 Yc=function(){function t(t,e,n,s){t.buttonpanel||t.addButtonPanel(),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<button></button>").html(e).addClass("button-panel-button"),s&&this.item.addClass(s),"function"==typeof n&&this.item.on("click",this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function e(t,e,n,s,r){t.buttonpanel||t.addButtonPanel(),r||(r="#"),this.page=t,this.onclick=n,this._onclick=function(e){return!0===n.call(this,t.dialog,t,e)},this.item=i("<a></a>").html(e).attr("href",r).addClass("button-panel-link"),s&&this.item.addClass(s),"function"==typeof n&&this.item.click(this._onclick),t.buttonpanel.append(this.item),this.id=t.button.length,t.button[this.id]=this}function n(t,e){var i="left"==t?-1:1;return function(t){var n=this.page[e];if(this.id!=(1==i?n.length-1:0)){i*=t||1,n[this.id+i].item[i<0?"before":"after"](this.item),n.splice(this.id,1),n.splice(this.id+i,0,this);for(var s=0,r=n.length;s<r;s++)"panel"==e&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function s(t){return function(){this.page[t].splice(this.id,1);for(var e=0,i=this.page[t].length;e<i;e++)this.page[t][e].id=e;this.item.remove()}}t.prototype.moveUp=t.prototype.moveLeft=n("left","button"),t.prototype.moveDown=t.prototype.moveRight=n("right","button"),t.prototype.remove=s("button"),t.prototype.html=function(t){return this.item.html(t)},t.prototype.onclick=function(t){let e=this;if(void 0===t)return this.onclick;this.item.unbind("click",this._onclick),this._onclick=function(i){return!0===t.call(this,e.page.dialog,e.page,i)},"function"==typeof t&&this.item.click(this._onclick)};var r=function(t,e,n,s,r){n instanceof i||(n=i(n)),this.dialog=t.dialog,this.page=t,this.id=t.panel.length,this.button=i("<button></button>").html(e).addClass("item-button"),r&&(this.button[0].id=r),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",t.dialog.height+"px"),this.padding=20,s&&this.body.addClass(s);var a=t.panel.length,o=this;t.menu.append(this.item),t.body.append(this.body),t.panel[a]=this;var l=function(){var e;t.curtab+1&&((e=t.panel[t.curtab]).body.hide(),e.item.removeClass("selected"),"function"==typeof e.onblur&&e.onblur()),t.curtab=o.id,o.body.show(),o.item.addClass("selected"),"function"==typeof o.onselect&&o.onselect(),"function"==typeof t.ontabchange&&t.ontabchange(o,e)};this.button.click?this.button.click(l):(f("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=l),l(),0==a?t.menu.css("display","none"):t.menu.show()};r.prototype.select=function(){this.button.click()},r.prototype.moveUp=r.prototype.moveLeft=n("left","panel"),r.prototype.moveDown=r.prototype.moveRight=n("right","panel"),r.prototype.remove=s("panel"),r.prototype.html=function(t){return t?(this.body.html(t),this):this.body.html()},r.prototype.setPadding=function(t){return isNaN(+t)||(this.body.css("padding",+t),this.padding=+t,this.page.recalcSize()),this};var a=function(t,e){this.dialog=t,this.id=t.page.length,this.element=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",t.height+"px"),this.body.append(this.menu),this.curtab,this.panel=[],this.button=[],e&&this.body.addClass(e),t.popup.element.append(this.element.append(this.menu).append(this.body)),t.page[t.page.length]=this};function o(t,e,n){var s={};+t||(t=(s=Object(t)).width,e=s.height,n=s.id),this.height=e||480,this.width=t||640,this.id=n,s=i.extend({},s,{width:this.width,height:this.height,id:this.id}),this.popup=Vc(s),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new a(this)}return a.prototype.recalcSize=function(){for(var t=this.header?62:0,e=this.buttonpanel?52:0,i=this.panel.length;i--;){var n=this.dialog.height-t-e;this.panel[i].body.css("height",n),this.menu.css("height",n)}},a.prototype.addButtonPanel=function(){this.buttonpanel=i("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},a.prototype.addPanel=function(t,e,i,n){return new r(this,t,e,i,n),this.recalcSize(),this},a.prototype.addHeader=function(t,e){return this.header&&this.header.remove(),this.header=i("<h2></h2>").text(t||"").addClass("dialog-title"),e&&this.header.addClass(e),this.element.prepend(this.header),this.recalcSize(),this},a.prototype.addButton=function(e,i,n){return new t(this,e,i,n),this.recalcSize(),this},a.prototype.addLink=function(t,i,n,s){return new e(this,t,i,n,s),this.recalcSize(),this},a.prototype.gotoPanel=function(t){this.panel[t.id||t].select()},a.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},a.prototype.hide=function(){this.element.hide()},a.prototype.show=function(){this.element.show()},a.prototype.remove=function(){this.element.remove()},o.prototype.addHeader=function(t,e){return this.page[this.curpage].addHeader(t,e),this},o.prototype.addButton=function(t,e,i){return this.page[this.curpage].addButton(t,e,i),this},o.prototype.addLink=function(t,e,i,n){return this.page[this.curpage].addLink(t,e,i,n),this},o.prototype.addSubmit=function(t,e){return this.page[this.curpage].addButton(t,e,"button-panel-submit-button"),this},o.prototype.addCancel=function(t,e){return this.page[this.curpage].addLink(t,e,"button-panel-cancel-link"),this},o.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},o.prototype.addPanel=function(t,e,i,n){return this.page[this.curpage].addPanel(t,e,i,n),this},o.prototype.addPage=function(t){return new a(this,t),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},o.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},o.prototype.gotoPage=function(t){return this.page[this.curpage].hide(),this.curpage=t,this.curpage<0?this.curpage=this.page.length-1:this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},o.prototype.getPanel=function(t,e){var i=null==e?this.curpage:t;return null==e&&(e=t),this.page[i].panel[e]},o.prototype.getPage=function(t){return this.page[t]},o.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},o.prototype.gotoPanel=function(t,e){if(null!=e){var i=t.id||t;this.gotoPage(i)}this.page[this.curpage].gotoPanel(void 0===e?t:e)},o.prototype.show=function(){return this.popup.show(),k("show.dialog",{dialog:this}),this},o.prototype.hide=function(){return this.popup.hide(),k("hide.dialog",{dialog:this}),this},o.prototype.remove=function(){this.popup.hide(),this.popup.remove(),k("remove.dialog",{dialog:this})},o.prototype.disable=function(){return this.popup.disable(),this},o.prototype.enable=function(){return this.popup.enable(),this},o.prototype.get=function(t){var e=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=new RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(t+"").replace(r,function(t,n,s,r,a,o,l,c,u){var d=[];if("page"==(n=n&&n.toLowerCase())&&i.page[r]?(d.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):d=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var h=d.length;h--;){if(a||"panel"==n&&(s||!s&&null==r))for(var p=d[h].panel.length;p--;)(d[h].panel[p].button.html()==a||d[h].panel[p].button.html()==s||"panel"==n&&!s&&null==r)&&e.push(d[h].panel[p]);if(a||"button"==n&&(s||!s&&null==r))for(p=d[h].button.length;p--;)(d[h].button[p].item.html()==a||d[h].button[p].item.html()==s||"button"==n&&!s&&null==r)&&e.push(d[h].button[p]);d[h][n]&&d[h][n][r]&&e.push(d[h][n][r]),"header"==n&&d[h].header&&e.push(d[h].header)}else e=e.concat(d)});for(var a={length:e.length},o=e.length;o--;)for(var l in a[o]=e[o],e[o])l in a||function(t){a[t]=function(){for(var e=this.length;e--;)"function"==typeof this[e][t]&&this[e][t].apply(this[e],arguments)}}(l);return a},o.prototype.updateHeight=function(){for(var t=0,e=i(window).height()-62-52-100,n=0;this.getPanel(n);n++)this.getPanel(n).body.css({height:"auto",display:"block"}).outerHeight()>t&&(t=Math.min(e,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:t||this.height});this.page[0].menu.height(t),this.height=t+62+52+1,this.popup.changeSize(void 0,this.height)},o.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=i(window).height()-100},o.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},o.prototype.getCurPanelButton=function(){return this.getCurPanel().button},o}();Yc=$(Yc,"Dialog constructor",{alternativeName:"Dialog2"}),Vc=$(Vc,"Dialog popup constructor",{alternatveName:"Dialog2"}),l("Dialog",Yc),l("popup",Vc);const qc=!1;var Kc=-1!==navigator.platform.indexOf("Mac"),Qc=-1!==navigator.userAgent.indexOf("Safari"),Gc=/^(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 Jc=t=>{const e=t[0];if(e){const t=!0,i=!0,n=document.createEvent("MouseEvent");n.initMouseEvent("click",t,i,window,0,0,0,0,0,!1,!1,!1,!1,0,null),e.dispatchEvent(n)}};function Zc(t){var e=[],n=i.Callbacks();function s(t){!Vc.current&&n&&n.fire(t)}function r(t){t.preventDefault()}function a(t){(t&&t.split?i.trim(t).split(" "):[t]).forEach(function(t){!function(t){var n=t instanceof Array?t:function(t){var e=[],i="";for(;t.length;){var n=t.match(/^(ctrl|meta|shift|alt)\+/i),s=t.match(Gc);n?(i+=n[0],t=t.substring(n[0].length)):s?(e.push(i+s[0]),t=t.substring(s[0].length),i=""):(e.push(i+t[0]),t=t.substring(1),i="")}return e}(t.toString()),a=function(t){var e=t.length;for(;e--;)if(t[e].length>1&&"space"!==t[e])return!0;return!1}(n)?"keydown":"keypress";e.push(n),i(document).on(a,qc,n,s),i(document).on(a+" keyup",qc,n,r)}(t)})}function o(t,e,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?e+=" "+s+I18n.getText("aui.keyboard.shortcut.type.x",t.shift()):(e=e.replace(/\)$/,""),e+=" "+I18n.getText("aui.keyboard.shortcut.or.x",t.shift())),t.forEach(function(t){e+=" "+I18n.getText("aui.keyboard.shortcut.then.x",t)}),e+=r}return a(t),Zc.makeShortcut({executor:n,bindKeys:a,addShortcutsToTitle:function(t){for(var n=i(t),s=n.attr("title")||"",r=e.slice(),a=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);r.length;){var g=r.shift();a.some(function(t){return(0,de.isEqual)(g,t)})||(l=o(g.slice(),l,d),c=o(g.slice(),c,h,{workaroundJaws:!0}),d=!1,h=!1)}Kc&&(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",a.concat(e))},removeShortcutsFromTitle:function(t){var e=i(t),n=e.data("kbShortcutAppended");if(n){var s=e.attr("title");e.attr("title",s.replace(n,"")),e.attr("aria-label",s.replace(n,"")),e.removeData("kbShortcutAppended"),e.removeData("kbShortcutAppendedScreenReader"),e.removeData("boundKeyCombos")}},keypressHandler:s,defaultPreventionHandler:r})}Zc.makeShortcut=function(t){var e=t.executor,n=t.bindKeys,s=t.addShortcutsToTitle,r=t.removeShortcutsFromTitle,a=t.keypressHandler,o=t.defaultPreventionHandler,l=[];function c(t){return function(n,s){var r=(s=s||{}).focusedClass||"focused",a=!s.hasOwnProperty("wrapAround")||s.wrapAround,o=!s.hasOwnProperty("escToCancel")||s.escToCancel;return e.add(function(){const e=i(n);let s=e.filter("."+r);const l=0===s.length?void 0:{transition:!0};o&&i(document).one("keydown",function(t){t.keyCode===Q.ESCAPE&&s&&s.removeClass(r)}),s.length&&s.removeClass(r),s=t(s,e,a),s&&s.length>0&&(s.addClass(r),s.moveTo(l),s.is("a")?s.focus():s.find("a:first").focus())}),this}}return{moveToNextItem:c(function(t,e,n){var s;return n&&0===t.length?e.eq(0):(s=i.inArray(t.get(0),e))<e.length-1?(s+=1,e.eq(s)):n?e.eq(0):t}),moveToPrevItem:c(function(t,e,n){var s;return n&&0===t.length?e.filter(":last"):(s=i.inArray(t.get(0),e))>0?(s-=1,e.eq(s)):n?e.filter(":last"):t}),click:function(t){return l.push(t),s(t),e.add(function(){const e=i(t);Jc(e)}),this},goTo:function(t){return e.add(function(){window.location.href=t}),this},followLink:function(t){return l.push(t),s(t),e.add(function(){var e=i(t)[0];e&&{a:!0,link:!0}[e.nodeName.toLowerCase()]&&(window.location.href=e.href)}),this},execute:function(t){var i=this;return e.add(function(){t.apply(i,arguments)}),this},evaluate:function(t){t.call(this)},moveToAndClick:function(t){return l.push(t),s(t),e.add(function(){const e=i(t);e.length>0&&(Jc(e),e.moveTo())}),this},moveToAndFocus:function(t){return l.push(t),s(t),e.add(function(e){var n=i(t);n.length>0&&(n.focus(),n.moveTo&&n.moveTo(),n.is(":input")&&e.preventDefault())}),this},or:function(t){return n(t),this},unbind:function(){i(document).unbind("keydown keypress",a).unbind("keydown keypress keyup",o);for(var t=0,e=l.length;t<e;t++)r(l[t]);l=[]}}},Zc.fromJSON=function(t,e){var n=[];return t&&i.each(t,function(t,s){const r=s.op,a=s.param;let o;if("execute"===r||"evaluate"===r)o=[new Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{o=JSON.parse(a)}catch(t){m("When using a parameter array, array must be in strict JSON format: "+a)}i.isArray(o)||m("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else o=[a];i.each(s.keys,function(){var t=this;e&&Kc&&(t=i.map(t,function(t){return t.replace(/ctrl/i,"meta")}));var s=Zc(t);s[r].apply(s,o),n.push(s)})}),n},i(document).on("iframeAppended",function(t,e){i(e).load(function(){i(e).contents().on("keyup keydown keypress",function(t){Qc&&"keypress"===t.type||i(t.target).is(":input")||i.event.trigger(t,arguments,document,!0)})})}),l("whenIType",Zc);const Xc=Zc,{FocusManager:tu,InlineDialog2:eu,LayerManager:iu,ProgressiveDataSet:nu,clone:su,debounce:ru,debounceImmediate:au,dim:ou,escapeHtml:lu,formValidation:cu,id:uu,isClipped:du,keyCode:hu,layer:pu,messages:fu,populateParameters:gu,params:mu,responsiveheader:vu,select:bu,tablessortable:yu,tabs:wu,undim:_u,_addID:xu}=window.AJS,{contextPath:Cu}=window.AJS})(),s})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("jquery")):"function"==typeof define&&define.amd?define("@atlassian/aui",["jquery"],t):"object"==typeof exports?exports["@atlassian/aui"]=t(require("jquery")):e.AJS=t(e.jQuery)}(window,e=>(()=>{var t={688:function(){console.debug("AUI import for WRM I18n not loaded")},20:function(){jQuery.fn.moveTo=function(e){var t,i=jQuery.extend({transition:!1,scrollOffset:35},e),n=this,s=n.offset().top;if((jQuery(window).scrollTop()+jQuery(window).height()-this.outerHeight()<s||jQuery(window).scrollTop()+i.scrollOffset>s)&&jQuery(window).height()>i.scrollOffset){if(t=jQuery(window).scrollTop()+i.scrollOffset>s?s-(jQuery(window).height()-this.outerHeight())+i.scrollOffset:s-i.scrollOffset,!jQuery.fn.moveTo.animating&&i.transition)return jQuery(document).trigger("moveToStarted",this),jQuery.fn.moveTo.animating=!0,jQuery("html,body").animate({scrollTop:t},1e3,function(){jQuery(document).trigger("moveToFinished",n),delete jQuery.fn.moveTo.animating}),this;var r=jQuery("html, body");return r.is(":animated")&&(r.stop(),delete jQuery.fn.moveTo.animating),jQuery(document).trigger("moveToStarted"),jQuery(window).scrollTop(t),setTimeout(function(){jQuery(document).trigger("moveToFinished",n)},100),this}return jQuery(document).trigger("moveToFinished",this),this}},354:function(e,t,i){var n,s,r,a;r=function(e,t,i,n){var s,r=e.Backbone,a=Array.prototype.slice;t.VERSION="1.6.0",t.$=n,t.noConflict=function(){return e.Backbone=r,this},t.emulateHTTP=!1,t.emulateJSON=!1;var o=t.Events={},l=/\s+/,c=function(e,t,n,s,r){var a,o=0;if(n&&"object"==typeof n)for(void 0!==s&&("context"in r)&&void 0===r.context&&(r.context=s),a=i.keys(n);o<a.length;o++)t=c(e,t,a[o],n[a[o]],r);else if(n&&l.test(n))for(a=n.split(l);o<a.length;o++)t=e(t,a[o],s,r);else t=e(t,n,s,r);return t};o.on=function(e,t,i){return this._events=c(u,this._events||{},e,t,{context:i,ctx:this,listening:s}),s&&((this._listeners||(this._listeners={}))[s.id]=s,s.interop=!1),this},o.listenTo=function(e,t,n){if(!e)return this;var r=e._listenId||(e._listenId=i.uniqueId("l")),a=this._listeningTo||(this._listeningTo={}),o=s=a[r];o||(this._listenId||(this._listenId=i.uniqueId("l")),o=s=a[r]=new v(this,e));var l=h(e,t,n,this);if(s=void 0,l)throw l;return o.interop&&o.on(t,n),this};var u=function(e,t,i,n){if(i){var s=e[t]||(e[t]=[]),r=n.context,a=n.ctx,o=n.listening;o&&o.count++,s.push({callback:i,context:r,ctx:r||a,listening:o})}return e},h=function(e,t,i,n){try{e.on(t,i,n)}catch(e){return e}};o.off=function(e,t,i){return this._events&&(this._events=c(p,this._events,e,t,{context:i,listeners:this._listeners})),this},o.stopListening=function(e,t,n){var s=this._listeningTo;if(!s)return this;for(var r=e?[e._listenId]:i.keys(s),a=0;a<r.length;a++){var o=s[r[a]];if(!o)break;o.obj.off(t,n,this),o.interop&&o.off(t,n)}return i.isEmpty(s)&&(this._listeningTo=void 0),this};var p=function(e,t,n,s){if(e){var r,a=s.context,o=s.listeners,l=0;if(!t&&!a&&!n){for(r=i.keys(o);l<r.length;l++)o[r[l]].cleanup();return}for(r=t?[t]:i.keys(e);l<r.length;l++){var c=e[t=r[l]];if(!c)break;for(var u=[],h=0;h<c.length;h++){var p=c[h];if(n&&n!==p.callback&&n!==p.callback._callback||a&&a!==p.context)u.push(p);else{var f=p.listening;f&&f.off(t,n)}}u.length?e[t]=u:delete e[t]}return e}};o.once=function(e,t,i){var n=c(f,{},e,t,this.off.bind(this));return"string"==typeof e&&null==i&&(t=void 0),this.on(n,t,i)},o.listenToOnce=function(e,t,i){var n=c(f,{},t,i,this.stopListening.bind(this,e));return this.listenTo(e,n)};var f=function(e,t,n,s){if(n){var r=e[t]=i.once(function(){s(t,r),n.apply(this,arguments)});r._callback=n}return e};o.trigger=function(e){if(!this._events)return this;for(var t=Math.max(0,arguments.length-1),i=Array(t),n=0;n<t;n++)i[n]=arguments[n+1];return c(g,this._events,e,void 0,i),this};var g=function(e,t,i,n){if(e){var s=e[t],r=e.all;s&&r&&(r=r.slice()),s&&m(s,n),r&&m(r,[t].concat(n))}return e},m=function(e,t){var i,n=-1,s=e.length,r=t[0],a=t[1],o=t[2];switch(t.length){case 0:for(;++n<s;)(i=e[n]).callback.call(i.ctx);return;case 1:for(;++n<s;)(i=e[n]).callback.call(i.ctx,r);return;case 2:for(;++n<s;)(i=e[n]).callback.call(i.ctx,r,a);return;case 3:for(;++n<s;)(i=e[n]).callback.call(i.ctx,r,a,o);return;default:for(;++n<s;)(i=e[n]).callback.apply(i.ctx,t);return}},v=function(e,t){this.id=e._listenId,this.listener=e,this.obj=t,this.interop=!0,this.count=0,this._events=void 0};v.prototype.on=o.on,v.prototype.off=function(e,t){var i;this.interop?(this._events=c(p,this._events,e,t,{context:void 0,listeners:void 0}),i=!this._events):(this.count--,i=0===this.count),i&&this.cleanup()},v.prototype.cleanup=function(){delete this.listener._listeningTo[this.obj._listenId],this.interop||delete this.obj._listeners[this.id]},o.bind=o.on,o.unbind=o.off,i.extend(t,o);var b=t.Model=function(e,t){var n=e||{};t||(t={}),this.preinitialize.apply(this,arguments),this.cid=i.uniqueId(this.cidPrefix),this.attributes={},t.collection&&(this.collection=t.collection),t.parse&&(n=this.parse(n,t)||{});var s=i.result(this,"defaults");n=i.defaults(i.extend({},s,n),s),this.set(n,t),this.changed={},this.initialize.apply(this,arguments)};i.extend(b.prototype,o,{changed:null,validationError:null,idAttribute:"id",cidPrefix:"c",preinitialize:function(){},initialize:function(){},toJSON:function(e){return i.clone(this.attributes)},sync:function(){return t.sync.apply(this,arguments)},get:function(e){return this.attributes[e]},escape:function(e){return i.escape(this.get(e))},has:function(e){return null!=this.get(e)},matches:function(e){return!!i.iteratee(e,this)(this.attributes)},set:function(e,t,n){if(null==e)return this;if("object"==typeof e?(s=e,n=t):(s={})[e]=t,n||(n={}),!this._validate(s,n))return!1;var s,r=n.unset,a=n.silent,o=[],l=this._changing;this._changing=!0,l||(this._previousAttributes=i.clone(this.attributes),this.changed={});var c=this.attributes,u=this.changed,h=this._previousAttributes;for(var p in s)t=s[p],i.isEqual(c[p],t)||o.push(p),i.isEqual(h[p],t)?delete u[p]:u[p]=t,r?delete c[p]:c[p]=t;if(this.idAttribute in s){var f=this.id;this.id=this.get(this.idAttribute),this.trigger("changeId",this,f,n)}if(!a){o.length&&(this._pending=n);for(var g=0;g<o.length;g++)this.trigger("change:"+o[g],this,c[o[g]],n)}if(l)return this;if(!a)for(;this._pending;)n=this._pending,this._pending=!1,this.trigger("change",this,n);return this._pending=!1,this._changing=!1,this},unset:function(e,t){return this.set(e,void 0,i.extend({},t,{unset:!0}))},clear:function(e){var t={};for(var n in this.attributes)t[n]=void 0;return this.set(t,i.extend({},e,{unset:!0}))},hasChanged:function(e){return null==e?!i.isEmpty(this.changed):i.has(this.changed,e)},changedAttributes:function(e){if(!e)return!!this.hasChanged()&&i.clone(this.changed);var t,n=this._changing?this._previousAttributes:this.attributes,s={};for(var r in e){var a=e[r];i.isEqual(n[r],a)||(s[r]=a,t=!0)}return!!t&&s},previous:function(e){return null!=e&&this._previousAttributes?this._previousAttributes[e]:null},previousAttributes:function(){return i.clone(this._previousAttributes)},fetch:function(e){e=i.extend({parse:!0},e);var t=this,n=e.success;return e.success=function(i){var s=e.parse?t.parse(i,e):i;if(!t.set(s,e))return!1;n&&n.call(e.context,t,i,e),t.trigger("sync",t,i,e)},Y(this,e),this.sync("read",this,e)},save:function(e,t,n){null==e||"object"==typeof e?(s=e,n=t):(s={})[e]=t;var s,r=(n=i.extend({validate:!0,parse:!0},n)).wait;if(s&&!r){if(!this.set(s,n))return!1}else if(!this._validate(s,n))return!1;var a=this,o=n.success,l=this.attributes;n.success=function(e){a.attributes=l;var t=n.parse?a.parse(e,n):e;if(r&&(t=i.extend({},s,t)),t&&!a.set(t,n))return!1;o&&o.call(n.context,a,e,n),a.trigger("sync",a,e,n)},Y(this,n),s&&r&&(this.attributes=i.extend({},l,s));var c=this.isNew()?"create":n.patch?"patch":"update";"patch"!==c||n.attrs||(n.attrs=s);var u=this.sync(c,this,n);return this.attributes=l,u},destroy:function(e){e=e?i.clone(e):{};var t=this,n=e.success,s=e.wait,r=function(){t.stopListening(),t.trigger("destroy",t,t.collection,e)};e.success=function(i){s&&r(),n&&n.call(e.context,t,i,e),t.isNew()||t.trigger("sync",t,i,e)};var a=!1;return this.isNew()?i.defer(e.success):(Y(this,e),a=this.sync("delete",this,e)),s||r(),a},url:function(){var e=i.result(this,"urlRoot")||i.result(this.collection,"url")||V();if(this.isNew())return e;var t=this.get(this.idAttribute);return e.replace(/[^\/]$/,"$&/")+encodeURIComponent(t)},parse:function(e,t){return e},clone:function(){return new this.constructor(this.attributes)},isNew:function(){return!this.has(this.idAttribute)},isValid:function(e){return this._validate({},i.extend({},e,{validate:!0}))},_validate:function(e,t){if(!t.validate||!this.validate)return!0;e=i.extend({},this.attributes,e);var n=this.validationError=this.validate(e,t)||null;return!n||(this.trigger("invalid",this,n,i.extend(t,{validationError:n})),!1)}});var y=t.Collection=function(e,t){t||(t={}),this.preinitialize.apply(this,arguments),t.model&&(this.model=t.model),void 0!==t.comparator&&(this.comparator=t.comparator),this._reset(),this.initialize.apply(this,arguments),e&&this.reset(e,i.extend({silent:!0},t))},w={add:!0,remove:!0,merge:!0},_={add:!0,remove:!1},x=function(e,t,i){i=Math.min(Math.max(i,0),e.length);var n,s=Array(e.length-i),r=t.length;for(n=0;n<s.length;n++)s[n]=e[n+i];for(n=0;n<r;n++)e[n+i]=t[n];for(n=0;n<s.length;n++)e[n+r+i]=s[n]};i.extend(y.prototype,o,{model:b,preinitialize:function(){},initialize:function(){},toJSON:function(e){return this.map(function(t){return t.toJSON(e)})},sync:function(){return t.sync.apply(this,arguments)},add:function(e,t){return this.set(e,i.extend({merge:!1},t,_))},remove:function(e,t){t=i.extend({},t);var n=!i.isArray(e);e=n?[e]:e.slice();var s=this._removeModels(e,t);return!t.silent&&s.length&&(t.changes={added:[],merged:[],removed:s},this.trigger("update",this,t)),n?s[0]:s},set:function(e,t){if(null!=e){(t=i.extend({},w,t)).parse&&!this._isModel(e)&&(e=this.parse(e,t)||[]);var n,s,r=!i.isArray(e);e=r?[e]:e.slice();var a=t.at;null!=a&&(a*=1),a>this.length&&(a=this.length),a<0&&(a+=this.length+1);var o=[],l=[],c=[],u=[],h={},p=t.add,f=t.merge,g=t.remove,m=!1,v=this.comparator&&null==a&&!1!==t.sort,b=i.isString(this.comparator)?this.comparator:null;for(s=0;s<e.length;s++){n=e[s];var y=this.get(n);if(y){if(f&&n!==y){var _=this._isModel(n)?n.attributes:n;t.parse&&(_=y.parse(_,t)),y.set(_,t),c.push(y),v&&!m&&(m=y.hasChanged(b))}h[y.cid]||(h[y.cid]=!0,o.push(y)),e[s]=y}else p&&(n=e[s]=this._prepareModel(n,t))&&(l.push(n),this._addReference(n,t),h[n.cid]=!0,o.push(n))}if(g){for(s=0;s<this.length;s++)h[(n=this.models[s]).cid]||u.push(n);u.length&&this._removeModels(u,t)}var C=!1;if(o.length&&!v&&p&&g?(C=this.length!==o.length||i.some(this.models,function(e,t){return e!==o[t]}),this.models.length=0,x(this.models,o,0),this.length=this.models.length):l.length&&(v&&(m=!0),x(this.models,l,null==a?this.length:a),this.length=this.models.length),m&&this.sort({silent:!0}),!t.silent){for(s=0;s<l.length;s++)null!=a&&(t.index=a+s),(n=l[s]).trigger("add",n,this,t);(m||C)&&this.trigger("sort",this,t),(l.length||u.length||c.length)&&(t.changes={added:l,removed:u,merged:c},this.trigger("update",this,t))}return r?e[0]:e}},reset:function(e,t){t=t?i.clone(t):{};for(var n=0;n<this.models.length;n++)this._removeReference(this.models[n],t);return t.previousModels=this.models,this._reset(),e=this.add(e,i.extend({silent:!0},t)),t.silent||this.trigger("reset",this,t),e},push:function(e,t){return this.add(e,i.extend({at:this.length},t))},pop:function(e){var t=this.at(this.length-1);return this.remove(t,e)},unshift:function(e,t){return this.add(e,i.extend({at:0},t))},shift:function(e){var t=this.at(0);return this.remove(t,e)},slice:function(){return a.apply(this.models,arguments)},get:function(e){if(null!=e)return this._byId[e]||this._byId[this.modelId(this._isModel(e)?e.attributes:e,e.idAttribute)]||e.cid&&this._byId[e.cid]},has:function(e){return null!=this.get(e)},at:function(e){return e<0&&(e+=this.length),this.models[e]},where:function(e,t){return this[t?"find":"filter"](e)},findWhere:function(e){return this.where(e,!0)},sort:function(e){var t=this.comparator;if(!t)throw Error("Cannot sort a set without a comparator");e||(e={});var n=t.length;return i.isFunction(t)&&(t=t.bind(this)),1===n||i.isString(t)?this.models=this.sortBy(t):this.models.sort(t),e.silent||this.trigger("sort",this,e),this},pluck:function(e){return this.map(e+"")},fetch:function(e){var t=(e=i.extend({parse:!0},e)).success,n=this;return e.success=function(i){n[e.reset?"reset":"set"](i,e),t&&t.call(e.context,n,i,e),n.trigger("sync",n,i,e)},Y(this,e),this.sync("read",this,e)},create:function(e,t){var n=(t=t?i.clone(t):{}).wait;if(!(e=this._prepareModel(e,t)))return!1;n||this.add(e,t);var s=this,r=t.success;return t.success=function(e,t,i){n&&(e.off("error",s._forwardPristineError,s),s.add(e,i)),r&&r.call(i.context,e,t,i)},n&&e.once("error",this._forwardPristineError,this),e.save(null,t),e},parse:function(e,t){return e},clone:function(){return new this.constructor(this.models,{model:this.model,comparator:this.comparator})},modelId:function(e,t){return e[t||this.model.prototype.idAttribute||"id"]},values:function(){return new T(this,k)},keys:function(){return new T(this,E)},entries:function(){return new T(this,A)},_reset:function(){this.length=0,this.models=[],this._byId={}},_prepareModel:function(e,t){var n;return this._isModel(e)?(e.collection||(e.collection=this),e):((t=t?i.clone(t):{}).collection=this,(n=this.model.prototype?new this.model(e,t):this.model(e,t)).validationError)?(this.trigger("invalid",this,n.validationError,t),!1):n},_removeModels:function(e,t){for(var i=[],n=0;n<e.length;n++){var s=this.get(e[n]);if(s){var r=this.indexOf(s);this.models.splice(r,1),this.length--,delete this._byId[s.cid];var a=this.modelId(s.attributes,s.idAttribute);null!=a&&delete this._byId[a],t.silent||(t.index=r,s.trigger("remove",s,this,t)),i.push(s),this._removeReference(s,t)}}return e.length>0&&!t.silent&&delete t.index,i},_isModel:function(e){return e instanceof b},_addReference:function(e,t){this._byId[e.cid]=e;var i=this.modelId(e.attributes,e.idAttribute);null!=i&&(this._byId[i]=e),e.on("all",this._onModelEvent,this)},_removeReference:function(e,t){delete this._byId[e.cid];var i=this.modelId(e.attributes,e.idAttribute);null!=i&&delete this._byId[i],this===e.collection&&delete e.collection,e.off("all",this._onModelEvent,this)},_onModelEvent:function(e,t,i,n){if(t){if(("add"===e||"remove"===e)&&i!==this)return;if("destroy"===e&&this.remove(t,n),"changeId"===e){var s=this.modelId(t.previousAttributes(),t.idAttribute),r=this.modelId(t.attributes,t.idAttribute);null!=s&&delete this._byId[s],null!=r&&(this._byId[r]=t)}}this.trigger.apply(this,arguments)},_forwardPristineError:function(e,t,i){this.has(e)||this._onModelEvent("error",e,t,i)}});var C="function"==typeof Symbol&&Symbol.iterator;C&&(y.prototype[C]=y.prototype.values);var T=function(e,t){this._collection=e,this._kind=t,this._index=0},k=1,E=2,A=3;C&&(T.prototype[C]=function(){return this}),T.prototype.next=function(){if(this._collection){if(this._index<this._collection.length){var e,t=this._collection.at(this._index);if(this._index++,this._kind===k)e=t;else{var i=this._collection.modelId(t.attributes,t.idAttribute);e=this._kind===E?i:[i,t]}return{value:e,done:!1}}this._collection=void 0}return{value:void 0,done:!0}};var S=t.View=function(e){this.cid=i.uniqueId("view"),this.preinitialize.apply(this,arguments),i.extend(this,i.pick(e,I)),this._ensureElement(),this.initialize.apply(this,arguments)},D=/^(\S+)\s*(.*)$/,I=["model","collection","el","id","attributes","className","tagName","events"];i.extend(S.prototype,o,{tagName:"div",$:function(e){return this.$el.find(e)},preinitialize:function(){},initialize:function(){},render:function(){return this},remove:function(){return this._removeElement(),this.stopListening(),this},_removeElement:function(){this.$el.remove()},setElement:function(e){return this.undelegateEvents(),this._setElement(e),this.delegateEvents(),this},_setElement:function(e){this.$el=e instanceof t.$?e:t.$(e),this.el=this.$el[0]},delegateEvents:function(e){if(e||(e=i.result(this,"events")),!e)return this;for(var t in this.undelegateEvents(),e){var n=e[t];if(i.isFunction(n)||(n=this[n]),n){var s=t.match(D);this.delegate(s[1],s[2],n.bind(this))}}return this},delegate:function(e,t,i){return this.$el.on(e+".delegateEvents"+this.cid,t,i),this},undelegateEvents:function(){return this.$el&&this.$el.off(".delegateEvents"+this.cid),this},undelegate:function(e,t,i){return this.$el.off(e+".delegateEvents"+this.cid,t,i),this},_createElement:function(e){return document.createElement(e)},_ensureElement:function(){if(this.el)this.setElement(i.result(this,"el"));else{var e=i.extend({},i.result(this,"attributes"));this.id&&(e.id=i.result(this,"id")),this.className&&(e.class=i.result(this,"className")),this.setElement(this._createElement(i.result(this,"tagName"))),this._setAttributes(e)}},_setAttributes:function(e){this.$el.attr(e)}});var M=function(e,t,i,n){switch(t){case 1:return function(){return e[i](this[n])};case 2:return function(t){return e[i](this[n],t)};case 3:return function(t,s){return e[i](this[n],O(t,this),s)};case 4:return function(t,s,r){return e[i](this[n],O(t,this),s,r)};default:return function(){var t=a.call(arguments);return t.unshift(this[n]),e[i].apply(e,t)}}},N=function(e,t,n,s){i.each(n,function(i,n){t[n]&&(e.prototype[n]=M(t,i,n,s))})},O=function(e,t){return i.isFunction(e)?e:i.isObject(e)&&!t._isModel(e)?L(e):i.isString(e)?function(t){return t.get(e)}:e},L=function(e){var t=i.matches(e);return function(e){return t(e.attributes)}};i.each([[y,{forEach:3,each:3,map:3,collect:3,reduce:0,foldl:0,inject:0,reduceRight:0,foldr:0,find:3,detect:3,filter:3,select:3,reject:3,every:3,all:3,some:3,any:3,include:3,includes:3,contains:3,invoke:0,max:3,min:3,toArray:1,size:1,first:3,head:3,take:3,initial:3,rest:3,tail:3,drop:3,last:3,without:0,difference:0,indexOf:3,shuffle:1,lastIndexOf:3,isEmpty:1,chain:1,sample:3,partition:3,groupBy:3,countBy:3,sortBy:3,indexBy:3,findIndex:3,findLastIndex:3},"models"],[b,{keys:1,values:1,pairs:1,invert:1,pick:0,omit:0,chain:1,isEmpty:1},"attributes"]],function(e){var t=e[0],n=e[1],s=e[2];t.mixin=function(e){var n=i.reduce(i.functions(e),function(e,t){return e[t]=0,e},{});N(t,e,n,s)},N(t,i,n,s)}),t.sync=function(e,n,s){var r=P[e];i.defaults(s||(s={}),{emulateHTTP:t.emulateHTTP,emulateJSON:t.emulateJSON});var a={type:r,dataType:"json"};if(s.url||(a.url=i.result(n,"url")||V()),null==s.data&&n&&("create"===e||"update"===e||"patch"===e)&&(a.contentType="application/json",a.data=JSON.stringify(s.attrs||n.toJSON(s))),s.emulateJSON&&(a.contentType="application/x-www-form-urlencoded",a.data=a.data?{model:a.data}:{}),s.emulateHTTP&&("PUT"===r||"DELETE"===r||"PATCH"===r)){a.type="POST",s.emulateJSON&&(a.data._method=r);var o=s.beforeSend;s.beforeSend=function(e){if(e.setRequestHeader("X-HTTP-Method-Override",r),o)return o.apply(this,arguments)}}"GET"===a.type||s.emulateJSON||(a.processData=!1);var l=s.error;s.error=function(e,t,i){s.textStatus=t,s.errorThrown=i,l&&l.call(s.context,e,t,i)};var c=s.xhr=t.ajax(i.extend(a,s));return n.trigger("request",n,c,s),c};var P={create:"POST",update:"PUT",patch:"PATCH",delete:"DELETE",read:"GET"};t.ajax=function(){return t.$.ajax.apply(t.$,arguments)};var R=t.Router=function(e){e||(e={}),this.preinitialize.apply(this,arguments),e.routes&&(this.routes=e.routes),this._bindRoutes(),this.initialize.apply(this,arguments)},$=/\((.*?)\)/g,j=/(\(\?)?:\w+/g,z=/\*\w+/g,H=/[\-{}\[\]+?.,\\\^$|#\s]/g;i.extend(R.prototype,o,{preinitialize:function(){},initialize:function(){},route:function(e,n,s){i.isRegExp(e)||(e=this._routeToRegExp(e)),i.isFunction(n)&&(s=n,n=""),s||(s=this[n]);var r=this;return t.history.route(e,function(i){var a=r._extractParameters(e,i);!1!==r.execute(s,a,n)&&(r.trigger.apply(r,["route:"+n].concat(a)),r.trigger("route",n,a),t.history.trigger("route",r,n,a))}),this},execute:function(e,t,i){e&&e.apply(this,t)},navigate:function(e,i){return t.history.navigate(e,i),this},_bindRoutes:function(){if(this.routes){this.routes=i.result(this,"routes");for(var e,t=i.keys(this.routes);null!=(e=t.pop());)this.route(e,this.routes[e])}},_routeToRegExp:function(e){return RegExp("^"+(e=e.replace(H,"\\$&").replace($,"(?:$1)?").replace(j,function(e,t){return t?e:"([^/?]+)"}).replace(z,"([^?]*?)"))+"(?:\\?([\\s\\S]*))?$")},_extractParameters:function(e,t){var n=e.exec(t).slice(1);return i.map(n,function(e,t){return t===n.length-1?e||null:e?decodeURIComponent(e):null})}});var F=t.History=function(){this.handlers=[],this.checkUrl=this.checkUrl.bind(this),"undefined"!=typeof window&&(this.location=window.location,this.history=window.history)},B=/^[#\/]|\s+$/g,U=/^\/+|\/+$/g,W=/#.*$/;F.started=!1,i.extend(F.prototype,o,{interval:50,atRoot:function(){return this.location.pathname.replace(/[^\/]$/,"$&/")===this.root&&!this.getSearch()},matchRoot:function(){return this.decodeFragment(this.location.pathname).slice(0,this.root.length-1)+"/"===this.root},decodeFragment:function(e){return decodeURI(e.replace(/%25/g,"%2525"))},getSearch:function(){var e=this.location.href.replace(/#.*/,"").match(/\?.+/);return e?e[0]:""},getHash:function(e){var t=(e||this).location.href.match(/#(.*)$/);return t?t[1]:""},getPath:function(){var e=this.decodeFragment(this.location.pathname+this.getSearch()).slice(this.root.length-1);return"/"===e.charAt(0)?e.slice(1):e},getFragment:function(e){return null==e&&(e=this._usePushState||!this._wantsHashChange?this.getPath():this.getHash()),e.replace(B,"")},start:function(e){if(F.started)throw Error("Backbone.history has already been started");if(F.started=!0,this.options=i.extend({root:"/"},this.options,e),this.root=this.options.root,this._trailingSlash=this.options.trailingSlash,this._wantsHashChange=!1!==this.options.hashChange,this._hasHashChange="onhashchange"in window&&(void 0===document.documentMode||document.documentMode>7),this._useHashChange=this._wantsHashChange&&this._hasHashChange,this._wantsPushState=!!this.options.pushState,this._hasPushState=!!(this.history&&this.history.pushState),this._usePushState=this._wantsPushState&&this._hasPushState,this.fragment=this.getFragment(),this.root=("/"+this.root+"/").replace(U,"/"),this._wantsHashChange&&this._wantsPushState)if(this._hasPushState||this.atRoot())this._hasPushState&&this.atRoot()&&this.navigate(this.getHash(),{replace:!0});else{var t=this.root.slice(0,-1)||"/";return this.location.replace(t+"#"+this.getPath()),!0}if(!this._hasHashChange&&this._wantsHashChange&&!this._usePushState){this.iframe=document.createElement("iframe"),this.iframe.src="javascript:0",this.iframe.style.display="none",this.iframe.tabIndex=-1;var n=document.body,s=n.insertBefore(this.iframe,n.firstChild).contentWindow;s.document.open(),s.document.close(),s.location.hash="#"+this.fragment}var r=window.addEventListener||function(e,t){return attachEvent("on"+e,t)};if(this._usePushState?r("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe?r("hashchange",this.checkUrl,!1):this._wantsHashChange&&(this._checkUrlInterval=setInterval(this.checkUrl,this.interval)),!this.options.silent)return this.loadUrl()},stop:function(){var e=window.removeEventListener||function(e,t){return detachEvent("on"+e,t)};this._usePushState?e("popstate",this.checkUrl,!1):this._useHashChange&&!this.iframe&&e("hashchange",this.checkUrl,!1),this.iframe&&(document.body.removeChild(this.iframe),this.iframe=null),this._checkUrlInterval&&clearInterval(this._checkUrlInterval),F.started=!1},route:function(e,t){this.handlers.unshift({route:e,callback:t})},checkUrl:function(e){var t=this.getFragment();if(t===this.fragment&&this.iframe&&(t=this.getHash(this.iframe.contentWindow)),t===this.fragment)return!this.matchRoot()&&this.notfound();this.iframe&&this.navigate(t),this.loadUrl()},loadUrl:function(e){return this.matchRoot()?(e=this.fragment=this.getFragment(e),i.some(this.handlers,function(t){if(t.route.test(e))return t.callback(e),!0})||this.notfound()):this.notfound()},notfound:function(){return this.trigger("notfound"),!1},navigate:function(e,t){if(!F.started)return!1;t&&!0!==t||(t={trigger:!!t}),e=this.getFragment(e||"");var i=this.root;this._trailingSlash||""!==e&&"?"!==e.charAt(0)||(i=i.slice(0,-1)||"/");var n=i+e;e=e.replace(W,"");var s=this.decodeFragment(e);if(this.fragment!==s){if(this.fragment=s,this._usePushState)this.history[t.replace?"replaceState":"pushState"]({},document.title,n);else if(!this._wantsHashChange)return this.location.assign(n);else if(this._updateHash(this.location,e,t.replace),this.iframe&&e!==this.getHash(this.iframe.contentWindow)){var r=this.iframe.contentWindow;t.replace||(r.document.open(),r.document.close()),this._updateHash(r.location,e,t.replace)}if(t.trigger)return this.loadUrl(e)}},_updateHash:function(e,t,i){if(i){var n=e.href.replace(/(javascript:|#).*$/,"");e.replace(n+"#"+t)}else e.hash="#"+t}}),t.history=new F,b.extend=y.extend=R.extend=S.extend=F.extend=function(e,t){var n,s=this;return n=e&&i.has(e,"constructor")?e.constructor:function(){return s.apply(this,arguments)},i.extend(n,s,t),n.prototype=i.create(s.prototype,e),n.prototype.constructor=n,n.__super__=s.prototype,n};var V=function(){throw Error('A "url" property or function must be specified')},Y=function(e,t){var i=t.error;t.error=function(n){i&&i.call(t.context,e,n,t),e.trigger("error",e,n,t)}};return t._debug=function(){return{root:e,_:i}},t},a="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g,n=[i(330),i(195),t],void 0===(s=(function(e,t,i){a.Backbone=r(a,i,e,t)}).apply(t,n))||(e.exports=s)},722:function(e,t,i){var n,s,r;s=this,r=function(e){"use strict";var t=/^.*[\\\/]/,i=/\{0\}/gi,n=function(){var e=3,t=document.createElement("div"),i=t.getElementsByTagName("i");do t.innerHTML="\x3c!--[if gt IE "+ ++e+"]><i></i><![endif]--\x3e";while(i[0]);return e>4?e:document.documentMode}();function s(t,i){var n=e(t).data("FancyFileInput");if(n)return n;i=e.extend({},s.defaults,i),this.el=t,this.$el=e(t),this.$label=this.createLabel(i.buttonText),this._addLabelText(),this.$clearButton=e("<button>",{text:this.$label.attr("data-ffi-clearButtonText")||i.clearButtonText,class:"ffi-clear",type:"button",tabindex:"-1"}),this.multipleFileTextPattern=this.$label.attr("data-ffi-multipleFileTextPattern")||i.multipleFileTextPattern,this._eventNamespace=".ffi",this.CLASSES={disabled:"is-disabled",focused:"is-focused",active:"is-active",valid:"is-valid",invalid:"is-invalid"},this[this.isDisabled()?"disable":"enable"](),this.isFocused=!1}return s.defaults={buttonText:"Browse…",clearButtonText:"Clear",multipleFileTextPattern:"{0} files"},s.prototype._addLabelText=function(){var t=e('label[for="'+this.el.id+'"]');t.length&&this.$el.attr("aria-label",t.text())},s.prototype.createLabel=function(t){var i=this.$el.parent(".ffi[data-ffi-button-text]");return i.length||(i=this.$el.wrap(e("<label>",{class:"ffi","data-ffi-button-text":t})).parent()),i},s.prototype.isDisabled=function(){return this.$el.is(":disabled")},s.prototype.formatMultipleFileText=function(e){return this.multipleFileTextPattern.replace(i,e)},s.prototype.bindEvents=function(){this.$el.on("invalid"+this._eventNamespace,e.proxy(this.checkValidity,this)).on("change"+this._eventNamespace,e.proxy(this.change,this)).on("keydown"+this._eventNamespace,e.proxy(this.keydown,this)).on("mousedown"+this._eventNamespace,e.proxy(this.mousedown,this)).on("mouseup"+this._eventNamespace,e.proxy(this.mouseup,this)).on("focus"+this._eventNamespace,e.proxy(this.focus,this)).on("blur"+this._eventNamespace,e.proxy(this.blur,this)),this.$clearButton.on("click"+this._eventNamespace,e.proxy(this.clear,this))},s.prototype.unbindEvents=function(){this.$el.off(this._eventNamespace),this.$clearButton.off(this._eventNamespace)},s.prototype.fireEvent=function(e){this.$el.trigger(e+this._eventNamespace)},s.prototype.enable=function(){this.bindEvents(),this.$el.prop("disabled",!1),this.$label.removeClass(this.CLASSES.disabled)},s.prototype.disable=function(){this.unbindEvents(),this.$el.prop("disabled",!0),this.$label.addClass(this.CLASSES.disabled)},s.prototype.clear=function(){return this.$el.wrap("<form>").closest("form").get(0).reset(),this.$el.unwrap(),this.el.value="",this.change(),!1},s.prototype.focus=function(){var e=this;this.$label.addClass(this.CLASSES.focused),n&&!this.isFocused&&(this.isFocused=!0,setTimeout(function(){e.$el.blur(),e.$el.focus()},0))},s.prototype.blur=function(){n&&this.isFocused||(this.$label.removeClass(this.CLASSES.focused),this.isFocused=!1)},s.prototype.mousedown=function(){this.$label.addClass(this.CLASSES.active)},s.prototype.mouseup=function(){this.$label.removeClass(this.CLASSES.active)},s.prototype.keydown=function(e){var t=e.which;if((8===t||46===t)&&(this.clear(),e.preventDefault()),n&&9===t){var i=this;this.isFocused=!1,this.$el.prop("disabled",!0),setTimeout(function(){i.$el.prop("disabled",!1).blur()},0)}},s.prototype.checkValidity=function(){if(this.el.required){var e=this.$el.is(":invalid");this.$label.toggleClass(this.CLASSES.invalid,e).toggleClass(this.CLASSES.valid,!e)}},s.prototype.change=function(){var e,i="";this.checkValidity(),(e=this.el.multiple&&this.el.files.length>1?this.formatMultipleFileText(this.el.files.length):this.el.value).length?(i=e.replace(t,""),this.$clearButton.appendTo(this.$label)):this.$clearButton.detach(),this.$el.focus(),this.setFieldText(i),this.fireEvent("value-changed")},s.prototype.setFieldText=function(e){var t="data-ffi-value";e.length?(this.$label.attr(t,e),this.fireEvent("value-added")):(this.$label.removeAttr(t),this.fireEvent("value-cleared"))},e.fn.fancyFileInput=function(t){return this.each(function(){var i=new s(this,t);e(this).data("FancyFileInput",i)})},s},void 0===s&&void 0!==window&&(s=window),void 0===(n=(function(e){return s.FancyFileInput=r(e)}).apply(t,[i(195)]))||(e.exports=n)},745:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.extend(e.expr.pseudos,{data:e.expr.createPseudo(function(t){return function(i){return!!e.data(i,t)}})})})},891:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}})},786:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.ui.plugin={add:function(t,i,n){var s,r=e.ui[t].prototype;for(s in n)r.plugins[s]=r.plugins[s]||[],r.plugins[s].push([i,n[s]])},call:function(e,t,i,n){var s,r=e.plugins[t];if(r&&(n||e.element[0].parentNode&&11!==e.element[0].parentNode.nodeType))for(s=0;s<r.length;s++)e.options[r[s][0]]&&r[s][1].apply(e.element,i)}}})},41:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.fn.scrollParent=function(t){var i=this.css("position"),n="absolute"===i,s=t?/(auto|scroll|hidden)/:/(auto|scroll)/,r=this.parents().filter(function(){var t=e(this);return(!n||"static"!==t.css("position"))&&s.test(t.css("overflow")+t.css("overflow-y")+t.css("overflow-x"))}).eq(0);return"fixed"!==i&&r.length?r:e(this[0].ownerDocument||document)}})},309:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.ui=e.ui||{},e.ui.version="1.14.1"})},229:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){"use strict";var t,i=0,n=Array.prototype.hasOwnProperty,s=Array.prototype.slice;return t=e.cleanData,e.cleanData=function(i){var n,s,r;for(r=0;null!=(s=i[r]);r++)(n=e._data(s,"events"))&&n.remove&&e(s).triggerHandler("remove");t(i)},e.widget=function(t,i,n){var s,r,a,o={},l=t.split(".")[0];if("__proto__"===(t=t.split(".")[1])||"constructor"===t)return e.error("Invalid widget name: "+t);var c=l+"-"+t;return n||(n=i,i=e.Widget),Array.isArray(n)&&(n=e.extend.apply(null,[{}].concat(n))),e.expr.pseudos[c.toLowerCase()]=function(t){return!!e.data(t,c)},e[l]=e[l]||{},s=e[l][t],r=e[l][t]=function(e,t){if(!this||!this._createWidget)return new r(e,t);arguments.length&&this._createWidget(e,t)},e.extend(r,s,{version:n.version,_proto:e.extend({},n),_childConstructors:[]}),(a=new i).options=e.widget.extend({},a.options),e.each(n,function(e,t){if("function"!=typeof t){o[e]=t;return}o[e]=function(){function n(){return i.prototype[e].apply(this,arguments)}function s(t){return i.prototype[e].apply(this,t)}return function(){var e,i=this._super,r=this._superApply;return this._super=n,this._superApply=s,e=t.apply(this,arguments),this._super=i,this._superApply=r,e}}()}),r.prototype=e.widget.extend(a,{widgetEventPrefix:s&&a.widgetEventPrefix||t},o,{constructor:r,namespace:l,widgetName:t,widgetFullName:c}),s?(e.each(s._childConstructors,function(t,i){var n=i.prototype;e.widget(n.namespace+"."+n.widgetName,r,i._proto)}),delete s._childConstructors):i._childConstructors.push(r),e.widget.bridge(t,r),r},e.widget.extend=function(t){for(var i,r,a=s.call(arguments,1),o=0,l=a.length;o<l;o++)for(i in a[o])r=a[o][i],n.call(a[o],i)&&void 0!==r&&(e.isPlainObject(r)?t[i]=e.isPlainObject(t[i])?e.widget.extend({},t[i],r):e.widget.extend({},r):t[i]=r);return t},e.widget.bridge=function(t,i){var n=i.prototype.widgetFullName||t;e.fn[t]=function(r){var a="string"==typeof r,o=s.call(arguments,1),l=this;return a?this.length||"instance"!==r?this.each(function(){var i,s=e.data(this,n);return"instance"===r?(l=s,!1):s?"function"!=typeof s[r]||"_"===r.charAt(0)?e.error("no such method '"+r+"' for "+t+" widget instance"):(i=s[r].apply(s,o))!==s&&void 0!==i?(l=i&&i.jquery?l.pushStack(i.get()):i,!1):void 0:e.error("cannot call methods on "+t+" prior to initialization; attempted to call method '"+r+"'")}):l=void 0:(o.length&&(r=e.widget.extend.apply(null,[r].concat(o))),this.each(function(){var t=e.data(this,n);t?(t.option(r||{}),t._init&&t._init()):e.data(this,n,new i(r,this))})),l}},e.Widget=function(){},e.Widget._childConstructors=[],e.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(t,n){n=e(n||this.defaultElement||this)[0],this.element=e(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=e(),this.hoverable=e(),this.focusable=e(),this.classesElementLookup={},n!==this&&(e.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(e){e.target===n&&this.destroy()}}),this.document=e(n.style?n.ownerDocument:n.document||n),this.window=e(this.document[0].defaultView||this.document[0].parentWindow)),this.options=e.widget.extend({},this.options,this._getCreateOptions(),t),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:e.noop,_create:e.noop,_init:e.noop,destroy:function(){var t=this;this._destroy(),e.each(this.classesElementLookup,function(e,i){t._removeClass(i,e)}),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:e.noop,widget:function(){return this.element},option:function(t,i){var n,s,r,a=t;if(0==arguments.length)return e.widget.extend({},this.options);if("string"==typeof t)if(a={},t=(n=t.split(".")).shift(),n.length){for(r=0,s=a[t]=e.widget.extend({},this.options[t]);r<n.length-1;r++)s[n[r]]=s[n[r]]||{},s=s[n[r]];if(t=n.pop(),1==arguments.length)return void 0===s[t]?null:s[t];s[t]=i}else{if(1==arguments.length)return void 0===this.options[t]?null:this.options[t];a[t]=i}return this._setOptions(a),this},_setOptions:function(e){var t;for(t in e)this._setOption(t,e[t]);return this},_setOption:function(e,t){return"classes"===e&&this._setOptionClasses(t),this.options[e]=t,"disabled"===e&&this._setOptionDisabled(t),this},_setOptionClasses:function(t){var i,n,s;for(i in t)s=this.classesElementLookup[i],t[i]!==this.options.classes[i]&&s&&s.length&&(n=e(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:t,add:!0})))},_setOptionDisabled:function(e){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!e),e&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(t){var i=[],n=this;function s(s,r){var a,o;for(o=0;o<s.length;o++)a=n.classesElementLookup[s[o]]||e(),t.add?(!function(){var i=[];t.element.each(function(t,s){e.map(n.classesElementLookup,function(e){return e}).some(function(e){return e.is(s)})||i.push(s)}),n._on(e(i),{remove:"_untrackClassesElement"})}(),a=e(e.uniqueSort(a.get().concat(t.element.get())))):a=e(a.not(t.element).get()),n.classesElementLookup[s[o]]=a,i.push(s[o]),r&&t.classes[s[o]]&&i.push(t.classes[s[o]])}return(t=e.extend({element:this.element,classes:this.options.classes||{}},t)).keys&&s(t.keys.match(/\S+/g)||[],!0),t.extra&&s(t.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(t){var i=this;e.each(i.classesElementLookup,function(n,s){-1!==e.inArray(t.target,s)&&(i.classesElementLookup[n]=e(s.not(t.target).get()))}),this._off(e(t.target))},_removeClass:function(e,t,i){return this._toggleClass(e,t,i,!1)},_addClass:function(e,t,i){return this._toggleClass(e,t,i,!0)},_toggleClass:function(e,t,i,n){n="boolean"==typeof n?n:i;var s="string"==typeof e||null===e,r={extra:s?t:i,keys:s?e:t,element:s?this.element:e,add:n};return r.element.toggleClass(this._classes(r),n),this},_on:function(t,i,n){var s,r=this;"boolean"!=typeof t&&(n=i,i=t,t=!1),n?(i=s=e(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),e.each(n,function(n,a){function o(){if(!(!t&&(!0===r.options.disabled||e(this).hasClass("ui-state-disabled"))))return("string"==typeof a?r[a]:a).apply(r,arguments)}"string"!=typeof a&&(o.guid=a.guid=a.guid||o.guid||e.guid++);var l=n.match(/^([\w:-]*)\s*(.*)$/),c=l[1]+r.eventNamespace,u=l[2];u?s.on(c,u,o):i.on(c,o)})},_off:function(t,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.off(i),this.bindings=e(this.bindings.not(t).get()),this.focusable=e(this.focusable.not(t).get()),this.hoverable=e(this.hoverable.not(t).get())},_delay:function(e,t){var i=this;return setTimeout(function(){return("string"==typeof e?i[e]:e).apply(i,arguments)},t||0)},_hoverable:function(t){this.hoverable=this.hoverable.add(t),this._on(t,{mouseenter:function(t){this._addClass(e(t.currentTarget),null,"ui-state-hover")},mouseleave:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-hover")}})},_focusable:function(t){this.focusable=this.focusable.add(t),this._on(t,{focusin:function(t){this._addClass(e(t.currentTarget),null,"ui-state-focus")},focusout:function(t){this._removeClass(e(t.currentTarget),null,"ui-state-focus")}})},_trigger:function(t,i,n){var s,r,a=this.options[t];if(n=n||{},(i=e.Event(i)).type=(t===this.widgetEventPrefix?t:this.widgetEventPrefix+t).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(s in r)s in i||(i[s]=r[s]);return this.element.trigger(i,n),!("function"==typeof a&&!1===a.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},e.each({show:"fadeIn",hide:"fadeOut"},function(t,i){e.Widget.prototype["_"+t]=function(n,s,r){"string"==typeof s&&(s={effect:s});var a,o=s?!0===s||"number"==typeof s?i:s.effect||i:t;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),a=!e.isEmptyObject(s),s.complete=r,s.delay&&n.delay(s.delay),a&&e.effects&&e.effects.effect[o]?n[t](s):o!==t&&n[o]?n[o](s.duration,s.easing,r):n.queue(function(i){e(this)[t](),r&&r.call(n[0]),i()})}}),e.widget})},253:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309),i(891)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){"use strict";var t;function i(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},e.extend(this._defaults,this.regional[""]),this.regional.en=e.extend(!0,{},this.regional[""]),this.regional["en-US"]=e.extend(!0,{},this.regional.en),this.dpDiv=n(e("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function n(t){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return t.on("mouseout",i,function(){e(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).removeClass("ui-datepicker-next-hover")}).on("mouseover",i,s)}function s(){e.datepicker._isDisabledDatepicker(t.inline?t.dpDiv.parent()[0]:t.input[0])||(e(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),e(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&e(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&e(this).addClass("ui-datepicker-next-hover"))}function r(t,i){for(var n in e.extend(t,i),i)null==i[n]&&(t[n]=i[n]);return t}return e.extend(e.ui,{datepicker:{version:"1.14.1"}}),e.extend(i.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(e){return r(this._defaults,e||{}),this},_attachDatepicker:function(t,i){var n,s,r;s="div"===(n=t.nodeName.toLowerCase())||"span"===n,t.id||(this.uuid+=1,t.id="dp"+this.uuid),(r=this._newInst(e(t),s)).settings=e.extend({},i||{}),"input"===n?this._connectDatepicker(t,r):s&&this._inlineDatepicker(t,r)},_newInst:function(t,i){return{id:t[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:t,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?n(e("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(t,i){var n=e(t);i.append=e([]),i.trigger=e([]),!n.hasClass(this.markerClassName)&&(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),e.data(t,"datepicker",i),i.settings.disabled&&this._disableDatepicker(t))},_attachments:function(t,i){var n,s,r,a=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),a&&(i.append=e("<span>").addClass(this._appendClass).text(a),t[o?"before":"after"](i.append)),t.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),("focus"===(n=this._get(i,"showOn"))||"both"===n)&&t.on("focus",this._showDatepicker),("button"===n||"both"===n)&&(s=this._get(i,"buttonText"),r=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=e("<img>").addClass(this._triggerClass).attr({src:r,alt:s,title:s}):(i.trigger=e("<button type='button'>").addClass(this._triggerClass),r?i.trigger.html(e("<img>").attr({src:r,alt:s,title:s})):i.trigger.text(s)),t[o?"before":"after"](i.trigger),i.trigger.on("click",function(){return e.datepicker._datepickerShowing&&e.datepicker._lastInput===t[0]?e.datepicker._hideDatepicker():(e.datepicker._datepickerShowing&&e.datepicker._lastInput!==t[0]&&e.datepicker._hideDatepicker(),e.datepicker._showDatepicker(t[0])),!1}))},_autoSize:function(e){if(this._get(e,"autoSize")&&!e.inline){var t,i,n,s,r=new Date(2009,11,20),a=this._get(e,"dateFormat");a.match(/[DM]/)&&(t=function(e){for(s=0,i=0,n=0;s<e.length;s++)e[s].length>i&&(i=e[s].length,n=s);return n},r.setMonth(t(this._get(e,a.match(/MM/)?"monthNames":"monthNamesShort"))),r.setDate(t(this._get(e,a.match(/DD/)?"dayNames":"dayNamesShort"))+20-r.getDay())),e.input.attr("size",this._formatDate(e,r).length)}},_inlineDatepicker:function(t,i){var n=e(t);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),e.data(t,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(t),i.dpDiv.css("display","block"))},_dialogDatepicker:function(t,i,n,s,a){var o,l,c,u,h,p=this._dialogInst;return p||(this.uuid+=1,o="dp"+this.uuid,this._dialogInput=e("<input type='text' id='"+o+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),e("body").append(this._dialogInput),(p=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},e.data(this._dialogInput[0],"datepicker",p)),r(p.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(p,i):i,this._dialogInput.val(i),this._pos=a?a.length?a:[a.pageX,a.pageY]:null,this._pos||(l=document.documentElement.clientWidth,c=document.documentElement.clientHeight,u=document.documentElement.scrollLeft||document.body.scrollLeft,h=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[l/2-100+u,c/2-150+h]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),p.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),e.blockUI&&e.blockUI(this.dpDiv),e.data(this._dialogInput[0],"datepicker",p),this},_destroyDatepicker:function(i){var n,s=e(i),r=e.data(i,"datepicker");s.hasClass(this.markerClassName)&&(n=i.nodeName.toLowerCase(),e.removeData(i,"datepicker"),"input"===n?(r.append.remove(),r.trigger.remove(),s.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):("div"===n||"span"===n)&&s.removeClass(this.markerClassName).empty(),e.datepicker._hideDatepicker(),t===r&&(t=null,this._curInst=null))},_enableDatepicker:function(t){var i,n,s=e(t),r=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!1,r.trigger.filter("button").each(function(){this.disabled=!1}).end().filter("img").css({opacity:"1.0",cursor:""})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}))},_disableDatepicker:function(t){var i,n,s=e(t),r=e.data(t,"datepicker");s.hasClass(this.markerClassName)&&("input"===(i=t.nodeName.toLowerCase())?(t.disabled=!0,r.trigger.filter("button").each(function(){this.disabled=!0}).end().filter("img").css({opacity:"0.5",cursor:"default"})):("div"===i||"span"===i)&&((n=s.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=e.map(this._disabledInputs,function(e){return e===t?null:e}),this._disabledInputs[this._disabledInputs.length]=t)},_isDisabledDatepicker:function(e){if(!e)return!1;for(var t=0;t<this._disabledInputs.length;t++)if(this._disabledInputs[t]===e)return!0;return!1},_getInst:function(t){try{return e.data(t,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(t,i,n){var s,a,o,l,c=this._getInst(t);if(2==arguments.length&&"string"==typeof i)return"defaults"===i?e.extend({},e.datepicker._defaults):c?"all"===i?e.extend({},c.settings):this._get(c,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),c&&(this._curInst===c&&this._hideDatepicker(),a=this._getDateDatepicker(t,!0),o=this._getMinMaxDate(c,"min"),l=this._getMinMaxDate(c,"max"),r(c.settings,s),null!==o&&void 0!==s.dateFormat&&void 0===s.minDate&&(c.settings.minDate=this._formatDate(c,o)),null!==l&&void 0!==s.dateFormat&&void 0===s.maxDate&&(c.settings.maxDate=this._formatDate(c,l)),"disabled"in s&&(s.disabled?this._disableDatepicker(t):this._enableDatepicker(t)),this._attachments(e(t),c),this._autoSize(c),this._setDate(c,a),this._updateAlternate(c),this._updateDatepicker(c))},_changeDatepicker:function(e,t,i){this._optionDatepicker(e,t,i)},_refreshDatepicker:function(e){var t=this._getInst(e);t&&this._updateDatepicker(t)},_setDateDatepicker:function(e,t){var i=this._getInst(e);i&&(this._setDate(i,t),this._updateDatepicker(i),this._updateAlternate(i))},_getDateDatepicker:function(e,t){var i=this._getInst(e);return i&&!i.inline&&this._setDateFromField(i,t),i?this._getDate(i):null},_doKeyDown:function(t){var i,n,s,r=e.datepicker._getInst(t.target),a=!0,o=r.dpDiv.is(".ui-datepicker-rtl");if(r._keyEvent=!0,e.datepicker._datepickerShowing)switch(t.keyCode){case 9:e.datepicker._hideDatepicker(),a=!1;break;case 13:return(s=e("td."+e.datepicker._dayOverClass+":not(."+e.datepicker._currentClass+")",r.dpDiv))[0]&&e.datepicker._selectDay(t.target,r.selectedMonth,r.selectedYear,s[0]),(i=e.datepicker._get(r,"onSelect"))?(n=e.datepicker._formatDate(r),i.apply(r.input?r.input[0]:null,[n,r])):e.datepicker._hideDatepicker(),!1;case 27:e.datepicker._hideDatepicker();break;case 33:e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 34:e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 35:(t.ctrlKey||t.metaKey)&&e.datepicker._clearDate(t.target),a=t.ctrlKey||t.metaKey;break;case 36:(t.ctrlKey||t.metaKey)&&e.datepicker._gotoToday(t.target),a=t.ctrlKey||t.metaKey;break;case 37:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?1:-1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?-e.datepicker._get(r,"stepBigMonths"):-e.datepicker._get(r,"stepMonths"),"M");break;case 38:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,-7,"D"),a=t.ctrlKey||t.metaKey;break;case 39:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,o?-1:1,"D"),a=t.ctrlKey||t.metaKey,t.originalEvent.altKey&&e.datepicker._adjustDate(t.target,t.ctrlKey?+e.datepicker._get(r,"stepBigMonths"):+e.datepicker._get(r,"stepMonths"),"M");break;case 40:(t.ctrlKey||t.metaKey)&&e.datepicker._adjustDate(t.target,7,"D"),a=t.ctrlKey||t.metaKey;break;default:a=!1}else 36===t.keyCode&&t.ctrlKey?e.datepicker._showDatepicker(this):a=!1;a&&(t.preventDefault(),t.stopPropagation())},_doKeyPress:function(t){var i,n,s=e.datepicker._getInst(t.target);if(e.datepicker._get(s,"constrainInput"))return i=e.datepicker._possibleChars(e.datepicker._get(s,"dateFormat")),n=String.fromCharCode(null==t.charCode?t.keyCode:t.charCode),t.ctrlKey||t.metaKey||n<" "||!i||i.indexOf(n)>-1},_doKeyUp:function(t){var i=e.datepicker._getInst(t.target);if(i.input.val()!==i.lastVal)try{e.datepicker.parseDate(e.datepicker._get(i,"dateFormat"),i.input?i.input.val():null,e.datepicker._getFormatConfig(i))&&(e.datepicker._setDateFromField(i),e.datepicker._updateAlternate(i),e.datepicker._updateDatepicker(i))}catch(e){}return!0},_showDatepicker:function(t){var i,n,s,a,o,l,c;"input"!==(t=t.target||t).nodeName.toLowerCase()&&(t=e("input",t.parentNode)[0]),e.datepicker._isDisabledDatepicker(t)||e.datepicker._lastInput===t||(i=e.datepicker._getInst(t),e.datepicker._curInst&&e.datepicker._curInst!==i&&(e.datepicker._curInst.dpDiv.stop(!0,!0),i&&e.datepicker._datepickerShowing&&e.datepicker._hideDatepicker(e.datepicker._curInst.input[0])),!1!==(s=(n=e.datepicker._get(i,"beforeShow"))?n.apply(t,[t,i]):{})&&(r(i.settings,s),i.lastVal=null,e.datepicker._lastInput=t,e.datepicker._setDateFromField(i),e.datepicker._inDialog&&(t.value=""),e.datepicker._pos||(e.datepicker._pos=e.datepicker._findPos(t),e.datepicker._pos[1]+=t.offsetHeight),a=!1,e(t).parents().each(function(){return!(a|="fixed"===e(this).css("position"))}),o={left:e.datepicker._pos[0],top:e.datepicker._pos[1]},e.datepicker._pos=null,i.dpDiv.empty(),i.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),e.datepicker._updateDatepicker(i),o=e.datepicker._checkOffset(i,o,a),i.dpDiv.css({position:e.datepicker._inDialog&&e.blockUI?"static":a?"fixed":"absolute",display:"none",left:o.left+"px",top:o.top+"px"}),i.inline||(l=e.datepicker._get(i,"showAnim"),c=e.datepicker._get(i,"duration"),i.dpDiv.css("z-index",function(e){for(var t,i;e.length&&e[0]!==document;){if(("absolute"===(t=e.css("position"))||"relative"===t||"fixed"===t)&&!isNaN(i=parseInt(e.css("zIndex"),10))&&0!==i)return i;e=e.parent()}return 0}(e(t))+1),e.datepicker._datepickerShowing=!0,e.effects&&e.effects.effect[l]?i.dpDiv.show(l,e.datepicker._get(i,"showOptions"),c):i.dpDiv[l||"show"](l?c:null),e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),e.datepicker._curInst=i)))},_updateDatepicker:function(i){this.maxRows=4,t=i,i.dpDiv.empty().append(this._generateHTML(i)),this._attachHandlers(i);var n,r=this._getNumberOfMonths(i),a=r[1],o=i.dpDiv.find("."+this._dayOverClass+" a"),l=e.datepicker._get(i,"onUpdateDatepicker");o.length>0&&s.apply(o.get(0)),i.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),a>1&&i.dpDiv.addClass("ui-datepicker-multi-"+a).css("width",17*a+"em"),i.dpDiv[(1!==r[0]||1!==r[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),i.dpDiv[(this._get(i,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),i===e.datepicker._curInst&&e.datepicker._datepickerShowing&&e.datepicker._shouldFocusInput(i)&&i.input.trigger("focus"),i.yearshtml&&(n=i.yearshtml,setTimeout(function(){n===i.yearshtml&&i.yearshtml&&i.dpDiv.find("select.ui-datepicker-year").first().replaceWith(i.yearshtml),n=i.yearshtml=null},0)),l&&l.apply(i.input?i.input[0]:null,[i])},_shouldFocusInput:function(e){return e.input&&e.input.is(":visible")&&!e.input.is(":disabled")},_checkOffset:function(t,i,n){var s=t.dpDiv.outerWidth(),r=t.dpDiv.outerHeight(),a=t.input?t.input.outerWidth():0,o=t.input?t.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:e(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:e(document).scrollTop());return i.left-=this._get(t,"isRTL")?s-a:0,i.left-=n&&i.left===t.input.offset().left?e(document).scrollLeft():0,i.top-=n&&i.top===t.input.offset().top+o?e(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&l>s?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+r>c&&c>r?Math.abs(r+o):0),i},_findPos:function(t){for(var i,n=this._getInst(t),s=this._get(n,"isRTL");t&&("hidden"===t.type||1!==t.nodeType||e.expr.pseudos.hidden(t));)t=t[s?"previousSibling":"nextSibling"];return[(i=e(t).offset()).left,i.top]},_hideDatepicker:function(t){var i,n,s,r,a=this._curInst;a&&(!t||a===e.data(t,"datepicker"))&&this._datepickerShowing&&(i=this._get(a,"showAnim"),n=this._get(a,"duration"),s=function(){e.datepicker._tidyDialog(a)},e.effects&&e.effects.effect[i]?a.dpDiv.hide(i,e.datepicker._get(a,"showOptions"),n,s):a.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,s),i||s(),this._datepickerShowing=!1,(r=this._get(a,"onClose"))&&r.apply(a.input?a.input[0]:null,[a.input?a.input.val():"",a]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),e.blockUI&&(e.unblockUI(),e("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(e){e.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(t){if(e.datepicker._curInst){var i=e(t.target),n=e.datepicker._getInst(i[0]);(i[0].id!==e.datepicker._mainDivId&&0===i.parents("#"+e.datepicker._mainDivId).length&&!i.hasClass(e.datepicker.markerClassName)&&!i.closest("."+e.datepicker._triggerClass).length&&e.datepicker._datepickerShowing&&!(e.datepicker._inDialog&&e.blockUI)||i.hasClass(e.datepicker.markerClassName)&&e.datepicker._curInst!==n)&&e.datepicker._hideDatepicker()}},_adjustDate:function(t,i,n){var s=e(t),r=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(r,i,n),this._updateDatepicker(r))},_gotoToday:function(t){var i,n=e(t),s=this._getInst(n[0]);this._get(s,"gotoCurrent")&&s.currentDay?(s.selectedDay=s.currentDay,s.drawMonth=s.selectedMonth=s.currentMonth,s.drawYear=s.selectedYear=s.currentYear):(s.selectedDay=(i=new Date).getDate(),s.drawMonth=s.selectedMonth=i.getMonth(),s.drawYear=s.selectedYear=i.getFullYear()),this._notifyChange(s),this._adjustDate(n)},_selectMonthYear:function(t,i,n){var s=e(t),r=this._getInst(s[0]);r["selected"+("M"===n?"Month":"Year")]=r["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(r),this._adjustDate(s)},_selectDay:function(t,i,n,s){var r,a=e(t);e(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(a[0])||((r=this._getInst(a[0])).selectedDay=r.currentDay=parseInt(e("a",s).attr("data-date")),r.selectedMonth=r.currentMonth=i,r.selectedYear=r.currentYear=n,this._selectDate(t,this._formatDate(r,r.currentDay,r.currentMonth,r.currentYear)))},_clearDate:function(t){var i=e(t);this._selectDate(i,"")},_selectDate:function(t,i){var n,s=e(t),r=this._getInst(s[0]);i=null!=i?i:this._formatDate(r),r.input&&r.input.val(i),this._updateAlternate(r),(n=this._get(r,"onSelect"))?n.apply(r.input?r.input[0]:null,[i,r]):r.input&&r.input.trigger("change"),r.inline?this._updateDatepicker(r):(this._hideDatepicker(),this._lastInput=r.input[0],"object"!=typeof r.input[0]&&r.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(t){var i,n,s,r=this._get(t,"altField");r&&(i=this._get(t,"altFormat")||this._get(t,"dateFormat"),n=this._getDate(t),s=this.formatDate(i,n,this._getFormatConfig(t)),e(document).find(r).val(s))},noWeekends:function(e){var t=e.getDay();return[t>0&&t<6,""]},iso8601Week:function(e){var t,i=new Date(e.getTime());return i.setDate(i.getDate()+4-(i.getDay()||7)),t=i.getTime(),i.setMonth(0),i.setDate(1),Math.floor(Math.round((t-i)/864e5)/7)+1},parseDate:function(t,i,n){if(null==t||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;var s,r,a,o,l=0,c=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff,u="string"!=typeof c?c:new Date().getFullYear()%100+parseInt(c,10),h=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,p=(n?n.dayNames:null)||this._defaults.dayNames,f=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,g=(n?n.monthNames:null)||this._defaults.monthNames,m=-1,v=-1,b=-1,y=-1,w=!1,_=function(e){var i=s+1<t.length&&t.charAt(s+1)===e;return i&&s++,i},x=function(e){var t=_(e),n="@"===e?14:"!"===e?20:"y"===e&&t?4:"o"===e?3:2,s=RegExp("^\\d{"+("y"===e?n:1)+","+n+"}"),r=i.substring(l).match(s);if(!r)throw"Missing number at position "+l;return l+=r[0].length,parseInt(r[0],10)},C=function(t,n,s){var r=-1,a=e.map(_(t)?s:n,function(e,t){return[[t,e]]}).sort(function(e,t){return-(e[1].length-t[1].length)});if(e.each(a,function(e,t){var n=t[1];if(i.substr(l,n.length).toLowerCase()===n.toLowerCase())return r=t[0],l+=n.length,!1}),-1!==r)return r+1;throw"Unknown name at position "+l},T=function(){if(i.charAt(l)!==t.charAt(s))throw"Unexpected literal at position "+l;l++};for(s=0;s<t.length;s++)if(w)"'"!==t.charAt(s)||_("'")?T():w=!1;else switch(t.charAt(s)){case"d":b=x("d");break;case"D":C("D",h,p);break;case"o":y=x("o");break;case"m":v=x("m");break;case"M":v=C("M",f,g);break;case"y":m=x("y");break;case"@":m=(o=new Date(x("@"))).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"!":m=(o=new Date((x("!")-this._ticksTo1970)/1e4)).getFullYear(),v=o.getMonth()+1,b=o.getDate();break;case"'":_("'")?T():w=!0;break;default:T()}if(l<i.length&&(a=i.substr(l),!/^\s+/.test(a)))throw"Extra/unparsed characters found in date: "+a;if(-1===m?m=new Date().getFullYear():m<100&&(m+=new Date().getFullYear()-new Date().getFullYear()%100+(m<=u?0:-100)),y>-1)for(v=1,b=y;!(b<=(r=this._getDaysInMonth(m,v-1)));)v++,b-=r;if((o=this._daylightSavingAdjust(new Date(m,v-1,b))).getFullYear()!==m||o.getMonth()+1!==v||o.getDate()!==b)throw"Invalid date";return o},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*864e9,formatDate:function(e,t,i){if(!t)return"";var n,s=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,r=(i?i.dayNames:null)||this._defaults.dayNames,a=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,o=(i?i.monthNames:null)||this._defaults.monthNames,l=function(t){var i=n+1<e.length&&e.charAt(n+1)===t;return i&&n++,i},c=function(e,t,i){var n=""+t;if(l(e))for(;n.length<i;)n="0"+n;return n},u=function(e,t,i,n){return l(e)?n[t]:i[t]},h="",p=!1;if(t)for(n=0;n<e.length;n++)if(p)"'"!==e.charAt(n)||l("'")?h+=e.charAt(n):p=!1;else switch(e.charAt(n)){case"d":h+=c("d",t.getDate(),2);break;case"D":h+=u("D",t.getDay(),s,r);break;case"o":h+=c("o",Math.round((new Date(t.getFullYear(),t.getMonth(),t.getDate()).getTime()-new Date(t.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=c("m",t.getMonth()+1,2);break;case"M":h+=u("M",t.getMonth(),a,o);break;case"y":h+=l("y")?t.getFullYear():(t.getFullYear()%100<10?"0":"")+t.getFullYear()%100;break;case"@":h+=t.getTime();break;case"!":h+=1e4*t.getTime()+this._ticksTo1970;break;case"'":l("'")?h+="'":p=!0;break;default:h+=e.charAt(n)}return h},_possibleChars:function(e){var t,i="",n=!1,s=function(i){var n=t+1<e.length&&e.charAt(t+1)===i;return n&&t++,n};for(t=0;t<e.length;t++)if(n)"'"!==e.charAt(t)||s("'")?i+=e.charAt(t):n=!1;else switch(e.charAt(t)){case"d":case"m":case"y":case"@":i+="0123456789";break;case"D":case"M":return null;case"'":s("'")?i+="'":n=!0;break;default:i+=e.charAt(t)}return i},_get:function(e,t){return void 0!==e.settings[t]?e.settings[t]:this._defaults[t]},_setDateFromField:function(e,t){if(e.input.val()!==e.lastVal){var i=this._get(e,"dateFormat"),n=e.lastVal=e.input?e.input.val():null,s=this._getDefaultDate(e),r=s,a=this._getFormatConfig(e);try{r=this.parseDate(i,n,a)||s}catch(e){n=t?"":n}e.selectedDay=r.getDate(),e.drawMonth=e.selectedMonth=r.getMonth(),e.drawYear=e.selectedYear=r.getFullYear(),e.currentDay=n?r.getDate():0,e.currentMonth=n?r.getMonth():0,e.currentYear=n?r.getFullYear():0,this._adjustInstDate(e)}},_getDefaultDate:function(e){return this._restrictMinMax(e,this._determineDate(e,this._get(e,"defaultDate"),new Date))},_determineDate:function(t,i,n){var s,r=null==i||""===i?n:"string"==typeof i?function(i){try{return e.datepicker.parseDate(e.datepicker._get(t,"dateFormat"),i,e.datepicker._getFormatConfig(t))}catch(e){}for(var n=(i.toLowerCase().match(/^c/)?e.datepicker._getDate(t):null)||new Date,s=n.getFullYear(),r=n.getMonth(),a=n.getDate(),o=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=o.exec(i);l;){switch(l[2]||"d"){case"d":case"D":a+=parseInt(l[1],10);break;case"w":case"W":a+=7*parseInt(l[1],10);break;case"m":case"M":r+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(s,r));break;case"y":case"Y":s+=parseInt(l[1],10),a=Math.min(a,e.datepicker._getDaysInMonth(s,r))}l=o.exec(i)}return new Date(s,r,a)}(i):"number"==typeof i?isNaN(i)?n:((s=new Date).setDate(s.getDate()+i),s):new Date(i.getTime());return(r=r&&"Invalid Date"===r.toString()?n:r)&&(r.setHours(0),r.setMinutes(0),r.setSeconds(0),r.setMilliseconds(0)),this._daylightSavingAdjust(r)},_daylightSavingAdjust:function(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null},_setDate:function(e,t,i){var n=!t,s=e.selectedMonth,r=e.selectedYear,a=this._restrictMinMax(e,this._determineDate(e,t,new Date));e.selectedDay=e.currentDay=a.getDate(),e.drawMonth=e.selectedMonth=e.currentMonth=a.getMonth(),e.drawYear=e.selectedYear=e.currentYear=a.getFullYear(),s===e.selectedMonth&&r===e.selectedYear||i||this._notifyChange(e),this._adjustInstDate(e),e.input&&e.input.val(n?"":this._formatDate(e))},_getDate:function(e){return!e.currentYear||e.input&&""===e.input.val()?null:this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay))},_attachHandlers:function(t){var i=this._get(t,"stepMonths"),n="#"+t.id.replace(/\\\\/g,"\\");t.dpDiv.find("[data-handler]").map(function(){e(this).on(this.getAttribute("data-event"),{prev:function(){e.datepicker._adjustDate(n,-i,"M")},next:function(){e.datepicker._adjustDate(n,+i,"M")},hide:function(){e.datepicker._hideDatepicker()},today:function(){e.datepicker._gotoToday(n)},selectDay:function(){return e.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return e.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return e.datepicker._selectMonthYear(n,this,"Y"),!1}}[this.getAttribute("data-handler")])})},_generateHTML:function(t){var i,n,s,r,a,o,l,c,u,h,p,f,g,m,v,b,y,w,_,x,C,T,k,E,A,S,D,I,M,N,O,L,P,R,$,j,z,H,F,B=new Date,U=this._daylightSavingAdjust(new Date(B.getFullYear(),B.getMonth(),B.getDate())),W=this._get(t,"isRTL"),V=this._get(t,"showButtonPanel"),Y=this._get(t,"hideIfNoPrevNext"),q=this._get(t,"navigationAsDateFormat"),K=this._getNumberOfMonths(t),Q=this._get(t,"showCurrentAtPos"),G=this._get(t,"stepMonths"),J=1!==K[0]||1!==K[1],Z=this._daylightSavingAdjust(t.currentDay?new Date(t.currentYear,t.currentMonth,t.currentDay):new Date(9999,9,9)),X=this._getMinMaxDate(t,"min"),ee=this._getMinMaxDate(t,"max"),et=t.drawMonth-Q,ei=t.drawYear;if(et<0&&(et+=12,ei--),ee)for(i=this._daylightSavingAdjust(new Date(ee.getFullYear(),ee.getMonth()-K[0]*K[1]+1,ee.getDate())),i=X&&i<X?X:i;this._daylightSavingAdjust(new Date(ei,et,1))>i;)--et<0&&(et=11,ei--);for(t.drawMonth=et,t.drawYear=ei,n=this._get(t,"prevText"),n=q?this.formatDate(n,this._daylightSavingAdjust(new Date(ei,et-G,1)),this._getFormatConfig(t)):n,s=this._canAdjustMonth(t,-1,ei,et)?e("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:n}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"e":"w")).text(n))[0].outerHTML,r=this._get(t,"nextText"),r=q?this.formatDate(r,this._daylightSavingAdjust(new Date(ei,et+G,1)),this._getFormatConfig(t)):r,a=this._canAdjustMonth(t,1,ei,et)?e("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:r}).append(e("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(r))[0].outerHTML:Y?"":e("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:r}).append(e("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(W?"w":"e")).text(r))[0].outerHTML,o=this._get(t,"currentText"),l=this._get(t,"gotoCurrent")&&t.currentDay?Z:U,o=q?this.formatDate(o,l,this._getFormatConfig(t)):o,c="",t.inline||(c=e("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(t,"closeText"))[0].outerHTML),u="",V&&(u=e("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(W?c:"").append(this._isInRange(t,l)?e("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(o):"").append(W?"":c)[0].outerHTML),h=isNaN(h=parseInt(this._get(t,"firstDay"),10))?0:h,p=this._get(t,"showWeek"),f=this._get(t,"dayNames"),g=this._get(t,"dayNamesMin"),m=this._get(t,"monthNames"),v=this._get(t,"monthNamesShort"),b=this._get(t,"beforeShowDay"),y=this._get(t,"showOtherMonths"),w=this._get(t,"selectOtherMonths"),_=this._getDefaultDate(t),x="",T=0;T<K[0];T++){for(E=0,k="",this.maxRows=4;E<K[1];E++){if(A=this._daylightSavingAdjust(new Date(ei,et,t.selectedDay)),S=" ui-corner-all",D="",J){if(D+="<div class='ui-datepicker-group",K[1]>1)switch(E){case 0:D+=" ui-datepicker-group-first",S=" ui-corner-"+(W?"right":"left");break;case K[1]-1:D+=" ui-datepicker-group-last",S=" ui-corner-"+(W?"left":"right");break;default:D+=" ui-datepicker-group-middle",S=""}D+="'>"}for(D+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+S+"'>"+(/all|left/.test(S)&&0===T?W?a:s:"")+(/all|right/.test(S)&&0===T?W?s:a:"")+this._generateMonthYearHeader(t,et,ei,X,ee,T>0||E>0,m,v)+"</div><table class='ui-datepicker-calendar'><thead><tr>",I=p?"<th class='ui-datepicker-week-col'>"+this._get(t,"weekHeader")+"</th>":"",C=0;C<7;C++)M=(C+h)%7,I+="<th scope='col'"+((C+h+6)%7>=5?" class='ui-datepicker-week-end'":"")+"><span title='"+f[M]+"'>"+g[M]+"</span></th>";for(D+=I+"</tr></thead><tbody>",N=this._getDaysInMonth(ei,et),ei===t.selectedYear&&et===t.selectedMonth&&(t.selectedDay=Math.min(t.selectedDay,N)),L=Math.ceil(((O=(this._getFirstDayOfMonth(ei,et)-h+7)%7)+N)/7),P=J&&this.maxRows>L?this.maxRows:L,this.maxRows=P,R=this._daylightSavingAdjust(new Date(ei,et,1-O)),$=0;$<P;$++){for(D+="<tr>",j=p?"<td class='ui-datepicker-week-col'>"+this._get(t,"calculateWeek")(R)+"</td>":"",C=0;C<7;C++)z=b?b.apply(t.input?t.input[0]:null,[R]):[!0,""],F=(H=R.getMonth()!==et)&&!w||!z[0]||X&&R<X||ee&&R>ee,j+="<td class='"+((C+h+6)%7>=5?" ui-datepicker-week-end":"")+(H?" ui-datepicker-other-month":"")+(R.getTime()===A.getTime()&&et===t.selectedMonth&&t._keyEvent||_.getTime()===R.getTime()&&_.getTime()===A.getTime()?" "+this._dayOverClass:"")+(F?" "+this._unselectableClass+" ui-state-disabled":"")+(H&&!y?"":" "+z[1]+(R.getTime()===Z.getTime()?" "+this._currentClass:"")+(R.getTime()===U.getTime()?" ui-datepicker-today":""))+"'"+((!H||y)&&z[2]?" title='"+z[2].replace(/'/g,"&#39;")+"'":"")+(F?"":" data-handler='selectDay' data-event='click' data-month='"+R.getMonth()+"' data-year='"+R.getFullYear()+"'")+">"+(H&&!y?"&#xa0;":F?"<span class='ui-state-default'>"+R.getDate()+"</span>":"<a class='ui-state-default"+(R.getTime()===U.getTime()?" ui-state-highlight":"")+(R.getTime()===Z.getTime()?" ui-state-active":"")+(H?" ui-priority-secondary":"")+"' href='#' aria-current='"+(R.getTime()===Z.getTime()?"true":"false")+"' data-date='"+R.getDate()+"'>"+R.getDate()+"</a>")+"</td>",R.setDate(R.getDate()+1),R=this._daylightSavingAdjust(R);D+=j+"</tr>"}++et>11&&(et=0,ei++),D+="</tbody></table>"+(J?"</div>"+(K[0]>0&&E===K[1]-1?"<div class='ui-datepicker-row-break'></div>":""):""),k+=D}x+=k}return x+=u,t._keyEvent=!1,x},_generateMonthYearHeader:function(e,t,i,n,s,r,a,o){var l,c,u,h,p,f,g,m,v=this._get(e,"changeMonth"),b=this._get(e,"changeYear"),y=this._get(e,"showMonthAfterYear"),w=this._get(e,"selectMonthLabel"),_=this._get(e,"selectYearLabel"),x="<div class='ui-datepicker-title'>",C="";if(r||!v)C+="<span class='ui-datepicker-month'>"+a[t]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,C+="<select class='ui-datepicker-month' aria-label='"+w+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(C+="<option value='"+u+"'"+(u===t?" selected='selected'":"")+">"+o[u]+"</option>");C+="</select>"}if(y||(x+=C+(r||!(v&&b)?"&#xa0;":"")),!e.yearshtml)if(e.yearshtml="",r||!b)x+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(h=this._get(e,"yearRange").split(":"),p=new Date().getFullYear(),m=Math.max(g=(f=function(e){var t=e.match(/c[+\-].*/)?i+parseInt(e.substring(1),10):e.match(/[+\-].*/)?p+parseInt(e,10):parseInt(e,10);return isNaN(t)?p:t})(h[0]),f(h[1]||"")),g=n?Math.max(g,n.getFullYear()):g,m=s?Math.min(m,s.getFullYear()):m,e.yearshtml+="<select class='ui-datepicker-year' aria-label='"+_+"' data-handler='selectYear' data-event='change'>";g<=m;g++)e.yearshtml+="<option value='"+g+"'"+(g===i?" selected='selected'":"")+">"+g+"</option>";e.yearshtml+="</select>",x+=e.yearshtml,e.yearshtml=null}return x+=this._get(e,"yearSuffix"),y&&(x+=(r||!(v&&b)?"&#xa0;":"")+C),x+="</div>"},_adjustInstDate:function(e,t,i){var n=e.selectedYear+("Y"===i?t:0),s=e.selectedMonth+("M"===i?t:0),r=Math.min(e.selectedDay,this._getDaysInMonth(n,s))+("D"===i?t:0),a=this._restrictMinMax(e,this._daylightSavingAdjust(new Date(n,s,r)));e.selectedDay=a.getDate(),e.drawMonth=e.selectedMonth=a.getMonth(),e.drawYear=e.selectedYear=a.getFullYear(),("M"===i||"Y"===i)&&this._notifyChange(e)},_restrictMinMax:function(e,t){var i=this._getMinMaxDate(e,"min"),n=this._getMinMaxDate(e,"max"),s=i&&t<i?i:t;return n&&s>n?n:s},_notifyChange:function(e){var t=this._get(e,"onChangeMonthYear");t&&t.apply(e.input?e.input[0]:null,[e.selectedYear,e.selectedMonth+1,e])},_getNumberOfMonths:function(e){var t=this._get(e,"numberOfMonths");return null==t?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(e,t){return this._determineDate(e,this._get(e,t+"Date"),null)},_getDaysInMonth:function(e,t){return 32-this._daylightSavingAdjust(new Date(e,t,32)).getDate()},_getFirstDayOfMonth:function(e,t){return new Date(e,t,1).getDay()},_canAdjustMonth:function(e,t,i,n){var s=this._getNumberOfMonths(e),r=this._daylightSavingAdjust(new Date(i,n+(t<0?t:s[0]*s[1]),1));return t<0&&r.setDate(this._getDaysInMonth(r.getFullYear(),r.getMonth())),this._isInRange(e,r)},_isInRange:function(e,t){var i,n,s=this._getMinMaxDate(e,"min"),r=this._getMinMaxDate(e,"max"),a=null,o=null,l=this._get(e,"yearRange");return l&&(i=l.split(":"),n=new Date().getFullYear(),a=parseInt(i[0],10),o=parseInt(i[1],10),i[0].match(/[+\-].*/)&&(a+=n),i[1].match(/[+\-].*/)&&(o+=n)),(!s||t.getTime()>=s.getTime())&&(!r||t.getTime()<=r.getTime())&&(!a||t.getFullYear()>=a)&&(!o||t.getFullYear()<=o)},_getFormatConfig:function(e){var t=this._get(e,"shortYearCutoff");return{shortYearCutoff:t="string"!=typeof t?t:new Date().getFullYear()%100+parseInt(t,10),dayNamesShort:this._get(e,"dayNamesShort"),dayNames:this._get(e,"dayNames"),monthNamesShort:this._get(e,"monthNamesShort"),monthNames:this._get(e,"monthNames")}},_formatDate:function(e,t,i,n){t||(e.currentDay=e.selectedDay,e.currentMonth=e.selectedMonth,e.currentYear=e.selectedYear);var s=t?"object"==typeof t?t:this._daylightSavingAdjust(new Date(n,i,t)):this._daylightSavingAdjust(new Date(e.currentYear,e.currentMonth,e.currentDay));return this.formatDate(this._get(e,"dateFormat"),s,this._getFormatConfig(e))}}),e.fn.datepicker=function(t){if(!this.length)return this;e.datepicker.initialized||(e(document).on("mousedown",e.datepicker._checkExternalClick),e.datepicker.initialized=!0),0===e("#"+e.datepicker._mainDivId).length&&e("body").append(e.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof t&&("isDisabled"===t||"getDate"===t||"widget"===t)||"option"===t&&2==arguments.length&&"string"==typeof arguments[1]?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this[0]].concat(i)):this.each(function(){"string"==typeof t?e.datepicker["_"+t+"Datepicker"].apply(e.datepicker,[this].concat(i)):e.datepicker._attachDatepicker(this,t)})},e.datepicker=new i,e.datepicker.initialized=!1,e.datepicker.uuid=new Date().getTime(),e.datepicker.version="1.14.1",e.datepicker})},132:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(228),i(745),i(786),i(41),i(309),i(229)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.widget("ui.draggable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"===this.options.helper&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(e,t){this._super(e,t),"handle"===e&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){if((this.helper||this.element).is(".ui-draggable-dragging")){this.destroyOnClear=!0;return}this._removeHandleClassName(),this._mouseDestroy()},_mouseCapture:function(t){var i=this.options;return!this.helper&&!i.disabled&&!(e(t.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(t),!!this.handle&&(this._blurActiveElement(t),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),!0))},_blockFrames:function(t){this.iframeBlocks=this.document.find(t).map(function(){var t=e(this);return e("<div>").css("position","absolute").appendTo(t.parent()).outerWidth(t.outerWidth()).outerHeight(t.outerHeight()).offset(t.offset())[0]})},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(t){var i=this.document[0].activeElement;e(t.target).closest(i).length||e(i).trigger("blur")},_mouseStart:function(t){var i=this.options;return(this.helper=this._createHelper(t),this._addClass(this.helper,"ui-draggable-dragging"),this._cacheHelperProportions(),e.ui.ddmanager&&(e.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=this.helper.parents().filter(function(){return"fixed"===e(this).css("position")}).length>0,this.positionAbs=this.element.offset(),this._refreshOffsets(t),this.originalPosition=this.position=this._generatePosition(t,!1),this.originalPageX=t.pageX,this.originalPageY=t.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",t))?(this._clear(),!1):(this._cacheHelperProportions(),e.ui.ddmanager&&!i.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this._mouseDrag(t,!0),e.ui.ddmanager&&e.ui.ddmanager.dragStart(this,t),!0)},_refreshOffsets:function(e){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:e.pageX-this.offset.left,top:e.pageY-this.offset.top}},_mouseDrag:function(t,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(t,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",t,n))return this._mouseUp(new e.Event("mouseup",t)),!1;this.position=n.position}return this.helper[0].style.left=this.position.left+"px",this.helper[0].style.top=this.position.top+"px",e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),!1},_mouseStop:function(t){var i=this,n=!1;return e.ui.ddmanager&&!this.options.dropBehaviour&&(n=e.ui.ddmanager.drop(this,t)),this.dropped&&(n=this.dropped,this.dropped=!1),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof this.options.revert&&this.options.revert.call(this.element,n)?e(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){!1!==i._trigger("stop",t)&&i._clear()}):!1!==this._trigger("stop",t)&&this._clear(),!1},_mouseUp:function(t){return this._unblockFrames(),e.ui.ddmanager&&e.ui.ddmanager.dragStop(this,t),this.handleElement.is(t.target)&&this.element.trigger("focus"),e.ui.mouse.prototype._mouseUp.call(this,t)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new e.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(t){return!this.options.handle||!!e(t.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper,s=n?e(i.helper.apply(this.element[0],[t])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return s.parents("body").length||s.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&s[0]===this.element[0]&&this._setPositionRelative(),s[0]===this.element[0]||/(fixed|absolute)/.test(s.css("position"))||s.css("position","absolute"),s},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_isRootNode:function(e){return/(html|body)/i.test(e.tagName)||e===this.document[0]},_getParentOffset:function(){var t=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this._isRootNode(this.offsetParent[0])&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.element.position(),t=this._isRootNode(this.scrollParent[0]);return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+(t?0:this.scrollParent.scrollTop()),left:e.left-(parseInt(this.helper.css("left"),10)||0)+(t?0:this.scrollParent.scrollLeft())}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options,r=this.document[0];if(this.relativeContainer=null,!s.containment){this.containment=null;return}if("window"===s.containment){this.containment=[e(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,e(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,e(window).scrollLeft()+e(window).width()-this.helperProportions.width-this.margins.left,e(window).scrollTop()+(e(window).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if("document"===s.containment){this.containment=[0,0,e(r).width()-this.helperProportions.width-this.margins.left,(e(r).height()||r.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top];return}if(s.containment.constructor===Array){this.containment=s.containment;return}"parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=e(s.containment))[0])&&(t=/(scroll|auto)/.test(i.css("overflow")),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(t?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(t?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relativeContainer=i)},_convertPositionTo:function(e,t){t||(t=this.position);var i="absolute"===e?1:-1,n=this._isRootNode(this.scrollParent[0]);return{top:t.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:n?0:this.offset.scroll.top)*i,left:t.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:n?0:this.offset.scroll.left)*i}},_generatePosition:function(e,t){var i,n,s,r,a=this.options,o=this._isRootNode(this.scrollParent[0]),l=e.pageX,c=e.pageY;return o&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),t&&(this.containment&&(this.relativeContainer?(n=this.relativeContainer.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.left<i[0]&&(l=i[0]+this.offset.click.left),e.pageY-this.offset.click.top<i[1]&&(c=i[1]+this.offset.click.top),e.pageX-this.offset.click.left>i[2]&&(l=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),a.grid&&(s=a.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/a.grid[1])*a.grid[1]:this.originalPageY,c=i?s-this.offset.click.top>=i[1]||s-this.offset.click.top>i[3]?s:s-this.offset.click.top>=i[1]?s-a.grid[1]:s+a.grid[1]:s,r=a.grid[0]?this.originalPageX+Math.round((l-this.originalPageX)/a.grid[0])*a.grid[0]:this.originalPageX,l=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-a.grid[0]:r+a.grid[0]:r),"y"===a.axis&&(l=this.originalPageX),"x"===a.axis&&(c=this.originalPageY)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:o?0:this.offset.scroll.top),left:l-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:o?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(t,i,n){return n=n||this._uiHash(),e.ui.plugin.call(this,t,[i,n,this],!0),/^(drag|start|stop)/.test(t)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),e.Widget.prototype._trigger.call(this,t,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),e.ui.plugin.add("draggable","connectToSortable",{start:function(t,i,n){var s=e.extend({},i,{item:n.element});n.sortables=[],e(n.options.connectToSortable).each(function(){var i=e(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",t,s))})},stop:function(t,i,n){var s=e.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,e.each(n.sortables,function(){this.isOver?(this.isOver=0,n.cancelHelperRemoval=!0,this.cancelHelperRemoval=!1,this._storedCSS={position:this.placeholder.css("position"),top:this.placeholder.css("top"),left:this.placeholder.css("left")},this._mouseStop(t),this.options.helper=this.options._helper):(this.cancelHelperRemoval=!0,this._trigger("deactivate",t,s))})},drag:function(t,i,n){e.each(n.sortables,function(){var s=!1,r=this;r.positionAbs=n.positionAbs,r.helperProportions=n.helperProportions,r.offset.click=n.offset.click,r._intersectsWith(r.containerCache)&&(s=!0,e.each(n.sortables,function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,this!==r&&this._intersectsWith(this.containerCache)&&e.contains(r.element[0],this.element[0])&&(s=!1),s})),s?(r.isOver||(r.isOver=1,n._parent=i.helper.parent(),r.currentItem=i.helper.appendTo(r.element).data("ui-sortable-item",!0),r.options._helper=r.options.helper,r.options.helper=function(){return i.helper[0]},t.target=r.currentItem[0],r._mouseCapture(t,!0),r._mouseStart(t,!0,!0),r.offset.click.top=n.offset.click.top,r.offset.click.left=n.offset.click.left,r.offset.parent.left-=n.offset.parent.left-r.offset.parent.left,r.offset.parent.top-=n.offset.parent.top-r.offset.parent.top,n._trigger("toSortable",t),n.dropped=r.element,e.each(n.sortables,function(){this.refreshPositions()}),n.currentItem=n.element,r.fromOutside=n),r.currentItem&&(r._mouseDrag(t),i.position=r.position)):r.isOver&&(r.isOver=0,r.cancelHelperRemoval=!0,r.options._revert=r.options.revert,r.options.revert=!1,r._trigger("out",t,r._uiHash(r)),r._mouseStop(t,!0),r.options.revert=r.options._revert,r.options.helper=r.options._helper,r.placeholder&&r.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(t),i.position=n._generatePosition(t,!0),n._trigger("fromSortable",t),n.dropped=!1,e.each(n.sortables,function(){this.refreshPositions()}))})}}),e.ui.plugin.add("draggable","cursor",{start:function(t,i,n){var s=e("body"),r=n.options;s.css("cursor")&&(r._cursor=s.css("cursor")),s.css("cursor",r.cursor)},stop:function(t,i,n){var s=n.options;s._cursor&&e("body").css("cursor",s._cursor)}}),e.ui.plugin.add("draggable","opacity",{start:function(t,i,n){var s=e(i.helper),r=n.options;s.css("opacity")&&(r._opacity=s.css("opacity")),s.css("opacity",r.opacity)},stop:function(t,i,n){var s=n.options;s._opacity&&e(i.helper).css("opacity",s._opacity)}}),e.ui.plugin.add("draggable","scroll",{start:function(e,t,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(t,i,n){var s=n.options,r=!1,a=n.scrollParentNotHidden[0],o=n.document[0];a!==o&&"HTML"!==a.tagName?((!s.axis||"x"!==s.axis)&&(n.overflowOffset.top+a.offsetHeight-t.pageY<s.scrollSensitivity?a.scrollTop=r=a.scrollTop+s.scrollSpeed:t.pageY-n.overflowOffset.top<s.scrollSensitivity&&(a.scrollTop=r=a.scrollTop-s.scrollSpeed)),(!s.axis||"y"!==s.axis)&&(n.overflowOffset.left+a.offsetWidth-t.pageX<s.scrollSensitivity?a.scrollLeft=r=a.scrollLeft+s.scrollSpeed:t.pageX-n.overflowOffset.left<s.scrollSensitivity&&(a.scrollLeft=r=a.scrollLeft-s.scrollSpeed))):((!s.axis||"x"!==s.axis)&&(t.pageY-e(o).scrollTop()<s.scrollSensitivity?r=e(o).scrollTop(e(o).scrollTop()-s.scrollSpeed):e(window).height()-(t.pageY-e(o).scrollTop())<s.scrollSensitivity&&(r=e(o).scrollTop(e(o).scrollTop()+s.scrollSpeed))),(!s.axis||"y"!==s.axis)&&(t.pageX-e(o).scrollLeft()<s.scrollSensitivity?r=e(o).scrollLeft(e(o).scrollLeft()-s.scrollSpeed):e(window).width()-(t.pageX-e(o).scrollLeft())<s.scrollSensitivity&&(r=e(o).scrollLeft(e(o).scrollLeft()+s.scrollSpeed)))),!1!==r&&e.ui.ddmanager&&!s.dropBehaviour&&e.ui.ddmanager.prepareOffsets(n,t)}}),e.ui.plugin.add("draggable","snap",{start:function(t,i,n){var s=n.options;n.snapElements=[],e(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each(function(){var t=e(this),i=t.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:t.outerWidth(),height:t.outerHeight(),top:i.top,left:i.left})})},drag:function(t,i,n){var s,r,a,o,l,c,u,h,p,f,g=n.options,m=g.snapTolerance,v=i.offset.left,b=v+n.helperProportions.width,y=i.offset.top,w=y+n.helperProportions.height;for(p=n.snapElements.length-1;p>=0;p--){if(c=(l=n.snapElements[p].left-n.margins.left)+n.snapElements[p].width,h=(u=n.snapElements[p].top-n.margins.top)+n.snapElements[p].height,b<l-m||v>c+m||w<u-m||y>h+m||!e.contains(n.snapElements[p].item.ownerDocument,n.snapElements[p].item)){n.snapElements[p].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=!1;continue}"inner"!==g.snapMode&&(s=Math.abs(u-w)<=m,r=Math.abs(h-y)<=m,a=Math.abs(l-b)<=m,o=Math.abs(c-v)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),f=s||r||a||o,"outer"!==g.snapMode&&(s=Math.abs(u-y)<=m,r=Math.abs(h-w)<=m,a=Math.abs(l-v)<=m,o=Math.abs(c-b)<=m,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),r&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),o&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[p].snapping&&(s||r||a||o||f)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,t,e.extend(n._uiHash(),{snapItem:n.snapElements[p].item})),n.snapElements[p].snapping=s||r||a||o||f}}}),e.ui.plugin.add("draggable","stack",{start:function(t,i,n){var s,r=n.options,a=e.makeArray(e(r.stack)).sort(function(t,i){return(parseInt(e(t).css("zIndex"),10)||0)-(parseInt(e(i).css("zIndex"),10)||0)});a.length&&(s=parseInt(e(a[0]).css("zIndex"),10)||0,e(a).each(function(t){e(this).css("zIndex",s+t)}),this.css("zIndex",s+a.length))}}),e.ui.plugin.add("draggable","zIndex",{start:function(t,i,n){var s=e(i.helper),r=n.options;s.css("zIndex")&&(r._zIndex=s.css("zIndex")),s.css("zIndex",r.zIndex)},stop:function(t,i,n){var s=n.options;s._zIndex&&e(i.helper).css("zIndex",s._zIndex)}}),e.ui.draggable})},228:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(309),i(229)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){"use strict";var t=!1;return e(document).on("mouseup",function(){t=!1}),e.widget("ui.mouse",{version:"1.14.1",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var t=this;this.element.on("mousedown."+this.widgetName,function(e){return t._mouseDown(e)}).on("click."+this.widgetName,function(i){if(!0===e.data(i.target,t.widgetName+".preventClickEvent"))return e.removeData(i.target,t.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1}),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!t){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,s=1===i.which,r="string"==typeof this.options.cancel&&e(i.target).closest(this.options.cancel).length;return!(s&&!r&&this._mouseCapture(i))||((this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout(function(){n.mouseDelayMet=!0},this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted))?(i.preventDefault(),!0):(!0===e.data(i.target,this.widgetName+".preventClickEvent")&&e.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(e){return n._mouseMove(e)},this._mouseUpDelegate=function(e){return n._mouseUp(e)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),t=!0,!0))}},_mouseMove:function(e){if(this._mouseMoved&&!e.which){if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return((e.which||e.button)&&(this._mouseMoved=!0),this._mouseStarted)?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(i){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,i.target===this._mouseDownEvent.target&&e.data(i.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(i)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,t=!1,i.preventDefault()},_mouseDistanceMet:function(e){return Math.max(Math.abs(this._mouseDownEvent.pageX-e.pageX),Math.abs(this._mouseDownEvent.pageY-e.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})})},903:function(e,t,i){var n,s,r;!function(a){"use strict";s=[i(195),i(228),i(745),i(41),i(309),i(229)],void 0===(r="function"==typeof(n=a)?n.apply(t,s):n)||(e.exports=r)}(function(e){return e.widget("ui.sortable",e.ui.mouse,{version:"1.14.1",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_isOverAxis:function(e,t,i){return e>=t&&e<t+i},_isFloating:function(e){return/left|right/.test(e.css("float"))||/inline|table-cell/.test(e.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(e,t){this._super(e,t),"handle"===e&&this._setHandleClassName()},_setHandleClassName:function(){this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),e.each(this.items,function(){(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item).addClass("ui-sortable-handle")})},_destroy:function(){this._mouseDestroy();for(var e=this.items.length-1;e>=0;e--)this.items[e].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(t,i){var n=null,s=!1,r=this;return!this.reverting&&!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(t),e(t.target).parents().each(function(){if(e.data(this,r.widgetName+"-item")===r)return n=e(this),!1}),e.data(t.target,r.widgetName+"-item")===r&&(n=e(t.target)),!!n)&&(!this.options.handle||!!i||(e(this.options.handle,n).find("*").addBack().each(function(){this===t.target&&(s=!0)}),!!s))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0)},_mouseStart:function(t,i,n){var s,r,a=this.options;if(this.currentContainer=this,this.refreshPositions(),this.appendTo=e("parent"!==a.appendTo?a.appendTo:this.currentItem.parent()),this.helper=this._createHelper(t),this._cacheHelperProportions(),this._cacheMargins(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},e.extend(this.offset,{click:{left:t.pageX-this.offset.left,top:t.pageY-this.offset.top},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),a.cursorAt&&this._adjustOffsetFromHelper(a.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),e.extend(this.offset,{parent:this._getParentOffset()}),a.containment&&this._setContainment(),a.cursor&&"auto"!==a.cursor&&(r=this.document.find("body"),this._storedStylesheet=e("<style>*{ cursor: "+a.cursor+" !important; }</style>").appendTo(r)),a.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",a.zIndex)),a.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",a.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",t,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;s>=0;s--)this.containers[s]._trigger("activate",t,this._uiHash(this));return e.ui.ddmanager&&(e.ui.ddmanager.current=this),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(t),this.originalPageX=t.pageX,this.originalPageY=t.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(t),!0},_scroll:function(e){var t=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY<t.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+t.scrollSpeed:e.pageY-this.overflowOffset.top<t.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-t.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-e.pageX<t.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+t.scrollSpeed:e.pageX-this.overflowOffset.left<t.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-t.scrollSpeed)):(e.pageY-this.document.scrollTop()<t.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-t.scrollSpeed):this.window.height()-(e.pageY-this.document.scrollTop())<t.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+t.scrollSpeed)),e.pageX-this.document.scrollLeft()<t.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-t.scrollSpeed):this.window.width()-(e.pageX-this.document.scrollLeft())<t.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+t.scrollSpeed))),i},_mouseDrag:function(t){var i,n,s,r,a=this.options;for(this.position=this._generatePosition(t),this.positionAbs=this._convertPositionTo("absolute"),this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),a.scroll&&!1!==this._scroll(t)&&(this._refreshItemPositions(!0),e.ui.ddmanager&&!a.dropBehaviour&&e.ui.ddmanager.prepareOffsets(this,t)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;i>=0;i--)if((s=(n=this.items[i]).item[0],r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&s!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==s&&!e.contains(this.placeholder[0],s)&&("semi-dynamic"!==this.options.type||!e.contains(this.element[0],s))){if(this.direction=1===r?"down":"up","pointer"===this.options.tolerance||this._intersectsWithSides(n))this._rearrange(t,n);else break;this._trigger("change",t,this._uiHash());break}return this._contactContainers(t),e.ui.ddmanager&&e.ui.ddmanager.drag(this,t),this._trigger("sort",t,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(t,i){if(t){if(e.ui.ddmanager&&!this.options.dropBehaviour&&e.ui.ddmanager.drop(this,t),this.options.revert){var n=this,s=this.placeholder.offset(),r=this.options.axis,a={};r&&"x"!==r||(a.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(a.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,e(this.helper).animate(a,parseInt(this.options.revert,10)||500,function(){n._clear(t)})}else this._clear(t,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp(new e.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var t=this.containers.length-1;t>=0;t--)this.containers[t]._trigger("deactivate",null,this._uiHash(this)),this.containers[t].containerCache.over&&(this.containers[t]._trigger("out",null,this._uiHash(this)),this.containers[t].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),e.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?e(this.domPosition.prev).after(this.currentItem):e(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},e(i).each(function(){var i=(e(t.item||this).attr(t.attribute||"id")||"").match(t.expression||/(.+)[\-=_](.+)/);i&&n.push((t.key||i[1]+"[]")+"="+(t.key&&t.expression?i[1]:i[2]))}),!n.length&&t.key&&n.push(t.key+"="),n.join("&")},toArray:function(t){var i=this._getItemsAsjQuery(t&&t.connected),n=[];return t=t||{},i.each(function(){n.push(e(t.item||this).attr(t.attribute||"id")||"")}),n},_intersectsWith:function(e){var t=this.positionAbs.left,i=t+this.helperProportions.width,n=this.positionAbs.top,s=n+this.helperProportions.height,r=e.left,a=r+e.width,o=e.top,l=o+e.height,c=this.offset.click.top,u=this.offset.click.left,h="x"===this.options.axis||n+c>o&&n+c<l,p="y"===this.options.axis||t+u>r&&t+u<a;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>e[this.floating?"width":"height"]?h&&p:r<t+this.helperProportions.width/2&&i-this.helperProportions.width/2<a&&o<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(e){var t,i,n="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top,e.height),s="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left,e.width);return!!(n&&s)&&(t=this.dragDirection.vertical,i=this.dragDirection.horizontal,this.floating?"right"===i||"down"===t?2:1:t&&("down"===t?2:1))},_intersectsWithSides:function(e){var t=this._isOverAxis(this.positionAbs.top+this.offset.click.top,e.top+e.height/2,e.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,e.left+e.width/2,e.width),n=this.dragDirection.vertical,s=this.dragDirection.horizontal;return this.floating&&s?"right"===s&&i||"left"===s&&!i:n&&("down"===n&&t||"up"===n&&!t)},_getDragVerticalDirection:function(){var e=this.positionAbs.top-this.lastPositionAbs.top;return 0!==e&&(e>0?"down":"up")},_getDragHorizontalDirection:function(){var e=this.positionAbs.left-this.lastPositionAbs.left;return 0!==e&&(e>0?"right":"left")},refresh:function(e){return this._refreshItems(e),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var e=this.options;return e.connectWith.constructor===String?[e.connectWith]:e.connectWith},_getItemsAsjQuery:function(t){var i,n,s,r,a=[],o=[],l=this._connectWith();if(l&&t)for(i=l.length-1;i>=0;i--)for(n=(s=e(l[i],this.document[0])).length-1;n>=0;n--)(r=e.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&o.push(["function"==typeof r.options.items?r.options.items.call(r.element):e(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);function c(){a.push(this)}for(o.push(["function"==typeof this.options.items?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):e(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=o.length-1;i>=0;i--)o[i][0].each(c);return e(a)},_removeCurrentsFromItems:function(){var t=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=e.grep(this.items,function(e){for(var i=0;i<t.length;i++)if(t[i]===e.item[0])return!1;return!0})},_refreshItems:function(t){this.items=[],this.containers=[this];var i,n,s,r,a,o,l,c,u=this.items,h=[["function"==typeof this.options.items?this.options.items.call(this.element[0],t,{item:this.currentItem}):e(this.options.items,this.element),this]],p=this._connectWith();if(p&&this.ready)for(i=p.length-1;i>=0;i--)for(n=(s=e(p[i],this.document[0])).length-1;n>=0;n--)(r=e.data(s[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(h.push(["function"==typeof r.options.items?r.options.items.call(r.element[0],t,{item:this.currentItem}):e(r.options.items,r.element),r]),this.containers.push(r));for(i=h.length-1;i>=0;i--)for(n=0,a=h[i][1],c=(o=h[i][0]).length;n<c;n++)(l=e(o[n])).data(this.widgetName+"-item",a),u.push({item:l,instance:a,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(t){var i,n,s,r;for(i=this.items.length-1;i>=0;i--)n=this.items[i],this.currentContainer&&n.instance!==this.currentContainer&&n.item[0]!==this.currentItem[0]||(s=this.options.toleranceElement?e(this.options.toleranceElement,n.item):n.item,t||(n.width=s.outerWidth(),n.height=s.outerHeight()),n.left=(r=s.offset()).left,n.top=r.top)},refreshPositions:function(e){var t,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(e),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(t=this.containers.length-1;t>=0;t--)i=this.containers[t].element.offset(),this.containers[t].containerCache.left=i.left,this.containers[t].containerCache.top=i.top,this.containers[t].containerCache.width=this.containers[t].element.outerWidth(),this.containers[t].containerCache.height=this.containers[t].element.outerHeight();return this},_createPlaceholder:function(t){var i,n,s=(t=t||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=t.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=e("<"+n+">",t.document[0]);return t._addClass(s,"ui-sortable-placeholder",i||t.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?t._createTrPlaceholder(t.currentItem.find("tr").eq(0),e("<tr>",t.document[0]).appendTo(s)):"tr"===n?t._createTrPlaceholder(t.currentItem,s):"img"===n&&s.attr("src",t.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(e,r){(!i||s.forcePlaceholderSize)&&((!r.height()||s.forcePlaceholderSize&&("tbody"===n||"tr"===n))&&r.height(t.currentItem.innerHeight()-parseInt(t.currentItem.css("paddingTop")||0,10)-parseInt(t.currentItem.css("paddingBottom")||0,10)),r.width()||r.width(t.currentItem.innerWidth()-parseInt(t.currentItem.css("paddingLeft")||0,10)-parseInt(t.currentItem.css("paddingRight")||0,10)))}}),t.placeholder=e(s.placeholder.element.call(t.element,t.currentItem)),t.currentItem.after(t.placeholder),s.placeholder.update(t,t.placeholder)},_createTrPlaceholder:function(t,i){var n=this;t.children().each(function(){e("<td>&#160;</td>",n.document[0]).attr("colspan",e(this).attr("colspan")||1).appendTo(i)})},_contactContainers:function(t){var i,n,s,r,a,o,l,c,u,h,p=null,f=null;for(i=this.containers.length-1;i>=0;i--)if(!e.contains(this.currentItem[0],this.containers[i].element[0]))if(this._intersectsWith(this.containers[i].containerCache)){if(p&&e.contains(this.containers[i].element[0],p.element[0]))continue;p=this.containers[i],f=i}else this.containers[i].containerCache.over&&(this.containers[i]._trigger("out",t,this._uiHash(this)),this.containers[i].containerCache.over=0);if(p)if(1===this.containers.length)this.containers[f].containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1);else{for(s=1e4,r=null,a=(u=p.floating||this._isFloating(this.currentItem))?"left":"top",o=u?"width":"height",h=u?"pageX":"pageY",n=this.items.length-1;n>=0;n--)e.contains(this.containers[f].element[0],this.items[n].item[0])&&this.items[n].item[0]!==this.currentItem[0]&&(l=this.items[n].item.offset()[a],c=!1,t[h]-l>this.items[n][o]/2&&(c=!0),Math.abs(t[h]-l)<s&&(s=Math.abs(t[h]-l),r=this.items[n],this.direction=c?"up":"down"));if(!r&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[f]){this.currentContainer.containerCache.over||(this.containers[f]._trigger("over",t,this._uiHash()),this.currentContainer.containerCache.over=1);return}r?this._rearrange(t,r,null,!0):this._rearrange(t,null,this.containers[f].element,!0),this._trigger("change",t,this._uiHash()),this.containers[f]._trigger("change",t,this._uiHash(this)),this.currentContainer=this.containers[f],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[f]._trigger("over",t,this._uiHash(this)),this.containers[f].containerCache.over=1}},_createHelper:function(t){var i=this.options,n="function"==typeof i.helper?e(i.helper.apply(this.element[0],[t,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||this.appendTo[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),Array.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var t=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])&&(t.left+=this.scrollParent.scrollLeft(),t.top+=this.scrollParent.scrollTop()),this.offsetParent[0]===this.document[0].body&&(t={top:0,left:0}),{top:t.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:t.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"!==this.cssPosition)return{top:0,left:0};var e=this.currentItem.position();return{top:e.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:e.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var t,i,n,s=this.options;"parent"===s.containment&&(s.containment=this.helper[0].parentNode),("document"===s.containment||"window"===s.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===s.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===s.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(s.containment)||(t=e(s.containment)[0],i=e(s.containment).offset(),n="hidden"!==e(t).css("overflow"),this.containment=[i.left+(parseInt(e(t).css("borderLeftWidth"),10)||0)+(parseInt(e(t).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(e(t).css("borderTopWidth"),10)||0)+(parseInt(e(t).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(t.scrollWidth,t.offsetWidth):t.offsetWidth)-(parseInt(e(t).css("borderLeftWidth"),10)||0)-(parseInt(e(t).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(t.scrollHeight,t.offsetHeight):t.offsetHeight)-(parseInt(e(t).css("borderTopWidth"),10)||0)-(parseInt(e(t).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(t,i){i||(i=this.position);var n="absolute"===t?1:-1,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:s.scrollLeft())*n}},_generatePosition:function(t){var i,n,s=this.options,r=t.pageX,a=t.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&e.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,l=/(html|body)/i.test(o[0].tagName);return"relative"===this.cssPosition&&(this.scrollParent[0]===this.document[0]||this.scrollParent[0]===this.offsetParent[0])&&(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(t.pageX-this.offset.click.left<this.containment[0]&&(r=this.containment[0]+this.offset.click.left),t.pageY-this.offset.click.top<this.containment[1]&&(a=this.containment[1]+this.offset.click.top),t.pageX-this.offset.click.left>this.containment[2]&&(r=this.containment[2]+this.offset.click.left),t.pageY-this.offset.click.top>this.containment[3]&&(a=this.containment[3]+this.offset.click.top)),s.grid&&(i=this.originalPageY+Math.round((a-this.originalPageY)/s.grid[1])*s.grid[1],a=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-s.grid[1]:i+s.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/s.grid[0])*s.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-s.grid[0]:n+s.grid[0]:n)),{top:a-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():l?0:o.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():l?0:o.scrollLeft())}},_rearrange:function(e,t,i,n){i?i[0].appendChild(this.placeholder[0]):t.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?t.item[0]:t.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var s=this.counter;this._delay(function(){s===this.counter&&this.refreshPositions(!n)})},_clear:function(e,t){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(e,t,i){return function(n){i._trigger(e,n,t._uiHash(t))}}for(this.fromOutside&&!t&&n.push(function(e){this._trigger("receive",e,this._uiHash(this.fromOutside))}),(this.fromOutside||this.domPosition.prev!==this.currentItem.prev().not(".ui-sortable-helper")[0]||this.domPosition.parent!==this.currentItem.parent()[0])&&!t&&n.push(function(e){this._trigger("update",e,this._uiHash())}),this===this.currentContainer||t||(n.push(function(e){this._trigger("remove",e,this._uiHash())}),n.push((function(e){return function(t){e._trigger("receive",t,this._uiHash(this))}}).call(this,this.currentContainer)),n.push((function(e){return function(t){e._trigger("update",t,this._uiHash(this))}}).call(this,this.currentContainer))),i=this.containers.length-1;i>=0;i--)t||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",this,this.containers[i])),this.containers[i].containerCache.over=0);if(this._storedStylesheet&&(this._storedStylesheet.remove(),this._storedStylesheet=null),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,t||this._trigger("beforeStop",e,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!t){for(i=0;i<n.length;i++)n[i].call(this,e);this._trigger("stop",e,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_trigger:function(){!1===e.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(t){var i=t||this;return{helper:i.helper,placeholder:i.placeholder||e([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:t?t.element:null}}})})},841:function(){var e=jQuery;function t(e){this.num=0,this.timer=e>0&&e}function i(i){if(e.isPlainObject(i.data)||Array.isArray(i.data)||"string"==typeof i.data){var s,r=i.handler,a={timer:700,combo:[]};"string"==typeof(s=i.data)?a.combo=[s]:Array.isArray(s)?a.combo=s:e.extend(a,s),a.combo=e.map(a.combo,function(e){return e.toLowerCase()}),i.index=new t(a.timer),i.handler=function(t){if(!(this!==t.target&&(/textarea|select|input/i.test(t.target.nodeName)||"true"===e(t.target).prop("contenteditable")))){var s="keypress"!==t.type?e.hotkeys.specialKeys[t.which]:null,o=String.fromCharCode(t.which).toLowerCase(),l="",c={};t.altKey&&"alt"!==s&&(l+="alt+"),t.ctrlKey&&"ctrl"!==s&&(l+="ctrl+"),t.metaKey&&!t.ctrlKey&&"meta"!==s&&(l+="meta+"),t.shiftKey&&"shift"!==s&&(l+="shift+"),t.metaKey&&"["===o&&(o=null),s&&(c[l+s]=!0),o&&(c[l+o]=!0),/shift+/.test(l)&&(c[l.replace("shift+","")+e.hotkeys.shiftNums[s||o]]=!0);var u=i.index,h=a.combo;if(n(h[u.val()],c))if(u.val()===h.length-1)return u.reset(),r.apply(this,arguments);else u.inc();else u.reset(),n(h[0],c)&&u.inc()}}}}function n(e,t){for(var i=e.split(" "),n=0,s=i.length;n<s;n++)if(t[i[n]])return!0;return!1}e.hotkeys={version:"0.8",specialKeys:{8:"backspace",9:"tab",13:"return",16:"shift",17:"ctrl",18:"alt",19:"pause",20:"capslock",27:"esc",32:"space",33:"pageup",34:"pagedown",35:"end",36:"home",37:"left",38:"up",39:"right",40:"down",45:"insert",46:"del",91:"meta",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9",106:"*",107:"+",109:"-",110:".",111:"/",112:"f1",113:"f2",114:"f3",115:"f4",116:"f5",117:"f6",118:"f7",119:"f8",120:"f9",121:"f10",122:"f11",123:"f12",144:"numlock",145:"scroll",188:",",190:".",191:"/",224:"meta",219:"[",221:"]"},keypressKeys:["<",">","?"],shiftNums:{"`":"~",1:"!",2:"@",3:"#",4:"$",5:"%",6:"^",7:"&",8:"*",9:"(",0:")","-":"_","=":"+",";":":","'":'"',",":"<",".":">","/":"?","\\":"|"}},e.each(e.hotkeys.keypressKeys,function(t,i){e.hotkeys.shiftNums[i]=i}),t.prototype.val=function(){return this.num},t.prototype.inc=function(){this.timer&&(clearTimeout(this.timeout),this.timeout=setTimeout(e.proxy(t.prototype.reset,this),this.timer)),this.num++},t.prototype.reset=function(){this.timer&&clearTimeout(this.timeout),this.num=0},e.each(["keydown","keyup","keypress"],function(){e.event.special[this]={add:i}})},217:function(){var e;void 0===(e=jQuery).fn.each2&&e.extend(e.fn,{each2:function(t){for(var i=e([0]),n=-1,s=this.length;++n<s&&(i.context=i[0]=this[n])&&!1!==t.call(i[0],n,i););return this}}),function(e,t){"use strict";if(window.Select2===t){var i,n,s,r,a,o,l,c,u={x:0,y:0},h={TAB:9,ENTER:13,ESC:27,SPACE:32,LEFT:37,UP:38,RIGHT:39,DOWN:40,SHIFT:16,CTRL:17,ALT:18,PAGE_UP:33,PAGE_DOWN:34,HOME:36,END:35,BACKSPACE:8,DELETE:46,isArrow:function(e){switch(e=e.which?e.which:e){case h.LEFT:case h.RIGHT:case h.UP:case h.DOWN:return!0}return!1},isControl:function(e){switch(e.which){case h.SHIFT:case h.CTRL:case h.ALT:return!0}return!!e.metaKey},isFunctionKey:function(e){return(e=e.which?e.which:e)>=112&&e<=123}},p={"Ⓐ":"A",A:"A",À:"A",Á:"A",Â:"A",Ầ:"A",Ấ:"A",Ẫ:"A",Ẩ:"A",Ã:"A",Ā:"A",Ă:"A",Ằ:"A",Ắ:"A",Ẵ:"A",Ẳ:"A",Ȧ:"A",Ǡ:"A",Ä:"A",Ǟ:"A",Ả:"A",Å:"A",Ǻ:"A",Ǎ:"A",Ȁ:"A",Ȃ:"A",Ạ:"A",Ậ:"A",Ặ:"A",Ḁ:"A",Ą:"A",Ⱥ:"A",Ɐ:"A",Ꜳ:"AA",Æ:"AE",Ǽ:"AE",Ǣ:"AE",Ꜵ:"AO",Ꜷ:"AU",Ꜹ:"AV",Ꜻ:"AV",Ꜽ:"AY","Ⓑ":"B",B:"B",Ḃ:"B",Ḅ:"B",Ḇ:"B",Ƀ:"B",Ƃ:"B",Ɓ:"B","Ⓒ":"C",C:"C",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",Ç:"C",Ḉ:"C",Ƈ:"C",Ȼ:"C",Ꜿ:"C","Ⓓ":"D",D:"D",Ḋ:"D",Ď:"D",Ḍ:"D",Ḑ:"D",Ḓ:"D",Ḏ:"D",Đ:"D",Ƌ:"D",Ɗ:"D",Ɖ:"D",Ꝺ:"D",DZ:"DZ",DŽ:"DZ",Dz:"Dz",Dž:"Dz","Ⓔ":"E",E:"E",È:"E",É:"E",Ê:"E",Ề:"E",Ế:"E",Ễ:"E",Ể:"E",Ẽ:"E",Ē:"E",Ḕ:"E",Ḗ:"E",Ĕ:"E",Ė:"E",Ë:"E",Ẻ:"E",Ě:"E",Ȅ:"E",Ȇ:"E",Ẹ:"E",Ệ:"E",Ȩ:"E",Ḝ:"E",Ę:"E",Ḙ:"E",Ḛ:"E",Ɛ:"E",Ǝ:"E","Ⓕ":"F",F:"F",Ḟ:"F",Ƒ:"F",Ꝼ:"F","Ⓖ":"G",G:"G",Ǵ:"G",Ĝ:"G",Ḡ:"G",Ğ:"G",Ġ:"G",Ǧ:"G",Ģ:"G",Ǥ:"G",Ɠ:"G",Ꞡ:"G",Ᵹ:"G",Ꝿ:"G","Ⓗ":"H",H:"H",Ĥ:"H",Ḣ:"H",Ḧ:"H",Ȟ:"H",Ḥ:"H",Ḩ:"H",Ḫ:"H",Ħ:"H",Ⱨ:"H",Ⱶ:"H",Ɥ:"H","Ⓘ":"I",I:"I",Ì:"I",Í:"I",Î:"I",Ĩ:"I",Ī:"I",Ĭ:"I",İ:"I",Ï:"I",Ḯ:"I",Ỉ:"I",Ǐ:"I",Ȉ:"I",Ȋ:"I",Ị:"I",Į:"I",Ḭ:"I",Ɨ:"I","Ⓙ":"J",J:"J",Ĵ:"J",Ɉ:"J","Ⓚ":"K",K:"K",Ḱ:"K",Ǩ:"K",Ḳ:"K",Ķ:"K",Ḵ:"K",Ƙ:"K",Ⱪ:"K",Ꝁ:"K",Ꝃ:"K",Ꝅ:"K",Ꞣ:"K","Ⓛ":"L",L:"L",Ŀ:"L",Ĺ:"L",Ľ:"L",Ḷ:"L",Ḹ:"L",Ļ:"L",Ḽ:"L",Ḻ:"L",Ł:"L",Ƚ:"L",Ɫ:"L",Ⱡ:"L",Ꝉ:"L",Ꝇ:"L",Ꞁ:"L",LJ:"LJ",Lj:"Lj","Ⓜ":"M",M:"M",Ḿ:"M",Ṁ:"M",Ṃ:"M",Ɱ:"M",Ɯ:"M","Ⓝ":"N",N:"N",Ǹ:"N",Ń:"N",Ñ:"N",Ṅ:"N",Ň:"N",Ṇ:"N",Ņ:"N",Ṋ:"N",Ṉ:"N",Ƞ:"N",Ɲ:"N",Ꞑ:"N",Ꞥ:"N",NJ:"NJ",Nj:"Nj","Ⓞ":"O",O:"O",Ò:"O",Ó:"O",Ô:"O",Ồ:"O",Ố:"O",Ỗ:"O",Ổ:"O",Õ:"O",Ṍ:"O",Ȭ:"O",Ṏ:"O",Ō:"O",Ṑ:"O",Ṓ:"O",Ŏ:"O",Ȯ:"O",Ȱ:"O",Ö:"O",Ȫ:"O",Ỏ:"O",Ő:"O",Ǒ:"O",Ȍ:"O",Ȏ:"O",Ơ:"O",Ờ:"O",Ớ:"O",Ỡ:"O",Ở:"O",Ợ:"O",Ọ:"O",Ộ:"O",Ǫ:"O",Ǭ:"O",Ø:"O",Ǿ:"O",Ɔ:"O",Ɵ:"O",Ꝋ:"O",Ꝍ:"O",Ƣ:"OI",Ꝏ:"OO",Ȣ:"OU","Ⓟ":"P",P:"P",Ṕ:"P",Ṗ:"P",Ƥ:"P",Ᵽ:"P",Ꝑ:"P",Ꝓ:"P",Ꝕ:"P","Ⓠ":"Q",Q:"Q",Ꝗ:"Q",Ꝙ:"Q",Ɋ:"Q","Ⓡ":"R",R:"R",Ŕ:"R",Ṙ:"R",Ř:"R",Ȑ:"R",Ȓ:"R",Ṛ:"R",Ṝ:"R",Ŗ:"R",Ṟ:"R",Ɍ:"R",Ɽ:"R",Ꝛ:"R",Ꞧ:"R",Ꞃ:"R","Ⓢ":"S",S:"S",ẞ:"S",Ś:"S",Ṥ:"S",Ŝ:"S",Ṡ:"S",Š:"S",Ṧ:"S",Ṣ:"S",Ṩ:"S",Ș:"S",Ş:"S",Ȿ:"S",Ꞩ:"S",Ꞅ:"S","Ⓣ":"T",T:"T",Ṫ:"T",Ť:"T",Ṭ:"T",Ț:"T",Ţ:"T",Ṱ:"T",Ṯ:"T",Ŧ:"T",Ƭ:"T",Ʈ:"T",Ⱦ:"T",Ꞇ:"T",Ꜩ:"TZ","Ⓤ":"U",U:"U",Ù:"U",Ú:"U",Û:"U",Ũ:"U",Ṹ:"U",Ū:"U",Ṻ:"U",Ŭ:"U",Ü:"U",Ǜ:"U",Ǘ:"U",Ǖ:"U",Ǚ:"U",Ủ:"U",Ů:"U",Ű:"U",Ǔ:"U",Ȕ:"U",Ȗ:"U",Ư:"U",Ừ:"U",Ứ:"U",Ữ:"U",Ử:"U",Ự:"U",Ụ:"U",Ṳ:"U",Ų:"U",Ṷ:"U",Ṵ:"U",Ʉ:"U","Ⓥ":"V",V:"V",Ṽ:"V",Ṿ:"V",Ʋ:"V",Ꝟ:"V",Ʌ:"V",Ꝡ:"VY","Ⓦ":"W",W:"W",Ẁ:"W",Ẃ:"W",Ŵ:"W",Ẇ:"W",Ẅ:"W",Ẉ:"W",Ⱳ:"W","Ⓧ":"X",X:"X",Ẋ:"X",Ẍ:"X","Ⓨ":"Y",Y:"Y",Ỳ:"Y",Ý:"Y",Ŷ:"Y",Ỹ:"Y",Ȳ:"Y",Ẏ:"Y",Ÿ:"Y",Ỷ:"Y",Ỵ:"Y",Ƴ:"Y",Ɏ:"Y",Ỿ:"Y","Ⓩ":"Z",Z:"Z",Ź:"Z",Ẑ:"Z",Ż:"Z",Ž:"Z",Ẓ:"Z",Ẕ:"Z",Ƶ:"Z",Ȥ:"Z",Ɀ:"Z",Ⱬ:"Z",Ꝣ:"Z","ⓐ":"a",a:"a",ẚ:"a",à:"a",á:"a",â:"a",ầ:"a",ấ:"a",ẫ:"a",ẩ:"a",ã:"a",ā:"a",ă:"a",ằ:"a",ắ:"a",ẵ:"a",ẳ:"a",ȧ:"a",ǡ:"a",ä:"a",ǟ:"a",ả:"a",å:"a",ǻ:"a",ǎ:"a",ȁ:"a",ȃ:"a",ạ:"a",ậ:"a",ặ:"a",ḁ:"a",ą:"a",ⱥ:"a",ɐ:"a",ꜳ:"aa",æ:"ae",ǽ:"ae",ǣ:"ae",ꜵ:"ao",ꜷ:"au",ꜹ:"av",ꜻ:"av",ꜽ:"ay","ⓑ":"b",b:"b",ḃ:"b",ḅ:"b",ḇ:"b",ƀ:"b",ƃ:"b",ɓ:"b","ⓒ":"c",c:"c",ć:"c",ĉ:"c",ċ:"c",č:"c",ç:"c",ḉ:"c",ƈ:"c",ȼ:"c",ꜿ:"c",ↄ:"c","ⓓ":"d",d:"d",ḋ:"d",ď:"d",ḍ:"d",ḑ:"d",ḓ:"d",ḏ:"d",đ:"d",ƌ:"d",ɖ:"d",ɗ:"d",ꝺ:"d",dz:"dz",dž:"dz","ⓔ":"e",e:"e",è:"e",é:"e",ê:"e",ề:"e",ế:"e",ễ:"e",ể:"e",ẽ:"e",ē:"e",ḕ:"e",ḗ:"e",ĕ:"e",ė:"e",ë:"e",ẻ:"e",ě:"e",ȅ:"e",ȇ:"e",ẹ:"e",ệ:"e",ȩ:"e",ḝ:"e",ę:"e",ḙ:"e",ḛ:"e",ɇ:"e",ɛ:"e",ǝ:"e","ⓕ":"f",f:"f",ḟ:"f",ƒ:"f",ꝼ:"f","ⓖ":"g",g:"g",ǵ:"g",ĝ:"g",ḡ:"g",ğ:"g",ġ:"g",ǧ:"g",ģ:"g",ǥ:"g",ɠ:"g",ꞡ:"g",ᵹ:"g",ꝿ:"g","ⓗ":"h",h:"h",ĥ:"h",ḣ:"h",ḧ:"h",ȟ:"h",ḥ:"h",ḩ:"h",ḫ:"h",ẖ:"h",ħ:"h",ⱨ:"h",ⱶ:"h",ɥ:"h",ƕ:"hv","ⓘ":"i",i:"i",ì:"i",í:"i",î:"i",ĩ:"i",ī:"i",ĭ:"i",ï:"i",ḯ:"i",ỉ:"i",ǐ:"i",ȉ:"i",ȋ:"i",ị:"i",į:"i",ḭ:"i",ɨ:"i",ı:"i","ⓙ":"j",j:"j",ĵ:"j",ǰ:"j",ɉ:"j","ⓚ":"k",k:"k",ḱ:"k",ǩ:"k",ḳ:"k",ķ:"k",ḵ:"k",ƙ:"k",ⱪ:"k",ꝁ:"k",ꝃ:"k",ꝅ:"k",ꞣ:"k","ⓛ":"l",l:"l",ŀ:"l",ĺ:"l",ľ:"l",ḷ:"l",ḹ:"l",ļ:"l",ḽ:"l",ḻ:"l",ſ:"l",ł:"l",ƚ:"l",ɫ:"l",ⱡ:"l",ꝉ:"l",ꞁ:"l",ꝇ:"l",lj:"lj","ⓜ":"m",m:"m",ḿ:"m",ṁ:"m",ṃ:"m",ɱ:"m",ɯ:"m","ⓝ":"n",n:"n",ǹ:"n",ń:"n",ñ:"n",ṅ:"n",ň:"n",ṇ:"n",ņ:"n",ṋ:"n",ṉ:"n",ƞ:"n",ɲ:"n",ʼn:"n",ꞑ:"n",ꞥ:"n",nj:"nj","ⓞ":"o",o:"o",ò:"o",ó:"o",ô:"o",ồ:"o",ố:"o",ỗ:"o",ổ:"o",õ:"o",ṍ:"o",ȭ:"o",ṏ:"o",ō:"o",ṑ:"o",ṓ:"o",ŏ:"o",ȯ:"o",ȱ:"o",ö:"o",ȫ:"o",ỏ:"o",ő:"o",ǒ:"o",ȍ:"o",ȏ:"o",ơ:"o",ờ:"o",ớ:"o",ỡ:"o",ở:"o",ợ:"o",ọ:"o",ộ:"o",ǫ:"o",ǭ:"o",ø:"o",ǿ:"o",ɔ:"o",ꝋ:"o",ꝍ:"o",ɵ:"o",ƣ:"oi",ȣ:"ou",ꝏ:"oo","ⓟ":"p",p:"p",ṕ:"p",ṗ:"p",ƥ:"p",ᵽ:"p",ꝑ:"p",ꝓ:"p",ꝕ:"p","ⓠ":"q",q:"q",ɋ:"q",ꝗ:"q",ꝙ:"q","ⓡ":"r",r:"r",ŕ:"r",ṙ:"r",ř:"r",ȑ:"r",ȓ:"r",ṛ:"r",ṝ:"r",ŗ:"r",ṟ:"r",ɍ:"r",ɽ:"r",ꝛ:"r",ꞧ:"r",ꞃ:"r","ⓢ":"s",s:"s",ß:"s",ś:"s",ṥ:"s",ŝ:"s",ṡ:"s",š:"s",ṧ:"s",ṣ:"s",ṩ:"s",ș:"s",ş:"s",ȿ:"s",ꞩ:"s",ꞅ:"s",ẛ:"s","ⓣ":"t",t:"t",ṫ:"t",ẗ:"t",ť:"t",ṭ:"t",ț:"t",ţ:"t",ṱ:"t",ṯ:"t",ŧ:"t",ƭ:"t",ʈ:"t",ⱦ:"t",ꞇ:"t",ꜩ:"tz","ⓤ":"u",u:"u",ù:"u",ú:"u",û:"u",ũ:"u",ṹ:"u",ū:"u",ṻ:"u",ŭ:"u",ü:"u",ǜ:"u",ǘ:"u",ǖ:"u",ǚ:"u",ủ:"u",ů:"u",ű:"u",ǔ:"u",ȕ:"u",ȗ:"u",ư:"u",ừ:"u",ứ:"u",ữ:"u",ử:"u",ự:"u",ụ:"u",ṳ:"u",ų:"u",ṷ:"u",ṵ:"u",ʉ:"u","ⓥ":"v",v:"v",ṽ:"v",ṿ:"v",ʋ:"v",ꝟ:"v",ʌ:"v",ꝡ:"vy","ⓦ":"w",w:"w",ẁ:"w",ẃ:"w",ŵ:"w",ẇ:"w",ẅ:"w",ẘ:"w",ẉ:"w",ⱳ:"w","ⓧ":"x",x:"x",ẋ:"x",ẍ:"x","ⓨ":"y",y:"y",ỳ:"y",ý:"y",ŷ:"y",ỹ:"y",ȳ:"y",ẏ:"y",ÿ:"y",ỷ:"y",ẙ:"y",ỵ:"y",ƴ:"y",ɏ:"y",ỿ:"y","ⓩ":"z",z:"z",ź:"z",ẑ:"z",ż:"z",ž:"z",ẓ:"z",ẕ:"z",ƶ:"z",ȥ:"z",ɀ:"z",ⱬ:"z",ꝣ:"z",Ά:"Α",Έ:"Ε",Ή:"Η",Ί:"Ι",Ϊ:"Ι",Ό:"Ο",Ύ:"Υ",Ϋ:"Υ",Ώ:"Ω",ά:"α",έ:"ε",ή:"η",ί:"ι",ϊ:"ι",ΐ:"ι",ό:"ο",ύ:"υ",ϋ:"υ",ΰ:"υ",ω:"ω",ς:"σ"};l=e(document),i=1,a=function(){return i++},n=N(Object,{bind:function(e){var t=this;return function(){e.apply(t,arguments)}},init:function(i){var n,s,r,o,l,h,p,f=".select2-results";this.opts=i=this.prepareOpts(i),this.id=i.id,i.element.data("select2")!==t&&null!==i.element.data("select2")&&i.element.data("select2").destroy(),this.container=this.createContainer(),this.liveRegion=e(".select2-hidden-accessible"),0==this.liveRegion.length&&(this.liveRegion=e("<span>",{role:"status","aria-live":"polite"}).addClass("select2-hidden-accessible").appendTo(document.body)),this.containerId="s2id_"+(i.element.attr("id")||"autogen"+a()),this.containerEventName=this.containerId.replace(/([.])/g,"_").replace(/([;&,\-\.\+\*\~':"\!\^#$%@\[\]\(\)=>\|])/g,"\\$1"),this.container.attr("id",this.containerId),this.container.attr("title",i.element.attr("title")),this.body=e(document.body),C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.attr("style",i.element.attr("style")),this.container.css(I(i.containerCss,this.opts.element)),this.container.addClass(I(i.containerCssClass,this.opts.element)),this.elementTabIndex=this.opts.element.attr("tabindex"),this.opts.element.data("select2",this).attr("tabindex","-1").before(this.container).on("click.select2",x),this.container.data("select2",this),this.dropdown=this.container.find(".select2-drop"),C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(i.dropdownCssClass,this.opts.element)),this.dropdown.data("select2",this),this.dropdown.on("click",x),this.results=h=this.container.find(f),this.search=p=this.container.find("input.select2-input"),this.queryCount=0,this.resultsPage=0,this.context=null,this.initContainer(),this.container.on("click",x),this.results.on("mousemove",function(i){(t===u||u.x!==i.pageX||u.y!==i.pageY)&&e(i.target).trigger("mousemove-filtered",i)}),this.dropdown.on("mousemove-filtered",f,this.bind(this.highlightUnderEvent)),this.dropdown.on("touchstart touchmove touchend",f,this.bind(function(e){this._touchEvent=!0,this.highlightUnderEvent(e)})),this.dropdown.on("touchmove",f,this.bind(this.touchMoved)),this.dropdown.on("touchstart touchend",f,this.bind(this.clearTouchMoved)),this.dropdown.on("click",this.bind(function(e){this._touchEvent&&(this._touchEvent=!1,this.selectHighlighted())})),n=80,s=this.results,r=_(80,function(e){s.trigger("scroll-debounced",e)}),s.on("scroll",function(e){m(e.target,s.get())>=0&&r(e)}),this.dropdown.on("scroll-debounced",f,this.bind(this.loadMoreIfNeeded)),e(this.container).on("change",".select2-input",function(e){e.stopPropagation()}),e(this.dropdown).on("change",".select2-input",function(e){e.stopPropagation()}),e.fn.mousewheel&&h.mousewheel(function(e,t,i,n){var s=h.scrollTop();n>0&&s-n<=0?(h.scrollTop(0),x(e)):n<0&&h.get(0).scrollHeight-h.scrollTop()+n<=h.height()&&(h.scrollTop(h.get(0).scrollHeight-h.height()),x(e))}),w(p),p.on("keyup-change input paste",this.bind(this.updateResults)),p.on("focus",function(){p.addClass("select2-focused")}),p.on("blur",function(){p.removeClass("select2-focused")}),this.dropdown.on("mouseup",f,this.bind(function(t){e(t.target).closest(".select2-result-selectable").length>0&&(this.highlightUnderEvent(t),this.selectHighlighted(t))})),this.dropdown.on("click mouseup mousedown touchstart touchend focusin",function(e){e.stopPropagation()}),this.lastSearchTerm=t,"function"==typeof this.opts.initSelection&&(this.initSelection(),this.monitorSource()),null!==i.maximumInputLength&&this.search.attr("maxlength",i.maximumInputLength);var g=i.element.prop("disabled");t===g&&(g=!1),this.enable(!g);var v=i.element.prop("readonly");t===v&&(v=!1),this.readonly(v),c=c||((o=e("<div class='select2-measure-scrollbar'></div>")).appendTo(document.body),l={width:o.width()-o[0].clientWidth,height:o.height()-o[0].clientHeight},o.remove(),l),this.autofocus=i.element.prop("autofocus"),i.element.prop("autofocus",!1),this.autofocus&&this.focus(),this.search.attr("placeholder",i.searchInputPlaceholder)},destroy:function(){var e=this.opts.element,i=e.data("select2"),n=this;this.close(),e.length&&e[0].detachEvent&&n._sync&&e.each(function(){n._sync&&this.detachEvent("onpropertychange",n._sync)}),this.propertyObserver&&(this.propertyObserver.disconnect(),this.propertyObserver=null),this._sync=null,t!==i&&(i.container.remove(),i.liveRegion.remove(),i.dropdown.remove(),e.removeData("select2").off(".select2"),e.is("input[type='hidden']")?e.css("display",""):(e.show().prop("autofocus",this.autofocus||!1),this.elementTabIndex?e.attr({tabindex:this.elementTabIndex}):e.removeAttr("tabindex"),e.show())),M.call(this,"container","liveRegion","dropdown","results","search")},optionToData:function(e){return e.is("option")?{id:e.prop("value"),text:e.text(),element:e.get(),css:e.attr("class"),disabled:e.prop("disabled"),locked:v(e.attr("locked"),"locked")||v(e.data("locked"),!0)}:e.is("optgroup")?{text:e.attr("label"),children:[],element:e.get(),css:e.attr("class")}:void 0},prepareOpts:function(i){var n,s,r,o,l=this;if("select"===(n=i.element).get(0).tagName.toLowerCase()&&(this.select=s=i.element),s&&e.each(["id","multiple","ajax","query","createSearchChoice","initSelection","data","tags"],function(){if(this in i)throw Error("Option '"+this+"' is not allowed for Select2 when attached to a <select> element.")}),i.debug=i.debug||e.fn.select2.defaults.debug,i.debug&&console&&console.warn&&(null!=i.id&&console.warn("Select2: The `id` option has been removed in Select2 4.0.0, consider renaming your `id` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.text&&console.warn("Select2: The `text` option has been removed in Select2 4.0.0, consider renaming your `text` property or mapping the property before your data makes it to Select2. You can read more at https://select2.github.io/announcements-4.0.html#changed-id"),null!=i.sortResults&&console.warn("Select2: the `sortResults` option has been renamed to `sorter` in Select2 4.0.0. "),null!=i.selectOnBlur&&console.warn("Select2: The `selectOnBlur` option has been renamed to `selectOnClose` in Select2 4.0.0."),null!=i.ajax&&null!=i.ajax.results&&console.warn("Select2: The `ajax.results` option has been renamed to `ajax.processResults` in Select2 4.0.0."),null!=i.formatNoResults&&console.warn("Select2: The `formatNoResults` option has been renamed to `language.noResults` in Select2 4.0.0."),null!=i.formatSearching&&console.warn("Select2: The `formatSearching` option has been renamed to `language.searching` in Select2 4.0.0."),null!=i.formatInputTooShort&&console.warn("Select2: The `formatInputTooShort` option has been renamed to `language.inputTooShort` in Select2 4.0.0."),null!=i.formatInputTooLong&&console.warn("Select2: The `formatInputTooLong` option has been renamed to `language.inputTooLong` in Select2 4.0.0."),null!=i.formatLoading&&console.warn("Select2: The `formatLoading` option has been renamed to `language.loadingMore` in Select2 4.0.0."),null!=i.formatSelectionTooBig&&console.warn("Select2: The `formatSelectionTooBig` option has been renamed to `language.maximumSelected` in Select2 4.0.0."),i.element.data("select2Tags")&&console.warn("Select2: The `data-select2-tags` attribute has been renamed to `data-tags` in Select2 4.0.0.")),null!=i.element.data("tags")){var c=i.element.data("tags");Array.isArray(c)||(c=[]),i.element.data("select2Tags",c)}if(null!=i.sorter&&(i.sortResults=i.sorter),null!=i.selectOnClose&&(i.selectOnBlur=i.selectOnClose),null!=i.ajax&&"function"==typeof i.ajax.processResults&&(i.ajax.results=i.ajax.processResults),null!=i.language){var u=i.language;"function"==typeof u.noMatches&&(i.formatNoMatches=u.noMatches),"function"==typeof u.searching&&(i.formatSearching=u.searching),"function"==typeof u.inputTooShort&&(i.formatInputTooShort=u.inputTooShort),"function"==typeof u.inputTooLong&&(i.formatInputTooLong=u.inputTooLong),"function"==typeof u.loadingMore&&(i.formatLoading=u.loadingMore),"function"==typeof u.maximumSelected&&(i.formatSelectionTooBig=u.maximumSelected)}if("function"!=typeof(i=e.extend({},{populateResults:function(n,s,r){var o,c=this.opts.id,u=this.liveRegion;(o=function(n,s,h){n=i.sortResults(n,s,r);var p,f,g,m,v,b,y,w,_,x,C=[];for(p=0,f=n.length;p<f;p+=1)m=!(v=!0===(g=n[p]).disabled)&&c(g)!==t,b=g.children&&g.children.length>0,(y=e("<li></li>")).addClass("select2-results-dept-"+h),y.addClass("select2-result"),y.addClass(m?"select2-result-selectable":"select2-result-unselectable"),v&&y.addClass("select2-disabled"),b&&y.addClass("select2-result-with-children"),y.addClass(l.opts.formatResultCssClass(g)),y.attr("role","presentation"),(w=e(document.createElement("div"))).addClass("select2-result-label"),w.attr("id","select2-result-label-"+a()),w.attr("role","option"),t!==(x=i.formatResult(g,w,r,l.opts.escapeMarkup))&&(w.html(x),y.append(w)),b&&((_=e("<ul></ul>")).addClass("select2-result-sub"),o(g.children,_,h+1),y.append(_)),y.data("select2-data",g),C.push(y[0]);s.append(C),u.text(i.formatMatches(n.length))})(s,n,0)}},e.fn.select2.defaults,i)).id&&(r=i.id,i.id=function(e){return e[r]}),Array.isArray(i.element.data("select2Tags"))){if("tags"in i)throw"tags specified as both an attribute 'data-select2-tags' and in options of Select2 "+i.element.attr("id");i.tags=i.element.data("select2Tags")}if(s?(i.query=this.bind(function(e){var i,s,r,a={results:[],more:!1},o=e.term;r=function(t,i){var n;t.is("option")?e.matcher(o,t.text(),t)&&i.push(l.optionToData(t)):t.is("optgroup")&&(n=l.optionToData(t),t.children().each2(function(e,t){r(t,n.children)}),n.children.length>0&&i.push(n))},i=n.children(),this.getPlaceholder()!==t&&i.length>0&&(s=this.getPlaceholderOption())&&(i=i.not(s)),i.each2(function(e,t){r(t,a.results)}),e.callback(a)}),i.id=function(e){return e.id}):!("query"in i)&&("ajax"in i?((o=i.element.data("ajax-url"))&&o.length>0&&(i.ajax.url=o),i.query=E.call(i.element,i.ajax)):"data"in i?i.query=A(i.data):"tags"in i&&(i.query=S(i.tags),i.createSearchChoice===t&&(i.createSearchChoice=function(e){return{id:null==e?"":e.trim(),text:null==e?"":e.trim()}}),i.initSelection===t&&(i.initSelection=function(t,n){var s=[];e(b(t.val(),i.separator,i.transformVal)).each(function(){var t={id:this,text:this},n=i.tags;"function"==typeof n&&(n=n()),e(n).each(function(){if(v(this.id,t.id))return t=this,!1}),s.push(t)}),n(s)}))),"function"!=typeof i.query)throw"query function not defined for Select2 "+i.element.attr("id");if("top"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.unshift(t)};else if("bottom"===i.createSearchChoicePosition)i.createSearchChoicePosition=function(e,t){e.push(t)};else if("function"!=typeof i.createSearchChoicePosition)throw"invalid createSearchChoicePosition option must be 'top', 'bottom' or a custom function";return i},monitorSource:function(){var i,n=this.opts.element,s=this;n.on("change.select2",this.bind(function(e){!0!==this.opts.element.data("select2-change-triggered")&&this.initSelection()})),this._sync=this.bind(function(){var e=n.prop("disabled");t===e&&(e=!1),this.enable(!e);var i=n.prop("readonly");t===i&&(i=!1),this.readonly(i),this.container&&(C(this.container,this.opts.element,this.opts.adaptContainerCssClass),this.container.addClass(I(this.opts.containerCssClass,this.opts.element))),this.dropdown&&(C(this.dropdown,this.opts.element,this.opts.adaptDropdownCssClass),this.dropdown.addClass(I(this.opts.dropdownCssClass,this.opts.element)))}),n.length&&n[0].attachEvent&&n.each(function(){this.attachEvent("onpropertychange",s._sync)}),t!==(i=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)&&(this.propertyObserver&&(delete this.propertyObserver,this.propertyObserver=null),this.propertyObserver=new i(function(t){e.each(t,s._sync)}),this.propertyObserver.observe(n.get(0),{attributes:!0,subtree:!1}))},triggerSelect:function(t){var i=e.Event("select2-selecting",{val:this.id(t),object:t,choice:t});return this.opts.element.trigger(i),!i.isDefaultPrevented()},triggerChange:function(t){t=t||{},t=e.extend({},t,{type:"change",val:this.val()}),this.opts.element.data("select2-change-triggered",!0),this.opts.element.trigger(t),this.opts.element.data("select2-change-triggered",!1),this.opts.element.click(),this.opts.blurOnChange&&this.opts.element.blur()},isInterfaceEnabled:function(){return!0===this.enabledInterface},enableInterface:function(){var e=this._enabled&&!this._readonly;return e!==this.enabledInterface&&(this.container.toggleClass("select2-container-disabled",!e),this.close(),this.enabledInterface=e,!0)},enable:function(e){t===e&&(e=!0),this._enabled!==e&&(this._enabled=e,this.opts.element.prop("disabled",!e),this.enableInterface())},disable:function(){this.enable(!1)},readonly:function(e){t===e&&(e=!1),this._readonly!==e&&(this._readonly=e,this.opts.element.prop("readonly",e),this.enableInterface())},opened:function(){return!!this.container&&this.container.hasClass("select2-dropdown-open")},positionDropdown:function(){var t,i,n,s,r,a=this.dropdown,o=this.container,l=o.offset(),u=o.outerHeight(!1),h=o.outerWidth(!1),p=a.outerHeight(!1),f=e(window),g=f.width(),m=f.height(),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,_=y+p<=b,x=l.top-p>=f.scrollTop(),C=a.outerWidth(!1);a.hasClass("select2-drop-above")?(i=!0,!x&&_&&(n=!0,i=!1)):(i=!1,!_&&x&&(n=!0,i=!0)),n&&(a.hide(),l=this.container.offset(),u=this.container.outerHeight(!1),h=this.container.outerWidth(!1),p=a.outerHeight(!1),v=f.scrollLeft()+g,b=f.scrollTop()+m,y=l.top+u,w=l.left,C=a.outerWidth(!1),a.show(),this.focusSearch()),this.opts.dropdownAutoWidth?(r=e(".select2-results",a)[0],a.addClass("select2-drop-auto-width"),a.css("width",""),(C=a.outerWidth(!1)+(r.scrollHeight===r.clientHeight?0:c.width))>h?h=C:C=h,p=a.outerHeight(!1)):this.container.removeClass("select2-drop-auto-width"),"static"!==this.body.css("position")&&(y-=(t=this.body.offset()).top,w-=t.left),!(w+C<=v)&&l.left+v+o.outerWidth(!1)>C&&(w=l.left+this.container.outerWidth(!1)-C),s={left:w,width:h},i?(this.container.addClass("select2-drop-above"),a.addClass("select2-drop-above"),p=a.outerHeight(!1),s.top=l.top-p,s.bottom="auto"):(s.top=y,s.bottom="auto",this.container.removeClass("select2-drop-above"),a.removeClass("select2-drop-above")),s=e.extend(s,I(this.opts.dropdownCss,this.opts.element)),a.css(s)},shouldOpen:function(){var t;return!this.opened()&&!1!==this._enabled&&!0!==this._readonly&&(t=e.Event("select2-opening"),this.opts.element.trigger(t),!t.isDefaultPrevented())},clearDropdownAlignmentPreference:function(){this.container.removeClass("select2-drop-above"),this.dropdown.removeClass("select2-drop-above")},open:function(){return!!this.shouldOpen()&&(this.opening(),l.on("mousemove.select2Event",function(e){u.x=e.pageX,u.y=e.pageY}),!0)},opening:function(){var t,i=this.containerEventName,n="scroll."+i,s="resize."+i,r="orientationchange."+i;this.container.addClass("select2-dropdown-open").addClass("select2-container-active"),this.clearDropdownAlignmentPreference(),this.dropdown[0]!==this.body.children().last()[0]&&this.dropdown.detach().appendTo(this.body),0===(t=e("#select2-drop-mask")).length&&((t=e(document.createElement("div"))).attr("id","select2-drop-mask").attr("class","select2-drop-mask"),t.hide(),t.appendTo(this.body),t.on("mousedown touchstart click",function(i){f(t);var n,s=e("#select2-drop");s.length>0&&((n=s.data("select2")).opts.selectOnBlur&&n.selectHighlighted({noFocus:!0}),n.close(),i.preventDefault(),i.stopPropagation())})),this.dropdown.prev()[0]!==t[0]&&this.dropdown.before(t),e("#select2-drop").removeAttr("id"),this.dropdown.attr("id","select2-drop"),t.show(),this.positionDropdown(),this.dropdown.show(),this.positionDropdown(),this.dropdown.addClass("select2-drop-active");var a=this;this.container.parents().add(window).each(function(){e(this).on(s+" "+n+" "+r,function(e){a.opened()&&a.positionDropdown()})})},close:function(){if(this.opened()){var t=this.containerEventName,i="scroll."+t,n="resize."+t,s="orientationchange."+t;this.container.parents().add(window).each(function(){e(this).off(i).off(n).off(s)}),this.clearDropdownAlignmentPreference(),e("#select2-drop-mask").hide(),this.dropdown.removeAttr("id"),this.dropdown.hide(),this.container.removeClass("select2-dropdown-open").removeClass("select2-container-active"),this.results.empty(),l.off("mousemove.select2Event"),this.clearSearch(),this.search.removeClass("select2-active"),this.search.removeAttr("aria-activedescendant"),this.opts.element.trigger(e.Event("select2-close"))}},externalSearch:function(e){this.open(),this.search.val(e),this.updateResults(!1)},clearSearch:function(){},prefillNextSearchTerm:function(){if(""!==this.search.val())return!1;var e=this.opts.nextSearchTerm(this.data(),this.lastSearchTerm);return t!==e&&(this.search.val(e),this.search.select(),!0)},getMaximumSelectionSize:function(){return I(this.opts.maximumSelectionSize,this.opts.element)},ensureHighlightVisible:function(){var t,i,n,s,r,a,o,l,c=this.results;if(!((i=this.highlight())<0)){if(0==i)return void c.scrollTop(0);s=(l=((n=e((t=this.findHighlightableChoices().find(".select2-result-label"))[i])).offset()||{}).top||0)+n.outerHeight(!0),i===t.length-1&&(o=c.find("li.select2-more-results")).length>0&&(s=o.offset().top+o.outerHeight(!0)),s>(r=c.offset().top+c.outerHeight(!1))&&c.scrollTop(c.scrollTop()+(s-r)),(a=l-c.offset().top)<0&&"none"!=n.css("display")&&c.scrollTop(c.scrollTop()+a)}},findHighlightableChoices:function(){return this.results.find(".select2-result-selectable:not(.select2-disabled):not(.select2-selected)")},moveHighlight:function(t){for(var i=this.findHighlightableChoices(),n=this.highlight();n>-1&&n<i.length;){var s=e(i[n+=t]);if(s.hasClass("select2-result-selectable")&&!s.hasClass("select2-disabled")&&!s.hasClass("select2-selected")){this.highlight(n);break}}},highlight:function(t){var i,n,s=this.findHighlightableChoices();if(0==arguments.length)return m(s.filter(".select2-highlighted")[0],s.get());t>=s.length&&(t=s.length-1),t<0&&(t=0),this.removeHighlight(),(i=e(s[t])).addClass("select2-highlighted"),this.search.attr("aria-activedescendant",i.find(".select2-result-label").attr("id")),this.ensureHighlightVisible(),this.liveRegion.text(i.text()),(n=i.data("select2-data"))&&this.opts.element.trigger({type:"select2-highlight",val:this.id(n),choice:n})},removeHighlight:function(){this.results.find(".select2-highlighted").removeClass("select2-highlighted")},touchMoved:function(){this._touchMoved=!0},clearTouchMoved:function(){this._touchMoved=!1},countSelectableResults:function(){return this.findHighlightableChoices().length},highlightUnderEvent:function(t){var i=e(t.target).closest(".select2-result-selectable");if(i.length>0&&!i.is(".select2-highlighted")){var n=this.findHighlightableChoices();this.highlight(n.index(i))}else 0==i.length&&this.removeHighlight()},loadMoreIfNeeded:function(){var e=this.results,t=e.find("li.select2-more-results"),i=this.resultsPage+1,n=this,s=this.search.val(),r=this.context;0!==t.length&&t.offset().top-e.offset().top-e.height()<=this.opts.loadMorePadding&&(t.addClass("select2-active"),this.opts.query({element:this.opts.element,term:s,page:i,context:r,matcher:this.opts.matcher,callback:this.bind(function(a){n.opened()&&(n.opts.populateResults.call(this,e,a.results,{term:s,page:i,context:r}),n.postprocessResults(a,!1,!1),!0===a.more?(t.detach().appendTo(e).html(n.opts.escapeMarkup(I(n.opts.formatLoadMore,n.opts.element,i+1))),window.setTimeout(function(){n.loadMoreIfNeeded()},10)):t.remove(),n.positionDropdown(),n.resultsPage=i,n.context=a.context,this.opts.element.trigger({type:"select2-loaded",items:a}))})}))},tokenize:function(){},updateResults:function(i){var n,s,r,a=this.search,o=this.results,l=this.opts,c=this,u=a.val(),h=e.data(this.container,"select2-last-term");if(!(!0!==i&&h&&v(u,h))&&(e.data(this.container,"select2-last-term",u),!0===i||!1!==this.showSearchInput&&this.opened())){r=++this.queryCount;var p=this.getMaximumSelectionSize();if(p>=1&&Array.isArray(n=this.data())&&n.length>=p&&D(l.formatSelectionTooBig,"formatSelectionTooBig"))return void g("<li class='select2-selection-limit'>"+I(l.formatSelectionTooBig,l.element,p)+"</li>");if(a.val().length<l.minimumInputLength){D(l.formatInputTooShort,"formatInputTooShort")?g("<li class='select2-no-results'>"+I(l.formatInputTooShort,l.element,a.val(),l.minimumInputLength)+"</li>"):g(""),i&&this.showSearch&&this.showSearch(!0);return}if(l.maximumInputLength&&a.val().length>l.maximumInputLength)return void(D(l.formatInputTooLong,"formatInputTooLong")?g("<li class='select2-no-results'>"+I(l.formatInputTooLong,l.element,a.val(),l.maximumInputLength)+"</li>"):g(""));l.formatSearching&&0===this.findHighlightableChoices().length&&g("<li class='select2-searching'>"+I(l.formatSearching,l.element)+"</li>"),a.addClass("select2-active"),this.removeHighlight(),t!=(s=this.tokenize())&&null!=s&&a.val(s),this.resultsPage=1,l.query({element:l.element,term:a.val(),page:this.resultsPage,context:null,matcher:l.matcher,callback:this.bind(function(n){var s;if(r==this.queryCount){if(!this.opened())return void this.search.removeClass("select2-active");if(n.hasError!==t&&D(l.formatAjaxError,"formatAjaxError"))return void g("<li class='select2-ajax-error'>"+I(l.formatAjaxError,l.element,n.jqXHR,n.textStatus,n.errorThrown)+"</li>");if(this.context=n.context===t?null:n.context,this.opts.createSearchChoice&&""!==a.val()&&null!=(s=this.opts.createSearchChoice.call(c,a.val(),n.results))&&c.id(s)!==t&&null!==c.id(s)&&0===e(n.results).filter(function(){return v(c.id(this),c.id(s))}).length&&this.opts.createSearchChoicePosition(n.results,s),0===n.results.length&&D(l.formatNoMatches,"formatNoMatches")){g("<li class='select2-no-results'>"+I(l.formatNoMatches,l.element,a.val())+"</li>"),this.showSearch&&this.showSearch(a.val());return}o.empty(),c.opts.populateResults.call(this,o,n.results,{term:a.val(),page:this.resultsPage,context:null}),!0===n.more&&D(l.formatLoadMore,"formatLoadMore")&&(o.append("<li class='select2-more-results'>"+l.escapeMarkup(I(l.formatLoadMore,l.element,this.resultsPage))+"</li>"),window.setTimeout(function(){c.loadMoreIfNeeded()},10)),this.postprocessResults(n,i),f(),this.opts.element.trigger({type:"select2-loaded",items:n})}})})}function f(){a.removeClass("select2-active"),c.positionDropdown(),o.find(".select2-no-results,.select2-selection-limit,.select2-searching").length?c.liveRegion.text(o.text()):c.liveRegion.text(c.opts.formatMatches(o.find('.select2-result-selectable:not(".select2-selected")').length))}function g(e){o.html(e),f()}},cancel:function(){this.close()},blur:function(){this.opts.selectOnBlur&&this.selectHighlighted({noFocus:!0}),this.close(),this.container.removeClass("select2-container-active"),this.search[0]===document.activeElement&&this.search.blur(),this.clearSearch(),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus")},focusSearch:function(){var e;(e=this.search)[0]!==document.activeElement&&window.setTimeout(function(){var t,i=e[0],n=e.val().length;e.focus(),(i.offsetWidth>0||i.offsetHeight>0)&&i===document.activeElement&&(i.setSelectionRange?i.setSelectionRange(n,n):i.createTextRange&&((t=i.createTextRange()).collapse(!1),t.select()))},0)},selectHighlighted:function(e){if(this._touchMoved)return void this.clearTouchMoved();var t=this.highlight(),i=this.results.find(".select2-highlighted").closest(".select2-result").data("select2-data");i?(this.highlight(t),this.onSelect(i,e)):e&&e.noFocus&&this.close()},getPlaceholder:function(){var e;return this.opts.element.attr("placeholder")||this.opts.element.attr("data-placeholder")||this.opts.element.data("placeholder")||this.opts.placeholder||((e=this.getPlaceholderOption())!==t?e.text():t)},getPlaceholderOption:function(){if(this.select){var e=this.select.children("option").first();if(this.opts.placeholderOption!==t)return"first"===this.opts.placeholderOption&&e||"function"==typeof this.opts.placeholderOption&&this.opts.placeholderOption(this.select);if(null==e.text()?"":""===e.text().trim()&&""===e.val())return e}},initContainerWidth:function(){var e=(function(){var e,t,i,n,s;if("off"===this.opts.width)return null;if("element"===this.opts.width)return 0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px";if("copy"===this.opts.width||"resolve"===this.opts.width){if("string"==typeof(e=this.opts.element.attr("style"))){for(n=0,s=(t=e.split(";")).length;n<s;n+=1)if(null!==(i=t[n].replace(/\s/g,"").match(/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i))&&i.length>=1)return i[1]}return"resolve"===this.opts.width?(e=this.opts.element.css("width")).indexOf("%")>0?e:0===this.opts.element.outerWidth(!1)?"auto":this.opts.element.outerWidth(!1)+"px":null}if("function"==typeof this.opts.width)return this.opts.width();return this.opts.width}).call(this);null!==e&&this.container.css("width",e)}}),s=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container"}).html("<a role='button' class='select2-choice' tabindex='-1'> <span class='select2-chosen'>&#160;</span><abbr class='select2-search-choice-close'></abbr> <span class='select2-arrow' role='presentation'><b role='presentation'></b></span></a><label for='' class='select2-offscreen'></label><input class='select2-focusser select2-offscreen' type='text' aria-haspopup='true' role='button' /><div class='select2-drop select2-display-none'> <div class='select2-search'> <label for='' class='select2-offscreen'></label> <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input' role='combobox' aria-expanded='true' aria-autocomplete='list' /> </div> <ul class='select2-results' role='listbox'> </ul></div>")},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.focusser.prop("disabled",!this.isInterfaceEnabled())},opening:function(){var t,i,n;this.opts.minimumResultsForSearch>=0&&this.showSearch(!0),this.parent.opening.apply(this,arguments),!1!==this.showSearchInput&&this.search.val(this.focusser.val()),this.opts.shouldFocusInput(this)&&(this.search.focus(),(t=this.search.get(0)).createTextRange?((i=t.createTextRange()).collapse(!1),i.select()):t.setSelectionRange&&(n=this.search.val().length,t.setSelectionRange(n,n))),this.prefillNextSearchTerm(),this.focusser.prop("disabled",!0).val(""),this.updateResults(!0),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&(this.parent.close.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},focus:function(){this.opened()?this.close():(this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus())},isFocused:function(){return this.container.hasClass("select2-container-active")},cancel:function(){this.parent.cancel.apply(this,arguments),this.focusser.prop("disabled",!1),this.opts.shouldFocusInput(this)&&this.focusser.focus()},destroy:function(){e("label[for='"+this.focusser.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"selection","focusser")},initContainer:function(){var t,i,n=this.container,s=this.dropdown,r=a();this.opts.minimumResultsForSearch<0?this.showSearch(!1):this.showSearch(!0),this.selection=t=n.find(".select2-choice"),this.focusser=n.find(".select2-focusser"),t.find(".select2-chosen").attr("id","select2-chosen-"+r),this.focusser.attr("aria-labelledby","select2-chosen-"+r),this.results.attr("id","select2-results-"+r),this.search.attr("aria-owns","select2-results-"+r),this.focusser.attr("id","s2id_autogen"+r),i=e("label[for='"+this.opts.element.attr("id")+"']"),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.focusser.prev().text(i.text()).attr("for",this.focusser.attr("id"));var o=this.opts.element.attr("title");this.opts.element.attr("title",o||i.text()),this.focusser.attr("tabindex",this.elementTabIndex),this.search.attr("id",this.focusser.attr("id")+"_search"),this.search.prev().text(e("label[for='"+this.focusser.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.search.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&229!=e.keyCode){if(e.which===h.PAGE_UP||e.which===h.PAGE_DOWN)return void x(e);switch(e.which){case h.UP:case h.DOWN:this.moveHighlight(e.which===h.UP?-1:1),x(e);return;case h.ENTER:this.selectHighlighted(),x(e);return;case h.TAB:this.selectHighlighted({noFocus:!0});return;case h.ESC:this.cancel(e),x(e);return}}})),this.search.on("blur",this.bind(function(e){document.activeElement===this.body.get(0)&&window.setTimeout(this.bind(function(){this.opened()&&this.results&&this.results.length>1&&this.search.focus()}),0)})),this.focusser.on("keydown",this.bind(function(e){if(this.isInterfaceEnabled()&&!(e.which===h.TAB||h.isControl(e)||h.isFunctionKey(e))&&e.which!==h.ESC){if(!1===this.opts.openOnEnter&&e.which===h.ENTER)return void x(e);if(e.which==h.DOWN||e.which==h.UP||e.which==h.ENTER&&this.opts.openOnEnter){if(e.altKey||e.ctrlKey||e.shiftKey||e.metaKey)return;this.open(),x(e);return}if(e.which==h.DELETE||e.which==h.BACKSPACE){this.opts.allowClear&&this.clear(),x(e);return}}})),w(this.focusser),this.focusser.on("keyup-change input",this.bind(function(e){this.opts.minimumResultsForSearch>=0&&(e.stopPropagation(),this.opened()||this.open())})),t.on("mousedown touchstart","abbr",this.bind(function(e){var t;this.isInterfaceEnabled()&&(this.clear(),(t=e).preventDefault(),t.stopImmediatePropagation(),this.close(),this.selection&&this.selection.focus())})),t.on("mousedown touchstart",this.bind(function(i){f(t),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.opened()?this.close():this.isInterfaceEnabled()&&this.open(),x(i)})),s.on("mousedown touchstart",this.bind(function(){this.opts.shouldFocusInput(this)&&this.search.focus()})),t.on("focus",this.bind(function(e){x(e)})),this.focusser.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})).on("blur",this.bind(function(){this.opened()||(this.container.removeClass("select2-container-active"),this.opts.element.trigger(e.Event("select2-blur")))})),this.search.on("focus",this.bind(function(){this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active")})),this.initContainerWidth(),this.opts.element.hide(),this.setPlaceholder()},clear:function(t){var i=this.selection.data("select2-data");if(i){var n=e.Event("select2-clearing");if(this.opts.element.trigger(n),n.isDefaultPrevented())return;var s=this.getPlaceholderOption();this.opts.element.val(s?s.val():""),this.selection.find(".select2-chosen").empty(),this.selection.removeData("select2-data"),this.setPlaceholder(),!1!==t&&(this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}))}},initSelection:function(){if(this.isPlaceholderOptionSelected())this.updateSelection(null),this.close(),this.setPlaceholder();else{var e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.setPlaceholder(),e.lastSearchTerm=e.search.val())})}},isPlaceholderOptionSelected:function(){var e;return this.getPlaceholder()!==t&&((e=this.getPlaceholderOption())!==t&&e.prop("selected")||""===this.opts.element.val()||this.opts.element.val()===t||null===this.opts.element.val())},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=e.find("option").filter(function(){return this.selected&&!this.disabled});t(i.optionToData(n))}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=i.val(),r=null;t.query({matcher:function(e,i,n){var a=v(s,t.id(n));return a&&(r=n),a},callback:"function"!=typeof n?e.noop:function(){n(r)}})}),t},getPlaceholder:function(){return this.select&&this.getPlaceholderOption()===t?t:this.parent.getPlaceholder.apply(this,arguments)},setPlaceholder:function(){var e=this.getPlaceholder();if(this.isPlaceholderOptionSelected()&&t!==e){if(this.select&&this.getPlaceholderOption()===t)return;this.selection.find(".select2-chosen").html(this.opts.escapeMarkup(e)),this.selection.addClass("select2-default"),this.container.removeClass("select2-allowclear")}},postprocessResults:function(t,i,n){var s=0,r=this;if(this.findHighlightableChoices().each2(function(e,t){if(v(r.id(t.data("select2-data")),r.opts.element.val()))return s=e,!1}),!1!==n&&(!0===i&&s>=0?this.highlight(s):this.highlight(0)),!0===i){var a=this.opts.minimumResultsForSearch;a>=0&&this.showSearch(function t(i){var n=0;return e.each(i,function(e,i){i.children?n+=t(i.children):n++}),n}(t.results)>=a)}},showSearch:function(t){this.showSearchInput!==t&&(this.showSearchInput=t,this.dropdown.find(".select2-search").toggleClass("select2-search-hidden",!t),this.dropdown.find(".select2-search").toggleClass("select2-offscreen",!t),e(this.dropdown,this.container).toggleClass("select2-with-searchbox",t))},onSelect:function(e,t){if(this.triggerSelect(e)){var i=this.opts.element.val(),n=this.data();this.opts.element.val(this.id(e)),this.updateSelection(e),this.opts.element.trigger({type:"select2-selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.close(),(!t||!t.noFocus)&&this.opts.shouldFocusInput(this)&&this.focusser.focus(),v(i,this.id(e))||this.triggerChange({added:e,removed:n})}},updateSelection:function(e){var i,n,s=this.selection.find(".select2-chosen");this.selection.data("select2-data",e),s.empty(),null!==e&&(i=this.opts.formatSelection(e,s,this.opts.escapeMarkup)),t!==i&&s.append(i),t!==(n=this.opts.formatSelectionCssClass(e,s))&&s.addClass(n),this.selection.removeClass("select2-default"),this.opts.allowClear&&this.getPlaceholder()!==t&&this.container.addClass("select2-allowclear")},val:function(){var e,i=!1,n=null,s=this,r=this.data();if(0==arguments.length)return this.opts.element.val();if(e=arguments[0],arguments.length>1&&(i=arguments[1],this.opts.debug&&console&&console.warn&&console.warn('Select2: The second option to `select2("val")` is not supported in Select2 4.0.0. The `change` event will always be triggered in 4.0.0.')),this.select)this.opts.debug&&console&&console.warn&&console.warn('Select2: Setting the value on a <select> using `select2("val")` is no longer supported in 4.0.0. You can use the `.val(newValue).trigger("change")` method provided by jQuery instead.'),this.select.val(e).find("option").filter(function(){return this.selected}).each2(function(e,t){return n=s.optionToData(t),!1}),this.updateSelection(n),this.setPlaceholder(),i&&this.triggerChange({added:n,removed:r});else{if(!e&&0!==e)return void this.clear(i);if(this.opts.initSelection===t)throw Error("cannot call val() if initSelection() is not defined");this.opts.element.val(e),this.opts.initSelection(this.opts.element,function(e){s.opts.element.val(e?s.id(e):""),s.updateSelection(e),s.setPlaceholder(),i&&s.triggerChange({added:e,removed:r})})}},clearSearch:function(){this.search.val(""),this.focusser.val("")},data:function(e){var i,n=!1;if(0==arguments.length)return t==(i=this.selection.data("select2-data"))&&(i=null),i;this.opts.debug&&console&&console.warn&&console.warn('Select2: The `select2("data")` method can no longer set selected values in 4.0.0, consider using the `.val()` method instead.'),arguments.length>1&&(n=arguments[1]),e?(i=this.data(),this.opts.element.val(e?this.id(e):""),this.updateSelection(e),n&&this.triggerChange({added:e,removed:i})):this.clear(n)}}),r=N(n,{createContainer:function(){return e(document.createElement("div")).attr({class:"select2-container select2-container-multi"}).html("<ul class='select2-choices'> <li class='select2-search-field'> <label for='' class='select2-offscreen'></label> <input type='text' autocomplete='off' autocorrect='off' autocapitalize='off' spellcheck='false' class='select2-input'> </li></ul><div class='select2-drop select2-drop-multi select2-display-none'> <ul class='select2-results'> </ul></div>")},prepareOpts:function(){var t=this.parent.prepareOpts.apply(this,arguments),i=this;return"select"===t.element.get(0).tagName.toLowerCase()?t.initSelection=function(e,t){var n=[];e.find("option").filter(function(){return this.selected&&!this.disabled}).each2(function(e,t){n.push(i.optionToData(t))}),t(n)}:"data"in t&&(t.initSelection=t.initSelection||function(i,n){var s=b(i.val(),t.separator,t.transformVal),r=[];t.query({matcher:function(i,n,a){var o=e.grep(s,function(e){return v(e,t.id(a))}).length;return o&&r.push(a),o},callback:"function"!==n?e.noop:function(){for(var e=[],i=0;i<s.length;i++)for(var a=s[i],o=0;o<r.length;o++){var l=r[o];if(v(a,t.id(l))){e.push(l),r.splice(o,1);break}}n(e)}})}),t},selectChoice:function(e){var t=this.container.find(".select2-search-choice-focus");t.length&&e&&e[0]==t[0]||(t.length&&this.opts.element.trigger("choice-deselected",t),t.removeClass("select2-search-choice-focus"),e&&e.length&&(this.close(),e.addClass("select2-search-choice-focus"),this.opts.element.trigger("choice-selected",e)))},destroy:function(){e("label[for='"+this.search.attr("id")+"']").attr("for",this.opts.element.attr("id")),this.parent.destroy.apply(this,arguments),M.call(this,"searchContainer","selection")},initContainer:function(){var t,i=".select2-choices";this.searchContainer=this.container.find(".select2-search-field"),this.selection=t=this.container.find(i);var n=this;this.selection.on("click",".select2-container:not(.select2-container-disabled) .select2-search-choice:not(.select2-locked)",function(t){n.search[0].focus(),n.selectChoice(e(this))}),this.search.attr("id","s2id_autogen"+a()),this.search.prev().text(e("label[for='"+this.opts.element.attr("id")+"']").text()).attr("for",this.search.attr("id")),this.opts.element.on("focus.select2",this.bind(function(){this.focus()})),this.search.on("input paste",this.bind(function(){this.search.attr("placeholder")&&0==this.search.val().length||this.isInterfaceEnabled()&&(this.opened()||this.open())})),this.search.attr("tabindex",this.elementTabIndex),this.keydowns=0,this.search.on("keydown",this.bind(function(i){if(this.isInterfaceEnabled()){++this.keydowns;var n=t.find(".select2-search-choice-focus"),s=n.prev(".select2-search-choice:not(.select2-locked)"),r=n.next(".select2-search-choice:not(.select2-locked)"),a=function(t){t=e(t)[0];var i=0,n=0;if("selectionStart"in t)i=t.selectionStart,n=t.selectionEnd-i;else if("selection"in document){t.focus();var s=document.selection.createRange();n=document.selection.createRange().text.length,s.moveStart("character",-t.value.length),i=s.text.length-n}return{offset:i,length:n}}(this.search);if(n.length&&(i.which==h.LEFT||i.which==h.RIGHT||i.which==h.BACKSPACE||i.which==h.DELETE||i.which==h.ENTER)){var o=n;i.which==h.LEFT&&s.length?o=s:i.which==h.RIGHT?o=r.length?r:null:i.which===h.BACKSPACE?this.unselect(n.first())&&(this.search.width(10),o=s.length?s:r):i.which==h.DELETE?this.unselect(n.first())&&(this.search.width(10),o=r.length?r:null):i.which==h.ENTER&&(o=null),this.selectChoice(o),x(i),o&&o.length||this.open();return}if((i.which!==h.BACKSPACE||1!=this.keydowns)&&i.which!=h.LEFT||0!=a.offset||a.length)this.selectChoice(null);else{this.selectChoice(t.find(".select2-search-choice:not(.select2-locked)").last()),x(i);return}if(this.opened())switch(i.which){case h.UP:case h.DOWN:this.moveHighlight(i.which===h.UP?-1:1),x(i);return;case h.ENTER:this.selectHighlighted(),x(i);return;case h.TAB:this.selectHighlighted({noFocus:!0}),this.close();return;case h.ESC:this.cancel(i),x(i);return}if(!(i.which===h.TAB||h.isControl(i)||h.isFunctionKey(i))&&i.which!==h.BACKSPACE&&i.which!==h.ESC){if(i.which===h.ENTER){if(!1===this.opts.openOnEnter)return;else if(i.altKey||i.ctrlKey||i.shiftKey||i.metaKey)return}this.open(),(i.which===h.PAGE_UP||i.which===h.PAGE_DOWN)&&x(i),i.which===h.ENTER&&x(i)}}})),this.search.on("keyup",this.bind(function(e){this.keydowns=0,this.resizeSearch()})),this.search.on("blur",this.bind(function(t){this.container.removeClass("select2-container-active"),this.search.removeClass("select2-focused"),this.selectChoice(null),this.opened()||this.clearSearch(),t.stopImmediatePropagation(),this.opts.element.trigger(e.Event("select2-blur"))})),this.container.on("click",i,this.bind(function(t){!this.isInterfaceEnabled()||e(t.target).closest(".select2-search-choice").length>0||(this.selectChoice(null),this.clearPlaceholder(),this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.open(),this.focusSearch(),t.preventDefault())})),this.container.on("focus",i,this.bind(function(){this.isInterfaceEnabled()&&(this.container.hasClass("select2-container-active")||this.opts.element.trigger(e.Event("select2-focus")),this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"),this.clearPlaceholder())})),this.initContainerWidth(),this.opts.element.hide(),this.clearSearch()},enableInterface:function(){this.parent.enableInterface.apply(this,arguments)&&this.search.prop("disabled",!this.isInterfaceEnabled())},initSelection:function(){if(""===this.opts.element.val()&&""===this.opts.element.text()&&(this.updateSelection([]),this.close(),this.clearSearch()),this.select||""!==this.opts.element.val()){var e=this;this.opts.initSelection.call(null,this.opts.element,function(t){null!=t&&(e.updateSelection(t),e.close(),e.clearSearch())})}},clearSearch:function(){var e=this.getPlaceholder(),i=this.getMaxSearchWidth();t!==e&&0===this.getVal().length&&!1===this.search.hasClass("select2-focused")?(this.search.val(e).addClass("select2-default"),this.search.width(i>0?i:this.container.css("width"))):this.search.val("").width(10)},clearPlaceholder:function(){this.search.hasClass("select2-default")&&this.search.val("").removeClass("select2-default")},opening:function(){this.clearPlaceholder(),this.resizeSearch(),this.parent.opening.apply(this,arguments),this.focusSearch(),this.prefillNextSearchTerm(),this.updateResults(!0),this.opts.shouldFocusInput(this)&&this.search.focus(),this.opts.element.trigger(e.Event("select2-open"))},close:function(){this.opened()&&this.parent.close.apply(this,arguments)},focus:function(){this.close(),this.search.focus()},isFocused:function(){return this.search.hasClass("select2-focused")},updateSelection:function(t){var i={},n=[],s=this;e(t).each(function(){s.id(this)in i||(i[s.id(this)]=0,n.push(this))}),this.selection.find(".select2-search-choice").remove(),this.addSelectedChoice(n),s.postprocessResults()},tokenize:function(){var e=this.search.val();null!=(e=this.opts.tokenizer.call(this,e,this.data(),this.bind(this.onSelect),this.opts))&&t!=e&&(this.search.val(e),e.length>0&&this.open())},onSelect:function(e,t){this.triggerSelect(e)&&""!==e.text&&(this.addSelectedChoice(e),this.opts.element.trigger({type:"selected",val:this.id(e),choice:e}),this.lastSearchTerm=this.search.val(),this.clearSearch(),this.updateResults(),(this.select||!this.opts.closeOnSelect)&&this.postprocessResults(e,!1,!0===this.opts.closeOnSelect),this.opts.closeOnSelect?(this.close(),this.search.width(10)):this.countSelectableResults()>0?(this.search.width(10),this.resizeSearch(),this.getMaximumSelectionSize()>0&&this.val().length>=this.getMaximumSelectionSize()?this.updateResults(!0):this.prefillNextSearchTerm()&&this.updateResults(),this.positionDropdown()):(this.close(),this.search.width(10)),this.triggerChange({added:e}),t&&t.noFocus||this.focusSearch())},cancel:function(){this.close(),this.focusSearch()},addSelectedChoice:function(t){var i=this.getVal(),n=this;e(t).each(function(){i.push(n.createChoice(this))}),this.setVal(i)},createChoice:function(i){var n,s,r=!i.locked,a=e("<li class='select2-search-choice'> <div></div> <a href='#' class='select2-search-choice-close' tabindex='-1'></a></li>"),o=e("<li class='select2-search-choice select2-locked'><div></div></li>"),l=r?a:o,c=this.id(i);return t!=(n=this.opts.formatSelection(i,l.find("div"),this.opts.escapeMarkup))&&l.find("div").replaceWith(e("<div></div>").html(n)),t!=(s=this.opts.formatSelectionCssClass(i,l.find("div")))&&l.addClass(s),r&&l.find(".select2-search-choice-close").on("mousedown",x).on("click dblclick",this.bind(function(t){this.isInterfaceEnabled()&&(this.unselect(e(t.target)),this.selection.find(".select2-search-choice-focus").removeClass("select2-search-choice-focus"),x(t),this.close(),this.focusSearch())})).on("focus",this.bind(function(){this.isInterfaceEnabled()&&(this.container.addClass("select2-container-active"),this.dropdown.addClass("select2-drop-active"))})),l.data("select2-data",i),l.insertBefore(this.searchContainer),c},unselect:function(t){var i,n,s=this.getVal();if(0===(t=t.closest(".select2-search-choice")).length)throw"Invalid argument: "+t+". Must be .select2-search-choice";if(i=t.data("select2-data")){var r=e.Event("select2-removing");if(r.val=this.id(i),r.choice=i,this.opts.element.trigger(r),r.isDefaultPrevented())return!1;for(;(n=m(this.id(i),s))>=0;)s.splice(n,1),this.setVal(s),this.select&&this.postprocessResults();return t.remove(),this.opts.element.trigger({type:"select2-removed",val:this.id(i),choice:i}),this.triggerChange({removed:i}),!0}},postprocessResults:function(e,t,i){var n=this.getVal(),s=this.results.find(".select2-result"),r=this.results.find(".select2-result-with-children"),a=this;s.each2(function(e,t){m(a.id(t.data("select2-data")),n)>=0&&(t.addClass("select2-selected"),t.find(".select2-result-selectable").addClass("select2-selected"))}),r.each2(function(e,t){t.is(".select2-result-selectable")||0!==t.find(".select2-result-selectable:not(.select2-selected)").length||t.addClass("select2-selected")}),-1==this.highlight()&&!1!==i&&!0===this.opts.closeOnSelect&&a.highlight(0),!this.opts.createSearchChoice&&!s.filter(".select2-result:not(.select2-selected)").length>0&&(!e||e&&!e.more&&0===this.results.find(".select2-no-results").length)&&D(a.opts.formatNoMatches,"formatNoMatches")&&this.results.append("<li class='select2-no-results'>"+I(a.opts.formatNoMatches,a.opts.element,a.search.val())+"</li>")},getMaxSearchWidth:function(){return this.selection.width()-y(this.search)},resizeSearch:function(){var t,i,n,s,r=y(this.search);t=function(t){if(!o){var i=t[0].currentStyle||window.getComputedStyle(t[0],null);(o=e(document.createElement("div")).css({position:"absolute",left:"-10000px",top:"-10000px",display:"none",fontSize:i.fontSize,fontFamily:i.fontFamily,fontStyle:i.fontStyle,fontWeight:i.fontWeight,letterSpacing:i.letterSpacing,textTransform:i.textTransform,whiteSpace:"nowrap"})).attr("class","select2-sizer"),e(document.body).append(o)}return o.text(t.val()),o.width()}(this.search)+10,i=this.search.offset().left,(s=(n=this.selection.width())-(i-this.selection.offset().left)-r)<t&&(s=n-r),s<40&&(s=n-r),s<=0&&(s=t),this.search.width(Math.floor(s))},getVal:function(){var e;return this.select?null===(e=this.select.val())?[]:e:b(e=this.opts.element.val(),this.opts.separator,this.opts.transformVal)},setVal:function(t){if(this.select)this.select.val(t);else{var i=[],n={};e(t).each(function(){this in n||(i.push(this),n[this]=0)}),this.opts.element.val(0===i.length?"":i.join(this.opts.separator))}},buildChangeDetails:function(e,t){for(var t=t.slice(0),e=e.slice(0),i=0;i<t.length;i++)for(var n=0;n<e.length;n++)if(v(this.opts.id(t[i]),this.opts.id(e[n]))){t.splice(i,1),i--,e.splice(n,1);break}return{added:t,removed:e}},val:function(i,n){var s,r=this;if(0==arguments.length)return this.getVal();if((s=this.data()).length||(s=[]),!i&&0!==i){this.opts.element.val(""),this.updateSelection([]),this.clearSearch(),n&&this.triggerChange({added:this.data(),removed:s});return}if(this.setVal(i),this.select)this.opts.initSelection(this.select,this.bind(this.updateSelection)),n&&this.triggerChange(this.buildChangeDetails(s,this.data()));else{if(this.opts.initSelection===t)throw Error("val() cannot be called if initSelection() is not defined");this.opts.initSelection(this.opts.element,function(t){var i=e.map(t,r.id);r.setVal(i),r.updateSelection(t),r.clearSearch(),n&&r.triggerChange(r.buildChangeDetails(s,r.data()))})}this.clearSearch()},onSortStart:function(){if(this.select)throw Error("Sorting of elements is not supported when attached to <select>. Attach to <input type='hidden'/> instead.");this.search.width(0),this.searchContainer.hide()},onSortEnd:function(){var t=[],i=this;this.searchContainer.show(),this.searchContainer.appendTo(this.searchContainer.parent()),this.resizeSearch(),this.selection.find(".select2-search-choice").each(function(){t.push(i.opts.id(e(this).data("select2-data")))}),this.setVal(t),this.triggerChange()},data:function(t,i){var n,s,r=this;if(0==arguments.length)return this.selection.children(".select2-search-choice").map(function(){return e(this).data("select2-data")}).get();s=this.data(),t||(t=[]),n=e.map(t,function(e){return r.opts.id(e)}),this.setVal(n),this.updateSelection(t),this.clearSearch(),i&&this.triggerChange(this.buildChangeDetails(s,this.data()))}}),e.fn.select2=function(){var i,n,s,r,a,o=Array.prototype.slice.call(arguments,0),l=["val","destroy","opened","open","close","focus","isFocused","container","dropdown","onSortStart","onSortEnd","enable","disable","readonly","positionDropdown","data","search"],c=["opened","isFocused","container","dropdown"],u=["val","data"],h={search:"externalSearch"};return this.each(function(){if(0===o.length||"object"==typeof o[0])(i=0===o.length?{}:e.extend({},o[0])).element=e(this),"select"===i.element.get(0).tagName.toLowerCase()?a=i.element.prop("multiple"):(a=i.multiple||!1,"tags"in i&&(i.multiple=a=!0)),(n=a?new window.Select2.class.multi:new window.Select2.class.single).init(i);else if("string"==typeof o[0]){if(0>m(o[0],l))throw"Unknown method: "+o[0];if(r=t,t===(n=e(this).data("select2")))return;if("container"===(s=o[0])?r=n.container:"dropdown"===s?r=n.dropdown:(h[s]&&(s=h[s]),r=n[s].apply(n,o.slice(1))),m(o[0],c)>=0||m(o[0],u)>=0&&1==o.length)return!1}else throw"Invalid arguments to select2 plugin: "+o}),t===r?this:r},e.fn.select2.defaults={debug:!1,width:"copy",loadMorePadding:0,closeOnSelect:!0,openOnEnter:!0,containerCss:{},dropdownCss:{},containerCssClass:"",dropdownCssClass:"",formatResult:function(e,t,i,n){var s=[];return T(this.text(e),i.term,s,n),s.join("")},transformVal:function(e){return null==e?"":e.trim()},formatSelection:function(e,i,n){return e?n(this.text(e)):t},sortResults:function(e,t,i){return e},formatResultCssClass:function(e){return e.css},formatSelectionCssClass:function(e,i){return t},minimumResultsForSearch:0,minimumInputLength:0,maximumInputLength:null,maximumSelectionSize:0,id:function(e){return t==e?null:e.id},text:function(e){return e&&this.data&&this.data.text?"function"==typeof this.data.text?this.data.text(e):e[this.data.text]:e.text},matcher:function(e,t){return g(""+t).toUpperCase().indexOf(g(""+e).toUpperCase())>=0},separator:",",tokenSeparators:[],tokenizer:function(e,i,n,s){var r,a,o,l,c,u=e,h=!1;if(!s.createSearchChoice||!s.tokenSeparators||s.tokenSeparators.length<1)return t;for(;;){for(o=0,a=-1,l=s.tokenSeparators.length;o<l&&(c=s.tokenSeparators[o],!((a=e.indexOf(c))>=0));o++);if(a<0)break;if(r=e.substring(0,a),e=e.substring(a+c.length),r.length>0&&null!=(r=s.createSearchChoice.call(this,r,i))&&s.id(r)!==t&&null!==s.id(r)){for(o=0,h=!1,l=i.length;o<l;o++)if(v(s.id(r),s.id(i[o]))){h=!0;break}h||n(r)}}if(u!==e)return e},escapeMarkup:k,blurOnChange:!1,selectOnBlur:!1,adaptContainerCssClass:function(e){return e},adaptDropdownCssClass:function(e){return null},nextSearchTerm:function(e,i){return t},searchInputPlaceholder:"",createSearchChoicePosition:"top",shouldFocusInput:function(e){return!("ontouchstart"in window)&&!(navigator.msMaxTouchPoints>0)||!(e.opts.minimumResultsForSearch<0)}},e.fn.select2.locales=[],e.fn.select2.locales.en={formatMatches:function(e){return 1===e?"One result is available, press enter to select it.":e+" results are available, use up and down arrow keys to navigate."},formatNoMatches:function(){return"No matches found"},formatAjaxError:function(e,t,i){return"Loading failed"},formatInputTooShort:function(e,t){var i=t-e.length;return"Please enter "+i+" or more character"+(1==i?"":"s")},formatInputTooLong:function(e,t){var i=e.length-t;return"Please delete "+i+" character"+(1==i?"":"s")},formatSelectionTooBig:function(e){return"You can only select "+e+" item"+(1==e?"":"s")},formatLoadMore:function(e){return"Loading more results…"},formatSearching:function(){return"Searching…"}},e.extend(e.fn.select2.defaults,e.fn.select2.locales.en),e.fn.select2.ajaxDefaults={transport:e.ajax,params:{type:"GET",cache:!1,dataType:"json"}},window.Select2={query:{ajax:E,local:A,tags:S},util:{debounce:_,markMatch:T,escapeMarkup:k,stripDiacritics:g},class:{abstract:n,single:s,multi:r}}}function f(t){var i=e(document.createTextNode(""));t.before(i),i.before(t),i.remove()}function g(e){return e.replace(/[^\u0000-\u007E]/g,function(e){return p[e]||e})}function m(e,t){for(var i=0,n=t.length;i<n;i+=1)if(v(e,t[i]))return i;return -1}function v(e,i){return e===i||t!==e&&t!==i&&null!==e&&null!==i&&(e.constructor===String?e+""==i+"":i.constructor===String&&i+""==e+"")}function b(e,t,i){var n,s,r;if(null===e||e.length<1)return[];for(s=0,r=(n=e.split(t)).length;s<r;s+=1)n[s]=i(n[s]);return n}function y(e){return e.outerWidth(!1)-e.width()}function w(i){var n="keyup-change-value";i.on("keydown",function(){e.data(i,n)===t&&e.data(i,n,i.val())}),i.on("keyup",function(){var s=e.data(i,n);t!==s&&i.val()!==s&&(e.removeData(i,n),i.trigger("keyup-change"))})}function _(e,i,n){var s;return n=n||t,function(){var t=arguments;window.clearTimeout(s),s=window.setTimeout(function(){i.apply(n,t)},e)}}function x(e){e.preventDefault(),e.stopPropagation()}function C(t,i,n){var s,r,a=[];let o=t.attr("class");(s=null==o?"":o.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0===this.indexOf("select2-")&&a.push(this)});let l=i.attr("class");(s=null==l?"":l.trim())&&e((s=""+s).split(/\s+/)).each2(function(){0!==this.indexOf("select2-")&&(r=n(this))&&a.push(r)}),t.attr("class",a.join(" "))}function T(e,t,i,n){var s=g(e.toUpperCase()).indexOf(g(t.toUpperCase())),r=t.length;s<0?i.push(n(e)):(i.push(n(e.substring(0,s))),i.push("<span class='select2-match'>"),i.push(n(e.substring(s,s+r))),i.push("</span>"),i.push(n(e.substring(s+r,e.length))))}function k(e){var t={"\\":"&#92;","&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#47;"};return String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})}function E(i){var n,s=null,r=i.quietMillis||100,a=i.url,o=this;return function(l){window.clearTimeout(n),n=window.setTimeout(function(){var n=i.data,r=a,c=i.transport||e.fn.select2.ajaxDefaults.transport,u={type:i.type||"GET",cache:i.cache||!1,jsonpCallback:i.jsonpCallback||t,dataType:i.dataType||"json"},h=e.extend({},e.fn.select2.ajaxDefaults.params,u);n=n?n.call(o,l.term,l.page,l.context):null,r="function"==typeof r?r.call(o,l.term,l.page,l.context):r,s&&"function"==typeof s.abort&&s.abort(),i.params&&("function"==typeof i.params?e.extend(h,i.params.call(o)):e.extend(h,i.params)),e.extend(h,{url:r,dataType:i.dataType,data:n,success:function(e){var t=i.results(e,l.page,l);l.callback(t)},error:function(e,t,i){l.callback({hasError:!0,jqXHR:e,textStatus:t,errorThrown:i})}}),s=c.call(o,h)},r)}}function A(t){var i,n,s=t,r=function(e){return""+e.text};Array.isArray(s)&&(s={results:n=s}),"function"!==s&&(n=s,s=function(){return n});var a=s();return a.text&&"function"!==(r=a.text)&&(i=a.text,r=function(e){return e[i]}),function(t){var i,n=t.term,a={results:[]};""===n?t.callback(s()):(i=function(s,a){var o,l;if((s=s[0]).children){for(l in o={},s)s.hasOwnProperty(l)&&(o[l]=s[l]);o.children=[],e(s.children).each2(function(e,t){i(t,o.children)}),(o.children.length||t.matcher(n,r(o),s))&&a.push(o)}else t.matcher(n,r(s),s)&&a.push(s)},e(s().results).each2(function(e,t){i(t,a.results)}),t.callback(a))}}function S(i){var n="function"==typeof i;return function(s){var r=s.term,a={results:[]},o=n?i(s):i;Array.isArray(o)&&(e(o).each(function(){var e=this.text!==t,i=e?this.text:this;(""===r||s.matcher(r,i))&&a.results.push(e?this:{id:this,text:this})}),s.callback(a))}}function D(e,t){if("function"==typeof e)return!0;if(!e)return!1;if("string"==typeof e)return!0;throw Error(t+" must be a string, function, or falsy value")}function I(e,t){if("function"==typeof e){var i=Array.prototype.slice.call(arguments,2);return e.apply(t,i)}return e}function M(){var t=this;e.each(arguments,function(e,i){t[i].remove(),t[i]=null})}function N(t,i){var n=function(){};return n.prototype=new t,n.prototype.constructor=n,n.prototype.parent=t.prototype,n.prototype=e.extend(n.prototype,i),n}}(jQuery)},2:function(e,t,i){var n;!function(){"use strict";var s=window.DocumentFragment,r=window.HTMLElement.prototype,a=r.matches||r.msMatchesSelector||r.webkitMatchesSelector||r.mozMatchesSelector||r.oMatchesSelector;function o(e,t){if(e.__SKATE_TEMPLATE_HTML_DATA)return e.__SKATE_TEMPLATE_HTML_DATA[t]}function l(e,t,i){return e.__SKATE_TEMPLATE_HTML_DATA||(e.__SKATE_TEMPLATE_HTML_DATA={}),e.__SKATE_TEMPLATE_HTML_DATA[t]=i,e}function c(e){var t=e.match(/\s*<([^\s>]+)/),i=document.createElement(t&&({caption:"table",dd:"dl",dt:"dl",li:"ul",tbody:"table",td:"tr",thead:"table",tr:"tbody"})[t[1]]||"div");return i.innerHTML=e,u(i.childNodes)}function u(e){for(var t=document.createDocumentFragment();e&&e.length;)t.appendChild(e[0]);return t}function h(e,t){for(var i=[],n=e.nextSibling;n!==t;)i.push(n),n=n.nextSibling;return i}function p(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++)e.container.insertBefore(t[n],e.endNode);e.isDefault=!0}function f(e){for(var t=e.defaultNodes,i=t.length,n=0;n<i;n++){var s=t[n];s.parentNode.removeChild(s)}e.isDefault=!1}function g(){var e=[].slice.call(arguments).join("");return function(t){var i=u(t.childNodes);t.innerHTML=e,function(e){var t=e.getElementsByTagName("content");if(t&&t.length){for(var i=[];t.length;){var n=t[0],s=n.parentNode,r=n.getAttribute("select"),a=document.createComment(" content "),o=document.createComment(" /content ");i.push({container:s,contentNode:n,defaultNodes:[].slice.call(n.childNodes),endNode:o,isDefault:!0,selector:r,startNode:a}),s.replaceChild(o,n),s.insertBefore(a,o),a.textContent+=JSON.stringify({defaultContent:n.innerHTML,selector:r})+" "}l(e,"content",i)}}(t),i.childNodes.length&&g.wrap(t).appendChild(i)}}g.wrap=function(e){o(e,"content")||l(e,"content",function e(t){var i,n,s=t.childNodes,r=s.length,a=[];for(i=0;i<r;i++){var o=s[i];if(8===o.nodeType){var l=function(e){var t,i=e.textContent.match(/^ (\/?)content (.*)/i);if(i){if(i[2])try{t=JSON.parse(i[2])}catch(t){throw Error('Unable to parse content comment data: "'+t+'" in "\x3c!--'+e.textContent+'--\x3e".')}return{data:t||{defaultContent:void 0,isDefault:void 0,selector:void 0},type:i[1]?"close":"open"}}}(o);if(l){if("open"===l.type){if(n)throw Error('Cannot have an opening content placeholder after another content placeholder at the same level in the DOM tree: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n={container:o.parentNode,contentNode:o,defaultNodes:l.data.defaultContent&&c(l.data.defaultContent).childNodes||[],isDefault:l.data.isDefault,selector:l.data.selector,startNode:o}}else if("close"===l.type){if(!n)throw Error('Unmatched closing content placeholder: "'+o.textContent+'" in "'+o.parentNode.innerHTML+'".');n.endNode=o,a.push(n),n=void 0}}}else a=a.concat(e(o))}return a}(e));var t,i,n=(i=(t=o(e,"content")).length,{childNodes:{get:function(){for(var e=[],n=0;n<i;n++){var s=t[n];s.isDefault||(e=e.concat(h(s.startNode,s.endNode)))}return e}},firstChild:{get:function(){var e=this.childNodes;return e.length&&e[0]||null}},innerHTML:{get:function(){for(var e="",t=this.childNodes,i=t.length,n=0;n<i;n++){var s=t[n];e+=s.outerHTML||s.textContent}return e},set:function(e){for(var n=c(e),s=0;s<i;s++){for(var r=t[s],a=h(r.startNode,r.endNode),o=0;o<a.length;o++){var l=a[o];l.parentNode.removeChild(l)}for(var u=function(e,t){if(t){for(var i=e.querySelectorAll(t),n=i.length,s=[],r=0;r<n;r++){var a=i[r];a.parentNode===e&&s.push(a)}return s}return[].slice.call(e.childNodes)||[]}(n,r.selector),g=0;g<u.length;g++)r.container.insertBefore(u[g],r.endNode);u.length?f(r):p(r)}}},lastChild:{get:function(){for(var e=i-1;e>-1;e--)if(!t[e].isDefault){var n=this.childNodes,s=n.length;return n[s-1]}return null}},outerHTML:{get:function(){var e=this.tagName.toLowerCase(),t="<"+e,i=this.attributes;if(i)for(var n=i.length,s=0;s<n;s++){var r=i[s];t+=" "+r.nodeName+'="'+r.nodeValue+'"'}return t+=">",t+=this.innerHTML,t+="</"+e+">"}},textContent:{get:function(){for(var e="",t=this.childNodes,i=this.childNodes.length,n=0;n<i;n++)e+=t[n].textContent;return e},set:function(e){var n;this.innerHTML="";for(var s=0;s<i;s++){var r=t[s];if(!r.selector){n=r;break}}n&&(e?(f(n),n.container.insertBefore(document.createTextNode(e),n.endNode)):p(n))}},appendChild:{value:function(e){if(e instanceof s){var n=e.childNodes;return[].slice.call(n).forEach((function(e){this.appendChild(e)}).bind(this)),this}for(var r=0;r<i;r++){var o=t[r],l=o.selector;if(!l||e instanceof window.HTMLElement&&a.call(e,l)){f(o),o.endNode.parentNode.insertBefore(e,o.endNode);break}}return this}},insertAdjacentHTML:{value:function(t,i){return"afterbegin"===t?this.insertBefore(c(i),this.childNodes[0]):"beforeend"===t?this.appendChild(c(i)):e.insertAdjacentHTML(t,i),this}},insertBefore:{value:function(e,n){if(!n)return this.appendChild(e);if(e instanceof s){var r=e.childNodes;if(r)for(var o=r.length,l=0;l<o;l++)this.insertBefore(r[l],n);return this}var c=!1;e:for(var u=0;u<i;u++)for(var p=t[u],f=h(p.startNode,p.endNode),g=f.length,m=0;m<g;m++){var v=f[m];if(v===n&&(c=!0),c){var b=p.selector;if(!b||a.call(e,b)){v.parentNode.insertBefore(e,v);break e}}}if(!c)throw Error("DOMException 8: The node before which the new node is to be inserted is not a child of this node.");return e}},removeChild:{value:function(e){for(var n=!1,s=0;s<i;s++){var r=t[s];if(r.container===e.parentNode){r.container.removeChild(e),n=!0;break}r.startNode.nextSibling===r.endNode&&p(r)}if(!n)throw Error("DOMException 8: The node in which you are trying to remove is not a child of this node.");return e}},replaceChild:{value:function(e,n){for(var s=0;s<i;s++){var r=t[s];if(r.container===n.parentNode){r.container.replaceChild(e,n);break}}return this}}}),r={};for(var u in e)u in n?Object.defineProperty(r,u,n[u]):Object.defineProperty(r,u,function(e,t){return{get:function(){var i=e[t];return"function"==typeof i?i.bind(e):i},set:function(i){e[t]=i}}}(e,u));return r},window.skateTemplateHtml=g,void 0===(n=(function(){return g}).call(t,i,t,e))||(e.exports=n),e.exports=g}()},221:function(e,t){var i,n,s;s=function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ATTR_IGNORE="data-skate-ignore",e.TYPE_ATTRIBUTE="a",e.TYPE_CLASSNAME="c",e.TYPE_ELEMENT="t"},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},894:function(e,t){var i,n,s;s=function(e,t){"use strict";t.exports=function(e){var t=void 0===arguments[1]?"":arguments[1],i=e.__SKATE_DATA||(e.__SKATE_DATA={});return t&&(i[t]||(i[t]={}))||i}},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},310:function(e,t,i){var n,s,r;r=function(e,t,i,n,s,r,a){"use strict";var o=i&&i.__esModule?i.default:i,l=n.initElements,c=n.removeElements,u=a.getClosestIgnoredElement;function h(e){for(var t=e.length,i=0;i<t;i++){var n=e[i],s=n.addedNodes,r=n.removedNodes;s&&s.length&&!u(s[0].parentNode)&&l(s),r&&r.length&&c(r)}}t.exports={register:function(e){var t;return e&&this.unregister(),o.observer||((t=new window.MutationObserver(h)).observe(document,{childList:!0,subtree:!0}),o.observer=t),this},unregister:function(){return o.observer&&(o.observer.disconnect(),o.observer=void 0),this}}},n=[t,e,i(108),i(740),i(580),i(590),i(537)],void 0===(s=r.apply(t,n))||(e.exports=s)},590:function(e,t){var i,n,s;s=function(e){"use strict";var t=/MSIE/.test(navigator.userAgent),i=/Trident/.test(navigator.userAgent),n=window.HTMLElement.prototype;if(t||i){var s,r,a=Object.getOwnPropertyDescriptor(n,"innerHTML");a&&a.get._hasBeenEnhanced||(i&&(window.MutationObserver=window.JsMutationObserver||window.MutationObserver),s=Object.getOwnPropertyDescriptor(n,"innerHTML"),(r=function(){return s.get.call(this)})._hasBeenEnhanced=!0,Object.defineProperty(n,"innerHTML",{get:r,set:function(e){!function e(t,i){var n=t.childNodes;if(n)for(var s=n.length,r=0;r<s;r++){var a=n[r];i(a,t),e(a,i)}}(this,function(e,t){var i=document.createEvent("MutationEvent");i.initMutationEvent("DOMNodeRemoved",!0,!1,t,null,null,null,null),e.dispatchEvent(i)}),s.set.call(this,e)}}))}},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},108:function(e,t,i){var n,s,r;r=function(e,t,i){"use strict";var n="__skate_"+(i&&i.__esModule?i.default:i).replace(/[^\w]/g,"_");window[n]||(window[n]={observer:void 0,registry:{}}),t.exports=window[n]},n=[t,e,i(996)],void 0===(s=r.apply(t,n))||(e.exports=s)},740:function(e,t,i){var n,s,r;r=function(e,t,i,n,s,r){"use strict";var a=function(e){return e&&e.__esModule?e.default:e};Object.defineProperty(e,"__esModule",{value:!0});var o=t.ATTR_IGNORE,l=a(i),c=a(s),u=r.camelCase,h=r.elementContains,p=r.hasOwn,f=r.inherit,g=r.objEach,m=window.Node,v=window.HTMLElement.prototype,b=v.matches||v.msMatchesSelector||v.webkitMatchesSelector||v.mozMatchesSelector||v.oMatchesSelector,y=!b.call(document.createElement("div"),"div"),w=function(e,t){if(y){var i=e.cloneNode();return document.createElement("div").appendChild(i),b.call(i,t)}return b.call(e,t)},_=/Edge/.test(navigator.userAgent);function x(e,t,i){var n,s,r,a=i.name,o=i.newValue;_&&(r=l(e,"cachedAttributeOldValues"));var c=_&&p(r,a)?r[a]:i.oldValue,u="string"==typeof o,h="string"==typeof c,f=t.attributes,g=f&&f[a];!h&&u?s="created":h&&u?s="updated":h&&!u&&(s="removed"),_&&("removed"===s?delete r[a]:r[a]=o),g&&"function"==typeof g[s]?n=g[s]:g&&"function"==typeof g.fallback?n=g.fallback:"function"==typeof g?n=g:"function"==typeof f&&(n=f),o=void 0===o?null:o,c=void 0===c?null:c,n&&n(e,{type:s,name:a,newValue:o,oldValue:c})}function C(e,t){var i=l(e,t.id);if(!i.created){i.created=!0,f(e,t.prototype,!0),t.template&&!e.hasAttribute(t.resolvedAttribute)&&t.template(e),e.removeAttribute(t.unresolvedAttribute),e.setAttribute(t.resolvedAttribute,""),"object"==typeof t.events&&g(t.events,function(t,i){var n,s,r,a={name:(r=i.split(" ")).shift(),delegate:r.join(" ")},o=!!a.delegate&&("blur"===a.name||"focus"===a.name);e.addEventListener(a.name,(n=t,s=a.delegate,function(t){if(!s)return n(e,t,e);for(var i=t.target;i&&i!==document&&i!==e.parentNode;){if(w(i,s))return n(e,t,i);i=i.parentNode}}),o)}),n=e.attributes,!t.attributes||c.isNativeCustomElement(t.id)||new window.MutationObserver(function(i){i.forEach(function(i){var s=i.attributeName,r=n[s];x(e,t,{name:s,newValue:r&&(r.value||r.nodeValue),oldValue:i.oldValue})})}).observe(e,{attributes:!0,attributeOldValue:!0});var n,s=t.attributes;if("object"==typeof s)for(var r in s){var a=u(r);p(s,r)&&!p(e,a)&&function(e,t,i){Object.defineProperty(e,i,{get:function(){return this.getAttribute(t)},set:function(e){void 0===e?this.removeAttribute(t):this.setAttribute(t,e)}})}(e,r,a)}var o=t.attributes;if("object"==typeof o){for(var h in o)if(p(o,h)&&p(o[h],"value")&&!e.hasAttribute(h)){var m=o[h].value;m="function"==typeof m?m(e):m,e.setAttribute(h,m)}}!function(e,t){var i,n=e.attributes,s=[],r=n.length;for(i=0;i<r;i++)s.push(n[i]);for(i=0;i<r;i++){var a=s[i];x(e,t,{name:a.nodeName,newValue:a.value||a.nodeValue})}}(e,t),t.created&&t.created(e)}}function T(e,t){var i=l(e,t.id);i.attached||h(document,e)&&(i.attached=!0,t.attached&&t.attached(e),i.detached=!1)}function k(e,t){var i=l(e,t.id);i.detached||(i.detached=!0,t.detached&&t.detached(e),i.attached=!1)}e.initElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE&&!n.attributes[o]){for(var s,r=c.getForElement(n),a=r.length,l=0;l<a;l++)C(n,s=r[l]),T(n,s);var u=n.childNodes||[];u.length&&e(u)}}},e.removeElements=function e(t){for(var i=0;i<t.length;i++){var n=t[i];if(n.nodeType===m.ELEMENT_NODE){e(n.childNodes);for(var s=c.getForElement(n),r=s.length,a=0;a<r;a++)k(n,s[a])}}},e.triggerAttached=T,e.triggerAttributeChanged=x,e.triggerCreated=C,e.triggerDetached=k},n=[t,i(221),i(894),i(580),i(937),i(537)],void 0===(s=r.apply(t,n))||(e.exports=s)},580:function(e,t){var i,n,s;s=function(e){"use strict";var t,i,n,s;t=window,"undefined"==typeof WeakMap&&(i=Object.defineProperty,n=Date.now()%1e9,(s=function(){this.name="__st"+(1e9*Math.random()>>>0)+n+++"__"}).prototype={set:function(e,t){var n=e[this.name];return n&&n[0]===e?n[1]=t:i(e,this.name,{value:[e,t],writable:!0}),this},get:function(e){var t;return(t=e[this.name])&&t[0]===e?t[1]:void 0},delete:function(e){var t=e[this.name];return!!t&&t[0]===e&&(t[0]=t[1]=void 0,!0)},has:function(e){var t=e[this.name];return!!t&&t[0]===e}},window.WeakMap=s),function(e){if(!e.JsMutationObserver){var t,i,n,s=new WeakMap;if(/Trident|Edge/.test(navigator.userAgent))t=setTimeout;else if(window.setImmediate)t=window.setImmediate;else{var r=[],a=String(Math.random());window.addEventListener("message",function(e){if(e.data===a){var t=r;r=[],t.forEach(function(e){e()})}}),t=function(e){r.push(e),window.postMessage(a,"*")}}var o=!1,l=[],c=0;h.prototype={observe:function(e,t){if(i=e,e=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(i)||i,!t.childList&&!t.attributes&&!t.characterData||t.attributeOldValue&&!t.attributes||t.attributeFilter&&t.attributeFilter.length&&!t.attributes||t.characterDataOldValue&&!t.characterData)throw SyntaxError();var i,n,r=s.get(e);r||s.set(e,r=[]);for(var a=0;a<r.length;a++)if(r[a].observer===this){(n=r[a]).removeListeners(),n.options=t;break}n||(n=new m(this,e,t),r.push(n),this.nodes_.push(e)),n.addListeners()},disconnect:function(){this.nodes_.forEach(function(e){for(var t=s.get(e),i=0;i<t.length;i++){var n=t[i];if(n.observer===this){n.removeListeners(),t.splice(i,1);break}}},this),this.records_=[]},takeRecords:function(){var e=this.records_;return this.records_=[],e}},m.prototype={enqueue:function(e){var r,a=this.observer.records_,c=a.length;if(a.length>0){var u=function(e,t){return e===t?e:n&&(e===n||e===i)?n:null}(a[c-1],e);if(u){a[c-1]=u;return}}else{r=this.observer,l.push(r),o||(o=!0,t(function e(){o=!1;var t=l;l=[],t.sort(function(e,t){return e.uid_-t.uid_});var i=!1;t.forEach(function(e){var t,n=e.takeRecords();(t=e).nodes_.forEach(function(e){var i=s.get(e);i&&i.forEach(function(e){e.observer===t&&e.removeTransientObservers()})}),n.length&&(e.callback_(n,e),i=!0)}),i&&e()}))}a[c]=e},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(e){var t=this.options;t.attributes&&e.addEventListener("DOMAttrModified",this,!0),t.characterData&&e.addEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.addEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(e){var t=this.options;t.attributes&&e.removeEventListener("DOMAttrModified",this,!0),t.characterData&&e.removeEventListener("DOMCharacterDataModified",this,!0),t.childList&&e.removeEventListener("DOMNodeInserted",this,!0),(t.childList||t.subtree)&&e.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(e){if(e!==this.target){this.addListeners_(e),this.transientObservedNodes.push(e);var t=s.get(e);t||s.set(e,t=[]),t.push(this)}},removeTransientObservers:function(){var e=this.transientObservedNodes;this.transientObservedNodes=[],e.forEach(function(e){this.removeListeners_(e);for(var t=s.get(e),i=0;i<t.length;i++)if(t[i]===this){t.splice(i,1);break}},this)},handleEvent:function(e){switch(e.stopImmediatePropagation(),e.type){case"DOMAttrModified":var t=e.attrName,s=e.relatedNode.namespaceURI,r=e.target,a=new f("attributes",r);a.attributeName=t,a.attributeNamespace=s;var o=e.attrChange===MutationEvent.ADDITION?null:e.prevValue;u(r,function(e){if(e.attributes&&(!e.attributeFilter||!e.attributeFilter.length||-1!==e.attributeFilter.indexOf(t)||-1!==e.attributeFilter.indexOf(s)))return e.attributeOldValue?g(o):a});break;case"DOMCharacterDataModified":var r=e.target,a=f("characterData",r),o=e.prevValue;u(r,function(e){if(e.characterData)return e.characterDataOldValue?g(o):a});break;case"DOMNodeRemoved":this.addTransientObserver(e.target);case"DOMNodeInserted":var l,c,h=e.target;"DOMNodeInserted"===e.type?(l=[h],c=[]):(l=[],c=[h]);var p=h.previousSibling,m=h.nextSibling,a=f("childList",e.target.parentNode);a.addedNodes=l,a.removedNodes=c,a.previousSibling=p,a.nextSibling=m,u(e.relatedNode,function(e){if(e.childList)return a})}i=n=void 0}},e.JsMutationObserver=h,e.MutationObserver||(e.MutationObserver=h,h._isPolyfilled=!0)}function u(e,t){for(var i=e;i;i=i.parentNode){var n=s.get(i);if(n)for(var r=0;r<n.length;r++){var a=n[r],o=a.options;if(i===e||o.subtree){var l=t(o);l&&a.enqueue(l)}}}}function h(e){this.callback_=e,this.nodes_=[],this.records_=[],this.uid_=++c}function p(e,t){this.type=e,this.target=t,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function f(e,t){return i=new p(e,t)}function g(e){var t,s;return n?n:((s=new p((t=i).type,t.target)).addedNodes=t.addedNodes.slice(),s.removedNodes=t.removedNodes.slice(),s.previousSibling=t.previousSibling,s.nextSibling=t.nextSibling,s.attributeName=t.attributeName,s.attributeNamespace=t.attributeNamespace,s.oldValue=t.oldValue,(n=s).oldValue=e,n)}function m(e,t,i){this.observer=e,this.target=t,this.options=i,this.transientObservedNodes=[]}}(t)},i=[t],void 0===(n=s.apply(t,i))||(e.exports=n)},937:function(e,t,i){var n,s,r;r=function(e,t,i,n,s){"use strict";var r=i.TYPE_ATTRIBUTE,a=i.TYPE_CLASSNAME,o=i.TYPE_ELEMENT,l=n&&n.__esModule?n.default:n,c=s.hasOwn,u=s.isValidNativeCustomElementName,h=s.supportsNativeCustomElements;t.exports={clear:function(){return l.registry={},this},get:function(e){return c(l.registry,e)&&l.registry[e]},getForElement:function(e){var t,i,n=e.attributes,s=n.length,c=[],u=n.is,h=u&&(u.value||u.nodeValue),p=(e.tagName||e.localName).toLowerCase(),f=h||p;this.isType(f,o)&&(i=(t=l.registry[f]).extends,h?p===i&&c.push(t):i||c.push(t));for(var g=0;g<s;g++){var m=n[g].nodeName;this.isType(m,r)&&((i=(t=l.registry[m]).extends)&&p!==i||c.push(t))}for(var v=function(e){var t=e.classList;if(t)return t;var i=e.attributes;return i.class&&i.class.nodeValue.split(/\s+/)||[]}(e),b=v.length,y=0;y<b;y++){var w=v[y];this.isType(w,a)&&((i=(t=l.registry[w]).extends)&&p!==i||c.push(t))}return c},isType:function(e,t){var i=this.get(e);return i&&i.type===t},isNativeCustomElement:function(e){return h()&&this.isType(e,o)&&u(e)},set:function(e,t){if(c(l.registry,e))throw Error('A component definition of type "'+t.type+'" with the ID of "'+e+'" already exists.');return l.registry[e]=t,this}}},n=[t,e,i(221),i(108),i(537)],void 0===(s=r.apply(t,n))||(e.exports=s)},714:function(e,t,i){var n,s,r;r=function(e,t,i,n,s,r,a,o){"use strict";var l=function(e){return e&&e.__esModule?e.default:e},c=i.TYPE_ATTRIBUTE,u=i.TYPE_CLASSNAME,h=i.TYPE_ELEMENT,p=l(n),f=s.triggerCreated,g=s.triggerAttached,m=s.triggerDetached,v=s.triggerAttributeChanged,b=s.initElements,y=l(r),w=a.debounce,_=a.inherit,x=l(o),C=window.HTMLElement,T=!!document.attachEvent,k=w(function(){var e=function(){b(document.documentElement.childNodes)};(T?"complete"===document.readyState:"interactive"===document.readyState||"complete"===document.readyState)?e():T?window.addEventListener("load",e):document.addEventListener("DOMContentLoaded",e)});function E(e,t){if(t=_({},t),(t=_(t,E.defaults)).id=e,y.set(e,t),y.isNativeCustomElement(e)){var i=t.extends?document.createElement(t.extends).constructor.prototype:C.prototype;i.isPrototypeOf(t.prototype)||(t.prototype=_(Object.create(i),t.prototype,!0));var n={prototype:_(t.prototype,{createdCallback:function(){f(this,t)},attachedCallback:function(){g(this,t)},detachedCallback:function(){m(this,t)},attributeChangedCallback:function(e,i,n){v(this,t,{name:e,oldValue:i,newValue:n})}})};return t.extends&&(n.extends=t.extends),document.registerElement(e,n)}if(k(),p.register(!!t.detached),y.isType(e,h)){var s=t;function r(){var e,t=s.extends,i=s.id;return t?(e=document.createElement(t)).setAttribute("is",i):e=document.createElement(i),s.prototype=r.prototype,f(e,s),e}return r.prototype=s.prototype,r}}E.init=function(e){var t=e;return e&&("string"==typeof e?t=e=document.querySelectorAll(e):e instanceof C&&(t=[e]),b(t)),e},E.type={ATTRIBUTE:c,CLASSNAME:u,ELEMENT:h},E.version=x,E.defaults={attributes:void 0,events:void 0,extends:void 0,id:"",prototype:{},resolvedAttribute:"resolved",template:void 0,type:h,unresolvedAttribute:"unresolved"};var A=window.skate;E.noConflict=function(){return window.skate=A,E},window.skate=E,t.exports=E},n=[t,e,i(221),i(310),i(740),i(937),i(537),i(996)],void 0===(s=r.apply(t,n))||(e.exports=s)},537:function(e,t,i){var n,s,r;r=function(e,t){"use strict";e.hasOwn=r,e.camelCase=function(e){return e.split(/-/g).map(function(e,t){return 0===t?e:e[0].toUpperCase()+e.substring(1)}).join("")},e.elementContains=function(e,t){return e!==document||e.contains?e.contains?e.contains(t):s.call(e,t):document.head.contains(t)||document.body.contains(t)},e.debounce=function(e){var t=!1;return function(){t||(t=!0,setTimeout(function(){t=!1,e()},1))}},e.getClosestIgnoredElement=function(e){for(var t=e;t instanceof Element;){if(t.hasAttribute(i))return t;t=t.parentNode}},e.inherit=function(e,t,i){for(var n=Object.getOwnPropertyNames(t),s=n.length,r=0;r<s;r++){var a=n[r];if(i||void 0===e[a]){var o=Object.getOwnPropertyDescriptor(t,a);!o.get&&!o.set&&o.writable&&o.enumerable&&o.configurable?e[a]=t[a]:Object.defineProperty(e,a,o)}}return e},e.objEach=function(e,t){for(var i in e)r(e,i)&&t(e[i],i)},e.supportsNativeCustomElements=function(){return"function"==typeof document.registerElement},e.isValidNativeCustomElementName=function(e){return e.indexOf("-")>0},Object.defineProperty(e,"__esModule",{value:!0});var i=t.ATTR_IGNORE,n=window.HTMLElement.prototype;e.elementPrototype=n;var s=n.contains;function r(e,t){return Object.prototype.hasOwnProperty.call(e,t)}},n=[t,i(221)],void 0===(s=r.apply(t,n))||(e.exports=s)},996:function(e,t){var i,n,s;s=function(e,t){"use strict";t.exports="0.13.17"},i=[t,e],void 0===(n=s.apply(t,i))||(e.exports=n)},99:function(){!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 r(i,n,s){if(!n)return"";var r,a=i.config,o=a.textExtraction||"",l="";return null==(l="basic"===o?e(n).attr(a.textAttribute)||n.textContent||n.innerText||e(n).text()||"":"function"==typeof o?o(n,i,s):"function"==typeof(r=t.getColumnData(i,o,s))?r(n,i,s):n.textContent||n.innerText||e(n).text()||"")?"":l.trim()}function a(e){var s,a,o,l,c,u,h,p,f,g,m=e.config,v=m.$tbodies=m.$table.children("tbody:not(."+m.cssInfoBlock+")"),b=0,y="",w=v.length;if(0===w)return m.debug?i("Warning: *Empty table!* Not building a parser cache"):"";for(m.debug&&(g=new Date,i("Detecting parsers for each column")),a={extractors:[],parsers:[]};b<w;){if((s=v[b].rows)[b])for(l=0,o=m.columns;l<o;l++)c=m.$headers.filter('[data-column="'+l+'"]:last'),u=t.getColumnData(e,m.headers,l),f=t.getParserById(t.getData(c,u,"extractor")),p=t.getParserById(t.getData(c,u,"sorter")),h="false"===t.getData(c,u,"parser"),m.empties[l]=(t.getData(c,u,"empty")||m.emptyTo||(m.emptyToBottom?"bottom":"top")).toLowerCase(),m.strings[l]=(t.getData(c,u,"string")||m.stringTo||"max").toLowerCase(),h&&(p=t.getParserById("no-parser")),f||(f=!1),p||(p=function(e,n,s,a){for(var o,l=t.parsers.length,c=!1,u="",h=!0;""===u&&h;)n[++s]?(u=r(e,c=n[s].cells[a],a),e.config.debug&&i("Checking if value was empty on row "+s+", column: "+a+': "'+u+'"')):h=!1;for(;--l>=0;)if((o=t.parsers[l])&&"text"!==o.id&&o.is&&o.is(u,e,c))return o;return t.getParserById("text")}(e,s,-1,l)),m.debug&&(y+="column:"+l+"; extractor:"+f.id+"; parser:"+p.id+"; string:"+m.strings[l]+"; empty: "+m.empties[l]+"\n"),a.parsers[l]=p,a.extractors[l]=f;b+=a.parsers.length?w:1}m.debug&&(i(y||"No parsers detected"),n("Completed detecting parsers",g)),m.parsers=a.parsers,m.extractors=a.extractors}function o(s){var a,o,l,c,u,h,p,f,g,m,v,b,y,w=s.config,_=w.$table.children("tbody"),x=w.extractors,C=w.parsers;if(w.cache={},w.totalRows=0,!C)return w.debug?i("Warning: *Empty table!* Not building a cache"):"";for(w.debug&&(m=new Date),w.showProcessing&&t.isProcessing(s,!0),p=0;p<_.length;p++)if(y=[],a=w.cache[p]={normalized:[]},!_.eq(p).hasClass(w.cssInfoBlock)){for(u=0,v=_[p]&&_[p].rows.length||0;u<v;++u){if(b={child:[]},f=e(_[p].rows[u]),w.columns,g=[],f.hasClass(w.cssChildRow)&&0!==u){o=a.normalized.length-1,a.normalized[o][w.columns].$row=a.normalized[o][w.columns].$row.add(f),f.prev().hasClass(w.cssChildRow)||f.prev().addClass(t.css.cssHasChild),b.child[o]=(f[0].textContent||f[0].innerText||f.text()||"").trim();continue}for(h=0,b.$row=f,b.order=u;h<w.columns;++h){if(void 0===C[h]){w.debug&&i("No parser found for cell:",f[0].cells[h],"does it have a header?");continue}o=r(s,f[0].cells[h],h),l=void 0===x[h].id?o:x[h].format(o,s,f[0].cells[h],h),c="no-parser"===C[h].id?"":C[h].format(l,s,f[0].cells[h],h),g.push(w.ignoreCase&&"string"==typeof c?c.toLowerCase():c),"numeric"===(C[h].type||"").toLowerCase()&&(y[h]=Math.max(Math.abs(c)||0,y[h]||0))}g[w.columns]=b,a.normalized.push(g)}a.colMax=y,w.totalRows+=a.normalized.length}w.showProcessing&&t.isProcessing(s),w.debug&&n("Building cache for "+v+" rows",m)}function l(i,r){var a,o,l,c,u,h,p,f=i.config,g=f.widgetOptions,m=i.tBodies,v=[],b=f.cache;if(s(b))return f.appender?f.appender(i,v):i.isUpdating?f.$table.trigger("updateComplete",i):"";for(f.debug&&(p=new Date),h=0;h<m.length;h++)if((l=e(m[h])).length&&!l.hasClass(f.cssInfoBlock)){for(u=0,c=t.processTbody(i,l,!0),o=(a=b[h].normalized).length;u<o;u++)v.push(a[u][f.columns].$row),f.appender&&(!f.pager||f.pager.removeRows&&g.pager_removeRows||f.pager.ajax)||c.append(a[u][f.columns].$row);t.processTbody(i,c,!1)}f.appender&&f.appender(i,v),f.debug&&n("Rebuilt table",p),r||f.appender||t.applyWidget(i),i.isUpdating&&f.$table.trigger("updateComplete",i)}function c(e){return/^d/i.test(e)||1===e}function u(s){var r,a,o,l,u,h,f,g=s.config;g.headerList=[],g.headerContent=[],g.debug&&(f=new Date),g.columns=t.computeColumnIndex(g.$table.children("thead, tfoot").children("tr")),l=g.cssIcon?'<i class="'+(g.cssIcon===t.css.icon?t.css.icon:g.cssIcon+" "+t.css.icon)+'"></i>':"",g.$headers=e(s).find(g.selectorHeaders).each(function(i){a=e(this),r=t.getColumnData(s,g.headers,i,!0),g.headerContent[i]=e(this).html(),""!==g.headerTemplate&&(u=g.headerTemplate.replace(/\{icon\}/g,l).replace(/\{content\}/g,e(this).html()),g.onRenderTemplate&&(o=g.onRenderTemplate.apply(a,[i,u]))&&"string"==typeof o&&(u=o),e(this).html('<div class="'+t.css.headerIn+'">'+u+"</div>")),g.onRenderHeader&&g.onRenderHeader.apply(a,[i]),this.column=parseInt(e(this).attr("data-column"),10),this.order=c(t.getData(a,r,"sortInitialOrder")||g.sortInitialOrder)?[1,0,2]:[0,1,2],this.count=-1,this.lockedOrder=!1,void 0!==(h=t.getData(a,r,"lockedOrder")||!1)&&!1!==h&&(this.order=this.lockedOrder=c(h)?[1,1,1]:[0,0,0]),a.addClass(t.css.header+" "+g.cssHeader),g.headerList[i]=this,a.parent().addClass(t.css.headerRow+" "+g.cssHeaderRow),g.tabIndex&&a.attr("tabindex",0)}).attr({scope:"col"}),p(s),g.debug&&(n("Built headers:",f),i(g.$headers))}function h(e,t,i){var n=e.config;n.$table.find(n.selectorRemove).remove(),a(e),o(e),v(n.$table,t,i)}function p(i){var n,s,r,a=i.config;a.$headers.each(function(o,l){s=e(l),r=t.getColumnData(i,a.headers,o,!0),n="false"===t.getData(l,r,"sorter")||"false"===t.getData(l,r,"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,r,a=i.config,o=a.sortList,l=o.length,c=t.css.sortNone+" "+a.cssNone,u=[t.css.sortAsc+" "+a.cssAsc,t.css.sortDesc+" "+a.cssDesc],h=["ascending","descending"],p=e(i).find("tfoot tr").children().add(a.$extraHeaders).removeClass(u.join(" "));for(a.$headers.removeClass(u.join(" ")).addClass(c).attr("aria-sort","none"),s=0;s<l;s++)if(2!==o[s][1]&&(n=a.$headers.not(".sorter-false").filter('[data-column="'+o[s][0]+'"]'+(1===l?":last":""))).length){for(r=0;r<n.length;r++)n[r].sortDisabled||n.eq(r).removeClass(c).addClass(u[o[s][1]]).attr("aria-sort",h[o[s][1]]);p.length&&p.filter('[data-column="'+o[s][0]+'"]').removeClass(c).addClass(u[o[s][1]])}a.$headers.not(".sorter-false").each(function(){var i=e(this),n=this.order[(this.count+1)%(a.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){var i,r,a,o,l,c,u,h,p,f,g=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),r=0;r<w;r++)c=m.cache[r].colMax,m.cache[r].normalized.sort(function(n,s){for(i=0;i<y;i++){var r;if(o=b[i][0],g=0===(u=b[i][1]),m.sortStable&&n[o]===s[o]&&1===y)break;if((a=/n/i.test((r=m.parsers,r&&r[o]&&r[o].type||"")))&&m.strings[o]?(a="boolean"==typeof m.string[m.strings[o]]?(g?1:-1)*(m.string[m.strings[o]]?-1:1):m.strings[o]&&m.string[m.strings[o]]||0,h=m.numberSorter?m.numberSorter(n[o],s[o],g,c[o],e):t["sortNumeric"+(g?"Asc":"Desc")](n[o],s[o],a,c[o],o,e)):(p=g?n:s,f=g?s:n,h="function"==typeof v?v(p[o],f[o],g,o,e):"object"==typeof v&&v.hasOwnProperty(o)?v[o](p[o],f[o],g,o,e):t["sortNatural"+(g?"Asc":"Desc")](n[o],s[o],o,e,m)),h)return h}return n[m.columns].order-s[m.columns].order});m.debug&&n("Sorting on "+b.toString()+" and dir "+u+" time",l)}}function m(e,t){var i=e[0];i.isUpdating&&e.trigger("updateComplete",i),"function"==typeof t&&t(e[0])}function v(e,i,n){var s=e[0].config.sortList;!1!==i&&!e[0].isProcessing&&s.length?e.trigger("sorton",[s,function(){m(e,n)},!0]):(m(e,n),t.applyWidget(e[0],!1))}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=e.extend(!0,{},t.defaults,i);n.originalSettings=i,!this.hasInitialized&&t.buildTable&&"TABLE"!==this.tagName?t.buildTable(this,n):t.setup(this,n)})},t.setup=function(n,c){if(!n||!n.tHead||0===n.tBodies.length||!0===n.hasInitialized)return c.debug?i("ERROR: stopping initialization! No table, thead, tbody or tablesorter has already been initialized"):"";var m,b,y,w,_=RegExp(`^(\\s*${/-?[_a-zA-Z]+[_a-zA-Z0-9-]*/.source})*\\s*$`),x=[];for(var C of["tableClass","cssAsc","cssDesc","cssNone","cssHeader","cssHeaderRow","cssProcessing","cssChildRow","cssIcon","cssInfoBlock"]){var T=c[C];T&&!_.test(T)&&(x.push(C),i(`ERROR: ${C} must contain only valid CSS class names but is '${T}'`))}if(x.length>0)return c.debug?i("ERROR: stopping initialization, see class name warnings above"):"";var k="",E=e(n),A=e.metadata;n.hasInitialized=!1,n.isProcessing=!0,n.config=c,e.data(n,"tablesorter",c),c.debug&&e.data(n,"startoveralltimer",new Date),(m=e.fn.jquery.split("."))[0]=parseInt(m[0],10),c.supportsDataObject=m[0]>1||1===m[0]&&parseInt(m[1],10)>=4,c.string={max:1,min:-1,emptymin:1,emptymax:-1,zero:0,none:0,null:0,top:!0,bottom:!1},c.emptyTo=c.emptyTo.toLowerCase(),c.stringTo=c.stringTo.toLowerCase(),/tablesorter\-/.test(E.attr("class"))||(k=""!==c.theme?" tablesorter-"+c.theme:""),c.table=n,c.$table=E.addClass(t.css.table+" "+c.tableClass+k),c.$headers=E.find(c.selectorHeaders),c.namespace?c.namespace="."+c.namespace.replace(/\W/g,""):c.namespace=".tablesorter"+Math.random().toString(16).slice(2),c.$table.children().children("tr"),c.$tbodies=E.children("tbody:not(."+c.cssInfoBlock+")").attr({"aria-live":"polite","aria-relevant":"all"}),c.$table.find("caption").length&&c.$table.attr("aria-labelledby","theCaption"),c.widgetInit={},c.textExtraction=c.$table.attr("data-text-extraction")||c.textExtraction||"basic",u(n),(w=n.config).widthFixed&&0===w.$table.find("colgroup").length&&(b=e("<colgroup>"),y=e(n).width(),e(n.tBodies).not("."+w.cssInfoBlock).find("tr:first").children(":visible").each(function(){b.append(e("<col>").css("width",parseInt(e(this).width()/y*1e3,10)/10+"%"))}),w.$table.prepend(b)),a(n),c.totalRows=0,c.delayInit||o(n),t.bindEvents(n,c.$headers,!0),function i(n){var c=n.config,m=c.$table;m.off("sortReset update updateRows updateCell updateAll addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave ".split(" ").join(c.namespace+" ")).on("sortReset"+c.namespace,function(e,t){e.stopPropagation(),c.sortList=[],f(n),g(n),l(n),"function"==typeof t&&t(n)}).on("updateAll"+c.namespace,function(e,s,r){e.stopPropagation(),n.isUpdating=!0,t.refreshWidgets(n,!0,!0),t.restoreHeaders(n),u(n),t.bindEvents(n,c.$headers,!0),i(n),h(n,s,r)}).on("update"+c.namespace+" updateRows"+c.namespace,function(e,t,i){e.stopPropagation(),n.isUpdating=!0,p(n),h(n,t,i)}).on("updateCell"+c.namespace,function(t,i,s,a){t.stopPropagation(),n.isUpdating=!0,m.find(c.selectorRemove).remove();var o,l,u,h,p=m.find("tbody"),f=e(i),g=p.index(e.fn.closest?f.closest("tbody"):f.parents("tbody").filter(":first")),b=e.fn.closest?f.closest("tr"):f.parents("tr").filter(":first");i=f[0],p.length&&g>=0&&(u=p.eq(g).find("tr").index(b),h=f.index(),c.cache[g].normalized[u][c.columns].$row=b,l=void 0===c.extractors[h].id?r(n,i,h):c.extractors[h].format(r(n,i,h),n,i,h),o="no-parser"===c.parsers[h].id?"":c.parsers[h].format(l,n,i,h),c.cache[g].normalized[u][h]=c.ignoreCase&&"string"==typeof o?o.toLowerCase():o,"numeric"===(c.parsers[h].type||"").toLowerCase()&&(c.cache[g].colMax[h]=Math.max(Math.abs(o)||0,c.cache[g].colMax[h]||0)),v(m,s,a))}).on("addRows"+c.namespace,function(t,i,o,l){if(t.stopPropagation(),n.isUpdating=!0,s(c.cache))p(n),h(n,o,l);else{var u,f,g,b,y,w,_,x=(i=e(i)).filter("tr").length,C=m.find("tbody").index(i.parents("tbody").filter(":first"));for(c.parsers&&c.parsers.length||a(n),u=0;u<x;u++){for(f=0,g=i[u].cells.length,_=[],w={child:[],$row:i.eq(u),order:c.cache[C].normalized.length};f<g;f++)b=void 0===c.extractors[f].id?r(n,i[u].cells[f],f):c.extractors[f].format(r(n,i[u].cells[f],f),n,i[u].cells[f],f),y="no-parser"===c.parsers[f].id?"":c.parsers[f].format(b,n,i[u].cells[f],f),_[f]=c.ignoreCase&&"string"==typeof y?y.toLowerCase():y,"numeric"===(c.parsers[f].type||"").toLowerCase()&&(c.cache[C].colMax[f]=Math.max(Math.abs(_[f])||0,c.cache[C].colMax[f]||0));_.push(w),c.cache[C].normalized.push(_)}v(m,o,l)}}).on("updateComplete"+c.namespace,function(){n.isUpdating=!1}).on("sorton"+c.namespace,function(i,r,a,c){var u,h,p,v,b,y,w,_=n.config;i.stopPropagation(),m.trigger("sortStart",this),y=n.config,w=r||y.sortList,y.sortList=[],e.each(w,function(t,i){if(v=parseInt(i[0],10),p=y.$headers.filter('[data-column="'+v+'"]:last')[0]){switch(h=(h=(""+i[1]).match(/^(1|d|s|o|n)/))?h[0]:""){case"1":case"d":h=1;break;case"s":h=b||0;break;case"o":h=0===(u=p.order[(b||0)%(y.sortReset?3:2)])?1:2*(1!==u);break;case"n":p.count=p.count+1,h=p.order[p.count%(y.sortReset?3:2)];break;default:h=0}b=0===t?h:b,u=[v,parseInt(h,10)||0],y.sortList.push(u),h=e.inArray(u[1],p.order),p.count=h>=0?h:u[1]%(y.sortReset?3:2)}}),f(n),_.delayInit&&s(_.cache)&&o(n),m.trigger("sortBegin",this),g(n),l(n,c),m.trigger("sortEnd",this),t.applyWidget(n),"function"==typeof a&&a(n)}).on("appendCache"+c.namespace,function(e,t,i){e.stopPropagation(),l(n,i),"function"==typeof t&&t(n)}).on("updateCache"+c.namespace,function(e,t){c.parsers&&c.parsers.length||a(n),o(n),"function"==typeof t&&t(n)}).on("applyWidgetId"+c.namespace,function(e,i){e.stopPropagation(),t.getWidgetById(i).format(n,c,c.widgetOptions)}).on("applyWidgets"+c.namespace,function(e,i){e.stopPropagation(),t.applyWidget(n,i)}).on("refreshWidgets"+c.namespace,function(e,i,s){e.stopPropagation(),t.refreshWidgets(n,i,s)}).on("destroy"+c.namespace,function(e,i,s){e.stopPropagation(),t.destroy(n,i,s)}).on("resetToLoadState"+c.namespace,function(){t.refreshWidgets(n,!0,!0),c=e.extend(!0,t.defaults,c.originalSettings),n.hasInitialized=!1,t.setup(n,c)})}(n),c.supportsDataObject&&void 0!==E.data().sortlist?c.sortList=E.data().sortlist:A&&E.metadata()&&E.metadata().sortlist&&(c.sortList=E.metadata().sortlist),t.applyWidget(n,!0),c.sortList.length>0?E.trigger("sorton",[c.sortList,{},!c.initWidgets,!0]):(f(n),c.initWidgets&&t.applyWidget(n,!1)),c.showProcessing&&E.off("sortBegin"+c.namespace+" sortEnd"+c.namespace).on("sortBegin"+c.namespace+" sortEnd"+c.namespace,function(e){clearTimeout(c.processTimer),t.isProcessing(n),"sortBegin"===e.type&&(c.processTimer=setTimeout(function(){t.isProcessing(n,!0)},500))}),n.hasInitialized=!0,n.isProcessing=!1,c.debug&&t.benchmark("Overall initialization time",e.data(n,"startoveralltimer")),E.trigger("tablesorter-initialized",n),"function"==typeof c.initialized&&c.initialized(n)},t.getColumnData=function(t,i,n,s){if(null!=i){var r,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];return r}},t.computeColumnIndex=function(t){var i,n,s,r,a,o,l,c,u,h,p,f,g,m=[],v={},b=0;for(i=0;i<t.length;i++)for(n=0,l=t[i].cells;n<l.length;n++){for(a=e(o=l[n]),u=(c=o.parentNode.rowIndex)+"-"+a.index(),h=o.rowSpan||1,p=o.colSpan||1,void 0===m[c]&&(m[c]=[]),s=0;s<m[c].length+1;s++)if(void 0===m[c][s]){f=s;break}for(v[u]=f,b=Math.max(f,b),a.attr({"data-column":f}),s=c;s<c+h;s++)for(void 0===m[s]&&(m[s]=[]),g=m[s],r=f;r<f+p;r++)g[r]="x"}return b+1},t.isProcessing=function(i,n,s){var r=(i=e(i))[0].config,a=s||i.find("."+t.css.header);n?(void 0!==s&&r.sortList.length>0&&(a=a.filter(function(){return!this.sortDisabled&&t.isValueInArray(parseFloat(e(this).attr("data-column")),r.sortList)>=0})),i.add(a).addClass(t.css.processing+" "+r.cssProcessing)):i.add(a).removeClass(t.css.processing+" "+r.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(i,n,r){var a,c=(i=e(i)[0]).config;!0!==r&&(c.$extraHeaders=c.$extraHeaders?c.$extraHeaders.add(n):n),n.find(c.selectorSort).add(n.filter(c.selectorSort)).off("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" ")).on("mousedown mouseup sort keyup ".split(" ").join(c.namespace+" "),function(r,u){var h,p=r.type;if((1===(r.which||r.button)||/sort|keyup/.test(p))&&("keyup"!==p||13===r.which)&&!("mouseup"===p&&!0!==u&&new Date().getTime()-a>250)){if("mousedown"===p)return a=new Date().getTime(),/(input|select|button|textarea)/i.test(r.target.tagName)?"":!c.cancelSelection;c.delayInit&&s(c.cache)&&o(i),h=e.fn.closest?e(this).closest("th, td")[0]:/TH|TD/.test(this.tagName)?this:e(this).parents("th, td")[0],(h=c.$headers[n.index(h)]).sortDisabled||function i(n,s,r){if(n.isUpdating)return setTimeout(function(){i(n,s,r)},50);var a,o,c,u,h,p=n.config,m=!r[p.sortMultiSortKey],v=p.$table;if(v.trigger("sortStart",n),s.count=r[p.sortResetKey]?2:(s.count+1)%(p.sortReset?3:2),p.sortRestart&&(o=s,p.$headers.each(function(){this!==o&&(m||!e(this).is("."+t.css.sortDesc+",."+t.css.sortAsc))&&(this.count=-1)})),o=s.column,m){if(p.sortList=[],null!==p.sortForce)for(c=0,a=p.sortForce;c<a.length;c++)a[c][0]!==o&&p.sortList.push(a[c]);if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}else{if(p.sortAppend&&p.sortList.length>1)for(c=0;c<p.sortAppend.length;c++)(h=t.isValueInArray(p.sortAppend[c][0],p.sortList))>=0&&p.sortList.splice(h,1);if(t.isValueInArray(o,p.sortList)>=0)for(c=0;c<p.sortList.length;c++)h=p.sortList[c],u=p.$headers.filter('[data-column="'+h[0]+'"]:last')[0],h[0]===o&&(h[1]=u.order[s.count],2===h[1]&&(p.sortList.splice(c,1),u.count=-1));else if((u=s.order[s.count])<2&&(p.sortList.push([o,u]),s.colSpan>1))for(c=1;c<s.colSpan;c++)p.sortList.push([o+c,u])}if(null!==p.sortAppend)for(c=0,a=p.sortAppend;c<a.length;c++)a[c][0]!==o&&p.sortList.push(a[c]);v.trigger("sortBegin",n),setTimeout(function(){f(n),g(n),l(n),v.trigger("sortEnd",n)},1)}(i,h,r)}}),c.cancelSelection&&n.attr("unselectable","on").on("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 r=e(i),a=i.config,o=r.find("thead:first"),l=o.find("tr."+t.css.headerRow).removeClass(t.css.headerRow+" "+a.cssHeaderRow),c=r.find("tfoot:first > tr").children("th, td");!1===n&&e.inArray("uitheme",a.widgets)>=0&&(r.trigger("applyWidgetId",["uitheme"]),r.trigger("applyWidgetId",["zebra"])),o.find("tr").not(l).remove(),r.removeData("tablesorter").off("sortReset update updateAll updateRows updateCell addRows updateComplete sorton appendCache updateCache applyWidgetId applyWidgets refreshWidgets destroy mouseup mouseleave keypress sortBegin sortEnd resetToLoadState ".split(" ").join(a.namespace+" ")),a.$headers.add(c).removeClass([t.css.header,a.cssHeader,a.cssAsc,a.cssDesc,t.css.sortAsc,t.css.sortDesc,t.css.sortNone].join(" ")).removeAttr("data-column").removeAttr("aria-label").attr("aria-disabled","true"),l.find(a.selectorSort).off("mousedown mouseup keypress ".split(" ").join(a.namespace+" ")),t.restoreHeaders(i),r.toggleClass(t.css.table+" "+a.tableClass+" tablesorter-"+a.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,r,a,o,l,c,u,h=t.regex;if(h.hex.test(i)){if((s=parseInt(e.match(h.hex),16))<(a=parseInt(i.match(h.hex),16)))return -1;if(s>a)return 1}for(c=0,n=e.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),r=i.replace(h.chunk,"\\0$1\\0").replace(h.chunks,"").split("\\0"),u=Math.max(n.length,r.length);c<u;c++){if(o=isNaN(n[c])?n[c]||0:parseFloat(n[c])||0,l=isNaN(r[c])?r[c]||0:parseFloat(r[c])||0,isNaN(o)!==isNaN(l))return isNaN(o)?1:-1;if(typeof o!=typeof l&&(o+="",l+=""),o<l)return -1;if(o>l)return 1}return 0},t.sortNaturalAsc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:-a||-1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:a||1:t.sortNatural(e,i)},t.sortNaturalDesc=function(e,i,n,s,r){if(e===i)return 0;var a=r.string[r.empties[n]||r.emptyTo];return""===e&&0!==a?"boolean"==typeof a?a?-1:1:a||1:""===i&&0!==a?"boolean"==typeof a?a?1:-1:-a||-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,r=i+t;for(n=0;n<s;n++)r+=e.charCodeAt(n);return t*r}return 0},t.sortNumericAsc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:-l||-1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:l||1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),e-i)},t.sortNumericDesc=function(e,i,n,s,r,a){if(e===i)return 0;var o=a.config,l=o.string[o.empties[r]||o.emptyTo];return""===e&&0!==l?"boolean"==typeof l?l?-1:1:l||1:""===i&&0!==l?"boolean"==typeof l?l?1:-1:-l||-1:(isNaN(e)&&(e=t.getTextValue(e,n,s)),isNaN(i)&&(i=t.getTextValue(i,n,s)),i-e)},t.sortNumeric=function(e,t){return e-t},t.characterEquivalents={a:"\xe1\xe0\xe2\xe3\xe4ą\xe5",A:"\xc1\xc0\xc2\xc3\xc4Ą\xc5",c:"\xe7ćč",C:"\xc7ĆČ",e:"\xe9\xe8\xea\xeběę",E:"\xc9\xc8\xca\xcbĚĘ",i:"\xed\xecİ\xee\xefı",I:"\xcd\xccİ\xce\xcf",o:"\xf3\xf2\xf4\xf5\xf6",O:"\xd3\xd2\xd4\xd5\xd6",ss:"\xdf",SS:"ẞ",u:"\xfa\xf9\xfb\xfců",U:"\xda\xd9\xdb\xdcŮ"},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]=RegExp("["+s[i]+"]","g"));t.characterRegex=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 r,a,o,l=(i=e(i)[0]).config,c=l.widgetOptions,u=[];!1!==s&&i.hasInitialized&&(i.isApplyingWidgets||i.isUpdating)||(l.debug&&(r=new Date),l.widgets.length&&(i.isApplyingWidgets=!0,l.widgets=e.grep(l.widgets,function(t,i){return e.inArray(t,l.widgets)===i}),e.each(l.widgets||[],function(e,i){(o=t.getWidgetById(i))&&o.id&&(o.priority||(o.priority=10),u[e]=o)}),u.sort(function(e,t){return e.priority<t.priority?-1:+(e.priority!==t.priority)}),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&&n("Completed "+(!0===s?"initializing ":"applying ")+(a=l.widgets.length)+" widget"+(1!==a?"s":""),r))},t.refreshWidgets=function(n,s,r){var a,o=(n=e(n)[0]).config,l=o.widgets,c=t.widgets,u=c.length;for(a=0;a<u;a++)c[a]&&c[a].id&&(s||0>e.inArray(c[a].id,l))&&(o.debug&&i('Refeshing widgets: Removing "'+c[a].id+'"'),c[a].hasOwnProperty("remove")&&o.widgetInit[c[a].id]&&(c[a].remove(n,o,o.widgetOptions),o.widgetInit[c[a].id]=!1));!0!==r&&t.applyWidget(n,s)},t.getData=function(t,i,n){var s,r,a="",o=e(t);return o.length?(s=!!e.metadata&&o.metadata(),r=" "+(o.attr("class")||""),void 0!==o.data(n)||void 0!==o.data(n.toLowerCase())?a+=o.data(n)||o.data(n.toLowerCase()):s&&void 0!==s[n]?a+=s[n]:i&&void 0!==i[n]?a+=i[n]:" "!==r&&r.match(" "+n+"-")&&(a=r.match(RegExp("\\s"+n+"-([\\w-]+)"))[1]||""),null==a?"":a.trim()):""},t.formatFloat=function(e,t){var i;return"string"!=typeof e||""===e?e:(e=(t&&t.config?!1!==t.config.usNumberFormat:void 0===t||t)?e.replace(/,/g,""):e.replace(/[\s|\.]/g,"").replace(/,/g,"."),/^\s*\([.\d]+\)/.test(e)&&(e=e.replace(/^\s*\(([.\d]+)\)/,"-$1")),isNaN(i=parseFloat(e))?e.trim():i)},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(e,i){var n=i.config;return e&&(e=(n.ignoreCase?e.toLocaleLowerCase():e).trim(),e=n.sortLocaleCompare?t.replaceAccents(e):e),e},type:"text"}),t.addParser({id:"digit",is:function(e){return t.isDigit(e)},format:function(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},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(e,i){var n=t.formatFloat((e||"").replace(/[^\w,. \-()]/g,""),i);return e&&"number"==typeof n?n:e?(e&&i.config.ignoreCase?e.toLocaleLowerCase():e).trim():e},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("."):"",r="",a=s.length;for(n=0;n<a;n++)r+=("00"+s[n]).slice(-3);return e?t.formatFloat(r,i):e},type:"numeric"}),t.addParser({id:"url",is:function(e){return/^(https?|ftp|file):\/\//.test(e)},format:function(e){return e?e.replace(/(https?|ftp|file):\/\//,"").trim():e},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 r=i.config,a=r.$headers.filter("[data-column="+s+"]:last"),o=a.length&&a[0].dateFormat||t.getData(a,t.getColumnData(i,r.headers,s),"dateFormat")||r.dateFormat;e=e.replace(/\s+/g," ").replace(/[\-.,]/g,"/"),"mmddyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$1/$2"):"ddmmyyyy"===o?e=e.replace(/(\d{1,2})[\/\s](\d{1,2})[\/\s](\d{4})/,"$3/$2/$1"):"yyyymmdd"===o&&(e=e.replace(/(\d{4})[\/\s](\d{1,2})[\/\s](\d{1,2})/,"$1/$2/$3"))}return e?t.formatFloat(new Date(e).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"time",is:function(e){return/^(([0-2]?\d:[0-5]\d)|([0-1]?\d:[0-5]\d\s?([AP]M)))$/i.test(e)},format:function(e,i){return e?t.formatFloat(new Date("2000/01/01 "+e.replace(/(\S)([AP]M)$/i,"$1 $2")).getTime()||e,i):e},type:"numeric"}),t.addParser({id:"metadata",is:function(){return!1},format:function(t,i,n){var s=i.config,r=s.parserMetadataName?s.parserMetadataName:"sortValue";return e(n).metadata()[r]},type:"numeric"}),t.addWidget({id:"zebra",priority:90,format:function(i,n,s){var r,a,o,l,c,u=RegExp(n.cssChildRow,"i"),h=n.$tbodies;for(n.debug&&(l=new Date),c=0;c<h.length;c++)a=0,h.eq(c).children("tr:visible").not(n.selectorRemove).each(function(){r=e(this),!u.test(this.className)&&a++,o=a%2==0,r.removeClass(s.zebra[+!!o]).addClass(s.zebra[+!o])});n.debug&&t.benchmark("Applying Zebra widget",l)},remove:function(t,i,n){var s,r,a=i.$tbodies,o=(n.zebra||["even","odd"]).join(" ");for(s=0;s<a.length;s++)(r=e.tablesorter.processTbody(t,a.eq(s),!0)).children().removeClass(o),e.tablesorter.processTbody(t,r,!1)}})}(jQuery)},682:function(){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")?i?e[this.name]=i[0]:e[this.name]="":null!==i?e[this.name]=i:e[this.name]=[]}),e}},195:function(t){"use strict";t.exports=e},295:function(e,t,i){Object.defineProperty(t,"__esModule",{value:!0});var n="1.13.7",s="object"==typeof self&&self.self===self&&self||"object"==typeof i.g&&i.g.global===i.g&&i.g||Function("return this")()||{},r=Array.prototype,a=Object.prototype,o="undefined"!=typeof Symbol?Symbol.prototype:null,l=r.push,c=r.slice,u=a.toString,h=a.hasOwnProperty,p="undefined"!=typeof ArrayBuffer,f="undefined"!=typeof DataView,g=Array.isArray,m=Object.keys,v=Object.create,b=p&&ArrayBuffer.isView,y=isNaN,w=isFinite,_=!({toString:null}).propertyIsEnumerable("toString"),x=["valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"];function C(e,t){return t=null==t?e.length-1:+t,function(){for(var i=Math.max(arguments.length-t,0),n=Array(i),s=0;s<i;s++)n[s]=arguments[s+t];switch(t){case 0:return e.call(this,n);case 1:return e.call(this,arguments[0],n);case 2:return e.call(this,arguments[0],arguments[1],n)}var r=Array(t+1);for(s=0;s<t;s++)r[s]=arguments[s];return r[t]=n,e.apply(this,r)}}function T(e){var t=typeof e;return"function"===t||"object"===t&&!!e}function k(e){return null===e}function E(e){return void 0===e}function A(e){return!0===e||!1===e||"[object Boolean]"===u.call(e)}function S(e){return!!(e&&1===e.nodeType)}function D(e){var t="[object "+e+"]";return function(e){return u.call(e)===t}}var I=D("String"),M=D("Number"),N=D("Date"),O=D("RegExp"),L=D("Error"),P=D("Symbol"),R=D("ArrayBuffer"),$=D("Function"),j=s.document&&s.document.childNodes;"object"!=typeof Int8Array&&"function"!=typeof j&&($=function(e){return"function"==typeof e});var z=$,H=D("Object"),F=f&&(!/\[native code\]/.test(String(DataView))||H(new DataView(new ArrayBuffer(8)))),B="undefined"!=typeof Map&&H(new Map),U=D("DataView"),W=F?function(e){return null!=e&&z(e.getInt8)&&R(e.buffer)}:U,V=g||D("Array");function Y(e,t){return null!=e&&h.call(e,t)}var q=D("Arguments");!function(){q(arguments)||(q=function(e){return Y(e,"callee")})}();var K=q;function Q(e){return!P(e)&&w(e)&&!isNaN(parseFloat(e))}function G(e){return M(e)&&y(e)}function J(e){return function(){return e}}function Z(e){return function(t){var i=e(t);return"number"==typeof i&&i>=0&&i<=0x1fffffffffffff}}function X(e){return function(t){return null==t?void 0:t[e]}}var ee=X("byteLength"),et=Z(ee),ei=/\[object ((I|Ui)nt(8|16|32)|Float(32|64)|Uint8Clamped|Big(I|Ui)nt64)Array\]/,en=p?function(e){return b?b(e)&&!W(e):et(e)&&ei.test(u.call(e))}:J(!1),es=X("length");function er(e,t){t=function(e){for(var t={},i=e.length,n=0;n<i;++n)t[e[n]]=!0;return{contains:function(e){return!0===t[e]},push:function(i){return t[i]=!0,e.push(i)}}}(t);var i=x.length,n=e.constructor,s=z(n)&&n.prototype||a,r="constructor";for(Y(e,r)&&!t.contains(r)&&t.push(r);i--;)(r=x[i])in e&&e[r]!==s[r]&&!t.contains(r)&&t.push(r)}function ea(e){if(!T(e))return[];if(m)return m(e);var t=[];for(var i in e)Y(e,i)&&t.push(i);return _&&er(e,t),t}function eo(e){if(null==e)return!0;var t=es(e);return"number"==typeof t&&(V(e)||I(e)||K(e))?0===t:0===es(ea(e))}function el(e,t){var i=ea(t),n=i.length;if(null==e)return!n;for(var s=Object(e),r=0;r<n;r++){var a=i[r];if(t[a]!==s[a]||!(a in s))return!1}return!0}function ec(e){return e instanceof ec?e:this instanceof ec?void(this._wrapped=e):new ec(e)}function eu(e){return new Uint8Array(e.buffer||e,e.byteOffset||0,ee(e))}ec.VERSION=n,ec.prototype.value=function(){return this._wrapped},ec.prototype.valueOf=ec.prototype.toJSON=ec.prototype.value,ec.prototype.toString=function(){return String(this._wrapped)};var ed="[object DataView]";function eh(e,t){return function e(t,i,n,s){if(t===i)return 0!==t||1/t==1/i;if(null==t||null==i)return!1;if(t!=t)return i!=i;var r=typeof t;return("function"===r||"object"===r||"object"==typeof i)&&function t(i,n,s,r){i instanceof ec&&(i=i._wrapped),n instanceof ec&&(n=n._wrapped);var a=u.call(i);if(a!==u.call(n))return!1;if(F&&"[object Object]"==a&&W(i)){if(!W(n))return!1;a=ed}switch(a){case"[object RegExp]":case"[object String]":return""+i==""+n;case"[object Number]":if(+i!=+i)return+n!=+n;return 0==+i?1/i==1/n:+i==+n;case"[object Date]":case"[object Boolean]":return+i==+n;case"[object Symbol]":return o.valueOf.call(i)===o.valueOf.call(n);case"[object ArrayBuffer]":case ed:return t(eu(i),eu(n),s,r)}var l="[object Array]"===a;if(!l&&en(i)){if(ee(i)!==ee(n))return!1;if(i.buffer===n.buffer&&i.byteOffset===n.byteOffset)return!0;l=!0}if(!l){if("object"!=typeof i||"object"!=typeof n)return!1;var c=i.constructor,h=n.constructor;if(c!==h&&!(z(c)&&c instanceof c&&z(h)&&h instanceof h)&&"constructor"in i&&"constructor"in n)return!1}r=r||[];for(var p=(s=s||[]).length;p--;)if(s[p]===i)return r[p]===n;if(s.push(i),r.push(n),l){if((p=i.length)!==n.length)return!1;for(;p--;)if(!e(i[p],n[p],s,r))return!1}else{var f,g=ea(i);if(p=g.length,ea(n).length!==p)return!1;for(;p--;)if(!(Y(n,f=g[p])&&e(i[f],n[f],s,r)))return!1}return s.pop(),r.pop(),!0}(t,i,n,s)}(e,t)}function ep(e){if(!T(e))return[];var t=[];for(var i in e)t.push(i);return _&&er(e,t),t}function ef(e){var t=es(e);return function(i){if(null==i||es(ep(i)))return!1;for(var n=0;n<t;n++)if(!z(i[e[n]]))return!1;return e!==ey||!z(i[eg])}}var eg="forEach",em=["clear","delete"],ev=["get","has","set"],eb=em.concat(eg,ev),ey=em.concat(ev),ew=["add"].concat(em,eg,"has"),e_=B?ef(eb):D("Map"),ex=B?ef(ey):D("WeakMap"),eC=B?ef(ew):D("Set"),eT=D("WeakSet");function ek(e){for(var t=ea(e),i=t.length,n=Array(i),s=0;s<i;s++)n[s]=e[t[s]];return n}function eE(e){for(var t=ea(e),i=t.length,n=Array(i),s=0;s<i;s++)n[s]=[t[s],e[t[s]]];return n}function eA(e){for(var t={},i=ea(e),n=0,s=i.length;n<s;n++)t[e[i[n]]]=i[n];return t}function eS(e){var t=[];for(var i in e)z(e[i])&&t.push(i);return t.sort()}function eD(e,t){return function(i){var n=arguments.length;if(t&&(i=Object(i)),n<2||null==i)return i;for(var s=1;s<n;s++)for(var r=arguments[s],a=e(r),o=a.length,l=0;l<o;l++){var c=a[l];t&&void 0!==i[c]||(i[c]=r[c])}return i}}var eI=eD(ep),eM=eD(ea),eN=eD(ep,!0);function eO(e){if(!T(e))return{};if(v)return v(e);var t=function(){};t.prototype=e;var i=new t;return t.prototype=null,i}function eL(e,t){var i=eO(e);return t&&eM(i,t),i}function eP(e){return T(e)?V(e)?e.slice():eI({},e):e}function eR(e,t){return t(e),e}function e$(e){return V(e)?e:[e]}function ej(e){return ec.toPath(e)}function ez(e,t){for(var i=t.length,n=0;n<i;n++){if(null==e)return;e=e[t[n]]}return i?e:void 0}function eH(e,t,i){var n=ez(e,ej(t));return E(n)?i:n}function eF(e,t){for(var i=(t=ej(t)).length,n=0;n<i;n++){var s=t[n];if(!Y(e,s))return!1;e=e[s]}return!!i}function eB(e){return e}function eU(e){return e=eM({},e),function(t){return el(t,e)}}function eW(e){return e=ej(e),function(t){return ez(t,e)}}function eV(e,t,i){if(void 0===t)return e;switch(null==i?3:i){case 1:return function(i){return e.call(t,i)};case 3:return function(i,n,s){return e.call(t,i,n,s)};case 4:return function(i,n,s,r){return e.call(t,i,n,s,r)}}return function(){return e.apply(t,arguments)}}function eY(e,t,i){return null==e?eB:z(e)?eV(e,t,i):T(e)&&!V(e)?eU(e):eW(e)}function eq(e,t){return eY(e,t,1/0)}function eK(e,t,i){return ec.iteratee!==eq?ec.iteratee(e,t):eY(e,t,i)}function eQ(e,t,i){t=eK(t,i);for(var n=ea(e),s=n.length,r={},a=0;a<s;a++){var o=n[a];r[o]=t(e[o],o,e)}return r}function eG(){}function eJ(e){return null==e?eG:function(t){return eH(e,t)}}function eZ(e,t,i){var n=Array(Math.max(0,e));t=eV(t,i,1);for(var s=0;s<e;s++)n[s]=t(s);return n}function eX(e,t){return null==t&&(t=e,e=0),e+Math.floor(Math.random()*(t-e+1))}ec.toPath=e$,ec.iteratee=eq;var e0=Date.now||function(){return new Date().getTime()};function e1(e){var t=function(t){return e[t]},i="(?:"+ea(e).join("|")+")",n=RegExp(i),s=RegExp(i,"g");return function(e){return e=null==e?"":""+e,n.test(e)?e.replace(s,t):e}}var e2={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},e3=e1(e2),e4=e1(eA(e2)),e9=ec.templateSettings={evaluate:/<%([\s\S]+?)%>/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g},e5=/(.)^/,e8={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},e7=/\\|'|\r|\n|\u2028|\u2029/g;function e6(e){return"\\"+e8[e]}var te=/^\s*(\w|\$)+\s*$/;function tt(e,t,i){!t&&i&&(t=i);var n,s=RegExp([((t=eN({},t,ec.templateSettings)).escape||e5).source,(t.interpolate||e5).source,(t.evaluate||e5).source].join("|")+"|$","g"),r=0,a="__p+='";e.replace(s,function(t,i,n,s,o){return a+=e.slice(r,o).replace(e7,e6),r=o+t.length,i?a+="'+\n((__t=("+i+"))==null?'':_.escape(__t))+\n'":n?a+="'+\n((__t=("+n+"))==null?'':__t)+\n'":s&&(a+="';\n"+s+"\n__p+='"),t}),a+="';\n";var o=t.variable;if(o){if(!te.test(o))throw Error("variable is not a bare identifier: "+o)}else a="with(obj||{}){\n"+a+"}\n",o="obj";a="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+a+"return __p;\n";try{n=Function(o,"_",a)}catch(e){throw e.source=a,e}var l=function(e){return n.call(this,e,ec)};return l.source="function("+o+"){\n"+a+"}",l}function ti(e,t,i){var n=(t=ej(t)).length;if(!n)return z(i)?i.call(e):i;for(var s=0;s<n;s++){var r=null==e?void 0:e[t[s]];void 0===r&&(r=i,s=n),e=z(r)?r.call(e):r}return e}var tn=0;function ts(e){var t=++tn+"";return e?e+t:t}function tr(e){var t=ec(e);return t._chain=!0,t}function ta(e,t,i,n,s){if(!(n instanceof t))return e.apply(i,s);var r=eO(e.prototype),a=e.apply(r,s);return T(a)?a:r}var to=C(function(e,t){var i=to.placeholder,n=function(){for(var s=0,r=t.length,a=Array(r),o=0;o<r;o++)a[o]=t[o]===i?arguments[s++]:t[o];for(;s<arguments.length;)a.push(arguments[s++]);return ta(e,n,this,this,a)};return n});to.placeholder=ec;var tl=C(function(e,t,i){if(!z(e))throw TypeError("Bind must be called on a function");var n=C(function(s){return ta(e,n,t,this,i.concat(s))});return n}),tc=Z(es);function tu(e,t,i,n){if(n=n||[],t||0===t){if(t<=0)return n.concat(e)}else t=1/0;for(var s=n.length,r=0,a=es(e);r<a;r++){var o=e[r];if(tc(o)&&(V(o)||K(o)))if(t>1)tu(o,t-1,i,n),s=n.length;else for(var l=0,c=o.length;l<c;)n[s++]=o[l++];else i||(n[s++]=o)}return n}var td=C(function(e,t){var i=(t=tu(t,!1,!1)).length;if(i<1)throw Error("bindAll must be passed function names");for(;i--;){var n=t[i];e[n]=tl(e[n],e)}return e});function th(e,t){var i=function(n){var s=i.cache,r=""+(t?t.apply(this,arguments):n);return Y(s,r)||(s[r]=e.apply(this,arguments)),s[r]};return i.cache={},i}var tp=C(function(e,t,i){return setTimeout(function(){return e.apply(null,i)},t)}),tf=to(tp,ec,1);function tg(e,t,i){var n,s,r,a,o=0;i||(i={});var l=function(){o=!1===i.leading?0:e0(),n=null,a=e.apply(s,r),n||(s=r=null)},c=function(){var c=e0();o||!1!==i.leading||(o=c);var u=t-(c-o);return s=this,r=arguments,u<=0||u>t?(n&&(clearTimeout(n),n=null),o=c,a=e.apply(s,r),n||(s=r=null)):n||!1===i.trailing||(n=setTimeout(l,u)),a};return c.cancel=function(){clearTimeout(n),o=0,n=s=r=null},c}function tm(e,t,i){var n,s,r,a,o,l=function(){var c=e0()-s;t>c?n=setTimeout(l,t-c):(n=null,i||(a=e.apply(o,r)),n||(r=o=null))},c=C(function(c){return o=this,r=c,s=e0(),!n&&(n=setTimeout(l,t),i&&(a=e.apply(o,r))),a});return c.cancel=function(){clearTimeout(n),n=r=o=null},c}function tv(e,t){return to(t,e)}function tb(e){return function(){return!e.apply(this,arguments)}}function ty(){var e=arguments,t=e.length-1;return function(){for(var i=t,n=e[t].apply(this,arguments);i--;)n=e[i].call(this,n);return n}}function tw(e,t){return function(){if(--e<1)return t.apply(this,arguments)}}function t_(e,t){var i;return function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=null),i}}var tx=to(t_,2);function tC(e,t,i){t=eK(t,i);for(var n,s=ea(e),r=0,a=s.length;r<a;r++)if(t(e[n=s[r]],n,e))return n}function tT(e){return function(t,i,n){i=eK(i,n);for(var s=es(t),r=e>0?0:s-1;r>=0&&r<s;r+=e)if(i(t[r],r,t))return r;return -1}}var tk=tT(1),tE=tT(-1);function tA(e,t,i,n){for(var s=(i=eK(i,n,1))(t),r=0,a=es(e);r<a;){var o=Math.floor((r+a)/2);i(e[o])<s?r=o+1:a=o}return r}function tS(e,t,i){return function(n,s,r){var a=0,o=es(n);if("number"==typeof r)e>0?a=r>=0?r:Math.max(r+o,a):o=r>=0?Math.min(r+1,o):r+o+1;else if(i&&r&&o)return r=i(n,s),n[r]===s?r:-1;if(s!=s)return(r=t(c.call(n,a,o),G))>=0?r+a:-1;for(r=e>0?a:o-1;r>=0&&r<o;r+=e)if(n[r]===s)return r;return -1}}var tD=tS(1,tk,tA),tI=tS(-1,tE);function tM(e,t,i){var n=(tc(e)?tk:tC)(e,t,i);if(void 0!==n&&-1!==n)return e[n]}function tN(e,t){return tM(e,eU(t))}function tO(e,t,i){if(t=eV(t,i),tc(e))for(n=0,s=e.length;n<s;n++)t(e[n],n,e);else{var n,s,r=ea(e);for(n=0,s=r.length;n<s;n++)t(e[r[n]],r[n],e)}return e}function tL(e,t,i){t=eK(t,i);for(var n=!tc(e)&&ea(e),s=(n||e).length,r=Array(s),a=0;a<s;a++){var o=n?n[a]:a;r[a]=t(e[o],o,e)}return r}function tP(e){var t=function(t,i,n,s){var r=!tc(t)&&ea(t),a=(r||t).length,o=e>0?0:a-1;for(s||(n=t[r?r[o]:o],o+=e);o>=0&&o<a;o+=e){var l=r?r[o]:o;n=i(n,t[l],l,t)}return n};return function(e,i,n,s){var r=arguments.length>=3;return t(e,eV(i,s,4),n,r)}}var tR=tP(1),t$=tP(-1);function tj(e,t,i){var n=[];return t=eK(t,i),tO(e,function(e,i,s){t(e,i,s)&&n.push(e)}),n}function tz(e,t,i){return tj(e,tb(eK(t)),i)}function tH(e,t,i){t=eK(t,i);for(var n=!tc(e)&&ea(e),s=(n||e).length,r=0;r<s;r++){var a=n?n[r]:r;if(!t(e[a],a,e))return!1}return!0}function tF(e,t,i){t=eK(t,i);for(var n=!tc(e)&&ea(e),s=(n||e).length,r=0;r<s;r++){var a=n?n[r]:r;if(t(e[a],a,e))return!0}return!1}function tB(e,t,i,n){return tc(e)||(e=ek(e)),("number"!=typeof i||n)&&(i=0),tD(e,t,i)>=0}var tU=C(function(e,t,i){var n,s;return z(t)?s=t:(n=(t=ej(t)).slice(0,-1),t=t[t.length-1]),tL(e,function(e){var r=s;if(!r){if(n&&n.length&&(e=ez(e,n)),null==e)return;r=e[t]}return null==r?r:r.apply(e,i)})});function tW(e,t){return tL(e,eW(t))}function tV(e,t){return tj(e,eU(t))}function tY(e,t,i){var n,s,r=-1/0,a=-1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=tc(e)?e:ek(e);for(var o=0,l=e.length;o<l;o++)null!=(n=e[o])&&n>r&&(r=n)}else t=eK(t,i),tO(e,function(e,i,n){((s=t(e,i,n))>a||s===-1/0&&r===-1/0)&&(r=e,a=s)});return r}function tq(e,t,i){var n,s,r=1/0,a=1/0;if(null==t||"number"==typeof t&&"object"!=typeof e[0]&&null!=e){e=tc(e)?e:ek(e);for(var o=0,l=e.length;o<l;o++)null!=(n=e[o])&&n<r&&(r=n)}else t=eK(t,i),tO(e,function(e,i,n){((s=t(e,i,n))<a||s===1/0&&r===1/0)&&(r=e,a=s)});return r}var tK=/[^\ud800-\udfff]|[\ud800-\udbff][\udc00-\udfff]|[\ud800-\udfff]/g;function tQ(e){return e?V(e)?c.call(e):I(e)?e.match(tK):tc(e)?tL(e,eB):ek(e):[]}function tG(e,t,i){if(null==t||i)return tc(e)||(e=ek(e)),e[eX(e.length-1)];var n=tQ(e),s=es(n);t=Math.max(Math.min(t,s),0);for(var r=s-1,a=0;a<t;a++){var o=eX(a,r),l=n[a];n[a]=n[o],n[o]=l}return n.slice(0,t)}function tJ(e){return tG(e,1/0)}function tZ(e,t,i){var n=0;return t=eK(t,i),tW(tL(e,function(e,i,s){return{value:e,index:n++,criteria:t(e,i,s)}}).sort(function(e,t){var i=e.criteria,n=t.criteria;if(i!==n){if(i>n||void 0===i)return 1;if(i<n||void 0===n)return -1}return e.index-t.index}),"value")}function tX(e,t){return function(i,n,s){var r=t?[[],[]]:{};return n=eK(n,s),tO(i,function(t,s){var a=n(t,s,i);e(r,t,a)}),r}}var t0=tX(function(e,t,i){Y(e,i)?e[i].push(t):e[i]=[t]}),t1=tX(function(e,t,i){e[i]=t}),t2=tX(function(e,t,i){Y(e,i)?e[i]++:e[i]=1}),t3=tX(function(e,t,i){e[+!i].push(t)},!0);function t4(e){return null==e?0:tc(e)?e.length:ea(e).length}function t9(e,t,i){return t in i}var t5=C(function(e,t){var i={},n=t[0];if(null==e)return i;z(n)?(t.length>1&&(n=eV(n,t[1])),t=ep(e)):(n=t9,t=tu(t,!1,!1),e=Object(e));for(var s=0,r=t.length;s<r;s++){var a=t[s],o=e[a];n(o,a,e)&&(i[a]=o)}return i}),t8=C(function(e,t){var i,n=t[0];return z(n)?(n=tb(n),t.length>1&&(i=t[1])):(t=tL(tu(t,!1,!1),String),n=function(e,i){return!tB(t,i)}),t5(e,n,i)});function t7(e,t,i){return c.call(e,0,Math.max(0,e.length-(null==t||i?1:t)))}function t6(e,t,i){return null==e||e.length<1?null==t||i?void 0:[]:null==t||i?e[0]:t7(e,e.length-t)}function ie(e,t,i){return c.call(e,null==t||i?1:t)}function it(e,t,i){return null==e||e.length<1?null==t||i?void 0:[]:null==t||i?e[e.length-1]:ie(e,Math.max(0,e.length-t))}function ii(e){return tj(e,Boolean)}function is(e,t){return tu(e,t,!1)}var ir=C(function(e,t){return t=tu(t,!0,!0),tj(e,function(e){return!tB(t,e)})}),ia=C(function(e,t){return ir(e,t)});function io(e,t,i,n){A(t)||(n=i,i=t,t=!1),null!=i&&(i=eK(i,n));for(var s=[],r=[],a=0,o=es(e);a<o;a++){var l=e[a],c=i?i(l,a,e):l;t&&!i?(a&&r===c||s.push(l),r=c):i?tB(r,c)||(r.push(c),s.push(l)):tB(s,l)||s.push(l)}return s}var il=C(function(e){return io(tu(e,!0,!0))});function ic(e){for(var t=[],i=arguments.length,n=0,s=es(e);n<s;n++){var r,a=e[n];if(!tB(t,a)){for(r=1;r<i&&tB(arguments[r],a);r++);r===i&&t.push(a)}}return t}function iu(e){for(var t=e&&tY(e,es).length||0,i=Array(t),n=0;n<t;n++)i[n]=tW(e,n);return i}var id=C(iu);function ih(e,t){for(var i={},n=0,s=es(e);n<s;n++)t?i[e[n]]=t[n]:i[e[n][0]]=e[n][1];return i}function ip(e,t,i){null==t&&(t=e||0,e=0),i||(i=t<e?-1:1);for(var n=Math.max(Math.ceil((t-e)/i),0),s=Array(n),r=0;r<n;r++,e+=i)s[r]=e;return s}function ig(e,t){if(null==t||t<1)return[];for(var i=[],n=0,s=e.length;n<s;)i.push(c.call(e,n,n+=t));return i}function im(e,t){return e._chain?ec(t).chain():t}function iv(e){return tO(eS(e),function(t){var i=ec[t]=e[t];ec.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),im(this,i.apply(ec,e))}}),ec}tO(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=r[e];ec.prototype[e]=function(){var i=this._wrapped;return null!=i&&(t.apply(i,arguments),("shift"===e||"splice"===e)&&0===i.length&&delete i[0]),im(this,i)}}),tO(["concat","join","slice"],function(e){var t=r[e];ec.prototype[e]=function(){var e=this._wrapped;return null!=e&&(e=t.apply(e,arguments)),im(this,e)}});var ib=iv({__proto__:null,VERSION:n,restArguments:C,isObject:T,isNull:k,isUndefined:E,isBoolean:A,isElement:S,isString:I,isNumber:M,isDate:N,isRegExp:O,isError:L,isSymbol:P,isArrayBuffer:R,isDataView:W,isArray:V,isFunction:z,isArguments:K,isFinite:Q,isNaN:G,isTypedArray:en,isEmpty:eo,isMatch:el,isEqual:eh,isMap:e_,isWeakMap:ex,isSet:eC,isWeakSet:eT,keys:ea,allKeys:ep,values:ek,pairs:eE,invert:eA,functions:eS,methods:eS,extend:eI,extendOwn:eM,assign:eM,defaults:eN,create:eL,clone:eP,tap:eR,get:eH,has:eF,mapObject:eQ,identity:eB,constant:J,noop:eG,toPath:e$,property:eW,propertyOf:eJ,matcher:eU,matches:eU,times:eZ,random:eX,now:e0,escape:e3,unescape:e4,templateSettings:e9,template:tt,result:ti,uniqueId:ts,chain:tr,iteratee:eq,partial:to,bind:tl,bindAll:td,memoize:th,delay:tp,defer:tf,throttle:tg,debounce:tm,wrap:tv,negate:tb,compose:ty,after:tw,before:t_,once:tx,findKey:tC,findIndex:tk,findLastIndex:tE,sortedIndex:tA,indexOf:tD,lastIndexOf:tI,find:tM,detect:tM,findWhere:tN,each:tO,forEach:tO,map:tL,collect:tL,reduce:tR,foldl:tR,inject:tR,reduceRight:t$,foldr:t$,filter:tj,select:tj,reject:tz,every:tH,all:tH,some:tF,any:tF,contains:tB,includes:tB,include:tB,invoke:tU,pluck:tW,where:tV,max:tY,min:tq,shuffle:tJ,sample:tG,sortBy:tZ,groupBy:t0,indexBy:t1,countBy:t2,partition:t3,toArray:tQ,size:t4,pick:t5,omit:t8,first:t6,head:t6,take:t6,initial:t7,last:it,rest:ie,tail:ie,drop:ie,compact:ii,flatten:is,without:ia,uniq:io,unique:io,union:il,intersection:ic,difference:ir,unzip:iu,transpose:iu,zip:id,object:ih,range:ip,chunk:ig,mixin:iv,default:ec});ib._=ib,t.VERSION=n,t._=ib,t._escape=e3,t._unescape=e4,t.after=tw,t.allKeys=ep,t.before=t_,t.bind=tl,t.bindAll=td,t.chain=tr,t.chunk=ig,t.clone=eP,t.compact=ii,t.compose=ty,t.constant=J,t.contains=tB,t.countBy=t2,t.create=eL,t.debounce=tm,t.defaults=eN,t.defer=tf,t.delay=tp,t.difference=ir,t.each=tO,t.every=tH,t.extend=eI,t.extendOwn=eM,t.filter=tj,t.find=tM,t.findIndex=tk,t.findKey=tC,t.findLastIndex=tE,t.findWhere=tN,t.first=t6,t.flatten=is,t.functions=eS,t.get=eH,t.groupBy=t0,t.has=eF,t.identity=eB,t.indexBy=t1,t.indexOf=tD,t.initial=t7,t.intersection=ic,t.invert=eA,t.invoke=tU,t.isArguments=K,t.isArray=V,t.isArrayBuffer=R,t.isBoolean=A,t.isDataView=W,t.isDate=N,t.isElement=S,t.isEmpty=eo,t.isEqual=eh,t.isError=L,t.isFinite=Q,t.isFunction=z,t.isMap=e_,t.isMatch=el,t.isNaN=G,t.isNull=k,t.isNumber=M,t.isObject=T,t.isRegExp=O,t.isSet=eC,t.isString=I,t.isSymbol=P,t.isTypedArray=en,t.isUndefined=E,t.isWeakMap=ex,t.isWeakSet=eT,t.iteratee=eq,t.keys=ea,t.last=it,t.lastIndexOf=tI,t.map=tL,t.mapObject=eQ,t.matcher=eU,t.max=tY,t.memoize=th,t.min=tq,t.mixin=iv,t.negate=tb,t.noop=eG,t.now=e0,t.object=ih,t.omit=t8,t.once=tx,t.pairs=eE,t.partial=to,t.partition=t3,t.pick=t5,t.pluck=tW,t.property=eW,t.propertyOf=eJ,t.random=eX,t.range=ip,t.reduce=tR,t.reduceRight=t$,t.reject=tz,t.rest=ie,t.restArguments=C,t.result=ti,t.sample=tG,t.shuffle=tJ,t.size=t4,t.some=tF,t.sortBy=tZ,t.sortedIndex=tA,t.tap=eR,t.template=tt,t.templateSettings=e9,t.throttle=tg,t.times=eZ,t.toArray=tQ,t.toPath=e$,t.union=il,t.uniq=io,t.uniqueId=ts,t.unzip=iu,t.values=ek,t.where=tV,t.without=ia,t.wrap=tv,t.zip=id},330:function(e,t,i){e.exports=i(295)._}},i={};function n(e){var s=i[e];if(void 0!==s)return s.exports;var r=i[e]={exports:{}};return t[e].call(r.exports,r,r.exports,n),r.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=(()=>{if("object"==typeof globalThis)return globalThis;try{return this||Function("return this")()}catch(e){if("object"==typeof window)return window}})(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{"use strict";let e,t,i,r,a,o;n.r(s),n.d(s,{ItemCheckboxEl:()=>iZ,AvatarBadged:()=>eQ,version:()=>$,log:()=>M,MessageEl:()=>i6,AvatarGroupEl:()=>ts,tablessortable:()=>o3,id:()=>oK,contextPath:()=>o8,responsiveheader:()=>o1,progressBars:()=>rN,debounce:()=>oU,I18n:()=>eY,ProgressiveDataSet:()=>oF,ToggleEl:()=>s4,flag:()=>no,undim:()=>o9,warn:()=>N,TabContainerEl:()=>rJ,NavigationEl:()=>rb,FancyFileInput:()=>nc,messages:()=>oZ,Header:()=>aV,dim:()=>oV,SelectEl:()=>nK,TabPaneEl:()=>rX,sidebar:()=>oD,SpinnerEl:()=>tg,InlineDialog2:()=>oz,escapeHtml:()=>oY,isClipped:()=>oQ,debounceImmediate:()=>oW,LayerManager:()=>oH,keyCode:()=>oG,InlineDialogEl:()=>rg,TabItemEl:()=>rZ,dialog2:()=>tk,tabs:()=>o4,toInit:()=>eV,trigger:()=>F,formValidation:()=>oq,whenIType:()=>o$,SectionEl:()=>i0,ItemLinkEl:()=>iG,ProgressBarEl:()=>rI,unbind:()=>H,FocusManager:()=>oj,_addID:()=>o5,LabelEl:()=>np,RestfulTable:()=>oc,error:()=>O,bind:()=>z,$:()=>eU,DropdownEl:()=>i1,populateParameters:()=>oX,clone:()=>oB,layer:()=>oJ,ItemButtonEl:()=>iJ,format:()=>P,select:()=>o2,banner:()=>ta,ItemRadioEl:()=>iX,CalendarWidget:()=>aG,params:()=>o0,AvatarEl:()=>e3,DatePicker:()=>aX,navigation:()=>ry});var l,c,u,h,p,f,g,m,v,b,y,w=n(195),_=n.n(w);let x=window.jQuery||window.Zepto||_(),C="I18n";function T(){"object"!=typeof window.AJS&&(window.AJS={})}function k(e,t){return T(),window.AJS[e]=t}var E=n(714),A=n.n(E);function S(e){let t;return{type:A().type.CLASSNAME,attached:function(i){!function(e,t){let i=!1;if(t(()=>{i=!0}),i)return;let n=new MutationObserver(e=>{(function(e){for(let t of e)if("childList"===t.type)return!0;return!1})(e)&&t(()=>n.disconnect())});n.observe(e,{childList:!0})}(i,n=>{t=n;let s=_()(`input[type=${e}]`,i);s.each(function(e,t){_()('<span class="aui-form-glyph"></span>').insertAfter(t)}),s.length>0&&t()})},detached:function(e){_()(".aui-form-glyph",e).remove(),t&&t()}}}function D(e,t){var i=x(e);return void 0===t&&(t=!0),i.each(function(){this.disabled=!t})}function I(e){return function(){"undefined"!=typeof console&&console[e]&&Function.prototype.apply.call(console[e],console,arguments)}}A()("checkbox",S("checkbox")),A()("radio",S("radio")),k("enable",D),k("inlineHelp",function(){x(document).on("click",".icon-inline-help",function(){var e=x(this).siblings(".field-help");e.hasClass("hidden")?e.removeClass("hidden"):e.addClass("hidden")})});var M=I("log"),N=I("warn"),O=I("error");function L(e){var t=/'(?!')/g,i=/^\d+$/,n=/^(\d+),number$/,s=/^(\d+),choice,(.+)/,r=/^(\d+)([#<])(.+)/,a=function(t,a){var o,l="";if(o=t.match(i))l=a.length>++t?a[t]:"";else if(o=t.match(n))l=a.length>++o[1]?a[o[1]]:"";else if(o=t.match(s)){var c=a.length>++o[1]?a[o[1]]:null;if(null!==c){for(var u=o[2].split("|"),h=!1,p=null,f=0;f<u.length;f++){var g=u[f].match(r);if(null==g){h=!0;continue}var m=parseInt(g[1],10);if(c<m)if(p){l=p;break}else{l=g[3];break}if(c==m&&"#"==g[2]){l=g[3];break}f==u.length-1&&(l=g[3]),p=g[3]}h&&O('The format "'+t+'" from message "'+e+'" is invalid.');var v=[l].concat(Array.prototype.slice.call(a,1));l=L.apply(null,v)}}return l},o=function(e){for(var t=!1,i=-1,n=0,s=0;s<e.length;s++){var r=e.charAt(s);if("'"==r&&(t=!t),!t){if("{"===r)0===n&&(i=s),n++;else if("}"===r&&n>0&&0==--n){var a=[];return a.push(e.substring(0,s+1)),a.push(e.substring(0,i)),a.push(e.substring(i+1,s)),a}}}return null};return(function(e){var i=arguments,n="";if(!e)return n;for(var s=o(e);s;)e=e.substring(s[0].length),n+=s[1].replace(t,""),n+=a(s[2],i),s=o(e);return n+e.replace(t,"")}).apply(null,arguments)}k("error",O),k("log",M),k("warn",N),k("format",L);let P=L;var R="10.1.0";k("version",R);let $=R,j=x(window);function z(e,t,i){try{if("function"==typeof i)return j.on(e,!1,t,i);return j.on(e,!1,t)}catch(e){M("error while binding: ",e.message)}}function H(e,t){try{return j.off(e,t)}catch(e){M("error while unbinding: ",e.message)}}function F(e,t){try{return j.trigger(e,t)}catch(e){M("error while triggering: "+e.message)}}k("bind",z),k("trigger",F),k("unbind",H);let B={"<":"&lt;",">":"&gt;","&":"&amp;",'"':"&quot;","'":"&#39;","`":"&#96;"},U=RegExp(`[${Object.keys(B).join("")}]`,"g");function W(e){return e.replace(U,e=>B[e])}k("escapeHtml",W);let V=Object.prototype.hasOwnProperty,Y=[];function q(...e){"undefined"!=typeof console&&console.warn&&Function.prototype.apply.call(console.warn,console,e)}let K=(e,t)=>Q(e,t);function Q(e,t){if("function"==typeof e)return e;let i=!1;return t=t??{},function(n){var s,r;let a,o,l=(s=n||1,o=(a=Error()).stack??a.stacktrace,(o=o?.replace(/^Error\n/,"")??"").split("\n")[s+2]??"");if(!i||!Y.includes(l)){Y.push(l),i=!0;let n="DEPRECATED "+(t.deprecationType??"")+"- "+((r=e)?(r=""+r).charAt(0).toUpperCase()+r.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),l=""===l?" \n No stack trace of the deprecated usage is available in your current browser.":" \n "+String(l),t.extraObject?q(n+="\n",t.extraObject,l):q(n,l)}}}function G(e,t){let i=e.options?.displayName;i=i?" ("+i+")":"";let n=Object.assign({deprecationType:"CSS",extraObject:t},e.options);Q("'"+e.selector+"' pattern"+i,n)()}function J(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=Q(t||e.name||"this function",i);return function(...t){return n(),e.apply(this,t)}}function Z(e,t,i){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=J(e,t,i);return n.prototype=e.prototype,Object.assign(n,e),n}function X(e,t,i){if("function"==typeof e[t]){(i=i??{}).deprecationType=i.deprecationType??"JS";let n=i.displayName??t;e[t]=J(e[t],n,i)}else{var n;let s,r;n=i,s=e[t],(n=n??{}).deprecationType=n.deprecationType??"JS",r=Q(n.displayName??t,n),Object.defineProperty(e,t,{get:function(){return r(),s},set:function(e){return s=e,r(),e}})}}let ee=[];function et(e){e=e.jquery?e[0]:e,window.getComputedStyle(e,null).getPropertyValue("left")}function ei(e,t){g||(g=document.body),!0===e&&es();let i=!!ei.$dim&&!ei.$dim[0].hasAttribute("hidden");return ei.$dim&&(ei.$dim.remove(),ei.$dim=null),ei.$dim=x('<div aria-hidden="true"></div>').addClass("aui-blanket"),ei.$dim.appendTo(document.body),i||(et(ei.$dim),ei.cachedOverflow={overflow:g.style.overflow,overflowX:g.style.overflowX,overflowY:g.style.overflowY},g.style.overflowX="hidden",g.style.overflowY="hidden",g.style.overflow="hidden"),ei.$dim.prop("hidden",!1),t&&ei.$dim.css({zIndex:t}),ei.$dim}function en(){ei.$dim&&(ei.$dim[0].setAttribute("hidden",""),g&&(g.style.overflow=ei.cachedOverflow.overflow,g.style.overflowX=ei.cachedOverflow.overflowX,g.style.overflowY=ei.cachedOverflow.overflowY))}k("deprecate",{fn:J,construct:Z,css:function(e,t){"string"==typeof e&&(e=[e]),e.forEach(function(e){var i;let n={selector:e,options:t};for(let t of document.querySelectorAll(e))G(n,t);i=n,ee.push(i),void 0===a&&(a=new MutationObserver(function(e){e.forEach(function(e){for(let t of e.addedNodes)1===t.nodeType&&ee.forEach(function(e){return function(t){var i;i=t.selector,e instanceof Element&&e.matches(i)&&G(t,e)}}(t))})})).observe(document,{childList:!0,subtree:!0})})},prop:X,obj:function(e,t,i){for(let n in i=i??{},e)V.call(e,n)&&(i.deprecationType=i.deprecationType??"JS",i.displayName=t+n,i.alternativeName=i.alternativeNamePrefix&&i.alternativeNamePrefix+n,X(e,n,Object.assign({},i)))},getMessageLogger:K});let es=K("useShim",{extraInfo:"useShim has no alternative as it is now calculated by dim()."});k("dim",ei),k("undim",en);var er={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};function ea(e,t){return window.define&&(0,window.define)(e,[],function(){return t}),t}k("keyCode",er);let eo=A().noConflict(),el=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 ec(e){return el(e).get("last-trigger")||ep(e)[0]}function eu(e,t){var i=t&&t.nodeType&&1===t.nodeType;return el(e).set("last-trigger",!!i&&t)}function ed(e,t){var i=ec(e);i&&t(i)}function eh(e,t){return Array.prototype.forEach.call(ep(e),t)}function ep(e){let t=window.frames,i=`[aria-controls="${e.id}"]`,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}let r=document.querySelectorAll(i),a=Array.prototype.slice.apply(r).concat(n);return 0===a.length&&!0===s&&N(`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.`),a}function ef(e){return document.getElementById(e.getAttribute("aria-controls"))}function eg(e){return"true"!==e.getAttribute("aria-disabled")}function em(e,t){if(eg(e)){var i=ef(e);i&&i.message&&i.message(t)}}let ev={click(e,t){var i;(i=x(t.target).closest("a[href]",e)).length&&i[0]!==e||(em(e,t),t.preventDefault())},keydown(e,t){let i=t.data;(i===er.ENTER||i===er.SPACE)&&(t.preventDefault(),t.type="click",ev.click(e,t))},mouseenter(e,t){em(e,t)},mouseleave(e,t){em(e,t)},focus(e,t){em(e,t)},blur(e,t){let i;(i=t.relatedTarget)||(i=document.activeElement),x(ef(e)).find(i).length>0||em(e,t)}};function eb(e){return"visible"===x.css(e,"visibility")&&x(e).is(":visible")}function ey(e,t){var i=e.nodeName.toLowerCase();if("aui-select"===i)return!0;if("area"===i){var n=e.parentNode,s=n.name,r=x("img[usemap=#"+s+"]").get();return!!e.href&&!!s&&"map"===n.nodeName.toLowerCase()&&r&&eb(r)}var a=/input|select|textarea|button|object|iframe/.test(i),o="a"===i,l=e.href||t;return(a?!e.disabled:o?l:t)&&eb(e)}Object.keys(ev).forEach(function(e){let t=ev[e];x(document).on(`${e}.aui-trigger`,"[data-aui-trigger]",function(i){t(i.currentTarget,function(e,t){let{target:i,currentTarget:n,relatedTarget:s}=e,{keyCode:r,which:a}=e;return{type:t,data:"keydown"===t?a||r:void 0,target:i,currentTarget:n,relatedTarget:s,preventDefault:()=>e.preventDefault()}}(i,e))})}),eo("data-aui-trigger",{type:eo.type.ATTRIBUTE,prototype:{disable:function(){this.setAttribute("aria-disabled","true")},enable:function(){this.setAttribute("aria-disabled","false")},isEnabled:function(){return eg(this)}}}),ea("aui/trigger"),x.extend(x.expr.pseudos,{"aui-focusable":e=>ey(e,!isNaN(x.attr(e,"tabindex"))),"aui-tabbable":function(e){var t=x.attr(e,"tabindex"),i=isNaN(t);return(i||t>=0)&&ey(e,!i)}});var ew="_aui-focus-restore";function e_(e){return e.is(".aui-dialog2")||e.is('[aui-focus-trap="true"]')}function ex(){this._focusTrapStack=[],this._handler}function eC(e,t){if(0===e.length||t.keyCode!==er.TAB)return;let i=t.shiftKey?-1:1,n=t.target,s=e[e.length-1],r=s.find(":aui-tabbable");if(!r.length&&e_(s)&&(s.trigger("focus"),t.preventDefault()),!r.length)return;let a=r.index(n),o=-1;if(a>-1)o=a;else{let e;if((e=x(n).closest(".aui-layer")).length||(e=s.find("[aria-controls]").map(function(){return document.getElementById(this.getAttribute("aria-controls"))}).has(n)),e.length){let t=e.find(":aui-tabbable"),s=t.index(n)+i;if(!(s<0)&&!(s>=t.length))return;{let t=ec(e.get(0));o=r.index(t)}}}o=o>-1?function(e,t,i,n){function s(e){return(e+i)%n.length}let r=s(t);if("radio"===e.type&&e.name)for(;n.eq(r).attr("name")===e.name&&r!==t;)r=s(r);if(r!==t&&"radio"===n.eq(r).attr("type")){let e,t=n.eq(r).attr("name"),s=n.filter(function(){return"radio"===this.type&&this.name===t}),a=s.filter(":checked");e=a.length>0?a.first():i>0?s.first():s.last(),r=n.index(e)}return r}(n,o,i,r):0,"IFRAME"!==r.get(o).nodeName&&(r.eq(o).trigger("focus"),t.preventDefault())}function eT(){return e||(e=new ex),e}function ek(e,t){var i="_aui-widget-"+e;return function(e,n){x.isPlainObject(e)?r=e:(s=e,r=n);var s,r,a,o=s&&x(s);return o&&o.data(i)?a=o.data(i):(o=(a=new t(o,r||{})).$el).data(i,a),a}}ex.defaultFocusSelector=":aui-tabbable",ex.prototype.enter=function(e,t){if(!function(e,t=document.activeElement){e.data(ew,t)}(e,t),"false"!==e.attr("data-aui-focus")){var i=e.attr("data-aui-focus-selector")||ex.defaultFocusSelector;(e.is(i)?e:e.find(i)).first().trigger("focus")}e_(e)&&(this._focusTrapStack.push(e),this._handler||(this._handler=eC.bind(void 0,this._focusTrapStack),x(document).on("keydown.aui-focus-manager",this._handler)))},ex.prototype.exit=function(e){e_(e)&&(this._focusTrapStack.splice(this._focusTrapStack.indexOf(e),1),this._focusTrapStack.length||(x(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 i=x(e.data(ew));i.length&&(e.removeData(ew),i.trigger("focus"))}},eT.global=eT(),k("FocusManager",eT);let eE="_aui-internal-layer-",eA="_aui-internal-layer-global-";var eS=x(document);function eD(e,t,i){var n=x.Event(eE+t),s=x.Event(eA+t),r=new CustomEvent("aui-layer-"+i,{bubbles:!0,cancelable:!0}),a=new CustomEvent("aui-"+i,{bubbles:!0,cancelable:!0});return e.trigger(n),e.trigger(s,[e]),e[0].dispatchEvent(r),e[0].dispatchEvent(a),!n.isDefaultPrevented()&&!s.isDefaultPrevented()&&!r.defaultPrevented&&!a.defaultPrevented}function eI(e){this.$el=x(e||'<div class="aui-layer"></div>'),this.el=this.$el[0],this.$el.addClass("aui-layer")}function eM(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}eI.prototype={below:function(){return ej.global.item(ej.global.indexOf(this.$el)-1)},above:function(){return ej.global.item(ej.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(eE+e,t),this},off:function(e,t){return this.$el.off(eE+e,t),this},show:function(){return this.isVisible()||ej.global.indexOf(this.$el)>-1||!eD(this.$el,"beforeShow","show")||("none"===this.$el.css("display")&&this.$el.css("display",""),ej.global.push(this.$el)),this},hide:function(){if(!this.isVisible())return this;let e=this;return function(e,t,i,n){var s;(s=window.getComputedStyle(e).transitionProperty)&&s.indexOf(t)>-1?e.addEventListener("transitionend",function s(r){t===r.propertyName&&(i.call(e),n&&e.removeEventListener("transitionend",s))}):i.call(e)}(this.$el.get(0),"opacity",function(){e.isVisible()||(this.style.display="none")},!0),ej.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=eM(this.el,"modal"),t=this.el.hasAttribute("persistent");return"true"===e||t},getDOMContainer:function(){let e=eM(this.el,"dom-container");return e&&(e=document.querySelector(e)||document.body),e},_hideLayer:function(e){return(!e||!!eD(this.$el,"beforeHide","hide"))&&((this.isPersistent()||this.isBlanketed())&&eT.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(eE+"hide"),this.$el.trigger(eA+"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()&&eT.global.enter(this.$el),this.$el.trigger(eE+"show"),this.$el.trigger(eA+"show",[this.$el])}};var eN=ek("layer",eI);function eO(e,t){for(var i=e.length;i--;)if(t(e[i]))return i;return -1}function eL(e,t){return eO(e,function(e){return e[0]===t[0]})}function eP(e){return eO(e,function(e){return eN(e).isBlanketed()})}function eR(e,t){var i=eP(e);t!==i&&(i>-1?ei(!1,e[i].css("z-index")-20):en())}function e$(e,t,i,n=!0){if(t<0)return[!1,null];for(var s,r=e.length-1;r>=t;r--){var a=eN(s=e[r]);if(i||!a.isPersistent()){if(!a._hideLayer(n))return[!1,s];e.splice(r,1)}}return[!0,s]}function ej(){this._stack=[]}function ez(e){if(!e.length)return!1;var t=document.getElementById(e.attr("aria-controls"));return ej.global.indexOf(t)>-1}eN.on=function(e,t,i){return eS.on(eA+e,t,i),this},eN.off=function(e,t,i){return eS.off(eA+e,t,i),this},ej.prototype={push:function(e){var t=e instanceof x?e:x(e);if(eL(this._stack,t)>=0)throw Error("The given element is already an active layer.");this.popLayersBeside(t);var i=eN(t),n=function(e){var t;if(e.length){var i=parseInt(e[e.length-1].css("z-index"),10);t=(isNaN(i)?0:i)+100}else t=0;return Math.max(3e3,t)}(this._stack);return i._showLayer(n),i.isBlanketed()&&ei(!1,n-20),this._stack.push(t),this},popLayersBeside:function(e){let t=x(e).get(0);if(!ec(t)){var i=eP(this._stack);e$(this._stack,++i,!1);return}let n=function(e){var t=ec(e);if(t)return x(t).closest(".aui-layer").get(0)}(t);if(n){let e=this.indexOf(n);e$(this._stack,++e,!1)}else e$(this._stack,0,!1)},indexOf:function(e){return eL(this._stack,x(e))},item:function(e){return this._stack[e]},hideAll:function(){return this._stack.slice().reverse().forEach(function(e){let t=eN(e);t.isBlanketed()||t.isPersistent()||t.hide()}),this},getNextLowerNonPersistentOrBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n--;n>=0;){var s=eN(t=this._stack[n]);if(!s.isPersistent()||s.isBlanketed())return t;n--}return null},getNextHigherNonPeristentAndNonBlanketedLayer:function(e){var t,i=e instanceof x?e:x(e),n=eL(this._stack,i);if(n<0)return null;for(n++;n<this._stack.length;){var s=eN(t=this._stack[n]);if(!(s.isPersistent()||s.isBlanketed()))return t;n++}return null},getTopLayer:function(){return this._stack[this._stack.length-1]||null},getTopOpenLayer:function(){return this._stack.slice().reverse().find(e=>void 0!==e.attr("open"))||null},popUntil:function(e,t=!1){var i=e instanceof x?e:x(e),n=eL(this._stack,i);if(-1===n)return null;let s=eP(this._stack),r=eN(i),[a,o]=e$(this._stack,n+1,r.isBlanketed(),t);return a&&r._hideLayer(t)?(this._stack.splice(n,1),eR(this._stack,s),i):o},popTopIfNonPersistent:function(e=!1){var t=this.getTopLayer(),i=eN(t);return!t||i.isPersistent()?null:this.popUntil(t,e)},popUntilTopBlanketed:function(e=!1){var t=eP(this._stack);if(t<0)return null;var i=this._stack[t];if(eN(i).isPersistent()){var n=this.getNextHigherNonPeristentAndNonBlanketedLayer(i);if(n){var s=eL(this._stack,n);return e$(this._stack,s,!0,e),n}return null}return e$(this._stack,t,!0),eR(this._stack,t),i},popUntilTopPersistent:function(e=!1){var t,i=ej.global.getTopLayer();if(i){var n=eP(this._stack),s=eN(i);if(s.isPersistent())if(s.isBlanketed())return;else{if(s=eN(i=ej.global.getNextLowerNonPersistentOrBlanketedLayer(i)),!i||s.isPersistent())return;t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}else t=eL(this._stack,i),e$(this._stack,t,!0,e),eR(this._stack,n)}}},eS.on("keydown",function(e){e.keyCode===er.ESCAPE&&(ej.global.popUntilTopPersistent(!0),e.preventDefault())}),eS.on("click",".aui-blanket",function(e){ej.global.popUntilTopBlanketed(!0)&&e.preventDefault()}),eS.on("click",function(e){var t=x(e.target);if(!t.closest(".aui-blanket").length){var i=t.closest("[aria-controls]"),n=t.closest(".aui-layer");if(!n.length&&!ez(i)){let t=x.Event("aui-close-layers-on-outer-click");return(eS.trigger(t),t.isDefaultPrevented())?void e.preventDefault():void ej.global.hideAll()}if(!ez(i)&&n.length){var s=ej.global.getNextHigherNonPeristentAndNonBlanketedLayer(n);s&&eN(s).hide()}}}),ej.global=new ej,eN.Manager=ej,k("layer",eN),k("LayerManager",eN.Manager),eN.Manager;let eH={sinceVersion:"9.0.0",removeInVersion:"11.0.0"},eF=k("params",new Proxy({},{get:function(e,t){return K("AJS.params",eH)(),e[t]}})),eB=J(function(e){e||(e=eF),x(".parameters input").each(function(){var t=this.value,i=this.title||this.id;x(this).hasClass("list")?e[i]?e[i].push(t):e[i]=[t]:e[i]=t.match(/^(tru|fals)e$/i)?"true"===t.toLowerCase():t})},"populateParameters",{sinceVersion:"9.0.0",removeInVersion:"11.0.0"});k("populateParameters",eB),x(function(){var e=x("body");e.data("auiVersion")||e.attr("data-aui-version",$),eB()}),k("$",x);let eU=x;function eW(e){return x.when(x.ready).then(function(){setTimeout(function(){try{e.call(this,x)}catch(t){O("Failed to run init function: "+t.message,e,t,t.stack)}},1)}),this}k("toInit",eW);let eV=eW;n(688);let eY=function(e){T(),"object"!=typeof window.AJS[C]&&(window.AJS[C]={});let t=window.AJS[C];for(let i in e)void 0===t[i]&&(t[i]=e[i]);return t}({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)?P.apply(null,[this.keys[e]].concat(t)):e}}),eq="bottom-end",eK=["top-start","top-end","bottom-start","bottom-end"],eQ=eo("aui-avatar-badged",{attributes:{placement:{value:eq,fallback(e,{newValue:t,oldValue:i}){let n;n=eK.includes(t)?t:eq,i&&e.classList.remove(`aui-avatar-badged-${i}`),e.classList.add(`aui-avatar-badged-${n}`)}}},created:function(e){e.classList.add("aui-avatar-badged")}});var eG=n(2),eJ=n.n(eG);let eZ=new Map([["project","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMTI4IiBoZWlnaHQ9IjEyOCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgxOS4wMDAwMDAsIDMyLjAwMDAwMCkiPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDMyLjUgTDU0LjU4MzMzMzMsMzIuNSBMNTQuNTgzMzMzMywyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSwzMi41IFogTTkuMTY2NjY2NjcsMTguODMzMTE2NiBDOS4xNjY2NjY2NywxNi4zNDc5NTQ5IDExLjIzNjU4MSwxNC4zMzMzMzMzIDEzLjcxOTU2NjIsMTQuMzMzMzMzMyBMNTkuMTEzNzY3MSwxNC4zMzMzMzMzIEM2MS42MjgyNjQxLDE0LjMzMzMzMzMgNjMuNjY2NjY2NywxNi4zODE1MTIzIDYzLjY2NjY2NjcsMTguODMzMTE2NiBMNjMuNjY2NjY2Nyw0MS41ODMzMzMzIEw5LjE2NjY2NjY3LDQxLjU4MzMzMzMgTDkuMTY2NjY2NjcsMTguODMzMTE2NiBaIiAvPgogICAgICAgICAgICA8cGF0aCBmaWxsPSIjZmZmIgogICAgICAgICAgICAgICAgZD0iTTE4LjI1LDkuODEzODM2ODIgQzE4LjI1LDQuNzg1MDA2MSAyMi4zMjk2MDAzLDAuNzA4MzMzMzMzIDI3LjMyMzg1NTQsMC43MDgzMzMzMzMgTDM2LjQyNjE0NDYsMC43MDgzMzMzMzMgQzQxLjQzNzQ5NjUsMC43MDgzMzMzMzMgNDUuNSw0Ljc2ODEyODI1IDQ1LjUsOS44MTM4MzY4MiBMNDUuNSwyMy40MTY2NjY3IEwxOC4yNSwyMy40MTY2NjY3IEwxOC4yNSw5LjgxMzgzNjgyIFogTTM2LjQxNjY2NjcsOS44MTM4MzY4MiBDMzYuNDE2NjY2Nyw5Ljc5ODAzMzE1IDM2LjQxODQ3NDgsOS43OTMwMzc4NCAzNi40MjA3NTE1LDkuNzkxNjY2NjcgTDI3LjMyMzg1NTQsOS43OTE2NjY2NyBDMjcuMzQ0NzIyNCw5Ljc5MTY2NjY3IDI3LjMzMzMzMzMsOS44MDMwODA1OSAyNy4zMzMzMzMzLDkuODEzODM2ODIgTDI3LjMzMzMzMzMsMTQuMzMzMzMzMyBMMzYuNDE2NjY2NywxNC4zMzMzMzMzIEwzNi40MTY2NjY3LDkuODEzODM2ODIgWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMS40Mzg2NTMyLDU1LjIwODMzMzMgTDc0Ljk5NTM1NjIsNTUuMjA4MzMzMyBMNzkuNTQ1MjI0Miw0MS41ODMzMzMzIEw5LjgwNDQ5NzUyLDQxLjU4MzMzMzMgTDExLjQzODY1MzIsNTUuMjA4MzMzMyBaIE0wLjEwNDg1NDcsMzYuOTg3NTQxIEMtMC4xOTIzOTk3NzUsMzQuNTA5MTQwNSAxLjU4NjU3MTcsMzIuNSA0LjA5NTAyODM5LDMyLjUgTDg3LjYyNjQ3MzUsMzIuNSBDOTAuMTI3NDQwMSwzMi41IDkxLjUyMjU2NTYsMzQuMzkzNTA2IDkwLjcyMzEwNDcsMzYuNzg3NTY1NiBMODIuOTcwMjg0Niw2MC4wMDQxMDEgQzgyLjE3OTU0MDIsNjIuMzcyMDU4MiA3OS41Mjc5NDQ1LDY0LjI5MTY2NjcgNzYuOTk4NTMzOCw2NC4yOTE2NjY3IEw3LjkxOTYzOTI0LDY0LjI5MTY2NjcgQzUuNDEyMjc2NzMsNjQuMjkxNjY2NyAzLjE0MTEzNTcxLDYyLjMwMjk1NTUgMi44NDE0MzA5Nyw1OS44MDQxMjU3IEwwLjEwNDg1NDcsMzYuOTg3NTQxIFoiIC8+CiAgICAgICAgPC9nPgogICAgPC9nPgo8L3N2Zz4K"],["user","data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz4KPHN2ZyB2aWV3Qm94PSIwIDAgMTI4IDEyOCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHJvbGU9ImltZyIgYXJpYS1sYWJlbD0ieHhsYXJnZSI+CiAgICA8Zz4KICAgICAgICA8Y2lyY2xlIGN4PSI2NCIgY3k9IjY0IiByPSI2NCIgZmlsbD0iIzg5OTNhNCIgLz4KICAgICAgICA8Zz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik0xMDMsMTAyLjEzODggQzkzLjA5NCwxMTEuOTIgNzkuMzUwNCwxMTggNjQuMTYzOCwxMTggQzQ4LjgwNTYsMTE4IDM0LjkyOTQsMTExLjc2OCAyNSwxMDEuNzg5MiBMMjUsOTUuMiBDMjUsODYuODA5NiAzMS45ODEsODAgNDAuNiw4MCBMODcuNCw4MCBDOTYuMDE5LDgwIDEwMyw4Ni44MDk2IDEwMyw5NS4yIEwxMDMsMTAyLjEzODggWiIgLz4KICAgICAgICAgICAgPHBhdGggZmlsbD0iI2ZmZiIKICAgICAgICAgICAgICAgIGQ9Ik02My45OTYxNjQ3LDI0IEM1MS4yOTM4MTM2LDI0IDQxLDM0LjI5MzgxMzYgNDEsNDYuOTk2MTY0NyBDNDEsNTkuNzA2MTg2NCA1MS4yOTM4MTM2LDcwIDYzLjk5NjE2NDcsNzAgQzc2LjY5ODUxNTksNzAgODcsNTkuNzA2MTg2NCA4Nyw0Ni45OTYxNjQ3IEM4NywzNC4yOTM4MTM2IDc2LjY5ODUxNTksMjQgNjMuOTk2MTY0NywyNCIgLz4KICAgICAgICA8L2c+CiAgICA8L2c+Cjwvc3ZnPgo="]]),eX=(e,t,i)=>{let n=e.querySelector(".aui-avatar");n.classList.remove(`aui-avatar-${i}`),n.classList.add(`aui-avatar-${t}`)},e0=e=>{if(e.hasAttribute("src"))e2(e,e.getAttribute("src"));else{let t="project"===e.getAttribute("type")?"project":"user";e2(e,eZ.get(t))}},e1=(e,t,i)=>e.querySelector("img").setAttribute(t,i),e2=(e,t)=>e1(e,"src",t),e3=eo("aui-avatar",{template:eJ()(`
2
+ <span class='aui-avatar'>
3
+ <span class='aui-avatar-inner'>
4
+ <img />
5
+ </span>
6
+ <content></content>
7
+ </span>
8
+ `),attributes:{size(e,{newValue:t,oldValue:i}){eX(e,t,i)},type(e,{newValue:t,oldValue:i}){eX(e,t,i),e0(e)},src(e,{newValue:t}){e2(e,t)},alt:{value:"",fallback(e,{newValue:t}){e1(e,"alt",t)}},title(e,{newValue:t}){e1(e,"title",t)}},created:function(e){e.className="aui-avatar",e0(e),null!==e.querySelector("aui-avatar-badged")&&e.setAttribute("role","img")}}),e4="medium",e9={xsmall:16,small:24,medium:32,large:48,xlarge:64,xxlarge:96,xxxlarge:128},e5=(e,t)=>{let i=e.querySelectorAll("aui-avatar"),n=[...i].slice(4);te(i,t);let s=e.querySelector(".aui-avatar-group-dropdown");if(s&&s.remove(),0===n.length)return;let r=e8(t,n);e.appendChild(r)},e8=(e,t)=>{let i=document.createElement("div"),n=e7(`+${t.length}`),s=e6();return t.forEach(e=>{s.append(e)}),i.classList.add("aui-avatar-group-dropdown"),i.style.left=tt(e,4.2),i.appendChild(n),i.appendChild(s),i},e7=e=>{let 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},e6=()=>{let e=document.createElement("div");return e.classList.add("aui-avatar-group-dropdown-menu"),e},te=(e,t)=>{e.forEach((e,i)=>{let 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=tt(t,i),e.style.zIndex=`${5-i}`)})},tt=(e,t)=>{let i=e9[e];return`${(i-.25*i)*t}px`};document.addEventListener("click",e=>{let 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")?ti(i):tn(i)),document.querySelectorAll(".aui-avatar-group-dropdown-show").forEach(e=>{e!==i&&ti(e)}))}),document.addEventListener("keydown",e=>{if("Escape"!==e.key)return;let t=document.querySelector(".aui-avatar-group-dropdown-show");t&&ti(t)});let ti=e=>{let t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.remove("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","false")},tn=e=>{let t=e.querySelector(".aui-avatar-group-dropdown-button");e.classList.add("aui-avatar-group-dropdown-show"),t.setAttribute("aria-expanded","true")},ts=eo("aui-avatar-group",{attributes:{size:{value:e4,fallback(e,{newValue:t,oldValue:i}){let n=Object.keys(e9).includes(t)?t:e4;i&&e.classList.remove(`aui-avatar-group-${i}`),e.classList.add(`aui-avatar-group-${n}`),eo.init(e),e5(e,n)}}},created(e){e.classList.add("aui-avatar-group")}});function tr(e){var t;let i,n,s=document.getElementById("header");if(!s)throw Error('Unable to find the application header. Please ensure that an element with the ID "header" is present in the DOM');let r=function({body:e="",type:t="error"}){let i=document.createElement("div");i.className=`aui-banner aui-banner-${t}`,i.setAttribute("role","alert"),i.innerHTML=e;let n=document.createElement("div");return n.innerText=`${t}`,n.classList.add("assistive"),i.prepend(n),i}(e);return t=r,s.prepend(t),et(t),i=s.querySelectorAll(".aui-banner[hidden]"),n=K("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."}),i.forEach(function(e){n(),e.remove()}),r}new MutationObserver(function(e){e.forEach(function(e){let t=e.target;e.removedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.removedNodes[0].classList.contains("aui-avatar-group-item")&&e5(t,t.getAttribute("size")),e.addedNodes.length>0&&t.classList.contains("aui-avatar-group")&&e.addedNodes[0].classList.contains("aui-avatar")&&setTimeout(()=>{e5(t,t.getAttribute("size"))},0)})}).observe(document.documentElement,{attributes:!1,characterData:!0,childList:!0,subtree:!0,attributeOldValue:!1,characterDataOldValue:!1}),ea("aui/banner",tr),k("banner",tr);let ta=tr;var to=n(330);let tl={SMALL:{name:"small",px:20,radius:9},MEDIUM:{name:"medium",px:30,radius:13.5},LARGE:{name:"large",px:50,radius:22.5}},tc={filled:!1,size:tl.MEDIUM.name},tu=`Add CSS to the parent element of the <aui-spinner>.
9
+ Use CSS flexbox or grid to vertically align it.
10
+ See https://css-tricks.com/centering-css-complete-guide/ for techniques.`,td=K("<aui-spinner> filled attribute",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:tu}),th=K("<aui-spinner> filled property",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",extraInfo:tu});function tp(e){let t=tl.MEDIUM.name;return"string"==typeof e&&(e=e.toLowerCase(),Object.keys(tl).map(e=>e.toLowerCase()).indexOf(e)>-1&&(t=e)),t}function tf(e){let t,i,n,{px:s,radius:r}=(0,to.find)(tl,t=>t.name===e._data.size)||tl.MEDIUM;(t=e.querySelector("svg"),i=e.querySelector("circle"),t.setAttribute("size",s),t.setAttribute("height",s),t.setAttribute("width",s),t.setAttribute("viewBox",`0 0 ${s} ${s}`),n=s/2,i.setAttribute("cx",n),i.setAttribute("cy",n),i.setAttribute("r",r),e._data.filled)?!function(e,t){let i=e.parentNode;if(i&&1===i.nodeType){let n=e.getBoundingClientRect(),s=i.getBoundingClientRect(),r=s.top+s.height/2,a=n.top+t/2;e.querySelector("svg").style.top=`${r-a}px`}}(e,s):delete e.querySelector("svg").style.top}let tg=eo("aui-spinner",{template(e){e.innerHTML='<div class="aui-spinner spinner"><svg focusable="false"><circle></circle></svg></div>',tf(e)},attached(e){tf(e)},attributes:{filled:{created:function(e){td(),e._data.filled=!0,tf(e)},removed:function(e){e._data.filled=!1,tf(e)}},size(e,t){e._data.size=tp(t.newValue),tf(e)}},prototype:{get _data(){return this.__data||(this._data=(0,to.defaults)({},tc))},set _data(data){return this.__data=data},set filled(isFilled){th(),isFilled?this.setAttribute("filled",""):this.removeAttribute("filled")},set size(newSize){let e=tp(newSize);this.setAttribute("size",e)}}});function tm(e){return e.hasAttribute("aria-busy")&&"true"===e.getAttribute("aria-busy")}function tv(e){return"INPUT"===e.nodeName}eo("aui-button",{type:eo.type.CLASSNAME,created:function(e){e._spinner=new tg,e._spinner.setAttribute("size",tl.SMALL.name)},prototype:{busy:function(){return tv(this)||tm(this)?N("It is not valid to call busy() on an input button."):(this.appendChild(this._spinner),this.setAttribute("aria-busy",!0),this.setAttribute("busy","")),this},idle:function(){return tv(this)||!tm(this)?N("It is not valid to call idle() on an input button."):(this.removeChild(this._spinner),this.removeAttribute("aria-busy"),this.removeAttribute("busy")),this},isBusy:function(){return tv(this)?(N("It is not valid to call isBusy() on an input button."),!1):tm(this)}}}),ea("aui/button");let tb="aui-close-button",ty=`.${tb}`,tw=`<button type="button" class="${tb}" aria-label="${eY.getText("aui.words.close")}">`,t_={"aui-focus":"false","aui-blanketed":"true"};function tx(e){var t;this._handlers=new WeakMap,e?this.$el=x(e):this.$el=x(`
11
+ <section role="dialog" aria-modal="true" class="aui-layer aui-dialog2 aui-dialog2-medium">
12
+ <header class="aui-dialog2-header">
13
+ <h2 class="aui-dialog2-header-main"></h2>
14
+ ${tw}
15
+ </button>
16
+ </header>
17
+ <div class="aui-dialog2-content"></div>
18
+ <footer class="aui-dialog2-footer"></footer>
19
+ </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,x.each(t_,function(e,i){let n="data-"+e;t[0].hasAttribute(n)||t.attr(n,i)})}tx.prototype.on=function(e,t){let i=this.$el;if(!this._handlers.get(t)){let n=function(e){e.target===i.get(0)&&t.apply(this,arguments)};eN(i).on(e,n),this._handlers.set(t,n)}return this},tx.prototype.off=function(e,t){let i=this.$el,n=this._handlers.get(t);return n&&(eN(i).off(e,n),this._handlers.delete(t)),this},tx.prototype.show=function(){return eN(this.$el).show(),this},tx.prototype.hide=function(){return eN(this.$el).hide(),this},tx.prototype.remove=function(){return eN(this.$el).remove(),this},tx.prototype.isVisible=function(){return eN(this.$el).isVisible()};var tC=ek("dialog2",tx),tT=new Set;tC.on=function(e,t){return tT.has(t)||(eN.on(e,".aui-dialog2",t),tT.add(t)),this},tC.off=function(e,t){return tT.has(t)&&(eN.off(e,".aui-dialog2",t),tT.delete(t)),this},x(document).on("click keydown",`.aui-dialog2-header ${ty}`,function(e){("click"===e.type||e.keyCode===er.ENTER||e.keyCode===er.SPACE)&&(e.preventDefault(),tC(x(e.target).closest(".aui-dialog2")).hide())}),tC.on("show",function(e,t){!function(e){let t=e.querySelector(ty);t&&(K(`Dialog2 [${ty}]`,{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");let i=e.hasAttribute("data-aui-focus-selector");i&&K("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"})();let n=e.querySelector("[autofocus]");if(n){document.activeElement.blur(),setTimeout(()=>n.focus(),0);return}if(i){let t=e.querySelector(i);if(t){t.blur(),setTimeout(()=>t.focus(),0);return}}let 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();e.classList.contains(tb)&&(e=s.shift()),e&&(e.blur(),setTimeout(()=>e.focus(),0));return}e.focus()}(t[0])}),tC.on("hide",function(e,t){let i=eN(t);t.data("aui-remove-on-hide")&&i.remove()}),ea("aui/dialog2",tC),k("dialog2",tC);let tk=tC;var tE=navigator.userAgent.toLowerCase();/msie/.test(tE),/windows nt 5.1/.test(tE),/windows nt 6.0/.test(tE),/windows nt 6.1/.test(tE);var tA=/mac os x/.test(tE);function tS(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function tD(e){var t=tS(e).Element;return e instanceof t||e instanceof Element}function tI(e){var t=tS(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function tM(e){if("undefined"==typeof ShadowRoot)return!1;var t=tS(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}var tN=Math.max,tO=Math.min,tL=Math.round;function tP(){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 tR(){return!/^((?!chrome|android).)*safari/i.test(tP())}function t$(e,t,i){void 0===t&&(t=!1),void 0===i&&(i=!1);var n=e.getBoundingClientRect(),s=1,r=1;t&&tI(e)&&(s=e.offsetWidth>0&&tL(n.width)/e.offsetWidth||1,r=e.offsetHeight>0&&tL(n.height)/e.offsetHeight||1);var a=(tD(e)?tS(e):window).visualViewport,o=!tR()&&i,l=(n.left+(o&&a?a.offsetLeft:0))/s,c=(n.top+(o&&a?a.offsetTop:0))/r,u=n.width/s,h=n.height/r;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function tj(e){var t=tS(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function tz(e){return e?(e.nodeName||"").toLowerCase():null}function tH(e){return((tD(e)?e.ownerDocument:e.document)||window.document).documentElement}function tF(e){return t$(tH(e)).left+tj(e).scrollLeft}function tB(e){return tS(e).getComputedStyle(e)}function tU(e){var t=tB(e),i=t.overflow,n=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function tW(e){var t=t$(e),i=e.offsetWidth,n=e.offsetHeight;return 1>=Math.abs(t.width-i)&&(i=t.width),1>=Math.abs(t.height-n)&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:i,height:n}}function tV(e){return"html"===tz(e)?e:e.assignedSlot||e.parentNode||(tM(e)?e.host:null)||tH(e)}function tY(e,t){void 0===t&&(t=[]);var i,n=function e(t){return["html","body","#document"].indexOf(tz(t))>=0?t.ownerDocument.body:tI(t)&&tU(t)?t:e(tV(t))}(e),s=n===(null==(i=e.ownerDocument)?void 0:i.body),r=tS(n),a=s?[r].concat(r.visualViewport||[],tU(n)?n:[]):n,o=t.concat(a);return s?o:o.concat(tY(tV(a)))}function tq(e){return tI(e)&&"fixed"!==tB(e).position?e.offsetParent:null}function tK(e){for(var t=tS(e),i=tq(e);i&&["table","td","th"].indexOf(tz(i))>=0&&"static"===tB(i).position;)i=tq(i);return i&&("html"===tz(i)||"body"===tz(i)&&"static"===tB(i).position)?t:i||function(e){var t=/firefox/i.test(tP());if(/Trident/i.test(tP())&&tI(e)&&"fixed"===tB(e).position)return null;var i=tV(e);for(tM(i)&&(i=i.host);tI(i)&&0>["html","body"].indexOf(tz(i));){var n=tB(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 tQ="bottom",tG="right",tJ="left",tZ="auto",tX=["top",tQ,tG,tJ],t0="start",t1="viewport",t2="popper",t3=tX.reduce(function(e,t){return e.concat([t+"-"+t0,t+"-end"])},[]),t4=[].concat(tX,[tZ]).reduce(function(e,t){return e.concat([t,t+"-"+t0,t+"-end"])},[]),t9=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function t5(e,t){var i=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(i&&tM(i)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function t8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function t7(e,t,i){var n,s,r,a,o,l,c,u,h,p;return t===t1?t8(function(e,t){var i=tS(e),n=tH(e),s=i.visualViewport,r=n.clientWidth,a=n.clientHeight,o=0,l=0;if(s){r=s.width,a=s.height;var c=tR();(c||!c&&"fixed"===t)&&(o=s.offsetLeft,l=s.offsetTop)}return{width:r,height:a,x:o+tF(e),y:l}}(e,i)):tD(t)?((n=t$(t,!1,"fixed"===i)).top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n):t8((s=tH(e),a=tH(s),o=tj(s),l=null==(r=s.ownerDocument)?void 0:r.body,c=tN(a.scrollWidth,a.clientWidth,l?l.scrollWidth:0,l?l.clientWidth:0),u=tN(a.scrollHeight,a.clientHeight,l?l.scrollHeight:0,l?l.clientHeight:0),h=-o.scrollLeft+tF(s),p=-o.scrollTop,"rtl"===tB(l||a).direction&&(h+=tN(a.clientWidth,l?l.clientWidth:0)-c),{width:c,height:u,x:h,y:p}))}function t6(e){return e.split("-")[0]}function ie(e){return e.split("-")[1]}function it(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function ii(e){var t,i=e.reference,n=e.element,s=e.placement,r=s?t6(s):null,a=s?ie(s):null,o=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(r){case"top":t={x:o,y:i.y-n.height};break;case tQ:t={x:o,y:i.y+i.height};break;case tG:t={x:i.x+i.width,y:l};break;case tJ:t={x:i.x-n.width,y:l};break;default:t={x:i.x,y:i.y}}var c=r?it(r):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case t0:t[c]=t[c]-(i[u]/2-n[u]/2);break;case"end":t[c]=t[c]+(i[u]/2-n[u]/2)}}return t}function is(){return{top:0,right:0,bottom:0,left:0}}function ir(e){return Object.assign({},is(),e)}function ia(e,t){return t.reduce(function(t,i){return t[i]=e,t},{})}function io(e,t){void 0===t&&(t={});var i,n,s,r,a,o,l,c,u=t,h=u.placement,p=void 0===h?e.placement:h,f=u.strategy,g=void 0===f?e.strategy:f,m=u.boundary,v=u.rootBoundary,b=u.elementContext,y=void 0===b?t2:b,w=u.altBoundary,_=u.padding,x=void 0===_?0:_,C=ir("number"!=typeof x?x:ia(x,tX)),T=e.rects.popper,k=e.elements[void 0!==w&&w?y===t2?"reference":t2:y],E=(i=tD(k)?k:k.contextElement||tH(e.elements.popper),n=void 0===m?"clippingParents":m,s=void 0===v?t1:v,l=(o=[].concat("clippingParents"===n?(r=tY(tV(i)),!tD(a=["absolute","fixed"].indexOf(tB(i).position)>=0&&tI(i)?tK(i):i)?[]:r.filter(function(e){return tD(e)&&t5(e,a)&&"body"!==tz(e)})):[].concat(n),[s]))[0],(c=o.reduce(function(e,t){var n=t7(i,t,g);return e.top=tN(n.top,e.top),e.right=tO(n.right,e.right),e.bottom=tO(n.bottom,e.bottom),e.left=tN(n.left,e.left),e},t7(i,l,g))).width=c.right-c.left,c.height=c.bottom-c.top,c.x=c.left,c.y=c.top,c),A=t$(e.elements.reference),S=ii({reference:A,element:T,strategy:"absolute",placement:p}),D=t8(Object.assign({},T,S)),I=y===t2?D:A,M={top:E.top-I.top+C.top,bottom:I.bottom-E.bottom+C.bottom,left:E.left-I.left+C.left,right:I.right-E.right+C.right},N=e.modifiersData.offset;if(y===t2&&N){var O=N[p];Object.keys(M).forEach(function(e){var t=[tG,tQ].indexOf(e)>=0?1:-1,i=["top",tQ].indexOf(e)>=0?"y":"x";M[e]+=O[i]*t})}return M}var il={placement:"bottom",modifiers:[],strategy:"absolute"};function ic(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}var iu={passive:!0},id={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ih(e){var t,i,n,s,r,a,o,l=e.popper,c=e.popperRect,u=e.placement,h=e.variation,p=e.offsets,f=e.position,g=e.gpuAcceleration,m=e.adaptive,v=e.roundOffsets,b=e.isFixed,y=p.x,w=void 0===y?0:y,_=p.y,x=void 0===_?0:_,C="function"==typeof v?v({x:w,y:x}):{x:w,y:x};w=C.x,x=C.y;var T=p.hasOwnProperty("x"),k=p.hasOwnProperty("y"),E=tJ,A="top",S=window;if(m){var D=tK(l),I="clientHeight",M="clientWidth";D===tS(l)&&"static"!==tB(D=tH(l)).position&&"absolute"===f&&(I="scrollHeight",M="scrollWidth"),("top"===u||(u===tJ||u===tG)&&"end"===h)&&(A=tQ,x-=(b&&D===S&&S.visualViewport?S.visualViewport.height:D[I])-c.height,x*=g?1:-1),(u===tJ||("top"===u||u===tQ)&&"end"===h)&&(E=tG,w-=(b&&D===S&&S.visualViewport?S.visualViewport.width:D[M])-c.width,w*=g?1:-1)}var N=Object.assign({position:f},m&&id),O=!0===v?(t={x:w,y:x},i=tS(l),n=t.x,s=t.y,{x:tL(n*(r=i.devicePixelRatio||1))/r||0,y:tL(s*r)/r||0}):{x:w,y:x};return(w=O.x,x=O.y,g)?Object.assign({},N,((o={})[A]=k?"0":"",o[E]=T?"0":"",o.transform=1>=(S.devicePixelRatio||1)?"translate("+w+"px, "+x+"px)":"translate3d("+w+"px, "+x+"px, 0)",o)):Object.assign({},N,((a={})[A]=k?x+"px":"",a[E]=T?w+"px":"",a.transform="",a))}var ip={left:"right",right:"left",bottom:"top",top:"bottom"};function ig(e){return e.replace(/left|right|bottom|top/g,function(e){return ip[e]})}var im={start:"end",end:"start"};function iv(e){return e.replace(/start|end/g,function(e){return im[e]})}function ib(e,t,i){return tN(e,tO(t,i))}function iy(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 iw(e){return["top",tG,tQ,tJ].some(function(t){return e[t]>=0})}var i_=(h=void 0===(u=(c={defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,i=e.instance,n=e.options,s=n.scroll,r=void 0===s||s,a=n.resize,o=void 0===a||a,l=tS(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return r&&c.forEach(function(e){e.addEventListener("scroll",i.update,iu)}),o&&l.addEventListener("resize",i.update,iu),function(){r&&c.forEach(function(e){e.removeEventListener("scroll",i.update,iu)}),o&&l.removeEventListener("resize",i.update,iu)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,i=e.name;t.modifiersData[i]=ii({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,i=e.options,n=i.gpuAcceleration,s=i.adaptive,r=i.roundOffsets,a=void 0===r||r,o={placement:t6(t.placement),variation:ie(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:void 0===n||n,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ih(Object.assign({},o,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:void 0===s||s,roundOffsets:a})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ih(Object.assign({},o,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:a})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},{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];tI(s)&&tz(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]||{},r=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:i[e]).reduce(function(e,t){return e[t]="",e},{});tI(n)&&tz(n)&&(Object.assign(n.style,r),Object.keys(s).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.offset,r=void 0===s?[0,0]:s,a=t4.reduce(function(e,i){var n,s,a,o,l,c;return e[i]=(n=t.rects,a=[tJ,"top"].indexOf(s=t6(i))>=0?-1:1,l=(o="function"==typeof r?r(Object.assign({},n,{placement:i})):r)[0],c=o[1],l=l||0,c=(c||0)*a,[tJ,tG].indexOf(s)>=0?{x:c,y:l}:{x:l,y:c}),e},{}),o=a[t.placement],l=o.x,c=o.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}},{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,r=void 0===s||s,a=i.altAxis,o=void 0===a||a,l=i.fallbackPlacements,c=i.padding,u=i.boundary,h=i.rootBoundary,p=i.altBoundary,f=i.flipVariations,g=void 0===f||f,m=i.allowedAutoPlacements,v=t.options.placement,b=t6(v)===v,y=l||(b||!g?[ig(v)]:function(e){if(t6(e)===tZ)return[];var t=ig(e);return[iv(e),t,iv(t)]}(v)),w=[v].concat(y).reduce(function(e,i){var n,s,r,a,o,l,p,f,v,b,y,w;return e.concat(t6(i)===tZ?(s=(n={placement:i,boundary:u,rootBoundary:h,padding:c,flipVariations:g,allowedAutoPlacements:m}).placement,r=n.boundary,a=n.rootBoundary,o=n.padding,l=n.flipVariations,f=void 0===(p=n.allowedAutoPlacements)?t4:p,0===(y=(b=(v=ie(s))?l?t3:t3.filter(function(e){return ie(e)===v}):tX).filter(function(e){return f.indexOf(e)>=0})).length&&(y=b),Object.keys(w=y.reduce(function(e,i){return e[i]=io(t,{placement:i,boundary:r,rootBoundary:a,padding:o})[t6(i)],e},{})).sort(function(e,t){return w[e]-w[t]})):i)},[]),_=t.rects.reference,x=t.rects.popper,C=new Map,T=!0,k=w[0],E=0;E<w.length;E++){var A=w[E],S=t6(A),D=ie(A)===t0,I=["top",tQ].indexOf(S)>=0,M=I?"width":"height",N=io(t,{placement:A,boundary:u,rootBoundary:h,altBoundary:p,padding:c}),O=I?D?tG:tJ:D?tQ:"top";_[M]>x[M]&&(O=ig(O));var L=ig(O),P=[];if(r&&P.push(N[S]<=0),o&&P.push(N[O]<=0,N[L]<=0),P.every(function(e){return e})){k=A,T=!1;break}C.set(A,P)}if(T)for(var R=g?3:1,$=function(e){var t=w.find(function(t){var i=C.get(t);if(i)return i.slice(0,e).every(function(e){return e})});if(t)return k=t,"break"},j=R;j>0&&"break"!==$(j);j--);t.placement!==k&&(t.modifiersData[n]._skip=!0,t.placement=k,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,i=e.options,n=e.name,s=i.mainAxis,r=i.altAxis,a=i.boundary,o=i.rootBoundary,l=i.altBoundary,c=i.padding,u=i.tether,h=void 0===u||u,p=i.tetherOffset,f=void 0===p?0:p,g=io(t,{boundary:a,rootBoundary:o,padding:c,altBoundary:l}),m=t6(t.placement),v=ie(t.placement),b=!v,y=it(m),w="x"===y?"y":"x",_=t.modifiersData.popperOffsets,x=t.rects.reference,C=t.rects.popper,T="function"==typeof f?f(Object.assign({},t.rects,{placement:t.placement})):f,k="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,A={x:0,y:0};if(_){if(void 0===s||s){var S,D="y"===y?"top":tJ,I="y"===y?tQ:tG,M="y"===y?"height":"width",N=_[y],O=N+g[D],L=N-g[I],P=h?-C[M]/2:0,R=v===t0?x[M]:C[M],$=v===t0?-C[M]:-x[M],j=t.elements.arrow,z=h&&j?tW(j):{width:0,height:0},H=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:is(),F=H[D],B=H[I],U=ib(0,x[M],z[M]),W=b?x[M]/2-P-U-F-k.mainAxis:R-U-F-k.mainAxis,V=b?-x[M]/2+P+U+B+k.mainAxis:$+U+B+k.mainAxis,Y=t.elements.arrow&&tK(t.elements.arrow),q=Y?"y"===y?Y.clientTop||0:Y.clientLeft||0:0,K=null!=(S=null==E?void 0:E[y])?S:0,Q=ib(h?tO(O,N+W-K-q):O,N,h?tN(L,N+V-K):L);_[y]=Q,A[y]=Q-N}if(void 0!==r&&r){var G,J,Z="x"===y?"top":tJ,X="x"===y?tQ:tG,ee=_[w],et="y"===w?"height":"width",ei=ee+g[Z],en=ee-g[X],es=-1!==["top",tJ].indexOf(m),er=null!=(J=null==E?void 0:E[w])?J:0,ea=es?ei:ee-x[et]-C[et]-er+k.altAxis,eo=es?ee+x[et]+C[et]-er-k.altAxis:en,el=h&&es?(G=ib(ea,ee,eo))>eo?eo:G:ib(h?ea:ei,ee,h?eo:en);_[w]=el,A[w]=el-ee}t.modifiersData[n]=A}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,i=e.state,n=e.name,s=e.options,r=i.elements.arrow,a=i.modifiersData.popperOffsets,o=t6(i.placement),l=it(o),c=[tJ,tG].indexOf(o)>=0?"height":"width";if(r&&a){var u,h=(u=s.padding,ir("number"!=typeof(u="function"==typeof u?u(Object.assign({},i.rects,{placement:i.placement})):u)?u:ia(u,tX))),p=tW(r),f="y"===l?"top":tJ,g="y"===l?tQ:tG,m=i.rects.reference[c]+i.rects.reference[l]-a[l]-i.rects.popper[c],v=a[l]-i.rects.reference[l],b=tK(r),y=b?"y"===l?b.clientHeight||0:b.clientWidth||0:0,w=h[f],_=y-p[c]-h[g],x=y/2-p[c]/2+(m/2-v/2),C=ib(w,x,_);i.modifiersData[n]=((t={})[l]=C,t.centerOffset=C-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)))&&t5(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{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,r=t.modifiersData.preventOverflow,a=io(t,{elementContext:"reference"}),o=io(t,{altBoundary:!0}),l=iy(a,n),c=iy(o,s,r),u=iw(l),h=iw(c);t.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]}).defaultModifiers)?[]:u,f=void 0===(p=c.defaultOptions)?il:p,function(e,t,i){void 0===i&&(i=f);var n,s,r={placement:"bottom",orderedModifiers:[],options:Object.assign({},il,f),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},a=[],o=!1,l={state:r,setOptions:function(i){var n,s,o,u,p,g,m="function"==typeof i?i(r.options):i;c(),r.options=Object.assign({},f,r.options,m),r.scrollParents={reference:tD(e)?tY(e):e.contextElement?tY(e.contextElement):[],popper:tY(t)};var v=(s=Object.keys(n=[].concat(h,r.options.modifiers).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},{})).map(function(e){return n[e]}),o=new Map,u=new Set,p=[],s.forEach(function(e){o.set(e.name,e)}),s.forEach(function(e){u.has(e.name)||function e(t){u.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach(function(t){if(!u.has(t)){var i=o.get(t);i&&e(i)}}),p.push(t)}(e)}),g=p,t9.reduce(function(e,t){return e.concat(g.filter(function(e){return e.phase===t}))},[]));return r.orderedModifiers=v.filter(function(e){return e.enabled}),r.orderedModifiers.forEach(function(e){var t=e.name,i=e.options,n=e.effect;if("function"==typeof n){var s=n({state:r,name:t,instance:l,options:void 0===i?{}:i});a.push(s||function(){})}}),l.update()},forceUpdate:function(){if(!o){var e=r.elements,t=e.reference,i=e.popper;if(ic(t,i)){r.rects={reference:(n=tK(i),s="fixed"===r.options.strategy,a=tI(n),p=tI(n)&&(u=tL((c=n.getBoundingClientRect()).width)/n.offsetWidth||1,h=tL(c.height)/n.offsetHeight||1,1!==u||1!==h),f=tH(n),g=t$(t,p,s),m={scrollLeft:0,scrollTop:0},v={x:0,y:0},(a||!a&&!s)&&(("body"!==tz(n)||tU(f))&&(m=function(e){return e!==tS(e)&&tI(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:tj(e)}(n)),tI(n)?(v=t$(n,!0),v.x+=n.clientLeft,v.y+=n.clientTop):f&&(v.x=tF(f))),{x:g.left+m.scrollLeft-v.x,y:g.top+m.scrollTop-v.y,width:g.width,height:g.height}),popper:tW(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,s,a,c,u,h,p,f,g,m,v,b=0;b<r.orderedModifiers.length;b++){if(!0===r.reset){r.reset=!1,b=-1;continue}var y=r.orderedModifiers[b],w=y.fn,_=y.options,x=void 0===_?{}:_,C=y.name;"function"==typeof w&&(r=w({state:r,options:x,name:C,instance:l})||r)}}}},update:(n=function(){return new Promise(function(e){l.forceUpdate(),e(r)})},function(){return s||(s=new Promise(function(e){Promise.resolve().then(function(){s=void 0,e(n())})})),s}),destroy:function(){c(),o=!0}};if(!ic(e,t))return l;function c(){a.forEach(function(e){return e()}),a=[]}return l.setOptions(i).then(function(e){!o&&i.onFirstUpdate&&i.onFirstUpdate(e)}),l});let ix={"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 iC(e,t){return e.getAttribute(t)||e.getAttribute("data-aui-"+t)}function iT(e){return iC(e,"alignment")||"right middle"}function ik(e){let[t,i]=iT(e).split(" ");return{side:t,snap:i}}let iE={auto:[],top:["top","bottom"],right:["right","left"],bottom:["bottom","top"],left:["left","right"]};function iA(e,t,i={}){var n,s,r,a;let o,l,c,u,h=ik(e),p=(r=e,a=t,(l=ik(r)).snap&&"auto"!==l.snap?o=ix[iT(r)]||"right":(l.snap=function(e){let t,i=("string"==typeof(t=iC(e,"alignment-container")||window)&&(t=document.querySelector(t)),t),n="left";if(i&&i!==window&&i!==document||(i=document.documentElement),i&&i.nodeType&&i.nodeType===Node.ELEMENT_NODE){let t=i.getBoundingClientRect();e.getBoundingClientRect().left-t.left>(t.right-t.left)/2&&(n="right")}return n}(a),o="submenu"===l.side?ix[`${"right"===l.snap?"left":"right"} top`]:ix[`${l.side} ${l.snap}`]),o),f=iE[p.split("-")[0]],g=t.ownerDocument.defaultView.frameElement;this._eventListenersEnabled=!!i.hasOwnProperty("eventsEnabled")&&i.eventsEnabled,this._triggerOnEvents=!1;let m=[{name:"flip",enabled:!i.hasOwnProperty("flip")||i.flip,options:{allowedAutoPlacements:f,boundary:g||(i.hasOwnProperty("flipContainer")?i.flipContainer:"clippingParents")}},{name:"preventOverflow",enabled:!i.hasOwnProperty("preventOverflow")||i.preventOverflow,options:{padding:0,escapeWithReference:!1,rootBoundary:g?"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})=>{let 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})=>{let 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}}];g&&t.ownerDocument!=e.ownerDocument&&m.push({name:"iframeOffset",enabled:!0,fn(e){let t=g.getBoundingClientRect(),i=window.getComputedStyle(g),n=(e,t)=>e+t,s=e=>e.map(parseFloat).filter(Boolean).reduce(n,0),r=s([t.top,i.paddingTop,i.borderTop]),a=s([t.left,i.paddingLeft,i.borderLeft]);return e.offsets.reference.left+=a,e.offsets.reference.top+=r,e.offsets.popper.left+=a,e.offsets.popper.top+=r,e}});let v={placement:p,strategy:i.hasOwnProperty("positionFixed")&&!i.positionFixed?"absolute":"fixed",modifiers:m,onFirstUpdate:i.onCreate};this.popper=i_(t,e,v),n=h.side,s=h.snap,c="aui-alignment-side-"+n,u="aui-alignment-snap-"+s,e.classList.contains(c)||e.classList.add(c),e.classList.contains(u)||e.classList.add(u)}function iS(e){let t=new x.Deferred;return e?setTimeout(()=>{e.parentElement||t.resolve()},12):t.reject(),t.promise()}iA.prototype={destroy(){return this.popper.destroy(),this},changeTarget(e){let 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}};var iD=0;function iI(e){if(b=iD+++"",y=e?e+b:"aui-uid-"+b,!document.getElementById(y)||(y=y+"-"+new Date().getTime(),!document.getElementById(y)))return y;throw Error('Timestamped fallback ID "'+y+'" exists.')}function iM(e){return e.hasAttribute("hidden")||e.classList.contains("hidden")}function iN(e,t){e.setAttribute("aria-expanded",!!t),e.classList[t?"add":"remove"]("active","aui-dropdown2-active")}k("id",iI);var iO="unloaded",iL="loading",iP="error";function iR(e){el(e).set("loading-state",iP),el(e).set("hasErrorBeenShown",e.isVisible()),e.innerHTML=`
20
+ <div class="aui-message aui-message-error aui-dropdown-error">
21
+ <p>${eY.getText("aui.dropdown.async.error")}</p>
22
+ </div>
23
+ `}function i$(e){e.src&&el(e).get("loading-state")!==iL&&(el(e).set("loading-state",iL),el(e).set("hasErrorBeenShown",!1),ed(e,function(e){e.setAttribute("aria-busy","true")}),e.innerHTML=`
24
+ <div class="aui-dropdown-loading">
25
+ <aui-spinner size="small"></aui-spinner> ${eY.getText("aui.dropdown.async.loading")}
26
+ </div>
27
+ `,x.ajax(e.src).done(function(t,i,n){200===n.status?(el(e).set("loading-state","success"),e.innerHTML=t.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")}
28
+ ${t("checked")} ${t("disabled")} ${t("hidden")} ${i("data-value")} ${i("item-id")}>
29
+ ${W(e.content)}
30
+ </${n}>`}).join("");function i(t){return e[t]?`${t}="${e[t]}"`:""}return`<aui-section ${i("label")} ${i("aria-label")}>
31
+ ${t}
32
+ </aui-section>`}).join("\n"),eo.init(e)):iR(e)}).fail(function(){iR(e)}).always(function(){ed(e,function(e){e.setAttribute("aria-busy","false")})}))}function ij(e,t){return x(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').filter(t).children('a, button, [role="checkbox"], [role="menuitemcheckbox"], [role="radio"], [role="menuitemradio"]')}function iz(e){return ij(e,(e,t)=>!iM(t))}function iH(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}x(document).on("mousedown",".aui-dropdown2-trigger",function(){this.hasAttribute("resolved")||(eo.init(this),K("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"})())}),x(document).on("mouseenter",".aui-dropdown2-trigger-group a, .aui-dropdown2-trigger-group button",function(e){let t=x(e.currentTarget);if(t.is(".aui-dropdown2-active")||t.closest(".aui-dropdown2").length)return;let i=t.closest(".aui-dropdown2-trigger-group"),n=i.find(".aui-dropdown2-active");n.length&&t.is(".aui-dropdown2-trigger")&&(n.blur(),t.trigger("aui-button-invoke"),e.preventDefault());let s=i.find(":focus");s.length&&t.is(".aui-dropdown2-trigger")&&s.blur()});var iF=!1;function iB(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")),eN(e),e.addEventListener("aui-layer-show",function(t){if(e===t.target){var i;i=x(e),["disabled","interactive","active","checked"].forEach(e=>{i.find(`.${e}`).addClass(`aui-dropdown2-${e}`)}),ij(e,()=>!0).each((e,t)=>{t.setAttribute("tabindex","-1"),(t.classList.contains("aui-dropdown2-disabled")||iM(t.parentElement))&&t.setAttribute("aria-disabled","true")}),x(e).trigger("aui-dropdown2-show"),ed(e,function(t){var i;iN(t,!0),i=t.getAttribute("data-dropdown2-hide-location"),e._returnTo=document.getElementById(i)||e.parentNode})}}),e.addEventListener("aui-layer-hide",function(t){e===t.target&&(x(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"),ij(e,()=>!0).removeClass("active aui-dropdown2-active"),ed(e,function(e){var t;iN(e,!1),t=!0===iF,iF=!1,t&&e.focus()}),delete e.isSubmenu)});var t=x(e);function i(t){return x(t).closest(".aui-dropdown2, aui-dropdown-menu").get(0)===e}t.on("keydown",function(t){i(t.target)&&(t.keyCode===er.DOWN?(e.focusNext(),t.preventDefault()):t.keyCode===er.UP?(e.focusPrevious(),t.preventDefault()):t.keyCode===er.LEFT?e.isSubmenu&&(iF=!0,e.hide(),t.preventDefault()):t.keyCode===er.ESCAPE?iF=!0:t.keyCode===er.TAB&&(iF=!0,e.hideAll(!1)))});let n=function(t){let i=t.currentTarget;"true"===i.getAttribute("aria-disabled")?t.preventDefault():t.currentTarget.hasSubmenu&&t.currentTarget.hasSubmenu()||i.classList.contains("aui-dropdown2-interactive")||e.hideAll(!0)};t.on("click keydown",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(e){if(!i(e.target))return;let t=e.currentTarget,s=e.keyCode,r=s===er.ENTER,a=s===er.SPACE;!(r&&x(t).is("a[href], button"))&&("click"===e.type||r||a)&&n(e)}),t.on("mouseenter",'a, button, [role="menuitem"], [role="menuitemcheckbox"], [role="checkbox"], [role="menuitemradio"], [role="radio"]',function(t){if(!i(t.target))return;let n=x(eN(e).above()).get(0);for(;n&&n.isDropdown&&n!==e;){let e=n.getAttribute("id"),i=t.target.getAttribute("aria-controls"),s=eN(n).above();i!==e&&eN(n).hide(),n=x(s).get(0)}}),x(e).on("click keydown",".aui-dropdown2-checkbox",function(e){("click"===e.type||e.keyCode===er.ENTER||e.keyCode===er.SPACE)&&!e.isDefaultPrevented()&&(this.isInteractive()&&e.preventDefault(),this.isEnabled()&&(this.isChecked()?this.uncheck():this.check()))}),x(e).on("click keydown",".aui-dropdown2-radio",function(e){("click"===e.type||e.keyCode===er.ENTER||e.keyCode===er.SPACE)&&!e.isDefaultPrevented()&&(this.isInteractive()&&e.preventDefault(),this.isEnabled()&&!1===this.isChecked()&&(x(this).closest("ul,[role=group]").find(".aui-dropdown2-checked").not(this).each(function(){this.uncheck()}),this.check()))})}x(window).on("resize",(0,to.debounce)(function(){x(".aui-dropdown2").each(function(e,t){eo.init(t),t.isVisible()&&t.hide()})},1e3,!0));var iU={toggle:function(e){this.isVisible()?this.hide():this.show(e)},show:function(e){let t=this;return ed(t,e=>{iN(e,!1)}),e&&e.currentTarget&&e.currentTarget.classList.contains("aui-dropdown2-trigger")&&eu(t,e.currentTarget),eN(t).show(),ed(t,function(e){var i,n,s,r,a,o,l,c;iN(e,!0),i=e&&e.hasSubmenu&&e.hasSubmenu(),n="submenu auto"===t.getAttribute("data-aui-alignment"),!i&&n&&((o=(a=x(r=t)).data("previous-data-aui-alignment"))?r.setAttribute("data-aui-alignment",o):r.removeAttribute("data-aui-alignment"),a.removeData("previous-data-aui-alignment"),a.data("had-data-aui-alignment-static")||r.removeAttribute("data-aui-alignment-static"),a.removeData("had-data-aui-alignment-static")),s=t.hasAttribute("data-aui-alignment"),i&&!n?(c=x(l=t),l.hasAttribute("data-aui-alignment")&&c.data("previous-data-aui-alignment",l.getAttribute("data-aui-alignment")),c.data("had-data-aui-alignment-static",l.hasAttribute("data-aui-alignment-static")),t.setAttribute("data-aui-alignment","submenu auto"),t.setAttribute("data-aui-alignment-static",!0)):s||(t.setAttribute("data-aui-alignment","bottom auto"),t.setAttribute("data-aui-alignment-static",!0)),iH(t),t._auiAlignment=new iA(t,e,{flip:!1,positionFixed:!1,preventOverflow:!1,offset:e.hasSubmenu&&e.hasSubmenu()?[-3,0]:[0,3]}),t._auiAlignment.enable()}),setTimeout(()=>(function(e,t={}){if(t&&t.type&&-1===t.type.indexOf("mouse")){let i=t.type.indexOf("key")>-1;if(e.isSubmenu)e.focusItem(0);else if(i)if(t.keyCode===er.UP){let t=iz(e);t&&t.length&&e.focusItem(t.length-1)}else e.focusItem(0);else e.focus()}})(t,e),0),this},hide:function(){return eN(this).hide(),this},hideAll:function(e=!0){let t=function(e){let t=eN(e);for(;;){let e=t.below();if(!e||!e.get(0).isDropdown)break;t=eN(e)}return t}(this);return t.isVisible()&&(t.hide(),e&&ed(t.el,e=>{setTimeout(()=>{e.focus()},0),eu(t.el,null)})),this},focusNext:function(){var e,t=iz(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=iz(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){let t=iz(this);"number"==typeof e&&(e=t.get(e));let i=x(e);i.focus(),t.removeClass("active aui-dropdown2-active"),i.addClass("active aui-dropdown2-active")},isVisible:function(){return eN(this).isVisible()},isDropdown:!0},iW={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")}},iV={created:function(e){e.children[0].classList.add("interactive","aui-dropdown2-interactive")},removed:function(e){e.children[0].classList.remove("interactive","aui-dropdown2-interactive")}},iY={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}))}},iq={created:function(e){iW.created(e)},removed:function(e){iW.removed(e)}},iK=function(e){return{fallback:function(t,i){t.children[0].setAttribute(e,i.newValue)},removed:function(t){t.children[0].removeAttribute(e)}}};let iQ=function(e=""){return e.split(" ").map(e=>e.trim()).filter(e=>e)},iG=eo("aui-item-link",{template:eJ()('<a role="menuitem" tabindex="-1"><content></content></a>'),attributes:{disabled:iW,interactive:iV,hidden:iq,href:iK("href"),"item-id":iK("id"),for:{created:function(e){var t=e.children[0];t.setAttribute("aria-controls",e.getAttribute("for")),x(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"),x(t).removeClass("aui-dropdown2-sub-trigger")}},"extra-classes":function(e,t){let i=e.children[0];t.oldValue&&i.classList.remove(...iQ(t.oldValue)),t.newValue&&i.classList.add(...iQ(t.newValue))},"data-value":iK("data-value")}}),iJ=eo("aui-item-button",{template:eJ()('<button class="aui-button"><content></content></button>'),attributes:{disabled:iW,"item-id":iK("id"),"extra-classes":function(e,t){let i=e.children[0];t.oldValue&&i.classList.remove(...iQ(t.oldValue)),t.newValue&&i.classList.add(...iQ(t.newValue))},"data-value":iK("data-value")}}),[iZ,iX]=["checkbox","radio"].map(e=>eo(`aui-item-${e}`,{template:eJ()(`<span role="menuitem${e}" class="aui-dropdown2-${e}" tabindex="-1"><content></content></span>`),attributes:{"item-id":iK("id"),disabled:iW,interactive:iV,checked:iY,hidden:iq,"data-value":iK("data-value")}})),i0=eo("aui-section",{template:eJ()(`
33
+ <span aria-hidden="true" class="aui-dropdown2-heading"></span>
34
+ <div class="aui-dropdown2-item-group" role="group">
35
+ <content></content>
36
+ </div>
37
+ `),attributes:{label:function(e,t){let i=iI();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")}}),i1=eo("aui-dropdown-menu",{created:function(e){e.setAttribute("role","menu"),e.className="aui-dropdown2",eN(e),el(e).set("loading-state",iO),eo.init(e)},detached:function(e){iS(e).then(()=>iH(e))},attributes:{src:{}},prototype:iU,events:{"aui-layer-show":function(e){var t=el(e).get("loading-state")===iO,i=el(e).get("hasErrorBeenShown");(t||i)&&i$(e),el(e).get("loading-state")===iP&&el(e).set("hasErrorBeenShown",!0)}}});eo("aui-dropdown2",{type:eo.type.CLASSNAME,created:iB,prototype:iU}),eo("data-aui-dropdown2",{type:eo.type.ATTRIBUTE,created:iB,prototype:iU}),eo("aui-dropdown2-trigger",{type:eo.type.CLASSNAME,created:function(e){let t=e.getAttribute("aria-controls");function i(n,s=!1){if(n.currentTarget!==e||(n.preventDefault(),!e.isEnabled()))return;let r=document.getElementById(t);if(!r)return void O('Could not find a dropdown with id "'+t+'" in the DOM.');let a=x(e);return a.parent().hasClass("aui-buttons")&&r.classList.add("aui-dropdown2-in-buttons"),a.parents().hasClass("aui-header")&&r.classList.add("aui-dropdown2-in-header"),s?r.show(n):r.toggle(n),r.isSubmenu=e.hasSubmenu(),r}t||((t=e.getAttribute("aria-owns"))?(e.removeAttribute("aria-owns"),e.setAttribute("aria-controls",t)):O('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}`),x(e).on("aui-button-invoke",i).on("click",i).on("keydown",function(t){if(t.currentTarget!==e)return;let n=t.keyCode===er.ENTER||t.keyCode===er.SPACE,s=t.keyCode===er.RIGHT&&e.hasSubmenu(),r=(t.keyCode===er.UP||t.keyCode===er.DOWN)&&!e.hasSubmenu();n?i(t):(r||s)&&i(t,document.activeElement===e)}).on("mouseenter",function(i){var n,s;if(i.currentTarget!==e||(i.preventDefault(),!e.isEnabled()))return;let r=document.getElementById(t);return r?(n=el(r).get("loading-state")===iO,s=el(r).get("hasErrorBeenShown"),(n||s&&!r.isVisible())&&i$(r),e.hasSubmenu()&&(r.show(i),r.isSubmenu=e.hasSubmenu()),r):void O('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")}}}),eo("aui-dropdown2-sub-trigger",{type:eo.type.CLASSNAME,created:function(e){e.classList.add("aui-dropdown2-trigger"),eo.init(e)}}),["checkbox","radio"].map(e=>eo(`aui-dropdown2-${e}`,{type:eo.type.CLASSNAME,created:function(t){let 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"),tA&&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"),x(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",""),x(this).attr("aria-checked","true").addClass("checked aui-dropdown2-checked").trigger("aui-dropdown2-item-check")}}}));let i2={"aria-expanded":K("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":K("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":K("Expander [.aui-expander-short-content]",{removeInVersion:"11.0.0",sinceVersion:"9.9.0",deprecationType:"EXPANDER CLASS (PATTERN)"})},i3=e=>{let t=x(`#${e.attr("aria-controls")}`),i=t.parent().is(e),n=i?e.find(".aui-expander-short-content"):null;return t.attr("aria-expanded")&&(i2["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),{$content:t,isTriggerParent:i,$shortContent:n,isExpanded:t.hasClass("expanded"),height:t.css("min-height"),isCollapsible:!1!==e.data("collapsible"),textReplacement:e.attr("data-replace-text")}},i4=(e,t)=>{if(!t)return;let i=e.data("replace-selector");if(i){i2["replace-selector"]();let n=e.find(i);e.attr("data-replace-text",n.text()),n.text(t);return}let n=e.find(":not(:has(*)):first"),s=n.length?n:e;e.attr("data-replace-text",s.text()),s.text(t)};function i9(e,t,i){x(e||".aui-message.aui-remove-on-hide").each(function(){i8(x(this),t,i)})}function i5(e){x(e||"div.aui-message.closeable").each(function(){var e;let t=x(this),i=t.find(ty),n=i.length>0?i.first():x(tw);t.addClass("closeable"),t.append(n),(e=t).unbind("click.aui-message").unbind("keydown.aui-message"),e.on("click.aui-message",ty,function(e){x(e.target).closest(".aui-message").closeMessage()}).on("keydown.aui-message",ty,function(e){(e.which===er.ENTER||e.which===er.SPACE)&&(x(e.target).closest(".aui-message").closeMessage(),e.preventDefault())})})}function i8(e,t,i){t=void 0!==t?t:5e3,i=void 0!==i?i:500,x(e||"div.aui-message.fadeout").each(function(){let e=x(this),n=!1,s=!1;function r(){e.stop(!0,!1).delay(t).fadeOut(i,function(){e.closeMessage()})}function a(){e.stop(!0,!1).fadeTo(100,1)}e.focusin(function(){n=!0,a()}).focusout(function(){n=!1,s||r()}).hover(function(){s=!0,a()},function(){s=!1,n||s||r()}),r()})}x(document).on({"aui-expander-invoke":function(e){let t=x(e.currentTarget),{isCollapsible:i,isExpanded:n}=i3(t);n&&i?t.trigger("aui-expander-collapse"):t.trigger("aui-expander-expand")},"aui-expander-expand":function(e){!function(e){let{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=i3(e);e.attr("aria-expanded","true"),t.addClass("expanded"),t.prop("hidden",!1),i4(e,s),i&&n.hide(),e.trigger("aui-expander-expanded")}(x(e.currentTarget))},"aui-expander-collapse":function(e){!function(e){let{$content:t,isTriggerParent:i,$shortContent:n,textReplacement:s}=i3(e);i4(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")}(x(e.currentTarget))},"click.aui-expander":function(e){x(e.currentTarget).trigger("aui-expander-invoke",e.currentTarget)}},".aui-expander-trigger"),x(document).ready(function(){x(".aui-expander-trigger").each(function(){!function(e){let{$content:t,isTriggerParent:i,isExpanded:n}=i3(e);e.data("replace-selector")&&i2["replace-selector"](),t.attr("aria-expanded")&&(i2["aria-expanded"](),"true"===t.attr("aria-expanded")&&t.addClass("expanded"),t.removeAttr("aria-expanded")),(i?e.find(".aui-expander-short-content"):null)&&i2["short-content"](),0===t.outerHeight()&&(n||t.prop("hidden",!0)),e.attr("aria-expanded",n?"true":"false")}(x(this))})});let i7={setup:function(){i9(),i5(),i8()},makeRemoveOnHide:i9,makeCloseable:i5,makeFadeout:i8,createMessage:function(e){this[e]=function(t,i){var n,s,r;i||(i=t,t="#aui-message-bar"),i.closeable=null!==i.closeable&&!1!==i.closeable,i.title=(i.title||"").toString().trim();let a=function(e,t){let{id:i,closeable:n,removeOnHide:s,fadeout:r,title:a,body:o}=e,l=function(e,t){let{a11yTypeLabel:i}=e;if(""===i)return"";if(null!=i)return i;if(null==i)switch(t){case"error":return eY.getText("aui.messagecomponent.error.label");case"warning":return eY.getText("aui.messagecomponent.warning.label");case"info":return eY.getText("aui.messagecomponent.info.label");case"confirmation":return eY.getText("aui.messagecomponent.confirmation.label");case"change":return eY.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),c=l?`<strong hidden>${l}: </strong>`:"",u=i?`${i}-title`:"",h=a?`<p class="title" ${u?`id="${u}" aria-hidden="true"`:""}>${c}<strong>${W(a)}</strong></p>`:"",p=x(`<div class="aui-message" role="note" ${u?`aria-labelledby="${u}"`:""}>${h}</div>`).append(x.parseHTML(o||"")).addClass(s?"aui-remove-on-hide":"").addClass(n?"closeable":"").addClass(r?"fadeout":"").addClass(`aui-message-${t}`);return i&&(/[#'".\s]/g.test(i)?N("Messages error: ID rejected, must not include spaces, hashes, dots or quotes."):p.attr("id",i)),p}(i,e);return n=a,s=i.insert,r=t,"prepend"===s?n.prependTo(r):"before"===s?n.insertBefore(r):"after"===s?n.insertAfter(r):n.appendTo(r),i.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."),i9(a,i.delay,i.duration)),i.closeable&&i5(a),i.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."),i8(a,i.delay,i.duration)),a}}};x.fn.closeMessage=function(){let e=x(this);e.hasClass("aui-message")&&(e.hasClass("closeable")||e.hasClass("aui-remove-on-hide"))&&(e.stop(!0),e.trigger("messageClose",[this]),e.remove(),x(document).trigger("aui-message-close",[this]))},i7.createMessage("generic"),i7.createMessage("error"),i7.createMessage("warning"),i7.createMessage("info"),i7.createMessage("confirmation"),i7.createMessage("change"),i7.createMessage("success"),i7.createMessage("hint");let i6=eo("aui-message",{created:function(e){let t=e.innerHTML,i=e.getAttribute("type")||"info";e.innerHTML="",i7[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")}});x(function(){i7.setup()}),X(i7,"makeCloseable",{extraInfo:'Use the "closeable" option in the constructor instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html'}),X(i7,"createMessage",{extraInfo:"Use the provided convenience methods instead e.g. messages.info(). Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),X(i7,"makeRemoveOnHide",{extraInfo:"Use of the `makeRemoveOnHide` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),X(i7,"makeFadeout",{extraInfo:"Use of the `fadeout` option is deprecated due to accessibility reasons. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),X(i7,"generic",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),X(i7,"hint",{extraInfo:"use the messages.info() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),X(i7,"success",{extraInfo:"use the messages.confirmation() method instead. Docs: https://aui.atlassian.com/aui/latest/docs/messages.html"}),k("messages",i7);let ne='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"]',nt="aui-flag-container",ni={body:"",close:"manual",title:"",type:"info",duration:8e3,ariaLive:"polite"};function nn(e){var t,i,n,s;let r,a,o=(0,to.defaults)(e,ni);o.title=(o.title||"").toString().trim();let l=function({body:e,title:t,close:i,type:n,ariaLive:s,ariaLabel:r,ariaDescription:a}){let o=t?`<p class="title"><strong>${W(t)}</strong></p>`:"",l=`<div class="aui-message">${o}</div>`;r||(r=function(e){switch(e){case"success":return eY.getText("aui.flag.default-aria-label.success");case"warning":return eY.getText("aui.flag.default-aria-label.warning");case"error":return eY.getText("aui.flag.default-aria-label.error");default:return eY.getText("aui.flag.default-aria-label.info")}}(n)),a||(a="");let c=x(l).append(x.parseHTML(e||"")).addClass("never"===i?"":"closeable").addClass(`aui-message-${n}`),u=c.find(ne).length>0;return x('<div class="aui-flag"></div>').attr({"aria-label":W(r),"aria-hidden":"false","aria-live":W(s),role:u?"alertdialog":"alert",...u?{"data-aui-focus-selector":ne.split(", ").map(e=>`.aui-message ${e}`).join(", "),"data-aui-focus":"true"}:{},...a?{"aria-description":W(a)}:{}}).append(c)}(o);return(t=l)[0].close=function(){nr(t)},"auto"===o.close?(ns(l),"alert"===l.attr("role")&&(i=l,n=o.duration,i.find(".aui-message").addClass("aui-will-close"),setTimeout(function(){i[0].close()},n))):"manual"===o.close&&ns(l),(r=na())?Array.from(r.querySelectorAll(".aui-flag:not([open])")).map(e=>e.parentNode.removeChild(e)):x("body").prepend('<div id="'+nt+'"></div>'),s=l,a=na(),s.appendTo(a),et(s),s.prop("hidden",!1).attr("open",""),setTimeout(function(){"alertdialog"===l.attr("role")&&eT.global.enter(l)},0),l.get(0)}function ns(e){let t=x(tw);return t.on("click",function(){nr(e)}),t.on("keypress",function(t){(t.which===er.ENTER||t.which===er.SPACE)&&(nr(e),t.preventDefault())}),e.find(".aui-message").append(t)[0]}function nr(e){let t=e.get(0);return"alertdialog"===e.attr("role")&&eT.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 na(){return document.getElementById(nt)}ea("aui/flag",nn),k("flag",nn);let no=nn;var nl=n(722);let nc=n.n(nl)(),nu=function(e){function t(t){return n(function(){return e.hasAttribute(t)},t+" wasn't defined")}function i(i){if(!t(i,e))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?O(i,e):O(i),!1)}return{attributeExists:t,refersTo:i,satisfiesRules:n,ariaControls:function(){return i("aria-controls")},ariaOwns:function(){return i("aria-owns")}}},nd="-input";function nh(e){return e.querySelector("label")}let np=eo("aui-label",{template:eJ()("<label><content></content></label>"),created:function(e){e._label=nh(e)},attached:function(e){nu(e).attributeExists("for")},attributes:{for:function(e,t){e.hasAttribute("for")?nh(e).setAttribute("for",`${t.newValue}${nd}`):nh(e).removeAttribute("for")},form:function(e,t){e.hasAttribute("form")?nh(e).setAttribute("form",t.newValue):nh(e).removeAttribute("form")}},prototype:{get disabled(){return this.hasAttribute("disabled")},set disabled(value){value?this.setAttribute("disabled",""):this.removeAttribute("disabled")}},events:{click:function(e,t){e.disabled&&t.preventDefault()}}});n(217);let nf=x.fn.select2,ng="aui-select2-container",nm="aui-select2-drop aui-dropdown2",nv="aui.select2DropdownLayer";x.fn.auiSelect2=function(e){let t;if(x.isPlainObject(e)){let i=x.extend({},e),n=i.hasAvatar?" aui-has-avatar":"";i.containerCssClass=ng+n+(i.containerCssClass?" "+i.containerCssClass:""),i.dropdownCssClass=nm+n+(i.dropdownCssClass?" "+i.dropdownCssClass:""),t=Array.prototype.slice.call(arguments,1),t.unshift(i)}else t=arguments.length?arguments:[{containerCssClass:ng,dropdownCssClass:nm}];let i=t[0];if(i.ajax&&i.ajax.params&&i.ajax.params.error){let e=i.ajax.params.error;Array.isArray(e)||(e=[e]);let t=i.ajax.transport;t||(t=nf.ajaxDefaults.transport),i.ajax.transport=function(...i){return i[0].error=[i[0].error,...e],t(...i)}}let n=nf.apply(this,t),s=i.searchLabel;return this.on("select2-open",function(){let e=x(this),t=e.select2("dropdown"),n=e.data(nv);n||(n=eN(),e.data(nv,n)),n.show(),t.css("z-index",n.$el.css("z-index")),x("#select2-drop-mask").css("z-index",n.$el.css("z-index")),!(i.multiple||e.prop("multiple"))&&s&&t.find(".select2-search label").text(s)}),this.on("select2-close",function(){let e=x(this),t=e.data(nv);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")}),this.on("select2-loaded",function(){let e=x(this),t=e.data("was-ariadescribedby-cleared");i.multiple||e.prop("multiple")||t||(e.select2("dropdown").find(".select2-search .select2-input").attr("aria-activedescendant",""),e.data("was-ariadescribedby-cleared",!0))}),this.on("select2-focus",function(){let e=x(this),t=e.parent().find(".select2-container");if(i.multiple||e.prop("multiple")){s&&t.find(".select2-search-field label").text(s);return}let n=t.find("label");if(n.attr("id"))return;let r=t.find(".select2-focusser"),a=r.attr("id")+"-label",o=r.attr("aria-labelledby");n.attr("id",a),r.attr("aria-labelledby",a+" "+o)}),n},x.fn.spin=J(function(e,t){let i={size:"small"};return("object"==typeof t&&(i=x.extend(i,t)),"object"==typeof e&&(i=x.extend(i,e)),"string"==typeof e&&(i.size=e),"boolean"==typeof e&&!1===e)?this.spinStop():this.each(function(){if(!this||!this.nodeType)return;let e=x(this),t=e.data();if(t){let n=x("<aui-spinner filled></aui-spinner>");n.attr("size",i.size),n.css("color",i.color),e.spinStop(),e.append(n),eo.init(this),t.spinner=n}})},"jQuery.fn.spin",{sinceVersion:"7.9.4",removeInVersion:"11.0.0",alternativeName:"<aui-spinner>"}),x.fn.spinStop=J(function(){return this.each(function(){if(!this||!this.nodeType)return;let e=x(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>"});let nb=eo("aui-option",{created:function(e){Object.defineProperty(e,"value",{get:function(){return e.getAttribute("value")||W(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=W(this.textContent),e}}});var ny=n(354),nw=n.n(ny),n_=nw().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,to.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,to.isFunction)(this._queryData)?this._queryData(e):this._queryData,i=(0,to.extend)({},t);return i[this._queryParamKey]=e,i},fetch:function(e){var t=this.getQueryData(e);return nw().Collection.prototype.fetch.call(this,{add:!0,update:!0,remove:!1,data: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,to.first)(t,this._maxResults))),t},addQueryCache:function(e,t,i){var n=this.queryCache,s=this.parse(t,i);n[e]=(0,to.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))}});k("ProgressiveDataSet",n_);let nx=nw().Model.extend({idAttribute:"value",getLabel:function(){return this.get("label")||this.get("value")}}),nC=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(){let e=this._activeIndex,t=0===e?this._suggestions.length-1:e-1;return this.highlight(t),this},highlightNext:function(){let 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 nT(e){x(e).find(".aui-select-active").removeClass("aui-select-active")}let nk=function(e,t){return{el:e,anchor:t,render:function(e,t,i,n){this.currListId=i;let s="";if(e.length){for(let r=0;r<e.length;r++){let a=e[r],o=r+t,l=a.getLabel(),c=a.get("img-src"),u=c?`<img src="${encodeURI(c)}"/>`:"",h=a.get("new-value")?` (<em>${eY.getText("aui.select.new.value")}</em>)`:"";s+=`<li role="option" class="aui-select-suggestion" aria-selected="${n===o}" id="${i+"-"+o}">${u}${l}${h}</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">${eY.getText("aui.select.no.suggestions")}</li>`);return this},setActive:function(e){nT(this.el),x(this.el).find("#"+(this.currListId+"-")+e).addClass("aui-select-active")},getActive:function(){return this.el.querySelector(".aui-select-active")},show:function(){x(this.el).css("min-width",x(this.anchor).outerWidth()),eN(this.el).show(),this.anchor&&!this._auiAlignment&&(this._auiAlignment=new iA(this.el,this.anchor,{flipContainer:"scrollParent",positionFixed:!1,preventOverflow:!1,flip:!1})),this._auiAlignment&&(this._auiAlignment.enable(),this._auiAlignment.scheduleUpdate())},hide:function(){nT(this.el),eN(this.el).hide(),this._auiAlignment&&this._auiAlignment.disable()},destroy:function(){this.hide(),this._auiAlignment&&(this._auiAlignment.destroy(),delete this._auiAlignment),delete this.currListId},isVisible:function(){return x(this.el).is(":visible")}}};function nE(e){e._select.selectedIndex=-1,e._input.removeAttribute("style"),x(e._input).removeClass("aui-select-has-inline-image")}function nA(e){return e._suggestionModel.getNumberOfResults()}function nS(e,t){return 0===e.get("label").toLowerCase().indexOf(t.toLowerCase())}function nD(e){e._input.setAttribute("aria-expanded","false"),e._button.setAttribute("aria-expanded","false"),e._input.removeAttribute("aria-activedescendant"),nz(e,"")}function nI(e){e._suggestionsView.hide(),nD(e)}function nM(e,t,i){e._autoHighlight=t,void 0===i&&(i=e._input.value),e._progressiveDataSet.query(i)}function nN(e){var t=e._suggestionModel.highlighted()&&e._suggestionModel.highlighted().get("img-src");t&&(x(e._input).addClass("aui-select-has-inline-image"),e._input.setAttribute("style","background-image: url("+encodeURI(t)+")"))}function nO(e,t){if(t){var i,n=document.createElement("option"),s=e._select,r=t.get("value")||t.get("label"),a=(i=t.getLabel(),new DOMParser().parseFromString(i,"text/html").documentElement.textContent);n.setAttribute("selected",""),n.setAttribute("value",r),n.textContent=a,e._input.value=a,s.innerHTML="",s.options.add(n),s.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}}function nL(e){nO(e,e._suggestionModel.highlighted()),nN(e),nI(e)}function nP(e){return new nx(e.serialize())}function nR(e){for(var t=[],i=0;i<e._datalist.children.length;i++){var n=e._datalist.children[i];t.push(nP(n))}return t}function n$(e){var t=e._dropdown.querySelector(".aui-select-active");return t&&t.id}function nj(e,t){return x.map(t,function(e){return e.id}).indexOf(e)}function nz(e,t){clearTimeout(e.assistiveStatusTimerId),e.assistiveStatusTimerId=setTimeout(()=>{t!==e._assistiveStatus.innerText&&(e._assistiveStatus.innerText=t)},50)}function nH(e){let t=e.value?"":e._input.value;nM(e,!0,t)}function nF(e){e._progressiveDataSet.activeQueryCount>0&&el(e).set("should-cancel-response",!0)}function nB(e){if(e._select.selectedIndex>=0)return e._select.options[e._select.selectedIndex].textContent}function nU(e){nF(e);var t=!e.hasAttribute("no-empty-values"),i=!e._input.value,n=e._input.value!==nB(e);if(i||n)if(t)nE(e);else{var s=nB(e);void 0===s?nE(e):e._input.value=s}e._suggestionModel.highlight(-1),nI(e)}let nW=eo("aui-select",{template:eJ()(`
38
+ <input type="text" class="text" role="combobox" aria-expanded="false">
39
+ <select></select>
40
+ <datalist>
41
+ <content select="aui-option"></content>
42
+ </datalist>
43
+ <button class="aui-button" tabindex="-1" type="button"></button>
44
+ <div class="aui-popover" data-aui-alignment="bottom left" hidden>
45
+ <ul role="listbox" class="aui-optionlist"></ul>
46
+ </div>
47
+ <div class="aui-select-status assistive" aria-live="polite" role="status"></div>
48
+ `),created:function(e){e._listId=iI(),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 nk(e._dropdown,e._input),e._suggestionModel=new nC,e._suggestionModel.onChange=function(t){let i=[];e._suggestionModel._suggestions.forEach(function(e){t.some(t=>e.id===t.id)||i.push(e)});let n=nR(e),s=nj(e.value,n),r=t.length+i.length?"":`${eY.getText("aui.select.no.suggestions")}`;e._suggestionsView.render(i,t.length,e._listId,s),nz(e,r)},e._suggestionModel.onHighlightChange=function(){let t=e._suggestionModel.highlightedIndex();e._suggestionsView.setActive(t);let i=n$(e);null!=i?e._input.setAttribute("aria-activedescendant",i):e._input.removeAttribute("aria-activedescendant")}},attached:function(e){var t,i;let n;eo.init(e),e._progressiveDataSet=new n_(nR(e),{model:nx,matcher:nS,queryEndpoint:e._queryEndpoint,maxResults:20}),e._isSync=!e._queryEndpoint,e._progressiveDataSet.on("activity",function(){e._progressiveDataSet.activeQueryCount&&!e._isSync?(e._button.isBusy()||(e._button.busy(),e._input.setAttribute("aria-busy","true"),e._dropdown.setAttribute("aria-busy","true")),el(e).set("should-flag-new-suggestions",!1)):(e._button.idle(),e._input.setAttribute("aria-busy","false"),e._dropdown.setAttribute("aria-busy","false"),el(e).set("should-flag-new-suggestions",!0))}),e._progressiveDataSet.on("respond",function(t){let i;if(t.query&&!e._input.value)return;if(el(e).get("should-cancel-response")){e._progressiveDataSet.activeQueryCount||el(e).set("should-cancel-response",!1);return}t.query||(t.results=nR(e));var n,s,r=-1!==nj(e._input.value,t.results),a=!e._input.value;!e.hasAttribute("can-create-values")||r||a||t.results.push(((n=new nb).setAttribute("value",e._input.value),(s=nP(n)).set("new-value",!0),s));let o=nj(e.value,t.results);o=-1===o?0:o;let l=(i=e._suggestionModel.getNumberOfResults(),e._suggestionModel.set(),e._suggestionModel.set(t.results),i!==e._suggestionModel.getNumberOfResults()),c=t.results[o];e._autoHighlight&&(e._suggestionModel.setHighlighted(c),setTimeout(function(){let t=n$(e);null!=t?e._input.setAttribute("aria-activedescendant",t):e._input.removeAttribute("aria-activedescendant")},50)),e._input.setAttribute("aria-expanded","true"),e._button.setAttribute("aria-expanded","true"),!e._isSync&&l&&e._suggestionsView.getActive()&&el(e).get("should-flag-new-suggestions")&&(e.querySelector(".aui-select-status").innerHTML=eY.getText("aui.select.new.suggestions")),e._suggestionsView.show()}),e._dropdown.id=e._listId,e.querySelector("button").setAttribute("aria-controls",e._listId),e._input.setAttribute("aria-controls",e._listId),x(e._dropdown).on("mouseover","li",function(t){nA(e)&&e._suggestionModel.highlight(x(t.target).index())}),n=!1,x(document).on("aui-close-layers-on-outer-click.single-select",e=>{n&&(e.preventDefault(),n=!1)}),x(e._dropdown).on("mousedown","li",function(t){if(!nA(e))return!1;e._suggestionModel.highlight(x(t.target).index()),nL(e),x(e).closest(".aui-layer").length>0&&(n=!0)}),(t=e._datalist.querySelector("aui-option[selected]"))&&nO(e,nP(t)),i=nA(e)?0:-1,e._suggestionModel.highlight(i),nI(e),nN(e)},detached:function(e){x(document).off("aui-close-layers-on-outer-click"),iS(e).then(()=>{nI(e),e._suggestionsView.destroy()})},attributes:{id(e,t){e.id&&(e.querySelector("input").id=t.newValue+nd)},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){nU(e)},"mousedown button":function(e){document.activeElement!==e._input||e._dropdown.hasAttribute("hidden")||el(e).set("prevent-open-on-button-click",!0)},"click input":function(e){nH(e)},"click button":function(e){var t=el(e);t.get("prevent-open-on-button-click")?t.set("prevent-open-on-button-click",!1):(el(e).set("button-clicked-prevent-dropdown-hide",!0),e.focus())},input:function(e){e._input.value?nM(e,!0):el(e).get("button-clicked-prevent-dropdown-hide")?el(e).set("button-clicked-prevent-dropdown-hide",!1):nI(e)},"keydown input":function(e,t){var i=e._input.value,n=!1;if(t.keyCode===er.ESCAPE){nF(e),nD(e);return}e._suggestionsView.isVisible()&&nA(e)?t.keyCode===er.ENTER?(nF(e),nL(e),t.preventDefault()):t.keyCode===er.TAB?(nL(e),n=!0):t.keyCode===er.UP?(e._suggestionModel.highlightPrevious(),t.preventDefault()):t.keyCode===er.DOWN&&(e._suggestionModel.highlightNext(),t.preventDefault()):(t.keyCode===er.UP||t.keyCode===er.DOWN)&&(nH(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 nV=this._select.options[this._select.selectedIndex];return nV?nV.value:""},set value(value){if(""===value)this._input.value="",this._select.innerHTML="";else if(value){var nY=this._progressiveDataSet,nq=nY.findWhere({value})||nY.findWhere({label:value});!nq&&this.hasAttribute("can-create-values")&&(nq=new nx({value:value,label:value})),nO(this,nq)}return this},get displayValue(){return this._input.value},blur:function(){return this._input.blur(),nU(this),this},focus:function(){return this._input.focus(),nH(this),this}}});ea("aui/select",nW),k("select",nW);let nK=nW,{entries:nQ,setPrototypeOf:nG,isFrozen:nJ,getPrototypeOf:nZ,getOwnPropertyDescriptor:nX}=Object,{freeze:n0,seal:n1,create:n2}=Object,{apply:n3,construct:n4}="undefined"!=typeof Reflect&&Reflect;n0||(n0=function(e){return e}),n1||(n1=function(e){return e}),n3||(n3=function(e,t){for(var i=arguments.length,n=Array(i>2?i-2:0),s=2;s<i;s++)n[s-2]=arguments[s];return e.apply(t,n)}),n4||(n4=function(e){for(var t=arguments.length,i=Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return new e(...i)});let n9=sc(Array.prototype.forEach),n5=sc(Array.prototype.lastIndexOf),n8=sc(Array.prototype.pop),n7=sc(Array.prototype.push),n6=sc(Array.prototype.splice),se=sc(String.prototype.toLowerCase),st=sc(String.prototype.toString),si=sc(String.prototype.match),sn=sc(String.prototype.replace),ss=sc(String.prototype.indexOf),sr=sc(String.prototype.trim),sa=sc(Object.prototype.hasOwnProperty),so=sc(RegExp.prototype.test),sl=(l=TypeError,function(){for(var e=arguments.length,t=Array(e),i=0;i<e;i++)t[i]=arguments[i];return n4(l,t)});function sc(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var i=arguments.length,n=Array(i>1?i-1:0),s=1;s<i;s++)n[s-1]=arguments[s];return n3(e,t,n)}}function su(e,t){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:se;nG&&nG(e,null);let n=t.length;for(;n--;){let s=t[n];if("string"==typeof s){let e=i(s);e!==s&&(nJ(t)||(t[n]=e),s=e)}e[s]=!0}return e}function sd(e){let t=n2(null);for(let[i,n]of nQ(e))sa(e,i)&&(Array.isArray(n)?t[i]=function(e){for(let t=0;t<e.length;t++)sa(e,t)||(e[t]=null);return e}(n):n&&"object"==typeof n&&n.constructor===Object?t[i]=sd(n):t[i]=n);return t}function sh(e,t){for(;null!==e;){let i=nX(e,t);if(i){if(i.get)return sc(i.get);if("function"==typeof i.value)return sc(i.value)}e=nZ(e)}return function(){return null}}let sp=n0(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),sf=n0(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),sg=n0(["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"]),sm=n0(["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"]),sv=n0(["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"]),sb=n0(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),sy=n0(["#text"]),sw=n0(["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","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),s_=n0(["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","mask-type","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"]),sx=n0(["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"]),sC=n0(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),sT=n1(/\{\{[\w\W]*|[\w\W]*\}\}/gm),sk=n1(/<%[\w\W]*|[\w\W]*%>/gm),sE=n1(/\$\{[\w\W]*/gm),sA=n1(/^data-[\-\w.\u00B7-\uFFFF]+$/),sS=n1(/^aria-[\-\w]+$/),sD=n1(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),sI=n1(/^(?:\w+script|data):/i),sM=n1(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),sN=n1(/^html$/i);var sO=Object.freeze({__proto__:null,ARIA_ATTR:sS,ATTR_WHITESPACE:sM,CUSTOM_ELEMENT:n1(/^[a-z][.\w]*(-[.\w]+)+$/i),DATA_ATTR:sA,DOCTYPE_NAME:sN,ERB_EXPR:sk,IS_ALLOWED_URI:sD,IS_SCRIPT_OR_DATA:sI,MUSTACHE_EXPR:sT,TMPLIT_EXPR:sE});let sL=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let i=null,n="data-tt-policy-suffix";t&&t.hasAttribute(n)&&(i=t.getAttribute(n));let 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}},sP=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};var sR=function e(){let t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"undefined"==typeof window?null:window,n=t=>e(t);if(n.version="3.3.1",n.removed=[],!i||!i.document||9!==i.document.nodeType||!i.Element)return n.isSupported=!1,n;let{document:s}=i,r=s,a=r.currentScript,{DocumentFragment:o,HTMLTemplateElement:l,Node:c,Element:u,NodeFilter:h,NamedNodeMap:p=i.NamedNodeMap||i.MozNamedAttrMap,HTMLFormElement:f,DOMParser:g,trustedTypes:m}=i,v=u.prototype,b=sh(v,"cloneNode"),y=sh(v,"remove"),w=sh(v,"nextSibling"),_=sh(v,"childNodes"),x=sh(v,"parentNode");if("function"==typeof l){let e=s.createElement("template");e.content&&e.content.ownerDocument&&(s=e.content.ownerDocument)}let C="",{implementation:T,createNodeIterator:k,createDocumentFragment:E,getElementsByTagName:A}=s,{importNode:S}=r,D=sP();n.isSupported="function"==typeof nQ&&"function"==typeof x&&T&&void 0!==T.createHTMLDocument;let{MUSTACHE_EXPR:I,ERB_EXPR:M,TMPLIT_EXPR:N,DATA_ATTR:O,ARIA_ATTR:L,IS_SCRIPT_OR_DATA:P,ATTR_WHITESPACE:R,CUSTOM_ELEMENT:$}=sO,{IS_ALLOWED_URI:j}=sO,z=null,H=su({},[...sp,...sf,...sg,...sv,...sy]),F=null,B=su({},[...sw,...s_,...sx,...sC]),U=Object.seal(n2(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}})),W=null,V=null,Y=Object.seal(n2(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),q=!0,K=!0,Q=!1,G=!0,J=!1,Z=!0,X=!1,ee=!1,et=!1,ei=!1,en=!1,es=!1,er=!0,ea=!1,eo=!0,el=!1,ec={},eu=null,ed=su({},["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"]),eh=null,ep=su({},["audio","video","img","source","image","track"]),ef=null,eg=su({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),em="http://www.w3.org/1998/Math/MathML",ev="http://www.w3.org/2000/svg",eb="http://www.w3.org/1999/xhtml",ey=eb,ew=!1,e_=null,ex=su({},[em,ev,eb],st),eC=su({},["mi","mo","mn","ms","mtext"]),eT=su({},["annotation-xml"]),ek=su({},["title","style","font","a","script"]),eE=null,eA=["application/xhtml+xml","text/html"],eS=null,eD=null,eI=s.createElement("form"),eM=function(e){return e instanceof RegExp||e instanceof Function},eN=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!eD||eD!==e){if(e&&"object"==typeof e||(e={}),e=sd(e),eS="application/xhtml+xml"===(eE=-1===eA.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE)?st:se,z=sa(e,"ALLOWED_TAGS")?su({},e.ALLOWED_TAGS,eS):H,F=sa(e,"ALLOWED_ATTR")?su({},e.ALLOWED_ATTR,eS):B,e_=sa(e,"ALLOWED_NAMESPACES")?su({},e.ALLOWED_NAMESPACES,st):ex,ef=sa(e,"ADD_URI_SAFE_ATTR")?su(sd(eg),e.ADD_URI_SAFE_ATTR,eS):eg,eh=sa(e,"ADD_DATA_URI_TAGS")?su(sd(ep),e.ADD_DATA_URI_TAGS,eS):ep,eu=sa(e,"FORBID_CONTENTS")?su({},e.FORBID_CONTENTS,eS):ed,W=sa(e,"FORBID_TAGS")?su({},e.FORBID_TAGS,eS):sd({}),V=sa(e,"FORBID_ATTR")?su({},e.FORBID_ATTR,eS):sd({}),ec=!!sa(e,"USE_PROFILES")&&e.USE_PROFILES,q=!1!==e.ALLOW_ARIA_ATTR,K=!1!==e.ALLOW_DATA_ATTR,Q=e.ALLOW_UNKNOWN_PROTOCOLS||!1,G=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,Z=!1!==e.SAFE_FOR_XML,X=e.WHOLE_DOCUMENT||!1,ei=e.RETURN_DOM||!1,en=e.RETURN_DOM_FRAGMENT||!1,es=e.RETURN_TRUSTED_TYPE||!1,et=e.FORCE_BODY||!1,er=!1!==e.SANITIZE_DOM,ea=e.SANITIZE_NAMED_PROPS||!1,eo=!1!==e.KEEP_CONTENT,el=e.IN_PLACE||!1,j=e.ALLOWED_URI_REGEXP||sD,ey=e.NAMESPACE||eb,eC=e.MATHML_TEXT_INTEGRATION_POINTS||eC,eT=e.HTML_INTEGRATION_POINTS||eT,U=e.CUSTOM_ELEMENT_HANDLING||{},e.CUSTOM_ELEMENT_HANDLING&&eM(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(U.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&eM(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),J&&(K=!1),en&&(ei=!0),ec&&(z=su({},sy),F=[],!0===ec.html&&(su(z,sp),su(F,sw)),!0===ec.svg&&(su(z,sf),su(F,s_),su(F,sC)),!0===ec.svgFilters&&(su(z,sg),su(F,s_),su(F,sC)),!0===ec.mathMl&&(su(z,sv),su(F,sx),su(F,sC))),e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?Y.tagCheck=e.ADD_TAGS:(z===H&&(z=sd(z)),su(z,e.ADD_TAGS,eS))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?Y.attributeCheck=e.ADD_ATTR:(F===B&&(F=sd(F)),su(F,e.ADD_ATTR,eS))),e.ADD_URI_SAFE_ATTR&&su(ef,e.ADD_URI_SAFE_ATTR,eS),e.FORBID_CONTENTS&&(eu===ed&&(eu=sd(eu)),su(eu,e.FORBID_CONTENTS,eS)),e.ADD_FORBID_CONTENTS&&(eu===ed&&(eu=sd(eu)),su(eu,e.ADD_FORBID_CONTENTS,eS)),eo&&(z["#text"]=!0),X&&su(z,["html","head","body"]),z.table&&(su(z,["tbody"]),delete W.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw sl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');C=(t=e.TRUSTED_TYPES_POLICY).createHTML("")}else void 0===t&&(t=sL(m,a)),null!==t&&"string"==typeof C&&(C=t.createHTML(""));n0&&n0(e),eD=e}},eO=su({},[...sf,...sg,...sm]),eL=su({},[...sv,...sb]),eP=function(e){let t=x(e);t&&t.tagName||(t={namespaceURI:ey,tagName:"template"});let i=se(e.tagName),n=se(t.tagName);return!!e_[e.namespaceURI]&&(e.namespaceURI===ev?t.namespaceURI===eb?"svg"===i:t.namespaceURI===em?"svg"===i&&("annotation-xml"===n||eC[n]):!!eO[i]:e.namespaceURI===em?t.namespaceURI===eb?"math"===i:t.namespaceURI===ev?"math"===i&&eT[n]:!!eL[i]:e.namespaceURI===eb?(t.namespaceURI!==ev||!!eT[n])&&(t.namespaceURI!==em||!!eC[n])&&!eL[i]&&(ek[i]||!eO[i]):"application/xhtml+xml"===eE&&!!e_[e.namespaceURI])},eR=function(e){n7(n.removed,{element:e});try{x(e).removeChild(e)}catch(t){y(e)}},e$=function(e,t){try{n7(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){n7(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(ei||en)try{eR(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},ej=function(e){let i=null,n=null;if(et)e="<remove></remove>"+e;else{let t=si(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===eE&&ey===eb&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");let r=t?t.createHTML(e):e;if(ey===eb)try{i=new g().parseFromString(r,eE)}catch(e){}if(!i||!i.documentElement){i=T.createDocument(ey,"template",null);try{i.documentElement.innerHTML=ew?C:r}catch(e){}}let a=i.body||i.documentElement;return(e&&n&&a.insertBefore(s.createTextNode(n),a.childNodes[0]||null),ey===eb)?A.call(i,X?"html":"body")[0]:X?i.documentElement:a},ez=function(e){return k.call(e.ownerDocument||e,e,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},eH=function(e){return e instanceof f&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof p)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},eF=function(e){return"function"==typeof c&&e instanceof c};function eB(e,t,i){n9(e,e=>{e.call(n,t,i,eD)})}let eU=function(e){let t=null;if(eB(D.beforeSanitizeElements,e,null),eH(e))return eR(e),!0;let i=eS(e.nodeName);if(eB(D.uponSanitizeElement,e,{tagName:i,allowedTags:z}),Z&&e.hasChildNodes()&&!eF(e.firstElementChild)&&so(/<[/\w!]/g,e.innerHTML)&&so(/<[/\w!]/g,e.textContent)||7===e.nodeType||Z&&8===e.nodeType&&so(/<[/\w]/g,e.data))return eR(e),!0;if(!(Y.tagCheck instanceof Function&&Y.tagCheck(i))&&(!z[i]||W[i])){if(!W[i]&&eV(i)&&(U.tagNameCheck instanceof RegExp&&so(U.tagNameCheck,i)||U.tagNameCheck instanceof Function&&U.tagNameCheck(i)))return!1;if(eo&&!eu[i]){let t=x(e)||e.parentNode,i=_(e)||e.childNodes;if(i&&t){let n=i.length;for(let s=n-1;s>=0;--s){let n=b(i[s],!0);n.__removalCount=(e.__removalCount||0)+1,t.insertBefore(n,w(e))}}}return eR(e),!0}return e instanceof u&&!eP(e)||("noscript"===i||"noembed"===i||"noframes"===i)&&so(/<\/no(script|embed|frames)/i,e.innerHTML)?(eR(e),!0):(J&&3===e.nodeType&&(t=e.textContent,n9([I,M,N],e=>{t=sn(t,e," ")}),e.textContent!==t&&(n7(n.removed,{element:e.cloneNode()}),e.textContent=t)),eB(D.afterSanitizeElements,e,null),!1)},eW=function(e,t,i){if(er&&("id"===t||"name"===t)&&(i in s||i in eI))return!1;if(K&&!V[t]&&so(O,t));else if(q&&so(L,t));else if(Y.attributeCheck instanceof Function&&Y.attributeCheck(t,e));else if(!F[t]||V[t]){if(!(eV(e)&&(U.tagNameCheck instanceof RegExp&&so(U.tagNameCheck,e)||U.tagNameCheck instanceof Function&&U.tagNameCheck(e))&&(U.attributeNameCheck instanceof RegExp&&so(U.attributeNameCheck,t)||U.attributeNameCheck instanceof Function&&U.attributeNameCheck(t,e))||"is"===t&&U.allowCustomizedBuiltInElements&&(U.tagNameCheck instanceof RegExp&&so(U.tagNameCheck,i)||U.tagNameCheck instanceof Function&&U.tagNameCheck(i))))return!1}else if(ef[t]);else if(so(j,sn(i,R,"")));else if(("src"===t||"xlink:href"===t||"href"===t)&&"script"!==e&&0===ss(i,"data:")&&eh[e]);else if(Q&&!so(P,sn(i,R,"")));else if(i)return!1;return!0},eV=function(e){return"annotation-xml"!==e&&si(e,$)},eY=function(e){eB(D.beforeSanitizeAttributes,e,null);let{attributes:i}=e;if(!i||eH(e))return;let s={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0},r=i.length;for(;r--;){let{name:a,namespaceURI:o,value:l}=i[r],c=eS(a),u="value"===a?l:sr(l);if(s.attrName=c,s.attrValue=u,s.keepAttr=!0,s.forceKeepAttr=void 0,eB(D.uponSanitizeAttribute,e,s),u=s.attrValue,ea&&("id"===c||"name"===c)&&(e$(a,e),u="user-content-"+u),Z&&so(/((--!?|])>)|<\/(style|title|textarea)/i,u)||"attributename"===c&&si(u,"href")){e$(a,e);continue}if(s.forceKeepAttr)continue;if(!s.keepAttr||!G&&so(/\/>/i,u)){e$(a,e);continue}J&&n9([I,M,N],e=>{u=sn(u,e," ")});let h=eS(e.nodeName);if(!eW(h,c,u)){e$(a,e);continue}if(t&&"object"==typeof m&&"function"==typeof m.getAttributeType)if(o);else switch(m.getAttributeType(h,c)){case"TrustedHTML":u=t.createHTML(u);break;case"TrustedScriptURL":u=t.createScriptURL(u)}if(u!==l)try{o?e.setAttributeNS(o,a,u):e.setAttribute(a,u),eH(e)?eR(e):n8(n.removed)}catch(t){e$(a,e)}}eB(D.afterSanitizeAttributes,e,null)},eq=function e(t){let i=null,n=ez(t);for(eB(D.beforeSanitizeShadowDOM,t,null);i=n.nextNode();)eB(D.uponSanitizeShadowNode,i,null),eU(i),eY(i),i.content instanceof o&&e(i.content);eB(D.afterSanitizeShadowDOM,t,null)};return n.sanitize=function(e){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},s=null,a=null,l=null,u=null;if((ew=!e)&&(e="\x3c!--\x3e"),"string"!=typeof e&&!eF(e))if("function"==typeof e.toString){if("string"!=typeof(e=e.toString()))throw sl("dirty is not a string, aborting")}else throw sl("toString is not a function");if(!n.isSupported)return e;if(ee||eN(i),n.removed=[],"string"==typeof e&&(el=!1),el){if(e.nodeName){let t=eS(e.nodeName);if(!z[t]||W[t])throw sl("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)1===(a=(s=ej("\x3c!----\x3e")).ownerDocument.importNode(e,!0)).nodeType&&"BODY"===a.nodeName||"HTML"===a.nodeName?s=a:s.appendChild(a);else{if(!ei&&!J&&!X&&-1===e.indexOf("<"))return t&&es?t.createHTML(e):e;if(!(s=ej(e)))return ei?null:es?C:""}s&&et&&eR(s.firstChild);let h=ez(el?e:s);for(;l=h.nextNode();)eU(l),eY(l),l.content instanceof o&&eq(l.content);if(el)return e;if(ei){if(en)for(u=E.call(s.ownerDocument);s.firstChild;)u.appendChild(s.firstChild);else u=s;return(F.shadowroot||F.shadowrootmode)&&(u=S.call(r,u,!0)),u}let p=X?s.outerHTML:s.innerHTML;return X&&z["!doctype"]&&s.ownerDocument&&s.ownerDocument.doctype&&s.ownerDocument.doctype.name&&so(sN,s.ownerDocument.doctype.name)&&(p="<!DOCTYPE "+s.ownerDocument.doctype.name+">\n"+p),J&&n9([I,M,N],e=>{p=sn(p,e," ")}),t&&es?t.createHTML(p):p},n.setConfig=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};eN(e),ee=!0},n.clearConfig=function(){eD=null,ee=!1},n.isValidAttribute=function(e,t,i){return eD||eN({}),eW(eS(e),eS(t),i)},n.addHook=function(e,t){"function"==typeof t&&n7(D[e],t)},n.removeHook=function(e,t){if(void 0!==t){let i=n5(D[e],t);return -1===i?void 0:n6(D[e],i,1)[0]}return n8(D[e])},n.removeHooks=function(e){D[e]=[]},n.removeAllHooks=function(){D=sP()},n}();let s$="aui-tooltip",sj={n:"bottom",ne:"bottom-end",e:"left",se:"top-end",s:"top",sw:"top-start",w:"right",nw:"bottom-start"},sz="aui-tooltip",sH={gravity:"n",html:!1,live:!1,enabled:!0,suppress:()=>!1,aria:!0,sanitize:!0,maxWidth:200},sF=(e=!1)=>{let i=t&&t.get(0);i&&(i.classList.toggle("hidden",e),i.setAttribute("aria-hidden",e))};class sB{constructor(e,t){this.triggerElement=e,this.$triggerElement=x(this.triggerElement),this.options={...sH,...t},this.enabled=this.options.enabled,this.moveTitleToTooltip(),this.initContainer(),this.observeTriggerRemoval()}destroy(){this.unbindHandlers(),this.hide(),this.restoreOriginalAttributes(),sU.delete(this.triggerElement)}moveTitleToTooltip(){let e=this,t=this.$triggerElement;t.attr("title",function(i,n){return e.originalTitle=n,e.options.aria&&t.attr("aria-describedby",s$),null})}restoreOriginalAttributes(){let e=this.$triggerElement;this.originalTitle&&e.attr("title",this.originalTitle),e.attr("aria-describedby")===s$&&e.removeAttr("aria-describedby")}observeTriggerRemoval(){let 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=>{let t=e.parentElement;if(t){let i=new MutationObserver(()=>{t.contains(e)||this.destroy()});return i.observe(t,{childList:!0,subtree:!1}),i}}).filter(e=>!!e)}unbindHandlers(){let e=this.options.live;this.options.$delegationRoot&&e?this.options.$delegationRoot.off(`.${sz}`,e):(this.triggerObservers.length>0&&this.triggerObservers.forEach(e=>e.disconnect()),this.$triggerElement.off(`.${sz}`))}initContainer(){(void 0===t||t.get(0)&&!t.get(0).isConnected)&&(t=x(`<div id="${s$}" class="aui-tooltip hidden" role="tooltip" aria-hidden="true"><p class="aui-tooltip-content"></p></div>`),x(document.body).append(t))}buildTip(e){let i=this.options,n=t.find(".aui-tooltip-content");return i.html?(i.sanitize&&(e=sR.sanitize(e)),n.html(e)):n.text(e),i.maxWidth&&n.css("max-width",i.maxWidth+"px"),t}getTipTitle(){let e=this.options,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(){let e=this.getTipTitle();if(!1===this.enabled||!e)return;t&&e!==t.text()&&this.hide();let i=this.triggerElement,n=sj[this.options.gravity];if("function"==typeof this.options.suppress&&!0===this.options.suppress.call(i))return;let s=this.buildTip(e).get(0);this.showTooltip(),this.popperInstance=i_(i,s,{placement:n,modifiers:[{name:"offset",options:{offset:[0,4]}}]}),x(window).on(`scroll.${sz}`,()=>this.hide())}hide(){this.hideTooltip(),this.popperInstance&&(this.popperInstance.destroy(),delete this.popperInstance),x(window).off(`scroll.${sz}`)}showTooltip(){sF(!1)}hideTooltip(){sF(!0)}enable(){this.enabled=!0}disable(){this.hide(),this.enabled=!1}}let sU=new WeakMap,sW=(e,t)=>{let i=sU.get(e);return void 0===i&&(i=new sB(e,t),"object"==typeof e&&sU.set(e,i)),i},sV=e=>e.map(e=>`${e}.${sz}`).join(" "),sY=sV(["mouseenter","focus"]),sq=sV(["click","mouseleave","blur"]);function sK(e,t,i){i?e.setAttribute(t,""):e.removeAttribute(t)}x.fn.tooltip=function(e){if(!0===e)return sW(this.get(0));if("string"==typeof e){let t=this.tooltip(!0);if("function"!=typeof t[e])throw Error(`Method ${e} does not exist on tooltip.`);return t[e](),this}let n=e||{},s=function(){clearTimeout(r),clearTimeout(i)},a=function(){t.off(`mouseenter.${sz}`),t.off(`mouseleave.${sz}`),t.on(`mouseenter.${sz}`,()=>{s()}),t.on(`mouseleave.${sz}`,()=>{s(),l()})},o=function(){s();let e=sW(this,n);i=setTimeout(()=>{s(),e.show(),t&&a()},300)},l=function(){s();let e=sW(this,n);r=setTimeout(()=>{e.hide()},300)},c=function(e){"Escape"===e.code&&l()},u=n.live;return void 0!==u?(n.$delegationRoot=this,this.on(sY,u,o),this.on(sq,u,l),this.on("keyup",u,c)):(this.on(sY,o),this.on(sq,l),this.on("keyup",c)),this};let sQ=function(e,t){let 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},sG=function(e,t,i){e.setAttribute(t.attribute,i)};function sJ(e){return e._input||(e._input=e.querySelector("input"))}function sZ(e){return e._spinner||(e._spinner=new tg)}function sX(e,t){sJ(t).removeAttribute(e)}function s0(e,t,i){sJ(t).setAttribute(e,i.newValue)}function s1(e){return{removed:sX.bind(this,e),fallback:s0.bind(this,e)}}let s2={removed:function(e){sX.call(this,"form",e),e._formId=null},fallback:function(e,t){s0.call(this,"form",e,t),e._formId=t.newValue}},s3={removed:sX.bind(void 0,"id"),fallback:function(e,t){let i=`${t.newValue}${nd}`;sJ(e).setAttribute("id",i)}},s4=eo("aui-toggle",{template:eJ()('<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){sJ(e),sZ(e).setAttribute("size",tl.SMALL.name),x(sJ(e)).tooltip({title:function(){return this.checked?this.getAttribute("tooltip-on"):this.getAttribute("tooltip-off")},gravity:"s",hoverable:!1}),sJ(e).addEventListener("keydown",function(t){e.busy&&t.keyCode===er.SPACE&&t.preventDefault()}),navigator.userAgent.toLowerCase().indexOf("firefox")>-1&&sJ(e).addEventListener("click",function(t){e.busy&&t.preventDefault()}),!function(){if(void 0===v)try{document.querySelector(":focus-within"),v=!0}catch(e){v=!1}return v}()&&(e._input.addEventListener("focus",()=>e.classList.add("active")),e._input.addEventListener("blur",()=>e.classList.remove("active"))),e.hasAttribute("checked")&&sJ(e).setAttribute("checked",""),e._canFireEventsNow=!0},attached:function(e){nu(e).attributeExists("label")},events:{click:function(e,t){let i=sJ(e);!e.disabled&&!e.busy&&t.target!==i&&(i.checked=!i.checked,e._canFireEventsNow&&e.dispatchEvent(new CustomEvent("change",{bubbles:!0})));sK(e,"checked",i.checked)}},attributes:{id:s3,checked:{removed:function(e){sJ(e).checked=!1},fallback:function(e){sJ(e).checked=!0}},disabled:s1("disabled"),form:s2,name:s1("name"),value:{removed:function(e){sX.call(this,"value",e),sJ(e).value="on"},fallback:function(e,t){s0.call(this,"value",e,t)}},"tooltip-on":{value:eY.getText("aui.toggle.on"),fallback:function(e,t){sJ(e).setAttribute("tooltip-on",t.newValue||eY.getText("aui.toggle.on"))}},"tooltip-off":{value:eY.getText("aui.toggle.off"),fallback:function(e,t){sJ(e).setAttribute("tooltip-off",t.newValue||eY.getText("aui.toggle.off"))}},label:{removed:function(e){sJ(e).removeAttribute("aria-label")},fallback:function(e,t){sJ(e).setAttribute("aria-label",t.newValue)}}},prototype:{focus:function(){return sJ(this).focus(),this},get checked(){return sJ(this).checked},set checked(value){sJ(this).checked!==value&&(sJ(this).checked=value,sK(this,"checked",value))},get disabled(){return sJ(this).disabled},set disabled(value){return sK(this,"disabled",value)},get form(){return document.getElementById(this._formId)},set form(value){return s2.fallback.call(this,this,{newValue:value||null}),this.form},get name(){return sJ(this).name},set name(value){return this.setAttribute("name",value),value},get value(){return sJ(this).value},set value(value){let e=null===value?"":value;return this.setAttribute("value",e),e},get busy(){return"true"===sJ(this).getAttribute("aria-busy")},set busy(value){var s9;let e=sJ(this),t=sZ(this);return sK(this,"busy",value),value?(e.setAttribute("aria-busy","true"),e.indeterminate=!0,this.checked?(e.classList.add("indeterminate-checked"),x(this.querySelector(".aui-toggle-tick")).append(t)):x(this.querySelector(".aui-toggle-cross")).append(t)):(e.classList.remove("indeterminate-checked"),e.indeterminate=!1,e.removeAttribute("aria-busy"),t.parentNode&&t.parentNode.removeChild(this._spinner)),s9=!!value,this.id&&Array.prototype.forEach.call(document.querySelectorAll(`aui-label[for="${this.id}"]`),function(e){e.disabled=s9}),value}}});function s5(e,t){ru(e)&&ed(e,function(i){i.setAttribute("aria-expanded","false"),t.setAttribute("aria-expanded",e.open)}),eu(e,t)}function s8(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 iA(e,t,i)}}function s7(e){e._auiAlignment&&(e._auiAlignment.destroy(),delete e._auiAlignment)}function s6(e,t){var i=t.currentTarget;i&&(s5(e,i),s8(e,i)),e.open||(e.open=!0),clearTimeout(e._closingTimeout)}function re(e=0){return function(t){!t.open||eN(t).isPersistent()||(clearTimeout(t._closingTimeout),t._closingTimeout=setTimeout(function(){el(t).get("mouse-inside")||t.contains(document.activeElement)||(t.open=!1),t._closingTimeout=null},e))}}let rt={click(e,t){e.open&&!eN(e).isPersistent()?e.open=!1:(s5(e,t.currentTarget),e.open=!0),clearTimeout(e._closingTimeout)},mouseenter:s6,mouseleave:re(1e3),focus:s6,blur:re(0)};function ri(e){var t=e.currentTarget;el(t).set("mouse-inside",!0),t.message({type:"mouseenter"})}function rn(e){var t=e.currentTarget;el(t).set("mouse-inside",!1),t.message({type:"mouseleave"})}function rs(e){var t=e.currentTarget;"hover"===t.respondsTo&&re(1e3)(t)}function rr(e){el(e).set("mouse-inside",void 0),e.removeEventListener("mouseenter",ri),e.removeEventListener("mouseleave",rn),e.removeEventListener("blur",rs),"hover"===e.respondsTo&&(el(e).set("mouse-inside",!1),e.addEventListener("mouseenter",ri),e.addEventListener("mouseleave",rn),e.addEventListener("blur",rs))}function ra(e,t){return`${e}.nested-layer-${t}`}function ro(e){return eN(e).show(),!0===eN(e).isVisible()}function rl(e){return eN(e).hide(),!1===eN(e).isVisible()}function rc(e){return"hover"!==e.respondsTo}function ru(e){return"dialog"!==e.getAttribute("role")}function rd(e){e.__initialised||(eN(e),x(e).on({[`${eE}show`]:function(e){let t=this;if(e.target===t){let e,i,n;e=x(t),i=t.id,n=t=>e.find(ec(t.target)).length<1,x(document).on(ra("aui-layer-show",i),t=>{n(t)||e.attr("persistent","")}).on(ra("aui-layer-hide",i),t=>{n(t)||e.removeAttr("persistent")}).on(ra("select2-opening",i),()=>{e.attr("persistent","")}).on(ra("select2-close",i),()=>{setTimeout(()=>{e.removeAttr("persistent")},150)}),ed(t,function(e){rc(t)&&eT().enter(x(t),x(e)),s8(t,e),ru(t)&&e.setAttribute("aria-expanded","true")})}},[`${eE}hide`]:function(e){let t=this;if(e.target===t){var i;(i=t.id,x(document).off(ra("aui-layer-hide",i)).off(ra("aui-layer-show",i)).off(ra("select2-opening",i)).off(ra("select2-close",i)),t.ownerDocument.body.contains(t))?t._auiAlignment&&t._auiAlignment.disable():s7(t),ed(t,function(e){rc(t)&&eT().exit(x(t)),ru(t)&&e.setAttribute("aria-expanded","false")}),eu(t,null)}}}),e.__initialised=!0)}let rh={attribute:"responds-to",values:["toggle","hover"],missingDefault:"toggle",invalidDefault:"toggle"},rp=eo("aui-inline-dialog",{prototype:{get open(){return eN(this).isVisible()},set open(value){this.__propUpdate=!0,value?ro(this):rl(this)},get persistent(){return this.hasAttribute("persistent")},set persistent(value){sK(this,"persistent",value)},get respondsTo(){var rf=rh.attribute;return sQ(rh,this.getAttribute(rf))},set respondsTo(value){let e=this.respondsTo;sG(this,rh,value),e!==this.respondsTo&&rr(this)},message:function(e){var t;return(t=({toggle:["click"],hover:["mouseenter","mouseleave","focus","blur"]})[this.respondsTo])&&t.indexOf(e.type)>-1&&rt[e.type](this,e),this}},attributes:{open:function(e,t){(rd(e),e.__propUpdate)?delete e.__propUpdate:("created"===t.type&&(ro(e)||sK(e,"open",!1)),"removed"===t.type&&(rl(e)||sK(e,"open",!0)))},"responds-to":function(e,t){sQ(rh,t.oldValue)!==sQ(rh,t.newValue)&&rr(e)}},created:rd,attached:function(e){nu(e).attributeExists("id"),e.setAttribute("tabindex",0),ru(e)&&(e.setAttribute("role","group"),ed(e,function(t){t.setAttribute("aria-expanded",e.open)}),eh(e,function(e){e.setAttribute("aria-haspopup","true")})),rr(e)},detached:function(e){iS(e).then(()=>{s7(e),ru(e)&&eh(e,function(e){e.removeAttribute("aria-haspopup"),e.removeAttribute("aria-expanded")})})},template:function(e){x('<div class="aui-inline-dialog-contents"></div>').append(e.childNodes).appendTo(e)}});ea("aui/inline-dialog2",rp),k("InlineDialog2",rp);let rg=rp;function rm(e){if(this.$el=x(e).closest(".aui-nav"),this.$el.length>1)return this.$el.map(function(e,t){return new rm(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(){rv(x(this).children(".aui-nav")).expand()});var i=this.$el.find("> li[aria-expanded] > .aui-nav-subtree-toggle");return i.on("click",function(){rv(x(this).siblings(".aui-nav")).toggle()}),i.each(function(){var e=x(this).parent("li[aria-expanded]"),t=x(this).find(".aui-icon"),i="true"===e.attr("aria-expanded");t.text(i?eY.getText("aui.words.collapse"):eY.getText("aui.words.expand"))}),this}rm.prototype.isNested=function(){return 1===this.$treeParent.length},rm.prototype.isCollapsed=function(){return"false"===this.$treeParent.attr("aria-expanded")},rm.prototype.expand=function(){return this.$treeParent.attr("aria-expanded","true"),this.$subtreeToggleIcon.removeClass("aui-iconfont-collapsed").addClass("aui-iconfont-expanded").text(eY.getText("aui.words.collapse")),this},rm.prototype.collapse=function(){return this.$treeParent.attr("aria-expanded","false"),this.$subtreeToggleIcon.removeClass("aui-iconfont-expanded").addClass("aui-iconfont-collapsed").text(eY.getText("aui.words.expand")),this},rm.prototype.toggle=function(){return this.isCollapsed()?this.expand():this.collapse(),this};let rv=ek("navigation",rm),rb=eo("aui-nav",{type:eo.type.CLASSNAME,attached:function(e){new rm(e)},detached:function(e){x(e).removeData()}});k("navigation",rv);let ry=rv;function rw(e,t,{currentProgress:i,value:n}){let s=x(e),r=x(t);"number"==typeof n&&n<=1&&n>=0&&(r.trigger("aui-progress-indicator-before-update",[i,n]),s.one("transitionend webkitTransitionEnd",function(){r.trigger("aui-progress-indicator-after-update",[i,n])}),et(s),s.css("width",100*n+"%"),r.attr("data-value",n))}function r_(e){var t=x(e).first(),i=t.children(".aui-progress-indicator-value");t.removeAttr("data-value"),et(t),i.css("width","")}let rx={indeterminate:!1,max:1,val:0};function rC(e){return(0,to.isNumber)(e)&&(0,to.isFinite)(e)&&!(0,to.isNaN)(e)}function rT(e,t=1){let i=parseFloat(e);return rC(i)?i:Number(t)}function rk(e,t=1){return Number(parseFloat(e).toFixed(t))}function rE(e){let{val:t,max:i}=e,n=i>0?i:rx.max,s=Math.max(0,Math.min(t,n)),r=rk(s/n,6),a=rk(100*r,2);return{max:n,val:s,valAsFraction:r,valAsPercent:a}}function rA(e){let{val:t,valAsFraction:i,max:n}=rE(e._data),s=e.querySelector(".aui-progress-indicator"),r=s.getAttribute("data-value");e.indeterminate?(s.removeAttribute("aria-valuenow"),r_(s)):(s.setAttribute("aria-valuenow",t),s.setAttribute("aria-valuemax",n),rw(s.querySelector(".aui-progress-indicator-value"),s,{currentProgress:r,value:i}))}function rS(e,t){e._data.val=rT(t.newValue,t.oldValue||rx.val),rA(e)}function rD(e,t){e._data.max=rT(t.newValue,t.oldValue||rx.max),rA(e)}let rI=eo("aui-progressbar",{template(e){e._data.max=rT(e.getAttribute("max"),rx.max),e._data.val=rT(e.getAttribute("value"),rx.val),e._data.indeterminate=e.hasAttribute("indeterminate");let{val:t,max:i,valAsFraction:n,valAsPercent:s}=rE(e._data),r=e._data.indeterminate?"":`data-value="${n}"`;e.innerHTML=`<div class="aui-progress-indicator"
49
+ ${r}
50
+ role="progressbar"
51
+ aria-valuemin="0"
52
+ aria-valuenow="${t}"
53
+ aria-valuemax="${i}"
54
+ tabindex="0"
55
+ >
56
+ <span class="aui-progress-indicator-value" style="width: ${s}%"></span>
57
+ </div>`},attached(e){rA(e)},attributes:{indeterminate:{created:function(e){e.indeterminate=!0},removed:function(e){e.indeterminate=!1}},value:{value:rx.val,fallback:function(e,t){if(e._updating)return!1;rS(e,t)}},max:{value:rx.max,fallback:function(e,t){if(e._updating)return!1;rD(e,t)}}},prototype:{get _data(){return this.__data||(this._data=(0,to.defaults)({},rx))},set _data(d){return this.__data=d},get indeterminate(){return this._data.indeterminate},set indeterminate(val){this._data.indeterminate=!!val,rA(this)},get value(){let{val:e}=rE(this._data);return e},set value(num){if(!rC(num))return!1;let e={newValue:rk(num,6)};this._updating=!0,this.setAttribute("value",e.newValue),this._updating=!1,rS(this,e)},get max(){let{max:e}=rE(this._data);return e},set max(num){if(!rC(num))return!1;let e={newValue:rk(num,6)};this._updating=!0,this.setAttribute("max",e.newValue),this._updating=!1,rD(this,e)}}}),rM={update:J(function(e,t){if("string"==typeof e){let t=document.getElementById(e);t&&(e=t)}var i=x(e).first(),n=i.children(".aui-progress-indicator-value"),s=i.attr("data-value"),r=parseFloat(s)||0,a=s&&r===t;if(a&&(a=r===100*(parseFloat(n.get(0).style.width)||0)),!a)return s||n.css("width",0),rw(n,i,{currentProgress:r,value:t}),i},"AJS.progressBars.update",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"}),setIndeterminate:J(r_,"AJS.progressBars.setIndeterminate",{sinceVersion:"7.7.0",removeInVersion:"11.0.0",extraInfo:"Use the <aui-progressbar> web component instead"})};k("progressBars",rM);let rN=rM;n(99);let rO={headerTemplate:"",sortMultiSortKey:"",headers:{},debug:!1,tabIndex:!1};function rL(e,t){let i=Object.assign({},rO,t);return e.find("th").each(function(e,t){let n=x(t);i.headers[e]={},n.hasClass("aui-table-column-unsortable")?i.headers[e].sorter=!1:(n.attr("tabindex","0"),n.wrapInner("<span class='aui-table-header-content'/>"),n.hasClass("aui-table-column-issue-key")&&(i.headers[e].sorter="issue-key"))}),e.tablesorter(i)}let rP={setup:function(){x.tablesorter.addParser({id:"issue-key",is:function(){return!1},format:function(e){let t=e.split("-"),i=t[0],n=t[1],s="..........",r="000000",a=(i+s).slice(0,s.length);return a+(r+n).slice(-r.length)},type:"text"}),x.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"}),x.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"}),x(".aui-table-sortable").each(function(){rL(x(this))})},setTableSortable:function(e,t){return rL(e,t)}};function rR(e,t=""){var i=x(e),n=t||!1;i.each(function(){var e=x(this);e.attr("id")||e.attr("id",iI(n))})}function r$(e){return(e=x(e)).prop("scrollWidth")>e.prop("clientWidth")}x(rP.setup),k("tablessortable",rP),k("_addID",rR),k("isClipped",r$);var rj=window.skateTemplateHtml;function rz(e){let t=String(x(e).attr("href")||"").trim();return 0===t.indexOf("#")?t.substr(1):null}function rH(e){let t=rz(e);return t?document.getElementById(t):null}var rF={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,i){t+=x(i).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">
58
+ <a
59
+ class="aui-dropdown2-trigger aui-tabs-responsive-trigger aui-dropdown2-trigger-arrowless"
60
+ id="aui-tabs-responsive-trigger-${t}"
61
+ aria-haspopup="true"
62
+ aria-controls="aui-tabs-responsive-dropdown-${t}"
63
+ href="#aui-tabs-responsive-dropdown-${t}">...</a>
64
+ </li>`;return e.append(i),e.find(".aui-tabs-responsive-trigger-item")},createResponsiveDropdown:function(e,t){return e.append('<div class="aui-dropdown2 aui-tabs-responsive-dropdown" id="aui-tabs-responsive-dropdown-'+t+'"><ul></ul></div>'),e.find("#aui-tabs-responsive-dropdown-"+t)},findNewVisibleTabs:function(e,t,i){for(var n=0,s=0;n+i<=t&&s<e.length;s++)n+=x(e[s]).outerWidth(!0);return e.slice(0,s-1)},moveVisibleTabs:function(e,t,i){for(var n=x("#"+i.find("a").attr("aria-controls")),s=this.findNewVisibleTabs(e,t.outerWidth(),i.parent().outerWidth(!0)),r=s.length-1,a=e.length-1;a>=r;a--){var o=x(e[a]);this.moveTabToResponsiveDropdown(o,n,i)}return x(s)},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,i){for(var n=0;t>0&&n<e.length;n++){var s=x(e[n]),r=parseInt(s.attr("data-aui-tab-width"),10);r<t&&this.moveTabOutOfDropdown(s,i),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 rB(e){var t=x(e);if(!t.hasClass("aui-tabs-responsive-trigger")){var i=rH(t);if(!i)return void O("Cannot switch to tab panel because it does not exist. Check whether the tab link href is correct.",e);var n=x(i);n.addClass("active-pane").siblings(".tabs-pane").removeClass("active-pane");var s=t.parents(".aui-tabs").find(".aui-tabs-responsive-trigger-item a").attr("aria-controls"),r=x(document.getElementById(s));if(r.find("li a").removeAttr("aria-checked").removeClass("checked aui-dropdown2-checked"),r.find("li").removeClass("active-tab"),t.parent("li.menu-item").addClass("active-tab").siblings(".menu-item").removeClass("active-tab"),t.hasClass("aui-tabs-responsive-item")){var a=n.parent(".aui-tabs").find("li.menu-item:not(.aui-tabs-responsive-trigger-item)");a.removeClass("active-tab"),a.find("a").removeClass("checked").removeAttr("aria-checked")}t.hasClass("aui-tabs-responsive-item")&&n.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:n})}}function rU(e){return void 0!==e.attr("data-aui-persist")&&"false"!==e.attr("data-aui-persist")}function rW(e){var t=e.attr("id"),i=e.attr("data-aui-persist");return"_internal-aui-tabs-"+(t||"")+(i&&"true"!==i?"-"+i:"")}function rV(e){rG.change(x(e.target).closest("a")),e&&e.preventDefault()}function rY(e){e.forEach(function(e,t){!function(e,t){var i=x(e),n=i.find(".tabs-menu").first(),s=n.find("li:not(.aui-tabs-responsive-trigger-item)"),r=n.find(".aui-tabs-responsive-trigger").parent(),a=r.find("a"),o=a.attr("aria-controls"),l=x(document.getElementById(o)).removeAttr("aria-checked"),c=l.length>0,u=rF.totalTabsWidth(s,l)>i.outerWidth();if(!c&&u&&(r=rF.createResponsiveDropdownTrigger(n,t),l=rF.createResponsiveDropdown(i,t)),a.attr("aria-controls","aui-tabs-responsive-dropdown-"+t),a.attr("id","aui-tabs-responsive-trigger-"+t),a.attr("href","#aui-tabs-responsive-trigger-"+t),l.attr("id","aui-tabs-responsive-dropdown-"+t),u){var h=rF.moveVisibleTabs(s.toArray(),i,r),p=rF.totalVisibleTabWidth(h),f=i.outerWidth()-p-r.outerWidth(!0);if(f>0){var g=l.find("li");rF.moveInvisibleTabs(g.toArray(),f,r)}i.hasClass("aui-tabs-disabled")||l.on("click.aui-tabs","a",rV),n.is(":visible")&&n.hide().show()}c&&!u&&(l.find("li").each(function(){rF.moveTabOutOfDropdown(x(this),r)}),rF.removeResponsiveDropdown(l,r))}(e,t)})}function rq(){return x('.aui-tabs.horizontal-tabs[data-aui-responsive]:not([data-aui-responsive="false"]), aui-tabs[responsive]:not([responsive="false"])').toArray()}function rK(e){var t=x(e);if(e.setAttribute("role","application"),!t.data("aui-tab-events-bound")){var i,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;t=rH(e=x(this)),rz(this)||O('A tab link must use an anchor link (e.g., <a href="#a-valid-id"></a>) to work correctly.',this),t?(rR(e),e.attr("role","tab"),x(t).attr("aria-labelledby",e.attr("id")),e.parent().hasClass("active-tab")?e.attr("aria-selected","true"):e.attr("aria-selected","false")):N("A tab panel could not be found with the tab link's configured href. Check whether the tab link href is correct.",this)}),n.on("click.aui-tabs","a",rV),t.data("aui-tab-events-bound",!0),i=e,[].slice.call(i.querySelectorAll(".tabs-pane")).forEach(rQ)}}function rQ(e){e.setAttribute("role","tabpanel")}var rG={setup:function(){var e;let t;(t=(0,to.debounce)(rY,200))(rq()),x(window).on("resize.aui-tabs",()=>t(rq())),(e=x(".aui-tabs:not(.aui-tabs-disabled)")).each(function(){rK(this)}),function(e){for(var t=0,i=e.length;t<i;t++){var n=e.eq(t),s=e.get(t);if(rU(n)&&window.localStorage)if(n.attr("id")){var r=window.localStorage.getItem(rW(n));if(r){var a=s.querySelector(`a[href$="${r}"]`);a&&rB(a)}}else N("A tab group must specify an id attribute if it specifies data-aui-persist.")}}(e),x(".aui-tabs.vertical-tabs").find("a").each(function(){var e=x(this);!e.attr("title")&&r$(e)&&e.attr("title",e.text())})},change:function(e){var t=e instanceof HTMLElement||e instanceof x?e:document.querySelector(e),i=x(t).first(),n=i.closest(".aui-tabs");rB(i),rU(n)&&window.localStorage&&function(e){var t=e.closest(".aui-tabs");if(t.attr("id")){var i=rz(e);i&&window.localStorage.setItem(rW(t),"#"+i)}else N("A tab group must specify an id attribute if it specifies data-aui-persist.")}(i)}};x(rG.setup);let rJ=eo("aui-tabs",{created:function(e){x(e).addClass("aui-tabs horizontal-tabs"),eo.init(e),rK(e)},template:rj('<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=x(this.querySelectorAll("aui-tabs-pane")).index(e);return t>-1&&rG.change(this.querySelectorAll("li[is=aui-tabs-tab]")[t].children[0]),this}}}),rZ=eo("aui-tabs-tab",{extends:"li",created:function(e){x(e).addClass("menu-item")},template:rj('<a href="#">',"<strong>","<content></content>","</strong>","</a>")}),rX=eo("aui-tabs-pane",{attached:function(e){var t=x(x(e).closest("aui-tabs").get(0)),i=x(e),n=t.find("aui-tabs-pane").index(i),s=new rZ,r=x(s);i.addClass("tabs-pane"),s.firstChild.setAttribute("href","#"+e.id),rj.wrap(s).textContent=i.attr("title"),0===n&&i.addClass("active-pane"),i.hasClass("active-pane")&&r.addClass("active-tab"),i.siblings("ul").append(s)},template:rj("<content></content>")});k("tabs",rG);let r0="_aui-form-notification-initialised",r1="description",r2="errors",r3="data-aui-notification-",r4=r3+"wait",r9=r3+"info",r5=r3+"error",r8=[r5,r3+"success",r4,r9];function r7(e){return e.hasClass(r0)}function r6(e,t){t=t||ae(e),at(e)===r9&&(e.parent().find(".description").length||e.after(function(e,t){let 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}-${r1}"><ul>${e}</ul></div>`}return`<div class="description" id="${i}-${r1}">${t}</div>`}(e,t))),an(e)}function ae(e){var t=at(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 at(e){let t;return r8.some(function(i){if(e.is("["+i+"]"))return t=i,!0}),t}function ai(e){let t=x(e);if(!r7(t))return;let i=at(t);aa(t,i===r4);let n=ae(t);n&&i===r5?as(t,n):e.constructor.prototype.hasOwnProperty("jquery")||e.hasAttribute(r5)||t.parent().find(".error").remove()}function an(e){let t=[],i=e.attr("id")||e.attr("name"),n=at(e);ae(e)&&n===r5&&t.push(`${i}-${r2}`),ar(e,"description").length&&t.push(`${i}-${r1}`),(function(e){for(let[t,i]of Object.entries({"aui-select":'input[type="text"][role="combobox"]'}))if(e.is(t)){let t=e.find(i);if(t.length)return t}return e})(e).attr("aria-describedby",t.length?t.join(" "):null)}function as(e,t){let i,n,s=ar(e,"error");s.length>0&&s.remove(),e.after((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(""),`<div class="error" role="alert" id="${i}-${r2}"><ul>${n}</ul></div>`)),an(e)}function ar(e,t){return e.parent().find(`.${t}`)}function aa(e,t){t&&!(e.next("aui-spinner").length>0)?e.after('<aui-spinner class="form-notification-spinner" size="small"></aui-spinner>'):e.parent().find("aui-spinner").remove()}let ao=K("data-aui-notification-field attribute",{deprecationType:"ATTRIBUTE",alternativeName:"HTML markup"});eo("data-aui-notification-field",{attached:function(e){var t,i;ao(),r7(t=x(e))||((i=t).addClass(r0),r6(i),ai(t))},attributes:(o={},r8.forEach(function(e){o[e]=ai}),o),type:eo.type.ATTRIBUTE}),ea("aui/form-notification");var al=["displayfield","watchfield","when","novalidate","state"],ac=[],au={register:function(e,t){if("string"==typeof e)n=e;else{var i,n,s=(i=!1,e.some(function(e){var t=-1!==x.inArray(e,al);return t&&(i=e),t}),i);if(s)return N('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 r={validatorFunction:t,validatorTrigger:n};return ac.push(r),r},validators:function(){return ac}};function ad(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){let t=av("exactlength",e.args,[n]);e.invalidate(t)}else if(n&&t<n&&!i){let t=av("minlength",e.args);e.invalidate(t)}else if(s&&t>s){let t=av("maxlength",e.args);e.invalidate(t)}else e.validate()}function ah(e){return"password"===e.getAttribute("type")}function ap(e,t){var i=e.match(t);return!!i&&e===i[0]}function af(e){var t=av("pattern",e.args);ap(e.el.value,new RegExp(e.args("pattern")))?e.validate():e.invalidate(t)}function ag(e){var t=av("required",e.args);e.el.value?e.validate():e.invalidate(t)}function am(e){var t=av("validnumber",e.args),i=parseInt(e.el.value,10);if(isNaN(i))return void e.invalidate(t);var n=e.args("min"),s=e.args("max");n&&i<parseInt(n,10)?e.invalidate(av("min",e.args)):s&&i>parseInt(s,10)?e.invalidate(av("max",e.args)):e.validate()}function av(e,t,i){var n,s=void 0!==eY.keys?eY.keys["aui.validation.message."+e]:ab[e],r=i;i||(r=[t(e)]);var a=t(e+"-msg");return n=a?[a].concat(r):[s].concat(r),AJS.format.apply(null,n)}ea("aui/form-validation/validator-register",au),au.register(["maxlength","minlength"],ad),au.register("[maxlength],[minlength]",ad),au.register(["matchingfield"],function(e){var t=e.el.value,i=document.getElementById(e.args("matchingfield")),n=i.value,s=av("matchingfield",e.args,[t,n]);(ah(e.el)||ah(i))&&(s=av("matchingfield-novalue",e.args)),t&&n&&n!==t?e.invalidate(s):e.validate()}),au.register(["doesnotcontain"],function(e){var t=av("doesnotcontain",e.args);-1===e.el.value.indexOf(e.args("doesnotcontain"))?e.validate():e.invalidate(t)}),au.register(["pattern"],af),au.register("[pattern]",af),au.register(["required"],ag),au.register("[required]",ag),au.register(["min","max"],am),au.register("[min],[max]",am),au.register(["dateformat"],function(e){var t=e.args("dateformat"),i=av("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(""),r="";s.forEach(function(e){n.hasOwnProperty(e)?r+=n[e]:r+=e});var a=RegExp(r+"$","i");ap(e.el.value,a)?e.validate():e.invalidate(i)}),au.register(["minchecked","maxchecked"],function(e){var t=x(e.el).find(":checked").length,i=!e.args("minchecked")||t>=e.args("minchecked"),n=!e.args("maxchecked")||t<=e.args("maxchecked"),s=av("minchecked",e.args),r=av("maxchecked",e.args);i&&n?e.validate():i?n||e.invalidate(r):e.invalidate(s)});var ab={minlength:eY.getText("aui.validation.message.minlength"),maxlength:eY.getText("aui.validation.message.maxlength"),exactlength:eY.getText("aui.validation.message.exactlength"),matchingfield:eY.getText("aui.validation.message.matchingfield"),"matchingfield-novalue":eY.getText("aui.validation.message.matchingfield-novalue"),doesnotcontain:eY.getText("aui.validation.message.doesnotcontain"),pattern:eY.getText("aui.validation.message.pattern"),required:eY.getText("aui.validation.message.required"),validnumber:eY.getText("aui.validation.message.validnumber"),min:eY.getText("aui.validation.message.min"),max:eY.getText("aui.validation.message.max"),dateformat:eY.getText("aui.validation.message.dateformat"),minchecked:eY.getText("aui.validation.message.minchecked"),maxchecked:eY.getText("aui.validation.message.maxchecked")};ea("aui/form-validation/basic-validators");let ay="aui-validation-",aw="data-aui-notification-",a_="aui-validation-state",ax="invalid",aC="valid",aT="validating",ak="unvalidated",aE="_aui-form-validation-initialised",aA="_aui-internal-field-state-changed";function aS(e){var t,i,n,s,r,a,o,l;return aD(e,"novalidate")?void aM(e,aC):(aN(aL(t=e),"none"),s=(i=t,n=[],aI().forEach(function(e,t){var s=e.validatorTrigger;i.is(s)&&n.push(t)}),n),aM(t,aT),o=(r=t,a=[],s.forEach(function(e){var t,i,n,s,o=aI()[e].validatorFunction,l=new x.Deferred;o((t=r,i=l,X(s={validate:function(){i.resolve()},invalidate:function(e){aM(t,ax,e),i.reject()},args:(n=t,function(e){return n.attr("data-"+ay+e)||n.attr(e)}),el:t[0],$el:t},"$el",{sinceVersion:"5.9.0",removeInVersion:"11.0.0",alternativeName:"el",extraInfo:"See https://ecosystem.atlassian.net/browse/AUI-3263."}),s)),a.push(l)}),a),(l=x.when.apply(x,o)).done(function(){aM(t,aC)}),l)}function aD(e,t){var i=e.attr("data-"+ay+t);return i||(i=({when:"change"})[t]),i}function aI(){return au.validators()}function aM(e,t,i){if(e.attr("data-"+a_,t),e.removeAttr("aria-invalid"),t!==ak){e.trigger(x.Event(aA));var n,s=aL(e),r={};r[aT]="wait",r[ax]="error",r[aC]="success";var a=r[t];t===aT?(n=e,setTimeout(function(){aP(n)===aT&&(aN(n,"wait"),aa(n,!0))},500)):aN(s,a,i),t===ax&&e.attr("aria-invalid",!0)}}function aN(e,t,i){var n,s;let r=e.is("["+aw+"wait]");if(aO(n=e,"wait"),aa(n,!1),aO(n,"success"),!("success"===t&&!r))if("none"===t)aO(e,"error");else{let n=e.attr(aw+t)||"[]",r=i?(s=i,JSON.parse(n).concat([s])):[];e.attr(aw+t,JSON.stringify(r)),"error"===t&&as(e,r)}}function aO(e,t){e.removeAttr(aw+t),"error"===t&&(ar(e,t).remove(),an(e))}function aL(e){var t=aD(e,"displayfield");return void 0===t?e:x("#"+t)}function aP(e){return e.attr("data-"+a_)}function aR(e,t){t.preventDefault(),e.one(aA,function(){e.trigger("submit")})}function a$(e,t){return e.find("[data-"+a_+"="+t+"]")}x(document).on("submit",function(e){var t,i,n,s,r,a=x(e.target),o=(n=-1!==(i=(t=a.find("."+aE),x.map(t,function(e){return aP(x(e))}))).indexOf(ax),s=-1!==i.indexOf(ak),r=-1!==i.indexOf(aT),n?ax:s?ak:r?aT:aC);if(o===ak)aR(a,e),a$(a,ak).each(function(e,t){aj.validate(x(t))});else if(o===aT)aR(a,e);else if(o===ax)e.preventDefault(),a$(a,ax).first().focus();else if(o===aC){var l=x.Event("aui-valid-submit");a.trigger(l),l.isDefaultPrevented()&&e.preventDefault()}});let aj={register:au.register,validate:function(e){aS(e=x(e))}};eo("data-aui-validation-field",{attached:function(e){e.form&&e.form.setAttribute("novalidate","novalidate");var t,i,n,s,r,a,o,l,c=x(e);c.hasClass(aE)||((t=c).addClass(aE),r6(t),n=i=c,r=function(){n.trigger("aui-stop-typing")},n.on("keyup",function(){clearTimeout(s),s=setTimeout(r,1500)}),o=aD(a=i,"when"),((l=aD(a,"watchfield"))?a.add("#"+l):a).on(o,function(){aS(a)}),aM(c,ak)),eo.init(e)},type:eo.type.ATTRIBUTE}),ea("aui/form-validation",aj),k("formValidation",aj);var az=J(function(e,t){var i,n;return function(){var s=arguments,r=this;return clearTimeout(i),i=setTimeout(function(){n=e.apply(r,s),r=s=null},t),n}},"AJS.debounce",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"});k("debounce",az),k("debounceImmediate",J(function(e,t){var i,n=null;return function(){var s=this,r=arguments;return null===n&&(i=e.apply(s,r)),clearTimeout(n),n=setTimeout(function(){n=s=r=null},t),i}},"AJS.debounceImmediate",{removeInVersion:"11.0.0",sinceVersion:"8.0.0",extraInfo:"Use equivalent functions from libraries like lodash / underscore instead"}));let aH=x(window);function aF(e){var t;this.element=e,this.$element=x(e),this.index=x("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=x(this.$element[0].querySelector(".aui-header-primary")),function(e){return t.find(e)})}aF.prototype={init:function(){var e=this;this.element.setAttribute("data-aui-responsive","true"),this.$headerFind(".aui-button").parent().each(function(){e.primaryButtonsWidth+=x(this).outerWidth(!0)}),this.$headerFind(".aui-nav > li > a:not(.aui-button)").each(function(){var t=x(this).parent(),i=t.outerWidth(!0);e.totalWidth+=i,e.menuItems.push({$element:t,outerWidth:i})}),this.rightMostNavItemIndex=this.menuItems.length-1,aH.on("resize",this._resizeHandler=az(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(){aH.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,t,i=document.createElement("li"),n=document.createElement("aui-dropdown-menu");n.id=`aui-responsive-header-dropdown-${this.index}`,eo.init(n);var s=document.createElement("aui-section");s.id=`aui-responsive-header-dropdown-list-${this.index}`,eo.init(s),n.appendChild(s);var r=(e=n,(t=document.createElement("a")).setAttribute("class","aui-dropdown2-trigger"),t.setAttribute("href","#"),t.id=e.id+"-trigger",t.setAttribute("aria-controls",e.id),t.innerHTML=eY.getText("aui.words.more"),t);return i.appendChild(r),i.appendChild(n),0===this.primaryButtonsWidth?this.$headerFind(".aui-nav").append(i):this.$headerFind(".aui-nav > li > .aui-button:first").parent().before(i),this.moreMenuWidth=x(i).outerWidth(!0),x(i)},moveOutOfResponsiveDropdown:function(e){if(!(e<=0)){for(var t=x(`#aui-responsive-header-dropdown-${this.index}`),i=this.rightMostNavItemIndex+1,n=this.rightMostNavItemIndex+e,s=i;s<=n;s++){var r=this.menuItems[s].$element,a=r.children("a");if(a.attr("aria-controls")){var o=x(document.getElementById(a.attr("aria-controls")));o.removeClass("aui-dropdown2-sub-menu"),r.append(o)}t.find("aui-item-link:first").remove(),r.insertBefore(this.$moreMenu)}this.rightMostNavItemIndex+=e}},moveToResponsiveDropdown:function(e){if(!(e<=0)){for(var t=eJ().wrap(this.$moreMenu[0].querySelector("aui-section")),i=this.rightMostNavItemIndex,n=this.rightMostNavItemIndex-e+1,s=i;s>=n;s--){var r=this.menuItems[s].$element,a=r.children("a");eo.init(a);var o=document.createElement("aui-item-link");if(o.setAttribute("href",a.attr("href")),a.attr("aria-controls")){var l=x(document.getElementById(a.attr("aria-controls")));o.setAttribute("for",a.attr("aria-controls")),l.addClass("aui-dropdown2-sub-menu"),l.appendTo("body")}if(a.get(0).hasAttribute("data-aui-extra-classes")){let e=Array.from(a.get(0).classList).filter(e=>!e.startsWith("aui-"));o.setAttribute("extra-classes",e.join(" "))}eo.init(o),eJ().wrap(o).textContent=a.text(),r.detach(),t.insertBefore(o,t.firstChild),this.element.dispatchEvent(new CustomEvent("aui-responsive-menu-item-created",{bubbles:!0,detail:{originalItem:r[0],newItem:o}}))}this.rightMostNavItemIndex-=e}},showAll:function(){this.moveOutOfResponsiveDropdown(this.menuItems.length-1-this.rightMostNavItemIndex),this.hideResponsiveDropdown()}};let aB=function(e){let t=e._header;return t instanceof aF||((t=new aF(e)).init(),e._header=t),t};function aU(){x(".aui-header").each(function(){aB(this)})}x(aU);let aW={};aW.setup=J(aU,"responsiveheader.setup",{removeInVersion:"11.0.0",sinceVersion:"5.8.0",extraInfo:"No need to manually initialise anymore as this is now a web component."}),k("responsiveheader",aW);let aV=eo("aui-header-end",{type:eo.type.ELEMENT,created:function(e){let t=e.parentElement;t&&t.classList.contains("aui-header")?aB(t):console.log("Could not async. initialise aui-header")}});var aY=n(253),aq=n.n(aY);let aK=function(e){let t,i,n,s,r,a,o,l,c,u,h,p,f=e.getField(),g=e.getOptions(),m=e.getUUID(),{getPopupContents:v,handleFieldFocus:b,showDatePicker:y,hideDatePicker:w,handleChangeMonthYear:_,getCalendarNode:C,destroyPolyfill:T,createPolyfill:k}=(a=!1,o=x("body"),l=e=>{let t=x(e.target),i=t.closest(s).length||t.is(f),n=t.closest(".ui-datepicker-header").length;if(!i&&!n||e.keyCode===er.ESCAPE){p(),a=!1;return}t.get(0)!==f.get(0)&&e.preventDefault()},c=()=>{a||(o.on("focus blur click mousedown","*",l),a=!0)},u=()=>{n.get(0).open||h()},h=()=>{n.get(0).open=!0},{calendarContainerSelector:null,getPopupContents:({$field:e})=>(n=(({horizontalAlignment:e,datePickerUUID:t})=>{let i=new rg;i.id=t;let n=x(i);return n.attr("persistent",""),n.attr("data-aui-focus","false"),n.attr("alignment",`bottom ${e}`),n.addClass("aui-datepicker-dialog"),n})({horizontalAlignment:e.offset().left<window.innerWidth/2?"left":"right",datePickerUUID:m}),(r=e.closest("aui-inline-dialog").get(0))&&(r._datePickerPopup=n,x(r).on("aui-hide",e=>{a&&e.preventDefault(),o.off("focus blur","*",l),r&&r._datePickerPopup&&delete r._datePickerPopup})),o.append(n),s=n,n),handleFieldFocus:u,showDatePicker:h,hideDatePicker:p=()=>{n.get(0).open=!1},handleChangeMonthYear:()=>{setTimeout(n.refresh,0)},getCalendarNode:()=>n.get(0).childNodes[0],destroyPolyfill:()=>{p(),f.off("focus click",u),f.off("focusout keydown",c),o.off("keydown",c),o.off("focus blur click mousedown keydown",l)},createPolyfill:function(){o.on("keydown",l),f.on("focusout keydown",c)}}),E=e=>{x(e.currentTarget).val()&&t.datepicker("setDate",f.val())},A=f.attr("placeholder"),S=f.prop("type");{let n=e=>i=>{if(void 0!==t)return e(i)},s=n(()=>{t.datepicker("destroy")});e.show=y,e.hide=w,e.destroyPolyfill=()=>{T(),f.off("propertychange keyup input paste",E),i&&(i.disconnect(),i=null),A&&f.attr("placeholder",A),S&&f.prop("type",S),f.removeAttr("data-aui-dp-uuid"),s(),delete e.destroyPolyfill,delete e.show,delete e.hide},e.setDate=n(e=>{t.datepicker("setDate",e)}),e.getDate=n(()=>t.datepicker("getDate")),e.setMin=n(e=>t.datepicker("option","minDate",e)),e.setMax=n(e=>t.datepicker("option","maxDate",e))}g.languageCode in aQ.prototype.localisations||(g.languageCode="");let D=aQ.prototype.localisations;if(f.attr("aria-controls",m),void 0===t){void 0!==f.attr("step")&&M("WARNING: The date picker polyfill currently does not support the step attribute!");let n=(({minDate:e,maxDate:t,dateFormat:i,$field:n,onSelect:s,hide:r,onChangeMonthYear:a})=>({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"),r(),s&&s.call(this,e)},onChangeMonthYear:a,prevText:"<"}))({dateFormat:g.dateFormat,minDate:g.minDate,maxDate:g.maxDate,$field:f,onSelect:g.onSelect,hide:e.hide,onChangeMonthYear:_}),s=x.extend(void 0,n,D);g.firstDay>-1&&(s.firstDay=g.firstDay),t=(({config:e,popupContents:t,getCalendarNode:i,hint:n})=>{let s,r=x(i());return r.datepicker(e),n&&((s=x("<div/>").addClass("aui-datepicker-hint")).append("<span/>").text(n),t.append(s)),r})({config:s,popupContents:v({$field:f}),getCalendarNode:C,hint:g.hint}),k(),f.on("propertychange keyup input paste",E),(i=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"))})})).observe(f.get(0),{attributes:!0})}if(f.on("focus click",b),f.attr("placeholder",g.placeholder),"text"!==f.prop("type")){f.prop("type","text");let e=f.attr("value");e&&f.val(e)}f.trigger("propertychange"),f.attr("data-aui-dp-uuid",m)};function aQ(e,t){let i={},n=iI("date-picker"),s=x(e),r={getUUID:()=>n,getField:()=>s,getOptions:()=>i,destroy:()=>{"function"==typeof r.destroyPolyfill&&r.destroyPolyfill()},reset:()=>{r.destroy();let e=!aQ.prototype.browserSupportsDateField,t=!1!==i.overrideBrowserDefault;(e||t)&&aK(r)},reconfigure:e=>{i=x.extend(void 0,aQ.prototype.defaultOptions,e),r.reset()}};return r.reconfigure(t),r}function aG(e,t){let i=x.extend({nextText:">",prevText:"<"},t),n=x(e).addClass("aui-datepicker-dialog").addClass("aui-calendar-widget").datepicker(i);if(i.hint){let e=x("<div/>").addClass("aui-datepicker-hint");e.append("<span/>").text(i.hint),n.append(e)}return n.reconfigure=e=>{n.datepicker("destroy"),n.datepicker(e)},n.destroy=()=>{n.datepicker("destroy")},n}aQ.prototype.browserSupportsDateField=function(){if(void 0===m){var e=document.createElement("input");e.setAttribute("type","date"),m="date"===e.type}return m}(),aQ.prototype.defaultOptions={overrideBrowserDefault:!1,firstDay:-1,languageCode:x("html").attr("lang")||"en-AU",dateFormat:aq().W3C},aQ.prototype.localisations={dayNames:[eY.getText("ajs.datepicker.localisations.day-names.sunday"),eY.getText("ajs.datepicker.localisations.day-names.monday"),eY.getText("ajs.datepicker.localisations.day-names.tuesday"),eY.getText("ajs.datepicker.localisations.day-names.wednesday"),eY.getText("ajs.datepicker.localisations.day-names.thursday"),eY.getText("ajs.datepicker.localisations.day-names.friday"),eY.getText("ajs.datepicker.localisations.day-names.saturday")],dayNamesMin:[eY.getText("ajs.datepicker.localisations.day-names-min.sunday"),eY.getText("ajs.datepicker.localisations.day-names-min.monday"),eY.getText("ajs.datepicker.localisations.day-names-min.tuesday"),eY.getText("ajs.datepicker.localisations.day-names-min.wednesday"),eY.getText("ajs.datepicker.localisations.day-names-min.thursday"),eY.getText("ajs.datepicker.localisations.day-names-min.friday"),eY.getText("ajs.datepicker.localisations.day-names-min.saturday")],firstDay:eY.getText("ajs.datepicker.localisations.first-day"),isRTL:"true"===eY.getText("ajs.datepicker.localisations.is-RTL"),monthNames:[eY.getText("ajs.datepicker.localisations.month-names.january"),eY.getText("ajs.datepicker.localisations.month-names.february"),eY.getText("ajs.datepicker.localisations.month-names.march"),eY.getText("ajs.datepicker.localisations.month-names.april"),eY.getText("ajs.datepicker.localisations.month-names.may"),eY.getText("ajs.datepicker.localisations.month-names.june"),eY.getText("ajs.datepicker.localisations.month-names.july"),eY.getText("ajs.datepicker.localisations.month-names.august"),eY.getText("ajs.datepicker.localisations.month-names.september"),eY.getText("ajs.datepicker.localisations.month-names.october"),eY.getText("ajs.datepicker.localisations.month-names.november"),eY.getText("ajs.datepicker.localisations.month-names.december")],showMonthAfterYear:"true"===eY.getText("ajs.datepicker.localisations.show-month-after-year"),yearSuffix:eY.getText("ajs.datepicker.localisations.year-suffix")},"ajs.datepicker.localisations.year-suffix"===aQ.prototype.localisations.yearSuffix&&(aQ.prototype.localisations.yearSuffix="");let aJ="aui-datepicker",aZ=e=>function(t){let i=this.data(aJ);return i?"object"==typeof t?i.reconfigure(t):"destroy"===t&&i.destroy():(i=new e(this,t),this.data(aJ,i)),i};x.fn.datePicker=aZ(aQ),k("DatePicker",aQ),x.fn.calendarWidget=aZ(aG),k("CalendarWidget",aG);let aX=aQ;n(229),n(228),n(132),n(903);let a0={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"},a1=nw().View,a2=nw().View,a3=nw().View,a4={ENABLED_SUBMIT:"enabledSubmit",ROW_VIEW:"RestfulTable_Row_View"};n(682);let a9={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"},a5='<aui-spinner size="small"></aui-spinner>',a8="aui-spinner";function a7(e){0===e.find(a8).length&&e.find(`.${a0.STATUS}`).append(a5)}function a6(e){e.find(`.${a0.STATUS} ${a8}`).remove()}var oe=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");let ot=nw().View.extend({tagName:"tr",events:{focusin:"_focus",click:"_focus",keyup:"_handleKeyUpEvent"},initialize:function(e){this.$el=x(this.el),this._event=a9,this.classNames=a0,this.dataKeys=a4,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?x("<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 oe&&(t=this.$el.find(":submit")).length&&(e=x("<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 oe&&(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 a7(this.$el),this},hideLoading:function(){return a6(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,i=this;if(document.activeElement!==window&&x(document.activeElement).blur(),this.isUpdateMode){if(!(t=this.mapSubmitParams(this.serializeObject())))return i.trigger(i._event.CANCEL)}else this.model.clear(),t=this.mapSubmitParams(this.serializeObject());return this.trigger(this._event.SUBMIT_STARTED),this.model.save(t,{success:function(){i.isUpdateMode?i.trigger(i._event.UPDATED,i.model,e):(i.trigger(i._event.CREATED,i.model.toJSON()),i.model=new i._modelClass,i.render({errors:{},values:{}}),i.trigger(i._event.FOCUS)),i.trigger(i._event.SUBMIT_FINISHED)},error:function(e,t,n){400===n.status&&(i.renderErrors(t.errors),i.trigger(i._event.VALIDATION_ERROR,t.errors)),i.trigger(i._event.SUBMIT_FINISHED)},silent:!0}),this},renderError:function(e,t){return x("<div />").attr("data-field",e).addClass(this.classNames.ERROR).text(t)},renderErrors:function(e){var t=this;return this.$("."+this.classNames.ERROR).remove(),e&&x.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&&x('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(t.$el),x.each(this.columns,function(i,n){var s,r,a=e.values[n.id],o=[{name:n.id,ariaLabel:n.inputAriaLabel?n.inputAriaLabel:n.header,value:a,allowEdit:n.allowEdit},e.values,t.model];a&&t.$el.attr("data-"+n.id,a),s=t.isCreateRow&&n.createView?new n.createView({model:t.model}).render(o[0]):n.editView?new n.editView({model:t.model}).render(o[0]):t.defaultColumnRenderer.apply(t,o),r=x("<td />"),"object"==typeof s&&s.done?s.done(function(e){r.append(e)}):r.append(s),n.styleClass&&r.addClass(n.styleClass),r.appendTo(t.$el)}),this.$el.append(this.renderOperations(e.update,e.values)).addClass(this.classNames.ROW+" "+this.classNames.EDIT_ROW),this.trigger(this._event.RENDER,this.$el,e.values),this.$el.trigger(this._event.CONTENT_REFRESHED,[this.$el]),this},renderOperations:function(e){var t=x('<td class="aui-restfultable-operations" />');return e?t.append(x('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:eY.getText("aui.words.update")})).append(x('<a class="aui-button aui-button-link" href="#" />').addClass(this.classNames.CANCEL).text(eY.getText("aui.words.cancel")).attr({accesskey:this.cancelAccessKey})):t.append(x('<input class="aui-button aui-button-primary" type="submit" />').attr({accesskey:this.submitAccessKey,value:eY.getText("aui.words.add")})),t.add(x(`<td class="${this.classNames.STATUS}" />`))}}),oi=x(document||{});function on(e,t){oi.trigger(e,t)}function os(e,t,i){x(t).trigger(e,i),on(e,i),t.id&&on(t.id+"-"+e,i)}let or=e=>JSON.parse(e||"null");var oa=nw().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)},nw().sync.apply(nw(),arguments)},save:function(e,t){var i,n=this,s=(t=t||{}).error,r=t.success;t.error=function(e,t){var i=or(t.responseText||t.data);s&&s.call(n,n,i,t)},this.isNew()?nw().Model.prototype.save.call(this,e,t):e&&((i=new(oa.extend({url:this.url()}))({id:this.id})).save=nw().Model.prototype.save,t.success=function(e,t){n.clear().set(e.toJSON()),r&&r.call(n,n,t)},i.save(e,t))},destroy:function(e){e=e||{};var t=this,i=this.url();return x.ajax({url:i,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={},i=this.toJSON();if(x.each(e,function(e,n){i[e]?i[e]&&i[e]!==n&&("object"==typeof n&&(0,to.isEqual)(n,i[e])||(t[e]=n)):"string"==typeof n?""!==n.trim()&&(t[e]=n):Array.isArray(n)?0!==n.length&&(t[e]=n):t[e]=n}),!(0,to.isEmpty)(t))return this.addExpand(t),t},addExpand:function(e){},_serverErrorHandler:function(e,t){var i;400!==e.status&&(i=x.parseJSON(e.responseText||e.data),os(a9.SERVER_ERROR,this,[i,e,t]))},fetch:function(e){e=e||{},this.clear(),nw().Model.prototype.fetch.call(this,e)}});let oo=nw().View.extend({tagName:"tr",events:{"click .aui-restfultable-editable":"edit"},initialize:function(e){if(e=e||{},this._event=a9,this.classNames=a0,this.dataKeys=a4,this.columns=e.columns,this.allowEdit=e.allowEdit,this.allowDelete=e.allowDelete,!this.events["click .aui-restfultable-editable"])throw 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=x(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 x(this.el).addClass(this.classNames.FOCUSED),this},unfocus:function(){return x(this.el).removeClass(this.classNames.FOCUSED),this},showLoading:function(){return a7(this.$el),this},hideLoading:function(){return a6(this.$el),this},edit:function(e){var t;return t=x(e.target).is("."+this.classNames.EDITABLE)?x(e.target).attr("data-field-name"):x(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 x("<a href='#' class='aui-button' />").addClass(this.classNames.DELETE).text(eY.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)e.then(()=>this.model.destroy(),()=>{});else throw Error("deleteConfirmationCallback needs to return a Promise")}else this.model.destroy()},render:function(){var e=this,t=this.model.toJSON(),i=x("<td class='aui-restfultable-operations' />").append(this.renderOperations({},t)),n=x(`<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&&x('<td class="'+this.classNames.ORDER+'" />').append(this.renderDragHandle()).appendTo(e.$el),this.$el.attr("data-id",this.model.id),x.each(this.columns,function(i,n){var s,r=x("<td />"),a=t[n.id],o=n.fieldName||n.id,l=[{name:o,value:a,allowEdit:n.allowEdit},t,e.model];if(a&&e.$el.attr("data-"+n.id,a),s=n.readView?new n.readView({model:e.model}).render(l[0]):e.defaultColumnRenderer.apply(e,l),!1!==e.allowEdit&&!1!==n.allowEdit){var c=x("<span />").addClass(e.classNames.EDITABLE).append('<span class="aui-icon aui-icon-small aui-iconfont-edit"></span>').append(s).attr("data-field-name",o);r=x("<td />").append(c).appendTo(e.$el),s&&String(s).trim()||(r.addClass(e.classNames.NO_VALUE),c.html(x("<em />").text(this.emptyText||eY.getText("aui.enter.value"))))}else r.append(s);n.styleClass&&r.addClass(n.styleClass),r.appendTo(e.$el)}),this.$el.append(i).append(n).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 ol=nw().View.extend({initialize:function(e){var t=this;if(t.options=x.extend(!0,t._getDefaultOptions(e),e),t.id=this.options.id,t._event=a9,t.classNames=a0,t.dataKeys=a4,this.$table=x(e.el).addClass(this.classNames.RESTFUL_TABLE).addClass(this.classNames.ALLOW_HOVER).addClass("aui"),this.$table.wrapAll("<form class='aui' action='#' />"),this.$thead=x("<thead/>"),this.$theadRow=x("<tr />").appendTo(this.$thead),this.$tbody=x("<tbody/>"),!this.$table.length)throw Error("RestfulTable: Init failed! The table you have specified ["+this.$table.selector+"] cannot be found.");if(!this.options.columns)throw Error("RestfulTable: Init failed! You haven't provided any columns to render.");if(this.options.deleteConfirmationCallback&&!(this.options.deleteConfirmationCallback instanceof Function))throw Error("RestfulTable: Init failed! deleteConfirmationCallback is not a function");this.showGlobalLoading(),this.options.columns.forEach(function(e){var i="function"==typeof e.header?e.header():e.header;void 0===i&&(N("You have not specified [header] for column ["+e.id+"]. Using id for now..."),i=e.id),t.$theadRow.append("<th>"+i+"</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,i){var n=x("<div/>").attr("class",i.attr("class")).addClass(t.classNames.MOVEABLE);return i.children().each(function(){var e=x(this),t=parseInt(0+e.css("border-left-width"),10),i=parseInt(0+e.css("border-right-width"),10),s=e[0].clientWidth+t+i;n.append(x("<div/>").html(e.html()).attr("class",e.attr("class")).width(s))}),(n=x("<div class='aui-restfultable-readonly'/>").append(n)).css({left:i.offset().left}),n.appendTo(document.body),n},start:function(e,i){var n=i.helper[0].clientHeight,s=i.placeholder.find("td");i.item.addClass(t.classNames.MOVEABLE).children().each(function(e){x(this).width(s.eq(e).width())});var r='<td colspan="'+t.getColumnCount()+'">&nbsp;</td>';i.placeholder.html(r).css({height:n,visibility:"visible"}),t.getRowFromElement(i.item[0]).trigger(t._event.MODAL)},stop:function(e,i){x(i.item[0]).is(":visible")&&(i.item.removeClass(t.classNames.MOVEABLE).children().attr("style",""),i.placeholder.removeClass(t.classNames.ROW),t.getRowFromElement(i.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!x(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=x('<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;"function"==typeof this.options.resources.all?this.options.resources.all(function(t){e.populate(t)}):x.get(this.options.resources.all,function(t){e.populate(t)})},move:function(e){var t=this;if(e.row){var i,n=(i=t.options.reverseOrder?e.nextItem:e.prevItem).length?{after:t.getRowFromElement(i).model.url()}:{position:"First"};x.ajax({url:e.row.model.url()+"/move",type:"POST",dataType:"json",contentType:"application/json",data:JSON.stringify(n),complete:function(){e.row.hideLoading()},success:function(e){os(t._event.REORDER_SUCCESS,t,[e])},error:function(e){var i=or(e.responseText||e.data);os(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 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(),nw().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]),os(this._event.INITIALIZED,this,[this]),this.options.autoFocus&&this.$table.find(":input:text:first").focus()},showGlobalLoading:function(){return this.$loading||(this.$loading=x('<div class="aui-restfultable-init"><span class="aui-restfultable-loading">'+a5+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 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(),os(this._event.ROW_ADDED,this,[i,this]),this},removeRow:function(e){this._models.remove(e.model),e.remove(),this.isEmpty()&&this.showNoEntriesMsg(),os(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 x(e).data(this.dataKeys.ROW_VIEW)},showNoEntriesMsg:function(){return this.$noEntries&&this.$noEntries.remove(),this.$noEntries=x("<tr>").addClass(this.classNames.NO_ENTRIES).append(x("<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 i=x(this).data(e.dataKeys.ROW_VIEW);i&&t.push(i)}),t},_renderRow:function(e,t){var i,n,s=this,r=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){os(this._event.EDIT_ROW,{},[this,s]),s.edit(this,e)}),i=n.render().$el,-1!==t&&("number"==typeof t&&0!==r.length?i.insertBefore(r[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 oo&&t._createRow&&t._createRow.enable()})),this},_removeEditRow:function(e){var t=x.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||oa,allowEdit:!0,views:{editRow:ot,row:oo},Collection:nw().Collection.extend({url:e.resources.self,model:e.model||oa}),allowReorder:!1,fieldFocusSelector:function(e){return":input[name="+e+"], #"+e},loadingMsg:e.loadingMsg||eY.getText("aui.words.loading")}}});ol.ClassNames=a0,ol.CustomCreateView=a1,ol.CustomEditView=a2,ol.CustomReadView=a3,ol.DataKeys=a4,ol.EditRow=ot,ol.EntryModel=oa,ol.Events=a9,ol.Row=oo,k("RestfulTable",ol);let oc=ol;function ou(e){return x(e).clone().removeAttr("id")}k("clone",ou);var od=window.DocumentTouch,oh="ontouchstart"in window||od&&document instanceof od;function op(e,t,i,n){e.find(`[${n}]`).attr(n,(e,n)=>t===n?i:void 0)}function of(e){return e.offset().top}function og(e){var t;this.$el=x(e),this.$el.length&&(this.$body=x("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 oy,function(e){if(x(".aui-sidebar").length){e.$el.on("mouseenter mouseleave click focus",e.collapsedTriggersSelector,function(t){oT(e,x(t.target))}),oh&&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)")&&x("body").addClass("aui-page-sidebar-touch");var t=null,i=function(){null===t&&(t=requestAnimationFrame(function(){e.reflow(),t=null}))};x(window).on("scroll resize",i),i(),e.isAnimated()&&e.$el.on("transitionend webkitTransitionEnd",function(){e.$el.trigger(x.Event(om+(e.isCollapsed()?"collapse-end":"expand-end")))}),e.$el.on("click",".aui-sidebar-toggle",function(t){t.preventDefault(),e.toggle()}),x(".aui-page-panel").on("click",function(){!e.isCollapsed()&&e.isViewportNarrow()&&e.collapse()});var n=function(t){var i,n;(i=t).which!==er.LEFT_SQUARE_BRACKET||i.shiftKey||i.ctrlKey||i.metaKey||"value"in(n=i.target)||n.isContentEditable||e.toggle()};x(document).on("keypress",n),e._remove=function(){x(this.inlineDialogSelector).remove(),this.$el.off(),this.$el.remove(),x(document).off("keypress",n),x(window).off("scroll resize",i)},e.$el.on("touchend",function(t){e.isCollapsed()&&(e.expand(),t.preventDefault())}),e.$el.tooltip({...oE,live:e.collapsedTriggersSelector,suppress:function(){let t=x(this),i=!1===e.isCollapsed();return!0===ox(t)||i}}),e.$el.tooltip({...oE,aria:!1,live:e.toggleSelector,title:function(){return e.isCollapsed()?eY.getText("aui.sidebar.expand.tooltip"):eY.getText("aui.sidebar.collapse.tooltip")}}),e.$el.on("keydown",e.collapsedTriggersSelector,function(t){if(e.isCollapsed()){var i=t.target,n=o_(i);if(n){var r,a=x(n);s(t)&&n.open&&(t.preventDefault(),(r=a).attr("persistent",""),r.find(":aui-tabbable").first().focus(),setTimeout(function(){r.removeAttr("persistent")},100),a.on("keydown",function(e){var t,n,r;((t=e).keyCode===er.TAB&&t.shiftKey&&(n=e.target,n===a.find(":aui-tabbable")[0])||s(e)&&(r=e.target,r===a.find(":aui-tabbable").last()[0]))&&(i.focus(),x(this).off("keydown"),oC())}))}}})}function s(e){return e.keyCode===er.TAB&&!e.shiftKey&&!e.altKey}}(this),t=this,x(t.collapsedTriggersSelector).each(function(){oT(t,x(this))}))}var om="_aui-internal-sidebar-";function ov(e){return x.map(e.split(" "),function(e){return om+e}).join(" ")}function ob(){return document.querySelectorAll(og.prototype.inlineDialogSelector)}function oy(){this.inlineDialog=null}function ow(e){return e.is("a")?e.next(".aui-nav"):e.children(".aui-nav, hr")}function o_(e){var t=e.getAttribute("aria-controls");return document.getElementById(t)}function ox(e){return 0!==ow(e).length}function oC(){var e=ob();Array.prototype.forEach.call(e,function(e){e.open=!1})}function oT(e,t){if(!t.data("_aui-sidebar-submenu-constructed")&&(t.data("_aui-sidebar-submenu-constructed",!0),ox(t))){var i,n,s,r=document.createElement("aui-inline-dialog"),a=iI("sidebar-submenu");return t.attr("aria-controls",a),t.attr("data-aui-trigger",""),eo.init(t),r.setAttribute("id",a),r.setAttribute("alignment","right top"),r.setAttribute("hidden",""),r.setAttribute("contained-by","viewport"),e.isCollapsed()&&r.setAttribute("responds-to","hover"),x(r).addClass(og.prototype.inlineDialogClass),document.body.appendChild(r),eo.init(r),i=e,n=t,(s=r).addEventListener("aui-layer-show",function(e){if(!i.isCollapsed())return void e.preventDefault();if(!("AUI-INLINE-DIALOG"!==e.target.tagName||!e.target.classList.contains("aui-sidebar-submenu-dialog"))){var t,r,a,o,l=x.Event("aui-sidebar-submenu-before-show");if(n.trigger(l,s),l.isDefaultPrevented())return void e.preventDefault();t=n,r=s,t.addClass("active"),r.innerHTML=ok,a=t.is("a")?t.text():t.children(".aui-nav-heading").text(),(o=x(r).find(".aui-navgroup-inner")).children(".aui-nav-heading").attr("title",a).children("strong").text(a),(function(e){let t,i=ou(e);return(t=x("<div></div>")).append(i),t.find("[id]").each((e,i)=>{var n;let s=iI(`${i.id}-`);op(t,n=i.id,s,"aria-controls"),op(t,n,s,"aria-owns"),i.id=s}),i.hasClass("aui-expander-content")&&(i.find(".aui-expander-cutoff").remove(),i.removeClass("aui-expander-content")),i})(ow(t)).appendTo(o)}}),s.addEventListener("aui-layer-hide",function(){n.removeClass("active")}),r}}og.prototype.on=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=ov(e);return this.$el.on.apply(this.$el,[i].concat(t)),this},og.prototype.off=function(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1),i=ov(e);return this.$el.off.apply(this.$el,[i].concat(t)),this},og.prototype.setHeight=function(e,t,i){var n=Math.max(0,i-e);return this.$wrapper.height(t-n),this},og.prototype.setTopPosition=function(e=window.pageYOffset){return this.$wrapper.toggleClass("aui-is-docked",e>of(this.$el)),this},og.prototype.setPosition=J(og.prototype.setTopPosition,"Sidebar.setPosition",{removeInVersion:"11.0.0",sinceVersion:"7.6.1",alternativeName:"Sidebar.setTopPosition"}),og.prototype.setLeftPosition=function(e=window.pageXOffset){return this.$wrapper.hasClass("aui-is-docked")&&this.$wrapper.css({left:-e}),this},og.prototype.setCollapsedState=function(e){var t={collapsed:{},expanded:{}};t.collapsed.narrow={narrow:x.noop,wide:function(t){t._expand(e,!0)}},t.collapsed.wide={narrow:x.noop,wide:x.noop},t.expanded.narrow={narrow:x.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:x.noop};var i=this.isCollapsed()?"collapsed":"expanded",n=this.isViewportNarrow(this._previousViewportWidth)?"narrow":"wide",s=this.isViewportNarrow(e)?"narrow":"wide";return t[i][n][s](this),this},og.prototype._collapse=function(e){if(this.isCollapsed())return this;var t=x.Event(om+"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),x(this.inlineDialogSelector).attr("responds-to","hover"),this.isAnimated()||this.$el.trigger(x.Event(om+"collapse-end",{isResponsive:e}))),this},og.prototype.collapse=function(){return this._collapse(!1)},og.prototype._expand=function(e,t){var i=x.Event(om+"expand-start",{isResponsive:t});if(this.$el.trigger(i),i.isDefaultPrevented())return this;var n=this.isViewportNarrow(e);return this.$el.attr("aria-expanded","true"),this.$body.toggleClass("aui-sidebar-collapsed",n),this.$el.toggleClass("aui-sidebar-fly-out",n),this.$el.find(this.submenuTriggersSelector).removeAttr("tabindex"),x(this.inlineDialogSelector).removeAttr("responds-to"),this.isAnimated()||this.$el.trigger(x.Event(om+"expand-end",{isResponsive:t})),this},og.prototype.expand=function(){return this.isCollapsed()&&this._expand(this._previousViewportWidth,!1),this},og.prototype.isAnimated=function(){return this.$el.hasClass("aui-is-animated")},og.prototype.isCollapsed=function(){return"false"===this.$el.attr("aria-expanded")},og.prototype.isViewportNarrow=function(e){return(e=void 0===e?this._previousViewportWidth:e)<1240},og.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)},og.prototype.reflow=function(e=window.pageYOffset,t=document.documentElement.clientHeight,i=window.innerWidth,n=document.documentElement.scrollHeight,s=window.pageXOffset){var r=of(this.$el),a=null===this._previousViewportWidth;if(e!==this._previousScrollTop||t!==this._previousViewportHeight||r!==this._previousOffsetTop){var o=this.$body.hasClass("aui-page-sidebar-touch"),l=e!==this._previousScrollTop&&(e<0||e+t>n);o||!a&&l||(this.setHeight(e,t,r),this.setTopPosition(e))}if(s!==this._previousScrollLeft&&this.setLeftPosition(s),"false"!==this.$el.attr("data-aui-responsive"))this.responsiveReflow(a,i);else{var c=!this.isCollapsed()&&this.isViewportNarrow(i);this.$el.toggleClass("aui-sidebar-fly-out",c)}return this._previousScrollTop=e,this._previousViewportHeight=t,this._previousViewportWidth=i,this._previousOffsetTop=r,this._previousScrollLeft=s,this},og.prototype.toggle=function(){return this.isCollapsed()?(this.expand(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",eY.getText("aui.sidebar.collapse.tooltip"))):(this.collapse(),this.$el.find(".aui-sidebar-toggle").attr("aria-label",eY.getText("aui.sidebar.expand.tooltip"))),this},og.prototype.submenuTriggersSelector=".aui-sidebar-group:not(.aui-sidebar-group-tier-one)",og.prototype.collapsedTriggersSelector=[og.prototype.submenuTriggersSelector,".aui-sidebar-group.aui-sidebar-group-tier-one > .aui-nav > li > a",".aui-sidebar-footer > .aui-sidebar-settings-button"].join(", "),og.prototype.toggleSelector=".aui-sidebar-footer > .aui-sidebar-toggle",og.prototype.tooltipClassName="aui-sidebar-section-tooltip",og.prototype.inlineDialogClass="aui-sidebar-submenu-dialog",og.prototype.inlineDialogSelector="."+og.prototype.inlineDialogClass,oy.prototype.submenu=function(e){return oS(),ow(e)},oy.prototype.hasSubmenu=function(e){return oS(),ox(e)},oy.prototype.submenuHeadingHeight=function(){return oS(),34},oy.prototype.isShowing=function(){return oS(),og.prototype.isSubmenuVisible()},oy.prototype.show=function(e,t){oS(),o_(t).open=!0},oy.prototype.hide=function(){oS(),oC()},oy.prototype.inlineDialogShowHandler=function(){oS()},oy.prototype.inlineDialogHideHandler=function(){oS()},oy.prototype.moveSubmenuToInlineDialog=function(){oS()},oy.prototype.restoreSubmenu=function(){oS()},og.prototype.getVisibleSubmenus=function(){return Array.prototype.filter.call(ob(),function(e){return e.open})},og.prototype.isSubmenuVisible=function(){return this.getVisibleSubmenus().length>0};let ok='<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 oE={gravity:"w",title:function(){var e=x(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()}},oA=ek("sidebar",og);x(function(){oA(".aui-sidebar")});var oS=K("Sidebar.submenus",{removeInVersion:"11.0.0",sinceVersion:"5.8.0"});k("sidebar",oA);let oD=oA;function oI(e){"object"!=typeof e&&(e={width:arguments[0],height:arguments[1],id:arguments[2]},e=x.extend({},e,arguments[3])),e=x.extend({},{width:800,height:600,closeOnOutsideClick:!1,keypressListener:function(e){e.keyCode===er.ESCAPE&&t.is(":visible")&&o.hide()}},e);var t=x("<div></div>").addClass("aui-popup");e.id&&t.attr("id",e.id);var i=2600;x(".aui-dialog").each(function(){var e=x(this);i=e.css("z-index")>i?e.css("z-index"):i});var n=function n(s,r){return e.width=s=s||e.width,e.height=r=r||e.height,t.css({marginTop:-Math.round(r/2)+"px",marginLeft:-Math.round(s/2)+"px",width:s,height:r,"z-index":parseInt(i,10)+2}),n}(e.width,e.height);x("body").append(t),t.hide(),D(t);var s=x(".aui-blanket"),r=function(e,t){var i=x(e,t);return!!i.length&&(i.focus(),!0)},a=function(t){if(0===x(".dialog-page-body",t).find(":focus").length){if(e.focusSelector)return r(e.focusSelector,t);var i=":input:visible:enabled:first";r(i,x(".dialog-page-body",t))||r(i,x(".dialog-button-panel",t))||r(i,x(".dialog-page-menu",t))}},o={changeSize:function(t,i){(t&&t!=e.width||i&&i!=e.height)&&n(t,i),this.show()},show:function(){var i=function(){x(document).off("keydown",e.keypressListener).on("keydown",e.keypressListener),ei(),0!==(s=x(".aui-blanket")).length&&e.closeOnOutsideClick&&s.on("click",function(){t.is(":visible")&&o.hide()}),t.show(),oI.current=this,a(t),x(document).trigger("showLayer",["popup",this])};i.call(this),this.show=i},hide:function(){x(document).unbind("keydown",e.keypressListener),s.unbind(),this.element.hide(),0===x(".aui-dialog:visible").length&&en();var t=document.activeElement;this.element.has(t).length&&t.blur(),x(document).trigger("hideLayer",["popup",this]),oI.current=null,this.enable()},element:t,remove:function(){t.remove(),this.element=null},disable:function(){this.disabled||(this.popupBlanket=x("<div class='dialog-blanket'> </div>").css({height:t.height(),width:t.width()}),t.append(this.popupBlanket),this.disabled=!0)},enable:function(){this.disabled&&(this.disabled=!1,this.popupBlanket.remove(),this.popupBlanket=null)}};return o}n(841),n(20);var oM=function(){function e(e,t,i,n){e.buttonpanel||e.addButtonPanel(),this.page=e,this.onclick=i,this._onclick=function(t){return!0===i.call(this,e.dialog,e,t)},this.item=x("<button></button>").html(t).addClass("button-panel-button"),n&&this.item.addClass(n),"function"==typeof i&&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,i,n,s){e.buttonpanel||e.addButtonPanel(),s||(s="#"),this.page=e,this.onclick=i,this._onclick=function(t){return!0===i.call(this,e.dialog,e,t)},this.item=x("<a></a>").html(t).attr("href",s).addClass("button-panel-link"),n&&this.item.addClass(n),"function"==typeof i&&this.item.click(this._onclick),e.buttonpanel.append(this.item),this.id=e.button.length,e.button[this.id]=this}function i(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,r=n.length;s<r;s++)"panel"==t&&this.page.curtab==n[s].id&&(this.page.curtab=s),n[s].id=s}return this}}function n(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=i("left","button"),e.prototype.moveDown=e.prototype.moveRight=i("right","button"),e.prototype.remove=n("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 s=function(e,t,i,n,s){i instanceof x||(i=x(i)),this.dialog=e.dialog,this.page=e,this.id=e.panel.length,this.button=x("<button></button>").html(t).addClass("item-button"),s&&(this.button[0].id=s),this.item=x("<li></li>").append(this.button).addClass("page-menu-item"),this.body=x("<div></div>").append(i).addClass("dialog-panel-body").css("height",e.dialog.height+"px"),this.padding=20,n&&this.body.addClass(n);var r=e.panel.length,a=this;e.menu.append(this.item),e.body.append(this.body),e.panel[r]=this;var o=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=a.id,a.body.show(),a.item.addClass("selected"),"function"==typeof a.onselect&&a.onselect(),"function"==typeof e.ontabchange&&e.ontabchange(a,t)};this.button.click?this.button.click(o):(M("atlassian-dialog:Panel:constructor - this.button.click false"),this.button.onclick=o),o(),0==r?e.menu.css("display","none"):e.menu.show()};s.prototype.select=function(){this.button.click()},s.prototype.moveUp=s.prototype.moveLeft=i("left","panel"),s.prototype.moveDown=s.prototype.moveRight=i("right","panel"),s.prototype.remove=n("panel"),s.prototype.html=function(e){return e?(this.body.html(e),this):this.body.html()},s.prototype.setPadding=function(e){return isNaN(+e)||(this.body.css("padding",+e),this.padding=+e,this.page.recalcSize()),this};var r=function(e,t){this.dialog=e,this.id=e.page.length,this.element=x("<div></div>").addClass("dialog-components"),this.body=x("<div></div>").addClass("dialog-page-body"),this.menu=x("<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 a(e,t,i){var n={};+e||(e=(n=Object(e)).width,t=n.height,i=n.id),this.height=t||480,this.width=e||640,this.id=i,n=x.extend({},n,{width:this.width,height:this.height,id:this.id}),this.popup=oI(n),this.popup.element.addClass("aui-dialog"),this.page=[],this.curpage=0,new r(this)}return r.prototype.recalcSize=function(){for(var e=62*!!this.header,t=52*!!this.buttonpanel,i=this.panel.length;i--;){var n=this.dialog.height-e-t;this.panel[i].body.css("height",n),this.menu.css("height",n)}},r.prototype.addButtonPanel=function(){this.buttonpanel=x("<div></div>").addClass("dialog-button-panel"),this.element.append(this.buttonpanel)},r.prototype.addPanel=function(e,t,i,n){return new s(this,e,t,i,n),this.recalcSize(),this},r.prototype.addHeader=function(e,t){return this.header&&this.header.remove(),this.header=x("<h2></h2>").text(e||"").addClass("dialog-title"),t&&this.header.addClass(t),this.element.prepend(this.header),this.recalcSize(),this},r.prototype.addButton=function(t,i,n){return new e(this,t,i,n),this.recalcSize(),this},r.prototype.addLink=function(e,i,n,s){return new t(this,e,i,n,s),this.recalcSize(),this},r.prototype.gotoPanel=function(e){this.panel[e.id||e].select()},r.prototype.getCurrentPanel=function(){return this.panel[this.curtab]},r.prototype.hide=function(){this.element.hide()},r.prototype.show=function(){this.element.show()},r.prototype.remove=function(){this.element.remove()},a.prototype.addHeader=function(e,t){return this.page[this.curpage].addHeader(e,t),this},a.prototype.addButton=function(e,t,i){return this.page[this.curpage].addButton(e,t,i),this},a.prototype.addLink=function(e,t,i,n){return this.page[this.curpage].addLink(e,t,i,n),this},a.prototype.addSubmit=function(e,t){return this.page[this.curpage].addButton(e,t,"button-panel-submit-button"),this},a.prototype.addCancel=function(e,t){return this.page[this.curpage].addLink(e,t,"button-panel-cancel-link"),this},a.prototype.addButtonPanel=function(){return this.page[this.curpage].addButtonPanel(),this},a.prototype.addPanel=function(e,t,i,n){return this.page[this.curpage].addPanel(e,t,i,n),this},a.prototype.addPage=function(e){return new r(this,e),this.page[this.curpage].hide(),this.curpage=this.page.length-1,this},a.prototype.nextPage=function(){return this.page[this.curpage++].hide(),this.curpage>=this.page.length&&(this.curpage=0),this.page[this.curpage].show(),this},a.prototype.prevPage=function(){return this.page[this.curpage--].hide(),this.curpage<0&&(this.curpage=this.page.length-1),this.page[this.curpage].show(),this},a.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},a.prototype.getPanel=function(e,t){var i=null==t?this.curpage:e;return null==t&&(t=e),this.page[i].panel[t]},a.prototype.getPage=function(e){return this.page[e]},a.prototype.getCurrentPanel=function(){return this.page[this.curpage].getCurrentPanel()},a.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)},a.prototype.show=function(){return this.popup.show(),F("show.dialog",{dialog:this}),this},a.prototype.hide=function(){return this.popup.hide(),F("hide.dialog",{dialog:this}),this},a.prototype.remove=function(){this.popup.hide(),this.popup.remove(),F("remove.dialog",{dialog:this})},a.prototype.disable=function(){return this.popup.disable(),this},a.prototype.enable=function(){return this.popup.enable(),this},a.prototype.get=function(e){var t=[],i=this,n='#([^"][^ ]*|"[^"]*")',s="(?:(page|panel|button|header)(?:"+n+"|:(\\d+))?|"+n+")",r=RegExp("(?:^|,)\\s*"+s+"(?:\\s+"+s+")?\\s*(?=,|$)","ig");(e+"").replace(r,function(e,n,s,r,a,o,l,c,u){n=n&&n.toLowerCase();var h=[];if("page"==n&&i.page[r]?(h.push(i.page[r]),n=(n=o)&&n.toLowerCase(),s=l,r=c,a=u):h=i.page,s=s&&(s+"").replace(/"/g,""),l=l&&(l+"").replace(/"/g,""),a=a&&(a+"").replace(/"/g,""),u=u&&(u+"").replace(/"/g,""),n||a)for(var p=h.length;p--;){if(a||"panel"==n&&(s||!s&&null==r))for(var f=h[p].panel.length;f--;)h[p].panel[f].button.html()!=a&&h[p].panel[f].button.html()!=s&&("panel"!=n||s||null!=r)||t.push(h[p].panel[f]);if(a||"button"==n&&(s||!s&&null==r))for(var f=h[p].button.length;f--;)h[p].button[f].item.html()!=a&&h[p].button[f].item.html()!=s&&("button"!=n||s||null!=r)||t.push(h[p].button[f]);h[p][n]&&h[p][n][r]&&t.push(h[p][n][r]),"header"==n&&h[p].header&&t.push(h[p].header)}else t=t.concat(h)});for(var a={length:t.length},o=t.length;o--;)for(var l in a[o]=t[o],t[o])l in a||function(e){a[e]=function(){for(var t=this.length;t--;)"function"==typeof this[t][e]&&this[t][e].apply(this[t],arguments)}}(l);return a},a.prototype.updateHeight=function(){for(var e=0,t=x(window).height()-62-52-100,i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:"auto",display:"block"}).outerHeight()>e&&(e=Math.min(t,this.getPanel(i).body.outerHeight())),i!==this.page[this.curpage].curtab&&this.getPanel(i).body.css({display:"none"});for(i=0;this.getPanel(i);i++)this.getPanel(i).body.css({height:e||this.height});this.page[0].menu.height(e),this.height=e+62+52+1,this.popup.changeSize(void 0,this.height)},a.prototype.isMaximised=function(){return this.popup.element.outerHeight()>=x(window).height()-100},a.prototype.getCurPanel=function(){return this.getPanel(this.page[this.curpage].curtab)},a.prototype.getCurPanelButton=function(){return this.getCurPanel().button},a}();oM=Z(oM,"Dialog constructor",{alternativeName:"Dialog2"}),oI=Z(oI,"Dialog popup constructor",{alternatveName:"Dialog2"}),k("Dialog",oM),k("popup",oI);var oN=-1!==navigator.platform.indexOf("Mac"),oO=-1!==navigator.userAgent.indexOf("Safari"),oL=/^(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;let oP=e=>{let t=e[0];if(t){let e=document.createEvent("MouseEvent");e.initMouseEvent("click",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}};function oR(e){var t=[],i=x.Callbacks();function n(e){!oI.current&&i&&i.fire(e)}function s(e){e.preventDefault()}function r(e){(e&&e.split?e.trim().split(" "):[e]).forEach(function(e){var i,r,a;a=!function(e){for(var t=e.length;t--;)if(e[t].length>1&&"space"!==e[t])return!0;return!1}(r=(i=e)instanceof Array?i:function(e){for(var t=[],i="";e.length;){var n=e.match(/^(ctrl|meta|shift|alt)\+/i),s=e.match(oL);n?(i+=n[0],e=e.substring(n[0].length)):(s?(t.push(i+s[0]),e=e.substring(s[0].length)):(t.push(i+e[0]),e=e.substring(1)),i="")}return t}(i.toString()))?"keypress":"keydown",t.push(r),x(document).on(a,!1,r,n),x(document).on(a+" keyup",!1,r,s)})}function a(e,t,i,n){var s="(",r=")";return n&&n.workaroundJaws&&(s="",r=""),i?t+=" "+s+eY.getText("aui.keyboard.shortcut.type.x",e.shift()):t=t.replace(/\)$/,"")+" "+eY.getText("aui.keyboard.shortcut.or.x",e.shift()),e.forEach(function(e){t+=" "+eY.getText("aui.keyboard.shortcut.then.x",e)}),t+=r}return r(e),oR.makeShortcut({executor:i,bindKeys:r,addShortcutsToTitle:function(e){for(var i=x(e),n=i.attr("title")||"",s=t.slice(),r=i.data("boundKeyCombos")||[],o=i.data("kbShortcutAppended")||"",l=i.data("kbShortcutAppendedScreenReader")||"",c=i.attr("aria-label"),u=!o,h=!l,p=u?n:n.substring(0,n.length-o.length),f=h?n:c.substring(0,c.length-l.length);s.length;){var g=s.shift();r.some(function(e){return(0,to.isEqual)(g,e)})||(o=a(g.slice(),o,u),l=a(g.slice(),l,h,{workaroundJaws:!0}),u=!1,h=!1)}oN&&(o=o.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧"),l=l.replace(/Meta/gi,"⌘").replace(/Shift/gi,"⇧")),i.attr("title",p+o),i.attr("aria-label",f+l),i.data("kbShortcutAppended",o),i.data("kbShortcutAppendedScreenReader",l),i.data("boundKeyCombos",r.concat(t))},removeShortcutsFromTitle:function(e){var t=x(e),i=t.data("kbShortcutAppended");if(i){var n=t.attr("title");t.attr("title",n.replace(i,"")),t.attr("aria-label",n.replace(i,"")),t.removeData("kbShortcutAppended"),t.removeData("kbShortcutAppendedScreenReader"),t.removeData("boundKeyCombos")}},keypressHandler:n,defaultPreventionHandler:s})}oR.makeShortcut=function(e){var t=e.executor,i=e.bindKeys,n=e.addShortcutsToTitle,s=e.removeShortcutsFromTitle,r=e.keypressHandler,a=e.defaultPreventionHandler,o=[];function l(e){return function(i,n){var s=(n=n||{}).focusedClass||"focused",r=!n.hasOwnProperty("wrapAround")||n.wrapAround,a=!n.hasOwnProperty("escToCancel")||n.escToCancel;return t.add(function(){let t=x(i),n=t.filter("."+s),o=0===n.length?void 0:{transition:!0};a&&x(document).one("keydown",function(e){e.keyCode===er.ESCAPE&&n&&n.removeClass(s)}),n.length&&n.removeClass(s),(n=e(n,t,r))&&n.length>0&&(n.addClass(s),n.moveTo(o),n.is("a")?n.focus():n.find("a:first").focus())}),this}}return{moveToNextItem:l(function(e,t,i){var n;return i&&0===e.length?t.eq(0):(n=x.inArray(e.get(0),t))<t.length-1?(n+=1,t.eq(n)):i?t.eq(0):e}),moveToPrevItem:l(function(e,t,i){var n;return i&&0===e.length?t.filter(":last"):(n=x.inArray(e.get(0),t))>0?(n-=1,t.eq(n)):i?t.filter(":last"):e}),click:function(e){return o.push(e),n(e),t.add(function(){oP(x(e))}),this},goTo:function(e){return t.add(function(){window.location.href=e}),this},followLink:function(e){return o.push(e),n(e),t.add(function(){var t=x(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 o.push(e),n(e),t.add(function(){let t=x(e);t.length>0&&(oP(t),t.moveTo())}),this},moveToAndFocus:function(e){return o.push(e),n(e),t.add(function(t){var i=x(e);i.length>0&&(i.focus(),i.moveTo&&i.moveTo(),i.is(":input")&&t.preventDefault())}),this},or:function(e){return i(e),this},unbind:function(){x(document).unbind("keydown keypress",r).unbind("keydown keypress keyup",a);for(var e=0,t=o.length;e<t;e++)s(o[e]);o=[]}}},oR.fromJSON=function(e,t){var i=[];return e&&x.each(e,function(e,n){let s,r=n.op,a=n.param;if("execute"===r||"evaluate"===r)s=[Function(a)];else if(/^\[[^\]\[]*,[^\]\[]*\]$/.test(a)){try{s=JSON.parse(a)}catch(e){O("When using a parameter array, array must be in strict JSON format: "+a)}Array.isArray(s)||O("Badly formatted shortcut parameter. String or JSON Array of parameters required: "+a)}else s=[a];x.each(n.keys,function(){var e=this;t&&oN&&(e=x.map(e,function(e){return e.replace(/ctrl/i,"meta")}));var n=oR(e);n[r].apply(n,s),i.push(n)})}),i},x(document).on("iframeAppended",function(e,t){x(t).load(function(){x(t).contents().on("keyup keydown keypress",function(e){(!oO||"keypress"!==e.type)&&(x(e.target).is(":input")||x.event.trigger(e,arguments,document,!0))})})}),k("whenIType",oR);let o$=oR,{FocusManager:oj,InlineDialog2:oz,LayerManager:oH,ProgressiveDataSet:oF,clone:oB,debounce:oU,debounceImmediate:oW,dim:oV,escapeHtml:oY,formValidation:oq,id:oK,isClipped:oQ,keyCode:oG,layer:oJ,messages:oZ,populateParameters:oX,params:o0,responsiveheader:o1,select:o2,tablessortable:o3,tabs:o4,undim:o9,_addID:o5}=window.AJS,{contextPath:o8}=window.AJS})(),s})());
105
65
  //# sourceMappingURL=aui-prototyping.js.map