芝麻web文件管理V1.00
编辑当前文件:/var/www/cognitio.in/wp-content/plugins/popup-maker/assets/js/admin-general.min.js
function pumSelected(e,t,n){"use strict";var i=!1;return("object"==typeof e&&"string"==typeof t&&-1!==jQuery.inArray(t,e)||"object"==typeof t&&"string"==typeof e&&-1!==jQuery.inArray(e,t)||e===t)&&(i=!0),void 0!==n&&n?i?' selected="selected"':"":i}function pumChecked(e,t,n){"use strict";var i=!1;return("object"==typeof e&&"string"==typeof t&&-1!==jQuery.inArray(t,e)||"object"==typeof t&&"string"==typeof e&&-1!==jQuery.inArray(e,t)||e===t)&&(i=!0),void 0!==n&&n?i?' checked="checked"':"":i}!function(i){i(function(){i(".pum-enabled-toggle-button").on("change",function(e){e.preventDefault();var t=i(this),n=0;!0===e.target.checked&&(n=1),e=t.data("popup-id"),n=n,t=t.data("nonce"),i.ajax({type:"POST",dataType:"json",url:ajaxurl,data:{action:"pum_save_enabled_state",nonce:t,popupID:e,enabled:n}})})})}(jQuery),function(o){"use strict";var e=o(".pum-alerts"),a=o(".pum-alert-count"),l=parseInt(a.eq(0).text());function u(){0===e.find(".pum-alert-holder").length&&(e.slideUp(100,function(){e.remove()}),o("#menu-posts-popup .wp-menu-name .update-plugins").fadeOut())}o(document).on("pumDismissAlert",u).on("click",".pum-alert-holder .pum-dismiss",function(e){var t,n=o(this),i=n.parents(".pum-alert-holder"),r=n.data("reason")||"maybe_later",s=o(this).data("action")||"dismiss";e.preventDefault(),"review_request"!==i.data("code")?(n=s,s="1"===(s=(e=i).data("dismissible"))||1===s||!0===s?null:s,o.ajax({method:"POST",dataType:"json",url:ajaxurl,data:{action:"pum_alerts_action",nonce:window.pum_alerts_nonce,code:e.data("code"),expires:s,pum_dismiss_alert:n}})):(r=r,o.ajax({method:"POST",dataType:"json",url:ajaxurl,data:{action:"pum_review_action",nonce:window.pum_review_nonce,group:window.pum_review_trigger.group,code:window.pum_review_trigger.code,pri:window.pum_review_trigger.pri,reason:r}}),void 0!==window.pum_review_api_url&&o.ajax({method:"POST",dataType:"json",url:window.pum_review_api_url,data:{trigger_group:window.pum_review_trigger.group,trigger_code:window.pum_review_trigger.code,reason:r,uuid:window.pum_review_uuid||null}})),t=i,l--,a.text(l),t.fadeTo(100,0,function(){t.slideUp(100,function(){t.remove(),u()})})})}(jQuery),function(i){"use strict";var e={init:function(){i(".pum-color-picker").filter(":not(.pum-color-picker-initialized)").addClass("pum-color-picker-initialized").wpColorPicker({change:function(e,t){i(e.target).trigger("colorchange",t)},clear:function(e){i(e.target).prev().trigger("colorchange").wpColorPicker("close")},hide:!0})}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.colorpicker=e,i(document).on("click",".iris-palette",function(){i(this).parents(".wp-picker-active").find("input.pum-color-picker").trigger("change")}).on("colorchange",function(e,t){var n=i(e.target),e="";void 0!==t&&void 0!==t.color&&(e=t.color.toString()),n.val(e).trigger("change"),"popup_theme"===i("form#post input#post_type").val()&&PUM_Admin.utils.debounce(PUM_Admin.themeEditor.refresh_preview,100)}).on("pum_init",e.init)}(jQuery),function(d){"use strict";var u={init:function(){u.checkDependencies()},checkDependencies:function(e){var t=d(e);(e=t.length?t:d("[data-pum-dependencies]:not([data-pum-processed-dependencies])")).each(function(){var e,a=d(this),l=a.data("id"),u=a.data("pum-processed-dependencies")||{},c=Object.keys(u).length,p=0,t=a.data("pum-dependent-fields");if(!a.data("pum-processed-dependencies")){for(e in u="string"==typeof(u=a.data("pum-dependencies"))?JSON.parse(u):u)u.hasOwnProperty(e)&&("string"==typeof u[e]?-1!==u[e].indexOf(",")?u[e]=u[e].split(","):u[e]=[u[e]]:"number"==typeof u[e]&&(u[e]=[u[e]]));c=Object.keys(u).length,a.data("pum-processed-dependencies",u).attr("data-pum-processed-dependencies",u)}t||(t=d.map(u,function(e,t){t=d('.pum-field[data-id="'+t+'"]');return t.length?t.eq(0):null}),a.data("pum-dependent-fields",t)),d(t).each(function(){var e=d(this),t=e.find(":input:first"),n=e.data("id"),i=t.val(),r=u[n],n=e.data("pum-field-dependents")||[];if(-1===n.indexOf(l)&&(n.push(l),e.data("pum-field-dependents",n)),null==r)return a.removeClass("pum-dependencies-met").hide(0).trigger("pumFormDependencyUnmet"),!1;if(e.hasClass("pum-field-radio")&&(i=e.find(":input:checked").val()),e.hasClass("pum-field-multicheck")&&(i=[],e.find(":checkbox:checked").each(function(e){i[e]=d(this).val(),"string"!=typeof i[e]||isNaN(parseInt(i[e]))||(i[e]=parseInt(i[e]))})),e.hasClass("pum-field-select")||e.hasClass("pum-field-radio"))s=r&&-1!==r.indexOf(i);else if(e.hasClass("pum-field-checkbox"))s=r===t.is(":checked");else if(e.hasClass("pum-field-multicheck"))if(Array.isArray(r))for(var s=!1,o=0;o
'),plus:a('
+
'),minus:a('
-
')},init:function(){a(".pum-field-rangeslider:not(.pum-rangeslider-initialized)").each(function(){var e=a(this).addClass("pum-rangeslider-initialized").find("input.pum-range-manual"),t=s.cloneables.slider.clone(),n=s.cloneables.plus.clone(),i=s.cloneables.minus.clone(),r={force:e.data("force-minmax"),min:parseInt(e.attr("min"),10)||0,max:parseInt(e.attr("max"),10)||100,step:parseInt(e.attr("step"),10)||1,value:parseInt(e.attr("value"),10)||0};r.force&&r.value>r.max&&(r.value=r.max,e.val(r.value)),t.prop({min:r.min||0,max:r.force||r.max&&r.max>r.value?r.max:1.5*r.value,step:r.step||1.5*r.value/100,value:r.value}).on("change input",function(){e.trigger("input")}),e.next().after(i,n),e.before(t)})}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.rangesliders=s,a(document).on("pum_init",PUM_Admin.rangesliders.init).on("input",".pum-field-rangeslider.pum-rangeslider-initialized .pum-range-slider",function(){var e=a(this);e.siblings(".pum-range-manual").val(e.val())}).on("change",".pum-range-manual",function(){var e=a(this),t=parseInt(e.prop("max"),0),n=parseInt(e.prop("min"),0),i=parseInt(e.prop("step"),0),r=e.data("force-minmax"),s=parseInt(e.val(),0),o=e.prev();isNaN(s)&&(s=o.val()),r&&t
'+t.text+"")}),n.val(t).trigger("change")}}):(t&&(e.multiple&&t.length||!e.multiple&&""!==t)||null===t)&&n.val(t).trigger("change")})},formatObject:function(e){return e.text},formatObjectSelection:function(e){return e.text||e.text}};window.PUM_Admin=window.PUM_Admin||{},window.PUM_Admin.select2=e,o(document).on("pum_init",function(){PUM_Admin.select2.init()})}(jQuery),function(n,i){var r,s,o,a;"function"!=typeof window.$$&&(r={},s={},window.$$=function(e,t){return t?((o=t.selector)&&(t=o),(a=s[t])===i&&(a=s[t]={}),(o=a[e])!==i?o:a[e]=n(e,$$(t))):(o=r[e])!==i?o:r[e]=n(e)},window.$$clear=function(e,t){t?((o=t.selector)&&(t=o),e&&(o=s[t])&&(o[e]=i),s[t]=i):e?(r[e]=i,s[e]=i):(r={},s={})},window.$$fresh=function(e,t){return $$clear(e,t),$$(e,t)})}(jQuery),function(e,t){var n;"function"==typeof define&&define.amd?define(["exports","jquery"],t):"undefined"!=typeof exports?(n=require("jquery"),t(exports,n)):t(e,e.jQuery||e.Zepto||e.ender||e.$)}(this,function(e,s){var l={validate:/^[a-z_][a-z0-9_]*(?:\[(?:\d*|[a-z0-9_]+)\])*$/i,key:/[a-z0-9_]+|(?=\[\])/gi,push:/^$/,fixed:/^\d+$/,named:/^[a-z0-9_]+$/i};function t(i,t){var n={},o={};function a(e,t,n){return e[t]=n,e}function r(e,t){var n,i=e.match(l.key),r=document.querySelector('[name="'+e+'"]'),s=!1;if("INPUT"===r.tagName?s=r.type:"SELECT"===r.tagName?s="select":"TEXTAREA"===r.tagName&&(s="textarea"),0<=["textarea","text"].indexOf(s))try{t=JSON.parse(t)}catch(e){}for(;void 0!==(n=i.pop());)l.push.test(n)?t=a([],function(e){void 0===o[e]&&(o[e]=0);return o[e]++}(e.replace(/\[\]$/,"")),t):l.fixed.test(n)?t=a([],n,t):l.named.test(n)&&(t=a({},n,t));return t}function e(){return n}this.addPair=function(e){return l.validate.test(e.name)&&(e=r(e.name,"checkbox"===s('[name="'+(e=e).name+'"]',t).attr("type")&&"1"===e.value||e.value),n=i.extend(!0,n,e)),this},this.addPairs=function(e){if(!i.isArray(e))throw new Error("formSerializer.addPairs expects an Array");for(var t=0,n=e.length;t
ul.tabs"),n=t.find("> li:first"),i=e.data("min-height");e.hasClass("vertical-tabs")&&(t=i&&0
ul.tabs > li.tab"),r=n.find("> div.tab-content"),s=t.find("a").attr("href");i.removeClass("active"),r.removeClass("active"),t.addClass("active"),n.find("> div.tab-content"+s).addClass("active"),e.preventDefault()})}(jQuery),function(n){"use strict";var t=pum_admin_vars.I10n,e={render:function(e,t){e=wp.template(e);return void 0!==(t=t||{}).classes&&Array.isArray(t.classes)&&(t.classes=t.classes.join(" ")),e(t=PUM_Admin.templates.prepareMeta(t))},renderInline:function(e,t){return _.template(e,null,{evaluate:/<#([\s\S]+?)#>/g,interpolate:/\{\{\{([\s\S]+?)\}\}\}/g,escape:/\{\{([^\}]+?)\}\}(?!\})/g,variable:"data"})(t)},shortcode:function(e){var t=n.extend(!0,{},{tag:"",meta:{},has_content:!1,content:""},e),e=t.has_content?"pum-shortcode-w-content":"pum-shortcode";return PUM_Admin.templates.render(e,t)},modal:function(e){e=n.extend(!0,{},{id:"",title:"",description:"",classes:"",save_button:t.save,cancel_button:t.cancel,content:""},e);return PUM_Admin.templates.render("pum-modal",e)},tabs:function(e){return"string"==typeof(e=n.extend(!0,{},{id:"",vertical:!1,form:!1,classes:[],tabs:{},meta:{}},e)).classes&&(e.classes=[e.classes]),e.form&&e.classes.push("pum-tabbed-form"),e.meta["data-tab-count"]=Object.keys(e.tabs).length,e.classes.push(e.vertical?"vertical-tabs":"horizontal-tabs"),e.classes=e.classes.join(" "),PUM_Admin.templates.render("pum-tabs",e)},section:function(e){e=n.extend(!0,{},{classes:[],fields:[]},e);return PUM_Admin.templates.render("pum-field-section",e)},fieldArgs:function(e){var r=[],s=n.extend(!0,{},PUM_Admin.models.field(e));switch(void 0===e.std||"checkbox"===e.type||null!==s.value&&!1!==s.value||(s.value=e.std),"string"==typeof s.classes&&(s.classes=s.classes.split(" ")),void 0!==e.class&&s.classes.push(e.class),void 0!==e.dependencies&&"object"==typeof e.dependencies&&(s.dependencies=JSON.stringify(e.dependencies)),s.required&&(s.meta.required=!0,s.classes.push("pum-required")),"string"==typeof s.dynamic_desc&&s.dynamic_desc.length&&(s.classes.push("pum-field-dynamic-desc"),s.desc=PUM_Admin.templates.renderInline(s.dynamic_desc,s)),s.allow_html&&(s.classes.push("pum-field-"+s.type+"--html"),"string"==typeof s.value&&""!==s.value&&PUM_Admin.utils.htmlencoder.hasEncoded(s.value)&&(s.value=PUM_Admin.utils.htmlencoder.htmlDecode(s.value))),e.type){case"select":case"objectselect":case"postselect":case"taxonomyselect":void 0!==s.options&&(_.each(s.options,function(e,t){var i,n=!1;"object"!=typeof e?(null===s.value||(s.multiple&&("string"==typeof s.value&&s.value==t||Array.isArray(s.value)&&-1!==s.value.indexOf(t)||!Array.isArray(s.value)&&"object"==typeof s.value&&Object.keys(s.value).length&&void 0!==s.value[t])||!s.multiple&&s.value==t)&&(n="selected"),r.push(PUM_Admin.templates.prepareMeta({label:e,value:t,meta:{selected:n}}))):(t=t,i=[],_.each(e,function(e,t){var n=!1;null===s.value||(s.multiple&&("string"==typeof s.value&&s.value==t||Array.isArray(s.value)&&-1!==s.value.indexOf(t)||!Array.isArray(s.value)&&"object"==typeof s.value&&Object.keys(s.value).length&&void 0!==s.value[t])||!s.multiple&&s.value==t)&&(n="selected"),i.push(PUM_Admin.templates.prepareMeta({label:e,value:t,meta:{selected:n}}))}),r.push({label:t,options:i}))}),s.options=r),s.multiple&&(s.meta.multiple=!0,s.as_array&&(s.name+="[]"),s.value&&s.value.length||(s.value=[]),"string"==typeof s.value&&(s.value=[s.value])),"select"!==e.type&&(s.select2=!0,s.classes.push("pum-field-objectselect"),s.classes.push("postselect"===e.type?"pum-field-postselect":"pum-field-taxonomyselect"),s.meta["data-objecttype"]="postselect"===e.type?"post_type":"taxonomy",s.meta["data-objectkey"]="postselect"===e.type?e.post_type:e.taxonomy,s.meta["data-current"]="object"==typeof s.value||Array.isArray(s.value)?JSON.stringify(s.value):s.value),s.select2&&(s.classes.push("pum-field-select2"),s.placeholder&&(s.meta["data-placeholder"]=s.placeholder));break;case"radio":void 0!==s.options&&(_.each(s.options,function(e,t){r.push(PUM_Admin.templates.prepareMeta({label:e,value:t,meta:{checked:s.value===t}}))}),s.options=r);break;case"multicheck":void 0!==s.options&&(!1!==s.value&&null!==s.value||(s.value=[]),"string"==typeof s.value&&s.value.indexOf(",")&&(s.value=s.value.split(",")),s.as_array&&(s.name+="[]"),_.each(s.options,function(e,t){r.push(PUM_Admin.templates.prepareMeta({label:e,value:t,meta:{checked:Array.isArray(s.value)&&-1!==s.value.indexOf(t)||!Array.isArray(s.value)&&"object"==typeof s.value&&Object.keys(s.value).length&&void 0!==s.value[t]}}))}),s.options=r);break;case"checkbox":switch(typeof s.value){case"object":Array.isArray(s.value)&&1===s.value.length&&"1"===s.value[0].toString()&&(s.value=!0,s.meta.checked=!0);break;case"boolean":s.value&&(s.meta.checked=!0);break;case"string":"true"!==s.value&&"yes"!==s.value&&"1"!==s.value||(s.meta.checked=!0);break;case"number":(1===parseInt(s.value,10)||0
/g,">"):(e=(e=(e=e.replace(/\'/g,"'")).replace(/\"/g,""")).replace(//g,">")},hasEncoded:function(e){return!!/[0-9]{1,5};/g.test(e)||!!/&[A-Z]{2,6};/gi.test(e)},stripUnicode:function(e){return e.replace(/[^\x20-\x7E]/g,"")},correctEncoding:function(e){return e.replace(/(&)(amp;)+/,"$1")},swapArrayVals:function(e,t,n){if(this.isEmpty(e))return"";var i;if(t&&n&&t.length==n.length)for(var r=0,s=t.length;r
":">",'"':""","'":"'","/":"/"};return"string"!=typeof e?e:String(e).replace(/[&<>"'\/\\]/g,function(e){return t[e]})},e.appendMany=function(e,t){var n;"1.7"===s.fn.jquery.substr(0,3)&&(n=s(),s.map(t,function(e){n=n.add(e)}),t=n),e.append(t)},e}),c.define("pumselect2/results",["jquery","./utils"],function(p,e){function i(e,t,n){this.$element=e,this.data=n,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=p('
');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var t=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=p('
'),i=this.options.get("translations").get(e.message);n.append(t(i(e.args))),n[0].className+=" pumselect2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".pumselect2-results__message").remove()},i.prototype.append=function(e){this.hideLoading();var t=[];if(null!=e.results&&0!==e.results.length){e.results=this.sort(e.results);for(var n=0;n
",{class:"pumselect2-results__options pumselect2-results__options--nested"});c.append(a),s.append(o),s.append(c)}else this.template(e,t);return p.data(t,"data",e),t},i.prototype.bind=function(t,e){var r=this,n=t.id+"-results";this.$results.attr("id",n),t.on("results:all",function(e){r.clear(),r.append(e.data),t.isOpen()&&r.setClasses()}),t.on("results:append",function(e){r.append(e.data),t.isOpen()&&r.setClasses()}),t.on("query",function(e){r.hideMessages(),r.showLoading(e)}),t.on("select",function(){t.isOpen()&&r.setClasses()}),t.on("unselect",function(){t.isOpen()&&r.setClasses()}),t.on("open",function(){r.$results.attr("aria-expanded","true"),r.$results.attr("aria-hidden","false"),r.setClasses(),r.ensureHighlightVisible()}),t.on("close",function(){r.$results.attr("aria-expanded","false"),r.$results.attr("aria-hidden","true"),r.$results.removeAttr("aria-activedescendant")}),t.on("results:toggle",function(){var e=r.getHighlightedResults();0!==e.length&&e.trigger("mouseup")}),t.on("results:select",function(){var e,t=r.getHighlightedResults();0!==t.length&&(e=t.data("data"),"true"==t.attr("aria-selected")?r.trigger("close",{}):r.trigger("select",{data:e}))}),t.on("results:previous",function(){var e,t=r.getHighlightedResults(),n=r.$results.find("[aria-selected]"),i=n.index(t);0!==i&&(e=i-1,0===t.length&&(e=0),(i=n.eq(e)).trigger("mouseenter"),t=r.$results.offset().top,n=i.offset().top,i=r.$results.scrollTop()+(n-t),0===e?r.$results.scrollTop(0):n-t<0&&r.$results.scrollTop(i))}),t.on("results:next",function(){var e,t=r.getHighlightedResults(),n=r.$results.find("[aria-selected]"),i=n.index(t)+1;i>=n.length||((e=n.eq(i)).trigger("mouseenter"),t=r.$results.offset().top+r.$results.outerHeight(!1),n=e.offset().top+e.outerHeight(!1),e=r.$results.scrollTop()+n-t,0===i?r.$results.scrollTop(0):t
this.$results.outerHeight()||i<0)&&this.$results.scrollTop(n))},i.prototype.template=function(e,t){var n=this.options.get("templateResult"),i=this.options.get("escapeMarkup"),e=n(e,t);null==e?t.style.display="none":"string"==typeof e?t.innerHTML=i(e):p(t).append(e)},i}),c.define("pumselect2/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}}),c.define("pumselect2/selection/base",["jquery","../utils","../keys"],function(n,e,r){function i(e,t){this.$element=e,this.options=t,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=n('
');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")),e.attr("title",this.$element.attr("title")),e.attr("tabindex",this._tabindex),this.$selection=e},i.prototype.bind=function(e,t){var n=this,i=(e.id,e.id+"-results");this.container=e,this.$selection.on("focus",function(e){n.trigger("focus",e)}),this.$selection.on("blur",function(e){n._handleBlur(e)}),this.$selection.on("keydown",function(e){n.trigger("keypress",e),e.which===r.SPACE&&e.preventDefault()}),e.on("results:focus",function(e){n.$selection.attr("aria-activedescendant",e.data._resultId)}),e.on("selection:update",function(e){n.update(e.data)}),e.on("open",function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",i),n._attachCloseHandler(e)}),e.on("close",function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(e)}),e.on("enable",function(){n.$selection.attr("tabindex",n._tabindex)}),e.on("disable",function(){n.$selection.attr("tabindex","-1")})},i.prototype._handleBlur=function(e){var t=this;window.setTimeout(function(){document.activeElement==t.$selection[0]||n.contains(t.$selection[0],document.activeElement)||t.trigger("blur",e)},1)},i.prototype._attachCloseHandler=function(e){n(document.body).on("mousedown.pumselect2."+e.id,function(e){var t=n(e.target).closest(".pumselect2");n(".pumselect2.pumselect2-container--open").each(function(){var e=n(this);this!=t[0]&&e.data("element").pumselect2("close")})})},i.prototype._detachCloseHandler=function(e){n(document.body).off("mousedown.pumselect2."+e.id)},i.prototype.position=function(e,t){t.find(".selection").append(e)},i.prototype.destroy=function(){this._detachCloseHandler(this.container)},i.prototype.update=function(e){throw new Error("The `update` method must be defined in child classes.")},i}),c.define("pumselect2/selection/single",["jquery","./base","../utils","../keys"],function(e,t,n,i){function r(){r.__super__.constructor.apply(this,arguments)}return n.Extend(r,t),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("pumselect2-selection--single"),e.html('
'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments);var i=e.id+"-container";this.$selection.find(".pumselect2-selection__rendered").attr("id",i),this.$selection.attr("aria-labelledby",i),this.$selection.on("mousedown",function(e){1===e.which&&n.trigger("toggle",{originalEvent:e})}),this.$selection.on("focus",function(e){}),this.$selection.on("blur",function(e){}),e.on("selection:update",function(e){n.update(e.data)})},r.prototype.clear=function(){this.$selection.find(".pumselect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return e("
")},r.prototype.update=function(e){var t,n;0!==e.length?(t=e[0],n=this.$selection.find(".pumselect2-selection__rendered"),e=this.display(t,n),n.empty().append(e),n.prop("title",t.title||t.text)):this.clear()},r}),c.define("pumselect2/selection/multiple",["jquery","./base","../utils"],function(i,e,a){function r(e,t){r.__super__.constructor.apply(this,arguments)}return a.Extend(r,e),r.prototype.render=function(){var e=r.__super__.render.call(this);return e.addClass("pumselect2-selection--multiple"),e.html('
'),e},r.prototype.bind=function(e,t){var n=this;r.__super__.bind.apply(this,arguments),this.$selection.on("click",function(e){n.trigger("toggle",{originalEvent:e})}),this.$selection.on("click",".pumselect2-selection__choice__remove",function(e){var t;n.options.get("disabled")||(t=i(this).parent().data("data"),n.trigger("unselect",{originalEvent:e,data:t}))})},r.prototype.clear=function(){this.$selection.find(".pumselect2-selection__rendered").empty()},r.prototype.display=function(e,t){var n=this.options.get("templateSelection");return this.options.get("escapeMarkup")(n(e,t))},r.prototype.selectionContainer=function(){return i('
×
')},r.prototype.update=function(e){if(this.clear(),0!==e.length){for(var t=[],n=0;n
×')).data("data",t),this.$selection.find(".pumselect2-selection__rendered").prepend(e))},e}),c.define("pumselect2/selection/search",["jquery","../utils","../keys"],function(n,e,s){function t(e,t,n){e.call(this,t,n)}return t.prototype.render=function(e){var t=n('
');this.$searchContainer=t,this.$search=t.find("input");e=e.call(this);return this._transferTabIndex(),e},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("open",function(){i.$search.trigger("focus")}),t.on("close",function(){i.$search.val(""),i.$search.removeAttr("aria-activedescendant"),i.$search.trigger("focus")}),t.on("enable",function(){i.$search.prop("disabled",!1),i._transferTabIndex()}),t.on("disable",function(){i.$search.prop("disabled",!0)}),t.on("focus",function(e){i.$search.trigger("focus")}),t.on("results:focus",function(e){i.$search.attr("aria-activedescendant",e.id)}),this.$selection.on("focusin",".pumselect2-search--inline",function(e){i.trigger("focus",e)}),this.$selection.on("focusout",".pumselect2-search--inline",function(e){i._handleBlur(e)}),this.$selection.on("keydown",".pumselect2-search--inline",function(e){var t;e.stopPropagation(),i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented(),e.which!==s.BACKSPACE||""!==i.$search.val()||0<(t=i.$searchContainer.prev(".pumselect2-selection__choice")).length&&(t=t.data("data"),i.searchRemoveChoice(t),e.preventDefault())});var t=document.documentMode,r=t&&t<=11;this.$selection.on("input.searchcheck",".pumselect2-search--inline",function(e){r?i.$selection.off("input.search input.searchcheck"):i.$selection.off("keyup.search")}),this.$selection.on("keyup.search input.search",".pumselect2-search--inline",function(e){var t;r&&"input"===e.type?i.$selection.off("input.search input.searchcheck"):(t=e.which)!=s.SHIFT&&t!=s.CTRL&&t!=s.ALT&&t!=s.TAB&&i.handleSearch(e)})},t.prototype._transferTabIndex=function(e){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},t.prototype.createPlaceholder=function(e,t){this.$search.attr("placeholder",t.text)},t.prototype.update=function(e,t){var n=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),e.call(this,t),this.$selection.find(".pumselect2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),n&&this.$search.focus()},t.prototype.handleSearch=function(){var e;this.resizeSearch(),this._keyUpPrevented||(e=this.$search.val(),this.trigger("query",{term:e})),this._keyUpPrevented=!1},t.prototype.searchRemoveChoice=function(e,t){this.trigger("unselect",{data:t}),this.$search.val(t.text),this.handleSearch()},t.prototype.resizeSearch=function(){this.$search.css("width","25px");var e="";e=""!==this.$search.attr("placeholder")?this.$selection.find(".pumselect2-selection__rendered").innerWidth():.75*(this.$search.val().length+1)+"em",this.$search.css("width",e)},t}),c.define("pumselect2/selection/eventRelay",["jquery"],function(o){function e(){}return e.prototype.bind=function(e,t,n){var i=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,t,n),t.on("*",function(e,t){var n;-1!==o.inArray(e,r)&&(t=t||{},n=o.Event("pumselect2:"+e,{params:t}),i.$element.trigger(n),-1!==o.inArray(e,s)&&(t.prevented=n.isDefaultPrevented()))})},e}),c.define("pumselect2/translation",["jquery","require"],function(t,n){function i(e){this.dict=e||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(e){return this.dict[e]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(e){var t;return e in i._cache||(t=n(e),i._cache[e]=t),new i(i._cache[e])},i}),c.define("pumselect2/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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}}),c.define("pumselect2/data/base",["../utils"],function(n){function i(e,t){i.__super__.constructor.call(this)}return n.Extend(i,n.Observable),i.prototype.current=function(e){throw new Error("The `current` method must be defined in child classes.")},i.prototype.query=function(e,t){throw new Error("The `query` method must be defined in child classes.")},i.prototype.bind=function(e,t){},i.prototype.destroy=function(){},i.prototype.generateResultId=function(e,t){e=e.id+"-result-";return e+=n.generateChars(4),null!=t.id?e+="-"+t.id.toString():e+="-"+n.generateChars(4),e},i}),c.define("pumselect2/data/select",["./base","../utils","jquery"],function(e,t,o){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return t.Extend(n,e),n.prototype.current=function(e){var t=[],n=this;this.$element.find(":selected").each(function(){var e=o(this),e=n.item(e);t.push(e)}),e(t)},n.prototype.select=function(r){var e,s=this;if(r.selected=!0,o(r.element).is("option"))return r.element.selected=!0,void this.$element.trigger("change");this.$element.prop("multiple")?this.current(function(e){var t=[];(r=[r]).push.apply(r,e);for(var n=0;n
this.maximumInputLength?this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:t.term,params:t}}):e.call(this,t,n)},e}),c.define("pumselect2/data/maximumSelectionLength",[],function(){function e(e,t,n){this.maximumSelectionLength=n.get("maximumSelectionLength"),e.call(this,t,n)}return e.prototype.query=function(t,n,i){var r=this;this.current(function(e){e=null!=e?e.length:0;0
=r.maximumSelectionLength?r.trigger("results:message",{message:"maximumSelected",args:{maximum:r.maximumSelectionLength}}):t.call(r,n,i)})},e}),c.define("pumselect2/dropdown",["jquery","./utils"],function(t,e){function n(e,t){this.$element=e,this.options=t,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('
');return e.attr("dir",this.options.get("dir")),this.$dropdown=e},n.prototype.bind=function(){},n.prototype.position=function(e,t){},n.prototype.destroy=function(){this.$dropdown.remove()},n}),c.define("pumselect2/dropdown/search",["jquery","../utils"],function(r,e){function t(){}return t.prototype.render=function(e){var t=e.call(this),e=r('
');return this.$searchContainer=e,this.$search=e.find("input"),t.prepend(e),t},t.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),this.$search.on("keydown",function(e){i.trigger("keypress",e),i._keyUpPrevented=e.isDefaultPrevented()}),this.$search.on("input",function(e){r(this).off("keyup")}),this.$search.on("keyup input",function(e){i.handleSearch(e)}),t.on("open",function(){i.$search.attr("tabindex",0),i.$search.focus(),window.setTimeout(function(){i.$search.focus()},0)}),t.on("close",function(){i.$search.attr("tabindex",-1),i.$search.val("")}),t.on("results:all",function(e){null!=e.query.term&&""!==e.query.term||(i.showSearch(e)?i.$searchContainer.removeClass("pumselect2-search--hide"):i.$searchContainer.addClass("pumselect2-search--hide"))})},t.prototype.handleSearch=function(e){var t;this._keyUpPrevented||(t=this.$search.val(),this.trigger("query",{term:t})),this._keyUpPrevented=!1},t.prototype.showSearch=function(e,t){return!0},t}),c.define("pumselect2/dropdown/hidePlaceholder",[],function(){function e(e,t,n,i){this.placeholder=this.normalizePlaceholder(n.get("placeholder")),e.call(this,t,n,i)}return e.prototype.append=function(e,t){t.results=this.removePlaceholder(t.results),e.call(this,t)},e.prototype.normalizePlaceholder=function(e,t){return t="string"==typeof t?{id:"",text:t}:t},e.prototype.removePlaceholder=function(e,t){for(var n=t.slice(0),i=t.length-1;0<=i;i--){var r=t[i];this.placeholder.id===r.id&&n.splice(i,1)}return n},e}),c.define("pumselect2/dropdown/infiniteScroll",["jquery"],function(r){function e(e,t,n,i){this.lastParams={},e.call(this,t,n,i),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(e,t){this.$loadingMore.remove(),this.loading=!1,e.call(this,t),this.showLoadingMore(t)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,t,n){var i=this;e.call(this,t,n),t.on("query",function(e){i.lastParams=e,i.loading=!0}),t.on("query:append",function(e){i.lastParams=e,i.loading=!0}),this.$results.on("scroll",function(){var e=r.contains(document.documentElement,i.$loadingMore[0]);!i.loading&&e&&(e=i.$results.offset().top+i.$results.outerHeight(!1),i.$loadingMore.offset().top+i.$loadingMore.outerHeight(!1)<=e+50&&i.loadMore())})},e.prototype.loadMore=function(){this.loading=!0;var e=r.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(e,t){return t.pagination&&t.pagination.more},e.prototype.createLoadingMore=function(){var e=r('
'),t=this.options.get("translations").get("loadingMore");return e.html(t(this.lastParams)),e},e}),c.define("pumselect2/dropdown/attachBody",["jquery","../utils"],function(u,o){function e(e,t,n){this.$dropdownParent=n.get("dropdownParent")||u(document.body),e.call(this,t,n)}return e.prototype.bind=function(e,t,n){var i=this,r=!1;e.call(this,t,n),t.on("open",function(){i._showDropdown(),i._attachPositioningHandler(t),r||(r=!0,t.on("results:all",function(){i._positionDropdown(),i._resizeDropdown()}),t.on("results:append",function(){i._positionDropdown(),i._resizeDropdown()}))}),t.on("close",function(){i._hideDropdown(),i._detachPositioningHandler(t)}),this.$dropdownContainer.on("mousedown",function(e){e.stopPropagation()})},e.prototype.destroy=function(e){e.call(this),this.$dropdownContainer.remove()},e.prototype.position=function(e,t,n){t.attr("class",n.attr("class")),t.removeClass("pumselect2"),t.addClass("pumselect2-container--open"),t.css({position:"absolute",top:-999999}),this.$container=n},e.prototype.render=function(e){var t=u("
"),e=e.call(this);return t.append(e),this.$dropdownContainer=t},e.prototype._hideDropdown=function(e){this.$dropdownContainer.detach()},e.prototype._attachPositioningHandler=function(e,t){var n=this,i="scroll.pumselect2."+t.id,r="resize.pumselect2."+t.id,s="orientationchange.pumselect2."+t.id,t=this.$container.parents().filter(o.hasScroll);t.each(function(){u(this).data("pumselect2-scroll-position",{x:u(this).scrollLeft(),y:u(this).scrollTop()})}),t.on(i,function(e){var t=u(this).data("pumselect2-scroll-position");u(this).scrollTop(t.y)}),u(window).on(i+" "+r+" "+s,function(e){n._positionDropdown(),n._resizeDropdown()})},e.prototype._detachPositioningHandler=function(e,t){var n="scroll.pumselect2."+t.id,i="resize.pumselect2."+t.id,t="orientationchange.pumselect2."+t.id;this.$container.parents().filter(o.hasScroll).off(n),u(window).off(n+" "+i+" "+t)},e.prototype._positionDropdown=function(){var e=u(window),t=this.$dropdown.hasClass("pumselect2-dropdown--above"),n=this.$dropdown.hasClass("pumselect2-dropdown--below"),i=null,r=this.$container.offset();r.bottom=r.top+this.$container.outerHeight(!1);var s={height:this.$container.outerHeight(!1)};s.top=r.top,s.bottom=r.top+s.height;var o=this.$dropdown.outerHeight(!1),a=e.scrollTop(),l=e.scrollTop()+e.height(),e=a
r.bottom+o,l={left:r.left,top:s.bottom},r=this.$dropdownParent,r=(r="static"===r.css("position")?r.offsetParent():r).offset();l.top-=r.top,l.left-=r.left,t||n||(i="below"),a||!e||t?!e&&a&&t&&(i="below"):i="above",("above"==i||t&&"below"!==i)&&(l.top=s.top-o),null!=i&&(this.$dropdown.removeClass("pumselect2-dropdown--below pumselect2-dropdown--above").addClass("pumselect2-dropdown--"+i),this.$container.removeClass("pumselect2-container--below pumselect2-container--above").addClass("pumselect2-container--"+i)),this.$dropdownContainer.css(l)},e.prototype._resizeDropdown=function(){var e={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(e.minWidth=e.width,e.width="auto"),this.$dropdown.css(e)},e.prototype._showDropdown=function(e){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},e}),c.define("pumselect2/dropdown/minimumResultsForSearch",[],function(){function e(e,t,n,i){this.minimumResultsForSearch=n.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),e.call(this,t,n,i)}return e.prototype.showSearch=function(e,t){return!(function e(t){for(var n=0,i=0;i
');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("pumselect2-container--"+this.options.get("theme")),e.data("element",this.$element),e},o}),c.define("pumselect2/compat/utils",["jquery"],function(o){return{syncCssClasses:function(e,t,n){var i,r=[],s=o.trim(e.attr("class"));s&&o((s=""+s).split(/\s+/)).each(function(){0===this.indexOf("pumselect2-")&&r.push(this)}),(s=o.trim(t.attr("class")))&&o((s=""+s).split(/\s+/)).each(function(){0!==this.indexOf("pumselect2-")&&null!=(i=n(this))&&r.push(i)}),e.attr("class",r.join(" "))}}}),c.define("pumselect2/compat/containerCss",["jquery","./utils"],function(s,o){function a(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("containerCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i,r=this.options.get("adaptContainerCssClass");r=r||a,-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i=r,r=function(e){var t=i(e);return null!=t?t+" "+e:e});e=this.options.get("containerCss")||{};return s.isFunction(e)&&(e=e(this.$element)),o.syncCssClasses(t,this.$element,r),t.css(e),t.addClass(n),t},e}),c.define("pumselect2/compat/dropdownCss",["jquery","./utils"],function(s,o){function a(e){return null}function e(){}return e.prototype.render=function(e){var t=e.call(this),n=this.options.get("dropdownCssClass")||"";s.isFunction(n)&&(n=n(this.$element));var i,r=this.options.get("adaptDropdownCssClass");r=r||a,-1!==n.indexOf(":all:")&&(n=n.replace(":all:",""),i=r,r=function(e){var t=i(e);return null!=t?t+" "+e:e});e=this.options.get("dropdownCss")||{};return s.isFunction(e)&&(e=e(this.$element)),o.syncCssClasses(t,this.$element,r),t.css(e),t.addClass(n),t},e}),c.define("pumselect2/compat/initSelection",["jquery"],function(i){function e(e,t,n){n.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=n.get("initSelection"),this._isInitialized=!1,e.call(this,t,n)}return e.prototype.current=function(e,t){var n=this;this._isInitialized?e.call(this,t):this.initSelection.call(null,this.$element,function(e){n._isInitialized=!0,i.isArray(e)||(e=[e]),t(e)})},e}),c.define("pumselect2/compat/inputData",["jquery"],function(s){function e(e,t,n){this._currentData=[],this._valueSeparator=n.get("valueSeparator")||",","hidden"===t.prop("type")&&n.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 `
` element instead."),e.call(this,t,n)}return e.prototype.current=function(e,t){for(var n=[],i=0;i