var ye=(b,S)=>()=>(S||b((S={exports:{}}).exports,S),S.exports);var _e=ye((xe,N)=>{/*! Select2 4.0.7 | https://github.com/select2/select2/blob/master/LICENSE.md */(function(b){typeof define=="function"&&define.amd?define(["jquery"],b):typeof N=="object"&&N.exports?N.exports=function(S,q){return q===void 0&&(q=typeof window<"u"?require("jquery"):require("jquery")(S)),b(q),q}:b(jQuery)})(function(b){var S=function(){if(b&&b.fn&&b.fn.select2&&b.fn.select2.amd)var h=b.fn.select2.amd;var B,W,X,O,R,L,F,j,y,T,E,U,ee,te,K;function C(o,a){return ee.call(o,a)}function M(o,a){var s,n,t,e,r,i,l,c,u,p,f,g=a&&a.split("/"),m=E.map,v=m&&m["*"]||{};if(o){for(r=(o=o.split("/")).length-1,E.nodeIdCompat&&K.test(o[r])&&(o[r]=o[r].replace(K,"")),o[0].charAt(0)==="."&&g&&(o=g.slice(0,g.length-1).concat(o)),u=0;u":">",'"':""","'":"'","/":"/"};return typeof e!="string"?e:String(e).replace(/[&<>"'\/\\]/g,function(i){return r[i]})},a.appendMany=function(e,r){if(o.fn.jquery.substr(0,3)==="1.7"){var i=o();o.map(r,function(l){i=i.add(l)}),r=i}e.append(r)},a.__cache={};var t=0;return a.GetUniqueElementId=function(e){var r=e.getAttribute("data-select2-id");return r==null&&(e.id?(r=e.id,e.setAttribute("data-select2-id",r)):(e.setAttribute("data-select2-id",++t),r=t.toString())),r},a.StoreData=function(e,r,i){var l=a.GetUniqueElementId(e);a.__cache[l]||(a.__cache[l]={}),a.__cache[l][r]=i},a.GetData=function(e,r){var i=a.GetUniqueElementId(e);return r?a.__cache[i]&&a.__cache[i][r]!=null?a.__cache[i][r]:o(e).data(r):a.__cache[i]},a.RemoveData=function(e){var r=a.GetUniqueElementId(e);a.__cache[r]!=null&&delete a.__cache[r]},a}),h.define("select2/results",["jquery","./utils"],function(o,a){function s(n,t,e){this.$element=n,this.data=e,this.options=t,s.__super__.constructor.call(this)}return a.Extend(s,a.Observable),s.prototype.render=function(){var n=o('');return this.options.get("multiple")&&n.attr("aria-multiselectable","true"),this.$results=n},s.prototype.clear=function(){this.$results.empty()},s.prototype.displayMessage=function(n){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var e=o('
  • '),r=this.options.get("translations").get(n.message);e.append(t(r(n.args))),e[0].className+=" select2-results__message",this.$results.append(e)},s.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},s.prototype.append=function(n){this.hideLoading();var t=[];if(n.results!=null&&n.results.length!==0){n.results=this.sort(n.results);for(var e=0;e",{class:"select2-results__options select2-results__options--nested"});m.append(u),l.append(c),l.append(m)}else this.template(n,t);return a.StoreData(t,"data",n),t},s.prototype.bind=function(n,t){var e=this,r=n.id+"-results";this.$results.attr("id",r),n.on("results:all",function(i){e.clear(),e.append(i.data),n.isOpen()&&(e.setClasses(),e.highlightFirstItem())}),n.on("results:append",function(i){e.append(i.data),n.isOpen()&&e.setClasses()}),n.on("query",function(i){e.hideMessages(),e.showLoading(i)}),n.on("select",function(){n.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),n.on("unselect",function(){n.isOpen()&&(e.setClasses(),e.options.get("scrollAfterSelect")&&e.highlightFirstItem())}),n.on("open",function(){e.$results.attr("aria-expanded","true"),e.$results.attr("aria-hidden","false"),e.setClasses(),e.ensureHighlightVisible()}),n.on("close",function(){e.$results.attr("aria-expanded","false"),e.$results.attr("aria-hidden","true"),e.$results.removeAttr("aria-activedescendant")}),n.on("results:toggle",function(){var i=e.getHighlightedResults();i.length!==0&&i.trigger("mouseup")}),n.on("results:select",function(){var i=e.getHighlightedResults();if(i.length!==0){var l=a.GetData(i[0],"data");i.attr("aria-selected")=="true"?e.trigger("close",{}):e.trigger("select",{data:l})}}),n.on("results:previous",function(){var i=e.getHighlightedResults(),l=e.$results.find("[aria-selected]"),c=l.index(i);if(!(c<=0)){var u=c-1;i.length===0&&(u=0);var p=l.eq(u);p.trigger("mouseenter");var f=e.$results.offset().top,g=p.offset().top,m=e.$results.scrollTop()+(g-f);u===0?e.$results.scrollTop(0):g-f<0&&e.$results.scrollTop(m)}}),n.on("results:next",function(){var i=e.getHighlightedResults(),l=e.$results.find("[aria-selected]"),c=l.index(i)+1;if(!(c>=l.length)){var u=l.eq(c);u.trigger("mouseenter");var p=e.$results.offset().top+e.$results.outerHeight(!1),f=u.offset().top+u.outerHeight(!1),g=e.$results.scrollTop()+f-p;c===0?e.$results.scrollTop(0):pthis.$results.outerHeight()||l<0)&&this.$results.scrollTop(i)}},s.prototype.template=function(n,t){var e=this.options.get("templateResult"),r=this.options.get("escapeMarkup"),i=e(n,t);i==null?t.style.display="none":typeof i=="string"?t.innerHTML=r(i):o(t).append(i)},s}),h.define("select2/keys",[],function(){return{BACKSPACE:8,TAB:9,ENTER:13,SHIFT:16,CTRL:17,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46}}),h.define("select2/selection/base",["jquery","../utils","../keys"],function(o,a,s){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return a.Extend(n,a.Observable),n.prototype.render=function(){var t=o('');return this._tabindex=0,a.GetData(this.$element[0],"old-tabindex")!=null?this._tabindex=a.GetData(this.$element[0],"old-tabindex"):this.$element.attr("tabindex")!=null&&(this._tabindex=this.$element.attr("tabindex")),t.attr("title",this.$element.attr("title")),t.attr("tabindex",this._tabindex),this.$selection=t},n.prototype.bind=function(t,e){var r=this,i=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",function(l){r.trigger("focus",l)}),this.$selection.on("blur",function(l){r._handleBlur(l)}),this.$selection.on("keydown",function(l){r.trigger("keypress",l),l.which===s.SPACE&&l.preventDefault()}),t.on("results:focus",function(l){r.$selection.attr("aria-activedescendant",l.data._resultId)}),t.on("selection:update",function(l){r.update(l.data)}),t.on("open",function(){r.$selection.attr("aria-expanded","true"),r.$selection.attr("aria-owns",i),r._attachCloseHandler(t)}),t.on("close",function(){r.$selection.attr("aria-expanded","false"),r.$selection.removeAttr("aria-activedescendant"),r.$selection.removeAttr("aria-owns"),window.setTimeout(function(){r.$selection.focus()},0),r._detachCloseHandler(t)}),t.on("enable",function(){r.$selection.attr("tabindex",r._tabindex)}),t.on("disable",function(){r.$selection.attr("tabindex","-1")})},n.prototype._handleBlur=function(t){var e=this;window.setTimeout(function(){document.activeElement==e.$selection[0]||o.contains(e.$selection[0],document.activeElement)||e.trigger("blur",t)},1)},n.prototype._attachCloseHandler=function(t){o(document.body).on("mousedown.select2."+t.id,function(e){var r=o(e.target).closest(".select2");o(".select2.select2-container--open").each(function(){o(this),this!=r[0]&&a.GetData(this,"element").select2("close")})})},n.prototype._detachCloseHandler=function(t){o(document.body).off("mousedown.select2."+t.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n}),h.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(o,a,s,n){function t(){t.__super__.constructor.apply(this,arguments)}return s.Extend(t,a),t.prototype.render=function(){var e=t.__super__.render.call(this);return e.addClass("select2-selection--single"),e.html(''),e},t.prototype.bind=function(e,r){var i=this;t.__super__.bind.apply(this,arguments);var l=e.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",l).attr("role","textbox").attr("aria-readonly","true"),this.$selection.attr("aria-labelledby",l),this.$selection.on("mousedown",function(c){c.which===1&&i.trigger("toggle",{originalEvent:c})}),this.$selection.on("focus",function(c){}),this.$selection.on("blur",function(c){}),e.on("focus",function(c){e.isOpen()||i.$selection.focus()})},t.prototype.clear=function(){var e=this.$selection.find(".select2-selection__rendered");e.empty(),e.removeAttr("title")},t.prototype.display=function(e,r){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(e,r))},t.prototype.selectionContainer=function(){return o("")},t.prototype.update=function(e){if(e.length!==0){var r=e[0],i=this.$selection.find(".select2-selection__rendered"),l=this.display(r,i);i.empty().append(l),i.attr("title",r.title||r.text)}else this.clear()},t}),h.define("select2/selection/multiple",["jquery","./base","../utils"],function(o,a,s){function n(t,e){n.__super__.constructor.apply(this,arguments)}return s.Extend(n,a),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html('
      '),t},n.prototype.bind=function(t,e){var r=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",function(i){r.trigger("toggle",{originalEvent:i})}),this.$selection.on("click",".select2-selection__choice__remove",function(i){if(!r.options.get("disabled")){var l=o(this).parent(),c=s.GetData(l[0],"data");r.trigger("unselect",{originalEvent:i,data:c})}})},n.prototype.clear=function(){var t=this.$selection.find(".select2-selection__rendered");t.empty(),t.removeAttr("title")},n.prototype.display=function(t,e){var r=this.options.get("templateSelection");return this.options.get("escapeMarkup")(r(t,e))},n.prototype.selectionContainer=function(){return o('
    • ×
    • ')},n.prototype.update=function(t){if(this.clear(),t.length!==0){for(var e=[],r=0;r×');s.StoreData(i[0],"data",e),this.$selection.find(".select2-selection__rendered").prepend(i)}},n}),h.define("select2/selection/search",["jquery","../utils","../keys"],function(o,a,s){function n(t,e,r){t.call(this,e,r)}return n.prototype.render=function(t){var e=o('');this.$searchContainer=e,this.$search=e.find("input");var r=t.call(this);return this._transferTabIndex(),r},n.prototype.bind=function(t,e,r){var i=this;t.call(this,e,r),e.on("open",function(){i.$search.trigger("focus")}),e.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),e.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),e.on("disable",function(){i.$search.prop("disabled",!0)}),e.on("focus",function(u){i.$search.trigger("focus")}),e.on("results:focus",function(u){i.$search.attr("aria-activedescendant",u.id)}),this.$selection.on("focusin",".select2-search--inline",function(u){i.trigger("focus",u)}),this.$selection.on("focusout",".select2-search--inline",function(u){i._handleBlur(u)}),this.$selection.on("keydown",".select2-search--inline",function(u){if(u.stopPropagation(),i.trigger("keypress",u),i._keyUpPrevented=u.isDefaultPrevented(),u.which===s.BACKSPACE&&i.$search.val()===""){var p=i.$searchContainer.prev(".select2-selection__choice");if(0this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:s.term,params:s}}):a.call(this,s,n)},o}),h.define("select2/data/maximumSelectionLength",[],function(){function o(a,s,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),a.call(this,s,n)}return o.prototype.query=function(a,s,n){var t=this;this.current(function(e){var r=e!=null?e.length:0;0=t.maximumSelectionLength?t.trigger("results:message",{message:"maximumSelected",args:{maximum:t.maximumSelectionLength}}):a.call(t,s,n)})},o}),h.define("select2/dropdown",["jquery","./utils"],function(o,a){function s(n,t){this.$element=n,this.options=t,s.__super__.constructor.call(this)}return a.Extend(s,a.Observable),s.prototype.render=function(){var n=o('');return n.attr("dir",this.options.get("dir")),this.$dropdown=n},s.prototype.bind=function(){},s.prototype.position=function(n,t){},s.prototype.destroy=function(){this.$dropdown.remove()},s}),h.define("select2/dropdown/search",["jquery","../utils"],function(o,a){function s(){}return s.prototype.render=function(n){var t=n.call(this),e=o('');return this.$searchContainer=e,this.$search=e.find("input"),t.prepend(e),t},s.prototype.bind=function(n,t,e){var r=this;n.call(this,t,e),this.$search.on("keydown",function(i){r.trigger("keypress",i),r._keyUpPrevented=i.isDefaultPrevented()}),this.$search.on("input",function(i){o(this).off("keyup")}),this.$search.on("keyup input",function(i){r.handleSearch(i)}),t.on("open",function(){r.$search.attr("tabindex",0),r.$search.focus(),window.setTimeout(function(){r.$search.focus()},0)}),t.on("close",function(){r.$search.attr("tabindex",-1),r.$search.val(""),r.$search.blur()}),t.on("focus",function(){t.isOpen()||r.$search.focus()}),t.on("results:all",function(i){i.query.term!=null&&i.query.term!==""||(r.showSearch(i)?r.$searchContainer.removeClass("select2-search--hide"):r.$searchContainer.addClass("select2-search--hide"))})},s.prototype.handleSearch=function(n){if(!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},s.prototype.showSearch=function(n,t){return!0},s}),h.define("select2/dropdown/hidePlaceholder",[],function(){function o(a,s,n,t){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),a.call(this,s,n,t)}return o.prototype.append=function(a,s){s.results=this.removePlaceholder(s.results),a.call(this,s)},o.prototype.normalizePlaceholder=function(a,s){return typeof s=="string"&&(s={id:"",text:s}),s},o.prototype.removePlaceholder=function(a,s){for(var n=s.slice(0),t=s.length-1;0<=t;t--){var e=s[t];this.placeholder.id===e.id&&n.splice(t,1)}return n},o}),h.define("select2/dropdown/infiniteScroll",["jquery"],function(o){function a(s,n,t,e){this.lastParams={},s.call(this,n,t,e),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return a.prototype.append=function(s,n){this.$loadingMore.remove(),this.loading=!1,s.call(this,n),this.showLoadingMore(n)&&this.$results.append(this.$loadingMore)},a.prototype.bind=function(s,n,t){var e=this;s.call(this,n,t),n.on("query",function(r){e.lastParams=r,e.loading=!0}),n.on("query:append",function(r){e.lastParams=r,e.loading=!0}),this.$results.on("scroll",function(){var r=o.contains(document.documentElement,e.$loadingMore[0]);if(!e.loading&&r){var i=e.$results.offset().top+e.$results.outerHeight(!1);e.$loadingMore.offset().top+e.$loadingMore.outerHeight(!1)<=i+50&&e.loadMore()}})},a.prototype.loadMore=function(){this.loading=!0;var s=o.extend({},{page:1},this.lastParams);s.page++,this.trigger("query:append",s)},a.prototype.showLoadingMore=function(s,n){return n.pagination&&n.pagination.more},a.prototype.createLoadingMore=function(){var s=o('
    • '),n=this.options.get("translations").get("loadingMore");return s.html(n(this.lastParams)),s},a}),h.define("select2/dropdown/attachBody",["jquery","../utils"],function(o,a){function s(n,t,e){this.$dropdownParent=e.get("dropdownParent")||o(document.body),n.call(this,t,e)}return s.prototype.bind=function(n,t,e){var r=this,i=!1;n.call(this,t,e),t.on("open",function(){r._showDropdown(),r._attachPositioningHandler(t),i||(i=!0,t.on("results:all",function(){r._positionDropdown(),r._resizeDropdown()}),t.on("results:append",function(){r._positionDropdown(),r._resizeDropdown()}))}),t.on("close",function(){r._hideDropdown(),r._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(l){l.stopPropagation()})},s.prototype.destroy=function(n){n.call(this),this.$dropdownContainer.remove()},s.prototype.position=function(n,t,e){t.attr("class",e.attr("class")),t.removeClass("select2"),t.addClass("select2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=e},s.prototype.render=function(n){var t=o(""),e=n.call(this);return t.append(e),this.$dropdownContainer=t},s.prototype._hideDropdown=function(n){this.$dropdownContainer.detach()},s.prototype._attachPositioningHandler=function(n,t){var e=this,r="scroll.select2."+t.id,i="resize.select2."+t.id,l="orientationchange.select2."+t.id,c=this.$container.parents().filter(a.hasScroll);c.each(function(){a.StoreData(this,"select2-scroll-position",{x:o(this).scrollLeft(),y:o(this).scrollTop()})}),c.on(r,function(u){var p=a.GetData(this,"select2-scroll-position");o(this).scrollTop(p.y)}),o(window).on(r+" "+i+" "+l,function(u){e._positionDropdown(),e._resizeDropdown()})},s.prototype._detachPositioningHandler=function(n,t){var e="scroll.select2."+t.id,r="resize.select2."+t.id,i="orientationchange.select2."+t.id;this.$container.parents().filter(a.hasScroll).off(e),o(window).off(e+" "+r+" "+i)},s.prototype._positionDropdown=function(){var n=o(window),t=this.$dropdown.hasClass("select2-dropdown--above"),e=this.$dropdown.hasClass("select2-dropdown--below"),r=null,i=this.$container.offset();i.bottom=i.top+this.$container.outerHeight(!1);var l={height:this.$container.outerHeight(!1)};l.top=i.top,l.bottom=i.top+l.height;var c=this.$dropdown.outerHeight(!1),u=n.scrollTop(),p=n.scrollTop()+n.height(),f=ui.bottom+c,m={left:i.left,top:l.bottom},v=this.$dropdownParent;v.css("position")==="static"&&(v=v.offsetParent());var _=v.offset();m.top-=_.top,m.left-=_.left,t||e||(r="below"),g||!f||t?!f&&g&&t&&(r="below"):r="above",(r=="above"||t&&r!=="below")&&(m.top=l.top-_.top-c),r!=null&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+r),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+r)),this.$dropdownContainer.css(m)},s.prototype._resizeDropdown=function(){var n={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(n.minWidth=n.width,n.position="relative",n.width="auto"),this.$dropdown.css(n)},s.prototype._showDropdown=function(n){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},s}),h.define("select2/dropdown/minimumResultsForSearch",[],function(){function o(a,s,n,t){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),a.call(this,s,n,t)}return o.prototype.showSearch=function(a,s){return!(function n(t){for(var e=0,r=0;r');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),s.StoreData(e[0],"element",this.$element),e},t}),h.define("jquery-mousewheel",["jquery"],function(o){return o}),h.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults","./select2/utils"],function(o,a,s,n,t){if(o.fn.select2==null){var e=["open","close","destroy"];o.fn.select2=function(r){if(typeof(r=r||{})=="object")return this.each(function(){var c=o.extend(!0,{},r);new s(o(this),c)}),this;if(typeof r!="string")throw new Error("Invalid arguments for Select2: "+r);var i,l=Array.prototype.slice.call(arguments,1);return this.each(function(){var c=t.GetData(this,"select2");c==null&&window.console&&console.error&&console.error("The select2('"+r+"') method was called on an element that is not using Select2."),i=c[r].apply(c,l)}),-1