!function(){try{var t="undefined"!=typeof HTMLMediaElement?HTMLMediaElement.prototype:null;if(!t||t.__autoplayGuardInstalled)return;function e(t){if(!t)return!1;var e=t.name||"",i=String(t.message||t||"");return"NotAllowedError"===e||/play\(\)\s*(method\s*)?is not allowed/i.test(i)||/user gesture/i.test(i)||/Autoplay(.*)disabled/i.test(i)}var i=t.play;"function"==typeof i&&(t.play=function(){try{var t=i.apply(this,arguments);return t&&"function"==typeof t.catch?t.catch((function(t){return e(t)?(window&&window.console&&console.debug("[media-autoplay] NotAllowedError suppressed for play()",t),Promise.resolve()):Promise.reject(t)})):t}catch(t){if(e(t))return window&&window.console&&console.debug("[media-autoplay] NotAllowedError suppressed (sync)"),Promise.resolve();throw t}}),t.__autoplayGuardInstalled=!0;var n=["click","touchstart","keydown","pointerdown"],o=null;function r(){o&&(o(),o=null,n.forEach((function(t){window.removeEventListener(t,r,!0),document.removeEventListener(t,r,!0)})))}function s(){return new Promise(o?function(t){var e=o;o=function(){e(),t()}}:function(t){o=t,n.forEach((function(t){window.addEventListener(t,r,!0),document.addEventListener(t,r,!0)}))})}window.safePlay=function(t,i){if(!t||"function"!=typeof t.play)return Promise.resolve();if(!0===(i=i||{}).mutedAutoplay)try{t.muted=!0,t.autoplay=!0,t.playsInline=!0,"function"==typeof t.setAttribute&&(t.setAttribute("muted",""),t.setAttribute("autoplay",""),t.setAttribute("playsinline",""))}catch(t){}try{var n=t.play();return n&&"function"==typeof n.catch?n.catch((function(i){return e(i)?s().then((function(){try{return t.play()}catch(t){return Promise.resolve()}})):Promise.reject(i)})):Promise.resolve()}catch(i){return e(i)?s().then((function(){try{return t.play()}catch(t){return Promise.resolve()}})):Promise.reject(i)}},window.addEventListener("unhandledrejection",(function(t){try{e(t&&t.reason)&&(t.preventDefault(),window&&window.console&&console.debug("[media-autoplay] Suppressed unhandledrejection for NotAllowedError"))}catch(t){}}))}catch(l){}}(),$.root_=$("body"),$.navAsAjax=!1,$.sound_path="/themes/smart-admin/sound/",$.sound_on=!0;var root=this,debugState=!1,debugStyle="font-weight: bold; color: #00f;",debugStyle_green="font-weight: bold; font-style:italic; color: #46C246;",debugStyle_red="font-weight: bold; color: #ed1c24;",debugStyle_warning="background-color:yellow",debugStyle_success="background-color:green; font-weight:bold; color:#fff;",debugStyle_error="background-color:#ed1c24; font-weight:bold; color:#fff;",throttle_delay=350,menu_speed=235,menu_accordion=!0,enableJarvisWidgets=!0,localStorageJarvisWidgets=!0,sortableJarvisWidgets=!0,enableMobileWidgets=!1,fastClick=!1,boxList=[],showList=[],nameList=[],idList=[],chatbox_config={width:200,gap:35},ignore_key_elms=["#header, #left-panel, #right-panel, #main, div.page-footer, #shortcut, #divSmallBoxes, #divMiniIcons, #divbigBoxes, #voiceModal, script, .ui-chatbox"],voice_command=!0,voice_command_auto=!1,voice_command_lang="en-US",voice_localStorage=!0;if(voice_command)var commands={"show dashboard":function(){$('nav a[href="dashboard.php"]').trigger("click")},"show inbox":function(){$('nav a[href="inbox.php"]').trigger("click")},"show graphs":function(){$('nav a[href="flot.php"]').trigger("click")},"show flotchart":function(){$('nav a[href="flot.php"]').trigger("click")},"show morris chart":function(){$('nav a[href="morris.php"]').trigger("click")},"show inline chart":function(){$('nav a[href="inline-charts.php"]').trigger("click")},"show dygraphs":function(){$('nav a[href="dygraphs.php"]').trigger("click")},"show tables":function(){$('nav a[href="table.php"]').trigger("click")},"show data table":function(){$('nav a[href="datatables.php"]').trigger("click")},"show jquery grid":function(){$('nav a[href="jqgrid.php"]').trigger("click")},"show form":function(){$('nav a[href="form-elements.php"]').trigger("click")},"show form layouts":function(){$('nav a[href="form-templates.php"]').trigger("click")},"show form validation":function(){$('nav a[href="validation.php"]').trigger("click")},"show form elements":function(){$('nav a[href="bootstrap-forms.php"]').trigger("click")},"show form plugins":function(){$('nav a[href="plugins.php"]').trigger("click")},"show form wizards":function(){$('nav a[href="wizards.php"]').trigger("click")},"show bootstrap editor":function(){$('nav a[href="other-editors.php"]').trigger("click")},"show dropzone":function(){$('nav a[href="dropzone.php"]').trigger("click")},"show image cropping":function(){$('nav a[href="image-editor.php"]').trigger("click")},"show general elements":function(){$('nav a[href="general-elements.php"]').trigger("click")},"show buttons":function(){$('nav a[href="buttons.php"]').trigger("click")},"show fontawesome":function(){$('nav a[href="fa.php"]').trigger("click")},"show glyph icons":function(){$('nav a[href="glyph.php"]').trigger("click")},"show flags":function(){$('nav a[href="flags.php"]').trigger("click")},"show grid":function(){$('nav a[href="grid.php"]').trigger("click")},"show tree view":function(){$('nav a[href="treeview.php"]').trigger("click")},"show nestable lists":function(){$('nav a[href="nestable-list.php"]').trigger("click")},"show jquery U I":function(){$('nav a[href="jqui.php"]').trigger("click")},"show typography":function(){$('nav a[href="typography.php"]').trigger("click")},"show calendar":function(){$('nav a[href="calendar.php"]').trigger("click")},"show widgets":function(){$('nav a[href="widgets.php"]').trigger("click")},"show gallery":function(){$('nav a[href="gallery.php"]').trigger("click")},"show maps":function(){$('nav a[href="gmap-xml.php"]').trigger("click")},"show pricing tables":function(){$('nav a[href="pricing-table.php"]').trigger("click")},"show invoice":function(){$('nav a[href="invoice.php"]').trigger("click")},"show search":function(){$('nav a[href="search.php"]').trigger("click")},"go back":function(){history.back(1)},"scroll up":function(){$("html, body").animate({scrollTop:0},100)},"scroll down":function(){$("html, body").animate({scrollTop:$(document).height()},100)},"hide navigation":function(){$.root_.hasClass("container")&&!$.root_.hasClass("menu-on-top")?$("span.minifyme").trigger("click"):$("#hide-menu > span > a").trigger("click")},"show navigation":function(){$.root_.hasClass("container")&&!$.root_.hasClass("menu-on-top")?$("span.minifyme").trigger("click"):$("#hide-menu > span > a").trigger("click")},mute:function(){$.sound_on=!1,$.smallBox({title:"MUTE",content:"All sounds have been muted!",color:"#a90329",timeout:4e3,icon:"fa fa-volume-off"})},"sound on":function(){$.sound_on=!0,$.speechApp.playConfirmation(),$.smallBox({title:"UNMUTE",content:"All sounds have been turned on!",color:"#40ac2b",sound_file:"voice_alert",timeout:5e3,icon:"fa fa-volume-up"})},stop:function(){smartSpeechRecognition.abort(),$.root_.removeClass("voice-command-active"),$.smallBox({title:"VOICE COMMAND OFF",content:"Your voice commands has been successfully turned off. Click on the icon to turn it back on.",color:"#40ac2b",sound_file:"voice_off",timeout:8e3,icon:"fa fa-microphone-slash"}),$("#speech-btn .popover").is(":visible")&&$("#speech-btn .popover").fadeOut(250)},help:function(){$("#voiceModal").removeData("modal").modal({remote:"ajax/modal-content/modal-voicecommand.html",show:!0}),$("#speech-btn .popover").is(":visible")&&$("#speech-btn .popover").fadeOut(250)},"got it":function(){$("#voiceModal").modal("hide")},logout:function(){$.speechApp.stop(),window.location=$("#logout > span > a").attr("href")}};function SmartUnLoading(){$(".divMessageBox").fadeOut(300,(function(){$(this).remove()})),$(".LoadingBoxContainer").fadeOut(300,(function(){$(this).remove()}))}function getInternetExplorerVersion(){var t=-1;if("Microsoft Internet Explorer"==navigator.appName){var e=navigator.userAgent;null!=new RegExp("MSIE ([0-9]{1,}[.0-9]{0,})").exec(e)&&(t=parseFloat(RegExp.$1))}return t}function checkVersion(){var t="You're not using Windows Internet Explorer.",e=getInternetExplorerVersion();e>-1&&(t=e>=8?"You're using a recent copy of Windows Internet Explorer.":"You should upgrade your copy of Windows Internet Explorer."),alert(t)}function isIE8orlower(){var t="0",e=getInternetExplorerVersion();return e>-1&&(t=e>=9?0:1),t}!function(t,e){function i(e,i){var o,r,s,l=e.nodeName.toLowerCase();return"area"===l?(r=(o=e.parentNode).name,!(!e.href||!r||"map"!==o.nodeName.toLowerCase())&&(!!(s=t("img[usemap=#"+r+"]")[0])&&n(s))):(/input|select|textarea|button|object/.test(l)?!e.disabled:"a"===l&&e.href||i)&&n(e)}function n(e){return t.expr.filters.visible(e)&&!t(e).parents().addBack().filter((function(){return"hidden"===t.css(this,"visibility")})).length}var o=0,r=/^ui-id-\d+$/;t.ui=t.ui||{},t.extend(t.ui,{version:"1.10.3",keyCode:{BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38}}),t.fn.extend({focus:function(e){return function(i,n){return"number"==typeof i?this.each((function(){var e=this;setTimeout((function(){t(e).focus(),n&&n.call(e)}),i)})):e.apply(this,arguments)}}(t.fn.focus),scrollParent:function(){var e;return e=t.ui.ie&&/(static|relative)/.test(this.css("position"))||/absolute/.test(this.css("position"))?this.parents().filter((function(){return/(relative|absolute|fixed)/.test(t.css(this,"position"))&&/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))})).eq(0):this.parents().filter((function(){return/(auto|scroll)/.test(t.css(this,"overflow")+t.css(this,"overflow-y")+t.css(this,"overflow-x"))})).eq(0),/fixed/.test(this.css("position"))||!e.length?t(document):e},zIndex:function(i){if(i!==e)return this.css("zIndex",i);if(this.length)for(var n,o,r=t(this[0]);r.length&&r[0]!==document;){if(("absolute"===(n=r.css("position"))||"relative"===n||"fixed"===n)&&(o=parseInt(r.css("zIndex"),10),!isNaN(o)&&0!==o))return o;r=r.parent()}return 0},uniqueId:function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++o)}))},removeUniqueId:function(){return this.each((function(){r.test(this.id)&&t(this).removeAttr("id")}))}}),t.extend(t.expr[":"],{data:t.expr.createPseudo?t.expr.createPseudo((function(e){return function(i){return!!t.data(i,e)}})):function(e,i,n){return!!t.data(e,n[3])},focusable:function(e){return i(e,!isNaN(t.attr(e,"tabindex")))},tabbable:function(e){var n=t.attr(e,"tabindex"),o=isNaN(n);return(o||n>=0)&&i(e,!o)}}),t("").outerWidth(1).jquery||t.each(["Width","Height"],(function(i,n){function o(e,i,n,o){return t.each(r,(function(){i-=parseFloat(t.css(e,"padding"+this))||0,n&&(i-=parseFloat(t.css(e,"border"+this+"Width"))||0),o&&(i-=parseFloat(t.css(e,"margin"+this))||0)})),i}var r="Width"===n?["Left","Right"]:["Top","Bottom"],s=n.toLowerCase(),l={innerWidth:t.fn.innerWidth,innerHeight:t.fn.innerHeight,outerWidth:t.fn.outerWidth,outerHeight:t.fn.outerHeight};t.fn["inner"+n]=function(i){return i===e?l["inner"+n].call(this):this.each((function(){t(this).css(s,o(this,i)+"px")}))},t.fn["outer"+n]=function(e,i){return"number"!=typeof e?l["outer"+n].call(this,e):this.each((function(){t(this).css(s,o(this,e,!0,i)+"px")}))}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t("").data("a-b","a").removeData("a-b").data("a-b")&&(t.fn.removeData=function(e){return function(i){return arguments.length?e.call(this,t.camelCase(i)):e.call(this)}}(t.fn.removeData)),t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase()),t.support.selectstart="onselectstart"in document.createElement("div"),t.fn.extend({disableSelection:function(){return this.bind((t.support.selectstart?"selectstart":"mousedown")+".ui-disableSelection",(function(t){t.preventDefault()}))},enableSelection:function(){return this.unbind(".ui-disableSelection")}}),t.extend(t.ui,{plugin:{add:function(e,i,n){var o,r=t.ui[e].prototype;for(o in n)r.plugins[o]=r.plugins[o]||[],r.plugins[o].push([i,n[o]])},call:function(t,e,i){var n,o=t.plugins[e];if(o&&t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType)for(n=0;o.length>n;n++)t.options[o[n][0]]&&o[n][1].apply(t.element,i)}},hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop",o=!1;return e[n]>0||(e[n]=1,o=e[n]>0,e[n]=0,o)}})}(jQuery),function(t,e){var i=0,n=Array.prototype.slice,o=t.cleanData;t.cleanData=function(e){for(var i,n=0;null!=(i=e[n]);n++)try{t(i).triggerHandler("remove")}catch(t){}o(e)},t.widget=function(i,n,o){var r,s,l,a,c={},h=i.split(".")[0];i=i.split(".")[1],r=h+"-"+i,o||(o=n,n=t.Widget),t.expr[":"][r.toLowerCase()]=function(e){return!!t.data(e,r)},t[h]=t[h]||{},s=t[h][i],l=t[h][i]=function(t,i){return this._createWidget?(arguments.length&&this._createWidget(t,i),e):new l(t,i)},t.extend(l,s,{version:o.version,_proto:t.extend({},o),_childConstructors:[]}),(a=new n).options=t.widget.extend({},a.options),t.each(o,(function(i,o){return t.isFunction(o)?(c[i]=function(){var t=function(){return n.prototype[i].apply(this,arguments)},e=function(t){return n.prototype[i].apply(this,t)};return function(){var i,n=this._super,r=this._superApply;return this._super=t,this._superApply=e,i=o.apply(this,arguments),this._super=n,this._superApply=r,i}}(),e):(c[i]=o,e)})),l.prototype=t.widget.extend(a,{widgetEventPrefix:s?a.widgetEventPrefix:i},c,{constructor:l,namespace:h,widgetName:i,widgetFullName:r}),s?(t.each(s._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,l,i._proto)})),delete s._childConstructors):n._childConstructors.push(l),t.widget.bridge(i,l)},t.widget.extend=function(i){for(var o,r,s=n.call(arguments,1),l=0,a=s.length;a>l;l++)for(o in s[l])r=s[l][o],s[l].hasOwnProperty(o)&&r!==e&&(i[o]=t.isPlainObject(r)?t.isPlainObject(i[o])?t.widget.extend({},i[o],r):t.widget.extend({},r):r);return i},t.widget.bridge=function(i,o){var r=o.prototype.widgetFullName||i;t.fn[i]=function(s){var l="string"==typeof s,a=n.call(arguments,1),c=this;return s=!l&&a.length?t.widget.extend.apply(null,[s].concat(a)):s,l?this.each((function(){var n,o=t.data(this,r);return o?t.isFunction(o[s])&&"_"!==s.charAt(0)?(n=o[s].apply(o,a))!==o&&n!==e?(c=n&&n.jquery?c.pushStack(n.get()):n,!1):e:t.error("no such method '"+s+"' for "+i+" widget instance"):t.error("cannot call methods on "+i+" prior to initialization; attempted to call method '"+s+"'")})):this.each((function(){var e=t.data(this,r);e?e.option(s||{})._init():t.data(this,r,new o(s,this))})),c}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"
",options:{disabled:!1,create:null},_createWidget:function(e,n){n=t(n||this.defaultElement||this)[0],this.element=t(n),this.uuid=i++,this.eventNamespace="."+this.widgetName+this.uuid,this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this.bindings=t(),this.hoverable=t(),this.focusable=t(),n!==this&&(t.data(n,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===n&&this.destroy()}}),this.document=t(n.style?n.ownerDocument:n.document||n),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this._create(),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:t.noop,_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){this._destroy(),this.element.unbind(this.eventNamespace).removeData(this.widgetName).removeData(this.widgetFullName).removeData(t.camelCase(this.widgetFullName)),this.widget().unbind(this.eventNamespace).removeAttr("aria-disabled").removeClass(this.widgetFullName+"-disabled ui-state-disabled"),this.bindings.unbind(this.eventNamespace),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")},_destroy:t.noop,widget:function(){return this.element},option:function(i,n){var o,r,s,l=i;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof i)if(l={},o=i.split("."),i=o.shift(),o.length){for(r=l[i]=t.widget.extend({},this.options[i]),s=0;o.length-1>s;s++)r[o[s]]=r[o[s]]||{},r=r[o[s]];if(i=o.pop(),n===e)return r[i]===e?null:r[i];r[i]=n}else{if(n===e)return this.options[i]===e?null:this.options[i];l[i]=n}return this._setOptions(l),this},_setOptions:function(t){var e;for(e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return this.options[t]=e,"disabled"===t&&(this.widget().toggleClass(this.widgetFullName+"-disabled ui-state-disabled",!!e).attr("aria-disabled",e),this.hoverable.removeClass("ui-state-hover"),this.focusable.removeClass("ui-state-focus")),this},enable:function(){return this._setOption("disabled",!1)},disable:function(){return this._setOption("disabled",!0)},_on:function(i,n,o){var r,s=this;"boolean"!=typeof i&&(o=n,n=i,i=!1),o?(n=r=t(n),this.bindings=this.bindings.add(n)):(o=n,n=this.element,r=this.widget()),t.each(o,(function(o,l){function a(){return i||!0!==s.options.disabled&&!t(this).hasClass("ui-state-disabled")?("string"==typeof l?s[l]:l).apply(s,arguments):e}"string"!=typeof l&&(a.guid=l.guid=l.guid||a.guid||t.guid++);var c=o.match(/^(\w+)\s*(.*)$/),h=c[1]+s.eventNamespace,u=c[2];u?r.delegate(u,h,a):n.bind(h,a)}))},_off:function(t,e){e=(e||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,t.unbind(e).undelegate(e)},_delay:function(t,e){var i=this;return setTimeout((function(){return("string"==typeof t?i[t]:t).apply(i,arguments)}),e||0)},_hoverable:function(e){this.hoverable=this.hoverable.add(e),this._on(e,{mouseenter:function(e){t(e.currentTarget).addClass("ui-state-hover")},mouseleave:function(e){t(e.currentTarget).removeClass("ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){t(e.currentTarget).addClass("ui-state-focus")},focusout:function(e){t(e.currentTarget).removeClass("ui-state-focus")}})},_trigger:function(e,i,n){var o,r,s=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],r=i.originalEvent)for(o in r)o in i||(i[o]=r[o]);return this.element.trigger(i,n),!(t.isFunction(s)&&!1===s.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,o,r){"string"==typeof o&&(o={effect:o});var s,l=o?!0===o||"number"==typeof o?i:o.effect||i:e;"number"==typeof(o=o||{})&&(o={duration:o}),s=!t.isEmptyObject(o),o.complete=r,o.delay&&n.delay(o.delay),s&&t.effects&&t.effects.effect[l]?n[e](o):l!==e&&n[l]?n[l](o.duration,o.easing,r):n.queue((function(i){t(this)[e](),r&&r.call(n[0]),i()}))}}))}(jQuery),function(t){var e=!1;t(document).mouseup((function(){e=!1})),t.widget("ui.mouse",{version:"1.10.3",options:{cancel:"input,textarea,button,select,option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.bind("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).bind("click."+this.widgetName,(function(i){return!0===t.data(i.target,e.widgetName+".preventClickEvent")?(t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1):void 0})),this.started=!1},_mouseDestroy:function(){this.element.unbind("."+this.widgetName),this._mouseMoveDelegate&&t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(i){if(!e){this._mouseStarted&&this._mouseUp(i),this._mouseDownEvent=i;var n=this,o=1===i.which,r=!("string"!=typeof this.options.cancel||!i.target.nodeName)&&t(i.target).closest(this.options.cancel).length;return!(o&&!r&&this._mouseCapture(i))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){n.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(i)&&this._mouseDelayMet(i)&&(this._mouseStarted=!1!==this._mouseStart(i),!this._mouseStarted)?(i.preventDefault(),!0):(!0===t.data(i.target,this.widgetName+".preventClickEvent")&&t.removeData(i.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return n._mouseMove(t)},this._mouseUpDelegate=function(t){return n._mouseUp(t)},t(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate),i.preventDefault(),e=!0,!0))}},_mouseMove:function(e){return t.ui.ie&&(!document.documentMode||9>document.documentMode)&&!e.button?this._mouseUp(e):this._mouseStarted?(this._mouseDrag(e),e.preventDefault()):(this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(this._mouseDownEvent,e),this._mouseStarted?this._mouseDrag(e):this._mouseUp(e)),!this._mouseStarted)},_mouseUp:function(e){return t(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate),this._mouseStarted&&(this._mouseStarted=!1,e.target===this._mouseDownEvent.target&&t.data(e.target,this.widgetName+".preventClickEvent",!0),this._mouseStop(e)),!1},_mouseDistanceMet:function(t){return Math.max(Math.abs(this._mouseDownEvent.pageX-t.pageX),Math.abs(this._mouseDownEvent.pageY-t.pageY))>=this.options.distance},_mouseDelayMet:function(){return this.mouseDelayMet},_mouseStart:function(){},_mouseDrag:function(){},_mouseStop:function(){},_mouseCapture:function(){return!0}})}(jQuery),function(t,e){function i(t,e,i){return[parseFloat(t[0])*(d.test(t[0])?e/100:1),parseFloat(t[1])*(d.test(t[1])?i/100:1)]}function n(e,i){return parseInt(t.css(e,i),10)||0}t.ui=t.ui||{};var o,r=Math.max,s=Math.abs,l=Math.round,a=/left|center|right/,c=/top|center|bottom/,h=/[\+\-]\d+(\.[\d]+)?%?/,u=/^\w+/,d=/%$/,p=t.fn.position;t.position={scrollbarWidth:function(){if(undefined!==o)return o;var e,i,n=t("
"),r=n.children()[0];return t("body").append(n),e=r.offsetWidth,n.css("overflow","scroll"),e===(i=r.offsetWidth)&&(i=n[0].clientWidth),n.remove(),o=e-i},getScrollInfo:function(e){var i=e.isWindow?"":e.element.css("overflow-x"),n=e.isWindow?"":e.element.css("overflow-y"),o="scroll"===i||"auto"===i&&e.widthn?"left":i>0?"right":"center",vertical:0>l?"top":o>0?"bottom":"middle"};u>d&&d>s(i+n)&&(a.horizontal="center"),p>f&&f>s(o+l)&&(a.vertical="middle"),a.important=r(s(i),s(n))>r(s(o),s(l))?"horizontal":"vertical",e.using.call(this,t,a)}),h.offset(t.extend(k,{using:c}))}))},t.ui.position={fit:{left:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollLeft:n.offset.left,s=n.width,l=t.left-e.collisionPosition.marginLeft,a=o-l,c=l+e.collisionWidth-s-o;e.collisionWidth>s?a>0&&0>=c?(i=t.left+a+e.collisionWidth-s-o,t.left+=a-i):t.left=c>0&&0>=a?o:a>c?o+s-e.collisionWidth:o:a>0?t.left+=a:c>0?t.left-=c:t.left=r(t.left-l,t.left)},top:function(t,e){var i,n=e.within,o=n.isWindow?n.scrollTop:n.offset.top,s=e.within.height,l=t.top-e.collisionPosition.marginTop,a=o-l,c=l+e.collisionHeight-s-o;e.collisionHeight>s?a>0&&0>=c?(i=t.top+a+e.collisionHeight-s-o,t.top+=a-i):t.top=c>0&&0>=a?o:a>c?o+s-e.collisionHeight:o:a>0?t.top+=a:c>0?t.top-=c:t.top=r(t.top-l,t.top)}},flip:{left:function(t,e){var i,n,o=e.within,r=o.offset.left+o.scrollLeft,l=o.width,a=o.isWindow?o.scrollLeft:o.offset.left,c=t.left-e.collisionPosition.marginLeft,h=c-a,u=c+e.collisionWidth-l-a,d="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,p="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,f=-2*e.offset[0];0>h?(0>(i=t.left+d+p+f+e.collisionWidth-l-r)||s(h)>i)&&(t.left+=d+p+f):u>0&&(((n=t.left-e.collisionPosition.marginLeft+d+p+f-a)>0||u>s(n))&&(t.left+=d+p+f))},top:function(t,e){var i,n,o=e.within,r=o.offset.top+o.scrollTop,l=o.height,a=o.isWindow?o.scrollTop:o.offset.top,c=t.top-e.collisionPosition.marginTop,h=c-a,u=c+e.collisionHeight-l-a,d="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,p="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,f=-2*e.offset[1];0>h?(n=t.top+d+p+f+e.collisionHeight-l-r,t.top+d+p+f>h&&(0>n||s(h)>n)&&(t.top+=d+p+f)):u>0&&(i=t.top-e.collisionPosition.marginTop+d+p+f-a,t.top+d+p+f>u&&(i>0||u>s(i))&&(t.top+=d+p+f))}},flipfit:{left:function(){t.ui.position.flip.left.apply(this,arguments),t.ui.position.fit.left.apply(this,arguments)},top:function(){t.ui.position.flip.top.apply(this,arguments),t.ui.position.fit.top.apply(this,arguments)}}},function(){var e,i,n,o,r,s=document.getElementsByTagName("body")[0],l=document.createElement("div");for(r in e=document.createElement(s?"div":"body"),n={visibility:"hidden",width:0,height:0,border:0,margin:0,background:"none"},s&&t.extend(n,{position:"absolute",left:"-1000px",top:"-1000px"}),n)e.style[r]=n[r];e.appendChild(l),(i=s||document.documentElement).insertBefore(e,i.firstChild),l.style.cssText="position: absolute; left: 10.7432222px;",o=t(l).offset().left,t.support.offsetFractions=o>10&&11>o,e.innerHTML="",i.removeChild(e)}()}(jQuery),function(t){t.widget("ui.draggable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"drag",options:{addClasses:!0,appendTo:"parent",axis:!1,connectToSortable:!1,containment:!1,cursor:"auto",cursorAt:!1,grid:!1,handle:!1,helper:"original",iframeFix:!1,opacity:!1,refreshPositions:!1,revert:!1,revertDuration:500,scope:"default",scroll:!0,scrollSensitivity:20,scrollSpeed:20,snap:!1,snapMode:"both",snapTolerance:20,stack:!1,zIndex:!1,drag:null,start:null,stop:null},_create:function(){"original"!==this.options.helper||/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative"),this.options.addClasses&&this.element.addClass("ui-draggable"),this.options.disabled&&this.element.addClass("ui-draggable-disabled"),this._mouseInit()},_destroy:function(){this.element.removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled"),this._mouseDestroy()},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||t(e.target).closest(".ui-resizable-handle").length>0)&&(this.handle=this._getHandle(e),!!this.handle&&(t(!0===i.iframeFix?"iframe":i.iframeFix).each((function(){t("
").css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1e3}).css(t(this).offset()).appendTo("body")})),!0))},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this.helper.addClass("ui-draggable-dragging"),this._cacheHelperProportions(),t.ui.ddmanager&&(t.ui.ddmanager.current=this),this._cacheMargins(),this.cssPosition=this.helper.css("position"),this.scrollParent=this.helper.scrollParent(),this.offsetParent=this.helper.offsetParent(),this.offsetParentCssPosition=this.offsetParent.css("position"),this.offset=this.positionAbs=this.element.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},this.offset.scroll=!1,t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.originalPosition=this.position=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,i.cursorAt&&this._adjustOffsetFromHelper(i.cursorAt),this._setContainment(),!1===this._trigger("start",e)?(this._clear(),!1):(this._cacheHelperProportions(),t.ui.ddmanager&&!i.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this._mouseDrag(e,!0),t.ui.ddmanager&&t.ui.ddmanager.dragStart(this,e),!0)},_mouseDrag:function(e,i){if("fixed"===this.offsetParentCssPosition&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),!i){var n=this._uiHash();if(!1===this._trigger("drag",e,n))return this._mouseUp({}),!1;this.position=n.position}return this.options.axis&&"y"===this.options.axis||(this.helper[0].style.left=this.position.left+"px"),this.options.axis&&"x"===this.options.axis||(this.helper[0].style.top=this.position.top+"px"),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),!1},_mouseStop:function(e){var i=this,n=!1;return t.ui.ddmanager&&!this.options.dropBehaviour&&(n=t.ui.ddmanager.drop(this,e)),this.dropped&&(n=this.dropped,this.dropped=!1),!("original"===this.options.helper&&!t.contains(this.element[0].ownerDocument,this.element[0]))&&("invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||t.isFunction(this.options.revert)&&this.options.revert.call(this.element,n)?t(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),(function(){!1!==i._trigger("stop",e)&&i._clear()})):!1!==this._trigger("stop",e)&&this._clear(),!1)},_mouseUp:function(e){return t("div.ui-draggable-iframeFix").each((function(){this.parentNode.removeChild(this)})),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp({}):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element;return n.parents("body").length||n.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n[0]===this.element[0]||/(fixed|absolute)/.test(n.css("position"))||n.css("position","absolute"),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.element.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.element.css("marginLeft"),10)||0,top:parseInt(this.element.css("marginTop"),10)||0,right:parseInt(this.element.css("marginRight"),10)||0,bottom:parseInt(this.element.css("marginBottom"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;return o.containment?"window"===o.containment?void(this.containment=[t(window).scrollLeft()-this.offset.relative.left-this.offset.parent.left,t(window).scrollTop()-this.offset.relative.top-this.offset.parent.top,t(window).scrollLeft()+t(window).width()-this.helperProportions.width-this.margins.left,t(window).scrollTop()+(t(window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):"document"===o.containment?void(this.containment=[0,0,t(document).width()-this.helperProportions.width-this.margins.left,(t(document).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]):o.containment.constructor===Array?void(this.containment=o.containment):("parent"===o.containment&&(o.containment=this.helper[0].parentNode),void((n=(i=t(o.containment))[0])&&(e="hidden"!==i.css("overflow"),this.containment=[(parseInt(i.css("borderLeftWidth"),10)||0)+(parseInt(i.css("paddingLeft"),10)||0),(parseInt(i.css("borderTopWidth"),10)||0)+(parseInt(i.css("paddingTop"),10)||0),(e?Math.max(n.scrollWidth,n.offsetWidth):n.offsetWidth)-(parseInt(i.css("borderRightWidth"),10)||0)-(parseInt(i.css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left-this.margins.right,(e?Math.max(n.scrollHeight,n.offsetHeight):n.offsetHeight)-(parseInt(i.css("borderBottomWidth"),10)||0)-(parseInt(i.css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top-this.margins.bottom],this.relative_container=i))):void(this.containment=null)},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;return this.offset.scroll||(this.offset.scroll={top:o.scrollTop(),left:o.scrollLeft()}),{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top)*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)*n}},_generatePosition:function(e){var i,n,o,r,s=this.options,l="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=e.pageX,c=e.pageY;return this.offset.scroll||(this.offset.scroll={top:l.scrollTop(),left:l.scrollLeft()}),this.originalPosition&&(this.containment&&(this.relative_container?(n=this.relative_container.offset(),i=[this.containment[0]+n.left,this.containment[1]+n.top,this.containment[2]+n.left,this.containment[3]+n.top]):i=this.containment,e.pageX-this.offset.click.lefti[2]&&(a=i[2]+this.offset.click.left),e.pageY-this.offset.click.top>i[3]&&(c=i[3]+this.offset.click.top)),s.grid&&(o=s.grid[1]?this.originalPageY+Math.round((c-this.originalPageY)/s.grid[1])*s.grid[1]:this.originalPageY,c=i?o-this.offset.click.top>=i[1]||o-this.offset.click.top>i[3]?o:o-this.offset.click.top>=i[1]?o-s.grid[1]:o+s.grid[1]:o,r=s.grid[0]?this.originalPageX+Math.round((a-this.originalPageX)/s.grid[0])*s.grid[0]:this.originalPageX,a=i?r-this.offset.click.left>=i[0]||r-this.offset.click.left>i[2]?r:r-this.offset.click.left>=i[0]?r-s.grid[0]:r+s.grid[0]:r)),{top:c-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():this.offset.scroll.top),left:a-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():this.offset.scroll.left)}},_clear:function(){this.helper.removeClass("ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n]),"drag"===e&&(this.positionAbs=this._convertPositionTo("absolute")),t.Widget.prototype._trigger.call(this,e,i,n)},plugins:{},_uiHash:function(){return{helper:this.helper,position:this.position,originalPosition:this.originalPosition,offset:this.positionAbs}}}),t.ui.plugin.add("draggable","connectToSortable",{start:function(e,i){var n=t(this).data("ui-draggable"),o=n.options,r=t.extend({},i,{item:n.element});n.sortables=[],t(o.connectToSortable).each((function(){var i=t.data(this,"ui-sortable");i&&!i.options.disabled&&(n.sortables.push({instance:i,shouldRevert:i.options.revert}),i.refreshPositions(),i._trigger("activate",e,r))}))},stop:function(e,i){var n=t(this).data("ui-draggable"),o=t.extend({},i,{item:n.element});t.each(n.sortables,(function(){this.instance.isOver?(this.instance.isOver=0,n.cancelHelperRemoval=!0,this.instance.cancelHelperRemoval=!1,this.shouldRevert&&(this.instance.options.revert=this.shouldRevert),this.instance._mouseStop(e),this.instance.options.helper=this.instance.options._helper,"original"===n.options.helper&&this.instance.currentItem.css({top:"auto",left:"auto"})):(this.instance.cancelHelperRemoval=!1,this.instance._trigger("deactivate",e,o))}))},drag:function(e,i){var n=t(this).data("ui-draggable"),o=this;t.each(n.sortables,(function(){var r=!1,s=this;this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this.instance._intersectsWith(this.instance.containerCache)&&(r=!0,t.each(n.sortables,(function(){return this.instance.positionAbs=n.positionAbs,this.instance.helperProportions=n.helperProportions,this.instance.offset.click=n.offset.click,this!==s&&this.instance._intersectsWith(this.instance.containerCache)&&t.contains(s.instance.element[0],this.instance.element[0])&&(r=!1),r}))),r?(this.instance.isOver||(this.instance.isOver=1,this.instance.currentItem=t(o).clone().removeAttr("id").appendTo(this.instance.element).data("ui-sortable-item",!0),this.instance.options._helper=this.instance.options.helper,this.instance.options.helper=function(){return i.helper[0]},e.target=this.instance.currentItem[0],this.instance._mouseCapture(e,!0),this.instance._mouseStart(e,!0,!0),this.instance.offset.click.top=n.offset.click.top,this.instance.offset.click.left=n.offset.click.left,this.instance.offset.parent.left-=n.offset.parent.left-this.instance.offset.parent.left,this.instance.offset.parent.top-=n.offset.parent.top-this.instance.offset.parent.top,n._trigger("toSortable",e),n.dropped=this.instance.element,n.currentItem=n.element,this.instance.fromOutside=n),this.instance.currentItem&&this.instance._mouseDrag(e)):this.instance.isOver&&(this.instance.isOver=0,this.instance.cancelHelperRemoval=!0,this.instance.options.revert=!1,this.instance._trigger("out",e,this.instance._uiHash(this.instance)),this.instance._mouseStop(e,!0),this.instance.options.helper=this.instance.options._helper,this.instance.currentItem.remove(),this.instance.placeholder&&this.instance.placeholder.remove(),n._trigger("fromSortable",e),n.dropped=!1)}))}}),t.ui.plugin.add("draggable","cursor",{start:function(){var e=t("body"),i=t(this).data("ui-draggable").options;e.css("cursor")&&(i._cursor=e.css("cursor")),e.css("cursor",i.cursor)},stop:function(){var e=t(this).data("ui-draggable").options;e._cursor&&t("body").css("cursor",e._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("opacity")&&(o._opacity=n.css("opacity")),n.css("opacity",o.opacity)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(){var e=t(this).data("ui-draggable");e.scrollParent[0]!==document&&"HTML"!==e.scrollParent[0].tagName&&(e.overflowOffset=e.scrollParent.offset())},drag:function(e){var i=t(this).data("ui-draggable"),n=i.options,o=!1;i.scrollParent[0]!==document&&"HTML"!==i.scrollParent[0].tagName?(n.axis&&"x"===n.axis||(i.overflowOffset.top+i.scrollParent[0].offsetHeight-e.pageY=0;u--)a=(l=p.snapElements[u].left)+p.snapElements[u].width,h=(c=p.snapElements[u].top)+p.snapElements[u].height,l-m>v||g>a+m||c-m>b||y>h+m||!t.contains(p.snapElements[u].item.ownerDocument,p.snapElements[u].item)?(p.snapElements[u].snapping&&p.options.snap.release&&p.options.snap.release.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=!1):("inner"!==f.snapMode&&(n=m>=Math.abs(c-b),o=m>=Math.abs(h-y),r=m>=Math.abs(l-v),s=m>=Math.abs(a-g),n&&(i.position.top=p._convertPositionTo("relative",{top:c-p.helperProportions.height,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h,left:0}).top-p.margins.top),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l-p.helperProportions.width}).left-p.margins.left),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a}).left-p.margins.left)),d=n||o||r||s,"outer"!==f.snapMode&&(n=m>=Math.abs(c-y),o=m>=Math.abs(h-b),r=m>=Math.abs(l-g),s=m>=Math.abs(a-v),n&&(i.position.top=p._convertPositionTo("relative",{top:c,left:0}).top-p.margins.top),o&&(i.position.top=p._convertPositionTo("relative",{top:h-p.helperProportions.height,left:0}).top-p.margins.top),r&&(i.position.left=p._convertPositionTo("relative",{top:0,left:l}).left-p.margins.left),s&&(i.position.left=p._convertPositionTo("relative",{top:0,left:a-p.helperProportions.width}).left-p.margins.left)),!p.snapElements[u].snapping&&(n||o||r||s||d)&&p.options.snap.snap&&p.options.snap.snap.call(p.element,e,t.extend(p._uiHash(),{snapItem:p.snapElements[u].item})),p.snapElements[u].snapping=n||o||r||s||d)}}),t.ui.plugin.add("draggable","stack",{start:function(){var e,i=this.data("ui-draggable").options,n=t.makeArray(t(i.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));n.length&&(e=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each((function(i){t(this).css("zIndex",e+i)})),this.css("zIndex",e+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i){var n=t(i.helper),o=t(this).data("ui-draggable").options;n.css("zIndex")&&(o._zIndex=n.css("zIndex")),n.css("zIndex",o.zIndex)},stop:function(e,i){var n=t(this).data("ui-draggable").options;n._zIndex&&t(i.helper).css("zIndex",n._zIndex)}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}t.widget("ui.droppable",{version:"1.10.3",widgetEventPrefix:"drop",options:{accept:"*",activeClass:!1,addClasses:!0,greedy:!1,hoverClass:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept=t.isFunction(i)?i:function(t){return t.is(i)},this.proportions={width:this.element[0].offsetWidth,height:this.element[0].offsetHeight},t.ui.ddmanager.droppables[e.scope]=t.ui.ddmanager.droppables[e.scope]||[],t.ui.ddmanager.droppables[e.scope].push(this),e.addClasses&&this.element.addClass("ui-droppable")},_destroy:function(){for(var e=0,i=t.ui.ddmanager.droppables[this.options.scope];i.length>e;e++)i[e]===this&&i.splice(e,1);this.element.removeClass("ui-droppable ui-droppable-disabled")},_setOption:function(e,i){"accept"===e&&(this.accept=t.isFunction(i)?i:function(t){return t.is(i)}),t.Widget.prototype._setOption.apply(this,arguments)},_activate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.addClass(this.options.activeClass),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this.options.activeClass&&this.element.removeClass(this.options.activeClass),i&&this._trigger("deactivate",e,this.ui(i))},_over:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.addClass(this.options.hoverClass),this._trigger("over",e,this.ui(i)))},_out:function(e){var i=t.ui.ddmanager.current;i&&(i.currentItem||i.element)[0]!==this.element[0]&&this.accept.call(this.element[0],i.currentItem||i.element)&&(this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,o=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var e=t.data(this,"ui-droppable");return e.options.greedy&&!e.options.disabled&&e.options.scope===n.options.scope&&e.accept.call(e.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(e,{offset:e.element.offset()}),e.options.tolerance)?(o=!0,!1):void 0})),!o&&(!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this.options.activeClass&&this.element.removeClass(this.options.activeClass),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass),this._trigger("drop",e,this.ui(n)),this.element)))},ui:function(t){return{draggable:t.currentItem||t.element,helper:t.helper,position:t.position,offset:t.positionAbs}}}),t.ui.intersect=function(t,i,n){if(!i.offset)return!1;var o,r=(t.positionAbs||t.position.absolute).left,s=r+t.helperProportions.width,l=(t.positionAbs||t.position.absolute).top,a=l+t.helperProportions.height,c=i.offset.left,h=c+i.proportions.width,u=i.offset.top,d=u+i.proportions.height;switch(n){case"fit":return r>=c&&h>=s&&l>=u&&d>=a;case"intersect":return r+t.helperProportions.width/2>c&&h>s-t.helperProportions.width/2&&l+t.helperProportions.height/2>u&&d>a-t.helperProportions.height/2;case"pointer":return o=(t.positionAbs||t.position.absolute).left+(t.clickOffset||t.offset.click).left,e((t.positionAbs||t.position.absolute).top+(t.clickOffset||t.offset.click).top,u,i.proportions.height)&&e(o,c,i.proportions.width);case"touch":return(l>=u&&d>=l||a>=u&&d>=a||u>l&&a>d)&&(r>=c&&h>=r||s>=c&&h>=s||c>r&&s>h);default:return!1}},t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,o,r=t.ui.ddmanager.droppables[e.options.scope]||[],s=i?i.type:null,l=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;r.length>n;n++)if(!(r[n].options.disabled||e&&!r[n].accept.call(r[n].element[0],e.currentItem||e.element))){for(o=0;l.length>o;o++)if(l[o]===r[n].element[0]){r[n].proportions.height=0;continue t}r[n].visible="none"!==r[n].element.css("display"),r[n].visible&&("mousedown"===s&&r[n]._activate.call(r[n],i),r[n].offset=r[n].element.offset(),r[n].proportions={width:r[n].element[0].offsetWidth,height:r[n].element[0].offsetHeight})}},drop:function(e,i){var n=!1;return t.each((t.ui.ddmanager.droppables[e.options.scope]||[]).slice(),(function(){this.options&&(!this.options.disabled&&this.visible&&t.ui.intersect(e,this,this.options.tolerance)&&(n=this._drop.call(this,i)||n),!this.options.disabled&&this.visible&&this.accept.call(this.element[0],e.currentItem||e.element)&&(this.isout=!0,this.isover=!1,this._deactivate.call(this,i)))})),n},dragStart:function(e,i){e.element.parentsUntil("body").bind("scroll.droppable",(function(){e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}))},drag:function(e,i){e.options.refreshPositions&&t.ui.ddmanager.prepareOffsets(e,i),t.each(t.ui.ddmanager.droppables[e.options.scope]||[],(function(){if(!this.options.disabled&&!this.greedyChild&&this.visible){var n,o,r,s=t.ui.intersect(e,this,this.options.tolerance),l=!s&&this.isover?"isout":s&&!this.isover?"isover":null;l&&(this.options.greedy&&(o=this.options.scope,(r=this.element.parents(":data(ui-droppable)").filter((function(){return t.data(this,"ui-droppable").options.scope===o}))).length&&((n=t.data(r[0],"ui-droppable")).greedyChild="isover"===l)),n&&"isover"===l&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[l]=!0,this["isout"===l?"isover":"isout"]=!1,this["isover"===l?"_over":"_out"].call(this,i),n&&"isout"===l&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}}))},dragStop:function(e,i){e.element.parentsUntil("body").unbind("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}}}(jQuery),function(t){function e(t){return parseInt(t,10)||0}function i(t){return!isNaN(parseInt(t,10))}t.widget("ui.resizable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,containment:!1,ghost:!1,grid:!1,handles:"e,s,se",helper:!1,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:90,resize:null,start:null,stop:null},_create:function(){var e,i,n,o,r=this,s=this.options;if(this.element.addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!s.aspectRatio,aspectRatio:s.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:s.helper||s.ghost||s.animate?s.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/canvas|textarea|input|select|button|img/i)&&(this.element.wrap(t("
").css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")})),this.element=this.element.parent().data("ui-resizable",this.element.data("ui-resizable")),this.elementIsWrapper=!0,this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")}),this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0}),this.originalResizeStyle=this.originalElement.css("resize"),this.originalElement.css("resize","none"),this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"})),this.originalElement.css({margin:this.originalElement.css("margin")}),this._proportionallyResize()),this.handles=s.handles||(t(".ui-resizable-handle",this.element).length?{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"}:"e,s,se"),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),e=this.handles.split(","),this.handles={},i=0;e.length>i;i++)n=t.trim(e[i]),(o=t("
")).css({zIndex:s.zIndex}),"se"===n&&o.addClass("ui-icon ui-icon-gripsmall-diagonal-se"),this.handles[n]=".ui-resizable-"+n,this.element.append(o);this._renderAxis=function(e){var i,n,o,r;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String&&(this.handles[i]=t(this.handles[i],this.element).show()),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)&&(n=t(this.handles[i],this.element),r=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),o=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(o,r),this._proportionallyResize()),t(this.handles[i]).length},this._renderAxis(this.element),this._handles=t(".ui-resizable-handle",this.element).disableSelection(),this._handles.mouseover((function(){r.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),r.axis=o&&o[1]?o[1]:"se")})),s.autoHide&&(this._handles.hide(),t(this.element).addClass("ui-resizable-autohide").mouseenter((function(){s.disabled||(t(this).removeClass("ui-resizable-autohide"),r._handles.show())})).mouseleave((function(){s.disabled||r.resizing||(t(this).addClass("ui-resizable-autohide"),r._handles.hide())}))),this._mouseInit()},_destroy:function(){this._mouseDestroy();var e,i=function(e){t(e).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").removeData("ui-resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};return this.elementIsWrapper&&(i(this.element),e=this.element,this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")}).insertAfter(e),e.remove()),this.originalElement.css("resize",this.originalResizeStyle),i(this.originalElement),this},_mouseCapture:function(e){var i,n,o=!1;for(i in this.handles)((n=t(this.handles[i])[0])===e.target||t.contains(n,e.target))&&(o=!0);return!this.options.disabled&&o},_mouseStart:function(i){var n,o,r,s=this.options,l=this.element.position(),a=this.element;return this.resizing=!0,/absolute/.test(a.css("position"))?a.css({position:"absolute",top:a.css("top"),left:a.css("left")}):a.is(".ui-draggable")&&a.css({position:"absolute",top:l.top,left:l.left}),this._renderProxy(),n=e(this.helper.css("left")),o=e(this.helper.css("top")),s.containment&&(n+=t(s.containment).scrollLeft()||0,o+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:n,top:o},this.size=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalSize=this._helper?{width:a.outerWidth(),height:a.outerHeight()}:{width:a.width(),height:a.height()},this.originalPosition={left:n,top:o},this.sizeDiff={width:a.outerWidth()-a.width(),height:a.outerHeight()-a.height()},this.originalMousePosition={left:i.pageX,top:i.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,r=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===r?this.axis+"-resize":r),a.addClass("ui-resizable-resizing"),this._propagate("start",i),!0},_mouseDrag:function(e){var i,n=this.helper,o={},r=this.originalMousePosition,s=this.axis,l=this.position.top,a=this.position.left,c=this.size.width,h=this.size.height,u=e.pageX-r.left||0,d=e.pageY-r.top||0,p=this._change[s];return!!p&&(i=p.apply(this,[e,u,d]),this._updateVirtualBoundaries(e.shiftKey),(this._aspectRatio||e.shiftKey)&&(i=this._updateRatio(i,e)),i=this._respectSize(i,e),this._updateCache(i),this._propagate("resize",e),this.position.top!==l&&(o.top=this.position.top+"px"),this.position.left!==a&&(o.left=this.position.left+"px"),this.size.width!==c&&(o.width=this.size.width+"px"),this.size.height!==h&&(o.height=this.size.height+"px"),n.css(o),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(o)||this._trigger("resize",e,this.ui()),!1)},_mouseStop:function(e){this.resizing=!1;var i,n,o,r,s,l,a,c=this.options,h=this;return this._helper&&(o=(n=(i=this._proportionallyResizeElements).length&&/textarea/i.test(i[0].nodeName))&&t.ui.hasScroll(i[0],"left")?0:h.sizeDiff.height,r=n?0:h.sizeDiff.width,s={width:h.helper.width()-r,height:h.helper.height()-o},l=parseInt(h.element.css("left"),10)+(h.position.left-h.originalPosition.left)||null,a=parseInt(h.element.css("top"),10)+(h.position.top-h.originalPosition.top)||null,c.animate||this.element.css(t.extend(s,{top:a,left:l})),h.helper.height(h.size.height),h.helper.width(h.size.width),this._helper&&!c.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this.element.removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updateVirtualBoundaries:function(t){var e,n,o,r,s,l=this.options;s={minWidth:i(l.minWidth)?l.minWidth:0,maxWidth:i(l.maxWidth)?l.maxWidth:1/0,minHeight:i(l.minHeight)?l.minHeight:0,maxHeight:i(l.maxHeight)?l.maxHeight:1/0},(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,o=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,r=s.maxWidth/this.aspectRatio,e>s.minWidth&&(s.minWidth=e),o>s.minHeight&&(s.minHeight=o),s.maxWidth>n&&(s.maxWidth=n),s.maxHeight>r&&(s.maxHeight=r)),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),i(t.left)&&(this.position.left=t.left),i(t.top)&&(this.position.top=t.top),i(t.height)&&(this.size.height=t.height),i(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,n=this.size,o=this.axis;return i(t.height)?t.width=t.height*this.aspectRatio:i(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===o&&(t.left=e.left+(n.width-t.width),t.top=null),"nw"===o&&(t.top=e.top+(n.height-t.height),t.left=e.left+(n.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,n=this.axis,o=i(t.width)&&e.maxWidth&&e.maxWidtht.width,l=i(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,c=this.position.top+this.size.height,h=/sw|nw|w/.test(n),u=/nw|ne|n/.test(n);return s&&(t.width=e.minWidth),l&&(t.height=e.minHeight),o&&(t.width=e.maxWidth),r&&(t.height=e.maxHeight),s&&h&&(t.left=a-e.minWidth),o&&h&&(t.left=a-e.maxWidth),l&&u&&(t.top=c-e.minHeight),r&&u&&(t.top=c-e.maxHeight),t.width||t.height||t.left||!t.top?t.width||t.height||t.top||!t.left||(t.left=null):t.top=null,t},_proportionallyResize:function(){if(this._proportionallyResizeElements.length){var t,e,i,n,o,r=this.helper||this.element;for(t=0;this._proportionallyResizeElements.length>t;t++){if(o=this._proportionallyResizeElements[t],!this.borderDif)for(this.borderDif=[],i=[o.css("borderTopWidth"),o.css("borderRightWidth"),o.css("borderBottomWidth"),o.css("borderLeftWidth")],n=[o.css("paddingTop"),o.css("paddingRight"),o.css("paddingBottom"),o.css("paddingLeft")],e=0;i.length>e;e++)this.borderDif[e]=(parseInt(i[e],10)||0)+(parseInt(n[e],10)||0);o.css({height:r.height()-this.borderDif[0]-this.borderDif[2]||0,width:r.width()-this.borderDif[1]-this.borderDif[3]||0})}}},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("
"),this.helper.addClass(this._helper).css({width:this.element.outerWidth()-1,height:this.element.outerHeight()-1,position:"absolute",left:this.elementOffset.left+"px",top:this.elementOffset.top+"px",zIndex:++i.zIndex}),this.helper.appendTo("body").disableSelection()):this.helper=this.element},_change:{e:function(t,e){return{width:this.originalSize.width+e}},w:function(t,e){var i=this.originalSize;return{left:this.originalPosition.left+e,width:i.width-e}},n:function(t,e,i){var n=this.originalSize;return{top:this.originalPosition.top+i,height:n.height-i}},s:function(t,e,i){return{height:this.originalSize.height+i}},se:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},sw:function(e,i,n){return t.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[e,i,n]))},ne:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[e,i,n]))},nw:function(e,i,n){return t.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[e,i,n]))}},_propagate:function(e,i){t.ui.plugin.call(this,e,[i,this.ui()]),"resize"!==e&&this._trigger(e,i,this.ui())},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}),t.ui.plugin.add("resizable","animate",{stop:function(e){var i=t(this).data("ui-resizable"),n=i.options,o=i._proportionallyResizeElements,r=o.length&&/textarea/i.test(o[0].nodeName),s=r&&t.ui.hasScroll(o[0],"left")?0:i.sizeDiff.height,l=r?0:i.sizeDiff.width,a={width:i.size.width-l,height:i.size.height-s},c=parseInt(i.element.css("left"),10)+(i.position.left-i.originalPosition.left)||null,h=parseInt(i.element.css("top"),10)+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(a,h&&c?{top:h,left:c}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseInt(i.element.css("width"),10),height:parseInt(i.element.css("height"),10),top:parseInt(i.element.css("top"),10),left:parseInt(i.element.css("left"),10)};o&&o.length&&t(o[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var i,n,o,r,s,l,a,c=t(this).data("ui-resizable"),h=c.options,u=c.element,d=h.containment,p=d instanceof t?d.get(0):/parent/.test(d)?u.parent().get(0):d;p&&(c.containerElement=t(p),/document/.test(d)||d===document?(c.containerOffset={left:0,top:0},c.containerPosition={left:0,top:0},c.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(i=t(p),n=[],t(["Top","Right","Left","Bottom"]).each((function(t,o){n[t]=e(i.css("padding"+o))})),c.containerOffset=i.offset(),c.containerPosition=i.position(),c.containerSize={height:i.innerHeight()-n[3],width:i.innerWidth()-n[1]},o=c.containerOffset,r=c.containerSize.height,s=c.containerSize.width,l=t.ui.hasScroll(p,"left")?p.scrollWidth:s,a=t.ui.hasScroll(p)?p.scrollHeight:r,c.parentData={element:p,left:o.left,top:o.top,width:l,height:a}))},resize:function(e){var i,n,o,r,s=t(this).data("ui-resizable"),l=s.options,a=s.containerOffset,c=s.position,h=s._aspectRatio||e.shiftKey,u={top:0,left:0},d=s.containerElement;d[0]!==document&&/static/.test(d.css("position"))&&(u=a),c.left<(s._helper?a.left:0)&&(s.size.width=s.size.width+(s._helper?s.position.left-a.left:s.position.left-u.left),h&&(s.size.height=s.size.width/s.aspectRatio),s.position.left=l.helper?a.left:0),c.top<(s._helper?a.top:0)&&(s.size.height=s.size.height+(s._helper?s.position.top-a.top:s.position.top),h&&(s.size.width=s.size.height*s.aspectRatio),s.position.top=s._helper?a.top:0),s.offset.left=s.parentData.left+s.position.left,s.offset.top=s.parentData.top+s.position.top,i=Math.abs((s._helper,s.offset.left-u.left+s.sizeDiff.width)),n=Math.abs((s._helper?s.offset.top-u.top:s.offset.top-a.top)+s.sizeDiff.height),o=s.containerElement.get(0)===s.element.parent().get(0),r=/relative|absolute/.test(s.containerElement.css("position")),o&&r&&(i-=s.parentData.left),i+s.size.width>=s.parentData.width&&(s.size.width=s.parentData.width-i,h&&(s.size.height=s.size.width/s.aspectRatio)),n+s.size.height>=s.parentData.height&&(s.size.height=s.parentData.height-n,h&&(s.size.width=s.size.height*s.aspectRatio))},stop:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.containerOffset,o=e.containerPosition,r=e.containerElement,s=t(e.helper),l=s.offset(),a=s.outerWidth()-e.sizeDiff.width,c=s.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(r.css("position"))&&t(this).css({left:l.left-o.left-n.left,width:a,height:c}),e._helper&&!i.animate&&/static/.test(r.css("position"))&&t(this).css({left:l.left-o.left-n.left,width:a,height:c})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).data("ui-resizable").options,i=function(e){t(e).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseInt(e.width(),10),height:parseInt(e.height(),10),left:parseInt(e.css("left"),10),top:parseInt(e.css("top"),10)})}))};"object"!=typeof e.alsoResize||e.alsoResize.parentNode?i(e.alsoResize):e.alsoResize.length?(e.alsoResize=e.alsoResize[0],i(e.alsoResize)):t.each(e.alsoResize,(function(t){i(t)}))},resize:function(e,i){var n=t(this).data("ui-resizable"),o=n.options,r=n.originalSize,s=n.originalPosition,l={height:n.size.height-r.height||0,width:n.size.width-r.width||0,top:n.position.top-s.top||0,left:n.position.left-s.left||0},a=function(e,n){t(e).each((function(){var e=t(this),o=t(this).data("ui-resizable-alsoresize"),r={},s=n&&n.length?n:e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(s,(function(t,e){var i=(o[e]||0)+(l[e]||0);i&&i>=0&&(r[e]=i||null)})),e.css(r)}))};"object"!=typeof o.alsoResize||o.alsoResize.nodeType?a(o.alsoResize):t.each(o.alsoResize,(function(t,e){a(t,e)}))},stop:function(){t(this).removeData("resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:n.height,width:n.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass("string"==typeof i.ghost?i.ghost:""),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).data("ui-resizable");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).data("ui-resizable");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e=t(this).data("ui-resizable"),i=e.options,n=e.size,o=e.originalSize,r=e.originalPosition,s=e.axis,l="number"==typeof i.grid?[i.grid,i.grid]:i.grid,a=l[0]||1,c=l[1]||1,h=Math.round((n.width-o.width)/a)*a,u=Math.round((n.height-o.height)/c)*c,d=o.width+h,p=o.height+u,f=i.maxWidth&&d>i.maxWidth,m=i.maxHeight&&p>i.maxHeight,g=i.minWidth&&i.minWidth>d,v=i.minHeight&&i.minHeight>p;i.grid=l,g&&(d+=a),v&&(p+=c),f&&(d-=a),m&&(p-=c),/^(se|s|e)$/.test(s)?(e.size.width=d,e.size.height=p):/^(ne)$/.test(s)?(e.size.width=d,e.size.height=p,e.position.top=r.top-u):/^(sw)$/.test(s)?(e.size.width=d,e.size.height=p,e.position.left=r.left-h):(e.size.width=d,e.size.height=p,e.position.top=r.top-u,e.position.left=r.left-h)}})}(jQuery),function(t){t.widget("ui.selectable",t.ui.mouse,{version:"1.10.3",options:{appendTo:"body",autoRefresh:!0,distance:0,filter:"*",tolerance:"touch",selected:null,selecting:null,start:null,stop:null,unselected:null,unselecting:null},_create:function(){var e,i=this;this.element.addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){(e=t(i.options.filter,i.element[0])).addClass("ui-selectee"),e.each((function(){var e=t(this),i=e.offset();t.data(this,"selectable-item",{element:this,$element:e,left:i.left,top:i.top,right:i.left+e.outerWidth(),bottom:i.top+e.outerHeight(),startselected:!1,selected:e.hasClass("ui-selected"),selecting:e.hasClass("ui-selecting"),unselecting:e.hasClass("ui-unselecting")})}))},this.refresh(),this.selectees=e.addClass("ui-selectee"),this._mouseInit(),this.helper=t("
")},_destroy:function(){this.selectees.removeClass("ui-selectee").removeData("selectable-item"),this.element.removeClass("ui-selectable ui-selectable-disabled"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.options.disabled||(this.selectees=t(n.filter,this.element[0]),this._trigger("start",e),t(n.appendTo).append(this.helper),this.helper.css({left:e.pageX,top:e.pageY,width:0,height:0}),n.autoRefresh&&this.refresh(),this.selectees.filter(".ui-selected").each((function(){var n=t.data(this,"selectable-item");n.startselected=!0,e.metaKey||e.ctrlKey||(n.$element.removeClass("ui-selected"),n.selected=!1,n.$element.addClass("ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))})),t(e.target).parents().addBack().each((function(){var n,o=t.data(this,"selectable-item");return o?(n=!e.metaKey&&!e.ctrlKey||!o.$element.hasClass("ui-selected"),o.$element.removeClass(n?"ui-unselecting":"ui-selected").addClass(n?"ui-selecting":"ui-unselecting"),o.unselecting=!n,o.selecting=n,o.selected=n,n?i._trigger("selecting",e,{selecting:o.element}):i._trigger("unselecting",e,{unselecting:o.element}),!1):void 0})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,o=this.options,r=this.opos[0],s=this.opos[1],l=e.pageX,a=e.pageY;return r>l&&(i=l,l=r,r=i),s>a&&(i=a,a=s,s=i),this.helper.css({left:r,top:s,width:l-r,height:a-s}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),c=!1;i&&i.element!==n.element[0]&&("touch"===o.tolerance?c=!(i.left>l||r>i.right||i.top>a||s>i.bottom):"fit"===o.tolerance&&(c=i.left>r&&l>i.right&&i.top>s&&a>i.bottom),c?(i.selected&&(i.$element.removeClass("ui-selected"),i.selected=!1),i.unselecting&&(i.$element.removeClass("ui-unselecting"),i.unselecting=!1),i.selecting||(i.$element.addClass("ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.$element.addClass("ui-selected"),i.selected=!0):(i.$element.removeClass("ui-selecting"),i.selecting=!1,i.startselected&&(i.$element.addClass("ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(i.$element.removeClass("ui-selected"),i.selected=!1,i.$element.addClass("ui-unselecting"),i.unselecting=!0,n._trigger("unselecting",e,{unselecting:i.element})))))})),!1}},_mouseStop:function(e){var i=this;return this.dragged=!1,t(".ui-unselecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-unselecting"),n.unselecting=!1,n.startselected=!1,i._trigger("unselected",e,{unselected:n.element})})),t(".ui-selecting",this.element[0]).each((function(){var n=t.data(this,"selectable-item");n.$element.removeClass("ui-selecting").addClass("ui-selected"),n.selecting=!1,n.selected=!0,n.startselected=!0,i._trigger("selected",e,{selected:n.element})})),this._trigger("stop",e),this.helper.remove(),!1}})}(jQuery),function(t){function e(t,e,i){return t>e&&e+i>t}function i(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))}t.widget("ui.sortable",t.ui.mouse,{version:"1.10.3",widgetEventPrefix:"sort",ready:!1,options:{appendTo:"parent",axis:!1,connectWith:!1,containment:!1,cursor:"auto",cursorAt:!1,dropOnEmpty:!0,forcePlaceholderSize:!1,forceHelperSize:!1,grid:!1,handle:!1,helper:"original",items:"> *",opacity:!1,placeholder:!1,revert:!1,scroll:!0,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1e3,activate:null,beforeStop:null,change:null,deactivate:null,out:null,over:null,receive:null,remove:null,sort:null,start:null,stop:null,update:null},_create:function(){var t=this.options;this.containerCache={},this.element.addClass("ui-sortable"),this.refresh(),this.floating=!!this.items.length&&("x"===t.axis||i(this.items[0].item)),this.offset=this.element.offset(),this._mouseInit(),this.ready=!0},_destroy:function(){this.element.removeClass("ui-sortable ui-sortable-disabled"),this._mouseDestroy();for(var t=this.items.length-1;t>=0;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_setOption:function(e,i){"disabled"===e?(this.options[e]=i,this.widget().toggleClass("ui-sortable-disabled",!!i)):t.Widget.prototype._setOption.apply(this,arguments)},_mouseCapture:function(e,i){var n=null,o=!1,r=this;return!this.reverting&&(!this.options.disabled&&"static"!==this.options.type&&(this._refreshItems(e),t(e.target).parents().each((function(){return t.data(this,r.widgetName+"-item")===r?(n=t(this),!1):void 0})),t.data(e.target,r.widgetName+"-item")===r&&(n=t(e.target)),!!n&&(!(this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(o=!0)})),!o))&&(this.currentItem=n,this._removeCurrentsFromItems(),!0))))},_mouseStart:function(e,i,n){var o,r,s=this.options;if(this.currentContainer=this,this.refreshPositions(),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),this.scrollParent=this.helper.scrollParent(),this.offset=this.currentItem.offset(),this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left},t.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,s.cursorAt&&this._adjustOffsetFromHelper(s.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),s.containment&&this._setContainment(),s.cursor&&"auto"!==s.cursor&&(r=this.document.find("body"),this.storedCursor=r.css("cursor"),r.css("cursor",s.cursor),this.storedStylesheet=t("").appendTo(r)),s.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",s.opacity)),s.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",s.zIndex)),this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(o=this.containers.length-1;o>=0;o--)this.containers[o]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this.helper.addClass("ui-sortable-helper"),this._mouseDrag(e),!0},_mouseDrag:function(e){var i,n,o,r,s=this.options,l=!1;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),this.lastPositionAbs||(this.lastPositionAbs=this.positionAbs),this.options.scroll&&(this.scrollParent[0]!==document&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-e.pageY=0;i--)if(o=(n=this.items[i]).item[0],(r=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&o!==this.currentItem[0]&&this.placeholder[1===r?"next":"prev"]()[0]!==o&&!t.contains(this.placeholder[0],o)&&("semi-dynamic"!==this.options.type||!t.contains(this.element[0],o))){if(this.direction=1===r?"down":"up","pointer"!==this.options.tolerance&&!this._intersectsWithSides(n))break;this._rearrange(e,n),this._trigger("change",e,this._uiHash());break}return this._contactContainers(e),t.ui.ddmanager&&t.ui.ddmanager.drag(this,e),this._trigger("sort",e,this._uiHash()),this.lastPositionAbs=this.positionAbs,!1},_mouseStop:function(e,i){if(e){if(t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert){var n=this,o=this.placeholder.offset(),r=this.options.axis,s={};r&&"x"!==r||(s.left=o.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollLeft)),r&&"y"!==r||(s.top=o.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===document.body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(s,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))}else this._clear(e,i);return!1}},cancel:function(){if(this.dragging){this._mouseUp({target:null}),"original"===this.options.helper?this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper"):this.currentItem.show();for(var e=this.containers.length-1;e>=0;e--)this.containers[e]._trigger("deactivate",null,this._uiHash(this)),this.containers[e].containerCache.over&&(this.containers[e]._trigger("out",null,this._uiHash(this)),this.containers[e].containerCache.over=0)}return this.placeholder&&(this.placeholder[0].parentNode&&this.placeholder[0].parentNode.removeChild(this.placeholder[0]),"original"!==this.options.helper&&this.helper&&this.helper[0].parentNode&&this.helper.remove(),t.extend(this,{helper:null,dragging:!1,reverting:!1,_noFinalSort:null}),this.domPosition.prev?t(this.domPosition.prev).after(this.currentItem):t(this.domPosition.parent).prepend(this.currentItem)),this},serialize:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},t(i).each((function(){var i=(t(e.item||this).attr(e.attribute||"id")||"").match(e.expression||/(.+)[\-=_](.+)/);i&&n.push((e.key||i[1]+"[]")+"="+(e.key&&e.expression?i[1]:i[2]))})),!n.length&&e.key&&n.push(e.key+"="),n.join("&")},toArray:function(e){var i=this._getItemsAsjQuery(e&&e.connected),n=[];return e=e||{},i.each((function(){n.push(t(e.item||this).attr(e.attribute||"id")||"")})),n},_intersectsWith:function(t){var e=this.positionAbs.left,i=e+this.helperProportions.width,n=this.positionAbs.top,o=n+this.helperProportions.height,r=t.left,s=r+t.width,l=t.top,a=l+t.height,c=this.offset.click.top,h=this.offset.click.left,u="x"===this.options.axis||n+c>l&&a>n+c,d="y"===this.options.axis||e+h>r&&s>e+h,p=u&&d;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?p:e+this.helperProportions.width/2>r&&s>i-this.helperProportions.width/2&&n+this.helperProportions.height/2>l&&a>o-this.helperProportions.height/2},_intersectsWithPointer:function(t){var i="x"===this.options.axis||e(this.positionAbs.top+this.offset.click.top,t.top,t.height),n="y"===this.options.axis||e(this.positionAbs.left+this.offset.click.left,t.left,t.width),o=i&&n,r=this._getDragVerticalDirection(),s=this._getDragHorizontalDirection();return!!o&&(this.floating?s&&"right"===s||"down"===r?2:1:r&&("down"===r?2:1))},_intersectsWithSides:function(t){var i=e(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),n=e(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),o=this._getDragVerticalDirection(),r=this._getDragHorizontalDirection();return this.floating&&r?"right"===r&&n||"left"===r&&!n:o&&("down"===o&&i||"up"===o&&!i)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!==t&&(t>0?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!==t&&(t>0?"right":"left")},refresh:function(t){return this._refreshItems(t),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,o,r,s=[],l=[],a=this._connectWith();if(a&&e)for(i=a.length-1;i>=0;i--)for(n=(o=t(a[i])).length-1;n>=0;n--)(r=t.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&l.push([t.isFunction(r.options.items)?r.options.items.call(r.element):t(r.options.items,r.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),r]);for(l.push([t.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):t(this.options.items,this.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),this]),i=l.length-1;i>=0;i--)l[i][0].each((function(){s.push(this)}));return t(s)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;e.length>i;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,o,r,s,l,a,c,h=this.items,u=[[t.isFunction(this.options.items)?this.options.items.call(this.element[0],e,{item:this.currentItem}):t(this.options.items,this.element),this]],d=this._connectWith();if(d&&this.ready)for(i=d.length-1;i>=0;i--)for(n=(o=t(d[i])).length-1;n>=0;n--)(r=t.data(o[n],this.widgetFullName))&&r!==this&&!r.options.disabled&&(u.push([t.isFunction(r.options.items)?r.options.items.call(r.element[0],e,{item:this.currentItem}):t(r.options.items,r.element),r]),this.containers.push(r));for(i=u.length-1;i>=0;i--)for(s=u[i][1],n=0,c=(l=u[i][0]).length;c>n;n++)(a=t(l[n])).data(this.widgetName+"-item",s),h.push({item:a,instance:s,width:0,height:0,left:0,top:0})},refreshPositions:function(e){var i,n,o,r;for(this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),i=this.items.length-1;i>=0;i--)(n=this.items[i]).instance!==this.currentContainer&&this.currentContainer&&n.item[0]!==this.currentItem[0]||(o=this.options.toleranceElement?t(this.options.toleranceElement,n.item):n.item,e||(n.width=o.outerWidth(),n.height=o.outerHeight()),r=o.offset(),n.left=r.left,n.top=r.top);if(this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(i=this.containers.length-1;i>=0;i--)r=this.containers[i].element.offset(),this.containers[i].containerCache.left=r.left,this.containers[i].containerCache.top=r.top,this.containers[i].containerCache.width=this.containers[i].element.outerWidth(),this.containers[i].containerCache.height=this.containers[i].element.outerHeight();return this},_createPlaceholder:function(e){var i,n=(e=e||this).options;n.placeholder&&n.placeholder.constructor!==String||(i=n.placeholder,n.placeholder={element:function(){var n=e.currentItem[0].nodeName.toLowerCase(),o=t("<"+n+">",e.document[0]).addClass(i||e.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper");return"tr"===n?e.currentItem.children().each((function(){t(" ",e.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(o)})):"img"===n&&o.attr("src",e.currentItem.attr("src")),i||o.css("visibility","hidden"),o},update:function(t,o){(!i||n.forcePlaceholderSize)&&(o.height()||o.height(e.currentItem.innerHeight()-parseInt(e.currentItem.css("paddingTop")||0,10)-parseInt(e.currentItem.css("paddingBottom")||0,10)),o.width()||o.width(e.currentItem.innerWidth()-parseInt(e.currentItem.css("paddingLeft")||0,10)-parseInt(e.currentItem.css("paddingRight")||0,10)))}}),e.placeholder=t(n.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),n.placeholder.update(e,e.placeholder)},_contactContainers:function(n){var o,r,s,l,a,c,h,u,d,p,f=null,m=null;for(o=this.containers.length-1;o>=0;o--)if(!t.contains(this.currentItem[0],this.containers[o].element[0]))if(this._intersectsWith(this.containers[o].containerCache)){if(f&&t.contains(this.containers[o].element[0],f.element[0]))continue;f=this.containers[o],m=o}else this.containers[o].containerCache.over&&(this.containers[o]._trigger("out",n,this._uiHash(this)),this.containers[o].containerCache.over=0);if(f)if(1===this.containers.length)this.containers[m].containerCache.over||(this.containers[m]._trigger("over",n,this._uiHash(this)),this.containers[m].containerCache.over=1);else{for(s=1e4,l=null,a=(p=f.floating||i(this.currentItem))?"left":"top",c=p?"width":"height",h=this.positionAbs[a]+this.offset.click[a],r=this.items.length-1;r>=0;r--)t.contains(this.containers[m].element[0],this.items[r].item[0])&&this.items[r].item[0]!==this.currentItem[0]&&(!p||e(this.positionAbs.top+this.offset.click.top,this.items[r].top,this.items[r].height))&&(u=this.items[r].item.offset()[a],d=!1,Math.abs(u-h)>Math.abs(u+this.items[r][c]-h)&&(d=!0,u+=this.items[r][c]),s>Math.abs(u-h)&&(s=Math.abs(u-h),l=this.items[r],this.direction=d?"up":"down"));if(!l&&!this.options.dropOnEmpty)return;if(this.currentContainer===this.containers[m])return;l?this._rearrange(n,l,null,!0):this._rearrange(n,null,this.containers[m].element,!0),this._trigger("change",n,this._uiHash()),this.containers[m]._trigger("change",n,this._uiHash(this)),this.currentContainer=this.containers[m],this.options.placeholder.update(this.currentContainer,this.placeholder),this.containers[m]._trigger("over",n,this._uiHash(this)),this.containers[m].containerCache.over=1}},_createHelper:function(e){var i=this.options,n=t.isFunction(i.helper)?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem;return n.parents("body").length||t("parent"!==i.appendTo?i.appendTo:this.currentItem[0].parentNode)[0].appendChild(n[0]),n[0]===this.currentItem[0]&&(this._storedCSS={width:this.currentItem[0].style.width,height:this.currentItem[0].style.height,position:this.currentItem.css("position"),top:this.currentItem.css("top"),left:this.currentItem.css("left")}),(!n[0].style.width||i.forceHelperSize)&&n.width(this.currentItem.width()),(!n[0].style.height||i.forceHelperSize)&&n.height(this.currentItem.height()),n},_adjustOffsetFromHelper:function(e){"string"==typeof e&&(e=e.split(" ")),t.isArray(e)&&(e={left:+e[0],top:+e[1]||0}),"left"in e&&(this.offset.click.left=e.left+this.margins.left),"right"in e&&(this.offset.click.left=this.helperProportions.width-e.right+this.margins.left),"top"in e&&(this.offset.click.top=e.top+this.margins.top),"bottom"in e&&(this.offset.click.top=this.helperProportions.height-e.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),(this.offsetParent[0]===document.body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie)&&(e={top:0,left:0}),{top:e.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:e.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if("relative"===this.cssPosition){var t=this.currentItem.position();return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:t.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}return{top:0,left:0}},_cacheMargins:function(){this.margins={left:parseInt(this.currentItem.css("marginLeft"),10)||0,top:parseInt(this.currentItem.css("marginTop"),10)||0}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e,i,n,o=this.options;"parent"===o.containment&&(o.containment=this.helper[0].parentNode),("document"===o.containment||"window"===o.containment)&&(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,t("document"===o.containment?document:window).width()-this.helperProportions.width-this.margins.left,(t("document"===o.containment?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(o.containment)||(e=t(o.containment)[0],i=t(o.containment).offset(),n="hidden"!==t(e).css("overflow"),this.containment=[i.left+(parseInt(t(e).css("borderLeftWidth"),10)||0)+(parseInt(t(e).css("paddingLeft"),10)||0)-this.margins.left,i.top+(parseInt(t(e).css("borderTopWidth"),10)||0)+(parseInt(t(e).css("paddingTop"),10)||0)-this.margins.top,i.left+(n?Math.max(e.scrollWidth,e.offsetWidth):e.offsetWidth)-(parseInt(t(e).css("borderLeftWidth"),10)||0)-(parseInt(t(e).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,i.top+(n?Math.max(e.scrollHeight,e.offsetHeight):e.offsetHeight)-(parseInt(t(e).css("borderTopWidth"),10)||0)-(parseInt(t(e).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top])},_convertPositionTo:function(e,i){i||(i=this.position);var n="absolute"===e?1:-1,o="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.scrollLeft())*n}},_generatePosition:function(e){var i,n,o=this.options,r=e.pageX,s=e.pageY,l="absolute"!==this.cssPosition||this.scrollParent[0]!==document&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,a=/(html|body)/i.test(l[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==document&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.leftthis.containment[2]&&(r=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),o.grid&&(i=this.originalPageY+Math.round((s-this.originalPageY)/o.grid[1])*o.grid[1],s=this.containment?i-this.offset.click.top>=this.containment[1]&&i-this.offset.click.top<=this.containment[3]?i:i-this.offset.click.top>=this.containment[1]?i-o.grid[1]:i+o.grid[1]:i,n=this.originalPageX+Math.round((r-this.originalPageX)/o.grid[0])*o.grid[0],r=this.containment?n-this.offset.click.left>=this.containment[0]&&n-this.offset.click.left<=this.containment[2]?n:n-this.offset.click.left>=this.containment[0]?n-o.grid[0]:n+o.grid[0]:n)),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():a?0:l.scrollTop()),left:r-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():a?0:l.scrollLeft())}},_rearrange:function(t,e,i,n){i?i[0].appendChild(this.placeholder[0]):e.item[0].parentNode.insertBefore(this.placeholder[0],"down"===this.direction?e.item[0]:e.item[0].nextSibling),this.counter=this.counter?++this.counter:1;var o=this.counter;this._delay((function(){o===this.counter&&this.refreshPositions(!n)}))},_clear:function(t,e){this.reverting=!1;var i,n=[];if(!this._noFinalSort&&this.currentItem.parent().length&&this.placeholder.before(this.currentItem),this._noFinalSort=null,this.helper[0]===this.currentItem[0]){for(i in this._storedCSS)("auto"===this._storedCSS[i]||"static"===this._storedCSS[i])&&(this._storedCSS[i]="");this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else this.currentItem.show();for(this.fromOutside&&!e&&n.push((function(t){this._trigger("receive",t,this._uiHash(this.fromOutside))})),!this.fromOutside&&this.domPosition.prev===this.currentItem.prev().not(".ui-sortable-helper")[0]&&this.domPosition.parent===this.currentItem.parent()[0]||e||n.push((function(t){this._trigger("update",t,this._uiHash())})),this!==this.currentContainer&&(e||(n.push((function(t){this._trigger("remove",t,this._uiHash())})),n.push(function(t){return function(e){t._trigger("receive",e,this._uiHash(this))}}.call(this,this.currentContainer)),n.push(function(t){return function(e){t._trigger("update",e,this._uiHash(this))}}.call(this,this.currentContainer)))),i=this.containers.length-1;i>=0;i--)e||n.push(function(t){return function(e){t._trigger("deactivate",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(function(t){return function(e){t._trigger("out",e,this._uiHash(this))}}.call(this,this.containers[i])),this.containers[i].containerCache.over=0);if(this.storedCursor&&(this.document.find("body").css("cursor",this.storedCursor),this.storedStylesheet.remove()),this._storedOpacity&&this.helper.css("opacity",this._storedOpacity),this._storedZIndex&&this.helper.css("zIndex","auto"===this._storedZIndex?"":this._storedZIndex),this.dragging=!1,this.cancelHelperRemoval){if(!e){for(this._trigger("beforeStop",t,this._uiHash()),i=0;n.length>i;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!1}if(e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null,!e){for(i=0;n.length>i;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!0},_trigger:function(){!1===t.Widget.prototype._trigger.apply(this,arguments)&&this.cancel()},_uiHash:function(e){var i=e||this;return{helper:i.helper,placeholder:i.placeholder||t([]),position:i.position,originalPosition:i.originalPosition,offset:i.positionAbs,item:i.currentItem,sender:e?e.element:null}}})}(jQuery),function(t){var e=0,i={},n={};i.height=i.paddingTop=i.paddingBottom=i.borderTopWidth=i.borderBottomWidth="hide",n.height=n.paddingTop=n.paddingBottom=n.borderTopWidth=n.borderBottomWidth="show",t.widget("ui.accordion",{version:"1.10.3",options:{active:0,animate:{},collapsible:!1,event:"click",header:"> li > :first-child,> :not(li):even",heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this.element.addClass("ui-accordion ui-widget ui-helper-reset").attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),0>e.active&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t(),content:this.active.length?this.active.next():t()}},_createIcons:function(){var e=this.options.icons;e&&(t("").addClass("ui-accordion-header-icon ui-icon "+e.header).prependTo(this.headers),this.active.children(".ui-accordion-header-icon").removeClass(e.header).addClass(e.activeHeader),this.headers.addClass("ui-accordion-icons"))},_destroyIcons:function(){this.headers.removeClass("ui-accordion-icons").children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role"),this.headers.removeClass("ui-accordion-header ui-accordion-header-active ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-state-disabled ui-corner-top").removeAttr("role").removeAttr("aria-selected").removeAttr("aria-controls").removeAttr("tabIndex").each((function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")})),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role").removeAttr("aria-expanded").removeAttr("aria-hidden").removeAttr("aria-labelledby").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active ui-state-disabled").each((function(){/^ui-accordion/.test(this.id)&&this.removeAttribute("id")})),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){return"active"===t?void this._activate(e):("event"===t&&(this.options.event&&this._off(this.headers,this.options.event),this._setupEvents(e)),this._super(t,e),"collapsible"!==t||e||!1!==this.options.active||this._activate(0),"icons"===t&&(this._destroyIcons(),e&&this._createIcons()),void("disabled"===t&&this.headers.add(this.headers.next()).toggleClass("ui-state-disabled",!!e)))},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,o=this.headers.index(e.target),r=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:r=this.headers[(o+1)%n];break;case i.LEFT:case i.UP:r=this.headers[(o-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:r=this.headers[0];break;case i.END:r=this.headers[n-1]}r&&(t(e.target).attr("tabIndex",-1),t(r).attr("tabIndex",0),r.focus(),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().focus()},refresh:function(){var e=this.options;this._processPanels(),!1===e.active&&!0===e.collapsible||!this.headers.length?(e.active=!1,this.active=t()):!1===e.active?this._activate(0):this.active.length&&!t.contains(this.element[0],this.active[0])?this.headers.length===this.headers.find(".ui-state-disabled").length?(e.active=!1,this.active=t()):this._activate(Math.max(0,e.active-1)):e.active=this.headers.index(this.active),this._destroyIcons(),this._refresh()},_processPanels:function(){this.headers=this.element.find(this.options.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all"),this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom").filter(":not(.ui-accordion-content-active)").hide()},_refresh:function(){var i,n=this.options,o=n.heightStyle,r=this.element.parent(),s=this.accordionId="ui-accordion-"+(this.element.attr("id")||++e);this.active=this._findActive(n.active).addClass("ui-accordion-header-active ui-state-active ui-corner-top").removeClass("ui-corner-all"),this.active.next().addClass("ui-accordion-content-active").show(),this.headers.attr("role","tab").each((function(e){var i=t(this),n=i.attr("id"),o=i.next(),r=o.attr("id");n||(n=s+"-header-"+e,i.attr("id",n)),r||(r=s+"-panel-"+e,o.attr("id",r)),i.attr("aria-controls",r),o.attr("aria-labelledby",n)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false",tabIndex:-1}).next().attr({"aria-expanded":"false","aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true",tabIndex:0}).next().attr({"aria-expanded":"true","aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(n.event),"fill"===o?(i=r.height(),this.element.siblings(":visible").each((function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))})),this.headers.each((function(){i-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===o&&(i=0,this.headers.next().each((function(){i=Math.max(i,t(this).css("height","").height())})).height(i))},_activate:function(e){var i=this._findActive(e)[0];i!==this.active[0]&&(i=i||this.active[0],this._eventHandler({target:i,currentTarget:i,preventDefault:t.noop}))},_findActive:function(e){return"number"==typeof e?this.headers.eq(e):t()},_setupEvents:function(e){var i={keydown:"_keydown"};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.headers.add(this.headers.next())),this._on(this.headers,i),this._on(this.headers.next(),{keydown:"_panelKeyDown"}),this._hoverable(this.headers),this._focusable(this.headers)},_eventHandler:function(e){var i=this.options,n=this.active,o=t(e.currentTarget),r=o[0]===n[0],s=r&&i.collapsible,l=s?t():o.next(),a=n.next(),c={oldHeader:n,oldPanel:a,newHeader:s?t():o,newPanel:l};e.preventDefault(),r&&!i.collapsible||!1===this._trigger("beforeActivate",e,c)||(i.active=!s&&this.headers.index(o),this.active=r?t():o,this._toggle(c),n.removeClass("ui-accordion-header-active ui-state-active"),i.icons&&n.children(".ui-accordion-header-icon").removeClass(i.icons.activeHeader).addClass(i.icons.header),r||(o.removeClass("ui-corner-all").addClass("ui-accordion-header-active ui-state-active ui-corner-top"),i.icons&&o.children(".ui-accordion-header-icon").removeClass(i.icons.header).addClass(i.icons.activeHeader),o.next().addClass("ui-accordion-content-active")))},_toggle:function(e){var i=e.newPanel,n=this.prevShow.length?this.prevShow:e.oldPanel;this.prevShow.add(this.prevHide).stop(!0,!0),this.prevShow=i,this.prevHide=n,this.options.animate?this._animate(i,n,e):(n.hide(),i.show(),this._toggleComplete(e)),n.attr({"aria-expanded":"false","aria-hidden":"true"}),n.prev().attr("aria-selected","false"),i.length&&n.length?n.prev().attr("tabIndex",-1):i.length&&this.headers.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),i.attr({"aria-expanded":"true","aria-hidden":"false"}).prev().attr({"aria-selected":"true",tabIndex:0})},_animate:function(t,e,o){var r,s,l,a=this,c=0,h=t.length&&(!e.length||t.index()",options:{appendTo:null,autoFocus:!1,delay:300,minLength:1,position:{my:"left top",at:"left bottom",collision:"none"},source:null,change:null,close:null,focus:null,open:null,response:null,search:null,select:null},pending:0,_create:function(){var e,i,n,o=this.element[0].nodeName.toLowerCase(),r="textarea"===o,s="input"===o;this.isMultiLine=!!r||!s&&this.element.prop("isContentEditable"),this.valueMethod=this.element[r||s?"val":"text"],this.isNewMenu=!0,this.element.addClass("ui-autocomplete-input").attr("autocomplete","off"),this._on(this.element,{keydown:function(o){if(this.element.prop("readOnly"))return e=!0,n=!0,void(i=!0);e=!1,n=!1,i=!1;var r=t.ui.keyCode;switch(o.keyCode){case r.PAGE_UP:e=!0,this._move("previousPage",o);break;case r.PAGE_DOWN:e=!0,this._move("nextPage",o);break;case r.UP:e=!0,this._keyEvent("previous",o);break;case r.DOWN:e=!0,this._keyEvent("next",o);break;case r.ENTER:case r.NUMPAD_ENTER:this.menu.active&&(e=!0,o.preventDefault(),this.menu.select(o));break;case r.TAB:this.menu.active&&this.menu.select(o);break;case r.ESCAPE:this.menu.element.is(":visible")&&(this._value(this.term),this.close(o),o.preventDefault());break;default:i=!0,this._searchTimeout(o)}},keypress:function(n){if(e)return e=!1,void((!this.isMultiLine||this.menu.element.is(":visible"))&&n.preventDefault());if(!i){var o=t.ui.keyCode;switch(n.keyCode){case o.PAGE_UP:this._move("previousPage",n);break;case o.PAGE_DOWN:this._move("nextPage",n);break;case o.UP:this._keyEvent("previous",n);break;case o.DOWN:this._keyEvent("next",n)}}},input:function(t){return n?(n=!1,void t.preventDefault()):void this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){return this.cancelBlur?void delete this.cancelBlur:(clearTimeout(this.searching),this.close(t),void this._change(t))}}),this._initSource(),this.menu=t("
",{class:"select2-results__options select2-results__options--nested"});d.append(a),s.append(l),s.append(d)}else this.template(e,i);return t.data(i,"data",e),i},i.prototype.bind=function(e,i){var n=this,o=e.id+"-results";this.$results.attr("id",o),e.on("results:all",(function(t){n.clear(),n.append(t.data),e.isOpen()&&n.setClasses()})),e.on("results:append",(function(t){n.append(t.data),e.isOpen()&&n.setClasses()})),e.on("query",(function(t){n.hideMessages(),n.showLoading(t)})),e.on("select",(function(){e.isOpen()&&n.setClasses()})),e.on("unselect",(function(){e.isOpen()&&n.setClasses()})),e.on("open",(function(){n.$results.attr("aria-expanded","true"),n.$results.attr("aria-hidden","false"),n.setClasses(),n.ensureHighlightVisible()})),e.on("close",(function(){n.$results.attr("aria-expanded","false"),n.$results.attr("aria-hidden","true"),n.$results.removeAttr("aria-activedescendant")})),e.on("results:toggle",(function(){var t=n.getHighlightedResults();0!==t.length&&t.trigger("mouseup")})),e.on("results:select",(function(){var t=n.getHighlightedResults();if(0!==t.length){var e=t.data("data");"true"==t.attr("aria-selected")?n.trigger("close",{}):n.trigger("select",{data:e})}})),e.on("results:previous",(function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t);if(0!==i){var o=i-1;0===t.length&&(o=0);var r=e.eq(o);r.trigger("mouseenter");var s=n.$results.offset().top,l=r.offset().top,a=n.$results.scrollTop()+(l-s);0===o?n.$results.scrollTop(0):0>l-s&&n.$results.scrollTop(a)}})),e.on("results:next",(function(){var t=n.getHighlightedResults(),e=n.$results.find("[aria-selected]"),i=e.index(t)+1;if(!(i>=e.length)){var o=e.eq(i);o.trigger("mouseenter");var r=n.$results.offset().top+n.$results.outerHeight(!1),s=o.offset().top+o.outerHeight(!1),l=n.$results.scrollTop()+s-r;0===i?n.$results.scrollTop(0):s>r&&n.$results.scrollTop(l)}})),e.on("results:focus",(function(t){t.element.addClass("select2-results__option--highlighted")})),e.on("results:message",(function(t){n.displayMessage(t)})),t.fn.mousewheel&&this.$results.on("mousewheel",(function(t){var e=n.$results.scrollTop(),i=n.$results.get(0).scrollHeight-n.$results.scrollTop()+t.deltaY,o=t.deltaY>0&&e-t.deltaY<=0,r=t.deltaY<0&&i<=n.$results.height();o?(n.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):r&&(n.$results.scrollTop(n.$results.get(0).scrollHeight-n.$results.height()),t.preventDefault(),t.stopPropagation())})),this.$results.on("mouseup",".select2-results__option[aria-selected]",(function(e){var i=t(this),o=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:o}):n.trigger("close",{})):void n.trigger("select",{originalEvent:e,data:o})})),this.$results.on("mouseenter",".select2-results__option[aria-selected]",(function(e){var i=t(this).data("data");n.getHighlightedResults().removeClass("select2-results__option--highlighted"),n.trigger("results:focus",{data:i,element:t(this)})}))},i.prototype.getHighlightedResults=function(){return this.$results.find(".select2-results__option--highlighted")},i.prototype.destroy=function(){this.$results.remove()},i.prototype.ensureHighlightVisible=function(){var t=this.getHighlightedResults();if(0!==t.length){var e=this.$results.find("[aria-selected]").index(t),i=this.$results.offset().top,n=t.offset().top,o=this.$results.scrollTop()+(n-i),r=n-i;o-=2*t.outerHeight(!1),2>=e?this.$results.scrollTop(0):(r>this.$results.outerHeight()||0>r)&&this.$results.scrollTop(o)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),o=this.options.get("escapeMarkup"),r=n(e,i);null==r?i.style.display="none":"string"==typeof r?i.innerHTML=o(r):t(i).append(r)},i})),e.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}})),e.define("select2/selection/base",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,e.Observable),n.prototype.render=function(){var e=t('');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,e},n.prototype.bind=function(t,e){var n=this,o=(t.id,t.id+"-results");this.container=t,this.$selection.on("focus",(function(t){n.trigger("focus",t)})),this.$selection.on("blur",(function(t){n._handleBlur(t)})),this.$selection.on("keydown",(function(t){n.trigger("keypress",t),t.which===i.SPACE&&t.preventDefault()})),t.on("results:focus",(function(t){n.$selection.attr("aria-activedescendant",t.data._resultId)})),t.on("selection:update",(function(t){n.update(t.data)})),t.on("open",(function(){n.$selection.attr("aria-expanded","true"),n.$selection.attr("aria-owns",o),n._attachCloseHandler(t)})),t.on("close",(function(){n.$selection.attr("aria-expanded","false"),n.$selection.removeAttr("aria-activedescendant"),n.$selection.removeAttr("aria-owns"),n.$selection.focus(),n._detachCloseHandler(t)})),t.on("enable",(function(){n.$selection.attr("tabindex",n._tabindex)})),t.on("disable",(function(){n.$selection.attr("tabindex","-1")}))},n.prototype._handleBlur=function(e){var i=this;window.setTimeout((function(){document.activeElement==i.$selection[0]||t.contains(i.$selection[0],document.activeElement)||i.trigger("blur",e)}),1)},n.prototype._attachCloseHandler=function(e){t(document.body).on("mousedown.select2."+e.id,(function(e){var i=t(e.target).closest(".select2");t(".select2.select2-container--open").each((function(){var e=t(this);this!=i[0]&&e.data("element").select2("close")}))}))},n.prototype._detachCloseHandler=function(e){t(document.body).off("mousedown.select2."+e.id)},n.prototype.position=function(t,e){e.find(".selection").append(t)},n.prototype.destroy=function(){this._detachCloseHandler(this.container)},n.prototype.update=function(t){throw new Error("The `update` method must be defined in child classes.")},n})),e.define("select2/selection/single",["jquery","./base","../utils","../keys"],(function(t,e,i,n){function o(){o.__super__.constructor.apply(this,arguments)}return i.Extend(o,e),o.prototype.render=function(){var t=o.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html(''),t},o.prototype.bind=function(t,e){var i=this;o.__super__.bind.apply(this,arguments);var n=t.id+"-container";this.$selection.find(".select2-selection__rendered").attr("id",n),this.$selection.attr("aria-labelledby",n),this.$selection.on("mousedown",(function(t){1===t.which&&i.trigger("toggle",{originalEvent:t})})),this.$selection.on("focus",(function(t){})),this.$selection.on("blur",(function(t){})),t.on("selection:update",(function(t){i.update(t.data)}))},o.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},o.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},o.prototype.selectionContainer=function(){return t("")},o.prototype.update=function(t){if(0!==t.length){var e=t[0],i=this.$selection.find(".select2-selection__rendered"),n=this.display(e,i);i.empty().append(n),i.prop("title",e.title||e.text)}else this.clear()},o})),e.define("select2/selection/multiple",["jquery","./base","../utils"],(function(t,e,i){function n(t,e){n.__super__.constructor.apply(this,arguments)}return i.Extend(n,e),n.prototype.render=function(){var t=n.__super__.render.call(this);return t.addClass("select2-selection--multiple"),t.html(''),t},n.prototype.bind=function(e,i){var o=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){o.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!o.options.get("disabled")){var i=t(this).parent().data("data");o.trigger("unselect",{originalEvent:e,data:i})}}))},n.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},n.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},n.prototype.selectionContainer=function(){return t('
  • ×
  • ')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n1||i)return t.call(this,e);this.clear();var n=this.createPlaceholder(this.placeholder);this.$selection.find(".select2-selection__rendered").append(n)},e})),e.define("select2/selection/allowClear",["jquery","../keys"],(function(t,e){function i(){}return i.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),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(t){n._handleClear(t)})),e.on("keypress",(function(t){n._handleKeyboardClear(t,e)}))},i.prototype._handleClear=function(t,e){if(!this.options.get("disabled")){var i=this.$selection.find(".select2-selection__clear");if(0!==i.length){e.stopPropagation();for(var n=i.data("data"),o=0;o0||0===i.length)){var n=t('×');n.data("data",i),this.$selection.find(".select2-selection__rendered").prepend(n)}},i})),e.define("select2/selection/search",["jquery","../utils","../keys"],(function(t,e,i){function n(t,e,i){t.call(this,e,i)}return n.prototype.render=function(e){var i=t('');this.$searchContainer=i,this.$search=i.find("input");var n=e.call(this);return this._transferTabIndex(),n},n.prototype.bind=function(t,e,n){var o=this;t.call(this,e,n),e.on("open",(function(){o.$search.trigger("focus")})),e.on("close",(function(){o.$search.val(""),o.$search.removeAttr("aria-activedescendant"),o.$search.trigger("focus")})),e.on("enable",(function(){o.$search.prop("disabled",!1),o._transferTabIndex()})),e.on("disable",(function(){o.$search.prop("disabled",!0)})),e.on("focus",(function(t){o.$search.trigger("focus")})),e.on("results:focus",(function(t){o.$search.attr("aria-activedescendant",t.id)})),this.$selection.on("focusin",".select2-search--inline",(function(t){o.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){o._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===o.$search.val()){var e=o.$searchContainer.prev(".select2-selection__choice");if(e.length>0){var n=e.data("data");o.searchRemoveChoice(n),t.preventDefault()}}}));var r=document.documentMode,s=r&&11>=r;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){return s?void o.$selection.off("input.search input.searchcheck"):void o.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(s&&"input"===t.type)o.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&o.handleSearch(t)}}))},n.prototype._transferTabIndex=function(t){this.$search.attr("tabindex",this.$selection.attr("tabindex")),this.$selection.attr("tabindex","-1")},n.prototype.createPlaceholder=function(t,e){this.$search.attr("placeholder",e.text)},n.prototype.update=function(t,e){var i=this.$search[0]==document.activeElement;this.$search.attr("placeholder",""),t.call(this,e),this.$selection.find(".select2-selection__rendered").append(this.$searchContainer),this.resizeSearch(),i&&this.$search.focus()},n.prototype.handleSearch=function(){if(this.resizeSearch(),!this._keyUpPrevented){var t=this.$search.val();this.trigger("query",{term:t})}this._keyUpPrevented=!1},n.prototype.searchRemoveChoice=function(t,e){this.trigger("unselect",{data:e}),this.$search.val(e.text),this.handleSearch()},n.prototype.resizeSearch=function(){this.$search.css("width","25px");var t="";""!==this.$search.attr("placeholder")?t=this.$selection.find(".select2-selection__rendered").innerWidth():t=.75*(this.$search.val().length+1)+"em";this.$search.css("width",t)},n})),e.define("select2/selection/eventRelay",["jquery"],(function(t){function e(){}return e.prototype.bind=function(e,i,n){var o=this,r=["open","opening","close","closing","select","selecting","unselect","unselecting"],s=["opening","closing","selecting","unselecting"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==t.inArray(e,r)){i=i||{};var n=t.Event("select2:"+e,{params:i});o.$element.trigger(n),-1!==t.inArray(e,s)&&(i.prevented=n.isDefaultPrevented())}}))},e})),e.define("select2/translation",["jquery","require"],(function(t,e){function i(t){this.dict=t||{}}return i.prototype.all=function(){return this.dict},i.prototype.get=function(t){return this.dict[t]},i.prototype.extend=function(e){this.dict=t.extend({},e.all(),this.dict)},i._cache={},i.loadPath=function(t){if(!(t in i._cache)){var n=e(t);i._cache[t]=n}return new i(i._cache[t])},i})),e.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","Ά":"Α","Έ":"Ε","Ή":"Η","Ί":"Ι","Ϊ":"Ι","Ό":"Ο","Ύ":"Υ","Ϋ":"Υ","Ώ":"Ω","ά":"α","έ":"ε","ή":"η","ί":"ι","ϊ":"ι","ΐ":"ι","ό":"ο","ύ":"υ","ϋ":"υ","ΰ":"υ","ω":"ω","ς":"σ"}})),e.define("select2/data/base",["../utils"],(function(t){function e(t,i){e.__super__.constructor.call(this)}return t.Extend(e,t.Observable),e.prototype.current=function(t){throw new Error("The `current` method must be defined in child classes.")},e.prototype.query=function(t,e){throw new Error("The `query` method must be defined in child classes.")},e.prototype.bind=function(t,e){},e.prototype.destroy=function(){},e.prototype.generateResultId=function(e,i){var n=e.id+"-result-";return(n+=t.generateChars(4))+(null!=i.id?"-"+i.id.toString():"-"+t.generateChars(4))},e})),e.define("select2/data/select",["./base","../utils","jquery"],(function(t,e,i){function n(t,e){this.$element=t,this.options=e,n.__super__.constructor.call(this)}return e.Extend(n,t),n.prototype.current=function(t){var e=[],n=this;this.$element.find(":selected").each((function(){var t=i(this),o=n.item(t);e.push(o)})),t(e)},n.prototype.select=function(t){var e=this;if(t.selected=!0,i(t.element).is("option"))return t.element.selected=!0,void this.$element.trigger("change");if(this.$element.prop("multiple"))this.current((function(n){var o=[];(t=[t]).push.apply(t,n);for(var r=0;r=0){var h=r.filter(n(c)),u=this.item(h),d=i.extend(!0,{},u,c),p=this.option(d);h.replaceWith(p)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);e.appendMany(f,m)}l.push(f)}}return l},n})),e.define("select2/data/ajax",["./array","../utils","jquery"],(function(t,e,i){function n(t,e){this.ajaxOptions=this._applyDefaults(e.get("ajax")),null!=this.ajaxOptions.processResults&&(this.processResults=this.ajaxOptions.processResults),n.__super__.constructor.call(this,t,e)}return e.Extend(n,t),n.prototype._applyDefaults=function(t){var e={data:function(t){return i.extend({},t,{q:t.term})},transport:function(t,e,n){var o=i.ajax(t);return o.then(e),o.fail(n),o}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){function n(){var n=r.transport(r,(function(n){var r=o.processResults(n,t);o.options.get("debug")&&window.console&&console.error&&(r&&r.results&&i.isArray(r.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(r)}),(function(){}));o._request=n}var o=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var r=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof r.url&&(r.url=r.url.call(this.$element,t)),"function"==typeof r.data&&(r.data=r.data.call(this.$element,t)),this.ajaxOptions.delay&&""!==t.term?(this._queryTimeout&&window.clearTimeout(this._queryTimeout),this._queryTimeout=window.setTimeout(n,this.ajaxOptions.delay)):n()},n})),e.define("select2/data/tags",["jquery"],(function(t){function e(e,i,n){var o=n.get("tags"),r=n.get("createTag");if(void 0!==r&&(this.createTag=r),e.call(this,i,n),t.isArray(o))for(var s=0;s0&&e.term.length>this.maximumInputLength?void this.trigger("results:message",{message:"inputTooLong",args:{maximum:this.maximumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t})),e.define("select2/data/maximumSelectionLength",[],(function(){function t(t,e,i){this.maximumSelectionLength=i.get("maximumSelectionLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){var n=this;this.current((function(o){var r=null!=o?o.length:0;return n.maximumSelectionLength>0&&r>=n.maximumSelectionLength?void n.trigger("results:message",{message:"maximumSelected",args:{maximum:n.maximumSelectionLength}}):void t.call(n,e,i)}))},t})),e.define("select2/dropdown",["jquery","./utils"],(function(t,e){function i(t,e){this.$element=t,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$dropdown=e,e},i.prototype.bind=function(){},i.prototype.position=function(t,e){},i.prototype.destroy=function(){this.$dropdown.remove()},i})),e.define("select2/dropdown/search",["jquery","../utils"],(function(t,e){function i(){}return i.prototype.render=function(e){var i=e.call(this),n=t('');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var o=this;e.call(this,i,n),this.$search.on("keydown",(function(t){o.trigger("keypress",t),o._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){o.handleSearch(t)})),i.on("open",(function(){o.$search.attr("tabindex",0),o.$search.focus(),window.setTimeout((function(){o.$search.focus()}),0)})),i.on("close",(function(){o.$search.attr("tabindex",-1),o.$search.val("")})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(o.showSearch(t)?o.$searchContainer.removeClass("select2-search--hide"):o.$searchContainer.addClass("select2-search--hide"))}))},i.prototype.handleSearch=function(t){if(!this._keyUpPrevented){var e=this.$search.val();this.trigger("query",{term:e})}this._keyUpPrevented=!1},i.prototype.showSearch=function(t,e){return!0},i})),e.define("select2/dropdown/hidePlaceholder",[],(function(){function t(t,e,i,n){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i,n)}return t.prototype.append=function(t,e){e.results=this.removePlaceholder(e.results),t.call(this,e)},t.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},t.prototype.removePlaceholder=function(t,e){for(var i=e.slice(0),n=e.length-1;n>=0;n--){var o=e[n];this.placeholder.id===o.id&&i.splice(n,1)}return i},t})),e.define("select2/dropdown/infiniteScroll",["jquery"],(function(t){function e(t,e,i,n){this.lastParams={},t.call(this,e,i,n),this.$loadingMore=this.createLoadingMore(),this.loading=!1}return e.prototype.append=function(t,e){this.$loadingMore.remove(),this.loading=!1,t.call(this,e),this.showLoadingMore(e)&&this.$results.append(this.$loadingMore)},e.prototype.bind=function(e,i,n){var o=this;e.call(this,i,n),i.on("query",(function(t){o.lastParams=t,o.loading=!0})),i.on("query:append",(function(t){o.lastParams=t,o.loading=!0})),this.$results.on("scroll",(function(){var e=t.contains(document.documentElement,o.$loadingMore[0]);!o.loading&&e&&(o.$results.offset().top+o.$results.outerHeight(!1)+50>=o.$loadingMore.offset().top+o.$loadingMore.outerHeight(!1)&&o.loadMore())}))},e.prototype.loadMore=function(){this.loading=!0;var e=t.extend({},{page:1},this.lastParams);e.page++,this.trigger("query:append",e)},e.prototype.showLoadingMore=function(t,e){return e.pagination&&e.pagination.more},e.prototype.createLoadingMore=function(){var e=t('
  • '),i=this.options.get("translations").get("loadingMore");return e.html(i(this.lastParams)),e},e})),e.define("select2/dropdown/attachBody",["jquery","../utils"],(function(t,e){function i(e,i,n){this.$dropdownParent=n.get("dropdownParent")||t(document.body),e.call(this,i,n)}return i.prototype.bind=function(t,e,i){var n=this,o=!1;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),o||(o=!0,e.on("results:all",(function(){n._positionDropdown(),n._resizeDropdown()})),e.on("results:append",(function(){n._positionDropdown(),n._resizeDropdown()})))})),e.on("close",(function(){n._hideDropdown(),n._detachPositioningHandler(e)})),this.$dropdownContainer.on("mousedown",(function(t){t.stopPropagation()}))},i.prototype.destroy=function(t){t.call(this),this.$dropdownContainer.remove()},i.prototype.position=function(t,e,i){e.attr("class",i.attr("class")),e.removeClass("select2"),e.addClass("select2-container--open"),e.css({position:"absolute",top:-999999}),this.$container=i},i.prototype.render=function(e){var i=t(""),n=e.call(this);return i.append(n),this.$dropdownContainer=i,i},i.prototype._hideDropdown=function(t){this.$dropdownContainer.detach()},i.prototype._attachPositioningHandler=function(i,n){var o=this,r="scroll.select2."+n.id,s="resize.select2."+n.id,l="orientationchange.select2."+n.id,a=this.$container.parents().filter(e.hasScroll);a.each((function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),a.on(r,(function(e){var i=t(this).data("select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(r+" "+s+" "+l,(function(t){o._positionDropdown(),o._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var o="scroll.select2."+n.id,r="resize.select2."+n.id,s="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(o),t(window).off(o+" "+r+" "+s)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),o=null,r=(this.$container.position(),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 l=this.$dropdown.outerHeight(!1),a=e.scrollTop(),c=e.scrollTop()+e.height(),h=ar.bottom+l,d={left:r.left,top:s.bottom};if("static"!==this.$dropdownParent[0].style.position){var p=this.$dropdownParent.offset();d.top-=p.top,d.left-=p.left}i||n||(o="below"),u||!h||i?!h&&u&&i&&(o="below"):o="above",("above"==o||i&&"below"!==o)&&(d.top=s.top-l),null!=o&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+o),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+o)),this.$dropdownContainer.css(d)},i.prototype._resizeDropdown=function(){var t={width:this.$container.outerWidth(!1)+"px"};this.options.get("dropdownAutoWidth")&&(t.minWidth=t.width,t.width="auto"),this.$dropdown.css(t)},i.prototype._showDropdown=function(t){this.$dropdownContainer.appendTo(this.$dropdownParent),this._positionDropdown(),this._resizeDropdown()},i})),e.define("select2/dropdown/minimumResultsForSearch",[],(function(){function t(e){for(var i=0,n=0;n0&&(u.dataAdapter=c.Decorate(u.dataAdapter,v)),u.maximumInputLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,y)),u.maximumSelectionLength>0&&(u.dataAdapter=c.Decorate(u.dataAdapter,b)),u.tags&&(u.dataAdapter=c.Decorate(u.dataAdapter,m)),(null!=u.tokenSeparators||null!=u.tokenizer)&&(u.dataAdapter=c.Decorate(u.dataAdapter,g)),null!=u.query){var E=e(u.amdBase+"compat/query");u.dataAdapter=c.Decorate(u.dataAdapter,E)}if(null!=u.initSelection){var A=e(u.amdBase+"compat/initSelection");u.dataAdapter=c.Decorate(u.dataAdapter,A)}}if(null==u.resultsAdapter&&(u.resultsAdapter=i,null!=u.ajax&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,C)),null!=u.placeholder&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,x)),u.selectOnClose&&(u.resultsAdapter=c.Decorate(u.resultsAdapter,k))),null==u.dropdownAdapter){if(u.multiple)u.dropdownAdapter=w;else{var I=c.Decorate(w,_);u.dropdownAdapter=I}if(0!==u.minimumResultsForSearch&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,T)),u.closeOnSelect&&(u.dropdownAdapter=c.Decorate(u.dropdownAdapter,D)),null!=u.dropdownCssClass||null!=u.dropdownCss||null!=u.adaptDropdownCssClass){var M=e(u.amdBase+"compat/dropdownCss");u.dropdownAdapter=c.Decorate(u.dropdownAdapter,M)}u.dropdownAdapter=c.Decorate(u.dropdownAdapter,S)}if(null==u.selectionAdapter){if(u.multiple?u.selectionAdapter=o:u.selectionAdapter=n,null!=u.placeholder&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,r)),u.allowClear&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,s)),u.multiple&&(u.selectionAdapter=c.Decorate(u.selectionAdapter,l)),null!=u.containerCssClass||null!=u.containerCss||null!=u.adaptContainerCssClass){var P=e(u.amdBase+"compat/containerCss");u.selectionAdapter=c.Decorate(u.selectionAdapter,P)}u.selectionAdapter=c.Decorate(u.selectionAdapter,a)}if("string"==typeof u.language)if(u.language.indexOf("-")>0){var R=u.language.split("-")[0];u.language=[u.language,R]}else u.language=[u.language];if(t.isArray(u.language)){var O=new h;u.language.push("en");for(var F=u.language,j=0;j0){for(var r=t.extend(!0,{},o),s=o.children.length-1;s>=0;s--){null==i(n,o.children[s])&&r.children.splice(s,1)}return r.children.length>0?r:i(n,r)}var l=e(o.text).toUpperCase(),a=e(n.term).toUpperCase();return l.indexOf(a)>-1?o:null},minimumInputLength:0,maximumInputLength:0,maximumSelectionLength:0,minimumResultsForSearch:0,selectOnClose:!1,sorter:function(t){return t},templateResult:function(t){return t.text},templateSelection:function(t){return t.text},theme:"default",width:"resolve"}},A.prototype.set=function(e,i){var n={};n[t.camelCase(e)]=i;var o=c._convertData(n);t.extend(this.defaults,o)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,i,n){function o(e,o){if(this.options=e,null!=o&&this.fromElement(o),this.options=i.apply(this.options),o&&o.is("input")){var r=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,r)}}return o.prototype.fromElement=function(t){var i=["select2"];null==this.options.multiple&&(this.options.multiple=t.prop("multiple")),null==this.options.disabled&&(this.options.disabled=t.prop("disabled")),null==this.options.language&&(t.prop("lang")?this.options.language=t.prop("lang").toLowerCase():t.closest("[lang]").prop("lang")&&(this.options.language=t.closest("[lang]").prop("lang"))),null==this.options.dir&&(t.prop("dir")?this.options.dir=t.prop("dir"):t.closest("[dir]").prop("dir")?this.options.dir=t.closest("[dir]").prop("dir"):this.options.dir="ltr"),t.prop("disabled",this.options.disabled),t.prop("multiple",this.options.multiple),t.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="true"` attributes and will be removed in future versions of Select2.'),t.data("data",t.data("select2Tags")),t.data("tags",!0)),t.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."),t.attr("ajax--url",t.data("ajaxUrl")),t.data("ajax--url",t.data("ajaxUrl")));var o;o=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var r=e.extend(!0,{},o);for(var s in r=n._convertData(r))e.inArray(s,i)>-1||(e.isPlainObject(this.options[s])?e.extend(this.options[s],r[s]):this.options[s]=r[s]);return this},o.prototype.get=function(t){return this.options[t]},o.prototype.set=function(t,e){this.options[t]=e},o})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var o=function(t,i){null!=t.data("select2")&&t.data("select2").destroy(),this.$element=t,this.id=this._generateId(t),i=i||{},this.options=new e(i,t),o.__super__.constructor.call(this);var n=t.attr("tabindex")||0;t.data("old-tabindex",n),t.attr("tabindex","-1");var r=this.options.get("dataAdapter");this.dataAdapter=new r(t,this.options);var s=this.render();this._placeContainer(s);var l=this.options.get("selectionAdapter");this.selection=new l(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,s);var a=this.options.get("dropdownAdapter");this.dropdown=new a(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,s);var c=this.options.get("resultsAdapter");this.results=new c(t,this.options,this.dataAdapter),this.$results=this.results.render(),this.results.position(this.$results,this.$dropdown);var h=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){h.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return i.Extend(o,i.Observable),o.prototype._generateId=function(t){return"select2-"+(null!=t.attr("id")?t.attr("id"):null!=t.attr("name")?t.attr("name")+"-"+i.generateChars(2):i.generateChars(4))},o.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},o.prototype._resolveWidth=function(t,e){var i=/^width:(([-+]?([0-9]*\.)?[0-9]+)(px|em|ex|%|in|cm|mm|pt|pc))/i;if("resolve"==e){var n=this._resolveWidth(t,"style");return null!=n?n:this._resolveWidth(t,"element")}if("element"==e){var o=t.outerWidth(!1);return 0>=o?"auto":o+"px"}if("style"==e){var r=t.attr("style");if("string"!=typeof r)return null;for(var s=r.split(";"),l=0,a=s.length;a>l;l+=1){var c=s[l].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return e},o.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)},o.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this._sync=i.bind(this._syncAttributes,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._sync);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n((function(i){t.each(i,e._sync)})),this._observer.observe(this.$element[0],{attributes:!0,subtree:!1})):this.$element[0].addEventListener&&this.$element[0].addEventListener("DOMAttrModified",e._sync,!1)},o.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerSelectionEvents=function(){var e=this,i=["toggle","focus"];this.selection.on("toggle",(function(){e.toggleDropdown()})),this.selection.on("focus",(function(t){e.focus(t)})),this.selection.on("*",(function(n,o){-1===t.inArray(n,i)&&e.trigger(n,o)}))},o.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},o.prototype._registerEvents=function(){var t=this;this.on("open",(function(){t.$container.addClass("select2-container--open")})),this.on("close",(function(){t.$container.removeClass("select2-container--open")})),this.on("enable",(function(){t.$container.removeClass("select2-container--disabled")})),this.on("disable",(function(){t.$container.addClass("select2-container--disabled")})),this.on("blur",(function(){t.$container.removeClass("select2-container--focus")})),this.on("query",(function(e){t.isOpen()||t.trigger("open",{}),this.dataAdapter.query(e,(function(i){t.trigger("results:all",{data:i,query:e})}))})),this.on("query:append",(function(e){this.dataAdapter.query(e,(function(i){t.trigger("results:append",{data:i,query:e})}))})),this.on("keypress",(function(e){var i=e.which;t.isOpen()?i===n.ESC||i===n.TAB||i===n.UP&&e.altKey?(t.close(),e.preventDefault()):i===n.ENTER?(t.trigger("results:select",{}),e.preventDefault()):i===n.SPACE&&e.ctrlKey?(t.trigger("results:toggle",{}),e.preventDefault()):i===n.UP?(t.trigger("results:previous",{}),e.preventDefault()):i===n.DOWN&&(t.trigger("results:next",{}),e.preventDefault()):(i===n.ENTER||i===n.SPACE||i===n.DOWN&&e.altKey)&&(t.open(),e.preventDefault())}))},o.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",{})},o.prototype.trigger=function(t,e){var i=o.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in n){var r=n[t],s={prevented:!1,name:t,args:e};if(i.call(this,r,s),s.prevented)return void(e.prevented=!0)}i.call(this,t,e)},o.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},o.prototype.open=function(){this.isOpen()||this.trigger("query",{})},o.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},o.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},o.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},o.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},o.prototype.enable=function(t){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==t||0===t.length)&&(t=[!0]);var e=!t[0];this.$element.prop("disabled",e)},o.prototype.data=function(){this.options.get("debug")&&arguments.length>0&&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 t=[];return this.dataAdapter.current((function(e){t=e})),t},o.prototype.val=function(e){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==e||0===e.length)return this.$element.val();var i=e[0];t.isArray(i)&&(i=t.map(i,(function(t){return t.toString()}))),this.$element.val(i).trigger("change")},o.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._sync),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&this.$element[0].removeEventListener("DOMAttrModified",this._sync,!1),this._sync=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.dataAdapter=null,this.selection=null,this.dropdown=null,this.results=null},o.prototype.render=function(){var e=t('');return e.attr("dir",this.options.get("dir")),this.$container=e,this.$container.addClass("select2-container--"+this.options.get("theme")),e.data("element",this.$element),e},o})),e.define("select2/compat/utils",["jquery"],(function(t){return{syncCssClasses:function(e,i,n){var o,r,s=[];(o=t.trim(e.attr("class")))&&t((o=""+o).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&s.push(this)})),(o=t.trim(i.attr("class")))&&t((o=""+o).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&(null!=(r=n(this))&&s.push(r))})),e.attr("class",s.join(" "))}}})),e.define("select2/compat/containerCss",["jquery","./utils"],(function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var o=n.call(this),r=this.options.get("containerCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptContainerCssClass");if(s=s||i,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var l=s;s=function(t){var e=l(t);return null!=e?e+" "+t:t}}var a=this.options.get("containerCss")||{};return t.isFunction(a)&&(a=a(this.$element)),e.syncCssClasses(o,this.$element,s),o.css(a),o.addClass(r),o},n})),e.define("select2/compat/dropdownCss",["jquery","./utils"],(function(t,e){function i(t){return null}function n(){}return n.prototype.render=function(n){var o=n.call(this),r=this.options.get("dropdownCssClass")||"";t.isFunction(r)&&(r=r(this.$element));var s=this.options.get("adaptDropdownCssClass");if(s=s||i,-1!==r.indexOf(":all:")){r=r.replace(":all:","");var l=s;s=function(t){var e=l(t);return null!=e?e+" "+t:t}}var a=this.options.get("dropdownCss")||{};return t.isFunction(a)&&(a=a(this.$element)),e.syncCssClasses(o,this.$element,s),o.css(a),o.addClass(r),o},n})),e.define("select2/compat/initSelection",["jquery"],(function(t){function e(t,e,i){i.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=i.get("initSelection"),this._isInitialized=!1,t.call(this,e,i)}return e.prototype.current=function(e,i){var n=this;return this._isInitialized?void e.call(this,i):void this.initSelection.call(null,this.$element,(function(e){n._isInitialized=!0,t.isArray(e)||(e=[e]),i(e)}))},e})),e.define("select2/compat/inputData",["jquery"],(function(t){function e(t,e,i){this._currentData=[],this._valueSeparator=i.get("valueSeparator")||",","hidden"===e.prop("type")&&i.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 `\n \n
    \n \n \n
    \n \n
    \n \n \n
    \n
    \n
    \n \n \n \n
    \n
    \n
    \n
    \n
    \n
    \n`.replace(/(^|\n)\s*/g,""),rt=()=>{n.currentInstance.resetValidationMessage()},st=t=>{const e=(()=>{const t=y();return!!t&&(t.remove(),U([document.documentElement,document.body],[s["no-backdrop"],s["toast-shown"],s["has-column"]]),!0)})();if("undefined"==typeof window||"undefined"==typeof document)return void u("SweetAlert2 requires document to initialize");const i=document.createElement("div");i.className=s.container,e&&V(i,s["no-transition"]),N(i,ot),i.dataset.swal2Theme=t.theme;const n="string"==typeof(o=t.target)?document.querySelector(o):o;var o;n.appendChild(i),t.topLayer&&(i.setAttribute("popover",""),i.showPopover()),(t=>{const e=_();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),(t=>{"rtl"===window.getComputedStyle(t).direction&&V(y(),s.rtl)})(n),(()=>{const t=_(),e=Y(t,s.input),i=Y(t,s.file),n=t.querySelector(`.${s.range} input`),o=t.querySelector(`.${s.range} output`),r=Y(t,s.select),l=t.querySelector(`.${s.checkbox} input`),a=Y(t,s.textarea);e.oninput=rt,i.onchange=rt,r.onchange=rt,l.onchange=rt,a.oninput=rt,n.oninput=()=>{rt(),o.value=n.value},n.onchange=()=>{rt(),o.value=n.value}})()},lt=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?at(t,e):t&&N(e,t)},at=(t,e)=>{t.jquery?ct(e,t):N(e,t.toString())},ct=(t,e)=>{if(t.textContent="",0 in e)for(let i=0;i in e;i++)t.appendChild(e[i].cloneNode(!0));else t.appendChild(e.cloneNode(!0))},ht=(t,e)=>{const i=P(),n=M();i&&n&&(e.showConfirmButton||e.showDenyButton||e.showCancelButton?Z(i):X(i),$(i,e,"actions"),function(t,e,i){const n=E(),o=I(),r=A();if(!n||!o||!r)return;dt(n,"confirm",i),dt(o,"deny",i),dt(r,"cancel",i),function(t,e,i,n){if(!n.buttonsStyling)return void U([t,e,i],s.styled);V([t,e,i],s.styled),n.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",n.confirmButtonColor);n.denyButtonColor&&e.style.setProperty("--swal2-deny-button-background-color",n.denyButtonColor);n.cancelButtonColor&&i.style.setProperty("--swal2-cancel-button-background-color",n.cancelButtonColor);ut(t),ut(e),ut(i)}(n,o,r,i),i.reverseButtons&&(i.toast?(t.insertBefore(r,n),t.insertBefore(o,n)):(t.insertBefore(r,e),t.insertBefore(o,e),t.insertBefore(n,e)))}(i,n,e),N(n,e.loaderHtml||""),$(n,e,"loader"))};function ut(t){const e=window.getComputedStyle(t);if(e.getPropertyValue("--swal2-action-button-focus-box-shadow"))return;const i=e.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-focus-box-shadow",e.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${i}`))}function dt(t,e,i){const n=c(e);J(t,i[`show${n}Button`],"inline-block"),N(t,i[`${e}ButtonText`]||""),t.setAttribute("aria-label",i[`${e}ButtonAriaLabel`]||""),t.className=s[e],$(t,i,`${e}Button`)}const pt=(t,e)=>{const i=y();i&&(!function(t,e){"string"==typeof e?t.style.background=e:e||V([document.documentElement,document.body],s["no-backdrop"])}(i,e.backdrop),function(t,e){if(!e)return;e in s?V(t,s[e]):(h('The "position" parameter is not valid, defaulting to "center"'),V(t,s.center))}(i,e.position),function(t,e){if(!e)return;V(t,s[`grow-${e}`])}(i,e.grow),$(i,e,"container"))};var ft={innerParams:new WeakMap,domCache:new WeakMap};const mt=["input","file","range","select","radio","checkbox","textarea"],gt=t=>{if(!t.input)return;if(!Ct[t.input])return void u(`Unexpected type of input! Expected ${Object.keys(Ct).join(" | ")}, got "${t.input}"`);const e=_t(t.input);if(!e)return;const i=Ct[t.input](e,t);Z(e),t.inputAutoFocus&&setTimeout((()=>{q(i)}))},vt=(t,e)=>{const i=_();if(!i)return;const n=z(i,t);if(n){(t=>{for(let e=0;e{if(!t.input)return;const e=_t(t.input);e&&$(e,t,"input")},bt=(t,e)=>{!t.placeholder&&e.inputPlaceholder&&(t.placeholder=e.inputPlaceholder)},wt=(t,e,i)=>{if(i.inputLabel){const n=document.createElement("label"),o=s["input-label"];n.setAttribute("for",t.id),n.className=o,"object"==typeof i.customClass&&V(n,i.customClass.inputLabel),n.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",n)}},_t=t=>{const e=_();if(e)return Y(e,s[t]||s.input)},xt=(t,e)=>{["string","number"].includes(typeof e)?t.value=`${e}`:v(e)||h(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof e}"`)},Ct={};Ct.text=Ct.email=Ct.password=Ct.number=Ct.tel=Ct.url=Ct.search=Ct.date=Ct["datetime-local"]=Ct.time=Ct.week=Ct.month=(t,e)=>(xt(t,e.inputValue),wt(t,t,e),bt(t,e),t.type=e.input,t),Ct.file=(t,e)=>(wt(t,t,e),bt(t,e),t),Ct.range=(t,e)=>{const i=t.querySelector("input"),n=t.querySelector("output");return xt(i,e.inputValue),i.type=e.input,xt(n,e.inputValue),wt(i,t,e),t},Ct.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const i=document.createElement("option");N(i,e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)}return wt(t,t,e),t},Ct.radio=t=>(t.textContent="",t),Ct.checkbox=(t,e)=>{const i=z(_(),"checkbox");i.value="1",i.checked=Boolean(e.inputValue);const n=t.querySelector("span");return N(n,e.inputPlaceholder||e.inputLabel),i},Ct.textarea=(t,e)=>{xt(t,e.inputValue),bt(t,e),wt(t,t,e);return setTimeout((()=>{if("MutationObserver"in window){const i=parseInt(window.getComputedStyle(_()).width);new MutationObserver((()=>{if(!document.body.contains(t))return;const n=t.offsetWidth+(o=t,parseInt(window.getComputedStyle(o).marginLeft)+parseInt(window.getComputedStyle(o).marginRight));var o;n>i?_().style.width=`${n}px`:G(_(),"width",e.width)})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t};const St=(t,e)=>{const i=S();i&&(Q(i),$(i,e,"htmlContainer"),e.html?(lt(e.html,i),Z(i,"block")):e.text?(i.textContent=e.text,Z(i,"block")):X(i),((t,e)=>{const i=_();if(!i)return;const n=ft.innerParams.get(t),o=!n||e.input!==n.input;mt.forEach((t=>{const n=Y(i,s[t]);n&&(vt(t,e.inputAttributes),n.className=s[t],o&&X(n))})),e.input&&(o&>(e),yt(e))})(t,e))},Tt=(t,e)=>{for(const[i,n]of Object.entries(l))e.icon!==i&&U(t,n);V(t,e.icon&&l[e.icon]),Et(t,e),kt(),$(t,e,"icon")},kt=()=>{const t=_();if(!t)return;const e=window.getComputedStyle(t).getPropertyValue("background-color"),i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t{if(!e.icon&&!e.iconHtml)return;let i=t.innerHTML,n="";if(e.iconHtml)n=At(e.iconHtml);else if("success"===e.icon)n=(t=>`\n ${t.animation?'
    ':""}\n \n
    \n ${t.animation?'
    ':""}\n ${t.animation?'
    ':""}\n`)(e),i=i.replace(/ style=".*?"/g,"");else if("error"===e.icon)n='\n \n \n \n \n';else if(e.icon){n=At({question:"?",warning:"!",info:"i"}[e.icon])}i.trim()!==n.trim()&&N(t,n)},Et=(t,e)=>{if(e.iconColor){t.style.color=e.iconColor,t.style.borderColor=e.iconColor;for(const i of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])K(t,i,"background-color",e.iconColor);K(t,".swal2-success-ring","border-color",e.iconColor)}},At=t=>`
    ${t}
    `;let It=!1,Mt=0,Pt=0,Rt=0,Ot=0;const Ft=t=>{const e=_();if(t.target===e||x().contains(t.target)){It=!0;const i=Bt(t);Mt=i.clientX,Pt=i.clientY,Rt=parseInt(e.style.insetInlineStart)||0,Ot=parseInt(e.style.insetBlockStart)||0,V(e,"swal2-dragging")}},jt=t=>{const e=_();if(It){let{clientX:i,clientY:n}=Bt(t);e.style.insetInlineStart=`${Rt+(i-Mt)}px`,e.style.insetBlockStart=`${Ot+(n-Pt)}px`}},Lt=()=>{const t=_();It=!1,U(t,"swal2-dragging")},Bt=t=>{let e=0,i=0;return t.type.startsWith("mouse")?(e=t.clientX,i=t.clientY):t.type.startsWith("touch")&&(e=t.touches[0].clientX,i=t.touches[0].clientY),{clientX:e,clientY:i}},Nt=(t,e)=>{const i=y(),n=_();if(i&&n){if(e.toast){G(i,"width",e.width),n.style.width="100%";const t=M();t&&n.insertBefore(t,x())}else G(n,"width",e.width);G(n,"padding",e.padding),e.color&&(n.style.color=e.color),e.background&&(n.style.background=e.background),X(D()),Ht(n,e),e.draggable&&!e.toast?(V(n,s.draggable),(t=>{t.addEventListener("mousedown",Ft),document.body.addEventListener("mousemove",jt),t.addEventListener("mouseup",Lt),t.addEventListener("touchstart",Ft),document.body.addEventListener("touchmove",jt),t.addEventListener("touchend",Lt)})(n)):(U(n,s.draggable),(t=>{t.removeEventListener("mousedown",Ft),document.body.removeEventListener("mousemove",jt),t.removeEventListener("mouseup",Lt),t.removeEventListener("touchstart",Ft),document.body.removeEventListener("touchmove",jt),t.removeEventListener("touchend",Lt)})(n))}},Ht=(t,e)=>{const i=e.showClass||{};t.className=`${s.popup} ${tt(t)?i.popup:""}`,e.toast?(V([document.documentElement,document.body],s["toast-shown"]),V(t,s.toast)):V(t,s.modal),$(t,e,"popup"),"string"==typeof e.customClass&&V(t,e.customClass),e.icon&&V(t,s[`icon-${e.icon}`])},$t=t=>{const e=document.createElement("li");return V(e,s["progress-step"]),N(e,t),e},zt=t=>{const e=document.createElement("li");return V(e,s["progress-step-line"]),t.progressStepsDistance&&G(e,"width",t.progressStepsDistance),e},qt=(t,e)=>{Nt(0,e),pt(0,e),((t,e)=>{const i=k();if(!i)return;const{progressSteps:n,currentProgressStep:o}=e;n&&0!==n.length&&void 0!==o?(Z(i),i.textContent="",o>=n.length&&h("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),n.forEach(((t,r)=>{const l=$t(t);if(i.appendChild(l),r===o&&V(l,s["active-progress-step"]),r!==n.length-1){const t=zt(e);i.appendChild(t)}}))):X(i)})(0,e),((t,e)=>{const i=ft.innerParams.get(t),n=x();if(!n)return;if(i&&e.icon===i.icon)return Dt(n,e),void Tt(n,e);if(!e.icon&&!e.iconHtml)return void X(n);if(e.icon&&-1===Object.keys(l).indexOf(e.icon))return u(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${e.icon}"`),void X(n);Z(n),Dt(n,e),Tt(n,e),V(n,e.showClass&&e.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",kt)})(t,e),((t,e)=>{const i=T();i&&(e.imageUrl?(Z(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt||""),G(i,"width",e.imageWidth),G(i,"height",e.imageHeight),i.className=s.image,$(i,e,"image")):X(i))})(0,e),((t,e)=>{const i=C();i&&(Q(i),J(i,Boolean(e.title||e.titleText),"block"),e.title&<(e.title,i),e.titleText&&(i.innerText=e.titleText),$(i,e,"title"))})(0,e),((t,e)=>{const i=F();i&&(N(i,e.closeButtonHtml||""),$(i,e,"closeButton"),J(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel||""))})(0,e),St(t,e),ht(0,e),((t,e)=>{const i=R();i&&(Q(i),J(i,Boolean(e.footer),"block"),e.footer&<(e.footer,i),$(i,e,"footer"))})(0,e);const i=_();"function"==typeof e.didRender&&i&&e.didRender(i),n.eventEmitter.emit("didRender",i)},Wt=()=>{var t;return null===(t=E())||void 0===t?void 0:t.click()},Vt=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),Ut=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},Yt=(t,e)=>{var i;const n=j();if(n.length)return-2===(t+=e)&&(t=n.length-1),t===n.length?t=0:-1===t&&(t=n.length-1),void n[t].focus();null===(i=_())||void 0===i||i.focus()},Gt=["ArrowRight","ArrowDown"],Zt=["ArrowLeft","ArrowUp"],Xt=(t,e,i)=>{t&&(e.isComposing||229===e.keyCode||(t.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?Qt(e,t):"Tab"===e.key?Kt(e):[...Gt,...Zt].includes(e.key)?Jt(e.key):"Escape"===e.key&&te(e,t,i)))},Qt=(t,e)=>{if(!f(e.allowEnterKey))return;const i=z(_(),e.input);if(t.target&&i&&t.target instanceof HTMLElement&&t.target.outerHTML===i.outerHTML){if(["textarea","file"].includes(e.input))return;Wt(),t.preventDefault()}},Kt=t=>{const e=t.target,i=j();let n=-1;for(let t=0;t{const e=P(),i=E(),n=I(),o=A();if(!(e&&i&&n&&o))return;const r=[i,n,o];if(document.activeElement instanceof HTMLElement&&!r.includes(document.activeElement))return;const s=Gt.includes(t)?"nextElementSibling":"previousElementSibling";let l=document.activeElement;if(l){for(let t=0;t{t.preventDefault(),f(e.allowEscapeKey)&&i(Vt.esc)};var ee={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const ie=()=>{Array.from(document.body.children).forEach((t=>{t.hasAttribute("data-previous-aria-hidden")?(t.setAttribute("aria-hidden",t.getAttribute("data-previous-aria-hidden")||""),t.removeAttribute("data-previous-aria-hidden")):t.removeAttribute("aria-hidden")}))},ne="undefined"!=typeof window&&!!window.GestureEvent,oe=()=>{const t=y();if(!t)return;let e;t.ontouchstart=t=>{e=re(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}},re=t=>{const e=t.target,i=y(),n=S();return!(!i||!n)&&(!se(t)&&!le(t)&&(e===i||!(et(i)||!(e instanceof HTMLElement)||((t,e)=>{let i=t;for(;i&&i!==e;){if(et(i))return!0;i=i.parentElement}return!1})(e,n)||"INPUT"===e.tagName||"TEXTAREA"===e.tagName||et(n)&&n.contains(e))))},se=t=>t.touches&&t.touches.length&&"stylus"===t.touches[0].touchType,le=t=>t.touches&&t.touches.length>1;let ae=null;const ce=t=>{null===ae&&(document.body.scrollHeight>window.innerHeight||"scroll"===t)&&(ae=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${ae+(()=>{const t=document.createElement("div");t.className=s["scrollbar-measure"],document.body.appendChild(t);const e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})()}px`)};function he(t,e,i,r){B()?ye(t,r):(o(i).then((()=>ye(t,r))),Ut(n)),ne?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),L()&&(null!==ae&&(document.body.style.paddingRight=`${ae}px`,ae=null),(()=>{if(H(document.body,s.iosfix)){const t=parseInt(document.body.style.top,10);U(document.body,s.iosfix),document.body.style.top="",document.body.scrollTop=-1*t}})(),ie()),U([document.documentElement,document.body],[s.shown,s["height-auto"],s["no-backdrop"],s["toast-shown"]])}function ue(t){t=me(t);const e=ee.swalPromiseResolve.get(this),i=de(this);this.isAwaitingPromise?t.isDismissed||(fe(this),e(t)):i&&e(t)}const de=t=>{const e=_();if(!e)return!1;const i=ft.innerParams.get(t);if(!i||H(e,i.hideClass.popup))return!1;U(e,i.showClass.popup),V(e,i.hideClass.popup);const n=y();return U(n,i.showClass.backdrop),V(n,i.hideClass.backdrop),ge(t,e,i),!0};function pe(t){const e=ee.swalPromiseReject.get(this);fe(this),e&&e(t)}const fe=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,ft.innerParams.get(t)||t._destroy())},me=t=>void 0===t?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),ge=(t,e,i)=>{var o;const r=y(),s=it(e);"function"==typeof i.willClose&&i.willClose(e),null===(o=n.eventEmitter)||void 0===o||o.emit("willClose",e),s?ve(t,e,r,i.returnFocus,i.didClose):he(t,r,i.returnFocus,i.didClose)},ve=(t,e,i,o,r)=>{n.swalCloseEventFinishedCallback=he.bind(null,t,i,o,r);const s=function(t){var i;t.target===e&&(null===(i=n.swalCloseEventFinishedCallback)||void 0===i||i.call(n),delete n.swalCloseEventFinishedCallback,e.removeEventListener("animationend",s),e.removeEventListener("transitionend",s))};e.addEventListener("animationend",s),e.addEventListener("transitionend",s)},ye=(t,e)=>{setTimeout((()=>{var i;"function"==typeof e&&e.bind(t.params)(),null===(i=n.eventEmitter)||void 0===i||i.emit("didClose"),t._destroy&&t._destroy()}))},be=t=>{let e=_();if(e||new Qi,e=_(),!e)return;const i=M();B()?X(x()):we(e,t),Z(i),e.setAttribute("data-loading","true"),e.setAttribute("aria-busy","true"),e.focus()},we=(t,e)=>{const i=P(),n=M();i&&n&&(!e&&tt(E())&&(e=E()),Z(i),e&&(X(e),n.setAttribute("data-button-to-replace",e.className),i.insertBefore(n,e)),V([t,i],s.loading))},_e=t=>t.checked?1:0,xe=t=>t.checked?t.value:null,Ce=t=>t.files&&t.files.length?null!==t.getAttribute("multiple")?t.files:t.files[0]:null,Se=(t,e)=>{const i=_();if(!i)return;const n=t=>{"select"===e.input?function(t,e,i){const n=Y(t,s.select);if(!n)return;const o=(t,e,n)=>{const o=document.createElement("option");o.value=n,N(o,e),o.selected=De(n,i.inputValue),t.appendChild(o)};e.forEach((t=>{const e=t[0],i=t[1];if(Array.isArray(i)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,n.appendChild(t),i.forEach((e=>o(t,e[1],e[0])))}else o(n,i,e)})),n.focus()}(i,ke(t),e):"radio"===e.input&&function(t,e,i){const n=Y(t,s.radio);if(!n)return;e.forEach((t=>{const e=t[0],o=t[1],r=document.createElement("input"),l=document.createElement("label");r.type="radio",r.name=s.radio,r.value=e,De(e,i.inputValue)&&(r.checked=!0);const a=document.createElement("span");N(a,o),a.className=s.label,l.appendChild(r),l.appendChild(a),n.appendChild(l)}));const o=n.querySelectorAll("input");o.length&&o[0].focus()}(i,ke(t),e)};m(e.inputOptions)||v(e.inputOptions)?(be(E()),g(e.inputOptions).then((e=>{t.hideLoading(),n(e)}))):"object"==typeof e.inputOptions?n(e.inputOptions):u("Unexpected type of inputOptions! Expected object, Map or Promise, got "+typeof e.inputOptions)},Te=(t,e)=>{const i=t.getInput();i&&(X(i),g(e.inputValue).then((n=>{i.value="number"===e.input?`${parseFloat(n)||0}`:`${n}`,Z(i),i.focus(),t.hideLoading()})).catch((e=>{u(`Error in inputValue promise: ${e}`),i.value="",Z(i),i.focus(),t.hideLoading()})))};const ke=t=>{const e=[];return t instanceof Map?t.forEach(((t,i)=>{let n=t;"object"==typeof n&&(n=ke(n)),e.push([i,n])})):Object.keys(t).forEach((i=>{let n=t[i];"object"==typeof n&&(n=ke(n)),e.push([i,n])})),e},De=(t,e)=>!!e&&e.toString()===t.toString(),Ee=(t,e)=>{const i=ft.innerParams.get(t);if(!i.input)return void u(`The "input" parameter is needed to be set when using returnInputValueOn${c(e)}`);const n=t.getInput(),o=((t,e)=>{const i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return _e(i);case"radio":return xe(i);case"file":return Ce(i);default:return e.inputAutoTrim?i.value.trim():i.value}})(t,i);i.inputValidator?Ae(t,o,e):n&&!n.checkValidity()?(t.enableButtons(),t.showValidationMessage(i.validationMessage||n.validationMessage)):"deny"===e?Ie(t,o):Re(t,o)},Ae=(t,e,i)=>{const n=ft.innerParams.get(t);t.disableInput();Promise.resolve().then((()=>g(n.inputValidator(e,n.validationMessage)))).then((n=>{t.enableButtons(),t.enableInput(),n?t.showValidationMessage(n):"deny"===i?Ie(t,e):Re(t,e)}))},Ie=(t,e)=>{const i=ft.innerParams.get(t||void 0);if(i.showLoaderOnDeny&&be(I()),i.preDeny){t.isAwaitingPromise=!0;Promise.resolve().then((()=>g(i.preDeny(e,i.validationMessage)))).then((i=>{!1===i?(t.hideLoading(),fe(t)):t.close({isDenied:!0,value:void 0===i?e:i})})).catch((e=>Pe(t||void 0,e)))}else t.close({isDenied:!0,value:e})},Me=(t,e)=>{t.close({isConfirmed:!0,value:e})},Pe=(t,e)=>{t.rejectPromise(e)},Re=(t,e)=>{const i=ft.innerParams.get(t||void 0);if(i.showLoaderOnConfirm&&be(),i.preConfirm){t.resetValidationMessage(),t.isAwaitingPromise=!0;Promise.resolve().then((()=>g(i.preConfirm(e,i.validationMessage)))).then((i=>{tt(D())||!1===i?(t.hideLoading(),fe(t)):Me(t,void 0===i?e:i)})).catch((e=>Pe(t||void 0,e)))}else Me(t,e)};function Oe(){const t=ft.innerParams.get(this);if(!t)return;const e=ft.domCache.get(this);X(e.loader),B()?t.icon&&Z(x()):Fe(e),U([e.popup,e.actions],s.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}const Fe=t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?Z(e[0],"inline-block"):tt(E())||tt(I())||tt(A())||X(t.actions)};function je(){const t=ft.innerParams.get(this),e=ft.domCache.get(this);return e?z(e.popup,t.input):null}function Le(t,e,i){const n=ft.domCache.get(t);e.forEach((t=>{n[t].disabled=i}))}function Be(t,e){const i=_();if(i&&t)if("radio"===t.type){const t=i.querySelectorAll(`[name="${s.radio}"]`);for(let i=0;iObject.prototype.hasOwnProperty.call(Ve,t),Xe=t=>-1!==Ue.indexOf(t),Qe=t=>Ye[t],Ke=t=>{Ze(t)||h(`Unknown parameter "${t}"`)},Je=t=>{Ge.includes(t)&&h(`The parameter "${t}" is incompatible with toasts`)},ti=t=>{const e=Qe(t);e&&p(t,e)},ei=t=>{!1===t.backdrop&&t.allowOutsideClick&&h('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","bootstrap-4","bootstrap-4-light","bootstrap-4-dark","bootstrap-5","bootstrap-5-light","bootstrap-5-dark","material-ui","material-ui-light","material-ui-dark","embed-iframe","bulma","bulma-light","bulma-dark"].includes(t.theme)&&h(`Invalid theme "${t.theme}"`);for(const e in t)Ke(e),t.toast&&Je(e),ti(e)};function ii(t){const e=y(),i=_(),n=ft.innerParams.get(this);if(!i||H(i,n.hideClass.popup))return void h("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");const o=ni(t),r=Object.assign({},n,o);ei(r),e.dataset.swal2Theme=r.theme,qt(this,r),ft.innerParams.set(this,r),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const ni=t=>{const e={};return Object.keys(t).forEach((i=>{Xe(i)?e[i]=t[i]:h(`Invalid parameter to update: ${i}`)})),e};function oi(){const t=ft.domCache.get(this),e=ft.innerParams.get(this);e?(t.popup&&n.swalCloseEventFinishedCallback&&(n.swalCloseEventFinishedCallback(),delete n.swalCloseEventFinishedCallback),"function"==typeof e.didDestroy&&e.didDestroy(),n.eventEmitter.emit("didDestroy"),ri(this)):si(this)}const ri=t=>{si(t),delete t.params,delete n.keydownHandler,delete n.keydownTarget,delete n.currentInstance},si=t=>{t.isAwaitingPromise?(li(ft,t),t.isAwaitingPromise=!0):(li(ee,t),li(ft,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},li=(t,e)=>{for(const i in t)t[i].delete(e)};var ai=Object.freeze({__proto__:null,_destroy:oi,close:ue,closeModal:ue,closePopup:ue,closeToast:ue,disableButtons:He,disableInput:ze,disableLoading:Oe,enableButtons:Ne,enableInput:$e,getInput:je,handleAwaitingPromise:fe,hideLoading:Oe,rejectPromise:pe,resetValidationMessage:We,showValidationMessage:qe,update:ii});const ci=(t,e,i)=>{e.popup.onclick=()=>{t&&(hi(t)||t.timer||t.input)||i(Vt.close)}},hi=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let ui=!1;const di=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(e){t.container.onmouseup=()=>{},e.target===t.container&&(ui=!0)}}},pi=t=>{t.container.onmousedown=e=>{e.target===t.container&&e.preventDefault(),t.popup.onmouseup=function(e){t.popup.onmouseup=()=>{},(e.target===t.popup||e.target instanceof HTMLElement&&t.popup.contains(e.target))&&(ui=!0)}}},fi=(t,e,i)=>{e.container.onclick=n=>{ui?ui=!1:n.target===e.container&&f(t.allowOutsideClick)&&i(Vt.backdrop)}},mi=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t);const gi=()=>{if(n.timeout)return(()=>{const t=O();if(!t)return;const e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const i=e/parseInt(window.getComputedStyle(t).width)*100;t.style.width=`${i}%`})(),n.timeout.stop()},vi=()=>{if(n.timeout){const t=n.timeout.start();return nt(t),t}};let yi=!1;const bi={};const wi=t=>{for(let e=t.target;e&&e!==document;e=e.parentNode)for(const t in bi){const i=e.getAttribute(t);if(i)return void bi[t].fire({template:i})}};n.eventEmitter=new class{constructor(){this.events={}}_getHandlersByEventName(t){return void 0===this.events[t]&&(this.events[t]=[]),this.events[t]}on(t,e){const i=this._getHandlersByEventName(t);i.includes(e)||i.push(e)}once(t,e){const i=(...n)=>{this.removeListener(t,i),e.apply(this,n)};this.on(t,i)}emit(t,...e){this._getHandlersByEventName(t).forEach((t=>{try{t.apply(this,e)}catch(t){console.error(t)}}))}removeListener(t,e){const i=this._getHandlersByEventName(t),n=i.indexOf(e);n>-1&&i.splice(n,1)}removeAllListeners(t){void 0!==this.events[t]&&(this.events[t].length=0)}reset(){this.events={}}};var _i=Object.freeze({__proto__:null,argsToParams:t=>{const e={};return"object"!=typeof t[0]||mi(t[0])?["title","html","icon"].forEach(((i,n)=>{const o=t[n];"string"==typeof o||mi(o)?e[i]=o:void 0!==o&&u(`Unexpected type of ${i}! Expected "string" or "Element", got ${typeof o}`)})):Object.assign(e,t[0]),e},bindClickHandler:function(t="data-swal-template"){bi[t]=this,yi||(document.body.addEventListener("click",wi),yi=!0)},clickCancel:()=>{var t;return null===(t=A())||void 0===t?void 0:t.click()},clickConfirm:Wt,clickDeny:()=>{var t;return null===(t=I())||void 0===t?void 0:t.click()},enableLoading:be,fire:function(...t){return new this(...t)},getActions:P,getCancelButton:A,getCloseButton:F,getConfirmButton:E,getContainer:y,getDenyButton:I,getFocusableElements:j,getFooter:R,getHtmlContainer:S,getIcon:x,getIconContent:()=>w(s["icon-content"]),getImage:T,getInputLabel:()=>w(s["input-label"]),getLoader:M,getPopup:_,getProgressSteps:k,getTimerLeft:()=>n.timeout&&n.timeout.getTimerLeft(),getTimerProgressBar:O,getTitle:C,getValidationMessage:D,increaseTimer:t=>{if(n.timeout){const e=n.timeout.increase(t);return nt(e,!0),e}},isDeprecatedParameter:Qe,isLoading:()=>{const t=_();return!!t&&t.hasAttribute("data-loading")},isTimerRunning:()=>!(!n.timeout||!n.timeout.isRunning()),isUpdatableParameter:Xe,isValidParameter:Ze,isVisible:()=>tt(_()),mixin:function(t){return class extends(this){_main(e,i){return super._main(e,Object.assign({},t,i))}}},off:(t,e)=>{t?e?n.eventEmitter.removeListener(t,e):n.eventEmitter.removeAllListeners(t):n.eventEmitter.reset()},on:(t,e)=>{n.eventEmitter.on(t,e)},once:(t,e)=>{n.eventEmitter.once(t,e)},resumeTimer:vi,showLoading:be,stopTimer:gi,toggleTimer:()=>{const t=n.timeout;return t&&(t.running?gi():vi())}});class xi{constructor(t,e){this.callback=t,this.remaining=e,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=(new Date).getTime()-this.started.getTime()),this.remaining}increase(t){const e=this.running;return e&&this.stop(),this.remaining+=t,e&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Ci=["swal-title","swal-html","swal-footer"],Si=t=>{const e={};return Array.from(t.querySelectorAll("swal-param")).forEach((t=>{Pi(t,["name","value"]);const i=t.getAttribute("name"),n=t.getAttribute("value");i&&n&&(e[i]="boolean"==typeof Ve[i]?"false"!==n:"object"==typeof Ve[i]?JSON.parse(n):n)})),e},Ti=t=>{const e={};return Array.from(t.querySelectorAll("swal-function-param")).forEach((t=>{const i=t.getAttribute("name"),n=t.getAttribute("value");i&&n&&(e[i]=new Function(`return ${n}`)())})),e},ki=t=>{const e={};return Array.from(t.querySelectorAll("swal-button")).forEach((t=>{Pi(t,["type","color","aria-label"]);const i=t.getAttribute("type");i&&["confirm","cancel","deny"].includes(i)&&(e[`${i}ButtonText`]=t.innerHTML,e[`show${c(i)}Button`]=!0,t.hasAttribute("color")&&(e[`${i}ButtonColor`]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e[`${i}ButtonAriaLabel`]=t.getAttribute("aria-label")))})),e},Di=t=>{const e={},i=t.querySelector("swal-image");return i&&(Pi(i,["src","width","height","alt"]),i.hasAttribute("src")&&(e.imageUrl=i.getAttribute("src")||void 0),i.hasAttribute("width")&&(e.imageWidth=i.getAttribute("width")||void 0),i.hasAttribute("height")&&(e.imageHeight=i.getAttribute("height")||void 0),i.hasAttribute("alt")&&(e.imageAlt=i.getAttribute("alt")||void 0)),e},Ei=t=>{const e={},i=t.querySelector("swal-icon");return i&&(Pi(i,["type","color"]),i.hasAttribute("type")&&(e.icon=i.getAttribute("type")),i.hasAttribute("color")&&(e.iconColor=i.getAttribute("color")),e.iconHtml=i.innerHTML),e},Ai=t=>{const e={},i=t.querySelector("swal-input");i&&(Pi(i,["type","label","placeholder","value"]),e.input=i.getAttribute("type")||"text",i.hasAttribute("label")&&(e.inputLabel=i.getAttribute("label")),i.hasAttribute("placeholder")&&(e.inputPlaceholder=i.getAttribute("placeholder")),i.hasAttribute("value")&&(e.inputValue=i.getAttribute("value")));const n=Array.from(t.querySelectorAll("swal-input-option"));return n.length&&(e.inputOptions={},n.forEach((t=>{Pi(t,["value"]);const i=t.getAttribute("value");if(!i)return;const n=t.innerHTML;e.inputOptions[i]=n}))),e},Ii=(t,e)=>{const i={};for(const n in e){const o=e[n],r=t.querySelector(o);r&&(Pi(r,[]),i[o.replace(/^swal-/,"")]=r.innerHTML.trim())}return i},Mi=t=>{const e=Ci.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);Array.from(t.children).forEach((t=>{const i=t.tagName.toLowerCase();e.includes(i)||h(`Unrecognized element <${i}>`)}))},Pi=(t,e)=>{Array.from(t.attributes).forEach((i=>{-1===e.indexOf(i.name)&&h([`Unrecognized attribute "${i.name}" on <${t.tagName.toLowerCase()}>.`,""+(e.length?`Allowed attributes are: ${e.join(", ")}`:"To set the value, use HTML within the element.")])}))},Ri=t=>{const e=y(),i=_();"function"==typeof t.willOpen&&t.willOpen(i),n.eventEmitter.emit("willOpen",i);const o=window.getComputedStyle(document.body).overflowY;Li(e,i,t),setTimeout((()=>{Fi(e,i)}),10),L()&&(ji(e,t.scrollbarPadding,o),(()=>{const t=y();Array.from(document.body.children).forEach((e=>{e.contains(t)||(e.hasAttribute("aria-hidden")&&e.setAttribute("data-previous-aria-hidden",e.getAttribute("aria-hidden")||""),e.setAttribute("aria-hidden","true"))}))})()),B()||n.previousActiveElement||(n.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(i))),n.eventEmitter.emit("didOpen",i)},Oi=t=>{const e=_();if(t.target!==e)return;const i=y();e.removeEventListener("animationend",Oi),e.removeEventListener("transitionend",Oi),i.style.overflowY="auto",U(i,s["no-transition"])},Fi=(t,e)=>{it(e)?(t.style.overflowY="hidden",e.addEventListener("animationend",Oi),e.addEventListener("transitionend",Oi)):t.style.overflowY="auto"},ji=(t,e,i)=>{(()=>{if(ne&&!H(document.body,s.iosfix)){const t=document.body.scrollTop;document.body.style.top=-1*t+"px",V(document.body,s.iosfix),oe()}})(),e&&"hidden"!==i&&ce(i),setTimeout((()=>{t.scrollTop=0}))},Li=(t,e,i)=>{V(t,i.showClass.backdrop),i.animation?(e.style.setProperty("opacity","0","important"),Z(e,"grid"),setTimeout((()=>{V(e,i.showClass.popup),e.style.removeProperty("opacity")}),10)):Z(e,"grid"),V([document.documentElement,document.body],s.shown),i.heightAuto&&i.backdrop&&!i.toast&&V([document.documentElement,document.body],s["height-auto"])};var Bi={email:(t,e)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid email address"),url:(t,e)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(e||"Invalid URL")};function Ni(t){!function(t){t.inputValidator||("email"===t.input&&(t.inputValidator=Bi.email),"url"===t.input&&(t.inputValidator=Bi.url))}(t),t.showLoaderOnConfirm&&!t.preConfirm&&h("showLoaderOnConfirm is set to true, but preConfirm is not defined.\nshowLoaderOnConfirm should be used together with preConfirm, see usage example:\nhttps://sweetalert2.github.io/#ajax-request"),function(t){(!t.target||"string"==typeof t.target&&!document.querySelector(t.target)||"string"!=typeof t.target&&!t.target.appendChild)&&(h('Target parameter is not valid, defaulting to "body"'),t.target="body")}(t),"string"==typeof t.title&&(t.title=t.title.split("\n").join("
    ")),st(t)}let Hi;var $i=new WeakMap;class zi{constructor(...e){if(i(this,$i,void 0),"undefined"==typeof window)return;Hi=this;const n=Object.freeze(this.constructor.argsToParams(e));var o,r,s;this.params=n,this.isAwaitingPromise=!1,o=$i,r=this,s=this._main(Hi.params),o.set(t(o,r),s)}_main(t,e={}){if(ei(Object.assign({},e,t)),n.currentInstance){const t=ee.swalPromiseResolve.get(n.currentInstance),{isAwaitingPromise:e}=n.currentInstance;n.currentInstance._destroy(),e||t({isDismissed:!0}),L()&&ie()}n.currentInstance=Hi;const i=Wi(t,e);Ni(i),Object.freeze(i),n.timeout&&(n.timeout.stop(),delete n.timeout),clearTimeout(n.restoreFocusTimeout);const o=Vi(Hi);return qt(Hi,i),ft.innerParams.set(Hi,i),qi(Hi,o,i)}then(t){return e($i,this).then(t)}finally(t){return e($i,this).finally(t)}}const qi=(t,e,i)=>new Promise(((o,r)=>{const s=e=>{t.close({isDismissed:!0,dismiss:e,isConfirmed:!1,isDenied:!1})};ee.swalPromiseResolve.set(t,o),ee.swalPromiseReject.set(t,r),e.confirmButton.onclick=()=>{(t=>{const e=ft.innerParams.get(t);t.disableButtons(),e.input?Ee(t,"confirm"):Re(t,!0)})(t)},e.denyButton.onclick=()=>{(t=>{const e=ft.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?Ee(t,"deny"):Ie(t,!1)})(t)},e.cancelButton.onclick=()=>{((t,e)=>{t.disableButtons(),e(Vt.cancel)})(t,s)},e.closeButton.onclick=()=>{s(Vt.close)},((t,e,i)=>{t.toast?ci(t,e,i):(di(e),pi(e),fi(t,e,i))})(i,e,s),((t,e,i)=>{Ut(t),e.toast||(t.keydownHandler=t=>Xt(e,t,i),t.keydownTarget=e.keydownListenerCapture?window:_(),t.keydownListenerCapture=e.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)})(n,i,s),((t,e)=>{"select"===e.input||"radio"===e.input?Se(t,e):["text","email","number","tel","textarea"].some((t=>t===e.input))&&(m(e.inputValue)||v(e.inputValue))&&(be(E()),Te(t,e))})(t,i),Ri(i),Ui(n,i,s),Yi(e,i),setTimeout((()=>{e.container.scrollTop=0}))})),Wi=(t,e)=>{const i=(t=>{const e="string"==typeof t.template?document.querySelector(t.template):t.template;if(!e)return{};const i=e.content;return Mi(i),Object.assign(Si(i),Ti(i),ki(i),Di(i),Ei(i),Ai(i),Ii(i,Ci))})(t),n=Object.assign({},Ve,e,i,t);return n.showClass=Object.assign({},Ve.showClass,n.showClass),n.hideClass=Object.assign({},Ve.hideClass,n.hideClass),!1===n.animation&&(n.showClass={backdrop:"swal2-noanimation"},n.hideClass={}),n},Vi=t=>{const e={popup:_(),container:y(),actions:P(),confirmButton:E(),denyButton:I(),cancelButton:A(),loader:M(),closeButton:F(),validationMessage:D(),progressSteps:k()};return ft.domCache.set(t,e),e},Ui=(t,e,i)=>{const n=O();X(n),e.timer&&(t.timeout=new xi((()=>{i("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(Z(n),$(n,e,"timerProgressBar"),setTimeout((()=>{t.timeout&&t.timeout.running&&nt(e.timer)}))))},Yi=(t,e)=>{if(!e.toast)return f(e.allowEnterKey)?void(Gi(t)||Zi(t,e)||Yt(-1,1)):(p("allowEnterKey"),void Xi())},Gi=t=>{const e=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const t of e)if(t instanceof HTMLElement&&tt(t))return t.focus(),!0;return!1},Zi=(t,e)=>e.focusDeny&&tt(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&tt(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!tt(t.confirmButton))&&(t.confirmButton.focus(),!0),Xi=()=>{document.activeElement instanceof HTMLElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()};zi.prototype.disableButtons=He,zi.prototype.enableButtons=Ne,zi.prototype.getInput=je,zi.prototype.disableInput=ze,zi.prototype.enableInput=$e,zi.prototype.hideLoading=Oe,zi.prototype.disableLoading=Oe,zi.prototype.showValidationMessage=qe,zi.prototype.resetValidationMessage=We,zi.prototype.close=ue,zi.prototype.closePopup=ue,zi.prototype.closeModal=ue,zi.prototype.closeToast=ue,zi.prototype.rejectPromise=pe,zi.prototype.update=ii,zi.prototype._destroy=oi,Object.assign(zi,_i),Object.keys(ai).forEach((t=>{zi[t]=function(...e){return Hi&&Hi[t]?Hi[t](...e):null}})),zi.DismissReason=Vt,zi.version="11.26.3";const Qi=zi;return Qi.default=Qi,Qi})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),function(t){try{if(t.Swal&&"function"==typeof t.Swal.fire)return void(t.swal=function(){var e=Array.prototype.slice.call(arguments);if(1===e.length&&e[0]&&"object"==typeof e[0]){var i=Object.assign({},e[0]);if(i.type&&(i.icon||(i.icon=i.type),delete i.type),i.confirmButtonClass||i.cancelButtonClass){var n=i.customClass;n&&"object"==typeof n||(n="string"==typeof n?{popup:n}:{}),i.confirmButtonClass&&(n.confirmButton=(n.confirmButton?n.confirmButton+" ":"")+i.confirmButtonClass,delete i.confirmButtonClass),i.cancelButtonClass&&(n.cancelButton=(n.cancelButton?n.cancelButton+" ":"")+i.cancelButtonClass,delete i.cancelButtonClass),i.customClass=n}return function t(e){return{then:function(i,n){var o=e.then((function(t){var e=!(!t||!t.isConfirmed);return e?i?i(e,t):e:n?n(t):!!i&&i(!1,t)}));return t(o)},catch:function(i){var n=e.then((function(t){return t&&t.isConfirmed?t:i?i(t):t}));return t(n)},finally:function(i){var n="function"==typeof e.finally?e.finally(i):e.then((function(t){return t})).then((function(){i&&i()}));return t(n)}}}(t.Swal.fire(i))}return function t(e){return{then:function(i,n){var o=e.then((function(t){var e=!(!t||!t.isConfirmed);return e?i?i(e,t):e:n?n(t):!!i&&i(!1,t)}));return t(o)},catch:function(i){var n=e.then((function(t){return t&&t.isConfirmed?t:i?i(t):t}));return t(n)},finally:function(i){var n="function"==typeof e.finally?e.finally(i):e.then((function(t){return t})).then((function(){i&&i()}));return t(n)}}}(t.Swal.fire.apply(t.Swal,e))});if("function"==typeof t.swal){var e=t.swal;t.Swal={fire:function(){var i=Array.prototype.slice.call(arguments);if(1===i.length&&i[0]&&"object"==typeof i[0]){var n=Object.assign({},i[0]);return n.icon&&!n.type&&(n.type=n.icon),e(n)}if("string"==typeof i[0]){var o=i[0],r=i[1],s=i[2];return e(o,r,s)}return e.apply(t,i)},close:function(){return e.close?e.close():e.closeModal?e.closeModal():void 0},showLoading:function(){return e.showLoading?e.showLoading():void 0},hideLoading:function(){return e.hideLoading?e.hideLoading():void 0},isVisible:function(){return e.isVisible?e.isVisible():!!document.querySelector(".swal2-container")}}}}catch(t){}}(window);var $jscomp=$jscomp||{};$jscomp.scope={},$jscomp.findInternal=function(t,e,i){t instanceof String&&(t=String(t));for(var n=t.length,o=0;oi?i:o;var r=t.height/t.width*o,s=r,l=new jsPDF({orientation:"p",unit:"mm",format:[i,n]}),a=0;for(l.addImage(e,"jpeg",0,a),s-=n;s>=0;)a=s-r,l.addPage(),l.addImage(e,"jpeg",0,a),s-=n;var c=$("title").length>0?$("title").html():"";""==c&&(c="PDF"),c+=".pdf",l.save(c),$.unblockUI()}})}$jscomp.polyfill=function(t,e,i,n){e&&($jscomp.ISOLATE_POLYFILLS?$jscomp.polyfillIsolated(t,e,i,n):$jscomp.polyfillUnisolated(t,e,i,n))},$jscomp.polyfillUnisolated=function(t,e,i,n){for(i=$jscomp.global,t=t.split("."),n=0;n").css({position:"fixed",top:0,left:-1*t(e).scrollLeft(),height:1,width:1,overflow:"hidden"}).append(t("
    ").css({position:"absolute",top:1,left:1,width:100,overflow:"scroll"}).append(t("
    ").css({width:"100%",height:10}))).appendTo("body"),r=o.children(),s=r.children();n.barWidth=r[0].offsetWidth-r[0].clientWidth,n.bScrollOversize=100===s[0].offsetWidth&&100!==r[0].clientWidth,n.bScrollbarLeft=1!==Math.round(s.offset().left),n.bBounding=!!o[0].getBoundingClientRect().width,o.remove()}t.extend(i.oBrowser,Vt.__browser),i.oScroll.iBarWidth=Vt.__browser.barWidth}function h(t,e,i,o,r,s){var l=!1;if(i!==n){var a=i;l=!0}for(;o!==r;)t.hasOwnProperty(o)&&(a=l?e(a,t[o],o,t):t[o],l=!0,o+=s);return a}function u(e,n){var o=Vt.defaults.column,r=e.aoColumns.length;o=t.extend({},Vt.models.oColumn,o,{nTh:n||i.createElement("th"),sTitle:o.sTitle?o.sTitle:n?n.innerHTML:"",aDataSort:o.aDataSort?o.aDataSort:[r],mData:o.mData?o.mData:r,idx:r}),e.aoColumns.push(o),(o=e.aoPreSearchCols)[r]=t.extend({},Vt.models.oSearch,o[r]),d(e,r,t(n).data())}function d(e,i,o){i=e.aoColumns[i];var s=e.oClasses,l=t(i.nTh);if(!i.sWidthOrig){i.sWidthOrig=l.attr("width")||null;var c=(l.attr("style")||"").match(/width:\s*(\d+[pxem%]+)/);c&&(i.sWidthOrig=c[1])}o!==n&&null!==o&&(a(o),r(Vt.defaults.column,o,!0),o.mDataProp===n||o.mData||(o.mData=o.mDataProp),o.sType&&(i._sManualType=o.sType),o.className&&!o.sClass&&(o.sClass=o.className),o.sClass&&l.addClass(o.sClass),t.extend(i,o),Mt(i,o,"sWidth","sWidthOrig"),o.iDataSort!==n&&(i.aDataSort=[o.iDataSort]),Mt(i,o,"aDataSort"));var h=i.mData,u=T(h),d=i.mRender?T(i.mRender):null;o=function(t){return"string"==typeof t&&-1!==t.indexOf("@")},i._bAttrSrc=t.isPlainObject(h)&&(o(h.sort)||o(h.type)||o(h.filter)),i._setter=null,i.fnGetData=function(t,e,i){var o=u(t,e,n,i);return d&&e?d(o,e,t,i):o},i.fnSetData=function(t,e,i){return k(h)(t,e,i)},"number"!=typeof h&&(e._rowReadObject=!0),e.oFeatures.bSort||(i.bSortable=!1,l.addClass(s.sSortableNone)),e=-1!==t.inArray("asc",i.asSorting),o=-1!==t.inArray("desc",i.asSorting),i.bSortable&&(e||o)?e&&!o?(i.sSortingClass=s.sSortableAsc,i.sSortingClassJUI=s.sSortJUIAscAllowed):!e&&o?(i.sSortingClass=s.sSortableDesc,i.sSortingClassJUI=s.sSortJUIDescAllowed):(i.sSortingClass=s.sSortable,i.sSortingClassJUI=s.sSortJUI):(i.sSortingClass=s.sSortableNone,i.sSortingClassJUI="")}function p(t){if(!1!==t.oFeatures.bAutoWidth){var e=t.aoColumns;mt(t);for(var i=0,n=e.length;id[p])r(c.length+d[p],h);else if("string"==typeof d[p]){var f=0;for(a=c.length;fe&&t[r]--;-1!=o&&i===n&&t.splice(o,1)}function I(t,e,i,o){var r,s=t.aoData[e],l=function(i,n){for(;i.childNodes.length;)i.removeChild(i.firstChild);i.innerHTML=x(t,e,n,"display")};if("dom"!==i&&(i&&"auto"!==i||"dom"!==s.src)){var a=s.anCells;if(a)if(o!==n)l(a[o],o);else for(i=0,r=a.length;i").appendTo(o));var c=0;for(i=a.length;c=e.fnRecordsDisplay()?0:c,e.iInitDisplayStart=-1),c=e._iDisplayStart;var d=e.fnDisplayEnd();if(e.bDeferLoading)e.bDeferLoading=!1,e.iDraw++,ut(e,!1);else if(h){if(!e.bDestroying&&!i)return void z(e)}else e.iDraw++;if(0!==u.length)for(i=h?e.aoData.length:d,a=h?0:c;a",{class:l?s[0]:""}).append(t("",{valign:"top",colSpan:g(e),class:e.oClasses.sRowEmpty}).html(r))[0];Ft(e,"aoHeaderCallback","header",[t(e.nTHead).children("tr")[0],D(e),c,d,u]),Ft(e,"aoFooterCallback","footer",[t(e.nTFoot).children("tr")[0],D(e),c,d,u]),(s=t(e.nTBody)).children().detach(),s.append(t(o)),Ft(e,"aoDrawCallback","draw",[e]),e.bSorted=!1,e.bFiltered=!1,e.bDrawing=!1}}function L(t,e){var i=t.oFeatures,n=i.bFilter;i.bSort&&_t(t),n?Y(t,t.oPreviousSearch):t.aiDisplay=t.aiDisplayMaster.slice(),!0!==e&&(t._iDisplayStart=0),t._drawHold=e,j(t),t._drawHold=!1}function B(e){var i=e.oClasses,n=t(e.nTable);n=t("
    ").insertBefore(n);var o=e.oFeatures,r=t("
    ",{id:e.sTableId+"_wrapper",class:i.sWrapper+(e.nTFoot?"":" "+i.sNoFooter)});e.nHolding=n[0],e.nTableWrapper=r[0],e.nTableReinsertBefore=e.nTable.nextSibling;for(var s,l,a,c,h,u,d=e.sDom.split(""),p=0;p")[0],"'"==(c=d[p+1])||'"'==c){for(h="",u=2;d[p+u]!=c;)h+=d[p+u],u++;"H"==h?h=i.sJUIHeader:"F"==h&&(h=i.sJUIFooter),-1!=h.indexOf(".")?(c=h.split("."),a.id=c[0].substr(1,c[0].length-1),a.className=c[1]):"#"==h.charAt(0)?a.id=h.substr(1,h.length-1):a.className=h,p+=u}r.append(a),r=t(a)}else if(">"==l)r=r.parent();else if("l"==l&&o.bPaginate&&o.bLengthChange)s=lt(e);else if("f"==l&&o.bFilter)s=U(e);else if("r"==l&&o.bProcessing)s=ht(e);else if("t"==l)s=dt(e);else if("i"==l&&o.bInfo)s=et(e);else if("p"==l&&o.bPaginate)s=at(e);else if(0!==Vt.ext.feature.length)for(u=0,c=(a=Vt.ext.feature).length;u',c=r.sSearch;c=c.match(/_INPUT_/)?c.replace("_INPUT_",a):c+a,n=t("
    ",{id:l.f?null:o+"_filter",class:n.sFilter}).append(t("
    ").addClass(i.sLength);return e.aanFeatures.l||(c[0].id=n+"_length"),c.children().append(e.oLanguage.sLengthMenu.replace("_MENU_",r[0].outerHTML)),t("select",c).val(e._iDisplayLength).on("change.DT",(function(i){st(e,t(this).val()),j(e)})),t(e.nTable).on("length.dt.DT",(function(i,n,o){e===n&&t("select",c).val(o)})),c[0]}function at(e){var i=e.sPaginationType,n=Vt.ext.pager[i],o="function"==typeof n,r=function(t){j(t)};i=t("
    ").addClass(e.oClasses.sPaging+i)[0];var s=e.aanFeatures;return o||n.fnInit(e,i,r),s.p||(i.id=e.sTableId+"_paginate",e.aoDrawCallback.push({fn:function(t){if(o){var e,i=t._iDisplayStart,l=t._iDisplayLength,a=t.fnRecordsDisplay(),c=-1===l;for(i=c?0:Math.ceil(i/l),l=c?1:Math.ceil(a/l),a=n(i,l),c=0,e=s.p.length;cr&&(n=0):"first"==e?n=0:"previous"==e?0>(n=0<=o?n-o:0)&&(n=0):"next"==e?n+o",{id:e.aanFeatures.r?null:e.sTableId+"_processing",class:e.oClasses.sProcessing}).html(e.oLanguage.sProcessing).insertBefore(e.nTable)[0]}function ut(e,i){e.oFeatures.bProcessing&&t(e.aanFeatures.r).css("display",i?"block":"none"),Ft(e,null,"processing",[e,i])}function dt(e){var i=t(e.nTable);i.attr("role","grid");var n=e.oScroll;if(""===n.sX&&""===n.sY)return e.nTable;var o=n.sX,r=n.sY,s=e.oClasses,l=i.children("caption"),a=l.length?l[0]._captionSide:null,c=t(i[0].cloneNode(!1)),h=t(i[0].cloneNode(!1)),u=i.children("tfoot");u.length||(u=null),c=t("
    ",{class:s.sScrollWrapper}).append(t("
    ",{class:s.sScrollHead}).css({overflow:"hidden",position:"relative",border:0,width:o?o?bt(o):null:"100%"}).append(t("
    ",{class:s.sScrollHeadInner}).css({"box-sizing":"content-box",width:n.sXInner||"100%"}).append(c.removeAttr("id").css("margin-left",0).append("top"===a?l:null).append(i.children("thead"))))).append(t("
    ",{class:s.sScrollBody}).css({position:"relative",overflow:"auto",width:o?bt(o):null}).append(i)),u&&c.append(t("
    ",{class:s.sScrollFoot}).css({overflow:"hidden",border:0,width:o?o?bt(o):null:"100%"}).append(t("
    ",{class:s.sScrollFootInner}).append(h.removeAttr("id").css("margin-left",0).append("bottom"===a?l:null).append(i.children("tfoot")))));var d=(i=c.children())[0];s=i[1];var p=u?i[2]:null;return o&&t(s).on("scroll.DT",(function(t){t=this.scrollLeft,d.scrollLeft=t,u&&(p.scrollLeft=t)})),t(s).css("max-height",r),n.bCollapse||t(s).css("height",r),e.nScrollHead=d,e.nScrollBody=s,e.nScrollFoot=p,e.aoDrawCallback.push({fn:pt,sName:"scrolling"}),c[0]}function pt(e){var i=e.oScroll,o=i.sX,r=i.sXInner,s=i.sY;i=i.iBarWidth;var l=t(e.nScrollHead),a=l[0].style,c=l.children("div"),h=c[0].style,u=c.children("table");c=e.nScrollBody;var d,m=t(c),g=c.style,v=t(e.nScrollFoot).children("div"),y=v.children("table"),b=t(e.nTHead),w=t(e.nTable),_=w[0],x=_.style,C=e.nTFoot?t(e.nTFoot):null,S=e.oBrowser,T=S.bScrollOversize,k=ne(e.aoColumns,"nTh"),D=[],E=[],A=[],I=[],M=function(t){(t=t.style).paddingTop="0",t.paddingBottom="0",t.borderTopWidth="0",t.borderBottomWidth="0",t.height=0},P=c.scrollHeight>c.clientHeight;if(e.scrollBarVis!==P&&e.scrollBarVis!==n)e.scrollBarVis=P,p(e);else{if(e.scrollBarVis=P,w.children("thead, tfoot").remove(),C){var R=C.clone().prependTo(w),O=C.find("tr");R=R.find("tr")}var F=b.clone().prependTo(w);b=b.find("tr"),P=F.find("tr"),F.find("th, td").removeAttr("tabindex"),o||(g.width="100%",l[0].style.width="100%"),t.each(H(e,F),(function(t,i){d=f(e,t),i.style.width=e.aoColumns[d].sWidth})),C&&ft((function(t){t.style.width=""}),R),l=w.outerWidth(),""===o?(x.width="100%",T&&(w.find("tbody").height()>c.offsetHeight||"scroll"==m.css("overflow-y"))&&(x.width=bt(w.outerWidth()-i)),l=w.outerWidth()):""!==r&&(x.width=bt(r),l=w.outerWidth()),ft(M,P),ft((function(e){A.push(e.innerHTML),D.push(bt(t(e).css("width")))}),P),ft((function(e,i){-1!==t.inArray(e,k)&&(e.style.width=D[i])}),b),t(P).height(0),C&&(ft(M,R),ft((function(e){I.push(e.innerHTML),E.push(bt(t(e).css("width")))}),R),ft((function(t,e){t.style.width=E[e]}),O),t(R).height(0)),ft((function(t,e){t.innerHTML='
    '+A[e]+"
    ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=D[e]}),P),C&&ft((function(t,e){t.innerHTML='
    '+I[e]+"
    ",t.childNodes[0].style.height="0",t.childNodes[0].style.overflow="hidden",t.style.width=E[e]}),R),w.outerWidth()c.offsetHeight||"scroll"==m.css("overflow-y")?l+i:l,T&&(c.scrollHeight>c.offsetHeight||"scroll"==m.css("overflow-y"))&&(x.width=bt(O-i)),""!==o&&""===r||It(e,1,"Possible column misalignment",6)):O="100%",g.width=bt(O),a.width=bt(O),C&&(e.nScrollFoot.style.width=bt(O)),!s&&T&&(g.height=bt(_.offsetHeight+i)),o=w.outerWidth(),u[0].style.width=bt(o),h.width=bt(o),r=w.height()>c.clientHeight||"scroll"==m.css("overflow-y"),h[s="padding"+(S.bScrollbarLeft?"Left":"Right")]=r?i+"px":"0px",C&&(y[0].style.width=bt(o),v[0].style.width=bt(o),v[0].style[s]=r?i+"px":"0px"),w.children("colgroup").insertBefore(w.children("thead")),m.trigger("scroll"),!e.bSorted&&!e.bFiltered||e._drawHold||(c.scrollTop=0)}}function ft(t,e,i){for(var n,o,r=0,s=0,l=e.length;s").appendTo(h.find("tbody"));for(h.find("thead, tfoot").remove(),h.append(t(i.nTHead).clone()).append(t(i.nTFoot).clone()),h.find("tfoot th, tfoot td").css("width",""),d=H(i,h.find("thead")[0]),n=0;n").css({width:_.sWidthOrig,margin:0,padding:0,border:0,height:1}));if(i.aoData.length)for(n=0;n").css(a||l?{position:"absolute",top:0,left:0,height:1,right:0,overflow:"hidden"}:{}).append(h).appendTo(y),a&&c?h.width(c):a?(h.css("width","auto"),h.removeAttr("width"),h.width()").css("width",bt(e)).appendTo(n||i.body))[0].offsetWidth,e.remove(),n):0}function vt(e,i){var n=yt(e,i);if(0>n)return null;var o=e.aoData[n];return o.nTr?o.anCells[i]:t("").html(x(e,n,i,"display"))[0]}function yt(t,e){for(var i,n=-1,o=-1,r=0,s=t.aoData.length;rn&&(n=i.length,o=r);return o}function bt(t){return null===t?"0px":"number"==typeof t?0>t?"0px":t+"px":t.match(/\d$/)?t+"px":t}function wt(e){var i=[],o=e.aoColumns,r=e.aaSortingFixed,s=t.isPlainObject(r),l=[],a=function(e){e.length&&!Array.isArray(e[0])?l.push(e):t.merge(l,e)};for(Array.isArray(r)&&a(r),s&&r.pre&&a(r.pre),a(e.aaSorting),s&&r.post&&a(r.post),e=0;eu?1:0))return"asc"===c.dir?h:-h}return(h=i[t])<(u=i[e])?-1:h>u?1:0})):s.sort((function(t,e){var r,s=l.length,a=o[t]._aSortData,c=o[e]._aSortData;for(r=0;rd?1:0}))}t.bSorted=!0}function xt(t){var e=t.aoColumns,i=wt(t);t=t.oLanguage.oAria;for(var n=0,o=e.length;n/g,""),a=r.nTh;a.removeAttribute("aria-sort"),r.bSortable&&(0s?s+1:3))}for(s=0,i=r.length;ss?s+1:3))}e.aLastSort=r}function kt(t,e){var i,n=t.aoColumns[e],o=Vt.ext.order[n.sSortDataType];o&&(i=o.call(t.oInstance,t,e,m(t,e)));for(var r,s=Vt.ext.type.order[n.sType+"-pre"],l=0,a=t.aoData.length;l=l.length?[0,i[1]]:i)}))),i.search!==n&&t.extend(e.oPreviousSearch,tt(i.search)),i.columns)for(r=0,s=i.columns.length;r=i&&(e=i-n),e-=e%n,(-1===n||0>e)&&(e=0),t._iDisplayStart=e}function Lt(e,i){e=e.renderer;var n=Vt.ext.renderer[i];return t.isPlainObject(e)&&e[i]?n[e[i]]||n._:"string"==typeof e&&n[e]||n._}function Bt(t){return t.oFeatures.bServerSide?"ssp":t.ajax||t.sAjaxSource?"ajax":"dom"}function Nt(t,e){var i=Me.numbers_length,n=Math.floor(i/2);return e<=i?t=re(0,e):t<=n?((t=re(0,i-2)).push("ellipsis"),t.push(e-1)):(t>=e-1-n?t=re(e-(i-2),e):((t=re(t-n+2,t+n-1)).push("ellipsis"),t.push(e-1)),t.splice(0,0,"ellipsis"),t.splice(0,0,0)),t.DT_el="span",t}function Ht(e){t.each({num:function(t){return Pe(t,e)},"num-fmt":function(t){return Pe(t,e,Qt)},"html-num":function(t){return Pe(t,e,Gt)},"html-num-fmt":function(t){return Pe(t,e,Gt,Qt)}},(function(t,i){zt.type.order[t+e+"-pre"]=i,t.match(/^html\-/)&&(zt.type.search[t+e]=zt.type.search.html)}))}function $t(t){return function(){var e=[At(this[Vt.ext.iApiIndex])].concat(Array.prototype.slice.call(arguments));return Vt.ext.internal[t].apply(this,e)}}var zt,qt,Wt,Vt=function(e){this.$=function(t,e){return this.api(!0).$(t,e)},this._=function(t,e){return this.api(!0).rows(t,e).data()},this.api=function(t){return new be(t?At(this[zt.iApiIndex]):this)},this.fnAddData=function(e,i){var o=this.api(!0);return e=Array.isArray(e)&&(Array.isArray(e[0])||t.isPlainObject(e[0]))?o.rows.add(e):o.row.add(e),(i===n||i)&&o.draw(),e.flatten().toArray()},this.fnAdjustColumnSizing=function(t){var e=this.api(!0).columns.adjust(),i=e.settings()[0],o=i.oScroll;t===n||t?e.draw(!1):(""!==o.sX||""!==o.sY)&&pt(i)},this.fnClearTable=function(t){var e=this.api(!0).clear();(t===n||t)&&e.draw()},this.fnClose=function(t){this.api(!0).row(t).child.hide()},this.fnDeleteRow=function(t,e,i){var o=this.api(!0),r=(t=o.rows(t)).settings()[0],s=r.aoData[t[0][0]];return t.remove(),e&&e.call(this,r,s),(i===n||i)&&o.draw(),s},this.fnDestroy=function(t){this.api(!0).destroy(t)},this.fnDraw=function(t){this.api(!0).draw(t)},this.fnFilter=function(t,e,i,o,r,s){r=this.api(!0),null===e||e===n?r.search(t,i,o,s):r.column(e).search(t,i,o,s),r.draw()},this.fnGetData=function(t,e){var i=this.api(!0);if(t!==n){var o=t.nodeName?t.nodeName.toLowerCase():"";return e!==n||"td"==o||"th"==o?i.cell(t,e).data():i.row(t).data()||null}return i.data().toArray()},this.fnGetNodes=function(t){var e=this.api(!0);return t!==n?e.row(t).node():e.rows().nodes().flatten().toArray()},this.fnGetPosition=function(t){var e=this.api(!0),i=t.nodeName.toUpperCase();return"TR"==i?e.row(t).index():"TD"==i||"TH"==i?[(t=e.cell(t).index()).row,t.columnVisible,t.column]:null},this.fnIsOpen=function(t){return this.api(!0).row(t).child.isShown()},this.fnOpen=function(t,e,i){return this.api(!0).row(t).child(e,i).show().child()[0]},this.fnPageChange=function(t,e){t=this.api(!0).page(t),(e===n||e)&&t.draw(!1)},this.fnSetColumnVis=function(t,e,i){t=this.api(!0).column(t).visible(e),(i===n||i)&&t.columns.adjust().draw()},this.fnSettings=function(){return At(this[zt.iApiIndex])},this.fnSort=function(t){this.api(!0).order(t).draw()},this.fnSortListener=function(t,e,i){this.api(!0).order.listener(t,e,i)},this.fnUpdate=function(t,e,i,o,r){var s=this.api(!0);return i===n||null===i?s.row(e).data(t):s.cell(e,i).data(t),(r===n||r)&&s.columns.adjust(),(o===n||o)&&s.draw(),0},this.fnVersionCheck=zt.fnVersionCheck;var i=this,o=e===n,h=this.length;for(var p in o&&(e={}),this.oApi=this.internal=zt.internal,Vt.ext.internal)p&&(this[p]=$t(p));return this.each((function(){var p,f={},m=1").appendTo(x)),D.nTHead=i[0];var o=x.children("tbody");if(0===o.length&&(o=t("").insertAfter(i)),D.nTBody=o[0],0===(i=x.children("tfoot")).length&&0").appendTo(x)),0===i.length||0===i.children().length?x.addClass(E.sNoFooter):0/g,Zt=/^\d{2,4}[\.\/\-]\d{1,2}[\.\/\-]\d{1,2}([T ]{1}\d{1,2}[:\.]\d{2}([\.:]\d{2})?)?$/,Xt=/(\/|\.|\*|\+|\?|\||\(|\)|\[|\]|\{|\}|\\|\$|\^|\-)/g,Qt=/['\u00A0,$£€¥%\u2009\u202F\u20BD\u20a9\u20BArfkɃΞ]/gi,Kt=function(t){return!t||!0===t||"-"===t},Jt=function(t){var e=parseInt(t,10);return!isNaN(e)&&isFinite(t)?e:null},te=function(t,e){return Ut[e]||(Ut[e]=new RegExp(de(e),"g")),"string"==typeof t&&"."!==e?t.replace(/\./g,"").replace(Ut[e],"."):t},ee=function(t,e,i){var n="string"==typeof t;return!!Kt(t)||(e&&n&&(t=te(t,e)),i&&n&&(t=t.replace(Qt,"")),!isNaN(parseFloat(t))&&isFinite(t))},ie=function(t,e,i){return!!Kt(t)||((Kt(t)||"string"==typeof t)&&!!ee(t.replace(Gt,""),e,i)||null)},ne=function(t,e,i){var o=[],r=0,s=t.length;if(i!==n)for(;rt.length))for(var e=t.slice().sort(),i=e[0],n=1,o=e.length;n")[0],fe=pe.textContent!==n,me=/<.*?>/g,ge=Vt.util.throttle,ve=[],ye=Array.prototype,be=function(e,i){if(!(this instanceof be))return new be(e,i);var n=[],o=function(e){(e=function(e){var i,n=Vt.settings,o=t.map(n,(function(t,e){return t.nTable}));if(!e)return[];if(e.nTable&&e.oApi)return[e];if(e.nodeName&&"table"===e.nodeName.toLowerCase()){var r=t.inArray(e,o);return-1!==r?[n[r]]:null}return e&&"function"==typeof e.settings?e.settings().toArray():("string"==typeof e?i=t(e):e instanceof t&&(i=e),i?i.map((function(e){return-1!==(r=t.inArray(this,o))?n[r]:null})).toArray():void 0)}(e))&&n.push.apply(n,e)};if(Array.isArray(e))for(var r=0,s=e.length;rt?new be(e[t],this[t]):null},filter:function(t){var e=[];if(ye.filter)e=ye.filter.call(this,t,this);else for(var i=0,n=this.length;i").addClass(n),t("td",o).addClass(n).html(i)[0].colSpan=g(e),r.push(o[0]))};s(n,o),i._details&&i._details.detach(),i._details=t(r),i._detailsShow&&i._details.insertAfter(i.nTr)}(o[0],o[0].aoData[this[0]],e,i),this)})),qt(["row().child.show()","row().child().show()"],(function(t){return De(this,!0),this})),qt(["row().child.hide()","row().child().hide()"],(function(){return De(this,!1),this})),qt(["row().child.remove()","row().child().remove()"],(function(){return ke(this),this})),qt("row().child.isShown()",(function(){var t=this.context;return t.length&&this.length&&t[0].aoData[this[0]]._detailsShow||!1}));var Ae=/^([^:]+):(name|visIdx|visible)$/,Ie=function(t,e,i,n,o){i=[],n=0;for(var r=o.length;n(l=parseInt(c[1],10))){var h=t.map(o,(function(t,e){return t.bVisible?e:null}));return[h[h.length+l]]}return[f(e,l)];case"name":return t.map(r,(function(t,e){return t===c[1]?e:null}));default:return[]}return i.nodeName&&i._DT_CellIndex?[i._DT_CellIndex.column]:(l=t(s).filter(i).map((function(){return t.inArray(this,s)})).toArray()).length||!i.nodeName?l:(l=t(i).closest("*[data-dt-column]")).length?[l.data("dt-column")]:[]}),e,n)}(n,e,i)}),1);return o.selector.cols=e,o.selector.opts=i,o})),Wt("columns().header()","column().header()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTh}),1)})),Wt("columns().footer()","column().footer()",(function(t,e){return this.iterator("column",(function(t,e){return t.aoColumns[e].nTf}),1)})),Wt("columns().data()","column().data()",(function(){return this.iterator("column-rows",Ie,1)})),Wt("columns().dataSrc()","column().dataSrc()",(function(){return this.iterator("column",(function(t,e){return t.aoColumns[e].mData}),1)})),Wt("columns().cache()","column().cache()",(function(t){return this.iterator("column-rows",(function(e,i,n,o,r){return oe(e.aoData,r,"search"===t?"_aFilterData":"_aSortData",i)}),1)})),Wt("columns().nodes()","column().nodes()",(function(){return this.iterator("column-rows",(function(t,e,i,n,o){return oe(t.aoData,o,"anCells",e)}),1)})),Wt("columns().visible()","column().visible()",(function(e,i){var o=this,r=this.iterator("column",(function(i,o){if(e===n)return i.aoColumns[o].bVisible;var r,s=i.aoColumns,l=s[o],a=i.aoData;if(e!==n&&l.bVisible!==e){if(e){var c=t.inArray(!0,ne(s,"bVisible"),o+1);for(s=0,r=a.length;si;return!0},Vt.isDataTable=Vt.fnIsDataTable=function(e){var i=t(e).get(0),n=!1;return e instanceof Vt.Api||(t.each(Vt.settings,(function(e,o){e=o.nScrollHead?t("table",o.nScrollHead)[0]:null;var r=o.nScrollFoot?t("table",o.nScrollFoot)[0]:null;o.nTable!==i&&e!==i&&r!==i||(n=!0)})),n)},Vt.tables=Vt.fnTables=function(e){var i=!1;t.isPlainObject(e)&&(i=e.api,e=e.visible);var n=t.map(Vt.settings,(function(i){if(!e||e&&t(i.nTable).is(":visible"))return i.nTable}));return i?new be(n):n},Vt.camelToHungarian=r,qt("$()",(function(e,i){return i=this.rows(i).nodes(),i=t(i),t([].concat(i.filter(e).toArray(),i.find(e).toArray()))})),t.each(["on","one","off"],(function(e,i){qt(i+"()",(function(){var e=Array.prototype.slice.call(arguments);e[0]=t.map(e[0].split(/\s/),(function(t){return t.match(/\.dt\b/)?t:t+".dt"})).join(" ");var n=t(this.tables().nodes());return n[i].apply(n,e),this}))})),qt("clear()",(function(){return this.iterator("table",(function(t){E(t)}))})),qt("settings()",(function(){return new be(this.context,this.context)})),qt("init()",(function(){var t=this.context;return t.length?t[0].oInit:null})),qt("data()",(function(){return this.iterator("table",(function(t){return ne(t.aoData,"_aData")})).flatten()})),qt("destroy()",(function(i){return i=i||!1,this.iterator("table",(function(n){var o=n.nTableWrapper.parentNode,r=n.oClasses,s=n.nTable,l=n.nTBody,a=n.nTHead,c=n.nTFoot,h=t(s);l=t(l);var u,d=t(n.nTableWrapper),p=t.map(n.aoData,(function(t){return t.nTr}));n.bDestroying=!0,Ft(n,"aoDestroyCallback","destroy",[n]),i||new be(n).columns().visible(!0),d.off(".DT").find(":not(tbody *)").off(".DT"),t(e).off(".DT-"+n.sInstance),s!=a.parentNode&&(h.children("thead").detach(),h.append(a)),c&&s!=c.parentNode&&(h.children("tfoot").detach(),h.append(c)),n.aaSorting=[],n.aaSortingFixed=[],Tt(n),t(p).removeClass(n.asStripeClasses.join(" ")),t("th, td",a).removeClass(r.sSortable+" "+r.sSortableAsc+" "+r.sSortableDesc+" "+r.sSortableNone),l.children().detach(),l.append(p),h[a=i?"remove":"detach"](),d[a](),!i&&o&&(o.insertBefore(s,n.nTableReinsertBefore),h.css("width",n.sDestroyWidth).removeClass(r.sTable),(u=n.asDestroyStripes.length)&&l.children().each((function(e){t(this).addClass(n.asDestroyStripes[e%u])}))),-1!==(o=t.inArray(n,Vt.settings))&&Vt.settings.splice(o,1)}))})),t.each(["column","row","cell"],(function(t,e){qt(e+"s().every()",(function(t){var i=this.selector.opts,o=this;return this.iterator(e,(function(r,s,l,a,c){t.call(o[e](s,"cell"===e?l:i,"cell"===e?i:n),s,l,a,c)}))}))})),qt("i18n()",(function(e,i,o){var r=this.context[0];return(e=T(e)(r.oLanguage))===n&&(e=i),o!==n&&t.isPlainObject(e)&&(e=e[o]!==n?e[o]:e._),e.replace("%d",o)})),Vt.version="1.10.25",Vt.settings=[],Vt.models={},Vt.models.oSearch={bCaseInsensitive:!0,sSearch:"",bRegex:!1,bSmart:!0},Vt.models.oRow={nTr:null,anCells:null,_aData:[],_aSortData:null,_aFilterData:null,_sFilterRow:null,_sRowStripe:"",src:null,idx:-1},Vt.models.oColumn={idx:null,aDataSort:null,asSorting:null,bSearchable:null,bSortable:null,bVisible:null,_sManualType:null,_bAttrSrc:!1,fnCreatedCell:null,fnGetData:null,fnSetData:null,mData:null,mRender:null,nTh:null,nTf:null,sClass:null,sContentPadding:null,sDefaultContent:null,sName:null,sSortDataType:"std",sSortingClass:null,sSortingClassJUI:null,sTitle:null,sType:null,sWidth:null,sWidthOrig:null},Vt.defaults={aaData:null,aaSorting:[[0,"asc"]],aaSortingFixed:[],ajax:null,aLengthMenu:[10,25,50,100],aoColumns:null,aoColumnDefs:null,aoSearchCols:[],asStripeClasses:null,bAutoWidth:!0,bDeferRender:!1,bDestroy:!1,bFilter:!0,bInfo:!0,bLengthChange:!0,bPaginate:!0,bProcessing:!1,bRetrieve:!1,bScrollCollapse:!1,bServerSide:!1,bSort:!0,bSortMulti:!0,bSortCellsTop:!1,bSortClasses:!0,bStateSave:!1,fnCreatedRow:null,fnDrawCallback:null,fnFooterCallback:null,fnFormatNumber:function(t){return t.toString().replace(/\B(?=(\d{3})+(?!\d))/g,this.oLanguage.sThousands)},fnHeaderCallback:null,fnInfoCallback:null,fnInitComplete:null,fnPreDrawCallback:null,fnRowCallback:null,fnServerData:null,fnServerParams:null,fnStateLoadCallback:function(t){try{return JSON.parse((-1===t.iStateDuration?sessionStorage:localStorage).getItem("DataTables_"+t.sInstance+"_"+location.pathname))}catch(t){return{}}},fnStateLoadParams:null,fnStateLoaded:null,fnStateSaveCallback:function(t,e){try{(-1===t.iStateDuration?sessionStorage:localStorage).setItem("DataTables_"+t.sInstance+"_"+location.pathname,JSON.stringify(e))}catch(t){}},fnStateSaveParams:null,iStateDuration:7200,iDeferLoading:null,iDisplayLength:10,iDisplayStart:0,iTabIndex:0,oClasses:{},oLanguage:{oAria:{sSortAscending:": activate to sort column ascending",sSortDescending:": activate to sort column descending"},oPaginate:{sFirst:"First",sLast:"Last",sNext:"Next",sPrevious:"Previous"},sEmptyTable:"No data available in table",sInfo:"Showing _START_ to _END_ of _TOTAL_ entries",sInfoEmpty:"Showing 0 to 0 of 0 entries",sInfoFiltered:"(filtered from _MAX_ total entries)",sInfoPostFix:"",sDecimal:"",sThousands:",",sLengthMenu:"Show _MENU_ entries",sLoadingRecords:"Loading...",sProcessing:"Processing...",sSearch:"Search:",sSearchPlaceholder:"",sUrl:"",sZeroRecords:"No matching records found"},oSearch:t.extend({},Vt.models.oSearch),sAjaxDataProp:"data",sAjaxSource:null,sDom:"lfrtip",searchDelay:null,sPaginationType:"simple_numbers",sScrollX:"",sScrollXInner:"",sScrollY:"",sServerMethod:"GET",renderer:null,rowId:"DT_RowId"},o(Vt.defaults),Vt.defaults.column={aDataSort:null,iDataSort:-1,asSorting:["asc","desc"],bSearchable:!0,bSortable:!0,bVisible:!0,fnCreatedCell:null,mData:null,mRender:null,sCellType:"td",sClass:"",sContentPadding:"",sDefaultContent:null,sName:"",sSortDataType:"std",sTitle:null,sType:null,sWidth:null},o(Vt.defaults.column),Vt.models.oSettings={oFeatures:{bAutoWidth:null,bDeferRender:null,bFilter:null,bInfo:null,bLengthChange:null,bPaginate:null,bProcessing:null,bServerSide:null,bSort:null,bSortMulti:null,bSortClasses:null,bStateSave:null},oScroll:{bCollapse:null,iBarWidth:0,sX:null,sXInner:null,sY:null},oLanguage:{fnInfoCallback:null},oBrowser:{bScrollOversize:!1,bScrollbarLeft:!1,bBounding:!1,barWidth:0},ajax:null,aanFeatures:[],aoData:[],aiDisplay:[],aiDisplayMaster:[],aIds:{},aoColumns:[],aoHeader:[],aoFooter:[],oPreviousSearch:{},aoPreSearchCols:[],aaSorting:null,aaSortingFixed:[],asStripeClasses:null,asDestroyStripes:[],sDestroyWidth:0,aoRowCallback:[],aoHeaderCallback:[],aoFooterCallback:[],aoDrawCallback:[],aoRowCreatedCallback:[],aoPreDrawCallback:[],aoInitComplete:[],aoStateSaveParams:[],aoStateLoadParams:[],aoStateLoaded:[],sTableId:"",nTable:null,nTHead:null,nTFoot:null,nTBody:null,nTableWrapper:null,bDeferLoading:!1,bInitialised:!1,aoOpenRows:[],sDom:null,searchDelay:null,sPaginationType:"two_button",iStateDuration:0,aoStateSave:[],aoStateLoad:[],oSavedState:null,oLoadedState:null,sAjaxSource:null,sAjaxDataProp:null,jqXHR:null,json:n,oAjaxData:n,fnServerData:null,aoServerParams:[],sServerMethod:null,fnFormatNumber:null,aLengthMenu:null,iDraw:0,bDrawing:!1,iDrawError:-1,_iDisplayLength:10,_iDisplayStart:0,_iRecordsTotal:0,_iRecordsDisplay:0,oClasses:{},bFiltered:!1,bSorted:!1,bSortCellsTop:null,oInit:null,aoDestroyCallback:[],fnRecordsTotal:function(){return"ssp"==Bt(this)?1*this._iRecordsTotal:this.aiDisplayMaster.length},fnRecordsDisplay:function(){return"ssp"==Bt(this)?1*this._iRecordsDisplay:this.aiDisplay.length},fnDisplayEnd:function(){var t=this._iDisplayLength,e=this._iDisplayStart,i=e+t,n=this.aiDisplay.length,o=this.oFeatures,r=o.bPaginate;return o.bServerSide?!1===r||-1===t?e+n:Math.min(e+t,this._iRecordsDisplay):!r||i>n||-1===t?n:i},oInstance:null,sInstance:null,iTabIndex:0,nScrollHead:null,nScrollFoot:null,aLastSort:[],oPlugins:{},rowIdFn:null,rowId:null},Vt.ext=zt={buttons:{},classes:{},builder:"-source-",errMode:"alert",feature:[],search:[],selector:{cell:[],column:[],row:[]},internal:{},legacy:{ajax:null},pager:{},renderer:{pageButton:{},header:{}},order:{},type:{detect:[],search:{},order:{}},_unique:0,fnVersionCheck:Vt.fnVersionCheck,iApiIndex:0,oJUIClasses:{},sVersion:Vt.version},t.extend(zt,{afnFiltering:zt.search,aTypes:zt.type.detect,ofnSearch:zt.type.search,oSort:zt.type.order,afnSortData:zt.order,aoFeatures:zt.feature,oApi:zt.internal,oStdClasses:zt.classes,oPagination:zt.pager}),t.extend(Vt.ext.classes,{sTable:"dataTable",sNoFooter:"no-footer",sPageButton:"paginate_button",sPageButtonActive:"current",sPageButtonDisabled:"disabled",sStripeOdd:"odd",sStripeEven:"even",sRowEmpty:"dataTables_empty",sWrapper:"dataTables_wrapper",sFilter:"dataTables_filter",sInfo:"dataTables_info",sPaging:"dataTables_paginate paging_",sLength:"dataTables_length",sProcessing:"dataTables_processing",sSortAsc:"sorting_asc",sSortDesc:"sorting_desc",sSortable:"sorting",sSortableAsc:"sorting_desc_disabled",sSortableDesc:"sorting_asc_disabled",sSortableNone:"sorting_disabled",sSortColumn:"sorting_",sFilterInput:"",sLengthSelect:"",sScrollWrapper:"dataTables_scroll",sScrollHead:"dataTables_scrollHead",sScrollHeadInner:"dataTables_scrollHeadInner",sScrollBody:"dataTables_scrollBody",sScrollFoot:"dataTables_scrollFoot",sScrollFootInner:"dataTables_scrollFootInner",sHeaderTH:"",sFooterTH:"",sSortJUIAsc:"",sSortJUIDesc:"",sSortJUI:"",sSortJUIAscAllowed:"",sSortJUIDescAllowed:"",sSortJUIWrapper:"",sSortIcon:"",sJUIHeader:"",sJUIFooter:""});var Me=Vt.ext.pager;t.extend(Me,{simple:function(t,e){return["previous","next"]},full:function(t,e){return["first","previous","next","last"]},numbers:function(t,e){return[Nt(t,e)]},simple_numbers:function(t,e){return["previous",Nt(t,e),"next"]},full_numbers:function(t,e){return["first","previous",Nt(t,e),"next","last"]},first_last_numbers:function(t,e){return["first",Nt(t,e),"last"]},_numbers:Nt,numbers_length:7}),t.extend(!0,Vt.ext.renderer,{pageButton:{_:function(e,o,r,s,l,a){var c,h,u=e.oClasses,d=e.oLanguage.oPaginate,p=e.oLanguage.oAria.paginate||{},f=0,m=function(i,n){var o,s=u.sPageButtonDisabled,g=function(t){ct(e,t.data.action,!0)},v=0;for(o=n.length;v").appendTo(i);m(b,y)}else{switch(c=null,h=y,b=e.iTabIndex,y){case"ellipsis":i.append('');break;case"first":c=d.sFirst,0===l&&(b=-1,h+=" "+s);break;case"previous":c=d.sPrevious,0===l&&(b=-1,h+=" "+s);break;case"next":c=d.sNext,0!==a&&l!==a-1||(b=-1,h+=" "+s);break;case"last":c=d.sLast,0!==a&&l!==a-1||(b=-1,h+=" "+s);break;default:c=e.fnFormatNumber(y+1),h=l===y?u.sPageButtonActive:""}null!==c&&(Rt(b=t("",{class:u.sPageButton+" "+h,"aria-controls":e.sTableId,"aria-label":p[y],"data-dt-idx":f,tabindex:b,id:0===r&&"string"==typeof y?e.sTableId+"_"+y:null}).html(c).appendTo(i),{action:y},g),f++)}}};try{var g=t(o).find(i.activeElement).data("dt-idx")}catch(t){}m(t(o).empty(),s),g!==n&&t(o).find("[data-dt-idx="+g+"]").trigger("focus")}}}),t.extend(Vt.ext.type.detect,[function(t,e){return e=e.oLanguage.sDecimal,ee(t,e)?"num"+e:null},function(t,e){return(!t||t instanceof Date||Zt.test(t))&&(null!==(e=Date.parse(t))&&!isNaN(e)||Kt(t))?"date":null},function(t,e){return e=e.oLanguage.sDecimal,ee(t,e,!0)?"num-fmt"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ie(t,e)?"html-num"+e:null},function(t,e){return e=e.oLanguage.sDecimal,ie(t,e,!0)?"html-num-fmt"+e:null},function(t,e){return Kt(t)||"string"==typeof t&&-1!==t.indexOf("<")?"html":null}]),t.extend(Vt.ext.type.search,{html:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Yt," ").replace(Gt,""):""},string:function(t){return Kt(t)?t:"string"==typeof t?t.replace(Yt," "):t}});var Pe=function(t,e,i,n){return 0===t||t&&"-"!==t?(e&&(t=te(t,e)),t.replace&&(i&&(t=t.replace(i,"")),n&&(t=t.replace(n,""))),1*t):-1/0};t.extend(zt.type.order,{"date-pre":function(t){return t=Date.parse(t),isNaN(t)?-1/0:t},"html-pre":function(t){return Kt(t)?"":t.replace?t.replace(/<.*?>/g,"").toLowerCase():t+""},"string-pre":function(t){return Kt(t)?"":"string"==typeof t?t.toLowerCase():t.toString?t.toString():""},"string-asc":function(t,e){return te?1:0},"string-desc":function(t,e){return te?-1:0}}),Ht(""),t.extend(!0,Vt.ext.renderer,{header:{_:function(e,i,n,o){t(e.nTable).on("order.dt.DT",(function(t,r,s,l){e===r&&(t=n.idx,i.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==l[t]?o.sSortAsc:"desc"==l[t]?o.sSortDesc:n.sSortingClass))}))},jqueryui:function(e,i,n,o){t("
    ").addClass(o.sSortJUIWrapper).append(i.contents()).append(t("").addClass(o.sSortIcon+" "+n.sSortingClassJUI)).appendTo(i),t(e.nTable).on("order.dt.DT",(function(t,r,s,l){e===r&&(t=n.idx,i.removeClass(o.sSortAsc+" "+o.sSortDesc).addClass("asc"==l[t]?o.sSortAsc:"desc"==l[t]?o.sSortDesc:n.sSortingClass),i.find("span."+o.sSortIcon).removeClass(o.sSortJUIAsc+" "+o.sSortJUIDesc+" "+o.sSortJUI+" "+o.sSortJUIAscAllowed+" "+o.sSortJUIDescAllowed).addClass("asc"==l[t]?o.sSortJUIAsc:"desc"==l[t]?o.sSortJUIDesc:n.sSortingClassJUI))}))}}});var Re=function(t){return"string"==typeof t?t.replace(/&/g,"&").replace(//g,">").replace(/"/g,"""):t};return Vt.render={number:function(t,e,i,n,o){return{display:function(r){if("number"!=typeof r&&"string"!=typeof r)return r;var s=0>r?"-":"",l=parseFloat(r);return isNaN(l)?Re(r):(l=l.toFixed(i),r=Math.abs(l),l=parseInt(r,10),r=i?e+(r-l).toFixed(i).substring(2):"",0===l&&0===parseFloat(r)&&(s=""),s+(n||"")+l.toString().replace(/\B(?=(\d{3})+(?!\d))/g,t)+r+(o||""))}}},text:function(){return{display:Re,filter:Re}}},t.extend(Vt.ext.internal,{_fnExternApiFunc:$t,_fnBuildAjax:$,_fnAjaxUpdate:z,_fnAjaxParameters:q,_fnAjaxUpdateDraw:W,_fnAjaxDataSrc:V,_fnAddColumn:u,_fnColumnOptions:d,_fnAdjustColumnSizing:p,_fnVisibleToColumnIndex:f,_fnColumnIndexToVisible:m,_fnVisbleColumns:g,_fnGetColumns:v,_fnColumnTypes:y,_fnApplyColumnDefs:b,_fnHungarianMap:o,_fnCamelToHungarian:r,_fnLanguageCompat:s,_fnBrowserDetect:c,_fnAddData:w,_fnAddTr:_,_fnNodeToDataIndex:function(t,e){return e._DT_RowIndex!==n?e._DT_RowIndex:null},_fnNodeToColumnIndex:function(e,i,n){return t.inArray(n,e.aoData[i].anCells)},_fnGetCellData:x,_fnSetCellData:C,_fnSplitObjNotation:S,_fnGetObjectDataFn:T,_fnSetObjectDataFn:k,_fnGetDataMaster:D,_fnClearTable:E,_fnDeleteIndex:A,_fnInvalidate:I,_fnGetRowElements:M,_fnCreateTr:P,_fnBuildHead:O,_fnDrawHead:F,_fnDraw:j,_fnReDraw:L,_fnAddOptionsHtml:B,_fnDetectHeader:N,_fnGetUniqueThs:H,_fnFeatureHtmlFilter:U,_fnFilterComplete:Y,_fnFilterCustom:G,_fnFilterColumn:Z,_fnFilter:X,_fnFilterCreateSearch:Q,_fnEscapeRegex:de,_fnFilterData:K,_fnFeatureHtmlInfo:et,_fnUpdateInfo:it,_fnInfoMacros:nt,_fnInitialise:ot,_fnInitComplete:rt,_fnLengthChange:st,_fnFeatureHtmlLength:lt,_fnFeatureHtmlPaginate:at,_fnPageChange:ct,_fnFeatureHtmlProcessing:ht,_fnProcessingDisplay:ut,_fnFeatureHtmlTable:dt,_fnScrollDraw:pt,_fnApplyToChildren:ft,_fnCalculateColumnWidths:mt,_fnThrottle:ge,_fnConvertToWidth:gt,_fnGetWidestNode:vt,_fnGetMaxLenString:yt,_fnStringToCss:bt,_fnSortFlatten:wt,_fnSort:_t,_fnSortAria:xt,_fnSortListener:Ct,_fnSortAttachListener:St,_fnSortingClasses:Tt,_fnSortData:kt,_fnSaveState:Dt,_fnLoadState:Et,_fnSettingsFromNode:At,_fnLog:It,_fnMap:Mt,_fnBindAction:Rt,_fnCallbackReg:Ot,_fnCallbackFire:Ft,_fnLengthOverflow:jt,_fnRenderer:Lt,_fnDataSource:Bt,_fnRowAttributes:R,_fnExtend:Pt,_fnCalculateEnd:function(){}}),t.fn.dataTable=Vt,Vt.$=t,t.fn.dataTableSettings=Vt.settings,t.fn.dataTableExt=Vt.ext,t.fn.DataTable=function(e){return t(this).dataTable(e).api()},t.each(Vt,(function(e,i){t.fn.DataTable[e]=i})),t.fn.dataTable})),function(t,e,i){var n=function(t,i){"use strict";var n=function(e,i){this.CLASS&&"ColVis"==this.CLASS||alert("Warning: ColVis must be initialised with the keyword 'new'"),void 0===i&&(i={});var o=t.fn.dataTable.camelToHungarian;return o&&(o(n.defaults,n.defaults,!0),o(n.defaults,i)),this.s={dt:null,oInit:i,hidden:!0,abOriginal:[]},this.dom={wrapper:null,button:null,collection:null,background:null,catcher:null,buttons:[],groupButtons:[],restore:null},n.aInstances.push(this),this.s.dt=t.fn.dataTable.Api?new t.fn.dataTable.Api(e).settings()[0]:e,this._fnConstruct(i),this};return n.prototype={button:function(){return this.dom.wrapper},fnRebuild:function(){this.rebuild()},rebuild:function(){for(var t=this.dom.buttons.length-1;t>=0;t--)this.dom.collection.removeChild(this.dom.buttons[t]);this.dom.buttons.splice(0,this.dom.buttons.length),this.dom.groupButtons.splice(0,this.dom.groupButtons.length),this.dom.restore&&this.dom.restore.parentNode(this.dom.restore),this._fnAddGroups(),this._fnAddButtons(),this._fnDrawCallback()},_fnConstruct:function(i){this._fnApplyCustomisation(i);var n,o,r=this;for(this.dom.wrapper=e.createElement("div"),this.dom.wrapper.className="ColVis",this.dom.button=t("