window.$=window.$||{},function(){$&&$.fn&&$.fn.select2&&$.fn.select2.amd&&(c=$.fn.select2.amd.define,b=$.fn.select2.amd.require);vara,b,c;!function(d){functione(a,b){returnu.call(a,b)}functionf(a,b){varc,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=s.map,p=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,s.nodeIdCompat&&w.test(a[g])&&(a[g]=a[g].replace(w,"")),a=n.concat(a),k=0;k<a.length;k+=1)if(m=a[k],"."===m)a.splice(k,1),k-=1;elseif(".."===m){if(1===k&&(".."===a[2]||".."===a[0]))break;k>0&&(a.splice(k-1,2),k-=2)}a=a.join("/")}else0===a.indexOf("./")&&(a=a.substring(2));if((n||p)&&o){for(c=a.split("/"),k=c.length;k>0;k-=1){if(d=c.slice(0,k).join("/"),n)for(l=n.length;l>0;l-=1)if(e=o[n.slice(0,l).join("/")],e&&(e=e[d])){f=e,h=k;break}if(f)break;!i&&p&&p[d]&&(i=p[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}returna}functiong(a,b){returnfunction(){returnn.apply(d,v.call(arguments,0).concat([a,b]))}}functionh(a){returnfunction(b){returnf(b,a)}}functioni(a){returnfunction(b){q[a]=b}}functionj(a){if(e(r,a)){varb=r[a];deleter[a],t[a]=!0,m.apply(d,b)}if(!e(q,a)&&!e(t,a))thrownewError("No "+a);returnq[a]}functionk(a){varb,c=a?a.indexOf("!"):-1;returnc>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}functionl(a){returnfunction(){returns&&s.config&&s.config[a]||{}}}varm,n,o,p,q={},r={},s={},t={},u=Object.prototype.hasOwnProperty,v=[].slice,w=/\.js$/;o=function(a,b){varc,d=k(a),e=d[0];returna=d[1],e&&(e=f(e,b),c=j(e)),e?a=c&&c.normalize?c.normalize(a,h(b)):f(a,b):(a=f(a,b),d=k(a),e=d[0],a=d[1],e&&(c=j(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:c}},p={require:function(a){returng(a)},exports:function(a){varb=q[a];return"undefined"!=typeofb?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:l(a)}}},m=function(a,b,c,f){varh,k,l,m,n,s,u=[],v=typeofc;if(f=f||a,"undefined"===v||"function"===v){for(b=!b.length&&c.length?["require","exports","module"]:b,n=0;n<b.length;n+=1)if(m=o(b[n],f),k=m.f,"require"===k)u[n]=p.require(a);elseif("exports"===k)u[n]=p.exports(a),s=!0;elseif("module"===k)h=u[n]=p.module(a);elseif(e(q,k)||e(r,k)||e(t,k))u[n]=j(k);else{if(!m.p)thrownewError(a+" missing "+k);m.p.load(m.n,g(f,!0),i(k),{}),u[n]=q[k]}l=c?c.apply(q[a],u):void0,a&&(h&&h.exports!==d&&h.exports!==q[a]?q[a]=h.exports:l===d&&s||(q[a]=l))}elsea&&(q[a]=c)},a=b=n=function(a,b,c,e,f){if("string"==typeofa)returnp[a]?p[a](b):j(o(a,b).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!b)return;b.splice?(a=b,b=c,c=null):a=d}returnb=b||function(){},"function"==typeofc&&(c=e,e=f),e?m(d,a,b,c):setTimeout(function(){m(d,a,b,c)},4),n},n.config=function(a){returnn(a)},a._defined=q,c=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},c.amd={jQuery:!0}}(),c("almond",function(){}),function(a,b){"object"==typeofmodule&&"object"==typeofmodule.exports?module.exports=a.document?b(a,!0):function(a){if(!a.document)thrownewError("jQuery requires a window with a document");returnb(a)}:b(a)}("undefined"!=typeofwindow?window:this,function(a,b){functiond(a){varb=a.length,c=bb.type(a);return"function"===c||bb.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeofb&&b>0&&b-1ina}functione(a,b,c){if(bb.isFunction(b))returnbb.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)returnbb.grep(a,function(a){returna===b!==c});if("string"==typeofb){if(ib.test(b))returnbb.filter(b,a,c);b=bb.filter(b,a)}returnbb.grep(a,function(a){returnV.call(b,a)>=0!==c})}functionf(a,b){for(;(a=a[b])&&1!==a.nodeType;);returna}functiong(a){varb=pb[a]={};returnbb.each(a.match(ob)||[],function(a,c){b[c]=!0}),b}functionh(){_.removeEventListener("DOMContentLoaded",h,!1),a.removeEventListener("load",h,!1),bb.ready()}functioni(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=bb.expando+Math.random()}functionj(a,b,c){vard;if(void0===c&&1===a.nodeType)if(d="data-"+b.replace(vb,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeofc){try{c="true"===c?!0:"false"===c?!1:"null"===
}})}),$(window).on("scroll.select2."+a.id,function(){b.trigger("close")})},c.prototype._detachCloseHandler=function(a){$(document.body).off("mousedown.select2."+a.id),$(window).off("scroll.select2."+a.id)},c.prototype.position=function(a,b){varc=b.find(".selection");c.append(a)},c.prototype.destroy=function(){this._detachCloseHandler(this.container)},c.prototype.update=function(){thrownewError("The `update` method must be defined in child classes.")},c}),c("select2/selection/single",["./base","../utils","../keys"],function(a,b){functionc(){c.__super__.constructor.apply(this,arguments)}returnb.Extend(c,a),c.prototype.render=function(){vara=$('<span class="select2-selection select2-selection--single" tabindex="0" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"><span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span></span>');returna.attr("title",this.$element.attr("title")),this.$selection=a,a},c.prototype.bind=function(a){varb=this;c.__super__.bind.apply(this,arguments);vard=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",d),this.$selection.attr("aria-labelledby",d),this.$selection.on("mousedown",function(a){1===a.which&&b.trigger("toggle",{originalEvent:a})}),this.$selection.on("focus",function(){}),this.$selection.on("blur",function(){}),a.on("enable",function(){b.$selection.attr("tabindex","0")}),a.on("disable",function(){b.$selection.attr("tabindex","-1")}),a.on("selection:update",function(a){b.update(a.data)})},c.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},c.prototype.display=function(a){varb=this.options.get("templateSelection");returnb(a)},c.prototype.selectionContainer=function(){return$("<span></span>")},c.prototype.update=function(a){if(0===a.length)returnvoidthis.clear();varb=a[0],c=this.display(b);this.$selection.find(".select2-selection__rendered").html(c)},c}),c("select2/selection/multiple",["./base","../utils"],function(a,b){functionc(){c.__super__.constructor.apply(this,arguments)}returnb.Extend(c,a),c.prototype.render=function(){vara=$('<span class="select2-selection select2-selection--multiple" tabindex="0" role="combobox" aria-autocomplete="list" aria-haspopup="true" aria-expanded="false"><ul class="select2-selection__rendered"></ul></span>');returna.attr("title",this.$element.attr("title")),this.$selection=a,a},c.prototype.bind=function(a){varb=this;c.__super__.bind.apply(this,arguments),this.$selection.on("click",function(a){b.trigger("toggle",{originalEvent:a})}),this.$selection.on("click",".select2-selection__choice__remove",function(a){varc=$(this),d=c.parent(),e=d.data("data");b.trigger("unselect",{originalEvent:a,data:e})}),a.on("enable",function(){b.$selection.attr("tabindex","0")}),a.on("disable",function(){b.$selection.attr("tabindex","-1")})},c.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},c.prototype.display=function(a){varb=this.options.get("templateSelection");returnb(a)},c.prototype.selectionContainer=function(){vara=$('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>');returna},c.prototype.update=function(a){if(this.clear(),0!==a.length){for(varb=[],c=0;c<a.length;c++){vard=a[c],e=this.display(d),f=this.selectionContainer();f.append(e),f.data("data",d),b.push(f)}this.$selection.find(".select2-selection__rendered").append(b)}},c}),c("select2/selection/placeholder",["../utils"],function(){functiona(a,b,c){this.placeholder=this.normalizePlaceholder(c.get("placeholder")),a.call(this,b,c)}returna.prototype.normalizePlaceholder=function(a,b){return"string"==typeofb&&(b={id:"",text:b}),b},a.prototype.createPlaceholder=function(a,b){varc=this.selectionContainer();returnc.html(this.display(b)),c.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),c},a.prototype.update=function(a,b){varc=1==b.length&&b[0].id!=this.plac
},templateResult:function(a){returna.text},templateSelection:function(a){returna.text},theme:"default",width:"resolve"}};varC=newB;returnC}),c("select2/options",["jquery","./defaults"],function(a,b){functionc(a,c){this.options=a,null!=c&&this.fromElement(c),this.options=b.apply(this.options)}returnc.prototype.fromElement=function(b){functionc(a){for(varbina){varc=b.split("-"),d=a;if(1!==c.length){for(vare=0;e<c.length;e++){varf=c[e];f=f.substring(0,1).toLowerCase()+f.substring(1),find||(d[f]={}),e==c.length-1&&(d[f]=a[b]),d=d[f]}deletea[b]}}returna}vard=["select2"];null==this.options.multiple&&(this.options.multiple=b.prop("multiple")),null==this.options.disabled&&(this.options.disabled=b.prop("disabled")),null==this.options.language&&(b.prop("lang")?this.options.language=b.prop("lang").toLowerCase():b.closest("[lang]").prop("lang")&&(this.options.language=b.closest("[lang]").prop("lang"))),null==this.options.dir&&(this.options.dir=b.prop("dir")?b.prop("dir"):b.closest("[dir]").prop("dir")?b.closest("[dir]").prop("dir"):"ltr"),b.prop("disabled",this.options.disabled),b.prop("multiple",this.options.multiple),b.data("select2-tags")&&(console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags="true"` attributes and will be removed in future versions of Select2.'),b.data("data",b.data("select2-tags")),b.data("tags",!0)),b.data("ajax-url")&&(console&&console.warn&&console.warn("Select2: The `data-ajax-attribute` has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),b.data("ajax--url",b.data("ajax-url")));vare=b.data();e=c(e);for(varfine)d.indexOf(f)>-1||(a.isPlainObject(this.options[f])?a.extend(this.options[f],e[f]):this.options[f]=e[f]);returnthis},c.prototype.get=function(a){returnthis.options[a]},c.prototype.set=function(a,b){this.options[a]=b},c}),c("select2/core",["jquery","./options","./utils","./keys"],function(a,b,c,d){vare=function(a,c){null!=a.data("select2")&&a.data("select2").destroy(),this.$element=a,this.id=this._generateId(a),c=c||{},this.options=newb(c,a),e.__super__.constructor.call(this);vard=this.options.get("dataAdapter");this.data=newd(a,this.options);varf=this.render();this._placeContainer(f);varg=this.options.get("selectionAdapter");this.selection=newg(a,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,f);varh=this.options.get("dropdownAdapter");this.dropdown=newh(a,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,f);vari=this.options.get("resultsAdapter");this.results=newi(a,this.options,this.data),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);varj=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.data.current(function(a){j.trigger("selection:update",{data:a})}),a.hide(),this._syncAttributes(),this._tabindex=a.attr("tabindex")||0,a.attr("tabindex","-1"),a.data("select2",this)};returnc.Extend(e,c.Observable),e.prototype._generateId=function(a){varb="";returnb=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+c.generateChars(2):c.generateChars(4),b="select2-"+b},e.prototype._placeContainer=function(a){a.insertAfter(this.$element);varb=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},e.prototype._resolveWidth=function(a,b){varc=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b){vard=this._resolveWidth(a,"style");returnnull!=d?d:this._resolveWidth(a,"element")}if("element"==b){vare=a.outerWidth(!1);return0>=e?"auto":e+"px"}if("style"==b){varf=a.attr("style");if("string"!=typeoff)returnnull;varg=f.split(";");for(i=0,l=g.length;i<l;i+=1){attr=g[i].replace(/\s/g,"");varh=attr.match(c);if(null!==h&&h.length>=1)returnh[1]}}returnb},e.prototype._bindAdapters