D7net Mini Sh3LL v1

 
ON  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF
Directory (0777) :  C:/Domains/maymaytinson.com/httpdocs/ckeditor/plugins/imgbrowse/../about/../imagepaste/../imgupload/../flash/../balloonpanel/../imagebrowser/../ckawesome/resources/select2/

 Home   ☍ Command   ☍ Upload File   ☍Info Server   ☍ Buat File   ☍ Mass deface   ☍ Jumping   ☍ Config   ☍ Symlink   ☍ About 

Current File : C:/Domains/maymaytinson.com/httpdocs/ckeditor/plugins/imgbrowse/../about/../imagepaste/../imgupload/../flash/../balloonpanel/../imagebrowser/../ckawesome/resources/select2/select2.full.min.js
!function(r){"function"==typeof define&&define.amd?define(["jquery"],r):r("object"==typeof exports?require("jquery"):jQuery)}(function(r){var z=function(){if(r&&r.fn&&r.fn.select2&&r.fn.select2.amd)var g=r.fn.select2.amd;return function(){if(!g||!g.requirejs){g?f=g:g={};var e,f,d;!function(c){function b(a,b){var c,k,d,t,e,n,f,l,p,m=b&&b.split("/"),g=v.map,q=g&&g["*"]||{};if(a&&"."===a.charAt(0))if(b){a=a.split("/");e=a.length-1;v.nodeIdCompat&&D.test(a[e])&&(a[e]=a[e].replace(D,""));a=m.slice(0,m.length-
1).concat(a);for(e=0;e<a.length;e+=1)if(c=a[e],"."===c)a.splice(e,1),--e;else if(".."===c){if(1===e&&(".."===a[2]||".."===a[0]))break;0<e&&(a.splice(e-1,2),e-=2)}a=a.join("/")}else 0===a.indexOf("./")&&(a=a.substring(2));if((m||q)&&g){c=a.split("/");for(e=c.length;0<e;--e){if(k=c.slice(0,e).join("/"),m)for(p=m.length;0<p;--p)if(d=g[m.slice(0,p).join("/")],d&&(d=d[k])){t=d;n=e;break}if(t)break;!f&&q&&q[k]&&(f=q[k],l=e)}!t&&f&&(t=f,n=l);t&&(c.splice(0,n,t),a=c.join("/"))}return a}function a(a,b){return function(){var k=
E.call(arguments,0);return"string"!=typeof k[0]&&1===k.length&&k.push(null),g.apply(c,k.concat([a,b]))}}function k(a){return function(c){return b(c,a)}}function t(a){return function(b){q[a]=b}}function n(a){if(u.call(w,a)){var b=w[a];delete w[a];r[a]=!0;m.apply(c,b)}if(!u.call(q,a)&&!u.call(r,a))throw Error("No "+a);return q[a]}function l(a){var b,c=a?a.indexOf("!"):-1;return-1<c&&(b=a.substring(0,c),a=a.substring(c+1,a.length)),[b,a]}function p(a){return function(){return v&&v.config&&v.config[a]||
{}}}var m,g,y,x,q={},w={},v={},r={},u=Object.prototype.hasOwnProperty,E=[].slice,D=/\.js$/;y=function(a,c){var d,t=l(a),e=t[0];return a=t[1],e&&(e=b(e,c),d=n(e)),e?a=d&&d.normalize?d.normalize(a,k(c)):b(a,c):(a=b(a,c),t=l(a),e=t[0],a=t[1],e&&(d=n(e))),{f:e?e+"!"+a:a,n:a,pr:e,p:d}};x={require:function(b){return a(b)},exports:function(a){var b=q[a];return"undefined"!=typeof b?b:q[a]={}},module:function(a){return{id:a,uri:"",exports:q[a],config:p(a)}}};m=function(b,k,d,e){var f,l,p,m,h,g=[];m=typeof d;
if(e=e||b,"undefined"===m||"function"===m){k=!k.length&&d.length?["require","exports","module"]:k;for(m=0;m<k.length;m+=1)if(p=y(k[m],e),l=p.f,"require"===l)g[m]=x.require(b);else if("exports"===l)g[m]=x.exports(b),h=!0;else if("module"===l)f=g[m]=x.module(b);else if(u.call(q,l)||u.call(w,l)||u.call(r,l))g[m]=n(l);else{if(!p.p)throw Error(b+" missing "+l);p.p.load(p.n,a(e,!0),t(l),{});g[m]=q[l]}k=d?d.apply(q[b],g):void 0;b&&(f&&f.exports!==c&&f.exports!==q[b]?q[b]=f.exports:k===c&&h||(q[b]=k))}else b&&
(q[b]=d)};e=f=g=function(a,b,k,d,t){if("string"==typeof a)return x[a]?x[a](b):n(y(a,b).f);if(!a.splice){if(v=a,v.deps&&g(v.deps,v.callback),!b)return;b.splice?(a=b,b=k,k=null):a=c}return b=b||function(){},"function"==typeof k&&(k=d,d=t),d?m(c,a,b,k):setTimeout(function(){m(c,a,b,k)},4),g};g.config=function(a){return g(a)};e._defined=q;d=function(a,b,c){if("string"!=typeof a)throw Error("See almond README: incorrect module build, no module name");b.splice||(c=b,b=[]);u.call(q,a)||u.call(w,a)||(w[a]=
[a,b,c])};d.amd={jQuery:!0}}();g.requirejs=e;g.require=f;g.define=d}}(),g.define("almond",function(){}),g.define("jquery",[],function(){var e=r||$;return null==e&&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."),e}),g.define("select2/utils",["jquery"],function(e){function f(b){b=b.prototype;var a=[],c;for(c in b)"function"==typeof b[c]&&"constructor"!==c&&a.push(c);
return a}var d={Extend:function(b,a){function c(){this.constructor=b}var d={}.hasOwnProperty,e;for(e in a)d.call(a,e)&&(b[e]=a[e]);return c.prototype=a.prototype,b.prototype=new c,b.__super__=a.prototype,b},Decorate:function(b,a){function c(){var k=Array.prototype.unshift,d=b.prototype.constructor;0<a.prototype.constructor.length&&(k.call(arguments,b.prototype.constructor),d=a.prototype.constructor);d.apply(this,arguments)}var d=f(a),e=f(b);a.displayName=b.displayName;c.prototype=new function(){this.constructor=
c};for(var l=0;l<e.length;l++){var p=e[l];c.prototype[p]=b.prototype[p]}e=function(b){var d=function(){};b in c.prototype&&(d=c.prototype[b]);var t=a.prototype[b];return function(){return Array.prototype.unshift.call(arguments,d),t.apply(this,arguments)}};for(l=0;l<d.length;l++)p=d[l],c.prototype[p]=e(p);return c}},c=function(){this.listeners={}};return c.prototype.on=function(b,a){this.listeners=this.listeners||{};b in this.listeners?this.listeners[b].push(a):this.listeners[b]=[a]},c.prototype.trigger=
function(b){var a=Array.prototype.slice,c=a.call(arguments,1);this.listeners=this.listeners||{};null==c&&(c=[]);0===c.length&&c.push({});c[0]._type=b;b in this.listeners&&this.invoke(this.listeners[b],a.call(arguments,1));"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},c.prototype.invoke=function(b,a){for(var c=0,d=b.length;d>c;c++)b[c].apply(this,a)},d.Observable=c,d.generateChars=function(b){for(var a="",c=0;b>c;c++)var d=Math.floor(36*Math.random()),a=a+d.toString(36);return a},
d.bind=function(b,a){return function(){b.apply(a,arguments)}},d._convertData=function(b){for(var a in b){var c=a.split("-"),d=b;if(1!==c.length){for(var e=0;e<c.length;e++){var f=c[e],f=f.substring(0,1).toLowerCase()+f.substring(1);f in d||(d[f]={});e==c.length-1&&(d[f]=b[a]);d=d[f]}delete b[a]}}return b},d.hasScroll=function(b,a){var c=e(a),d=a.style.overflowX,n=a.style.overflowY;return d!==n||"hidden"!==n&&"visible"!==n?"scroll"===d||"scroll"===n?!0:c.innerHeight()<a.scrollHeight||c.innerWidth()<
a.scrollWidth:!1},d.escapeMarkup=function(b){var a={"\\":"\x26#92;","\x26":"\x26amp;","\x3c":"\x26lt;","\x3e":"\x26gt;",'"':"\x26quot;","'":"\x26#39;","/":"\x26#47;"};return"string"!=typeof b?b:String(b).replace(/[&<>"'\/\\]/g,function(b){return a[b]})},d.appendMany=function(b,a){if("1.7"===e.fn.jquery.substr(0,3)){var c=e();e.map(a,function(a){c=c.add(a)});a=c}b.append(a)},d}),g.define("select2/results",["jquery","./utils"],function(e,f){function d(c,b,a){this.$element=c;this.data=a;this.options=
b;d.__super__.constructor.call(this)}return f.Extend(d,f.Observable),d.prototype.render=function(){var c=e('\x3cul class\x3d"select2-results__options" role\x3d"tree"\x3e\x3c/ul\x3e');return this.options.get("multiple")&&c.attr("aria-multiselectable","true"),this.$results=c,c},d.prototype.clear=function(){this.$results.empty()},d.prototype.displayMessage=function(c){var b=this.options.get("escapeMarkup");this.clear();this.hideLoading();var a=e('\x3cli role\x3d"treeitem" aria-live\x3d"assertive" class\x3d"select2-results__option"\x3e\x3c/li\x3e'),
k=this.options.get("translations").get(c.message);a.append(b(k(c.args)));a[0].className+=" select2-results__message";this.$results.append(a)},d.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},d.prototype.append=function(c){this.hideLoading();var b=[];if(null==c.results||0===c.results.length)return void(0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"}));c.results=this.sort(c.results);for(var a=0;a<c.results.length;a++){var k=
this.option(c.results[a]);b.push(k)}this.$results.append(b)},d.prototype.position=function(c,b){b.find(".select2-results").append(c)},d.prototype.sort=function(c){return this.options.get("sorter")(c)},d.prototype.highlightFirstItem=function(){var c=this.$results.find(".select2-results__option[aria-selected]"),b=c.filter("[aria-selected\x3dtrue]");0<b.length?b.first().trigger("mouseenter"):c.first().trigger("mouseenter");this.ensureHighlightVisible()},d.prototype.setClasses=function(){var c=this;this.data.current(function(b){var a=
e.map(b,function(a){return a.id.toString()});c.$results.find(".select2-results__option[aria-selected]").each(function(){var b=e(this),c=e.data(this,"data"),d=""+c.id;null!=c.element&&c.element.selected||null==c.element&&-1<e.inArray(d,a)?b.attr("aria-selected","true"):b.attr("aria-selected","false")})})},d.prototype.showLoading=function(c){this.hideLoading();c={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(c)};c=this.option(c);c.className+=" loading-results";this.$results.prepend(c)},
d.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},d.prototype.option=function(c){var b=document.createElement("li");b.className="select2-results__option";var a={role:"treeitem","aria-selected":"false"};c.disabled&&(delete a["aria-selected"],a["aria-disabled"]="true");null==c.id&&delete a["aria-selected"];null!=c._resultId&&(b.id=c._resultId);c.title&&(b.title=c.title);c.children&&(a.role="group",a["aria-label"]=c.text,delete a["aria-selected"]);for(var k in a)b.setAttribute(k,
a[k]);if(c.children){a=e(b);k=document.createElement("strong");k.className="select2-results__group";e(k);this.template(c,k);for(var d=[],f=0;f<c.children.length;f++){var l=this.option(c.children[f]);d.push(l)}f=e("\x3cul\x3e\x3c/ul\x3e",{"class":"select2-results__options select2-results__options--nested"});f.append(d);a.append(k);a.append(f)}else this.template(c,b);return e.data(b,"data",c),b},d.prototype.bind=function(c,b){var a=this;this.$results.attr("id",c.id+"-results");c.on("results:all",function(b){a.clear();
a.append(b.data);c.isOpen()&&(a.setClasses(),a.highlightFirstItem())});c.on("results:append",function(b){a.append(b.data);c.isOpen()&&a.setClasses()});c.on("query",function(b){a.hideMessages();a.showLoading(b)});c.on("select",function(){c.isOpen()&&(a.setClasses(),a.highlightFirstItem())});c.on("unselect",function(){c.isOpen()&&(a.setClasses(),a.highlightFirstItem())});c.on("open",function(){a.$results.attr("aria-expanded","true");a.$results.attr("aria-hidden","false");a.setClasses();a.ensureHighlightVisible()});
c.on("close",function(){a.$results.attr("aria-expanded","false");a.$results.attr("aria-hidden","true");a.$results.removeAttr("aria-activedescendant")});c.on("results:toggle",function(){var b=a.getHighlightedResults();0!==b.length&&b.trigger("mouseup")});c.on("results:select",function(){var b=a.getHighlightedResults();if(0!==b.length){var c=b.data("data");"true"==b.attr("aria-selected")?a.trigger("close",{}):a.trigger("select",{data:c})}});c.on("results:previous",function(){var b=a.getHighlightedResults(),
c=a.$results.find("[aria-selected]"),d=c.index(b);if(0!==d){--d;0===b.length&&(d=0);c=c.eq(d);c.trigger("mouseenter");var b=a.$results.offset().top,c=c.offset().top,e=a.$results.scrollTop()+(c-b);0===d?a.$results.scrollTop(0):0>c-b&&a.$results.scrollTop(e)}});c.on("results:next",function(){var b=a.getHighlightedResults(),c=a.$results.find("[aria-selected]"),b=c.index(b)+1;if(!(b>=c.length)){var d=c.eq(b);d.trigger("mouseenter");var c=a.$results.offset().top+a.$results.outerHeight(!1),d=d.offset().top+
d.outerHeight(!1),e=a.$results.scrollTop()+d-c;0===b?a.$results.scrollTop(0):d>c&&a.$results.scrollTop(e)}});c.on("results:focus",function(a){a.element.addClass("select2-results__option--highlighted")});c.on("results:message",function(b){a.displayMessage(b)});e.fn.mousewheel&&this.$results.on("mousewheel",function(b){var c=a.$results.scrollTop(),d=a.$results.get(0).scrollHeight-c+b.deltaY,c=0<b.deltaY&&0>=c-b.deltaY,d=0>b.deltaY&&d<=a.$results.height();c?(a.$results.scrollTop(0),b.preventDefault(),
b.stopPropagation()):d&&(a.$results.scrollTop(a.$results.get(0).scrollHeight-a.$results.height()),b.preventDefault(),b.stopPropagation())});this.$results.on("mouseup",".select2-results__option[aria-selected]",function(b){var c=e(this),d=c.data("data");return"true"===c.attr("aria-selected")?void(a.options.get("multiple")?a.trigger("unselect",{originalEvent:b,data:d}):a.trigger("close",{})):void a.trigger("select",{originalEvent:b,data:d})});this.$results.on("mouseenter",".select2-results__option[aria-selected]",
function(b){b=e(this).data("data");a.getHighlightedResults().removeClass("select2-results__option--highlighted");a.trigger("results:focus",{data:b,element:e(this)})})},d.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},d.prototype.destroy=function(){this.$results.remove()},d.prototype.ensureHighlightVisible=function(){var c=this.getHighlightedResults();if(0!==c.length){var b=this.$results.find("[aria-selected]").index(c),a=this.$results.offset().top,
d=c.offset().top,e=this.$results.scrollTop()+(d-a),a=d-a,e=e-2*c.outerHeight(!1);2>=b?this.$results.scrollTop(0):(a>this.$results.outerHeight()||0>a)&&this.$results.scrollTop(e)}},d.prototype.template=function(c,b){var a=this.options.get("templateResult"),d=this.options.get("escapeMarkup"),a=a(c,b);null==a?b.style.display="none":"string"==typeof a?b.innerHTML=d(a):e(b).append(a)},d}),g.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}}),g.define("select2/selection/base",["jquery","../utils","../keys"],function(e,f,d){function c(b,a){this.$element=b;this.options=a;c.__super__.constructor.call(this)}return f.Extend(c,f.Observable),c.prototype.render=function(){var b=e('\x3cspan class\x3d"select2-selection" role\x3d"combobox"  aria-haspopup\x3d"true" aria-expanded\x3d"false"\x3e\x3c/span\x3e');return this._tabindex=0,null!=this.$element.data("old-tabindex")?this._tabindex=
this.$element.data("old-tabindex"):null!=this.$element.attr("tabindex")&&(this._tabindex=this.$element.attr("tabindex")),b.attr("title",this.$element.attr("title")),b.attr("tabindex",this._tabindex),this.$selection=b,b},c.prototype.bind=function(b,a){var c=this,e=(b.id+"-container",b.id+"-results");this.container=b;this.$selection.on("focus",function(a){c.trigger("focus",a)});this.$selection.on("blur",function(a){c._handleBlur(a)});this.$selection.on("keydown",function(a){c.trigger("keypress",a);
a.which===d.SPACE&&a.preventDefault()});b.on("results:focus",function(a){c.$selection.attr("aria-activedescendant",a.data._resultId)});b.on("selection:update",function(a){c.update(a.data)});b.on("open",function(){c.$selection.attr("aria-expanded","true");c.$selection.attr("aria-owns",e);c._attachCloseHandler(b)});b.on("close",function(){c.$selection.attr("aria-expanded","false");c.$selection.removeAttr("aria-activedescendant");c.$selection.removeAttr("aria-owns");c.$selection.focus();c._detachCloseHandler(b)});
b.on("enable",function(){c.$selection.attr("tabindex",c._tabindex)});b.on("disable",function(){c.$selection.attr("tabindex","-1")})},c.prototype._handleBlur=function(b){var a=this;window.setTimeout(function(){document.activeElement==a.$selection[0]||e.contains(a.$selection[0],document.activeElement)||a.trigger("blur",b)},1)},c.prototype._attachCloseHandler=function(b){e(document.body).on("mousedown.select2."+b.id,function(a){var b=e(a.target).closest(".select2");e(".select2.select2-container--open").each(function(){var a=
e(this);this!=b[0]&&a.data("element").select2("close")})})},c.prototype._detachCloseHandler=function(b){e(document.body).off("mousedown.select2."+b.id)},c.prototype.position=function(b,a){a.find(".selection").append(b)},c.prototype.destroy=function(){this._detachCloseHandler(this.container)},c.prototype.update=function(b){throw Error("The `update` method must be defined in child classes.");},c}),g.define("select2/selection/single",["jquery","./base","../utils","../keys"],function(e,f,d,c){function b(){b.__super__.constructor.apply(this,
arguments)}return d.Extend(b,f),b.prototype.render=function(){var a=b.__super__.render.call(this);return a.addClass("select2-selection--single"),a.html('\x3cspan class\x3d"select2-selection__rendered"\x3e\x3c/span\x3e\x3cspan class\x3d"select2-selection__arrow" role\x3d"presentation"\x3e\x3cb role\x3d"presentation"\x3e\x3c/b\x3e\x3c/span\x3e'),a},b.prototype.bind=function(a,c){var d=this;b.__super__.bind.apply(this,arguments);var e=a.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",
e);this.$selection.attr("aria-labelledby",e);this.$selection.on("mousedown",function(a){1===a.which&&d.trigger("toggle",{originalEvent:a})});this.$selection.on("focus",function(a){});this.$selection.on("blur",function(a){});a.on("focus",function(b){a.isOpen()||d.$selection.focus()});a.on("selection:update",function(a){d.update(a.data)})},b.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},b.prototype.display=function(a,b){var c=this.options.get("templateSelection");
return this.options.get("escapeMarkup")(c(a,b))},b.prototype.selectionContainer=function(){return e("\x3cspan\x3e\x3c/span\x3e")},b.prototype.update=function(a){if(0===a.length)return void this.clear();a=a[0];var b=this.$selection.find(".select2-selection__rendered"),c=this.display(a,b);b.empty().append(c);b.prop("title",a.title||a.text)},b}),g.define("select2/selection/multiple",["jquery","./base","../utils"],function(e,f,d){function c(b,a){c.__super__.constructor.apply(this,arguments)}return d.Extend(c,
f),c.prototype.render=function(){var b=c.__super__.render.call(this);return b.addClass("select2-selection--multiple"),b.html('\x3cul class\x3d"select2-selection__rendered"\x3e\x3c/ul\x3e'),b},c.prototype.bind=function(b,a){var d=this;c.__super__.bind.apply(this,arguments);this.$selection.on("click",function(a){d.trigger("toggle",{originalEvent:a})});this.$selection.on("click",".select2-selection__choice__remove",function(a){if(!d.options.get("disabled")){var b=e(this).parent().data("data");d.trigger("unselect",
{originalEvent:a,data:b})}})},c.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},c.prototype.display=function(b,a){var c=this.options.get("templateSelection");return this.options.get("escapeMarkup")(c(b,a))},c.prototype.selectionContainer=function(){return e('\x3cli class\x3d"select2-selection__choice"\x3e\x3cspan class\x3d"select2-selection__choice__remove" role\x3d"presentation"\x3e\x26times;\x3c/span\x3e\x3c/li\x3e')},c.prototype.update=function(b){if(this.clear(),
0!==b.length){for(var a=[],c=0;c<b.length;c++){var e=b[c],f=this.selectionContainer(),l=this.display(e,f);f.append(l);f.prop("title",e.title||e.text);f.data("data",e);a.push(f)}b=this.$selection.find(".select2-selection__rendered");d.appendMany(b,a)}},c}),g.define("select2/selection/placeholder",["../utils"],function(e){function f(d,c,b){this.placeholder=this.normalizePlaceholder(b.get("placeholder"));d.call(this,c,b)}return f.prototype.normalizePlaceholder=function(d,c){return"string"==typeof c&&
(c={id:"",text:c}),c},f.prototype.createPlaceholder=function(d,c){var b=this.selectionContainer();return b.html(this.display(c)),b.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),b},f.prototype.update=function(d,c){var b=1==c.length&&c[0].id!=this.placeholder.id;if(1<c.length||b)return d.call(this,c);this.clear();b=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(b)},f}),g.define("select2/selection/allowClear",
["jquery","../keys"],function(e,f){function d(){}return d.prototype.bind=function(c,b,a){var d=this;c.call(this,b,a);null==this.placeholder&&this.options.get("debug")&&window.console&&console.error&&console.error("Select2: The `allowClear` option should be used in combination with the `placeholder` option.");this.$selection.on("mousedown",".select2-selection__clear",function(a){d._handleClear(a)});b.on("keypress",function(a){d._handleKeyboardClear(a,b)})},d.prototype._handleClear=function(c,b){if(!this.options.get("disabled")){var a=
this.$selection.find(".select2-selection__clear");if(0!==a.length){b.stopPropagation();for(var a=a.data("data"),d=0;d<a.length;d++){var e={data:a[d]};if(this.trigger("unselect",e),e.prevented)return}this.$element.val(this.placeholder.id).trigger("change");this.trigger("toggle",{})}}},d.prototype._handleKeyboardClear=function(c,b,a){a.isOpen()||(b.which==f.DELETE||b.which==f.BACKSPACE)&&this._handleClear(b)},d.prototype.update=function(c,b){if(c.call(this,b),!(0<this.$selection.find(".select2-selection__placeholder").length||
0===b.length)){var a=e('\x3cspan class\x3d"select2-selection__clear"\x3e\x26times;\x3c/span\x3e');a.data("data",b);this.$selection.find(".select2-selection__rendered").prepend(a)}},d}),g.define("select2/selection/search",["jquery","../utils","../keys"],function(e,f,d){function c(b,a,c){b.call(this,a,c)}return c.prototype.render=function(b){var a=e('\x3cli class\x3d"select2-search select2-search--inline"\x3e\x3cinput class\x3d"select2-search__field" type\x3d"search" tabindex\x3d"-1" autocomplete\x3d"off" autocorrect\x3d"off" autocapitalize\x3d"off" spellcheck\x3d"false" role\x3d"textbox" aria-autocomplete\x3d"list" /\x3e\x3c/li\x3e');
this.$searchContainer=a;this.$search=a.find("input");b=b.call(this);return this._transferTabIndex(),b},c.prototype.bind=function(b,a,c){var e=this;b.call(this,a,c);a.on("open",function(){e.$search.trigger("focus")});a.on("close",function(){e.$search.val("");e.$search.removeAttr("aria-activedescendant");e.$search.trigger("focus")});a.on("enable",function(){e.$search.prop("disabled",!1);e._transferTabIndex()});a.on("disable",function(){e.$search.prop("disabled",!0)});a.on("focus",function(a){e.$search.trigger("focus")});
a.on("results:focus",function(a){e.$search.attr("aria-activedescendant",a.id)});this.$selection.on("focusin",".select2-search--inline",function(a){e.trigger("focus",a)});this.$selection.on("focusout",".select2-search--inline",function(a){e._handleBlur(a)});this.$selection.on("keydown",".select2-search--inline",function(a){a.stopPropagation();e.trigger("keypress",a);e._keyUpPrevented=a.isDefaultPrevented();if(a.which===d.BACKSPACE&&""===e.$search.val()){var b=e.$searchContainer.prev(".select2-selection__choice");
0<b.length&&(b=b.data("data"),e.searchRemoveChoice(b),a.preventDefault())}});var f=(b=document.documentMode)&&11>=b;this.$selection.on("input.searchcheck",".select2-search--inline",function(a){return f?void e.$selection.off("input.search input.searchcheck"):void e.$selection.off("keyup.search")});this.$selection.on("keyup.search input.search",".select2-search--inline",function(a){if(f&&"input"===a.type)return void e.$selection.off("input.search input.searchcheck");var b=a.which;b!=d.SHIFT&&b!=d.CTRL&&
b!=d.ALT&&b!=d.TAB&&e.handleSearch(a)})},c.prototype._transferTabIndex=function(b){this.$search.attr("tabindex",this.$selection.attr("tabindex"));this.$selection.attr("tabindex","-1")},c.prototype.createPlaceholder=function(b,a){this.$search.attr("placeholder",a.text)},c.prototype.update=function(b,a){var c=this.$search[0]==document.activeElement;this.$search.attr("placeholder","");b.call(this,a);this.$selection.find(".select2-selection__rendered").append(this.$searchContainer);this.resizeSearch();
c&&this.$search.focus()},c.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var b=this.$search.val();this.trigger("query",{term:b})}this._keyUpPrevented=!1},c.prototype.searchRemoveChoice=function(b,a){this.trigger("unselect",{data:a});this.$search.val(a.text);this.handleSearch()},c.prototype.resizeSearch=function(){this.$search.css("width","25px");var b="",b=""!==this.$search.attr("placeholder")?this.$selection.find(".select2-selection__rendered").innerWidth():.75*
(this.$search.val().length+1)+"em";this.$search.css("width",b)},c}),g.define("select2/selection/eventRelay",["jquery"],function(e){function f(){}return f.prototype.bind=function(d,c,b){var a=this,k="open opening close closing select selecting unselect unselecting".split(" "),f=["opening","closing","selecting","unselecting"];d.call(this,c,b);c.on("*",function(b,c){if(-1!==e.inArray(b,k)){c=c||{};var d=e.Event("select2:"+b,{params:c});a.$element.trigger(d);-1!==e.inArray(b,f)&&(c.prevented=d.isDefaultPrevented())}})},
f}),g.define("select2/translation",["jquery","require"],function(e,f){function d(c){this.dict=c||{}}return d.prototype.all=function(){return this.dict},d.prototype.get=function(c){return this.dict[c]},d.prototype.extend=function(c){this.dict=e.extend({},c.all(),this.dict)},d._cache={},d.loadPath=function(c){if(!(c in d._cache)){var b=f(c);d._cache[c]=b}return new d(d._cache[c])},d}),g.define("select2/diacritics",[],function(){return{"Ⓐ":"A","A":"A","À":"A","Á":"A","Â":"A","Ầ":"A","Ấ":"A","Ẫ":"A",
"Ẩ":"A","Ã":"A","Ā":"A","Ă":"A","Ằ":"A","Ắ":"A","Ẵ":"A","Ẳ":"A","Ȧ":"A","Ǡ":"A","Ä":"A","Ǟ":"A","Ả":"A","Å":"A","Ǻ":"A","Ǎ":"A","Ȁ":"A","Ȃ":"A","Ạ":"A","Ậ":"A","Ặ":"A","Ḁ":"A","Ą":"A","Ⱥ":"A","Ɐ":"A","Ꜳ":"AA","Æ":"AE","Ǽ":"AE","Ǣ":"AE","Ꜵ":"AO","Ꜷ":"AU","Ꜹ":"AV","Ꜻ":"AV","Ꜽ":"AY","Ⓑ":"B","B":"B","Ḃ":"B","Ḅ":"B","Ḇ":"B","Ƀ":"B","Ƃ":"B","Ɓ":"B","Ⓒ":"C","C":"C","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","Ç":"C","Ḉ":"C","Ƈ":"C","Ȼ":"C","Ꜿ":"C","Ⓓ":"D","D":"D","Ḋ":"D","Ď":"D","Ḍ":"D","Ḑ":"D","Ḓ":"D","Ḏ":"D","Đ":"D",
"Ƌ":"D","Ɗ":"D","Ɖ":"D","Ꝺ":"D","DZ":"DZ","DŽ":"DZ","Dz":"Dz","Dž":"Dz","Ⓔ":"E","E":"E","È":"E","É":"E","Ê":"E","Ề":"E","Ế":"E","Ễ":"E","Ể":"E","Ẽ":"E","Ē":"E","Ḕ":"E","Ḗ":"E","Ĕ":"E","Ė":"E","Ë":"E","Ẻ":"E","Ě":"E","Ȅ":"E","Ȇ":"E","Ẹ":"E","Ệ":"E","Ȩ":"E","Ḝ":"E","Ę":"E","Ḙ":"E","Ḛ":"E","Ɛ":"E","Ǝ":"E","Ⓕ":"F","F":"F","Ḟ":"F","Ƒ":"F","Ꝼ":"F","Ⓖ":"G","G":"G","Ǵ":"G","Ĝ":"G","Ḡ":"G","Ğ":"G","Ġ":"G","Ǧ":"G","Ģ":"G","Ǥ":"G","Ɠ":"G","Ꞡ":"G","Ᵹ":"G","Ꝿ":"G","Ⓗ":"H","H":"H","Ĥ":"H","Ḣ":"H","Ḧ":"H","Ȟ":"H","Ḥ":"H",
"Ḩ":"H","Ḫ":"H","Ħ":"H","Ⱨ":"H","Ⱶ":"H","Ɥ":"H","Ⓘ":"I","I":"I","Ì":"I","Í":"I","Î":"I","Ĩ":"I","Ī":"I","Ĭ":"I","İ":"I","Ï":"I","Ḯ":"I","Ỉ":"I","Ǐ":"I","Ȉ":"I","Ȋ":"I","Ị":"I","Į":"I","Ḭ":"I","Ɨ":"I","Ⓙ":"J","J":"J","Ĵ":"J","Ɉ":"J","Ⓚ":"K","K":"K","Ḱ":"K","Ǩ":"K","Ḳ":"K","Ķ":"K","Ḵ":"K","Ƙ":"K","Ⱪ":"K","Ꝁ":"K","Ꝃ":"K","Ꝅ":"K","Ꞣ":"K","Ⓛ":"L","L":"L","Ŀ":"L","Ĺ":"L","Ľ":"L","Ḷ":"L","Ḹ":"L","Ļ":"L","Ḽ":"L","Ḻ":"L","Ł":"L","Ƚ":"L","Ɫ":"L","Ⱡ":"L","Ꝉ":"L","Ꝇ":"L","Ꞁ":"L","LJ":"LJ","Lj":"Lj","Ⓜ":"M","M":"M",
"Ḿ":"M","Ṁ":"M","Ṃ":"M","Ɱ":"M","Ɯ":"M","Ⓝ":"N","N":"N","Ǹ":"N","Ń":"N","Ñ":"N","Ṅ":"N","Ň":"N","Ṇ":"N","Ņ":"N","Ṋ":"N","Ṉ":"N","Ƞ":"N","Ɲ":"N","Ꞑ":"N","Ꞥ":"N","NJ":"NJ","Nj":"Nj","Ⓞ":"O","O":"O","Ò":"O","Ó":"O","Ô":"O","Ồ":"O","Ố":"O","Ỗ":"O","Ổ":"O","Õ":"O","Ṍ":"O","Ȭ":"O","Ṏ":"O","Ō":"O","Ṑ":"O","Ṓ":"O","Ŏ":"O","Ȯ":"O","Ȱ":"O","Ö":"O","Ȫ":"O","Ỏ":"O","Ő":"O","Ǒ":"O","Ȍ":"O","Ȏ":"O","Ơ":"O","Ờ":"O","Ớ":"O","Ỡ":"O","Ở":"O","Ợ":"O","Ọ":"O","Ộ":"O","Ǫ":"O","Ǭ":"O","Ø":"O","Ǿ":"O","Ɔ":"O","Ɵ":"O","Ꝋ":"O",
"Ꝍ":"O","Ƣ":"OI","Ꝏ":"OO","Ȣ":"OU","Ⓟ":"P","P":"P","Ṕ":"P","Ṗ":"P","Ƥ":"P","Ᵽ":"P","Ꝑ":"P","Ꝓ":"P","Ꝕ":"P","Ⓠ":"Q","Q":"Q","Ꝗ":"Q","Ꝙ":"Q","Ɋ":"Q","Ⓡ":"R","R":"R","Ŕ":"R","Ṙ":"R","Ř":"R","Ȑ":"R","Ȓ":"R","Ṛ":"R","Ṝ":"R","Ŗ":"R","Ṟ":"R","Ɍ":"R","Ɽ":"R","Ꝛ":"R","Ꞧ":"R","Ꞃ":"R","Ⓢ":"S","S":"S","ẞ":"S","Ś":"S","Ṥ":"S","Ŝ":"S","Ṡ":"S","Š":"S","Ṧ":"S","Ṣ":"S","Ṩ":"S","Ș":"S","Ş":"S","Ȿ":"S","Ꞩ":"S","Ꞅ":"S","Ⓣ":"T","T":"T","Ṫ":"T","Ť":"T","Ṭ":"T","Ț":"T","Ţ":"T","Ṱ":"T","Ṯ":"T","Ŧ":"T","Ƭ":"T","Ʈ":"T","Ⱦ":"T",
"Ꞇ":"T","Ꜩ":"TZ","Ⓤ":"U","U":"U","Ù":"U","Ú":"U","Û":"U","Ũ":"U","Ṹ":"U","Ū":"U","Ṻ":"U","Ŭ":"U","Ü":"U","Ǜ":"U","Ǘ":"U","Ǖ":"U","Ǚ":"U","Ủ":"U","Ů":"U","Ű":"U","Ǔ":"U","Ȕ":"U","Ȗ":"U","Ư":"U","Ừ":"U","Ứ":"U","Ữ":"U","Ử":"U","Ự":"U","Ụ":"U","Ṳ":"U","Ų":"U","Ṷ":"U","Ṵ":"U","Ʉ":"U","Ⓥ":"V","V":"V","Ṽ":"V","Ṿ":"V","Ʋ":"V","Ꝟ":"V","Ʌ":"V","Ꝡ":"VY","Ⓦ":"W","W":"W","Ẁ":"W","Ẃ":"W","Ŵ":"W","Ẇ":"W","Ẅ":"W","Ẉ":"W","Ⱳ":"W","Ⓧ":"X","X":"X","Ẋ":"X","Ẍ":"X","Ⓨ":"Y","Y":"Y","Ỳ":"Y","Ý":"Y","Ŷ":"Y","Ỹ":"Y","Ȳ":"Y",
"Ẏ":"Y","Ÿ":"Y","Ỷ":"Y","Ỵ":"Y","Ƴ":"Y","Ɏ":"Y","Ỿ":"Y","Ⓩ":"Z","Z":"Z","Ź":"Z","Ẑ":"Z","Ż":"Z","Ž":"Z","Ẓ":"Z","Ẕ":"Z","Ƶ":"Z","Ȥ":"Z","Ɀ":"Z","Ⱬ":"Z","Ꝣ":"Z","ⓐ":"a","a":"a","ẚ":"a","à":"a","á":"a","â":"a","ầ":"a","ấ":"a","ẫ":"a","ẩ":"a","ã":"a","ā":"a","ă":"a","ằ":"a","ắ":"a","ẵ":"a","ẳ":"a","ȧ":"a","ǡ":"a","ä":"a","ǟ":"a","ả":"a","å":"a","ǻ":"a","ǎ":"a","ȁ":"a","ȃ":"a","ạ":"a","ậ":"a","ặ":"a","ḁ":"a","ą":"a","ⱥ":"a","ɐ":"a","ꜳ":"aa","æ":"ae","ǽ":"ae","ǣ":"ae","ꜵ":"ao","ꜷ":"au","ꜹ":"av","ꜻ":"av",
"ꜽ":"ay","ⓑ":"b","b":"b","ḃ":"b","ḅ":"b","ḇ":"b","ƀ":"b","ƃ":"b","ɓ":"b","ⓒ":"c","c":"c","ć":"c","ĉ":"c","ċ":"c","č":"c","ç":"c","ḉ":"c","ƈ":"c","ȼ":"c","ꜿ":"c","ↄ":"c","ⓓ":"d","d":"d","ḋ":"d","ď":"d","ḍ":"d","ḑ":"d","ḓ":"d","ḏ":"d","đ":"d","ƌ":"d","ɖ":"d","ɗ":"d","ꝺ":"d","dz":"dz","dž":"dz","ⓔ":"e","e":"e","è":"e","é":"e","ê":"e","ề":"e","ế":"e","ễ":"e","ể":"e","ẽ":"e","ē":"e","ḕ":"e","ḗ":"e","ĕ":"e","ė":"e","ë":"e","ẻ":"e","ě":"e","ȅ":"e","ȇ":"e","ẹ":"e","ệ":"e","ȩ":"e","ḝ":"e","ę":"e","ḙ":"e","ḛ":"e",
"ɇ":"e","ɛ":"e","ǝ":"e","ⓕ":"f","f":"f","ḟ":"f","ƒ":"f","ꝼ":"f","ⓖ":"g","g":"g","ǵ":"g","ĝ":"g","ḡ":"g","ğ":"g","ġ":"g","ǧ":"g","ģ":"g","ǥ":"g","ɠ":"g","ꞡ":"g","ᵹ":"g","ꝿ":"g","ⓗ":"h","h":"h","ĥ":"h","ḣ":"h","ḧ":"h","ȟ":"h","ḥ":"h","ḩ":"h","ḫ":"h","ẖ":"h","ħ":"h","ⱨ":"h","ⱶ":"h","ɥ":"h","ƕ":"hv","ⓘ":"i","i":"i","ì":"i","í":"i","î":"i","ĩ":"i","ī":"i","ĭ":"i","ï":"i","ḯ":"i","ỉ":"i","ǐ":"i","ȉ":"i","ȋ":"i","ị":"i","į":"i","ḭ":"i","ɨ":"i","ı":"i","ⓙ":"j","j":"j","ĵ":"j","ǰ":"j","ɉ":"j","ⓚ":"k","k":"k",
"ḱ":"k","ǩ":"k","ḳ":"k","ķ":"k","ḵ":"k","ƙ":"k","ⱪ":"k","ꝁ":"k","ꝃ":"k","ꝅ":"k","ꞣ":"k","ⓛ":"l","l":"l","ŀ":"l","ĺ":"l","ľ":"l","ḷ":"l","ḹ":"l","ļ":"l","ḽ":"l","ḻ":"l","ſ":"l","ł":"l","ƚ":"l","ɫ":"l","ⱡ":"l","ꝉ":"l","ꞁ":"l","ꝇ":"l","lj":"lj","ⓜ":"m","m":"m","ḿ":"m","ṁ":"m","ṃ":"m","ɱ":"m","ɯ":"m","ⓝ":"n","n":"n","ǹ":"n","ń":"n","ñ":"n","ṅ":"n","ň":"n","ṇ":"n","ņ":"n","ṋ":"n","ṉ":"n","ƞ":"n","ɲ":"n","ʼn":"n","ꞑ":"n","ꞥ":"n","nj":"nj","ⓞ":"o","o":"o","ò":"o","ó":"o","ô":"o","ồ":"o","ố":"o","ỗ":"o","ổ":"o",
"õ":"o","ṍ":"o","ȭ":"o","ṏ":"o","ō":"o","ṑ":"o","ṓ":"o","ŏ":"o","ȯ":"o","ȱ":"o","ö":"o","ȫ":"o","ỏ":"o","ő":"o","ǒ":"o","ȍ":"o","ȏ":"o","ơ":"o","ờ":"o","ớ":"o","ỡ":"o","ở":"o","ợ":"o","ọ":"o","ộ":"o","ǫ":"o","ǭ":"o","ø":"o","ǿ":"o","ɔ":"o","ꝋ":"o","ꝍ":"o","ɵ":"o","ƣ":"oi","ȣ":"ou","ꝏ":"oo","ⓟ":"p","p":"p","ṕ":"p","ṗ":"p","ƥ":"p","ᵽ":"p","ꝑ":"p","ꝓ":"p","ꝕ":"p","ⓠ":"q","q":"q","ɋ":"q","ꝗ":"q","ꝙ":"q","ⓡ":"r","r":"r","ŕ":"r","ṙ":"r","ř":"r","ȑ":"r","ȓ":"r","ṛ":"r","ṝ":"r","ŗ":"r","ṟ":"r","ɍ":"r","ɽ":"r",
"ꝛ":"r","ꞧ":"r","ꞃ":"r","ⓢ":"s","s":"s","ß":"s","ś":"s","ṥ":"s","ŝ":"s","ṡ":"s","š":"s","ṧ":"s","ṣ":"s","ṩ":"s","ș":"s","ş":"s","ȿ":"s","ꞩ":"s","ꞅ":"s","ẛ":"s","ⓣ":"t","t":"t","ṫ":"t","ẗ":"t","ť":"t","ṭ":"t","ț":"t","ţ":"t","ṱ":"t","ṯ":"t","ŧ":"t","ƭ":"t","ʈ":"t","ⱦ":"t","ꞇ":"t","ꜩ":"tz","ⓤ":"u","u":"u","ù":"u","ú":"u","û":"u","ũ":"u","ṹ":"u","ū":"u","ṻ":"u","ŭ":"u","ü":"u","ǜ":"u","ǘ":"u","ǖ":"u","ǚ":"u","ủ":"u","ů":"u","ű":"u","ǔ":"u","ȕ":"u","ȗ":"u","ư":"u","ừ":"u","ứ":"u","ữ":"u","ử":"u","ự":"u",
"ụ":"u","ṳ":"u","ų":"u","ṷ":"u","ṵ":"u","ʉ":"u","ⓥ":"v","v":"v","ṽ":"v","ṿ":"v","ʋ":"v","ꝟ":"v","ʌ":"v","ꝡ":"vy","ⓦ":"w","w":"w","ẁ":"w","ẃ":"w","ŵ":"w","ẇ":"w","ẅ":"w","ẘ":"w","ẉ":"w","ⱳ":"w","ⓧ":"x","x":"x","ẋ":"x","ẍ":"x","ⓨ":"y","y":"y","ỳ":"y","ý":"y","ŷ":"y","ỹ":"y","ȳ":"y","ẏ":"y","ÿ":"y","ỷ":"y","ẙ":"y","ỵ":"y","ƴ":"y","ɏ":"y","ỿ":"y","ⓩ":"z","z":"z","ź":"z","ẑ":"z","ż":"z","ž":"z","ẓ":"z","ẕ":"z","ƶ":"z","ȥ":"z","ɀ":"z","ⱬ":"z","ꝣ":"z","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ",
"Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),g.define("select2/data/base",["../utils"],function(e){function f(d,c){f.__super__.constructor.call(this)}return e.Extend(f,e.Observable),f.prototype.current=function(d){throw Error("The `current` method must be defined in child classes.");},f.prototype.query=function(d,c){throw Error("The `query` method must be defined in child classes.");},f.prototype.bind=function(d,c){},f.prototype.destroy=
function(){},f.prototype.generateResultId=function(d,c){var b=d.id+"-result-";return b+=e.generateChars(4),b+(null!=c.id?"-"+c.id.toString():"-"+e.generateChars(4))},f}),g.define("select2/data/select",["./base","../utils","jquery"],function(e,f,d){function c(b,a){this.$element=b;this.options=a;c.__super__.constructor.call(this)}return f.Extend(c,e),c.prototype.current=function(b){var a=[],c=this;this.$element.find(":selected").each(function(){var b=d(this),b=c.item(b);a.push(b)});b(a)},c.prototype.select=
function(b){var a=this;if(b.selected=!0,d(b.element).is("option"))return b.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(c){var e=[];b=[b];b.push.apply(b,c);for(c=0;c<b.length;c++){var f=b[c].id;-1===d.inArray(f,e)&&e.push(f)}a.$element.val(e);a.$element.trigger("change")}):(this.$element.val(b.id),this.$element.trigger("change"))},c.prototype.unselect=function(b){var a=this;if(this.$element.prop("multiple"))return b.selected=!1,d(b.element).is("option")?
(b.element.selected=!1,void this.$element.trigger("change")):void this.current(function(c){for(var e=[],f=0;f<c.length;f++){var l=c[f].id;l!==b.id&&-1===d.inArray(l,e)&&e.push(l)}a.$element.val(e);a.$element.trigger("change")})},c.prototype.bind=function(b,a){var c=this;this.container=b;b.on("select",function(a){c.select(a.data)});b.on("unselect",function(a){c.unselect(a.data)})},c.prototype.destroy=function(){this.$element.find("*").each(function(){d.removeData(this,"data")})},c.prototype.query=
function(b,a){var c=[],e=this;this.$element.children().each(function(){var a=d(this);if(a.is("option")||a.is("optgroup"))a=e.item(a),a=e.matches(b,a),null!==a&&c.push(a)});a({results:c})},c.prototype.addOptions=function(b){f.appendMany(this.$element,b)},c.prototype.option=function(b){var a;b.children?(a=document.createElement("optgroup"),a.label=b.text):(a=document.createElement("option"),void 0!==a.textContent?a.textContent=b.text:a.innerText=b.text);b.id&&(a.value=b.id);b.disabled&&(a.disabled=
!0);b.selected&&(a.selected=!0);b.title&&(a.title=b.title);var c=d(a);b=this._normalizeItem(b);return b.element=a,d.data(a,"data",b),c},c.prototype.item=function(b){var a={};if(a=d.data(b[0],"data"),null!=a)return a;if(b.is("option"))a={id:b.val(),text:b.text(),disabled:b.prop("disabled"),selected:b.prop("selected"),title:b.prop("title")};else if(b.is("optgroup")){for(var a={text:b.prop("label"),children:[],title:b.prop("title")},c=b.children("option"),e=[],f=0;f<c.length;f++){var l=d(c[f]),l=this.item(l);
e.push(l)}a.children=e}return a=this._normalizeItem(a),a.element=b[0],d.data(b[0],"data",a),a},c.prototype._normalizeItem=function(b){d.isPlainObject(b)||(b={id:b,text:b});b=d.extend({},{text:""},b);return null!=b.id&&(b.id=b.id.toString()),null!=b.text&&(b.text=b.text.toString()),null==b._resultId&&b.id&&null!=this.container&&(b._resultId=this.generateResultId(this.container,b)),d.extend({},{selected:!1,disabled:!1},b)},c.prototype.matches=function(b,a){return this.options.get("matcher")(b,a)},c}),
g.define("select2/data/array",["./select","../utils","jquery"],function(e,f,d){function c(b,a){var d=a.get("data")||[];c.__super__.constructor.call(this,b,a);this.addOptions(this.convertToOptions(d))}return f.Extend(c,e),c.prototype.select=function(b){var a=this.$element.find("option").filter(function(a,c){return c.value==b.id.toString()});0===a.length&&(a=this.option(b),this.addOptions(a));c.__super__.select.call(this,b)},c.prototype.convertToOptions=function(b){function a(a){return function(){return d(this).val()==
a.id}}for(var c=this,e=this.$element.find("option"),n=e.map(function(){return c.item(d(this)).id}).get(),l=[],p=0;p<b.length;p++){var m=this._normalizeItem(b[p]);if(0<=d.inArray(m.id,n)){var g=e.filter(a(m)),y=this.item(g),m=d.extend(!0,{},m,y),m=this.option(m);g.replaceWith(m)}else g=this.option(m),m.children&&(m=this.convertToOptions(m.children),f.appendMany(g,m)),l.push(g)}return l},c}),g.define("select2/data/ajax",["./array","../utils","jquery"],function(e,f,d){function c(b,a){this.ajaxOptions=
this._applyDefaults(a.get("ajax"));null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults);c.__super__.constructor.call(this,b,a)}return f.Extend(c,e),c.prototype._applyDefaults=function(b){return d.extend({},{data:function(a){return d.extend({},a,{q:a.term})},transport:function(a,b,c){a=d.ajax(a);return a.then(b),a.fail(c),a}},b,!0)},c.prototype.processResults=function(b){return b},c.prototype.query=function(b,a){function c(){var k=f.transport(f,function(c){c=
e.processResults(c,b);e.options.get("debug")&&window.console&&console.error&&(c&&c.results&&d.isArray(c.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response."));a(c)},function(){k.status&&"0"===k.status||e.trigger("results:message",{message:"errorLoading"})});e._request=k}var e=this;null!=this._request&&(d.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var f=d.extend({type:"GET"},this.ajaxOptions);"function"==typeof f.url&&
(f.url=f.url.call(this.$element,b));"function"==typeof f.data&&(f.data=f.data.call(this.$element,b));this.ajaxOptions.delay&&null!=b.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(c,this.ajaxOptions.delay)):c()},c}),g.define("select2/data/tags",["jquery"],function(e){function f(d,c,b){var a=b.get("tags"),k=b.get("createTag");void 0!==k&&(this.createTag=k);k=b.get("insertTag");if(void 0!==k&&(this.insertTag=k),d.call(this,c,b),e.isArray(a))for(d=
0;d<a.length;d++)c=this._normalizeItem(a[d]),c=this.option(c),this.$element.append(c)}return f.prototype.query=function(d,c,b){function a(d,f){for(var l=d.results,p=0;p<l.length;p++){var g=l[p],r=null!=g.children&&!a({results:g.children},!0);if(g.text===c.term||r)return f?!1:(d.data=l,void b(d))}if(f)return!0;p=e.createTag(c);null!=p&&(g=e.option(p),g.attr("data-select2-tag",!0),e.addOptions([g]),e.insertTag(l,p));d.results=l;b(d)}var e=this;return this._removeOldTags(),null==c.term||null!=c.page?
void d.call(this,c,b):void d.call(this,c,a)},f.prototype.createTag=function(d,c){var b=e.trim(c.term);return""===b?null:{id:b,text:b}},f.prototype.insertTag=function(d,c,b){c.unshift(b)},f.prototype._removeOldTags=function(d){(this._lastTag,this.$element.find("option[data-select2-tag]")).each(function(){this.selected||e(this).remove()})},f}),g.define("select2/data/tokenizer",["jquery"],function(e){function f(d,c,b){var a=b.get("tokenizer");void 0!==a&&(this.tokenizer=a);d.call(this,c,b)}return f.prototype.bind=
function(d,c,b){d.call(this,c,b);this.$search=c.dropdown.$search||c.selection.$search||b.find(".select2-search__field")},f.prototype.query=function(d,c,b){var a=this;c.term=c.term||"";var k=this.tokenizer(c,this.options,function(b){var c=a._normalizeItem(b);a.$element.find("option").filter(function(){return e(this).val()===c.id}).length||(b=a.option(c),b.attr("data-select2-tag",!0),a._removeOldTags(),a.addOptions([b]));a.trigger("select",{data:c})});k.term!==c.term&&(this.$search.length&&(this.$search.val(k.term),
this.$search.focus()),c.term=k.term);d.call(this,c,b)},f.prototype.tokenizer=function(d,c,b,a){d=b.get("tokenSeparators")||[];b=c.term;for(var k=0,f=this.createTag||function(a){return{id:a.term,text:a.term}};k<b.length;)if(-1!==e.inArray(b[k],d)){var g=b.substr(0,k),g=e.extend({},c,{term:g}),g=f(g);null!=g?(a(g),b=b.substr(k+1)||"",k=0):k++}else k++;return{term:b}},f}),g.define("select2/data/minimumInputLength",[],function(){function e(e,d,c){this.minimumInputLength=c.get("minimumInputLength");e.call(this,
d,c)}return e.prototype.query=function(e,d,c){return d.term=d.term||"",d.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:d.term,params:d}}):void e.call(this,d,c)},e}),g.define("select2/data/maximumInputLength",[],function(){function e(e,d,c){this.maximumInputLength=c.get("maximumInputLength");e.call(this,d,c)}return e.prototype.query=function(e,d,c){return d.term=d.term||"",0<this.maximumInputLength&&d.term.length>
this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:d.term,params:d}}):void e.call(this,d,c)},e}),g.define("select2/data/maximumSelectionLength",[],function(){function e(e,d,c){this.maximumSelectionLength=c.get("maximumSelectionLength");e.call(this,d,c)}return e.prototype.query=function(e,d,c){var b=this;this.current(function(a){a=null!=a?a.length:0;return 0<b.maximumSelectionLength&&a>=b.maximumSelectionLength?void b.trigger("results:message",
{message:"maximumSelected",args:{maximum:b.maximumSelectionLength}}):void e.call(b,d,c)})},e}),g.define("select2/dropdown",["jquery","./utils"],function(e,f){function d(c,b){this.$element=c;this.options=b;d.__super__.constructor.call(this)}return f.Extend(d,f.Observable),d.prototype.render=function(){var c=e('\x3cspan class\x3d"select2-dropdown"\x3e\x3cspan class\x3d"select2-results"\x3e\x3c/span\x3e\x3c/span\x3e');return c.attr("dir",this.options.get("dir")),this.$dropdown=c,c},d.prototype.bind=
function(){},d.prototype.position=function(c,b){},d.prototype.destroy=function(){this.$dropdown.remove()},d}),g.define("select2/dropdown/search",["jquery","../utils"],function(e,f){function d(){}return d.prototype.render=function(c){c=c.call(this);var b=e('\x3cspan class\x3d"select2-search select2-search--dropdown"\x3e\x3cinput class\x3d"select2-search__field" type\x3d"search" tabindex\x3d"-1" autocomplete\x3d"off" autocorrect\x3d"off" autocapitalize\x3d"off" spellcheck\x3d"false" role\x3d"textbox" /\x3e\x3c/span\x3e');
return this.$searchContainer=b,this.$search=b.find("input"),c.prepend(b),c},d.prototype.bind=function(c,b,a){var d=this;c.call(this,b,a);this.$search.on("keydown",function(a){d.trigger("keypress",a);d._keyUpPrevented=a.isDefaultPrevented()});this.$search.on("input",function(a){e(this).off("keyup")});this.$search.on("keyup input",function(a){d.handleSearch(a)});b.on("open",function(){d.$search.attr("tabindex",0);d.$search.focus();window.setTimeout(function(){d.$search.focus()},0)});b.on("close",function(){d.$search.attr("tabindex",
-1);d.$search.val("")});b.on("focus",function(){b.isOpen()&&d.$search.focus()});b.on("results:all",function(a){if(null==a.query.term||""===a.query.term)d.showSearch(a)?d.$searchContainer.removeClass("select2-search--hide"):d.$searchContainer.addClass("select2-search--hide")})},d.prototype.handleSearch=function(c){this._keyUpPrevented||(c=this.$search.val(),this.trigger("query",{term:c}));this._keyUpPrevented=!1},d.prototype.showSearch=function(c,b){return!0},d}),g.define("select2/dropdown/hidePlaceholder",
[],function(){function e(e,d,c,b){this.placeholder=this.normalizePlaceholder(c.get("placeholder"));e.call(this,d,c,b)}return e.prototype.append=function(e,d){d.results=this.removePlaceholder(d.results);e.call(this,d)},e.prototype.normalizePlaceholder=function(e,d){return"string"==typeof d&&(d={id:"",text:d}),d},e.prototype.removePlaceholder=function(e,d){for(var c=d.slice(0),b=d.length-1;0<=b;b--)this.placeholder.id===d[b].id&&c.splice(b,1);return c},e}),g.define("select2/dropdown/infiniteScroll",
["jquery"],function(e){function f(d,c,b,a){this.lastParams={};d.call(this,c,b,a);this.$loadingMore=this.createLoadingMore();this.loading=!1}return f.prototype.append=function(d,c){this.$loadingMore.remove();this.loading=!1;d.call(this,c);this.showLoadingMore(c)&&this.$results.append(this.$loadingMore)},f.prototype.bind=function(d,c,b){var a=this;d.call(this,c,b);c.on("query",function(b){a.lastParams=b;a.loading=!0});c.on("query:append",function(b){a.lastParams=b;a.loading=!0});this.$results.on("scroll",
function(){var b=e.contains(document.documentElement,a.$loadingMore[0]);if(!a.loading&&b){var b=a.$results.offset().top+a.$results.outerHeight(!1),c=a.$loadingMore.offset().top+a.$loadingMore.outerHeight(!1);b+50>=c&&a.loadMore()}})},f.prototype.loadMore=function(){this.loading=!0;var d=e.extend({},{page:1},this.lastParams);d.page++;this.trigger("query:append",d)},f.prototype.showLoadingMore=function(d,c){return c.pagination&&c.pagination.more},f.prototype.createLoadingMore=function(){var d=e('\x3cli class\x3d"select2-results__option select2-results__option--load-more"role\x3d"treeitem" aria-disabled\x3d"true"\x3e\x3c/li\x3e'),
c=this.options.get("translations").get("loadingMore");return d.html(c(this.lastParams)),d},f}),g.define("select2/dropdown/attachBody",["jquery","../utils"],function(e,f){function d(c,b,a){this.$dropdownParent=a.get("dropdownParent")||e(document.body);c.call(this,b,a)}return d.prototype.bind=function(c,b,a){var d=this,e=!1;c.call(this,b,a);b.on("open",function(){d._showDropdown();d._attachPositioningHandler(b);e||(e=!0,b.on("results:all",function(){d._positionDropdown();d._resizeDropdown()}),b.on("results:append",
function(){d._positionDropdown();d._resizeDropdown()}))});b.on("close",function(){d._hideDropdown();d._detachPositioningHandler(b)});this.$dropdownContainer.on("mousedown",function(a){a.stopPropagation()})},d.prototype.destroy=function(c){c.call(this);this.$dropdownContainer.remove()},d.prototype.position=function(c,b,a){b.attr("class",a.attr("class"));b.removeClass("select2");b.addClass("select2-container--open");b.css({position:"absolute",top:-999999});this.$container=a},d.prototype.render=function(c){var b=
e("\x3cspan\x3e\x3c/span\x3e");c=c.call(this);return b.append(c),this.$dropdownContainer=b,b},d.prototype._hideDropdown=function(c){this.$dropdownContainer.detach()},d.prototype._attachPositioningHandler=function(c,b){var a=this,d="scroll.select2."+b.id,t="resize.select2."+b.id,g="orientationchange.select2."+b.id,l=this.$container.parents().filter(f.hasScroll);l.each(function(){e(this).data("select2-scroll-position",{x:e(this).scrollLeft(),y:e(this).scrollTop()})});l.on(d,function(a){a=e(this).data("select2-scroll-position");
e(this).scrollTop(a.y)});e(window).on(d+" "+t+" "+g,function(b){a._positionDropdown();a._resizeDropdown()})},d.prototype._detachPositioningHandler=function(c,b){var a="scroll.select2."+b.id,d="resize.select2."+b.id,t="orientationchange.select2."+b.id;this.$container.parents().filter(f.hasScroll).off(a);e(window).off(a+" "+d+" "+t)},d.prototype._positionDropdown=function(){var c=e(window),b=this.$dropdown.hasClass("select2-dropdown--above"),a=this.$dropdown.hasClass("select2-dropdown--below"),d=null,
f=this.$container.offset();f.bottom=f.top+this.$container.outerHeight(!1);var g=this.$container.outerHeight(!1),l,p;l=f.top;p=f.top+g;var g=this.$dropdown.outerHeight(!1),m=c.scrollTop(),r=c.scrollTop()+c.height(),c=m<f.top-g,m=r>f.bottom+g,f={left:f.left,top:p};p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());p=p.offset();f.top-=p.top;f.left-=p.left;b||a||(d="below");m||!c||b?!c&&m&&b&&(d="below"):d="above";("above"==d||b&&"below"!==d)&&(f.top=l-p.top-g);null!=d&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+
d),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+d));this.$dropdownContainer.css(f)},d.prototype._resizeDropdown=function(){var c={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(c.minWidth=c.width,c.position="relative",c.width="auto");this.$dropdown.css(c)},d.prototype._showDropdown=function(c){this.$dropdownContainer.appendTo(this.$dropdownParent);this._positionDropdown();this._resizeDropdown()},
d}),g.define("select2/dropdown/minimumResultsForSearch",[],function(){function e(d){for(var c=0,b=0;b<d.length;b++){var a=d[b];a.children?c+=e(a.children):c++}return c}function f(d,c,b,a){this.minimumResultsForSearch=b.get("minimumResultsForSearch");0>this.minimumResultsForSearch&&(this.minimumResultsForSearch=1/0);d.call(this,c,b,a)}return f.prototype.showSearch=function(d,c){return e(c.data.results)<this.minimumResultsForSearch?!1:d.call(this,c)},f}),g.define("select2/dropdown/selectOnClose",[],
function(){function e(){}return e.prototype.bind=function(e,d,c){var b=this;e.call(this,d,c);d.on("close",function(a){b._handleSelectOnClose(a)})},e.prototype._handleSelectOnClose=function(e,d){if(d&&null!=d.originalSelect2Event){var c=d.originalSelect2Event;if("select"===c._type||"unselect"===c._type)return}c=this.getHighlightedResults();1>c.length||(c=c.data("data"),null!=c.element&&c.element.selected||null==c.element&&c.selected||this.trigger("select",{data:c}))},e}),g.define("select2/dropdown/closeOnSelect",
[],function(){function e(){}return e.prototype.bind=function(e,d,c){var b=this;e.call(this,d,c);d.on("select",function(a){b._selectTriggered(a)});d.on("unselect",function(a){b._selectTriggered(a)})},e.prototype._selectTriggered=function(e,d){var c=d.originalEvent;c&&c.ctrlKey||this.trigger("close",{originalEvent:c,originalSelect2Event:d})},e}),g.define("select2/i18n/en",[],function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(e){e=e.input.length-
e.maximum;var f="Please delete "+e+" character";return 1!=e&&(f+="s"),f},inputTooShort:function(e){return"Please enter "+(e.minimum-e.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(e){var f="You can only select "+e.maximum+" item";return 1!=e.maximum&&(f+="s"),f},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}}),g.define("select2/defaults","jquery require ./results ./selection/single ./selection/multiple ./selection/placeholder ./selection/allowClear ./selection/search ./selection/eventRelay ./utils ./translation ./diacritics ./data/select ./data/array ./data/ajax ./data/tags ./data/tokenizer ./data/minimumInputLength ./data/maximumInputLength ./data/maximumSelectionLength ./dropdown ./dropdown/search ./dropdown/hidePlaceholder ./dropdown/infiniteScroll ./dropdown/attachBody ./dropdown/minimumResultsForSearch ./dropdown/selectOnClose ./dropdown/closeOnSelect ./i18n/en".split(" "),
function(e,f,d,c,b,a,k,g,n,l,p,m,r,y,x,q,w,v,N,u,E,D,z,H,J,K,L,M,I){function A(){this.reset()}A.prototype.apply=function(h){if(h=e.extend(!0,{},this.defaults,h),null==h.dataAdapter){if(null!=h.ajax?h.dataAdapter=x:null!=h.data?h.dataAdapter=y:h.dataAdapter=r,0<h.minimumInputLength&&(h.dataAdapter=l.Decorate(h.dataAdapter,v)),0<h.maximumInputLength&&(h.dataAdapter=l.Decorate(h.dataAdapter,N)),0<h.maximumSelectionLength&&(h.dataAdapter=l.Decorate(h.dataAdapter,u)),h.tags&&(h.dataAdapter=l.Decorate(h.dataAdapter,
q)),(null!=h.tokenSeparators||null!=h.tokenizer)&&(h.dataAdapter=l.Decorate(h.dataAdapter,w)),null!=h.query){var m=f(h.amdBase+"compat/query");h.dataAdapter=l.Decorate(h.dataAdapter,m)}null!=h.initSelection&&(m=f(h.amdBase+"compat/initSelection"),h.dataAdapter=l.Decorate(h.dataAdapter,m))}if(null==h.resultsAdapter&&(h.resultsAdapter=d,null!=h.ajax&&(h.resultsAdapter=l.Decorate(h.resultsAdapter,H)),null!=h.placeholder&&(h.resultsAdapter=l.Decorate(h.resultsAdapter,z)),h.selectOnClose&&(h.resultsAdapter=
l.Decorate(h.resultsAdapter,L))),null==h.dropdownAdapter){h.multiple?h.dropdownAdapter=E:(m=l.Decorate(E,D),h.dropdownAdapter=m);if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=l.Decorate(h.dropdownAdapter,K)),h.closeOnSelect&&(h.dropdownAdapter=l.Decorate(h.dropdownAdapter,M)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass)m=f(h.amdBase+"compat/dropdownCss"),h.dropdownAdapter=l.Decorate(h.dropdownAdapter,m);h.dropdownAdapter=l.Decorate(h.dropdownAdapter,J)}if(null==
h.selectionAdapter){if(h.multiple?h.selectionAdapter=b:h.selectionAdapter=c,null!=h.placeholder&&(h.selectionAdapter=l.Decorate(h.selectionAdapter,a)),h.allowClear&&(h.selectionAdapter=l.Decorate(h.selectionAdapter,k)),h.multiple&&(h.selectionAdapter=l.Decorate(h.selectionAdapter,g)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass)m=f(h.amdBase+"compat/containerCss"),h.selectionAdapter=l.Decorate(h.selectionAdapter,m);h.selectionAdapter=l.Decorate(h.selectionAdapter,
n)}"string"==typeof h.language&&(0<h.language.indexOf("-")?(m=h.language.split("-")[0],h.language=[h.language,m]):h.language=[h.language]);if(e.isArray(h.language)){m=new p;h.language.push("en");for(var B=h.language,F=0;F<B.length;F++){var C=B[F],G={};try{G=p.loadPath(C)}catch(A){try{C=this.defaults.amdLanguageBase+C,G=p.loadPath(C)}catch(I){h.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+C+'" could not be automatically loaded. A fallback will be used instead.');
continue}}m.extend(G)}h.translations=m}else m=p.loadPath(this.defaults.amdLanguageBase+"en"),B=new p(h.language),B.extend(m),h.translations=B;return h};A.prototype.reset=function(){function a(b){return b.replace(/[^\u0000-\u007E]/g,function(a){return m[a]||a})}function b(c,d){if(""===e.trim(c.term))return d;if(d.children&&0<d.children.length){for(var f=e.extend(!0,{},d),k=d.children.length-1;0<=k;k--)null==b(c,d.children[k])&&f.children.splice(k,1);return 0<f.children.length?f:b(c,f)}f=a(d.text).toUpperCase();
k=a(c.term).toUpperCase();return-1<f.indexOf(k)?d:null}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:l.escapeMarkup,language:I,matcher:b,minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(a){return a},templateResult:function(a){return a.text},templateSelection:function(a){return a.text},theme:"default",width:"resolve"}};A.prototype.set=function(a,b){var c=
e.camelCase(a),d={};d[c]=b;c=l._convertData(d);e.extend(this.defaults,c)};return new A}),g.define("select2/options",["require","jquery","./defaults","./utils"],function(e,f,d,c){function b(a,b){if(this.options=a,null!=b&&this.fromElement(b),this.options=d.apply(this.options),b&&b.is("input")){var f=e(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=c.Decorate(this.options.dataAdapter,f)}}return b.prototype.fromElement=function(a){var b=["select2"];null==this.options.multiple&&(this.options.multiple=
a.prop("multiple"));null==this.options.disabled&&(this.options.disabled=a.prop("disabled"));null==this.options.language&&(a.prop("lang")?this.options.language=a.prop("lang").toLowerCase():a.closest("[lang]").prop("lang")&&(this.options.language=a.closest("[lang]").prop("lang")));null==this.options.dir&&(a.prop("dir")?this.options.dir=a.prop("dir"):a.closest("[dir]").prop("dir")?this.options.dir=a.closest("[dir]").prop("dir"):this.options.dir="ltr");a.prop("disabled",this.options.disabled);a.prop("multiple",
this.options.multiple);a.data("select2Tags")&&(this.options.debug&&window.console&&console.warn&&console.warn('Select2: The `data-select2-tags` attribute has been changed to use the `data-data` and `data-tags\x3d"true"` attributes and will be removed in future versions of Select2.'),a.data("data",a.data("select2Tags")),a.data("tags",!0));a.data("ajaxUrl")&&(this.options.debug&&window.console&&console.warn&&console.warn("Select2: The `data-ajax-url` attribute has been changed to `data-ajax--url` and support for the old attribute will be removed in future versions of Select2."),
a.attr("ajax--url",a.data("ajaxUrl")),a.data("ajax--url",a.data("ajaxUrl")));var d={},d=f.fn.jquery&&"1."==f.fn.jquery.substr(0,2)&&a[0].dataset?f.extend(!0,{},a[0].dataset,a.data()):a.data();a=f.extend(!0,{},d);a=c._convertData(a);for(var e in a)-1<f.inArray(e,b)||(f.isPlainObject(this.options[e])?f.extend(this.options[e],a[e]):this.options[e]=a[e]);return this},b.prototype.get=function(a){return this.options[a]},b.prototype.set=function(a,b){this.options[a]=b},b}),g.define("select2/core",["jquery",
"./options","./utils","./keys"],function(e,f,d,c){var b=function(a,c){null!=a.data("select2")&&a.data("select2").destroy();this.$element=a;this.id=this._generateId(a);c=c||{};this.options=new f(c,a);b.__super__.constructor.call(this);var d=a.attr("tabindex")||0;a.data("old-tabindex",d);a.attr("tabindex","-1");this.dataAdapter=new (this.options.get("dataAdapter"))(a,this.options);d=this.render();this._placeContainer(d);this.selection=new (this.options.get("selectionAdapter"))(a,this.options);this.$selection=
this.selection.render();this.selection.position(this.$selection,d);this.dropdown=new (this.options.get("dropdownAdapter"))(a,this.options);this.$dropdown=this.dropdown.render();this.dropdown.position(this.$dropdown,d);this.results=new (this.options.get("resultsAdapter"))(a,this.options,this.dataAdapter);this.$results=this.results.render();this.results.position(this.$results,this.$dropdown);var e=this;this._bindAdapters();this._registerDomEvents();this._registerDataEvents();this._registerSelectionEvents();
this._registerDropdownEvents();this._registerResultsEvents();this._registerEvents();this.dataAdapter.current(function(a){e.trigger("selection:update",{data:a})});a.addClass("select2-hidden-accessible");a.attr("aria-hidden","true");this._syncAttributes();a.data("select2",this)};return d.Extend(b,d.Observable),b.prototype._generateId=function(a){var b="";return b=null!=a.attr("id")?a.attr("id"):null!=a.attr("name")?a.attr("name")+"-"+d.generateChars(2):d.generateChars(4),b=b.replace(/(:|\.|\[|\]|,)/g,
""),"select2-"+b},b.prototype._placeContainer=function(a){a.insertAfter(this.$element);var b=this._resolveWidth(this.$element,this.options.get("width"));null!=b&&a.css("width",b)},b.prototype._resolveWidth=function(a,b){var c=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==b)return c=this._resolveWidth(a,"style"),null!=c?c:this._resolveWidth(a,"element");if("element"==b)return c=a.outerWidth(!1),0>=c?"auto":c+"px";if("style"==b){var d=a.attr("style");if("string"!=typeof d)return null;
for(var d=d.split(";"),e=0,f=d.length;f>e;e+=1){var g=d[e].replace(/\s/g,"").match(c);if(null!==g&&1<=g.length)return g[1]}return null}return b},b.prototype._bindAdapters=function(){this.dataAdapter.bind(this,this.$container);this.selection.bind(this,this.$container);this.dropdown.bind(this,this.$container);this.results.bind(this,this.$container)},b.prototype._registerDomEvents=function(){var a=this;this.$element.on("change.select2",function(){a.dataAdapter.current(function(b){a.trigger("selection:update",
{data:b})})});this.$element.on("focus.select2",function(b){a.trigger("focus",b)});this._syncA=d.bind(this._syncAttributes,this);this._syncS=d.bind(this._syncSubtree,this);this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var b=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=b?(this._observer=new b(function(b){e.each(b,a._syncA);e.each(b,a._syncS)}),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,
subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",a._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",a._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",a._syncS,!1))},b.prototype._registerDataEvents=function(){var a=this;this.dataAdapter.on("*",function(b,c){a.trigger(b,c)})},b.prototype._registerSelectionEvents=function(){var a=this,b=["toggle","focus"];this.selection.on("toggle",function(){a.toggleDropdown()});this.selection.on("focus",
function(b){a.focus(b)});this.selection.on("*",function(c,d){-1===e.inArray(c,b)&&a.trigger(c,d)})},b.prototype._registerDropdownEvents=function(){var a=this;this.dropdown.on("*",function(b,c){a.trigger(b,c)})},b.prototype._registerResultsEvents=function(){var a=this;this.results.on("*",function(b,c){a.trigger(b,c)})},b.prototype._registerEvents=function(){var a=this;this.on("open",function(){a.$container.addClass("select2-container--open")});this.on("close",function(){a.$container.removeClass("select2-container--open")});
this.on("enable",function(){a.$container.removeClass("select2-container--disabled")});this.on("disable",function(){a.$container.addClass("select2-container--disabled")});this.on("blur",function(){a.$container.removeClass("select2-container--focus")});this.on("query",function(b){a.isOpen()||a.trigger("open",{});this.dataAdapter.query(b,function(c){a.trigger("results:all",{data:c,query:b})})});this.on("query:append",function(b){this.dataAdapter.query(b,function(c){a.trigger("results:append",{data:c,
query:b})})});this.on("keypress",function(b){var d=b.which;a.isOpen()?d===c.ESC||d===c.TAB||d===c.UP&&b.altKey?(a.close(),b.preventDefault()):d===c.ENTER?(a.trigger("results:select",{}),b.preventDefault()):d===c.SPACE&&b.ctrlKey?(a.trigger("results:toggle",{}),b.preventDefault()):d===c.UP?(a.trigger("results:previous",{}),b.preventDefault()):d===c.DOWN&&(a.trigger("results:next",{}),b.preventDefault()):(d===c.ENTER||d===c.SPACE||d===c.DOWN&&b.altKey)&&(a.open(),b.preventDefault())})},b.prototype._syncAttributes=
function(){this.options.set("disabled",this.$element.prop("disabled"));this.options.get("disabled")?(this.isOpen()&&this.close(),this.trigger("disable",{})):this.trigger("enable",{})},b.prototype._syncSubtree=function(a,b){var c=!1,d=this;if(!a||!a.target||"OPTION"===a.target.nodeName||"OPTGROUP"===a.target.nodeName){if(b)if(b.addedNodes&&0<b.addedNodes.length)for(var e=0;e<b.addedNodes.length;e++)b.addedNodes[e].selected&&(c=!0);else b.removedNodes&&0<b.removedNodes.length&&(c=!0);else c=!0;c&&this.dataAdapter.current(function(a){d.trigger("selection:update",
{data:a})})}},b.prototype.trigger=function(a,c){var d=b.__super__.trigger,e={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===c&&(c={}),a in e){var f={prevented:!1,name:a,args:c};if(d.call(this,e[a],f),f.prevented)return void(c.prevented=!0)}d.call(this,a,c)},b.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},b.prototype.open=function(){this.isOpen()||this.trigger("query",{})},b.prototype.close=function(){this.isOpen()&&
this.trigger("close",{})},b.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},b.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},b.prototype.focus=function(a){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},b.prototype.enable=function(a){this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("enable")` method has been deprecated and will be removed in later Select2 versions. Use $element.prop("disabled") instead.');
null!=a&&0!==a.length||(a=[!0]);this.$element.prop("disabled",!a[0])},b.prototype.data=function(){this.options.get("debug")&&0<arguments.length&&window.console&&console.warn&&console.warn('Select2: Data can no longer be set using `select2("data")`. You should consider setting the value instead using `$element.val()`.');var a=[];return this.dataAdapter.current(function(b){a=b}),a},b.prototype.val=function(a){if(this.options.get("debug")&&window.console&&console.warn&&console.warn('Select2: The `select2("val")` method has been deprecated and will be removed in later Select2 versions. Use $element.val() instead.'),
null==a||0===a.length)return this.$element.val();a=a[0];e.isArray(a)&&(a=e.map(a,function(a){return a.toString()}));this.$element.val(a).trigger("change")},b.prototype.destroy=function(){this.$container.remove();this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA);null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",
this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1));this._syncS=this._syncA=null;this.$element.off(".select2");this.$element.attr("tabindex",this.$element.data("old-tabindex"));this.$element.removeClass("select2-hidden-accessible");this.$element.attr("aria-hidden","false");this.$element.removeData("select2");this.dataAdapter.destroy();this.selection.destroy();this.dropdown.destroy();this.results.destroy();this.results=this.dropdown=this.selection=this.dataAdapter=
null},b.prototype.render=function(){var a=e('\x3cspan class\x3d"select2 select2-container"\x3e\x3cspan class\x3d"selection"\x3e\x3c/span\x3e\x3cspan class\x3d"dropdown-wrapper" aria-hidden\x3d"true"\x3e\x3c/span\x3e\x3c/span\x3e');return a.attr("dir",this.options.get("dir")),this.$container=a,this.$container.addClass("select2-container--"+this.options.get("theme")),a.data("element",this.$element),a},b}),g.define("select2/compat/utils",["jquery"],function(e){return{syncCssClasses:function(f,d,c){var b,
a,k=[];(b=e.trim(f.attr("class")))&&(b=""+b,e(b.split(/\s+/)).each(function(){0===this.indexOf("select2-")&&k.push(this)}));(b=e.trim(d.attr("class")))&&(b=""+b,e(b.split(/\s+/)).each(function(){0!==this.indexOf("select2-")&&(a=c(this),null!=a&&k.push(a))}));f.attr("class",k.join(" "))}}}),g.define("select2/compat/containerCss",["jquery","./utils"],function(e,f){function d(b){return null}function c(){}return c.prototype.render=function(b){b=b.call(this);var a=this.options.get("containerCssClass")||
"";e.isFunction(a)&&(a=a(this.$element));var c=this.options.get("adaptContainerCssClass");if(c=c||d,-1!==a.indexOf(":all:"))var a=a.replace(":all:",""),g=c,c=function(a){var b=g(a);return null!=b?b+" "+a:a};var n=this.options.get("containerCss")||{};return e.isFunction(n)&&(n=n(this.$element)),f.syncCssClasses(b,this.$element,c),b.css(n),b.addClass(a),b},c}),g.define("select2/compat/dropdownCss",["jquery","./utils"],function(e,f){function d(b){return null}function c(){}return c.prototype.render=function(b){b=
b.call(this);var a=this.options.get("dropdownCssClass")||"";e.isFunction(a)&&(a=a(this.$element));var c=this.options.get("adaptDropdownCssClass");if(c=c||d,-1!==a.indexOf(":all:"))var a=a.replace(":all:",""),g=c,c=function(a){var b=g(a);return null!=b?b+" "+a:a};var n=this.options.get("dropdownCss")||{};return e.isFunction(n)&&(n=n(this.$element)),f.syncCssClasses(b,this.$element,c),b.css(n),b.addClass(a),b},c}),g.define("select2/compat/initSelection",["jquery"],function(e){function f(d,c,b){b.get("debug")&&
window.console&&console.warn&&console.warn("Select2: The `initSelection` option has been deprecated in favor of a custom data adapter that overrides the `current` method. This method is now called multiple times instead of a single time when the instance is initialized. Support will be removed for the `initSelection` option in future versions of Select2");this.initSelection=b.get("initSelection");this._isInitialized=!1;d.call(this,c,b)}return f.prototype.current=function(d,c){var b=this;return this._isInitialized?
void d.call(this,c):void this.initSelection.call(null,this.$element,function(a){b._isInitialized=!0;e.isArray(a)||(a=[a]);c(a)})},f}),g.define("select2/compat/inputData",["jquery"],function(e){function f(d,c,b){this._currentData=[];this._valueSeparator=b.get("valueSeparator")||",";"hidden"===c.prop("type")&&b.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 `\x3cselect\x3e` element instead.");
d.call(this,c,b)}return f.prototype.current=function(d,c){function b(a,c){var d=[];return a.selected||-1!==e.inArray(a.id,c)?(a.selected=!0,d.push(a)):a.selected=!1,a.children&&d.push.apply(d,b(a.children,c)),d}for(var a=[],f=0;f<this._currentData.length;f++)a.push.apply(a,b(this._currentData[f],this.$element.val().split(this._valueSeparator)));c(a)},f.prototype.select=function(d,c){if(this.options.get("multiple")){var b=this.$element.val(),b=b+(this._valueSeparator+c.id);this.$element.val(b)}else this.current(function(a){e.map(a,
function(a){a.selected=!1})}),this.$element.val(c.id);this.$element.trigger("change")},f.prototype.unselect=function(d,c){var b=this;c.selected=!1;this.current(function(a){for(var d=[],e=0;e<a.length;e++){var f=a[e];c.id!=f.id&&d.push(f.id)}b.$element.val(d.join(b._valueSeparator));b.$element.trigger("change")})},f.prototype.query=function(d,c,b){d=[];for(var a=0;a<this._currentData.length;a++){var e=this.matches(c,this._currentData[a]);null!==e&&d.push(e)}b({results:d})},f.prototype.addOptions=function(d,
c){var b=e.map(c,function(a){return e.data(a[0],"data")});this._currentData.push.apply(this._currentData,b)},f}),g.define("select2/compat/matcher",["jquery"],function(e){return function(f){return function(d,c){var b=e.extend(!0,{},c);if(null==d.term||""===e.trim(d.term))return b;if(c.children){for(var a=c.children.length-1;0<=a;a--){var g=c.children[a];f(d.term,g.text,g)||b.children.splice(a,1)}if(0<b.children.length)return b}return f(d.term,c.text,c)?b:null}}}),g.define("select2/compat/query",[],
function(){function e(e,d,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.");e.call(this,d,c)}return e.prototype.query=function(e,d,c){d.callback=c;this.options.get("query").call(null,d)},e}),g.define("select2/dropdown/attachContainer",[],function(){function e(e,d,c){e.call(this,d,c)}return e.prototype.position=
function(e,d,c){c.find(".dropdown-wrapper").append(d);d.addClass("select2-dropdown--below");c.addClass("select2-container--below")},e}),g.define("select2/dropdown/stopPropagation",[],function(){function e(){}return e.prototype.bind=function(e,d,c){e.call(this,d,c);this.$dropdown.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(b){b.stopPropagation()})},e}),g.define("select2/selection/stopPropagation",
[],function(){function e(){}return e.prototype.bind=function(e,d,c){e.call(this,d,c);this.$selection.on("blur change click dblclick focus focusin focusout input keydown keyup keypress mousedown mouseenter mouseleave mousemove mouseover mouseup search touchend touchstart",function(b){b.stopPropagation()})},e}),function(e){"function"==typeof g.define&&g.define.amd?g.define("jquery-mousewheel",["jquery"],e):"object"==typeof exports?module.exports=e:e(r)}(function(e){function f(a){var f=a||window.event,
g=t.call(arguments,1),k=0,n=0,q=0,r=0,v=0,z=0;if(a=e.event.fix(f),a.type="mousewheel","detail"in f&&(q=-1*f.detail),"wheelDelta"in f&&(q=f.wheelDelta),"wheelDeltaY"in f&&(q=f.wheelDeltaY),"wheelDeltaX"in f&&(n=-1*f.wheelDeltaX),"axis"in f&&f.axis===f.HORIZONTAL_AXIS&&(n=-1*q,q=0),k=0===q?n:q,"deltaY"in f&&(q=-1*f.deltaY,k=q),"deltaX"in f&&(n=f.deltaX,0===q&&(k=-1*n)),0!==q||0!==n){if(1===f.deltaMode)var u=e.data(this,"mousewheel-line-height"),k=k*u,q=q*u,n=n*u;else 2===f.deltaMode&&(u=e.data(this,
"mousewheel-page-height"),k*=u,q*=u,n*=u);if(r=Math.max(Math.abs(q),Math.abs(n)),(!b||b>r)&&(b=r,l.settings.adjustOldDeltas&&"mousewheel"===f.type&&0===r%120&&(b/=40)),l.settings.adjustOldDeltas&&"mousewheel"===f.type&&0===r%120&&(k/=40,n/=40,q/=40),k=Math[1<=k?"floor":"ceil"](k/b),n=Math[1<=n?"floor":"ceil"](n/b),q=Math[1<=q?"floor":"ceil"](q/b),l.settings.normalizeOffset&&this.getBoundingClientRect)f=this.getBoundingClientRect(),v=a.clientX-f.left,z=a.clientY-f.top;return a.deltaX=n,a.deltaY=q,
a.deltaFactor=b,a.offsetX=v,a.offsetY=z,a.deltaMode=0,g.unshift(a,k,n,q),c&&clearTimeout(c),c=setTimeout(d,200),(e.event.dispatch||e.event.handle).apply(this,g)}}function d(){b=null}var c,b,a=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],g="onwheel"in document||9<=document.documentMode?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],t=Array.prototype.slice;if(e.event.fixHooks)for(var n=a.length;n;)e.event.fixHooks[a[--n]]=e.event.mouseHooks;var l=e.event.special.mousewheel=
{version:"3.1.12",setup:function(){if(this.addEventListener)for(var a=g.length;a;)this.addEventListener(g[--a],f,!1);else this.onmousewheel=f;e.data(this,"mousewheel-line-height",l.getLineHeight(this));e.data(this,"mousewheel-page-height",l.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var a=g.length;a;)this.removeEventListener(g[--a],f,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height");e.removeData(this,"mousewheel-page-height")},getLineHeight:function(a){a=
e(a);var b=a["offsetParent"in e.fn?"offsetParent":"parent"]();return b.length||(b=e("body")),parseInt(b.css("fontSize"),10)||parseInt(a.css("fontSize"),10)||16},getPageHeight:function(a){return e(a).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})}),g.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],
function(e,f,d,c){if(null==e.fn.select2){var b=["open","close","destroy"];e.fn.select2=function(a){if(a=a||{},"object"==typeof a)return this.each(function(){var b=e.extend(!0,{},a);new d(e(this),b)}),this;if("string"==typeof a){var c,f=Array.prototype.slice.call(arguments,1);return this.each(function(){var b=e(this).data("select2");null==b&&window.console&&console.error&&console.error("The select2('"+a+"') method was called on an element that is not using Select2.");c=b[a].apply(b,f)}),-1<e.inArray(a,
b)?this:c}throw Error("Invalid arguments for Select2: "+a);}}return null==e.fn.select2.defaults&&(e.fn.select2.defaults=c),d}),{define:g.define,require:g.require}}(),H=z.require("jquery.select2");return r.fn.select2.amd=z,H});

AnonSec - 2021 | Recode By D7net