varrequirejs,require,define;!function(a){functionb(a,b){returnr.call(a,b)}functionc(a,b){varc,d,e,f,g,h,i,j,k,l,m,n=b&&b.split("/"),o=p.map,q=o&&o["*"]||{};if(a&&"."===a.charAt(0))if(b){for(n=n.slice(0,n.length-1),a=a.split("/"),g=a.length-1,p.nodeIdCompat&&t.test(a[g])&&(a[g]=a[g].replace(t,"")),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||q)&&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&&q&&q[d]&&(i=q[d],j=k)}!f&&i&&(f=i,h=j),f&&(c.splice(0,h,f),a=c.join("/"))}returna}functiond(b,c){returnfunction(){returnk.apply(a,s.call(arguments,0).concat([b,c]))}}functione(a){returnfunction(b){returnc(b,a)}}functionf(a){returnfunction(b){n[a]=b}}functiong(c){if(b(o,c)){vard=o[c];deleteo[c],q[c]=!0,j.apply(a,d)}if(!b(n,c)&&!b(q,c))thrownewError("No "+c);returnn[c]}functionh(a){varb,c=a?a.indexOf("!"):-1;returnc>-1&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}functioni(a){returnfunction(){returnp&&p.config&&p.config[a]||{}}}varj,k,l,m,n={},o={},p={},q={},r=Object.prototype.hasOwnProperty,s=[].slice,t=/\.js$/;l=function(a,b){vard,f=h(a),i=f[0];returna=f[1],i&&(i=c(i,b),d=g(i)),i?a=d&&d.normalize?d.normalize(a,e(b)):c(a,b):(a=c(a,b),f=h(a),i=f[0],a=f[1],i&&(d=g(i))),{f:i?i+"!"+a:a,n:a,pr:i,p:d}},m={require:function(a){returnd(a)},exports:function(a){varb=n[a];return"undefined"!=typeofb?b:n[a]={}},module:function(a){return{id:a,uri:"",exports:n[a],config:i(a)}}},j=function(c,e,h,i){varj,k,p,r,s,t,u=[],v=typeofh;if(i=i||c,"undefined"===v||"function"===v){for(e=!e.length&&h.length?["require","exports","module"]:e,s=0;s<e.length;s+=1)if(r=l(e[s],i),k=r.f,"require"===k)u[s]=m.require(c);elseif("exports"===k)u[s]=m.exports(c),t=!0;elseif("module"===k)j=u[s]=m.module(c);elseif(b(n,k)||b(o,k)||b(q,k))u[s]=g(k);else{if(!r.p)thrownewError(c+" missing "+k);r.p.load(r.n,d(i,!0),f(k),{}),u[s]=n[k]}p=h?h.apply(n[c],u):void0,c&&(j&&j.exports!==a&&j.exports!==n[c]?n[c]=j.exports:p===a&&t||(n[c]=p))}elsec&&(n[c]=h)},requirejs=require=k=function(b,c,d,e,f){if("string"==typeofb)returnm[b]?m[b](c):g(l(b,c).f);if(!b.splice){if(p=b,p.deps&&k(p.deps,p.callback),!c)return;c.splice?(b=c,c=d,d=null):b=a}returnc=c||function(){},"function"==typeofd&&(d=e,e=f),e?j(a,b,c,d):setTimeout(function(){j(a,b,c,d)},4),k},k.config=function(a){returnk(a)},requirejs._defined=n,define=function(a,c,d){c.splice||(d=c,c=[]),b(n,a)||b(o,a)||(o[a]=[a,c,d])},define.amd={jQuery:!0}}(),define("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){functionc(a){varb=a.length,c=ab.type(a);return"function"===c||ab.isWindow(a)?!1:1===a.nodeType&&b?!0:"array"===c||0===b||"number"==typeofb&&b>0&&b-1ina}functiond(a,b,c){if(ab.isFunction(b))returnab.grep(a,function(a,d){return!!b.call(a,d,a)!==c});if(b.nodeType)returnab.grep(a,function(a){returna===b!==c});if("string"==typeofb){if(hb.test(b))returnab.filter(b,a,c);b=ab.filter(b,a)}returnab.grep(a,function(a){returnU.call(b,a)>=0!==c})}functione(a,b){for(;(a=a[b])&&1!==a.nodeType;);returna}functionf(a){varb=ob[a]={};returnab.each(a.match(nb)||[],function(a,c){b[c]=!0}),b}functiong(){$.removeEventListener("DOMContentLoaded",g,!1),a.removeEventListener("load",g,!1),ab.ready()}functionh(){Object.defineProperty(this.cache={},0,{get:function(){return{}}}),this.expando=ab.expando+Math.random()}functioni(a,b,c){vard;if(void0===c&&1===a.nodeType)if(d="data-"+b.replace(ub,"-$1").toLowerCase(),c=a.getAttribute(d),"string"==typeofc){try{c="true"===c?!0:"false"===c?!1:"null"===c?null:+c+""===c?+c:tb.test(c)?ab.parseJSON(c):c}catch(e){}sb.set(a,b,c)}
}this.$selection.find(".rendered-selection").append(b)}},c}),define("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}),define("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}),define("select2/data/select",["./base","../utils","jquery"],function(a,b,c){functiond(a){this.$element=a,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.item=function(a){varb=a.data("data");if(null==b){if(a.is("option"))b={id:a.val(),text:a.html(),disabled:a.prop("disabled")};elseif(a.is("optgroup")){b={text:a.attr("label"),children:[]};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}b.id&&(b._resultId=this.generateResultId(this.container,b)),a.data("data",b)}returnb},d.prototype.matches=function(a,b){vard=c.extend(!0,{},b);if(b.children){for(vare=b.children.length-1;e>=0;e--){varf=b.children[e],g=this.matches(a,f);null===g&&d.children.splice(e,1)}if(d.children.length>0)returnd}return""===c.trim(a.term)?d:b.text.toUpperCase().indexOf(a.term.toUpperCase())>-1?d:null},d}),define("select2/data/array",["./select","../utils"],function(a,b){functionc(a,b){this.data=b.options.data,c.__super__.constructor.call(this,a,b)}returnb.Extend(c,a),c.prototype.select=function(a){varb=this;this.$element.find("option").each(function(){varc=$(this),d=b.item(c);d.id==a.id.toString()&&c.remove()});vard=this.option(a);this.$element.append(d),c.__super__.select.call(this,a)},c.prototype.option=function(a){varb=$("<option></option>");returnb.text(a.text),b.val(a.id),b.data("data",a),b},c.prototype.query=function(a,b){varc=[],d=this;$.each(this.data,function(){varb=this;d.matches(a,b)&&c.push(b)}),b(c)},c}),define("select2/data/ajax",["./array","../utils","jquery"],function(a,b,c){functiond(b,c){this.ajaxOptions=c.get("ajax"),this.processResults=this.ajaxOptions.processResults||function(a){returna},a.__super__.constructor.call(this,b,c)}returnb.Extend(d,a),d.prototype.query=function(a,b){vard=this,e=c.extend({type:"GET"},this.ajaxOptions);"function"==typeofe.url&&(