/*! Select2 4.0.0 | https://github.com/select2/select2/blob/master/LICENSE.md */!function(a){"function"==typeofdefine&&define.amd?define(["jquery"],a):a("object"==typeofexports?require("jquery"):jQuery)}(function(a){varb=function(){if(a&&a.fn&&a.fn.select2&&a.fn.select2.amd)varb=a.fn.select2.amd;varb;returnfunction(){if(!b||!b.requirejs){b?c=b:b={};vara,c,d;!function(b){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,c){returnfunction(){returnn.apply(b,v.call(arguments,0).concat([a,c]))}}functionh(a){returnfunction(b){returnf(b,a)}}functioni(a){returnfunction(b){q[a]=b}}functionj(a){if(e(r,a)){varc=r[a];deleter[a],t[a]=!0,m.apply(b,c)}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,c,d,f){varh,k,l,m,n,s,u=[],v=typeofd;if(f=f||a,"undefined"===v||"function"===v){for(c=!c.length&&d.length?["require","exports","module"]:c,n=0;n<c.length;n+=1)if(m=o(c[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=d?d.apply(q[a],u):void0,a&&(h&&h.exports!==b&&h.exports!==q[a]?q[a]=h.exports:l===b&&s||(q[a]=l))}elsea&&(q[a]=d)},a=c=n=function(a,c,d,e,f){if("string"==typeofa)returnp[a]?p[a](c):j(o(a,c).f);if(!a.splice){if(s=a,s.deps&&n(s.deps,s.callback),!c)return;c.splice?(a=c,c=d,d=null):a=b}returnc=c||function(){},"function"==typeofd&&(d=e,e=f),e?m(b,a,c,d):setTimeout(function(){m(b,a,c,d)},4),n},n.config=function(a){returnn(a)},a._defined=q,d=function(a,b,c){b.splice||(c=b,b=[]),e(q,a)||e(r,a)||(r[a]=[a,b,c])},d.amd={jQuery:!0}}(),b.requirejs=a,b.require=c,b.define=d}}(),b.define("almond",function(){}),b.define("jquery",[],function(){varb=a||$;returnnull==b&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),b}),b.define("select2/utils",["jquery"],function(a){functionb(a){varb=a.prototype,c=[];for(vardinb){vare=b[d];"function"==typeofe&&"constructor"!==d&&c.push(d)}returnc}varc={};c.Extend=function(a,b){functionc(){this.constructor=a}vard={}.hasOwnProperty;for(vareinb)d.call(b,e)&&(a[e]=b[e]);returnc.prototype=b.prototype,a.prototype=newc,a.__super__=b.prototype,a},c.Decorate=function(a,c){functiond(){varb=Array.prototype.unshift,d=c.prototype.constructor.length,e=a.prototype.constructor;d>0&&(b.call(arguments,a.prototype.constructor),e=c.prototype.constructor),e.apply(this,arguments)}functione(){this.constructor=d}varf=b(c),g=b(a);c.displayName=a.displayName,d.prototype=newe;for(varh=0;h<g.length;h++){vari=g[h]
c.removeData(this,"data")})},d.prototype.query=function(a,b){vard=[],e=this,f=this.$element.children();f.each(function(){varb=c(this);if(b.is("option")||b.is("optgroup")){varf=e.item(b),g=e.matches(a,f);null!==g&&d.push(g)}}),b({results:d})},d.prototype.addOptions=function(a){b.appendMany(this.$element,a)},d.prototype.option=function(a){varb;a.children?(b=document.createElement("optgroup"),b.label=a.text):(b=document.createElement("option"),void0!==b.textContent?b.textContent=a.text:b.innerText=a.text),a.id&&(b.value=a.id),a.disabled&&(b.disabled=!0),a.selected&&(b.selected=!0),a.title&&(b.title=a.title);vard=c(b),e=this._normalizeItem(a);returne.element=b,c.data(b,"data",e),d},d.prototype.item=function(a){varb={};if(b=c.data(a[0],"data"),null!=b)returnb;if(a.is("option"))b={id:a.val(),text:a.text(),disabled:a.prop("disabled"),selected:a.prop("selected"),title:a.prop("title")};elseif(a.is("optgroup")){b={text:a.prop("label"),children:[],title:a.prop("title")};for(vard=a.children("option"),e=[],f=0;f<d.length;f++){varg=c(d[f]),h=this.item(g);e.push(h)}b.children=e}returnb=this._normalizeItem(b),b.element=a[0],c.data(a[0],"data",b),b},d.prototype._normalizeItem=function(a){c.isPlainObject(a)||(a={id:a,text:a}),a=c.extend({},{text:""},a);varb={selected:!1,disabled:!1};returnnull!=a.id&&(a.id=a.id.toString()),null!=a.text&&(a.text=a.text.toString()),null==a._resultId&&a.id&&null!=this.container&&(a._resultId=this.generateResultId(this.container,a)),c.extend({},b,a)},d.prototype.matches=function(a,b){varc=this.options.get("matcher");returnc(a,b)},d}),b.define("select2/data/array",["./select","../utils","jquery"],function(a,b,c){functiond(a,b){varc=b.get("data")||[];d.__super__.constructor.call(this,a,b),this.addOptions(this.convertToOptions(c))}returnb.Extend(d,a),d.prototype.select=function(a){varb=this.$element.find("option").filter(function(b,c){returnc.value==a.id.toString()});0===b.length&&(b=this.option(a),this.addOptions(b)),d.__super__.select.call(this,a)},d.prototype.convertToOptions=function(a){functiond(a){returnfunction(){returnc(this).val()==a.id}}for(vare=this,f=this.$element.find("option"),g=f.map(function(){returne.item(c(this)).id}).get(),h=[],i=0;i<a.length;i++){varj=this._normalizeItem(a[i]);if(c.inArray(j.id,g)>=0){vark=f.filter(d(j)),l=this.item(k),m=c.extend(!0,{},l,j),n=this.option(m);k.replaceWith(n)}else{varo=this.option(j);if(j.children){varp=this.convertToOptions(j.children);b.appendMany(o,p)}h.push(o)}}returnh},d}),b.define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){functiond(a,b){this.ajaxOptions=this._applyDefaults(b.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),d.__super__.constructor.call(this,a,b)}returnb.Extend(d,a),d.prototype._applyDefaults=function(a){varb={data:function(a){return{q:a.term}},transport:function(a,b,d){vare=c.ajax(a);returne.then(b),e.fail(d),e}};returnc.extend({},b,a,!0)},d.prototype.processResults=function(a){returna},d.prototype.query=function(a,b){functiond(){vard=f.transport(f,function(d){varf=e.processResults(d,a);e.options.get("debug")&&window.console&&console.error&&(f&&f.results&&c.isArray(f.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),b(f)},function(){});e._request=d}vare=this;null!=this._request&&(c.isFunction(this._request.abort)&&this._request.abort(),this._request=null);varf=c.extend({type:"GET"},this.ajaxOptions);"function"==typeoff.url&&(f.url=f.url(a)),"function"==typeoff.data&&(f.data=f.data(a)),this.ajaxOptions.delay&&""!==a.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(d,this.ajaxOptions.delay)):d()},d}),b.define("select2/data/tags",["jquery"],function(a){functionb(b,c,d){vare=d.get("tags"),f=d.get("createTag");if(void0!==f&&(this.createTag=f),b.call(this,c,d),a.isArray(e))for(varg=0;g<e.length;g++){varh=e[g],i=this._normalizeItem(h),j=this.option(i);this.$element.append(j)}}returnb.prototype.q
functionb(a,b,c){this._currentData=[],this._valueSeparator=c.get("valueSeparator")||",","hidden"===b.prop("type")&&c.get("debug")&&console&&console.warn&&console.warn("Select2: Using a hidden input with Select2 is no longer supported and may stop working in the future. It is recommended to use a `<select>` element instead."),a.call(this,b,c)}returnb.prototype.current=function(b,c){functiond(b,c){vare=[];returnb.selected||-1!==a.inArray(b.id,c)?(b.selected=!0,e.push(b)):b.selected=!1,b.children&&e.push.apply(e,d(b.children,c)),e}for(vare=[],f=0;f<this._currentData.length;f++){varg=this._currentData[f];e.push.apply(e,d(g,this.$element.val().split(this._valueSeparator)))}c(e)},b.prototype.select=function(b,c){if(this.options.get("multiple")){vard=this.$element.val();d+=this._valueSeparator+c.id,this.$element.val(d),this.$element.trigger("change")}elsethis.current(function(b){a.map(b,function(a){a.selected=!1})}),this.$element.val(c.id),this.$element.trigger("change")},b.prototype.unselect=function(a,b){varc=this;b.selected=!1,this.current(function(a){for(vard=[],e=0;e<a.length;e++){varf=a[e];b.id!=f.id&&d.push(f.id)}c.$element.val(d.join(c._valueSeparator)),c.$element.trigger("change")})},b.prototype.query=function(a,b,c){for(vard=[],e=0;e<this._currentData.length;e++){varf=this._currentData[e],g=this.matches(b,f);null!==g&&d.push(g)}c({results:d})},b.prototype.addOptions=function(b,c){vard=a.map(c,function(b){returna.data(b[0],"data")});this._currentData.push.apply(this._currentData,d)},b}),b.define("select2/compat/matcher",["jquery"],function(a){functionb(b){functionc(c,d){vare=a.extend(!0,{},d);if(null==c.term||""===a.trim(c.term))returne;if(d.children){for(varf=d.children.length-1;f>=0;f--){varg=d.children[f],h=b(c.term,g.text,g);h||e.children.splice(f,1)}if(e.children.length>0)returne}returnb(c.term,d.text,d)?e:null}returnc}returnb}),b.define("select2/compat/query",[],function(){functiona(a,b,c){c.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),a.call(this,b,c)}returna.prototype.query=function(a,b,c){b.callback=c;vard=this.options.get("query");d.call(null,b)},a}),b.define("select2/dropdown/attachContainer",[],function(){functiona(a,b,c){a.call(this,b,c)}returna.prototype.position=function(a,b,c){vard=c.find(".dropdown-wrapper");d.append(b),b.addClass("select2-dropdown--below"),c.addClass("select2-container--below")},a}),b.define("select2/dropdown/stopPropagation",[],function(){functiona(){}returna.prototype.bind=function(a,b,c){a.call(this,b,c);vard=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$dropdown.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("select2/selection/stopPropagation",[],function(){functiona(){}returna.prototype.bind=function(a,b,c){a.call(this,b,c);vard=["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"];this.$selection.on(d.join(" "),function(a){a.stopPropagation()})},a}),b.define("jquery.select2",["jquery","require","./select2/core","./select2/defaults"],function(a,b,c,d){if(b("jquery.mousewheel"),null==a.fn.select2){vare=["open","close","destroy"];a.fn.select2=function(b){if(b=b||{},"object"==typeofb)returnthis.each(function(){vard=a.extend({},b,!0);newc(a(this),d)}),this;if("string"==typeofb){vard=this.data("select2");null==d&&window.console&&console.error&&console.error("The select2('"+b+"') method was called on an element that is not using Select2.");varf=Array.prototype.slice.call(arguments,1),g=d[b](f);returna.inArray(b,e)>-1?this:g}thrownewError("Invalid arguments for Select2: "+b)}}returnnull==a.fn.select