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"===
this.$selection.find(".rendered-selection").html(c)},d}),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="multiple-select"><ul class="rendered-selection"></ul></span>');returnthis.$selection=a,a},c.prototype.bind=function(){vara=this;c.__super__.bind.apply(this,arguments),this.$selection.on("click",function(b){a.trigger("toggle",{originalEvent:b})}),this.$selection.on("click",".remove",function(b){varc=$(this),d=c.parent(),e=d.data("data");a.trigger("unselected",{originalEvent:b,data:e})})},c.prototype.clear=function(){this.$selection.find(".rendered-selection").empty()},c.prototype.display=function(a){varb=this.options.get("templateSelection");returnb(a)},c.prototype.selectionContainer=function(){vara=$('<li class="choice"><span class="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(".rendered-selection").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.update=function(a,b){varc=1==b.length&&b[0].id!=this.placeholder.id,d=b.length>1;if(d||c)returna.call(this,b);this.clear();vare=this.selectionContainer();e.html(this.display(this.placeholder)),e.addClass("placeholder").removeClass("choice"),this.$selection.find(".rendered-selection").append(e)},a}),c("select2/translation",[],function(){functiona(a){this.dict=a||{}}returna.prototype.all=function(){returnthis.dict},a.prototype.get=function(a){returnthis.dict[a]},a.prototype.extend=function(a){this.dict=$.extend({},a.all(),this.dict)},a._cache={},a.loadPath=function(c){if(!(cina._cache)){vard=b(c);a._cache[c]=d}returnnewa(a._cache[c])},a}),c("select2/data/base",["../utils"],function(a){functionb(){b.__super__.constructor.call(this)}returna.Extend(b,a.Observable),b.prototype.current=function(){thrownewError("The `current` method must be defined in child classes.")},b.prototype.query=function(){thrownewError("The `query` method must be defined in child classes.")},b.prototype.bind=function(){},b.prototype.generateResultId=function(b,c){vard=b.id+"-result-";returnd+=a.generateChars(4),d+=null!=c.id?"-"+c.id.toString():"-"+a.generateChars(4)},b}),c("select2/data/select",["./base","../utils","jquery"],function(a,b,c){functiond(a,b){this.$element=a,this.options=b,d.__super__.constructor.call(this)}returnb.Extend(d,a),d.prototype.current=function(a){varb=[],d=this;this.$element.find(":selected").each(function(){vara=c(this),e=d.item(a);b.push(e)}),a(b)},d.prototype.select=function(a){varb=this;if(this.$element.prop("multiple"))this.current(function(c){vard=[];a=[a],a.push.apply(a,c);for(vare=0;e<a.length;e++)id=a[e].id,-1===d.indexOf(id)&&d.push(id);b.$element.val(d),b.$element.trigger("change")});else{varc=a.id;this.$element.val(c),this.$element.trigger("change")}},d.prototype.unselect=function(a){varb=this;this.$element.prop("multiple")&&this.current(function(c){for(vard=[],e=0;e<c.length;e++)id=c[e].id,id!==a.id&&-1===d.indexOf(id)&&d.push(id);b.$element.val(d),b.$element.trigger("change")})},d.prototype.bind=function(a){varb=this;this.container=a,a.on("select",function(a){b.select(a.data)}),a.on("unselect",function(a){b.unselect(a.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(d)},d.prototype.option=function(a){varb=c("<option></option>");b.text(a.text),b.val(a.id),b.prop("disabled",a.disabled||!1),b.prop("selected",a.selected||!1);vard=this.item(b),e=c.extend({},a,d);returnb