⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.19
Server IP:
178.33.27.10
Server:
Linux cpanel.dev-unit.com 3.10.0-1160.108.1.el7.x86_64 #1 SMP Thu Jan 25 16:17:31 UTC 2024 x86_64
Server Software:
Apache/2.4.57 (Unix) OpenSSL/1.0.2k-fips
PHP Version:
8.2.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
id
/
dalily.dev-unit.com
/
public
/
dist
/
front
/
View File Name :
scripts.js
if(Array.isArray||(Array.isArray=function(t){return"[object Array]"===Object.prototype.toString.call(t)}),Number.isNaN=Number.isNaN||function(t){return"number"==typeof t&&isNaN(t)},Number.isInteger=Number.isInteger||function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t},Number.MAX_SAFE_INTEGER||(Number.MAX_SAFE_INTEGER=9007199254740991),Number.isSafeInteger=Number.isSafeInteger||function(t){return Number.isInteger(t)&&Math.abs(t)<=Number.MAX_SAFE_INTEGER},String.prototype.endsWith||(String.prototype.endsWith=function(t,e){var i=this.toString();("number"!=typeof e||!isFinite(e)||Math.floor(e)!==e||e>i.length)&&(e=i.length),e-=t.length;var n=i.lastIndexOf(t,e);return-1!==n&&n===e}),!window.onDocumentReady)function onDocumentReady(t,e=!0){switch(document.readyState){case"loading":default:document.addEventListener("DOMContentLoaded",t);break;case"interactive":e||setTimeout(t,500);break;case"complete":t()}}function onDomElementsAdded(t,e){let i=document.querySelectorAll(t),n=i.length>0?Array.from(i):[];return new MutationObserver((function(i){for(let e of i)if("childList"===e.type)for(let i of e.addedNodes){i.matches&&i.matches(t)&&n.push(i),(i.querySelectorAll?i.querySelectorAll(t):[]).forEach((t=>n.push(t)))}"function"==typeof e&&e(n)})).observe(document.body,{childList:!0,subtree:!0}),n}function setupFormSubmit(t,e){const i=document.querySelector(t),n=document.querySelector(e);i&&n?n.addEventListener("click",(t=>{t.preventDefault(),i.submit()})):console.error("Form or submit button not found")}function addInputChangeListeners(t,e){t.addEventListener("input",(t=>e(t))),t.addEventListener("change",(t=>e(t)))}function preventPageLoadingInIframe(){try{window.top.location!==window.location&&window.top.location.replace(siteUrl)}catch(t){console.error(t)}}function createCookie(t,e,i=null){i=isEmpty(i)?cookieParams.expires:i;let n,s=cookieParams.path,o=cookieParams.domain,r=cookieParams.secure,a=cookieParams.sameSite,l=encodeURIComponent(t)+"="+encodeURIComponent(e);if(i){let t=new Date;t.setTime(t.getTime()+60*i*1e3),n="; expires="+t.toUTCString()}else n="";let c=s?"; path="+s:"",u=o?"; domain="+o:"",h=r?"; secure":"",d=a?"; SameSite="+a:"";document.cookie=l+n+c+u+h+d}function readCookie(t){let e=encodeURIComponent(t)+"=",i=document.cookie.split(";");for(let t=0;t<i.length;t++){let n=i[t];for(;" "===n.charAt(0);)n=n.substring(1,n.length);if(0===n.indexOf(e))return decodeURIComponent(n.substring(e.length,n.length))}return null}function cookieExists(t){return isFilled(readCookie(t))}function eraseCookie(t){createCookie(t,"",-1)}function redirect(t){window.location.replace(t),window.location.href=t}function rawurlencode(t){return t=(t+"").toString(),encodeURIComponent(t).replace(/!/g,"%21").replace(/'/g,"%27").replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/\*/g,"%2A")}function isDefined(t){return void 0!==t}function isNotDefined(t){return void 0===t}function isElDefined(t){return null!=t}function isElNotDefined(t){return!isElDefined(t)}function isEmpty(t){return!!isBlank(t)||!!isNumeric(t,!0)&&(0===t||"0"===t)}function isBlank(t){return!isDefined(t)||null===t||(isArray(t)?0===t.length:!(t instanceof Date)&&(isObject(t)?isDefined(t.nodeName)?0===t.nodeName.length:isDefined(t.get)?0===t.get(0).tagName.length:0===Object.keys(t).length:[""].includes(t)))}function isFilled(t){return!isBlank(t)}function isBlankString(t){return isEmpty(t)||/^\s*$/.test(t)}function isString(t){return!!isDefined(t)&&("string"==typeof t||t instanceof String)}function isArray(t){return Array.isArray(t)}function isObject(t){return"object"==typeof t&&null!==t}function isDomElement(t){return isElDefined(t)&&(t instanceof HTMLElement||t instanceof Element)}function isJQueryObject(t){return"undefined"!=typeof jQuery&&t instanceof jQuery}function isJsonObject(t){return typeof isObject(t)&&!isArray(t)&&!isJQueryObject(t)&&!isDomElement(t)}function isNumeric(t,e=!1){let i="number"==typeof t&&!Number.isNaN(t);if(e){let e;i||(e=parseInt(t,10),i=t==e&&!Number.isNaN(e)),i||(e=parseFloat(t),i=t==e&&!Number.isNaN(e))}return i}function isInt(t){return isNumeric(t)&&Number.isSafeInteger(t)}function isFloat(t){return isNumeric(t)&&!Number.isInteger(t)}function isJsonString(t){if(isString(t))try{return JSON.parse(t),!0}catch(t){}return!1}function isArrayOfJsonObjects(t){return isArray(t)&&t.every((t=>isJsonObject(t)))}function isArrayOfDomElements(t){return isArray(t)&&t.every((t=>isDomElement(t)))}function getHtmlElement(){return document.documentElement}function strToLower(t){return isString(t)&&(t=t.toLowerCase()),t}function strToUpper(t){return isString(t)&&(t=t.toUpperCase()),t}function sleep(t){return new Promise((e=>setTimeout(e,t)))}function forEach(t,e){for(let i=0;i<t.length;i++)e(t[i],i)}function map(t,e){let i=[];for(let n=0;n<t.length;n++)i.push(e(t[n],n));return i}function getElementCoords(t){if(!isDomElement(t))return null;const e=window.scrollY,i=window.scrollX,n=t.getBoundingClientRect();return{top:n.top+e,right:n.right+i,bottom:n.bottom+e,left:n.left+i,width:n.width,height:n.height}}function getErrorMessage(t,e=null){if(!isDefined(t))return e;let i=getErrorMessageFromXhr(t);return isEmpty(i)&&(i=getErrorMessageFromJson(t)),isEmpty(i)&&(i=isString(t)?t:null),isEmpty(i)?e:i}function getErrorMessageFromXhr(t,e=null){let i=null;if(isDefined(t.responseJSON)&&(i=getErrorMessageFromJson(t.responseJSON)),isEmpty(i)){let e;isDefined(t.responseText)&&(e=isObject(t.responseText)?t.responseText:JSON.parse(t.responseText),i=getErrorMessageFromJson(e))}return isEmpty(i)?e:i}function getErrorMessageFromJson(t,e=null){if(!isObject(t))return e;let i=isDefined(t.message)?t.message:null;return isEmpty(i)&&(i=isDefined(t.error)?t.error:null),i=isString(i)?i:null,isEmpty(i)?e:i}function isEmailAddress(t){return/^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$/.test(t)}function findEmailAddresses(t){return t.match(/[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}/g)||[]}function resolveDomElements(t){return!t||Array.isArray(t)&&0===t.length?[]:(Array.isArray(t)||(t=[t]),t.flatMap((t=>Array.isArray(t)?resolveDomElements(t):"string"==typeof t?Array.from(document.querySelectorAll(t)):t instanceof Element?[t]:(console.warn(`Invalid selector: "${t}". Use a string, a DOM element, or an array of them.`),[]))))}function setElementsVisibility(t,e){const i=resolveDomElements(e);i.length<=0||i.forEach((e=>{"show"===t?e.style.display="":"hide"===t?e.style.display="none":console.warn(`Invalid action: "${t}". Use 'show' or 'hide'.`)}))}function toggleElementsClass(t,e,i){const n=resolveDomElements(t);n.length<=0||n.forEach((function(t){"add"===e?t.classList.add(i):"remove"===e?t.classList.remove(i):console.warn(`Invalid action: "${e}". Use 'add' or 'remove'.`)}))}function updateSelectOptions(t,e,i=null){const n=isString(t)?document.querySelector(t):t;if(isDomElement(n)){n.innerHTML="";for(const[t,s]of Object.entries(e)){const e=document.createElement("option");e.value=t,e.text=s,null!==i&&t===i&&(e.selected=!0),n.appendChild(e)}}else isString(t)&&console.error(`Select box with selector "${t}" not found.`)}function updateSelect2Options(t,e,i=null){if("undefined"==typeof jQuery||"undefined"==typeof $)return void console.error("jQuery is not available.");let n=isString(t)||isDomElement(t)?$(t):t;if(isJQueryObject(n)){n.empty();for(const[t,s]of Object.entries(e))t===i?n.append(`<option value="${t}" selected="selected">${s}</option>`):n.append(`<option value="${t}">${s}</option>`);null!==i&&n.val(i).trigger("change")}else isString(t)&&console.error(`Select box with selector "${t}" not found.`)}function assocObjectToKeyValue(t,e,i=null){const n={};for(const s in t)if(t.hasOwnProperty(s)){n[isEmpty(i)?s:t[s][i]]=t[s][e]}return n}function urlQuery(t=null,e={},i=null){return new UrlQuery(t,e,i)}class UrlQuery{constructor(t=null,e={},i=null){this.numericParameters=["distance"];const n=t||window.location.href;this.parsedUrl=new URL(n),!0===i?this.parsedUrl.protocol="https:":!1===i&&(this.parsedUrl.protocol="http:"),this.parameters={};for(const[t,e]of this.parsedUrl.searchParams.entries())this._setDeepValue(this.parameters,t,e);for(const[t,i]of Object.entries(e))this._setDeepValue(this.parameters,t,i);this.removeEmptyParameters()}setParameters(t={}){for(const[e,i]of Object.entries(t))this._setDeepValue(this.parameters,e,i);return this.removeEmptyParameters(),this}removeParameter(t){return this.removeParameters([t])}removeParameters(t=[]){for(const e of t)this._deleteDeepValue(this.parameters,e);return this}removeAllParameters(){return this.parameters={},this}removeEmptyParameters(){this.parameters=this._removeEmptyRecursive(this.parameters)}hasParameter(t){return void 0!==this._getDeepValue(this.parameters,t)}hasParameters(t=[]){for(const e of t)if(!this.hasParameter(e))return!1;return!0}requireParameter(t){const e=this.getParameter(t);if(null===e)throw new Error(`Parameter "${t}" is required but missing.`);return e}getParameter(t){const e=this._getDeepValue(this.parameters,t);return void 0!==e?e:null}getParameters(t=[]){const e={};for(const i of t){const t=this._getDeepValue(this.parameters,i);void 0!==t&&this._setDeepValue(e,i,t)}return e}getParametersExcluding(t=[]){const e=this._deepClone(this.parameters);for(const i of t)this._deleteDeepValue(e,i);return e}getAllParameters(){return this.parameters}buildUrl(){let t=`${this.parsedUrl.protocol}//${this.parsedUrl.hostname}`;this.parsedUrl.port&&(t+=`:${this.parsedUrl.port}`),t+=this.parsedUrl.pathname;const e=new URLSearchParams;this._objectToSearchParams(this.parameters,e);const i=e.toString();return i&&(t+=`?${i}`),this.parsedUrl.hash&&(t+=this.parsedUrl.hash),t}toString(){return this.buildUrl()}buildRelativeUrl(){const t=this.parsedUrl.pathname,e=new URLSearchParams;this._objectToSearchParams(this.parameters,e);let i=t;const n=e.toString();return n&&(i+=`?${n}`),this.parsedUrl.hash&&(i+=this.parsedUrl.hash),i}getPath(){return this.parsedUrl.pathname}setPath(t){return this.parsedUrl.pathname=t,this}getHost(){return this.parsedUrl.hostname}setHost(t){return this.parsedUrl.hostname=t,this}setFragment(t=""){return this.parsedUrl.hash=t?`#${t}`:"",this}removeFragment(){return this.parsedUrl.hash="",this}clone(){return new UrlQuery(this.buildUrl())}_removeEmptyRecursive(t){if(Array.isArray(t))return t.map((t=>t&&"object"==typeof t?this._removeEmptyRecursive(t):t)).filter((t=>""!==t&&null!=t));if(t&&"object"==typeof t){const e={};for(const[i,n]of Object.entries(t)){let t=n;n&&"object"==typeof n&&(t=this._removeEmptyRecursive(n)),this.numericParameters.includes(i)?""!==t&&null!=t?e[i]=t:0!==t&&"0"!==t||(e[i]=t):""===t||null==t||Array.isArray(t)&&0===t.length||(e[i]=t)}return e}return t}_objectToSearchParams(t,e,i=""){if(t&&"object"==typeof t&&!Array.isArray(t))for(const[n,s]of Object.entries(t)){const t=i?`${i}[${n}]`:n;this._objectToSearchParams(s,e,t)}else Array.isArray(t)?t.forEach(((t,n)=>{const s=`${i}[${n}]`;this._objectToSearchParams(t,e,s)})):e.append(i,t)}_getDeepValue(t,e){const i=e.split(".");let n=t;for(const t of i){if(null==n||"object"!=typeof n)return;n=n[t]}return n}_setDeepValue(t,e,i){const n=e.split(".");let s=t;for(;n.length>1;){const t=n.shift();void 0!==s[t]&&null!==s[t]&&"object"==typeof s[t]||(s[t]={}),s=s[t]}s[n[0]]=i}_deleteDeepValue(t,e){const i=e.split(".");let n=t;for(;i.length>1;){const t=i.shift();if(void 0===n[t]||null===n[t]||"object"!=typeof n[t])return;n=n[t]}delete n[i[0]]}_deepClone(t){return JSON.parse(JSON.stringify(t))}}function openLoginModal(){const t=document.getElementById("quickLogin");if(t){new bootstrap.Modal(t,{}).show()}}function confirmSimpleAction(t,e=!0,i=!0){return"undefined"==typeof Swal||Swal.fire({text:langLayout.confirm.message.question,icon:"warning",showCancelButton:!0,confirmButtonText:langLayout.confirm.button.yes,cancelButtonText:langLayout.confirm.button.no}).then((n=>{if(n.isConfirmed)try{if($(t).is("a")){let e=$(t).attr("href");"undefined"!==e&&(console.log(e),redirect(e))}else{let e=$(t).parents("form:first");$(e).submit()}}catch(t){console.log(t)}else n.dismiss===Swal.DismissReason.cancel&&!0===e&&jsAlert(langLayout.confirm.message.cancel,"info",i)})),!1}function jsAlert(t,e="info",i=!0,n=!1,s=!1){if("undefined"==typeof Swal)return!1;let o={html:t,icon:e,position:"center"};!0===i?(o.showCancelButton=!1,o.showConfirmButton=!1,o.timer=3e3):(o.showCancelButton=!0,!0===n?o.confirmButtonText=langLayout.refresh:(o.confirmButtonText=langLayout.confirm.button.ok,o.cancelButtonText=langLayout.confirm.button.cancel)),s&&(o.showCancelButton=!1,o.allowOutsideClick=!1,o.allowEscapeKey=!1);let r=Swal.fire(o);!0===n&&r.then((t=>{t.isConfirmed&&(window.location.replace(window.location.pathname+window.location.search+window.location.hash),window.location.href=window.location.pathname+window.location.search+window.location.hash)}))}function pnAlert(t,e="notice",i=null){if("undefined"==typeof PNotify)return!1;"warning"===e&&(e="notice"),void 0===window.stackTopRight&&(window.stackTopRight=new PNotify.Stack({dir1:"down",dir2:"left",firstpos1:25,firstpos2:25,spacing1:10,spacing2:25,modal:!1,maxOpen:1/0}));let n={text:t,type:e,stack:window.stackTopRight};null!==i&&(n.icon=i),new PNotify.alert(n)}function showWaitingDialog(){Swal.fire({title:langLayout.waitingDialog.loading.title,text:langLayout.waitingDialog.loading.text,timerProgressBar:!0,allowOutsideClick:!1,returnFocus:!0,didOpen:()=>{Swal.showLoading()},didClose:()=>{"undefined"!=typeof document&&document.activeElement.blur()}})}function hideWaitingDialog(){Swal.close()}function completeWaitingDialog(t=null,e=!0){if("undefined"==typeof Swal)return!1;let i={icon:"success",title:langLayout.waitingDialog.complete.title,text:t??langLayout.waitingDialog.complete.text,position:"center",showCancelButton:!1};!0===e?(i.showConfirmButton=!1,i.timer=3e3):(i.showConfirmButton=!0,i.confirmButtonText=langLayout.confirm.button.ok),Swal.fire(i)}function bsModalAlert(t,e=null){let i=getErrorMessage(t),n=isEmpty(e)?null:e;if(isEmpty(i))return!1;const s=document.getElementById("errorModal"),o=document.getElementById("errorModalTitle"),r=document.getElementById("errorModalBody");if(!isDomElement(s)||!isDomElement(o)||!isDomElement(r))return!1;isEmpty(n)||(o.innerHTML=n),i="<code>"+i+"</code>",r.innerHTML=i;new bootstrap.Modal(s,{}).show()}function disableTooltipForElement(t){if(isElDefined(t)){const e=new bootstrap.Tooltip(t);e.hide(),e.disable()}}function enableTooltipForElement(t){if(isElDefined(t)){new bootstrap.Tooltip(t).enable()}}function isDemoDomain(){try{if(demoMode)return jsAlert(demoMessage,"error"),!0}catch(t){return jsAlert(t,"error",!1),!0}return!1}async function httpRequest(t,e="",i={},n={},s={}){t=t.toUpperCase();const o={"X-Requested-With":"XMLHttpRequest",...i instanceof FormData?{}:{"Content-Type":"application/json"}};if("undefined"!=typeof document){const t=document.querySelector('meta[name="csrf-token"]');t&&t.getAttribute("content")&&(o["X-CSRF-TOKEN"]=t.getAttribute("content"))}const r={...o,...n};let a=i instanceof FormData?i:"object"==typeof i&&Object.keys(i).length>0?JSON.stringify(i):void 0;const l={method:t,mode:"cors",cache:["POST","PUT","DELETE","PATCH"].includes(t)?"no-cache":"default",credentials:"same-origin",headers:r,redirect:"follow",referrerPolicy:"no-referrer",body:a};["GET","HEAD"].includes(t)&&delete l.body;const c={...l,...s};try{const t=await fetch(e,c);let i;try{i=await t.json()}catch(e){i=await t.text()}if(!t.ok){const e="Network response was not OK",n="object"==typeof i&&i.message||t.statusText||e,s={success:!1,message:n,status:t.status||500,..."object"==typeof i&&i.error?{error:i.error}:{}},o=new Error(n);throw o.response=s,o}return i}catch(t){throw t}}function togglePasswordVisibility(){const t=document.querySelectorAll(".password-field"),e=window.authTranslations||{hide_password:"Hide the password",show_password:"Show the password",hide:"Hide",show:"Show"};t.forEach((t=>{const i=t.querySelector('input[type="password"], input[type="text"]'),n=t.querySelector(".toggle-password-link");if(!i||!n)return;n.hasAttribute("data-password-state")||(n.setAttribute("data-password-state","hidden"),n.hasAttribute("data-toggle-text")&&(n.textContent=e.show),n.hasAttribute("data-bs-title")&&n.setAttribute("data-bs-title",e.show_password)),n.addEventListener("click",(t=>{if(t.preventDefault(),(()=>{const t="password"===i.type;i.type=t?"text":"password";const s=n.querySelector("i.fa-regular")||(n.previousElementSibling?.classList?.contains("fa-regular")?n.previousElementSibling:null);s&&(s.classList.toggle("fa-eye-slash",!t),s.classList.toggle("fa-eye",t)),n.hasAttribute("data-bs-title")&&n.setAttribute("data-bs-title",t?e.hide_password:e.show_password),n.hasAttribute("data-toggle-text")&&(n.textContent=t?e.hide:e.show),n.setAttribute("data-password-state",t?"visible":"hidden")})(),"tooltip"===n.getAttribute("data-bs-toggle")){const t=bootstrap.Tooltip.getInstance(n);t&&(t.dispose(),new bootstrap.Tooltip(n))}}))}))}function initElementTooltips(t,e={},i="tooltip"){if(!t)return;[].slice.call(t.querySelectorAll(`[data-bs-toggle="${i}"]`)).map((function(t){return new bootstrap.Tooltip(t,e)}))}function initElementPopovers(t,e={},i="popover"){if(!t)return;[].slice.call(t.querySelectorAll(`[data-bs-toggle="${i}"]`)).map((function(t){return new bootstrap.Popover(t,e)}))}preventPageLoadingInIframe(),onDocumentReady((t=>{$(document).on("click",".confirm-simple-action",(function(t){t.preventDefault();try{let t=!1;if(isAdminPanel){if(isDemoDomain())return!1;t=!0}confirmSimpleAction(this,t)}catch(t){jsAlert(t,"error",!1)}}))})),"undefined"!=typeof module&&module.exports&&(module.exports=httpRequest),document.addEventListener("DOMContentLoaded",togglePasswordVisibility),function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=t.document,s=Object.getPrototypeOf,o=i.slice,r=i.concat,a=i.push,l=i.indexOf,c={},u=c.toString,h=c.hasOwnProperty,d=h.toString,p=d.call(Object),f={},m=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType},g=function(t){return null!=t&&t===t.window},v={type:!0,src:!0,noModule:!0};function y(t,e,i){var s,o=(e=e||n).createElement("script");if(o.text=t,i)for(s in v)i[s]&&(o[s]=i[s]);e.head.appendChild(o).parentNode.removeChild(o)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?c[u.call(t)]||"object":typeof t}var _=function(t,e){return new _.fn.init(t,e)},w=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;function x(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!m(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&e>0&&e-1 in t)}_.fn=_.prototype={jquery:"3.3.1",constructor:_,length:0,toArray:function(){return o.call(this)},get:function(t){return null==t?o.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=_.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return _.each(this,t)},map:function(t){return this.pushStack(_.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(i>=0&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:a,sort:i.sort,splice:i.splice},_.extend=_.fn.extend=function(){var t,e,i,n,s,o,r=arguments[0]||{},a=1,l=arguments.length,c=!1;for("boolean"==typeof r&&(c=r,r=arguments[a]||{},a++),"object"==typeof r||m(r)||(r={}),a===l&&(r=this,a--);a<l;a++)if(null!=(t=arguments[a]))for(e in t)i=r[e],r!==(n=t[e])&&(c&&n&&(_.isPlainObject(n)||(s=Array.isArray(n)))?(s?(s=!1,o=i&&Array.isArray(i)?i:[]):o=i&&_.isPlainObject(i)?i:{},r[e]=_.extend(c,o,n)):void 0!==n&&(r[e]=n));return r},_.extend({expando:"jQuery"+("3.3.1"+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==u.call(t)||(e=s(t))&&("function"!=typeof(i=h.call(e,"constructor")&&e.constructor)||d.call(i)!==p))},isEmptyObject:function(t){var e;for(e in t)return!1;return!0},globalEval:function(t){y(t)},each:function(t,e){var i,n=0;if(x(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},trim:function(t){return null==t?"":(t+"").replace(w,"")},makeArray:function(t,e){var i=e||[];return null!=t&&(x(Object(t))?_.merge(i,"string"==typeof t?[t]:t):a.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:l.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,s=t.length;n<i;n++)t[s++]=e[n];return t.length=s,t},grep:function(t,e,i){for(var n=[],s=0,o=t.length,r=!i;s<o;s++)!e(t[s],s)!==r&&n.push(t[s]);return n},map:function(t,e,i){var n,s,o=0,a=[];if(x(t))for(n=t.length;o<n;o++)null!=(s=e(t[o],o,i))&&a.push(s);else for(o in t)null!=(s=e(t[o],o,i))&&a.push(s);return r.apply([],a)},guid:1,support:f}),"function"==typeof Symbol&&(_.fn[Symbol.iterator]=i[Symbol.iterator]),_.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){c["[object "+e+"]"]=e.toLowerCase()}));var k=function(t){var e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_="sizzle"+1*new Date,w=t.document,x=0,k=0,C=rt(),T=rt(),S=rt(),E=function(t,e){return t===e&&(h=!0),0},D={}.hasOwnProperty,A=[],O=A.pop,L=A.push,P=A.push,M=A.slice,I=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},$="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",z="(?:\\\\.|[\\w-]|[^\0-\\xa0])+",H="\\["+N+"*("+z+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+z+"))|)"+N+"*\\]",j=":("+z+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+H+")*)|.*)\\)|)",R=new RegExp(N+"+","g"),q=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),B=new RegExp("^"+N+"*,"+N+"*"),W=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),F=new RegExp("="+N+"*([^\\]'\"]*?)"+N+"*\\]","g"),U=new RegExp(j),Y=new RegExp("^"+z+"$"),V={ID:new RegExp("^#("+z+")"),CLASS:new RegExp("^\\.("+z+")"),TAG:new RegExp("^("+z+"|[*])"),ATTR:new RegExp("^"+H),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+$+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},K=/^(?:input|select|textarea|button)$/i,X=/^h\d$/i,G=/^[^{]+\{\s*\[native \w/,Z=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Q=/[+~]/,J=new RegExp("\\\\([\\da-f]{1,6}"+N+"?|("+N+")|.)","ig"),tt=function(t,e,i){var n="0x"+e-65536;return n!=n||i?e:n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320)},et=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,it=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},nt=function(){d()},st=yt((function(t){return!0===t.disabled&&("form"in t||"label"in t)}),{dir:"parentNode",next:"legend"});try{P.apply(A=M.call(w.childNodes),w.childNodes),A[w.childNodes.length].nodeType}catch(t){P={apply:A.length?function(t,e){L.apply(t,M.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,n,s){var o,a,c,u,h,f,v,y=e&&e.ownerDocument,x=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==x&&9!==x&&11!==x)return n;if(!s&&((e?e.ownerDocument||e:w)!==p&&d(e),e=e||p,m)){if(11!==x&&(h=Z.exec(t)))if(o=h[1]){if(9===x){if(!(c=e.getElementById(o)))return n;if(c.id===o)return n.push(c),n}else if(y&&(c=y.getElementById(o))&&b(e,c)&&c.id===o)return n.push(c),n}else{if(h[2])return P.apply(n,e.getElementsByTagName(t)),n;if((o=h[3])&&i.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(o)),n}if(i.qsa&&!S[t+" "]&&(!g||!g.test(t))){if(1!==x)y=e,v=t;else if("object"!==e.nodeName.toLowerCase()){for((u=e.getAttribute("id"))?u=u.replace(et,it):e.setAttribute("id",u=_),a=(f=r(t)).length;a--;)f[a]="#"+u+" "+vt(f[a]);v=f.join(","),y=Q.test(t)&&mt(e.parentNode)||e}if(v)try{return P.apply(n,y.querySelectorAll(v)),n}catch(t){}finally{u===_&&e.removeAttribute("id")}}}return l(t.replace(q,"$1"),e,n,s)}function rt(){var t=[];return function e(i,s){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=s}}function at(t){return t[_]=!0,t}function lt(t){var e=p.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function ct(t,e){for(var i=t.split("|"),s=i.length;s--;)n.attrHandle[i[s]]=e}function ut(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ht(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function dt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function pt(t){return function(e){return"form"in e?e.parentNode&&!1===e.disabled?"label"in e?"label"in e.parentNode?e.parentNode.disabled===t:e.disabled===t:e.isDisabled===t||e.isDisabled!==!t&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function ft(t){return at((function(e){return e=+e,at((function(i,n){for(var s,o=t([],i.length,e),r=o.length;r--;)i[s=o[r]]&&(i[s]=!(n[s]=i[s]))}))}))}function mt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},o=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!!e&&"HTML"!==e.nodeName},d=ot.setDocument=function(t){var e,s,r=t?t.ownerDocument||t:w;return r!==p&&9===r.nodeType&&r.documentElement?(f=(p=r).documentElement,m=!o(p),w!==p&&(s=p.defaultView)&&s.top!==s&&(s.addEventListener?s.addEventListener("unload",nt,!1):s.attachEvent&&s.attachEvent("onunload",nt)),i.attributes=lt((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=lt((function(t){return t.appendChild(p.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=G.test(p.getElementsByClassName),i.getById=lt((function(t){return f.appendChild(t).id=_,!p.getElementsByName||!p.getElementsByName(_).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(J,tt);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(J,tt);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&m){var i,n,s,o=e.getElementById(t);if(o){if((i=o.getAttributeNode("id"))&&i.value===t)return[o];for(s=e.getElementsByName(t),n=0;o=s[n++];)if((i=o.getAttributeNode("id"))&&i.value===t)return[o]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],s=0,o=e.getElementsByTagName(t);if("*"===t){for(;i=o[s++];)1===i.nodeType&&n.push(i);return n}return o},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&m)return e.getElementsByClassName(t)},v=[],g=[],(i.qsa=G.test(p.querySelectorAll))&&(lt((function(t){f.appendChild(t).innerHTML="<a id='"+_+"'></a><select id='"+_+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&g.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||g.push("\\["+N+"*(?:value|"+$+")"),t.querySelectorAll("[id~="+_+"-]").length||g.push("~="),t.querySelectorAll(":checked").length||g.push(":checked"),t.querySelectorAll("a#"+_+"+*").length||g.push(".#.+[+~]")})),lt((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=p.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&g.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&g.push(":enabled",":disabled"),f.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&g.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),g.push(",.*:")}))),(i.matchesSelector=G.test(y=f.matches||f.webkitMatchesSelector||f.mozMatchesSelector||f.oMatchesSelector||f.msMatchesSelector))&<((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",j)})),g=g.length&&new RegExp(g.join("|")),v=v.length&&new RegExp(v.join("|")),e=G.test(f.compareDocumentPosition),b=e||G.test(f.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},E=e?function(t,e){if(t===e)return h=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)===(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t===p||t.ownerDocument===w&&b(w,t)?-1:e===p||e.ownerDocument===w&&b(w,e)?1:u?I(u,t)-I(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return h=!0,0;var i,n=0,s=t.parentNode,o=e.parentNode,r=[t],a=[e];if(!s||!o)return t===p?-1:e===p?1:s?-1:o?1:u?I(u,t)-I(u,e):0;if(s===o)return ut(t,e);for(i=t;i=i.parentNode;)r.unshift(i);for(i=e;i=i.parentNode;)a.unshift(i);for(;r[n]===a[n];)n++;return n?ut(r[n],a[n]):r[n]===w?-1:a[n]===w?1:0},p):p},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if((t.ownerDocument||t)!==p&&d(t),e=e.replace(F,"='$1']"),i.matchesSelector&&m&&!S[e+" "]&&(!v||!v.test(e))&&(!g||!g.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){}return ot(e,p,null,[t]).length>0},ot.contains=function(t,e){return(t.ownerDocument||t)!==p&&d(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!==p&&d(t);var s=n.attrHandle[e.toLowerCase()],o=s&&D.call(n.attrHandle,e.toLowerCase())?s(t,e,!m):void 0;return void 0!==o?o:i.attributes||!m?t.getAttribute(e):(o=t.getAttributeNode(e))&&o.specified?o.value:null},ot.escape=function(t){return(t+"").replace(et,it)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],s=0,o=0;if(h=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(E),h){for(;e=t[o++];)e===t[o]&&(s=n.push(o));for(;s--;)t.splice(n[s],1)}return u=null,t},s=ot.getText=function(t){var e,i="",n=0,o=t.nodeType;if(o){if(1===o||9===o||11===o){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=s(t)}else if(3===o||4===o)return t.nodeValue}else for(;e=t[n++];)i+=s(e);return i},(n=ot.selectors={cacheLength:50,createPseudo:at,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(J,tt),t[3]=(t[3]||t[4]||t[5]||"").replace(J,tt),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&U.test(i)&&(e=r(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(J,tt).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=C[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&C(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var s=ot.attr(n,t);return null==s?"!="===e:!e||(s+="","="===e?s===i:"!="===e?s!==i:"^="===e?i&&0===s.indexOf(i):"*="===e?i&&s.indexOf(i)>-1:"$="===e?i&&s.slice(-i.length)===i:"~="===e?(" "+s.replace(R," ")+" ").indexOf(i)>-1:"|="===e&&(s===i||s.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,s){var o="nth"!==t.slice(0,3),r="last"!==t.slice(-4),a="of-type"===e;return 1===n&&0===s?function(t){return!!t.parentNode}:function(e,i,l){var c,u,h,d,p,f,m=o!==r?"nextSibling":"previousSibling",g=e.parentNode,v=a&&e.nodeName.toLowerCase(),y=!l&&!a,b=!1;if(g){if(o){for(;m;){for(d=e;d=d[m];)if(a?d.nodeName.toLowerCase()===v:1===d.nodeType)return!1;f=m="only"===t&&!f&&"nextSibling"}return!0}if(f=[r?g.firstChild:g.lastChild],r&&y){for(b=(p=(c=(u=(h=(d=g)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],d=p&&g.childNodes[p];d=++p&&d&&d[m]||(b=p=0)||f.pop();)if(1===d.nodeType&&++b&&d===e){u[t]=[x,p,b];break}}else if(y&&(b=p=(c=(u=(h=(d=e)[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===b)for(;(d=++p&&d&&d[m]||(b=p=0)||f.pop())&&((a?d.nodeName.toLowerCase()!==v:1!==d.nodeType)||!++b||(y&&((u=(h=d[_]||(d[_]={}))[d.uniqueID]||(h[d.uniqueID]={}))[t]=[x,b]),d!==e)););return(b-=s)===n||b%n==0&&b/n>=0}}},PSEUDO:function(t,e){var i,s=n.pseudos[t]||n.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return s[_]?s(e):s.length>1?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?at((function(t,i){for(var n,o=s(t,e),r=o.length;r--;)t[n=I(t,o[r])]=!(i[n]=o[r])})):function(t){return s(t,0,i)}):s}},pseudos:{not:at((function(t){var e=[],i=[],n=a(t.replace(q,"$1"));return n[_]?at((function(t,e,i,s){for(var o,r=n(t,null,s,[]),a=t.length;a--;)(o=r[a])&&(t[a]=!(e[a]=o))})):function(t,s,o){return e[0]=t,n(e,null,o,i),e[0]=null,!i.pop()}})),has:at((function(t){return function(e){return ot(t,e).length>0}})),contains:at((function(t){return t=t.replace(J,tt),function(e){return(e.textContent||e.innerText||s(e)).indexOf(t)>-1}})),lang:at((function(t){return Y.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(J,tt).toLowerCase(),function(e){var i;do{if(i=m?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===f},focus:function(t){return t===p.activeElement&&(!p.hasFocus||p.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:pt(!1),disabled:pt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return t.parentNode&&t.parentNode.selectedIndex,!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return X.test(t.nodeName)},input:function(t){return K.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:ft((function(){return[0]})),last:ft((function(t,e){return[e-1]})),eq:ft((function(t,e,i){return[i<0?i+e:i]})),even:ft((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:ft((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:ft((function(t,e,i){for(var n=i<0?i+e:i;--n>=0;)t.push(n);return t})),gt:ft((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ht(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=dt(e);function gt(){}function vt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function yt(t,e,i){var n=e.dir,s=e.next,o=s||n,r=i&&"parentNode"===o,a=k++;return e.first?function(e,i,s){for(;e=e[n];)if(1===e.nodeType||r)return t(e,i,s);return!1}:function(e,i,l){var c,u,h,d=[x,a];if(l){for(;e=e[n];)if((1===e.nodeType||r)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||r)if(u=(h=e[_]||(e[_]={}))[e.uniqueID]||(h[e.uniqueID]={}),s&&s===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=u[o])&&c[0]===x&&c[1]===a)return d[2]=c[2];if(u[o]=d,d[2]=t(e,i,l))return!0}return!1}}function bt(t){return t.length>1?function(e,i,n){for(var s=t.length;s--;)if(!t[s](e,i,n))return!1;return!0}:t[0]}function _t(t,e,i,n,s){for(var o,r=[],a=0,l=t.length,c=null!=e;a<l;a++)(o=t[a])&&(i&&!i(o,n,s)||(r.push(o),c&&e.push(a)));return r}function wt(t,e,i,n,s,o){return n&&!n[_]&&(n=wt(n)),s&&!s[_]&&(s=wt(s,o)),at((function(o,r,a,l){var c,u,h,d=[],p=[],f=r.length,m=o||function(t,e,i){for(var n=0,s=e.length;n<s;n++)ot(t,e[n],i);return i}(e||"*",a.nodeType?[a]:a,[]),g=!t||!o&&e?m:_t(m,d,t,a,l),v=i?s||(o?t:f||n)?[]:r:g;if(i&&i(g,v,a,l),n)for(c=_t(v,p),n(c,[],a,l),u=c.length;u--;)(h=c[u])&&(v[p[u]]=!(g[p[u]]=h));if(o){if(s||t){if(s){for(c=[],u=v.length;u--;)(h=v[u])&&c.push(g[u]=h);s(null,v=[],c,l)}for(u=v.length;u--;)(h=v[u])&&(c=s?I(o,h):d[u])>-1&&(o[c]=!(r[c]=h))}}else v=_t(v===r?v.splice(f,v.length):v),s?s(null,r,v,l):P.apply(r,v)}))}function xt(t){for(var e,i,s,o=t.length,r=n.relative[t[0].type],a=r||n.relative[" "],l=r?1:0,u=yt((function(t){return t===e}),a,!0),h=yt((function(t){return I(e,t)>-1}),a,!0),d=[function(t,i,n){var s=!r&&(n||i!==c)||((e=i).nodeType?u(t,i,n):h(t,i,n));return e=null,s}];l<o;l++)if(i=n.relative[t[l].type])d=[yt(bt(d),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[_]){for(s=++l;s<o&&!n.relative[t[s].type];s++);return wt(l>1&&bt(d),l>1&&vt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(q,"$1"),i,l<s&&xt(t.slice(l,s)),s<o&&xt(t=t.slice(s)),s<o&&vt(t))}d.push(i)}return bt(d)}function kt(t,e){var i=e.length>0,s=t.length>0,o=function(o,r,a,l,u){var h,f,g,v=0,y="0",b=o&&[],_=[],w=c,k=o||s&&n.find.TAG("*",u),C=x+=null==w?1:Math.random()||.1,T=k.length;for(u&&(c=r===p||r||u);y!==T&&null!=(h=k[y]);y++){if(s&&h){for(f=0,r||h.ownerDocument===p||(d(h),a=!m);g=t[f++];)if(g(h,r||p,a)){l.push(h);break}u&&(x=C)}i&&((h=!g&&h)&&v--,o&&b.push(h))}if(v+=y,i&&y!==v){for(f=0;g=e[f++];)g(b,_,r,a);if(o){if(v>0)for(;y--;)b[y]||_[y]||(_[y]=O.call(l));_=_t(_)}P.apply(l,_),u&&!o&&_.length>0&&v+e.length>1&&ot.uniqueSort(l)}return u&&(x=C,c=w),b};return i?at(o):o}return gt.prototype=n.filters=n.pseudos,n.setFilters=new gt,r=ot.tokenize=function(t,e){var i,s,o,r,a,l,c,u=T[t+" "];if(u)return e?0:u.slice(0);for(a=t,l=[],c=n.preFilter;a;){for(r in i&&!(s=B.exec(a))||(s&&(a=a.slice(s[0].length)||a),l.push(o=[])),i=!1,(s=W.exec(a))&&(i=s.shift(),o.push({value:i,type:s[0].replace(q," ")}),a=a.slice(i.length)),n.filter)!(s=V[r].exec(a))||c[r]&&!(s=c[r](s))||(i=s.shift(),o.push({value:i,type:r,matches:s}),a=a.slice(i.length));if(!i)break}return e?a.length:a?ot.error(t):T(t,l).slice(0)},a=ot.compile=function(t,e){var i,n=[],s=[],o=S[t+" "];if(!o){for(e||(e=r(t)),i=e.length;i--;)(o=xt(e[i]))[_]?n.push(o):s.push(o);(o=S(t,kt(s,n))).selector=t}return o},l=ot.select=function(t,e,i,s){var o,l,c,u,h,d="function"==typeof t&&t,p=!s&&r(t=d.selector||t);if(i=i||[],1===p.length){if((l=p[0]=p[0].slice(0)).length>2&&"ID"===(c=l[0]).type&&9===e.nodeType&&m&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(J,tt),e)||[])[0]))return i;d&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(o=V.needsContext.test(t)?0:l.length;o--&&(c=l[o],!n.relative[u=c.type]);)if((h=n.find[u])&&(s=h(c.matches[0].replace(J,tt),Q.test(l[0].type)&&mt(e.parentNode)||e))){if(l.splice(o,1),!(t=s.length&&vt(l)))return P.apply(i,s),i;break}}return(d||a(t,p))(s,e,!m,i,!e||Q.test(t)&&mt(e.parentNode)||e),i},i.sortStable=_.split("").sort(E).join("")===_,i.detectDuplicates=!!h,d(),i.sortDetached=lt((function(t){return 1&t.compareDocumentPosition(p.createElement("fieldset"))})),lt((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||ct("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&<((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||ct("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),lt((function(t){return null==t.getAttribute("disabled")}))||ct($,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),ot}(t);_.find=k,_.expr=k.selectors,_.expr[":"]=_.expr.pseudos,_.uniqueSort=_.unique=k.uniqueSort,_.text=k.getText,_.isXMLDoc=k.isXML,_.contains=k.contains,_.escapeSelector=k.escape;var C=function(t,e,i){for(var n=[],s=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(s&&_(t).is(i))break;n.push(t)}return n},T=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},S=_.expr.match.needsContext;function E(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var D=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function A(t,e,i){return m(e)?_.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?_.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?_.grep(t,(function(t){return l.call(e,t)>-1!==i})):_.filter(e,t,i)}_.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?_.find.matchesSelector(n,t)?[n]:[]:_.find.matches(t,_.grep(e,(function(t){return 1===t.nodeType})))},_.fn.extend({find:function(t){var e,i,n=this.length,s=this;if("string"!=typeof t)return this.pushStack(_(t).filter((function(){for(e=0;e<n;e++)if(_.contains(s[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)_.find(t,s[e],i);return n>1?_.uniqueSort(i):i},filter:function(t){return this.pushStack(A(this,t||[],!1))},not:function(t){return this.pushStack(A(this,t||[],!0))},is:function(t){return!!A(this,"string"==typeof t&&S.test(t)?_(t):t||[],!1).length}});var O,L=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(_.fn.init=function(t,e,i){var s,o;if(!t)return this;if(i=i||O,"string"==typeof t){if(!(s="<"===t[0]&&">"===t[t.length-1]&&t.length>=3?[null,t,null]:L.exec(t))||!s[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(s[1]){if(e=e instanceof _?e[0]:e,_.merge(this,_.parseHTML(s[1],e&&e.nodeType?e.ownerDocument||e:n,!0)),D.test(s[1])&&_.isPlainObject(e))for(s in e)m(this[s])?this[s](e[s]):this.attr(s,e[s]);return this}return(o=n.getElementById(s[2]))&&(this[0]=o,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):m(t)?void 0!==i.ready?i.ready(t):t(_):_.makeArray(t,this)}).prototype=_.fn,O=_(n);var P=/^(?:parents|prev(?:Until|All))/,M={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}_.fn.extend({has:function(t){var e=_(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(_.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,s=this.length,o=[],r="string"!=typeof t&&_(t);if(!S.test(t))for(;n<s;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(r?r.index(i)>-1:1===i.nodeType&&_.find.matchesSelector(i,t))){o.push(i);break}return this.pushStack(o.length>1?_.uniqueSort(o):o)},index:function(t){return t?"string"==typeof t?l.call(_(t),this[0]):l.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(_.uniqueSort(_.merge(this.get(),_(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),_.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return C(t,"parentNode")},parentsUntil:function(t,e,i){return C(t,"parentNode",i)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return C(t,"nextSibling")},prevAll:function(t){return C(t,"previousSibling")},nextUntil:function(t,e,i){return C(t,"nextSibling",i)},prevUntil:function(t,e,i){return C(t,"previousSibling",i)},siblings:function(t){return T((t.parentNode||{}).firstChild,t)},children:function(t){return T(t.firstChild)},contents:function(t){return E(t,"iframe")?t.contentDocument:(E(t,"template")&&(t=t.content||t),_.merge([],t.childNodes))}},(function(t,e){_.fn[t]=function(i,n){var s=_.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(s=_.filter(n,s)),this.length>1&&(M[t]||_.uniqueSort(s),P.test(t)&&s.reverse()),this.pushStack(s)}}));var $=/[^\x20\t\r\n\f]+/g;function N(t){return t}function z(t){throw t}function H(t,e,i,n){var s;try{t&&m(s=t.promise)?s.call(t).done(e).fail(i):t&&m(s=t.then)?s.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}_.Callbacks=function(t){t="string"==typeof t?function(t){var e={};return _.each(t.match($)||[],(function(t,i){e[i]=!0})),e}(t):_.extend({},t);var e,i,n,s,o=[],r=[],a=-1,l=function(){for(s=s||t.once,n=e=!0;r.length;a=-1)for(i=r.shift();++a<o.length;)!1===o[a].apply(i[0],i[1])&&t.stopOnFalse&&(a=o.length,i=!1);t.memory||(i=!1),e=!1,s&&(o=i?[]:"")},c={add:function(){return o&&(i&&!e&&(a=o.length-1,r.push(i)),function e(i){_.each(i,(function(i,n){m(n)?t.unique&&c.has(n)||o.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),i&&!e&&l()),this},remove:function(){return _.each(arguments,(function(t,e){for(var i;(i=_.inArray(e,o,i))>-1;)o.splice(i,1),i<=a&&a--})),this},has:function(t){return t?_.inArray(t,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return s=r=[],o=i="",this},disabled:function(){return!o},lock:function(){return s=r=[],i||e||(o=i=""),this},locked:function(){return!!s},fireWith:function(t,i){return s||(i=[t,(i=i||[]).slice?i.slice():i],r.push(i),e||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!n}};return c},_.extend({Deferred:function(e){var i=[["notify","progress",_.Callbacks("memory"),_.Callbacks("memory"),2],["resolve","done",_.Callbacks("once memory"),_.Callbacks("once memory"),0,"resolved"],["reject","fail",_.Callbacks("once memory"),_.Callbacks("once memory"),1,"rejected"]],n="pending",s={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(t){return s.then(null,t)},pipe:function(){var t=arguments;return _.Deferred((function(e){_.each(i,(function(i,n){var s=m(t[n[4]])&&t[n[4]];o[n[1]]((function(){var t=s&&s.apply(this,arguments);t&&m(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,s?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,s){var o=0;function r(e,i,n,s){return function(){var a=this,l=arguments,c=function(){var t,c;if(!(e<o)){if((t=n.apply(a,l))===i.promise())throw new TypeError("Thenable self-resolution");c=t&&("object"==typeof t||"function"==typeof t)&&t.then,m(c)?s?c.call(t,r(o,i,N,s),r(o,i,z,s)):(o++,c.call(t,r(o,i,N,s),r(o,i,z,s),r(o,i,N,i.notifyWith))):(n!==N&&(a=void 0,l=[t]),(s||i.resolveWith)(a,l))}},u=s?c:function(){try{c()}catch(t){_.Deferred.exceptionHook&&_.Deferred.exceptionHook(t,u.stackTrace),e+1>=o&&(n!==z&&(a=void 0,l=[t]),i.rejectWith(a,l))}};e?u():(_.Deferred.getStackHook&&(u.stackTrace=_.Deferred.getStackHook()),t.setTimeout(u))}}return _.Deferred((function(t){i[0][3].add(r(0,t,m(s)?s:N,t.notifyWith)),i[1][3].add(r(0,t,m(e)?e:N)),i[2][3].add(r(0,t,m(n)?n:z))})).promise()},promise:function(t){return null!=t?_.extend(t,s):s}},o={};return _.each(i,(function(t,e){var r=e[2],a=e[5];s[e[1]]=r.add,a&&r.add((function(){n=a}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),r.add(e[3].fire),o[e[0]]=function(){return o[e[0]+"With"](this===o?void 0:this,arguments),this},o[e[0]+"With"]=r.fireWith})),s.promise(o),e&&e.call(o,o),o},when:function(t){var e=arguments.length,i=e,n=Array(i),s=o.call(arguments),r=_.Deferred(),a=function(t){return function(i){n[t]=this,s[t]=arguments.length>1?o.call(arguments):i,--e||r.resolveWith(n,s)}};if(e<=1&&(H(t,r.done(a(i)).resolve,r.reject,!e),"pending"===r.state()||m(s[i]&&s[i].then)))return r.then();for(;i--;)H(s[i],a(i),r.reject);return r.promise()}});var j=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&j.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},_.readyException=function(e){t.setTimeout((function(){throw e}))};var R=_.Deferred();function q(){n.removeEventListener("DOMContentLoaded",q),t.removeEventListener("load",q),_.ready()}_.fn.ready=function(t){return R.then(t).catch((function(t){_.readyException(t)})),this},_.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--_.readyWait:_.isReady)||(_.isReady=!0,!0!==t&&--_.readyWait>0||R.resolveWith(n,[_]))}}),_.ready.then=R.then,"complete"===n.readyState||"loading"!==n.readyState&&!n.documentElement.doScroll?t.setTimeout(_.ready):(n.addEventListener("DOMContentLoaded",q),t.addEventListener("load",q));var B=function(t,e,i,n,s,o,r){var a=0,l=t.length,c=null==i;if("object"===b(i))for(a in s=!0,i)B(t,e,a,i[a],!0,o,r);else if(void 0!==n&&(s=!0,m(n)||(r=!0),c&&(r?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(_(t),i)})),e))for(;a<l;a++)e(t[a],i,r?n:n.call(t[a],a,e(t[a],i)));return s?t:c?e.call(t):l?e(t[0],i):o},W=/^-ms-/,F=/-([a-z])/g;function U(t,e){return e.toUpperCase()}function Y(t){return t.replace(W,"ms-").replace(F,U)}var V=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function K(){this.expando=_.expando+K.uid++}K.uid=1,K.prototype={cache:function(t){var e=t[this.expando];return e||(e={},V(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,s=this.cache(t);if("string"==typeof e)s[Y(e)]=i;else for(n in e)s[Y(n)]=e[n];return s},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][Y(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(Y):(e=Y(e))in n?[e]:e.match($)||[]).length;for(;i--;)delete n[e[i]]}(void 0===e||_.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!_.isEmptyObject(e)}};var X=new K,G=new K,Z=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Q=/[A-Z]/g;function J(t,e,i){var n;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Q,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i=function(t){return"true"===t||"false"!==t&&("null"===t?null:t===+t+""?+t:Z.test(t)?JSON.parse(t):t)}(i)}catch(t){}G.set(t,e,i)}else i=void 0;return i}_.extend({hasData:function(t){return G.hasData(t)||X.hasData(t)},data:function(t,e,i){return G.access(t,e,i)},removeData:function(t,e){G.remove(t,e)},_data:function(t,e,i){return X.access(t,e,i)},_removeData:function(t,e){X.remove(t,e)}}),_.fn.extend({data:function(t,e){var i,n,s,o=this[0],r=o&&o.attributes;if(void 0===t){if(this.length&&(s=G.get(o),1===o.nodeType&&!X.get(o,"hasDataAttrs"))){for(i=r.length;i--;)r[i]&&0===(n=r[i].name).indexOf("data-")&&(n=Y(n.slice(5)),J(o,n,s[n]));X.set(o,"hasDataAttrs",!0)}return s}return"object"==typeof t?this.each((function(){G.set(this,t)})):B(this,(function(e){var i;if(o&&void 0===e){if(void 0!==(i=G.get(o,t)))return i;if(void 0!==(i=J(o,t)))return i}else this.each((function(){G.set(this,t,e)}))}),null,e,arguments.length>1,null,!0)},removeData:function(t){return this.each((function(){G.remove(this,t)}))}}),_.extend({queue:function(t,e,i){var n;if(t)return e=(e||"fx")+"queue",n=X.get(t,e),i&&(!n||Array.isArray(i)?n=X.access(t,e,_.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){e=e||"fx";var i=_.queue(t,e),n=i.length,s=i.shift(),o=_._queueHooks(t,e);"inprogress"===s&&(s=i.shift(),n--),s&&("fx"===e&&i.unshift("inprogress"),delete o.stop,s.call(t,(function(){_.dequeue(t,e)}),o)),!n&&o&&o.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return X.get(t,i)||X.access(t,i,{empty:_.Callbacks("once memory").add((function(){X.remove(t,[e+"queue",i])}))})}}),_.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?_.queue(this[0],t):void 0===e?this:this.each((function(){var i=_.queue(this,t,e);_._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&_.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){_.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,s=_.Deferred(),o=this,r=this.length,a=function(){--n||s.resolveWith(o,[o])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";r--;)(i=X.get(o[r],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(a));return a(),s.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&_.contains(t.ownerDocument,t)&&"none"===_.css(t,"display")},st=function(t,e,i,n){var s,o,r={};for(o in e)r[o]=t.style[o],t.style[o]=e[o];for(o in s=i.apply(t,n||[]),e)t.style[o]=r[o];return s};function ot(t,e,i,n){var s,o,r=20,a=n?function(){return n.cur()}:function(){return _.css(t,e,"")},l=a(),c=i&&i[3]||(_.cssNumber[e]?"":"px"),u=(_.cssNumber[e]||"px"!==c&&+l)&&et.exec(_.css(t,e));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;r--;)_.style(t,e,u+c),(1-o)*(1-(o=a()/l||.5))<=0&&(r=0),u/=o;u*=2,_.style(t,e,u+c),i=i||[]}return i&&(u=+u||+l||0,s=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=s)),s}var rt={};function at(t){var e,i=t.ownerDocument,n=t.nodeName,s=rt[n];return s||(e=i.body.appendChild(i.createElement(n)),s=_.css(e,"display"),e.parentNode.removeChild(e),"none"===s&&(s="block"),rt[n]=s,s)}function lt(t,e){for(var i,n,s=[],o=0,r=t.length;o<r;o++)(n=t[o]).style&&(i=n.style.display,e?("none"===i&&(s[o]=X.get(n,"display")||null,s[o]||(n.style.display="")),""===n.style.display&&nt(n)&&(s[o]=at(n))):"none"!==i&&(s[o]="none",X.set(n,"display",i)));for(o=0;o<r;o++)null!=s[o]&&(t[o].style.display=s[o]);return t}_.fn.extend({show:function(){return lt(this,!0)},hide:function(){return lt(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){nt(this)?_(this).show():_(this).hide()}))}});var ct=/^(?:checkbox|radio)$/i,ut=/<([a-z][^\/\0>\x20\t\r\n\f]+)/i,ht=/^$|^module$|\/(?:java|ecma)script/i,dt={option:[1,"<select multiple='multiple'>","</select>"],thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function pt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&E(t,e)?_.merge([t],i):i}function ft(t,e){for(var i=0,n=t.length;i<n;i++)X.set(t[i],"globalEval",!e||X.get(e[i],"globalEval"))}dt.optgroup=dt.option,dt.tbody=dt.tfoot=dt.colgroup=dt.caption=dt.thead,dt.th=dt.td;var mt=/<|&#?\w+;/;function gt(t,e,i,n,s){for(var o,r,a,l,c,u,h=e.createDocumentFragment(),d=[],p=0,f=t.length;p<f;p++)if((o=t[p])||0===o)if("object"===b(o))_.merge(d,o.nodeType?[o]:o);else if(mt.test(o)){for(r=r||h.appendChild(e.createElement("div")),a=(ut.exec(o)||["",""])[1].toLowerCase(),l=dt[a]||dt._default,r.innerHTML=l[1]+_.htmlPrefilter(o)+l[2],u=l[0];u--;)r=r.lastChild;_.merge(d,r.childNodes),(r=h.firstChild).textContent=""}else d.push(e.createTextNode(o));for(h.textContent="",p=0;o=d[p++];)if(n&&_.inArray(o,n)>-1)s&&s.push(o);else if(c=_.contains(o.ownerDocument,o),r=pt(h.appendChild(o),"script"),c&&ft(r),i)for(u=0;o=r[u++];)ht.test(o.type||"")&&i.push(o);return h}!function(){var t=n.createDocumentFragment().appendChild(n.createElement("div")),e=n.createElement("input");e.setAttribute("type","radio"),e.setAttribute("checked","checked"),e.setAttribute("name","t"),t.appendChild(e),f.checkClone=t.cloneNode(!0).cloneNode(!0).lastChild.checked,t.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!t.cloneNode(!0).lastChild.defaultValue}();var vt=n.documentElement,yt=/^key/,bt=/^(?:mouse|pointer|contextmenu|drag|drop)|click/,_t=/^([^.]*)(?:\.(.+)|)/;function wt(){return!0}function xt(){return!1}function kt(){try{return n.activeElement}catch(t){}}function Ct(t,e,i,n,s,o){var r,a;if("object"==typeof e){for(a in"string"!=typeof i&&(n=n||i,i=void 0),e)Ct(t,a,i,n,e[a],o);return t}if(null==n&&null==s?(s=i,n=i=void 0):null==s&&("string"==typeof i?(s=n,n=void 0):(s=n,n=i,i=void 0)),!1===s)s=xt;else if(!s)return t;return 1===o&&(r=s,(s=function(t){return _().off(t),r.apply(this,arguments)}).guid=r.guid||(r.guid=_.guid++)),t.each((function(){_.event.add(this,e,s,n,i)}))}_.event={global:{},add:function(t,e,i,n,s){var o,r,a,l,c,u,h,d,p,f,m,g=X.get(t);if(g)for(i.handler&&(i=(o=i).handler,s=o.selector),s&&_.find.matchesSelector(vt,s),i.guid||(i.guid=_.guid++),(l=g.events)||(l=g.events={}),(r=g.handle)||(r=g.handle=function(e){return void 0!==_&&_.event.triggered!==e.type?_.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match($)||[""]).length;c--;)p=m=(a=_t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p&&(h=_.event.special[p]||{},p=(s?h.delegateType:h.bindType)||p,h=_.event.special[p]||{},u=_.extend({type:p,origType:m,data:n,handler:i,guid:i.guid,selector:s,needsContext:s&&_.expr.match.needsContext.test(s),namespace:f.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,h.setup&&!1!==h.setup.call(t,n,f,r)||t.addEventListener&&t.addEventListener(p,r)),h.add&&(h.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),s?d.splice(d.delegateCount++,0,u):d.push(u),_.event.global[p]=!0)},remove:function(t,e,i,n,s){var o,r,a,l,c,u,h,d,p,f,m,g=X.hasData(t)&&X.get(t);if(g&&(l=g.events)){for(c=(e=(e||"").match($)||[""]).length;c--;)if(p=m=(a=_t.exec(e[c])||[])[1],f=(a[2]||"").split(".").sort(),p){for(h=_.event.special[p]||{},d=l[p=(n?h.delegateType:h.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+f.join("\\.(?:.*\\.|)")+"(\\.|$)"),r=o=d.length;o--;)u=d[o],!s&&m!==u.origType||i&&i.guid!==u.guid||a&&!a.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(d.splice(o,1),u.selector&&d.delegateCount--,h.remove&&h.remove.call(t,u));r&&!d.length&&(h.teardown&&!1!==h.teardown.call(t,f,g.handle)||_.removeEvent(t,p,g.handle),delete l[p])}else for(p in l)_.event.remove(t,p+e[c],i,n,!0);_.isEmptyObject(l)&&X.remove(t,"handle events")}},dispatch:function(t){var e,i,n,s,o,r,a=_.event.fix(t),l=new Array(arguments.length),c=(X.get(this,"events")||{})[a.type]||[],u=_.event.special[a.type]||{};for(l[0]=a,e=1;e<arguments.length;e++)l[e]=arguments[e];if(a.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,a)){for(r=_.event.handlers.call(this,a,c),e=0;(s=r[e++])&&!a.isPropagationStopped();)for(a.currentTarget=s.elem,i=0;(o=s.handlers[i++])&&!a.isImmediatePropagationStopped();)a.rnamespace&&!a.rnamespace.test(o.namespace)||(a.handleObj=o,a.data=o.data,void 0!==(n=((_.event.special[o.origType]||{}).handle||o.handler).apply(s.elem,l))&&!1===(a.result=n)&&(a.preventDefault(),a.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,a),a.result}},handlers:function(t,e){var i,n,s,o,r,a=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&t.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(o=[],r={},i=0;i<l;i++)void 0===r[s=(n=e[i]).selector+" "]&&(r[s]=n.needsContext?_(s,this).index(c)>-1:_.find(s,this,null,[c]).length),r[s]&&o.push(n);o.length&&a.push({elem:c,handlers:o})}return c=this,l<e.length&&a.push({elem:c,handlers:e.slice(l)}),a},addProp:function(t,e){Object.defineProperty(_.Event.prototype,t,{enumerable:!0,configurable:!0,get:m(e)?function(){if(this.originalEvent)return e(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[t]},set:function(e){Object.defineProperty(this,t,{enumerable:!0,configurable:!0,writable:!0,value:e})}})},fix:function(t){return t[_.expando]?t:new _.Event(t)},special:{load:{noBubble:!0},focus:{trigger:function(){if(this!==kt()&&this.focus)return this.focus(),!1},delegateType:"focusin"},blur:{trigger:function(){if(this===kt()&&this.blur)return this.blur(),!1},delegateType:"focusout"},click:{trigger:function(){if("checkbox"===this.type&&this.click&&E(this,"input"))return this.click(),!1},_default:function(t){return E(t.target,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},_.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},_.Event=function(t,e){if(!(this instanceof _.Event))return new _.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?wt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&_.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[_.expando]=!0},_.Event.prototype={constructor:_.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=wt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=wt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=wt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},_.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:function(t){var e=t.button;return null==t.which&&yt.test(t.type)?null!=t.charCode?t.charCode:t.keyCode:!t.which&&void 0!==e&&bt.test(t.type)?1&e?1:2&e?3:4&e?2:0:t.which}},_.event.addProp),_.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){_.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,s=t.handleObj;return n&&(n===this||_.contains(this,n))||(t.type=s.origType,i=s.handler.apply(this,arguments),t.type=e),i}}})),_.fn.extend({on:function(t,e,i,n){return Ct(this,t,e,i,n)},one:function(t,e,i,n){return Ct(this,t,e,i,n,1)},off:function(t,e,i){var n,s;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,_(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(s in t)this.off(s,e,t[s]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=xt),this.each((function(){_.event.remove(this,t,i,e)}))}});var Tt=/<(?!area|br|col|embed|hr|img|input|link|meta|param)(([a-z][^\/\0>\x20\t\r\n\f]*)[^>]*)\/>/gi,St=/<script|<style|<link/i,Et=/checked\s*(?:[^=]|=\s*.checked.)/i,Dt=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function At(t,e){return E(t,"table")&&E(11!==e.nodeType?e:e.firstChild,"tr")&&_(t).children("tbody")[0]||t}function Ot(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Lt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Pt(t,e){var i,n,s,o,r,a,l,c;if(1===e.nodeType){if(X.hasData(t)&&(o=X.access(t),r=X.set(e,o),c=o.events))for(s in delete r.handle,r.events={},c)for(i=0,n=c[s].length;i<n;i++)_.event.add(e,s,c[s][i]);G.hasData(t)&&(a=G.access(t),l=_.extend({},a),G.set(e,l))}}function Mt(t,e){var i=e.nodeName.toLowerCase();"input"===i&&ct.test(t.type)?e.checked=t.checked:"input"!==i&&"textarea"!==i||(e.defaultValue=t.defaultValue)}function It(t,e,i,n){e=r.apply([],e);var s,o,a,l,c,u,h=0,d=t.length,p=d-1,g=e[0],v=m(g);if(v||d>1&&"string"==typeof g&&!f.checkClone&&Et.test(g))return t.each((function(s){var o=t.eq(s);v&&(e[0]=g.call(this,s,o.html())),It(o,e,i,n)}));if(d&&(o=(s=gt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===s.childNodes.length&&(s=o),o||n)){for(l=(a=_.map(pt(s,"script"),Ot)).length;h<d;h++)c=s,h!==p&&(c=_.clone(c,!0,!0),l&&_.merge(a,pt(c,"script"))),i.call(t[h],c,h);if(l)for(u=a[a.length-1].ownerDocument,_.map(a,Lt),h=0;h<l;h++)c=a[h],ht.test(c.type||"")&&!X.access(c,"globalEval")&&_.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?_._evalUrl&&_._evalUrl(c.src):y(c.textContent.replace(Dt,""),u,c))}return t}function $t(t,e,i){for(var n,s=e?_.filter(e,t):t,o=0;null!=(n=s[o]);o++)i||1!==n.nodeType||_.cleanData(pt(n)),n.parentNode&&(i&&_.contains(n.ownerDocument,n)&&ft(pt(n,"script")),n.parentNode.removeChild(n));return t}_.extend({htmlPrefilter:function(t){return t.replace(Tt,"<$1></$2>")},clone:function(t,e,i){var n,s,o,r,a=t.cloneNode(!0),l=_.contains(t.ownerDocument,t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||_.isXMLDoc(t)))for(r=pt(a),n=0,s=(o=pt(t)).length;n<s;n++)Mt(o[n],r[n]);if(e)if(i)for(o=o||pt(t),r=r||pt(a),n=0,s=o.length;n<s;n++)Pt(o[n],r[n]);else Pt(t,a);return(r=pt(a,"script")).length>0&&ft(r,!l&&pt(t,"script")),a},cleanData:function(t){for(var e,i,n,s=_.event.special,o=0;void 0!==(i=t[o]);o++)if(V(i)){if(e=i[X.expando]){if(e.events)for(n in e.events)s[n]?_.event.remove(i,n):_.removeEvent(i,n,e.handle);i[X.expando]=void 0}i[G.expando]&&(i[G.expando]=void 0)}}}),_.fn.extend({detach:function(t){return $t(this,t,!0)},remove:function(t){return $t(this,t)},text:function(t){return B(this,(function(t){return void 0===t?_.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return It(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||At(this,t).appendChild(t)}))},prepend:function(){return It(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=At(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return It(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(_.cleanData(pt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return _.clone(this,t,e)}))},html:function(t){return B(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!St.test(t)&&!dt[(ut.exec(t)||["",""])[1].toLowerCase()]){t=_.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}).nodeType&&(_.cleanData(pt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return It(this,arguments,(function(e){var i=this.parentNode;_.inArray(this,t)<0&&(_.cleanData(pt(this)),i&&i.replaceChild(e,this))}),t)}}),_.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){_.fn[t]=function(t){for(var i,n=[],s=_(t),o=s.length-1,r=0;r<=o;r++)i=r===o?this:this.clone(!0),_(s[r])[e](i),a.apply(n,i.get());return this.pushStack(n)}}));var Nt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),zt=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Ht=new RegExp(it.join("|"),"i");function jt(t,e,i){var n,s,o,r,a=t.style;return(i=i||zt(t))&&(""!==(r=i.getPropertyValue(e)||i[e])||_.contains(t.ownerDocument,t)||(r=_.style(t,e)),!f.pixelBoxStyles()&&Nt.test(r)&&Ht.test(e)&&(n=a.width,s=a.minWidth,o=a.maxWidth,a.minWidth=a.maxWidth=a.width=r,r=i.width,a.width=n,a.minWidth=s,a.maxWidth=o)),void 0!==r?r+"":r}function Rt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",vt.appendChild(c).appendChild(u);var e=t.getComputedStyle(u);s="1%"!==e.top,l=12===i(e.marginLeft),u.style.right="60%",a=36===i(e.right),o=36===i(e.width),u.style.position="absolute",r=36===u.offsetWidth||"absolute",vt.removeChild(c),u=null}}function i(t){return Math.round(parseFloat(t))}var s,o,r,a,l,c=n.createElement("div"),u=n.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,_.extend(f,{boxSizingReliable:function(){return e(),o},pixelBoxStyles:function(){return e(),a},pixelPosition:function(){return e(),s},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),r}}))}();var qt=/^(none|table(?!-c[ea]).+)/,Bt=/^--/,Wt={position:"absolute",visibility:"hidden",display:"block"},Ft={letterSpacing:"0",fontWeight:"400"},Ut=["Webkit","Moz","ms"],Yt=n.createElement("div").style;function Vt(t){var e=_.cssProps[t];return e||(e=_.cssProps[t]=function(t){if(t in Yt)return t;for(var e=t[0].toUpperCase()+t.slice(1),i=Ut.length;i--;)if((t=Ut[i]+e)in Yt)return t}(t)||t),e}function Kt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Xt(t,e,i,n,s,o){var r="width"===e?1:0,a=0,l=0;if(i===(n?"border":"content"))return 0;for(;r<4;r+=2)"margin"===i&&(l+=_.css(t,i+it[r],!0,s)),n?("content"===i&&(l-=_.css(t,"padding"+it[r],!0,s)),"margin"!==i&&(l-=_.css(t,"border"+it[r]+"Width",!0,s))):(l+=_.css(t,"padding"+it[r],!0,s),"padding"!==i?l+=_.css(t,"border"+it[r]+"Width",!0,s):a+=_.css(t,"border"+it[r]+"Width",!0,s));return!n&&o>=0&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-o-l-a-.5))),l}function Gt(t,e,i){var n=zt(t),s=jt(t,e,n),o="border-box"===_.css(t,"boxSizing",!1,n),r=o;if(Nt.test(s)){if(!i)return s;s="auto"}return r=r&&(f.boxSizingReliable()||s===t.style[e]),("auto"===s||!parseFloat(s)&&"inline"===_.css(t,"display",!1,n))&&(s=t["offset"+e[0].toUpperCase()+e.slice(1)],r=!0),(s=parseFloat(s)||0)+Xt(t,e,i||(o?"border":"content"),r,n,s)+"px"}function Zt(t,e,i,n,s){return new Zt.prototype.init(t,e,i,n,s)}_.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=jt(t,"opacity");return""===i?"1":i}}}},cssNumber:{animationIterationCount:!0,columnCount:!0,fillOpacity:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,widows:!0,zIndex:!0,zoom:!0},cssProps:{},style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var s,o,r,a=Y(e),l=Bt.test(e),c=t.style;if(l||(e=Vt(a)),r=_.cssHooks[e]||_.cssHooks[a],void 0===i)return r&&"get"in r&&void 0!==(s=r.get(t,!1,n))?s:c[e];"string"==(o=typeof i)&&(s=et.exec(i))&&s[1]&&(i=ot(t,e,s),o="number"),null!=i&&i==i&&("number"===o&&(i+=s&&s[3]||(_.cssNumber[a]?"":"px")),f.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),r&&"set"in r&&void 0===(i=r.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var s,o,r,a=Y(e);return Bt.test(e)||(e=Vt(a)),(r=_.cssHooks[e]||_.cssHooks[a])&&"get"in r&&(s=r.get(t,!0,i)),void 0===s&&(s=jt(t,e,n)),"normal"===s&&e in Ft&&(s=Ft[e]),""===i||i?(o=parseFloat(s),!0===i||isFinite(o)?o||0:s):s}}),_.each(["height","width"],(function(t,e){_.cssHooks[e]={get:function(t,i,n){if(i)return!qt.test(_.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Gt(t,e,n):st(t,Wt,(function(){return Gt(t,e,n)}))},set:function(t,i,n){var s,o=zt(t),r="border-box"===_.css(t,"boxSizing",!1,o),a=n&&Xt(t,e,n,r,o);return r&&f.scrollboxSize()===o.position&&(a-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(o[e])-Xt(t,e,"border",!1,o)-.5)),a&&(s=et.exec(i))&&"px"!==(s[3]||"px")&&(t.style[e]=i,i=_.css(t,e)),Kt(0,i,a)}}})),_.cssHooks.marginLeft=Rt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(jt(t,"marginLeft"))||t.getBoundingClientRect().left-st(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),_.each({margin:"",padding:"",border:"Width"},(function(t,e){_.cssHooks[t+e]={expand:function(i){for(var n=0,s={},o="string"==typeof i?i.split(" "):[i];n<4;n++)s[t+it[n]+e]=o[n]||o[n-2]||o[0];return s}},"margin"!==t&&(_.cssHooks[t+e].set=Kt)})),_.fn.extend({css:function(t,e){return B(this,(function(t,e,i){var n,s,o={},r=0;if(Array.isArray(e)){for(n=zt(t),s=e.length;r<s;r++)o[e[r]]=_.css(t,e[r],!1,n);return o}return void 0!==i?_.style(t,e,i):_.css(t,e)}),t,e,arguments.length>1)}}),_.Tween=Zt,Zt.prototype={constructor:Zt,init:function(t,e,i,n,s,o){this.elem=t,this.prop=i,this.easing=s||_.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=o||(_.cssNumber[i]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,i=Zt.propHooks[this.prop];return this.options.duration?this.pos=e=_.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):this.pos=e=t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Zt.propHooks._default.set(this),this}},Zt.prototype.init.prototype=Zt.prototype,Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=_.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){_.fx.step[t.prop]?_.fx.step[t.prop](t):1!==t.elem.nodeType||null==t.elem.style[_.cssProps[t.prop]]&&!_.cssHooks[t.prop]?t.elem[t.prop]=t.now:_.style(t.elem,t.prop,t.now+t.unit)}}},Zt.propHooks.scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},_.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},_.fx=Zt.prototype.init,_.fx.step={};var Qt,Jt,te=/^(?:toggle|show|hide)$/,ee=/queueHooks$/;function ie(){Jt&&(!1===n.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ie):t.setTimeout(ie,_.fx.interval),_.fx.tick())}function ne(){return t.setTimeout((function(){Qt=void 0})),Qt=Date.now()}function se(t,e){var i,n=0,s={height:t};for(e=e?1:0;n<4;n+=2-e)s["margin"+(i=it[n])]=s["padding"+i]=t;return e&&(s.opacity=s.width=t),s}function oe(t,e,i){for(var n,s=(re.tweeners[e]||[]).concat(re.tweeners["*"]),o=0,r=s.length;o<r;o++)if(n=s[o].call(i,e,t))return n}function re(t,e,i){var n,s,o=0,r=re.prefilters.length,a=_.Deferred().always((function(){delete l.elem})),l=function(){if(s)return!1;for(var e=Qt||ne(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),o=0,r=c.tweens.length;o<r;o++)c.tweens[o].run(n);return a.notifyWith(t,[c,n,i]),n<1&&r?i:(r||a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c]),!1)},c=a.promise({elem:t,props:_.extend({},e),opts:_.extend(!0,{specialEasing:{},easing:_.easing._default},i),originalProperties:e,originalOptions:i,startTime:Qt||ne(),duration:i.duration,tweens:[],createTween:function(e,i){var n=_.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(s)return this;for(s=!0;i<n;i++)c.tweens[i].run(1);return e?(a.notifyWith(t,[c,1,0]),a.resolveWith(t,[c,e])):a.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var i,n,s,o,r;for(i in t)if(s=e[n=Y(i)],o=t[i],Array.isArray(o)&&(s=o[1],o=t[i]=o[0]),i!==n&&(t[n]=o,delete t[i]),(r=_.cssHooks[n])&&"expand"in r)for(i in o=r.expand(o),delete t[n],o)i in t||(t[i]=o[i],e[i]=s);else e[n]=s}(u,c.opts.specialEasing);o<r;o++)if(n=re.prefilters[o].call(c,t,u,c.opts))return m(n.stop)&&(_._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return _.map(u,oe,c),m(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),_.fx.timer(_.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}_.Animation=_.extend(re,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ot(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){m(t)?(e=t,t=["*"]):t=t.match($);for(var i,n=0,s=t.length;n<s;n++)i=t[n],re.tweeners[i]=re.tweeners[i]||[],re.tweeners[i].unshift(e)},prefilters:[function(t,e,i){var n,s,o,r,a,l,c,u,h="width"in e||"height"in e,d=this,p={},f=t.style,m=t.nodeType&&nt(t),g=X.get(t,"fxshow");for(n in i.queue||(null==(r=_._queueHooks(t,"fx")).unqueued&&(r.unqueued=0,a=r.empty.fire,r.empty.fire=function(){r.unqueued||a()}),r.unqueued++,d.always((function(){d.always((function(){r.unqueued--,_.queue(t,"fx").length||r.empty.fire()}))}))),e)if(s=e[n],te.test(s)){if(delete e[n],o=o||"toggle"===s,s===(m?"hide":"show")){if("show"!==s||!g||void 0===g[n])continue;m=!0}p[n]=g&&g[n]||_.style(t,n)}if((l=!_.isEmptyObject(e))||!_.isEmptyObject(p))for(n in h&&1===t.nodeType&&(i.overflow=[f.overflow,f.overflowX,f.overflowY],null==(c=g&&g.display)&&(c=X.get(t,"display")),"none"===(u=_.css(t,"display"))&&(c?u=c:(lt([t],!0),c=t.style.display||c,u=_.css(t,"display"),lt([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===_.css(t,"float")&&(l||(d.done((function(){f.display=c})),null==c&&(u=f.display,c="none"===u?"":u)),f.display="inline-block")),i.overflow&&(f.overflow="hidden",d.always((function(){f.overflow=i.overflow[0],f.overflowX=i.overflow[1],f.overflowY=i.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=X.access(t,"fxshow",{display:c}),o&&(g.hidden=!m),m&<([t],!0),d.done((function(){for(n in m||lt([t]),X.remove(t,"fxshow"),p)_.style(t,n,p[n])}))),l=oe(m?g[n]:0,n,d),n in g||(g[n]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?re.prefilters.unshift(t):re.prefilters.push(t)}}),_.speed=function(t,e,i){var n=t&&"object"==typeof t?_.extend({},t):{complete:i||!i&&e||m(t)&&t,duration:t,easing:i&&e||e&&!m(e)&&e};return _.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration in _.fx.speeds?n.duration=_.fx.speeds[n.duration]:n.duration=_.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){m(n.old)&&n.old.call(this),n.queue&&_.dequeue(this,n.queue)},n},_.fn.extend({fadeTo:function(t,e,i,n){return this.filter(nt).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var s=_.isEmptyObject(t),o=_.speed(e,i,n),r=function(){var e=re(this,_.extend({},t),o);(s||X.get(this,"finish"))&&e.stop(!0)};return r.finish=r,s||!1===o.queue?this.each(r):this.queue(o.queue,r)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&!1!==t&&this.queue(t||"fx",[]),this.each((function(){var e=!0,s=null!=t&&t+"queueHooks",o=_.timers,r=X.get(this);if(s)r[s]&&r[s].stop&&n(r[s]);else for(s in r)r[s]&&r[s].stop&&ee.test(s)&&n(r[s]);for(s=o.length;s--;)o[s].elem!==this||null!=t&&o[s].queue!==t||(o[s].anim.stop(i),e=!1,o.splice(s,1));!e&&i||_.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=X.get(this),n=i[t+"queue"],s=i[t+"queueHooks"],o=_.timers,r=n?n.length:0;for(i.finish=!0,_.queue(this,t,[]),s&&s.stop&&s.stop.call(this,!0),e=o.length;e--;)o[e].elem===this&&o[e].queue===t&&(o[e].anim.stop(!0),o.splice(e,1));for(e=0;e<r;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),_.each(["toggle","show","hide"],(function(t,e){var i=_.fn[e];_.fn[e]=function(t,n,s){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(se(e,!0),t,n,s)}})),_.each({slideDown:se("show"),slideUp:se("hide"),slideToggle:se("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){_.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),_.timers=[],_.fx.tick=function(){var t,e=0,i=_.timers;for(Qt=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||_.fx.stop(),Qt=void 0},_.fx.timer=function(t){_.timers.push(t),_.fx.start()},_.fx.interval=13,_.fx.start=function(){Jt||(Jt=!0,ie())},_.fx.stop=function(){Jt=null},_.fx.speeds={slow:600,fast:200,_default:400},_.fn.delay=function(e,i){return e=_.fx&&_.fx.speeds[e]||e,i=i||"fx",this.queue(i,(function(i,n){var s=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(s)}}))},function(){var t=n.createElement("input"),e=n.createElement("select").appendChild(n.createElement("option"));t.type="checkbox",f.checkOn=""!==t.value,f.optSelected=e.selected,(t=n.createElement("input")).value="t",t.type="radio",f.radioValue="t"===t.value}();var ae,le=_.expr.attrHandle;_.fn.extend({attr:function(t,e){return B(this,_.attr,t,e,arguments.length>1)},removeAttr:function(t){return this.each((function(){_.removeAttr(this,t)}))}}),_.extend({attr:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===t.getAttribute?_.prop(t,e,i):(1===o&&_.isXMLDoc(t)||(s=_.attrHooks[e.toLowerCase()]||(_.expr.match.bool.test(e)?ae:void 0)),void 0!==i?null===i?void _.removeAttr(t,e):s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:(t.setAttribute(e,i+""),i):s&&"get"in s&&null!==(n=s.get(t,e))?n:null==(n=_.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&E(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,s=e&&e.match($);if(s&&1===t.nodeType)for(;i=s[n++];)t.removeAttribute(i)}}),ae={set:function(t,e,i){return!1===e?_.removeAttr(t,i):t.setAttribute(i,i),i}},_.each(_.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=le[e]||_.find.attr;le[e]=function(t,e,n){var s,o,r=e.toLowerCase();return n||(o=le[r],le[r]=s,s=null!=i(t,e,n)?r:null,le[r]=o),s}}));var ce=/^(?:input|select|textarea|button)$/i,ue=/^(?:a|area)$/i;function he(t){return(t.match($)||[]).join(" ")}function de(t){return t.getAttribute&&t.getAttribute("class")||""}function pe(t){return Array.isArray(t)?t:"string"==typeof t&&t.match($)||[]}_.fn.extend({prop:function(t,e){return B(this,_.prop,t,e,arguments.length>1)},removeProp:function(t){return this.each((function(){delete this[_.propFix[t]||t]}))}}),_.extend({prop:function(t,e,i){var n,s,o=t.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&_.isXMLDoc(t)||(e=_.propFix[e]||e,s=_.propHooks[e]),void 0!==i?s&&"set"in s&&void 0!==(n=s.set(t,i,e))?n:t[e]=i:s&&"get"in s&&null!==(n=s.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=_.find.attr(t,"tabindex");return e?parseInt(e,10):ce.test(t.nodeName)||ue.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(_.propHooks.selected={get:function(t){var e=t.parentNode;return e&&e.parentNode&&e.parentNode.selectedIndex,null},set:function(t){var e=t.parentNode;e&&(e.selectedIndex,e.parentNode&&e.parentNode.selectedIndex)}}),_.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){_.propFix[this.toLowerCase()]=this})),_.fn.extend({addClass:function(t){var e,i,n,s,o,r,a,l=0;if(m(t))return this.each((function(e){_(this).addClass(t.call(this,e,de(this)))}));if((e=pe(t)).length)for(;i=this[l++];)if(s=de(i),n=1===i.nodeType&&" "+he(s)+" "){for(r=0;o=e[r++];)n.indexOf(" "+o+" ")<0&&(n+=o+" ");s!==(a=he(n))&&i.setAttribute("class",a)}return this},removeClass:function(t){var e,i,n,s,o,r,a,l=0;if(m(t))return this.each((function(e){_(this).removeClass(t.call(this,e,de(this)))}));if(!arguments.length)return this.attr("class","");if((e=pe(t)).length)for(;i=this[l++];)if(s=de(i),n=1===i.nodeType&&" "+he(s)+" "){for(r=0;o=e[r++];)for(;n.indexOf(" "+o+" ")>-1;)n=n.replace(" "+o+" "," ");s!==(a=he(n))&&i.setAttribute("class",a)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):m(t)?this.each((function(i){_(this).toggleClass(t.call(this,i,de(this),e),e)})):this.each((function(){var e,s,o,r;if(n)for(s=0,o=_(this),r=pe(t);e=r[s++];)o.hasClass(e)?o.removeClass(e):o.addClass(e);else void 0!==t&&"boolean"!==i||((e=de(this))&&X.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":X.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&(" "+he(de(i))+" ").indexOf(e)>-1)return!0;return!1}});var fe=/\r/g;_.fn.extend({val:function(t){var e,i,n,s=this[0];return arguments.length?(n=m(t),this.each((function(i){var s;1===this.nodeType&&(null==(s=n?t.call(this,i,_(this).val()):t)?s="":"number"==typeof s?s+="":Array.isArray(s)&&(s=_.map(s,(function(t){return null==t?"":t+""}))),(e=_.valHooks[this.type]||_.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,s,"value")||(this.value=s))}))):s?(e=_.valHooks[s.type]||_.valHooks[s.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(s,"value"))?i:"string"==typeof(i=s.value)?i.replace(fe,""):null==i?"":i:void 0}}),_.extend({valHooks:{option:{get:function(t){var e=_.find.attr(t,"value");return null!=e?e:he(_.text(t))}},select:{get:function(t){var e,i,n,s=t.options,o=t.selectedIndex,r="select-one"===t.type,a=r?null:[],l=r?o+1:s.length;for(n=o<0?l:r?o:0;n<l;n++)if(((i=s[n]).selected||n===o)&&!i.disabled&&(!i.parentNode.disabled||!E(i.parentNode,"optgroup"))){if(e=_(i).val(),r)return e;a.push(e)}return a},set:function(t,e){for(var i,n,s=t.options,o=_.makeArray(e),r=s.length;r--;)((n=s[r]).selected=_.inArray(_.valHooks.option.get(n),o)>-1)&&(i=!0);return i||(t.selectedIndex=-1),o}}}}),_.each(["radio","checkbox"],(function(){_.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=_.inArray(_(t).val(),e)>-1}},f.checkOn||(_.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var me=/^(?:focusinfocus|focusoutblur)$/,ge=function(t){t.stopPropagation()};_.extend(_.event,{trigger:function(e,i,s,o){var r,a,l,c,u,d,p,f,v=[s||n],y=h.call(e,"type")?e.type:e,b=h.call(e,"namespace")?e.namespace.split("."):[];if(a=f=l=s=s||n,3!==s.nodeType&&8!==s.nodeType&&!me.test(y+_.event.triggered)&&(y.indexOf(".")>-1&&(y=(b=y.split(".")).shift(),b.sort()),u=y.indexOf(":")<0&&"on"+y,(e=e[_.expando]?e:new _.Event(y,"object"==typeof e&&e)).isTrigger=o?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=s),i=null==i?[e]:_.makeArray(i,[e]),p=_.event.special[y]||{},o||!p.trigger||!1!==p.trigger.apply(s,i))){if(!o&&!p.noBubble&&!g(s)){for(c=p.delegateType||y,me.test(c+y)||(a=a.parentNode);a;a=a.parentNode)v.push(a),l=a;l===(s.ownerDocument||n)&&v.push(l.defaultView||l.parentWindow||t)}for(r=0;(a=v[r++])&&!e.isPropagationStopped();)f=a,e.type=r>1?c:p.bindType||y,(d=(X.get(a,"events")||{})[e.type]&&X.get(a,"handle"))&&d.apply(a,i),(d=u&&a[u])&&d.apply&&V(a)&&(e.result=d.apply(a,i),!1===e.result&&e.preventDefault());return e.type=y,o||e.isDefaultPrevented()||p._default&&!1!==p._default.apply(v.pop(),i)||!V(s)||u&&m(s[y])&&!g(s)&&((l=s[u])&&(s[u]=null),_.event.triggered=y,e.isPropagationStopped()&&f.addEventListener(y,ge),s[y](),e.isPropagationStopped()&&f.removeEventListener(y,ge),_.event.triggered=void 0,l&&(s[u]=l)),e.result}},simulate:function(t,e,i){var n=_.extend(new _.Event,i,{type:t,isSimulated:!0});_.event.trigger(n,null,e)}}),_.fn.extend({trigger:function(t,e){return this.each((function(){_.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return _.event.trigger(t,e,i,!0)}}),f.focusin||_.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){_.event.simulate(e,t.target,_.event.fix(t))};_.event.special[e]={setup:function(){var n=this.ownerDocument||this,s=X.access(n,e);s||n.addEventListener(t,i,!0),X.access(n,e,(s||0)+1)},teardown:function(){var n=this.ownerDocument||this,s=X.access(n,e)-1;s?X.access(n,e,s):(n.removeEventListener(t,i,!0),X.remove(n,e))}}}));var ve=t.location,ye=Date.now(),be=/\?/;_.parseXML=function(e){var i;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(t){i=void 0}return i&&!i.getElementsByTagName("parsererror").length||_.error("Invalid XML: "+e),i};var _e=/\[\]$/,we=/\r?\n/g,xe=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Ce(t,e,i,n){var s;if(Array.isArray(e))_.each(e,(function(e,s){i||_e.test(t)?n(t,s):Ce(t+"["+("object"==typeof s&&null!=s?e:"")+"]",s,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(s in e)Ce(t+"["+s+"]",e[s],i,n)}_.param=function(t,e){var i,n=[],s=function(t,e){var i=m(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(Array.isArray(t)||t.jquery&&!_.isPlainObject(t))_.each(t,(function(){s(this.name,this.value)}));else for(i in t)Ce(i,t[i],e,s);return n.join("&")},_.fn.extend({serialize:function(){return _.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=_.prop(this,"elements");return t?_.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!_(this).is(":disabled")&&ke.test(this.nodeName)&&!xe.test(t)&&(this.checked||!ct.test(t))})).map((function(t,e){var i=_(this).val();return null==i?null:Array.isArray(i)?_.map(i,(function(t){return{name:e.name,value:t.replace(we,"\r\n")}})):{name:e.name,value:i.replace(we,"\r\n")}})).get()}});var Te=/%20/g,Se=/#.*$/,Ee=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Ae=/^(?:GET|HEAD)$/,Oe=/^\/\//,Le={},Pe={},Me="*/".concat("*"),Ie=n.createElement("a");function $e(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,s=0,o=e.toLowerCase().match($)||[];if(m(i))for(;n=o[s++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ne(t,e,i,n){var s={},o=t===Pe;function r(a){var l;return s[a]=!0,_.each(t[a]||[],(function(t,a){var c=a(e,i,n);return"string"!=typeof c||o||s[c]?o?!(l=c):void 0:(e.dataTypes.unshift(c),r(c),!1)})),l}return r(e.dataTypes[0])||!s["*"]&&r("*")}function ze(t,e){var i,n,s=_.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((s[i]?t:n||(n={}))[i]=e[i]);return n&&_.extend(!0,t,n),t}Ie.href=ve.href,_.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:ve.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(ve.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Me,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":_.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?ze(ze(t,_.ajaxSettings),e):ze(_.ajaxSettings,t)},ajaxPrefilter:$e(Le),ajaxTransport:$e(Pe),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0),i=i||{};var s,o,r,a,l,c,u,h,d,p,f=_.ajaxSetup({},i),m=f.context||f,g=f.context&&(m.nodeType||m.jquery)?_(m):_.event,v=_.Deferred(),y=_.Callbacks("once memory"),b=f.statusCode||{},w={},x={},k="canceled",C={readyState:0,getResponseHeader:function(t){var e;if(u){if(!a)for(a={};e=De.exec(r);)a[e[1].toLowerCase()]=e[2];e=a[t.toLowerCase()]}return null==e?null:e},getAllResponseHeaders:function(){return u?r:null},setRequestHeader:function(t,e){return null==u&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==u&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(u)C.always(t[C.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||k;return s&&s.abort(e),T(0,e),this}};if(v.promise(C),f.url=((e||f.url||ve.href)+"").replace(Oe,ve.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match($)||[""],null==f.crossDomain){c=n.createElement("a");try{c.href=f.url,c.href=c.href,f.crossDomain=Ie.protocol+"//"+Ie.host!=c.protocol+"//"+c.host}catch(t){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=_.param(f.data,f.traditional)),Ne(Le,f,i,C),u)return C;for(d in(h=_.event&&f.global)&&0==_.active++&&_.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Ae.test(f.type),o=f.url.replace(Se,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Te,"+")):(p=f.url.slice(o.length),f.data&&(f.processData||"string"==typeof f.data)&&(o+=(be.test(o)?"&":"?")+f.data,delete f.data),!1===f.cache&&(o=o.replace(Ee,"$1"),p=(be.test(o)?"&":"?")+"_="+ye+++p),f.url=o+p),f.ifModified&&(_.lastModified[o]&&C.setRequestHeader("If-Modified-Since",_.lastModified[o]),_.etag[o]&&C.setRequestHeader("If-None-Match",_.etag[o])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&C.setRequestHeader("Content-Type",f.contentType),C.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Me+"; q=0.01":""):f.accepts["*"]),f.headers)C.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(m,C,f)||u))return C.abort();if(k="abort",y.add(f.complete),C.done(f.success),C.fail(f.error),s=Ne(Pe,f,i,C)){if(C.readyState=1,h&&g.trigger("ajaxSend",[C,f]),u)return C;f.async&&f.timeout>0&&(l=t.setTimeout((function(){C.abort("timeout")}),f.timeout));try{u=!1,s.send(w,T)}catch(t){if(u)throw t;T(-1,t)}}else T(-1,"No Transport");function T(e,i,n,a){var c,d,p,w,x,k=i;u||(u=!0,l&&t.clearTimeout(l),s=void 0,r=a||"",C.readyState=e>0?4:0,c=e>=200&&e<300||304===e,n&&(w=function(t,e,i){for(var n,s,o,r,a=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(s in a)if(a[s]&&a[s].test(n)){l.unshift(s);break}if(l[0]in i)o=l[0];else{for(s in i){if(!l[0]||t.converters[s+" "+l[0]]){o=s;break}r||(r=s)}o=o||r}if(o)return o!==l[0]&&l.unshift(o),i[o]}(f,C,n)),w=function(t,e,i,n){var s,o,r,a,l,c={},u=t.dataTypes.slice();if(u[1])for(r in t.converters)c[r.toLowerCase()]=t.converters[r];for(o=u.shift();o;)if(t.responseFields[o]&&(i[t.responseFields[o]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=o,o=u.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(r=c[l+" "+o]||c["* "+o]))for(s in c)if((a=s.split(" "))[1]===o&&(r=c[l+" "+a[0]]||c["* "+a[0]])){!0===r?r=c[s]:!0!==c[s]&&(o=a[0],u.unshift(a[1]));break}if(!0!==r)if(r&&t.throws)e=r(e);else try{e=r(e)}catch(t){return{state:"parsererror",error:r?t:"No conversion from "+l+" to "+o}}}return{state:"success",data:e}}(f,w,C,c),c?(f.ifModified&&((x=C.getResponseHeader("Last-Modified"))&&(_.lastModified[o]=x),(x=C.getResponseHeader("etag"))&&(_.etag[o]=x)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=w.state,d=w.data,c=!(p=w.error))):(p=k,!e&&k||(k="error",e<0&&(e=0))),C.status=e,C.statusText=(i||k)+"",c?v.resolveWith(m,[d,k,C]):v.rejectWith(m,[C,k,p]),C.statusCode(b),b=void 0,h&&g.trigger(c?"ajaxSuccess":"ajaxError",[C,f,c?d:p]),y.fireWith(m,[C,k]),h&&(g.trigger("ajaxComplete",[C,f]),--_.active||_.event.trigger("ajaxStop")))}return C},getJSON:function(t,e,i){return _.get(t,e,i,"json")},getScript:function(t,e){return _.get(t,void 0,e,"script")}}),_.each(["get","post"],(function(t,e){_[e]=function(t,i,n,s){return m(i)&&(s=s||n,n=i,i=void 0),_.ajax(_.extend({url:t,type:e,dataType:s,data:i,success:n},_.isPlainObject(t)&&t))}})),_._evalUrl=function(t){return _.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,throws:!0})},_.fn.extend({wrapAll:function(t){var e;return this[0]&&(m(t)&&(t=t.call(this[0])),e=_(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return m(t)?this.each((function(e){_(this).wrapInner(t.call(this,e))})):this.each((function(){var e=_(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=m(t);return this.each((function(i){_(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){_(this).replaceWith(this.childNodes)})),this}}),_.expr.pseudos.hidden=function(t){return!_.expr.pseudos.visible(t)},_.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},_.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(t){}};var He={0:200,1223:204},je=_.ajaxSettings.xhr();f.cors=!!je&&"withCredentials"in je,f.ajax=je=!!je,_.ajaxTransport((function(e){var i,n;if(f.cors||je&&!e.crossDomain)return{send:function(s,o){var r,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(r in e.xhrFields)a[r]=e.xhrFields[r];for(r in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||s["X-Requested-With"]||(s["X-Requested-With"]="XMLHttpRequest"),s)a.setRequestHeader(r,s[r]);i=function(t){return function(){i&&(i=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===t?a.abort():"error"===t?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(He[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=i(),n=a.onerror=a.ontimeout=i("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{a.send(e.hasContent&&e.data||null)}catch(t){if(i)throw t}},abort:function(){i&&i()}}})),_.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),_.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return _.globalEval(t),t}}}),_.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),_.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain)return{send:function(s,o){e=_("<script>").prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&o("error"===t.type?404:200,t.type)}),n.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Re=[],qe=/(=)\?(?=&|$)|\?\?/;_.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=Re.pop()||_.expando+"_"+ye++;return this[t]=!0,t}}),_.ajaxPrefilter("json jsonp",(function(e,i,n){var s,o,r,a=!1!==e.jsonp&&(qe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return s=e.jsonpCallback=m(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(qe,"$1"+s):!1!==e.jsonp&&(e.url+=(be.test(e.url)?"&":"?")+e.jsonp+"="+s),e.converters["script json"]=function(){return r||_.error(s+" was not called"),r[0]},e.dataTypes[0]="json",o=t[s],t[s]=function(){r=arguments},n.always((function(){void 0===o?_(t).removeProp(s):t[s]=o,e[s]&&(e.jsonpCallback=i.jsonpCallback,Re.push(s)),r&&m(o)&&o(r[0]),r=o=void 0})),"script"})),f.createHTMLDocument=function(){var t=n.implementation.createHTMLDocument("").body;return t.innerHTML="<form></form><form></form>",2===t.childNodes.length}(),_.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(f.createHTMLDocument?((s=(e=n.implementation.createHTMLDocument("")).createElement("base")).href=n.location.href,e.head.appendChild(s)):e=n),r=!i&&[],(o=D.exec(t))?[e.createElement(o[1])]:(o=gt([t],e,r),r&&r.length&&_(r).remove(),_.merge([],o.childNodes)));var s,o,r},_.fn.load=function(t,e,i){var n,s,o,r=this,a=t.indexOf(" ");return a>-1&&(n=he(t.slice(a)),t=t.slice(0,a)),m(e)?(i=e,e=void 0):e&&"object"==typeof e&&(s="POST"),r.length>0&&_.ajax({url:t,type:s||"GET",dataType:"html",data:e}).done((function(t){o=arguments,r.html(n?_("<div>").append(_.parseHTML(t)).find(n):t)})).always(i&&function(t,e){r.each((function(){i.apply(this,o||[t.responseText,e,t])}))}),this},_.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){_.fn[e]=function(t){return this.on(e,t)}})),_.expr.pseudos.animated=function(t){return _.grep(_.timers,(function(e){return t===e.elem})).length},_.offset={setOffset:function(t,e,i){var n,s,o,r,a,l,c=_.css(t,"position"),u=_(t),h={};"static"===c&&(t.style.position="relative"),a=u.offset(),o=_.css(t,"top"),l=_.css(t,"left"),("absolute"===c||"fixed"===c)&&(o+l).indexOf("auto")>-1?(r=(n=u.position()).top,s=n.left):(r=parseFloat(o)||0,s=parseFloat(l)||0),m(e)&&(e=e.call(t,i,_.extend({},a))),null!=e.top&&(h.top=e.top-a.top+r),null!=e.left&&(h.left=e.left-a.left+s),"using"in e?e.using.call(t,h):u.css(h)}},_.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){_.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?(e=n.getBoundingClientRect(),i=n.ownerDocument.defaultView,{top:e.top+i.pageYOffset,left:e.left+i.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],s={top:0,left:0};if("fixed"===_.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===_.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((s=_(t).offset()).top+=_.css(t,"borderTopWidth",!0),s.left+=_.css(t,"borderLeftWidth",!0))}return{top:e.top-s.top-_.css(n,"marginTop",!0),left:e.left-s.left-_.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===_.css(t,"position");)t=t.offsetParent;return t||vt}))}}),_.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;_.fn[t]=function(n){return B(this,(function(t,n,s){var o;if(g(t)?o=t:9===t.nodeType&&(o=t.defaultView),void 0===s)return o?o[e]:t[n];o?o.scrollTo(i?o.pageXOffset:s,i?s:o.pageYOffset):t[n]=s}),t,n,arguments.length)}})),_.each(["top","left"],(function(t,e){_.cssHooks[e]=Rt(f.pixelPosition,(function(t,i){if(i)return i=jt(t,e),Nt.test(i)?_(t).position()[e]+"px":i}))})),_.each({Height:"height",Width:"width"},(function(t,e){_.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){_.fn[n]=function(s,o){var r=arguments.length&&(i||"boolean"!=typeof s),a=i||(!0===s||!0===o?"margin":"border");return B(this,(function(e,i,s){var o;return g(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(o=e.documentElement,Math.max(e.body["scroll"+t],o["scroll"+t],e.body["offset"+t],o["offset"+t],o["client"+t])):void 0===s?_.css(e,i,a):_.style(e,i,s,a)}),e,r?s:void 0,r)}}))})),_.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(t,e){_.fn[e]=function(t,i){return arguments.length>0?this.on(e,null,t,i):this.trigger(e)}})),_.fn.extend({hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),_.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)}}),_.proxy=function(t,e){var i,n,s;if("string"==typeof e&&(i=t[e],e=t,t=i),m(t))return n=o.call(arguments,2),s=function(){return t.apply(e||this,n.concat(o.call(arguments)))},s.guid=t.guid=t.guid||_.guid++,s},_.holdReady=function(t){t?_.readyWait++:_.ready(!0)},_.isArray=Array.isArray,_.parseJSON=JSON.parse,_.nodeName=E,_.isFunction=m,_.isWindow=g,_.camelCase=Y,_.type=b,_.now=Date.now,_.isNumeric=function(t){var e=_.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return _}));var Be=t.jQuery,We=t.$;return _.noConflict=function(e){return t.$===_&&(t.$=We),e&&t.jQuery===_&&(t.jQuery=Be),_},e||(t.jQuery=t.$=_),_})),function(t){"use strict";"function"==typeof define&&define.amd?define(["jquery"],t):t(jQuery)}((function(t){"use strict";t.ui=t.ui||{},t.ui.version="1.13.2";var e,i,n,s,o,r,a,l,c,u,h=0,d=Array.prototype.hasOwnProperty,p=Array.prototype.slice;function f(t,e,i){return[parseFloat(t[0])*(c.test(t[0])?e/100:1),parseFloat(t[1])*(c.test(t[1])?i/100:1)]}function m(e,i){return parseInt(t.css(e,i),10)||0}function g(t){return null!=t&&t===t.window}t.cleanData=(e=t.cleanData,function(i){for(var n,s,o=0;null!=(s=i[o]);o++)(n=t._data(s,"events"))&&n.remove&&t(s).triggerHandler("remove");e(i)}),t.widget=function(e,i,n){var s,o,r,a={},l=e.split(".")[0],c=l+"-"+(e=e.split(".")[1]);return n||(n=i,i=t.Widget),Array.isArray(n)&&(n=t.extend.apply(null,[{}].concat(n))),t.expr.pseudos[c.toLowerCase()]=function(e){return!!t.data(e,c)},t[l]=t[l]||{},s=t[l][e],o=t[l][e]=function(t,e){if(!this||!this._createWidget)return new o(t,e);arguments.length&&this._createWidget(t,e)},t.extend(o,s,{version:n.version,_proto:t.extend({},n),_childConstructors:[]}),(r=new i).options=t.widget.extend({},r.options),t.each(n,(function(t,e){function n(){return i.prototype[t].apply(this,arguments)}function s(e){return i.prototype[t].apply(this,e)}a[t]="function"==typeof e?function(){var t,i=this._super,o=this._superApply;return this._super=n,this._superApply=s,t=e.apply(this,arguments),this._super=i,this._superApply=o,t}:e})),o.prototype=t.widget.extend(r,{widgetEventPrefix:s&&r.widgetEventPrefix||e},a,{constructor:o,namespace:l,widgetName:e,widgetFullName:c}),s?(t.each(s._childConstructors,(function(e,i){var n=i.prototype;t.widget(n.namespace+"."+n.widgetName,o,i._proto)})),delete s._childConstructors):i._childConstructors.push(o),t.widget.bridge(e,o),o},t.widget.extend=function(e){for(var i,n,s=p.call(arguments,1),o=0,r=s.length;o<r;o++)for(i in s[o])n=s[o][i],d.call(s[o],i)&&void 0!==n&&(t.isPlainObject(n)?e[i]=t.isPlainObject(e[i])?t.widget.extend({},e[i],n):t.widget.extend({},n):e[i]=n);return e},t.widget.bridge=function(e,i){var n=i.prototype.widgetFullName||e;t.fn[e]=function(s){var o="string"==typeof s,r=p.call(arguments,1),a=this;return o?this.length||"instance"!==s?this.each((function(){var i,o=t.data(this,n);return"instance"===s?(a=o,!1):o?"function"!=typeof o[s]||"_"===s.charAt(0)?t.error("no such method '"+s+"' for "+e+" widget instance"):(i=o[s].apply(o,r))!==o&&void 0!==i?(a=i&&i.jquery?a.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on "+e+" prior to initialization; attempted to call method '"+s+"'")})):a=void 0:(r.length&&(s=t.widget.extend.apply(null,[s].concat(r))),this.each((function(){var e=t.data(this,n);e?(e.option(s||{}),e._init&&e._init()):t.data(this,n,new i(s,this))}))),a}},t.Widget=function(){},t.Widget._childConstructors=[],t.Widget.prototype={widgetName:"widget",widgetEventPrefix:"",defaultElement:"<div>",options:{classes:{},disabled:!1,create:null},_createWidget:function(e,i){i=t(i||this.defaultElement||this)[0],this.element=t(i),this.uuid=h++,this.eventNamespace="."+this.widgetName+this.uuid,this.bindings=t(),this.hoverable=t(),this.focusable=t(),this.classesElementLookup={},i!==this&&(t.data(i,this.widgetFullName,this),this._on(!0,this.element,{remove:function(t){t.target===i&&this.destroy()}}),this.document=t(i.style?i.ownerDocument:i.document||i),this.window=t(this.document[0].defaultView||this.document[0].parentWindow)),this.options=t.widget.extend({},this.options,this._getCreateOptions(),e),this._create(),this.options.disabled&&this._setOptionDisabled(this.options.disabled),this._trigger("create",null,this._getCreateEventData()),this._init()},_getCreateOptions:function(){return{}},_getCreateEventData:t.noop,_create:t.noop,_init:t.noop,destroy:function(){var e=this;this._destroy(),t.each(this.classesElementLookup,(function(t,i){e._removeClass(i,t)})),this.element.off(this.eventNamespace).removeData(this.widgetFullName),this.widget().off(this.eventNamespace).removeAttr("aria-disabled"),this.bindings.off(this.eventNamespace)},_destroy:t.noop,widget:function(){return this.element},option:function(e,i){var n,s,o,r=e;if(0===arguments.length)return t.widget.extend({},this.options);if("string"==typeof e)if(r={},e=(n=e.split(".")).shift(),n.length){for(s=r[e]=t.widget.extend({},this.options[e]),o=0;o<n.length-1;o++)s[n[o]]=s[n[o]]||{},s=s[n[o]];if(e=n.pop(),1===arguments.length)return void 0===s[e]?null:s[e];s[e]=i}else{if(1===arguments.length)return void 0===this.options[e]?null:this.options[e];r[e]=i}return this._setOptions(r),this},_setOptions:function(t){for(var e in t)this._setOption(e,t[e]);return this},_setOption:function(t,e){return"classes"===t&&this._setOptionClasses(e),this.options[t]=e,"disabled"===t&&this._setOptionDisabled(e),this},_setOptionClasses:function(e){var i,n,s;for(i in e)s=this.classesElementLookup[i],e[i]!==this.options.classes[i]&&s&&s.length&&(n=t(s.get()),this._removeClass(s,i),n.addClass(this._classes({element:n,keys:i,classes:e,add:!0})))},_setOptionDisabled:function(t){this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!!t),t&&(this._removeClass(this.hoverable,null,"ui-state-hover"),this._removeClass(this.focusable,null,"ui-state-focus"))},enable:function(){return this._setOptions({disabled:!1})},disable:function(){return this._setOptions({disabled:!0})},_classes:function(e){var i=[],n=this;function s(s,o){for(var r,a=0;a<s.length;a++)r=n.classesElementLookup[s[a]]||t(),r=e.add?(function(){var i=[];e.element.each((function(e,s){t.map(n.classesElementLookup,(function(t){return t})).some((function(t){return t.is(s)}))||i.push(s)})),n._on(t(i),{remove:"_untrackClassesElement"})}(),t(t.uniqueSort(r.get().concat(e.element.get())))):t(r.not(e.element).get()),n.classesElementLookup[s[a]]=r,i.push(s[a]),o&&e.classes[s[a]]&&i.push(e.classes[s[a]])}return(e=t.extend({element:this.element,classes:this.options.classes||{}},e)).keys&&s(e.keys.match(/\S+/g)||[],!0),e.extra&&s(e.extra.match(/\S+/g)||[]),i.join(" ")},_untrackClassesElement:function(e){var i=this;t.each(i.classesElementLookup,(function(n,s){-1!==t.inArray(e.target,s)&&(i.classesElementLookup[n]=t(s.not(e.target).get()))})),this._off(t(e.target))},_removeClass:function(t,e,i){return this._toggleClass(t,e,i,!1)},_addClass:function(t,e,i){return this._toggleClass(t,e,i,!0)},_toggleClass:function(t,e,i,n){var s="string"==typeof t||null===t;return(i={extra:s?e:i,keys:s?t:e,element:s?this.element:t,add:n="boolean"==typeof n?n:i}).element.toggleClass(this._classes(i),n),this},_on:function(e,i,n){var s,o=this;"boolean"!=typeof e&&(n=i,i=e,e=!1),n?(i=s=t(i),this.bindings=this.bindings.add(i)):(n=i,i=this.element,s=this.widget()),t.each(n,(function(n,r){function a(){if(e||!0!==o.options.disabled&&!t(this).hasClass("ui-state-disabled"))return("string"==typeof r?o[r]:r).apply(o,arguments)}"string"!=typeof r&&(a.guid=r.guid=r.guid||a.guid||t.guid++);var l;n=(l=n.match(/^([\w:-]*)\s*(.*)$/))[1]+o.eventNamespace;(l=l[2])?s.on(n,l,a):i.on(n,a)}))},_off:function(e,i){i=(i||"").split(" ").join(this.eventNamespace+" ")+this.eventNamespace,e.off(i),this.bindings=t(this.bindings.not(e).get()),this.focusable=t(this.focusable.not(e).get()),this.hoverable=t(this.hoverable.not(e).get())},_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){this._addClass(t(e.currentTarget),null,"ui-state-hover")},mouseleave:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-hover")}})},_focusable:function(e){this.focusable=this.focusable.add(e),this._on(e,{focusin:function(e){this._addClass(t(e.currentTarget),null,"ui-state-focus")},focusout:function(e){this._removeClass(t(e.currentTarget),null,"ui-state-focus")}})},_trigger:function(e,i,n){var s,o,r=this.options[e];if(n=n||{},(i=t.Event(i)).type=(e===this.widgetEventPrefix?e:this.widgetEventPrefix+e).toLowerCase(),i.target=this.element[0],o=i.originalEvent)for(s in o)s in i||(i[s]=o[s]);return this.element.trigger(i,n),!("function"==typeof r&&!1===r.apply(this.element[0],[i].concat(n))||i.isDefaultPrevented())}},t.each({show:"fadeIn",hide:"fadeOut"},(function(e,i){t.Widget.prototype["_"+e]=function(n,s,o){var r,a=(s="string"==typeof s?{effect:s}:s)?!0!==s&&"number"!=typeof s&&s.effect||i:e;"number"==typeof(s=s||{})?s={duration:s}:!0===s&&(s={}),r=!t.isEmptyObject(s),s.complete=o,s.delay&&n.delay(s.delay),r&&t.effects&&t.effects.effect[a]?n[e](s):a!==e&&n[a]?n[a](s.duration,s.easing,o):n.queue((function(i){t(this)[e](),o&&o.call(n[0]),i()}))}})),t.widget,n=Math.max,s=Math.abs,o=/left|center|right/,r=/top|center|bottom/,a=/[\+\-]\d+(\.[\d]+)?%?/,l=/^\w+/,c=/%$/,u=t.fn.position,t.position={scrollbarWidth:function(){if(void 0!==i)return i;var e,n=t("<div style='display:block;position:absolute;width:200px;height:200px;overflow:hidden;'><div style='height:300px;width:auto;'></div></div>"),s=n.children()[0];return t("body").append(n),e=s.offsetWidth,n.css("overflow","scroll"),e===(s=s.offsetWidth)&&(s=n[0].clientWidth),n.remove(),i=e-s},getScrollInfo:function(e){var i=e.isWindow||e.isDocument?"":e.element.css("overflow-x"),n=e.isWindow||e.isDocument?"":e.element.css("overflow-y");i="scroll"===i||"auto"===i&&e.width<e.element[0].scrollWidth;return{width:"scroll"===n||"auto"===n&&e.height<e.element[0].scrollHeight?t.position.scrollbarWidth():0,height:i?t.position.scrollbarWidth():0}},getWithinInfo:function(e){var i=t(e||window),n=g(i[0]),s=!!i[0]&&9===i[0].nodeType;return{element:i,isWindow:n,isDocument:s,offset:n||s?{left:0,top:0}:t(e).offset(),scrollLeft:i.scrollLeft(),scrollTop:i.scrollTop(),width:i.outerWidth(),height:i.outerHeight()}}},t.fn.position=function(e){if(!e||!e.of)return u.apply(this,arguments);var i,c,h,d,p,v,y="string"==typeof(e=t.extend({},e)).of?t(document).find(e.of):t(e.of),b=t.position.getWithinInfo(e.within),_=t.position.getScrollInfo(b),w=(e.collision||"flip").split(" "),x={},k=9===(v=(k=y)[0]).nodeType?{width:k.width(),height:k.height(),offset:{top:0,left:0}}:g(v)?{width:k.width(),height:k.height(),offset:{top:k.scrollTop(),left:k.scrollLeft()}}:v.preventDefault?{width:0,height:0,offset:{top:v.pageY,left:v.pageX}}:{width:k.outerWidth(),height:k.outerHeight(),offset:k.offset()};return y[0].preventDefault&&(e.at="left top"),c=k.width,h=k.height,p=t.extend({},d=k.offset),t.each(["my","at"],(function(){var t,i,n=(e[this]||"").split(" ");(n=1===n.length?o.test(n[0])?n.concat(["center"]):r.test(n[0])?["center"].concat(n):["center","center"]:n)[0]=o.test(n[0])?n[0]:"center",n[1]=r.test(n[1])?n[1]:"center",t=a.exec(n[0]),i=a.exec(n[1]),x[this]=[t?t[0]:0,i?i[0]:0],e[this]=[l.exec(n[0])[0],l.exec(n[1])[0]]})),1===w.length&&(w[1]=w[0]),"right"===e.at[0]?p.left+=c:"center"===e.at[0]&&(p.left+=c/2),"bottom"===e.at[1]?p.top+=h:"center"===e.at[1]&&(p.top+=h/2),i=f(x.at,c,h),p.left+=i[0],p.top+=i[1],this.each((function(){var o,r,a=t(this),l=a.outerWidth(),u=a.outerHeight(),g=m(this,"marginLeft"),v=m(this,"marginTop"),k=l+g+m(this,"marginRight")+_.width,C=u+v+m(this,"marginBottom")+_.height,T=t.extend({},p),S=f(x.my,a.outerWidth(),a.outerHeight());"right"===e.my[0]?T.left-=l:"center"===e.my[0]&&(T.left-=l/2),"bottom"===e.my[1]?T.top-=u:"center"===e.my[1]&&(T.top-=u/2),T.left+=S[0],T.top+=S[1],o={marginLeft:g,marginTop:v},t.each(["left","top"],(function(n,s){t.ui.position[w[n]]&&t.ui.position[w[n]][s](T,{targetWidth:c,targetHeight:h,elemWidth:l,elemHeight:u,collisionPosition:o,collisionWidth:k,collisionHeight:C,offset:[i[0]+S[0],i[1]+S[1]],my:e.my,at:e.at,within:b,elem:a})})),e.using&&(r=function(t){var i=d.left-T.left,o=i+c-l,r=d.top-T.top,p=r+h-u,f={target:{element:y,left:d.left,top:d.top,width:c,height:h},element:{element:a,left:T.left,top:T.top,width:l,height:u},horizontal:o<0?"left":0<i?"right":"center",vertical:p<0?"top":0<r?"bottom":"middle"};c<l&&s(i+o)<c&&(f.horizontal="center"),h<u&&s(r+p)<h&&(f.vertical="middle"),n(s(i),s(o))>n(s(r),s(p))?f.important="horizontal":f.important="vertical",e.using.call(this,t,f)}),a.offset(t.extend(T,{using:r}))}))},t.ui.position={fit:{left:function(t,e){var i=e.within,s=i.isWindow?i.scrollLeft:i.offset.left,o=i.width,r=t.left-e.collisionPosition.marginLeft,a=s-r,l=r+e.collisionWidth-o-s;e.collisionWidth>o?0<a&&l<=0?(i=t.left+a+e.collisionWidth-o-s,t.left+=a-i):t.left=!(0<l&&a<=0)&&l<a?s+o-e.collisionWidth:s:0<a?t.left+=a:0<l?t.left-=l:t.left=n(t.left-r,t.left)},top:function(t,e){var i=e.within,s=i.isWindow?i.scrollTop:i.offset.top,o=e.within.height,r=t.top-e.collisionPosition.marginTop,a=s-r,l=r+e.collisionHeight-o-s;e.collisionHeight>o?0<a&&l<=0?(i=t.top+a+e.collisionHeight-o-s,t.top+=a-i):t.top=!(0<l&&a<=0)&&l<a?s+o-e.collisionHeight:s:0<a?t.top+=a:0<l?t.top-=l:t.top=n(t.top-r,t.top)}},flip:{left:function(t,e){var i=(c=e.within).offset.left+c.scrollLeft,n=c.width,o=c.isWindow?c.scrollLeft:c.offset.left,r=(u=t.left-e.collisionPosition.marginLeft)-o,a=u+e.collisionWidth-n-o,l="left"===e.my[0]?-e.elemWidth:"right"===e.my[0]?e.elemWidth:0,c="left"===e.at[0]?e.targetWidth:"right"===e.at[0]?-e.targetWidth:0,u=-2*e.offset[0];r<0?((i=t.left+l+c+u+e.collisionWidth-n-i)<0||i<s(r))&&(t.left+=l+c+u):0<a&&(0<(o=t.left-e.collisionPosition.marginLeft+l+c+u-o)||s(o)<a)&&(t.left+=l+c+u)},top:function(t,e){var i=(c=e.within).offset.top+c.scrollTop,n=c.height,o=c.isWindow?c.scrollTop:c.offset.top,r=(u=t.top-e.collisionPosition.marginTop)-o,a=u+e.collisionHeight-n-o,l="top"===e.my[1]?-e.elemHeight:"bottom"===e.my[1]?e.elemHeight:0,c="top"===e.at[1]?e.targetHeight:"bottom"===e.at[1]?-e.targetHeight:0,u=-2*e.offset[1];r<0?((i=t.top+l+c+u+e.collisionHeight-n-i)<0||i<s(r))&&(t.top+=l+c+u):0<a&&(0<(o=t.top-e.collisionPosition.marginTop+l+c+u-o)||s(o)<a)&&(t.top+=l+c+u)}},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)}}},t.ui.position,t.extend(t.expr.pseudos,{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])}}),t.fn.extend({disableSelection:(v="onselectstart"in document.createElement("div")?"selectstart":"mousedown",function(){return this.on(v+".ui-disableSelection",(function(t){t.preventDefault()}))}),enableSelection:function(){return this.off(".ui-disableSelection")}});var v,y=t,b={},_=b.toString,w=/^([\-+])=\s*(\d+\.?\d*)/,x=[{re:/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[t[1],t[2],t[3],t[4]]}},{re:/rgba?\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,parse:function(t){return[2.55*t[1],2.55*t[2],2.55*t[3],t[4]]}},{re:/#([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})([a-f0-9]{2})?/,parse:function(t){return[parseInt(t[1],16),parseInt(t[2],16),parseInt(t[3],16),t[4]?(parseInt(t[4],16)/255).toFixed(2):1]}},{re:/#([a-f0-9])([a-f0-9])([a-f0-9])([a-f0-9])?/,parse:function(t){return[parseInt(t[1]+t[1],16),parseInt(t[2]+t[2],16),parseInt(t[3]+t[3],16),t[4]?(parseInt(t[4]+t[4],16)/255).toFixed(2):1]}},{re:/hsla?\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d?(?:\.\d+)?)\s*)?\)/,space:"hsla",parse:function(t){return[t[1],t[2]/100,t[3]/100,t[4]]}}],k=y.Color=function(t,e,i,n){return new y.Color.fn.parse(t,e,i,n)},C={rgba:{props:{red:{idx:0,type:"byte"},green:{idx:1,type:"byte"},blue:{idx:2,type:"byte"}}},hsla:{props:{hue:{idx:0,type:"degrees"},saturation:{idx:1,type:"percent"},lightness:{idx:2,type:"percent"}}}},T={byte:{floor:!0,max:255},percent:{max:1},degrees:{mod:360,floor:!0}},S=k.support={},E=y("<p>")[0],D=y.each;function A(t){return null==t?t+"":"object"==typeof t?b[_.call(t)]||"object":typeof t}function O(t,e,i){var n=T[e.type]||{};return null==t?i||!e.def?null:e.def:(t=n.floor?~~t:parseFloat(t),isNaN(t)?e.def:n.mod?(t+n.mod)%n.mod:Math.min(n.max,Math.max(0,t)))}function L(t){var e=k(),i=e._rgba=[];return t=t.toLowerCase(),D(x,(function(n,s){var o=(o=s.re.exec(t))&&s.parse(o);s=s.space||"rgba";if(o)return o=e[s](o),e[C[s].cache]=o[C[s].cache],i=e._rgba=o._rgba,!1})),i.length?("0,0,0,0"===i.join()&&y.extend(i,Y.transparent),e):Y[t]}function P(t,e,i){return 6*(i=(i+1)%1)<1?t+(e-t)*i*6:2*i<1?e:3*i<2?t+(e-t)*(2/3-i)*6:t}E.style.cssText="background-color:rgba(1,1,1,.5)",S.rgba=-1<E.style.backgroundColor.indexOf("rgba"),D(C,(function(t,e){e.cache="_"+t,e.props.alpha={idx:3,type:"percent",def:1}})),y.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){b["[object "+e+"]"]=e.toLowerCase()})),(k.fn=y.extend(k.prototype,{parse:function(t,e,i,n){if(void 0===t)return this._rgba=[null,null,null,null],this;(t.jquery||t.nodeType)&&(t=y(t).css(e),e=void 0);var s=this,o=A(t),r=this._rgba=[];return void 0!==e&&(t=[t,e,i,n],o="array"),"string"===o?this.parse(L(t)||Y._default):"array"===o?(D(C.rgba.props,(function(e,i){r[i.idx]=O(t[i.idx],i)})),this):"object"===o?(D(C,t instanceof k?function(e,i){t[i.cache]&&(s[i.cache]=t[i.cache].slice())}:function(e,i){var n=i.cache;D(i.props,(function(e,o){if(!s[n]&&i.to){if("alpha"===e||null==t[e])return;s[n]=i.to(s._rgba)}s[n][o.idx]=O(t[e],o,!0)})),s[n]&&y.inArray(null,s[n].slice(0,3))<0&&(null==s[n][3]&&(s[n][3]=1),i.from&&(s._rgba=i.from(s[n])))}),this):void 0},is:function(t){var e=k(t),i=!0,n=this;return D(C,(function(t,s){var o,r=e[s.cache];return r&&(o=n[s.cache]||s.to&&s.to(n._rgba)||[],D(s.props,(function(t,e){if(null!=r[e.idx])return i=r[e.idx]===o[e.idx]}))),i})),i},_space:function(){var t=[],e=this;return D(C,(function(i,n){e[n.cache]&&t.push(i)})),t.pop()},transition:function(t,e){var i=(r=k(t))._space(),n=C[i],s=(t=0===this.alpha()?k("transparent"):this)[n.cache]||n.to(t._rgba),o=s.slice(),r=r[n.cache];return D(n.props,(function(t,i){var n=i.idx,a=s[n],l=r[n],c=T[i.type]||{};null!==l&&(null===a?o[n]=l:(c.mod&&(l-a>c.mod/2?a+=c.mod:a-l>c.mod/2&&(a-=c.mod)),o[n]=O((l-a)*e+a,i)))})),this[i](o)},blend:function(t){if(1===this._rgba[3])return this;var e=this._rgba.slice(),i=e.pop(),n=k(t)._rgba;return k(y.map(e,(function(t,e){return(1-i)*n[e]+i*t})))},toRgbaString:function(){var t="rgba(",e=y.map(this._rgba,(function(t,e){return null!=t?t:2<e?1:0}));return 1===e[3]&&(e.pop(),t="rgb("),t+e.join()+")"},toHslaString:function(){var t="hsla(",e=y.map(this.hsla(),(function(t,e){return null==t&&(t=2<e?1:0),e&&e<3?Math.round(100*t)+"%":t}));return 1===e[3]&&(e.pop(),t="hsl("),t+e.join()+")"},toHexString:function(t){var e=this._rgba.slice(),i=e.pop();return t&&e.push(~~(255*i)),"#"+y.map(e,(function(t){return 1===(t=(t||0).toString(16)).length?"0"+t:t})).join("")},toString:function(){return 0===this._rgba[3]?"transparent":this.toRgbaString()}})).parse.prototype=k.fn,C.hsla.to=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/255,i=t[1]/255,n=t[2]/255,s=t[3],o=Math.max(e,i,n),r=Math.min(e,i,n),a=o-r,l=(t=.5*(l=o+r),i=r===o?0:e===o?60*(i-n)/a+360:i===o?60*(n-e)/a+120:60*(e-i)/a+240,0==a?0:t<=.5?a/l:a/(2-l));return[Math.round(i)%360,l,t,null==s?1:s]},C.hsla.from=function(t){if(null==t[0]||null==t[1]||null==t[2])return[null,null,null,t[3]];var e=t[0]/360,i=t[1],n=t[2];t=t[3],n=2*n-(i=n<=.5?n*(1+i):n+i-n*i);return[Math.round(255*P(n,i,e+1/3)),Math.round(255*P(n,i,e)),Math.round(255*P(n,i,e-1/3)),t]},D(C,(function(t,e){var i=e.props,n=e.cache,s=e.to,o=e.from;k.fn[t]=function(t){if(s&&!this[n]&&(this[n]=s(this._rgba)),void 0===t)return this[n].slice();var e=A(t),r="array"===e||"object"===e?t:arguments,a=this[n].slice();return D(i,(function(t,i){null==(t=r["object"===e?t:i.idx])&&(t=a[i.idx]),a[i.idx]=O(t,i)})),o?((t=k(o(a)))[n]=a,t):k(a)},D(i,(function(e,i){k.fn[e]||(k.fn[e]=function(n){var s,o=A(n),r="alpha"===e?this._hsla?"hsla":"rgba":t,a=this[r](),l=a[i.idx];return"undefined"===o?l:("function"===o&&(o=A(n=n.call(this,l))),null==n&&i.empty?this:("string"===o&&(s=w.exec(n))&&(n=l+parseFloat(s[2])*("+"===s[1]?1:-1)),a[i.idx]=n,this[r](a)))})}))})),(k.hook=function(t){t=t.split(" "),D(t,(function(t,e){y.cssHooks[e]={set:function(t,i){var n,s,o="";if("transparent"!==i&&("string"!==A(i)||(n=L(i)))){if(i=k(n||i),!S.rgba&&1!==i._rgba[3]){for(s="backgroundColor"===e?t.parentNode:t;(""===o||"transparent"===o)&&s&&s.style;)try{o=y.css(s,"backgroundColor"),s=s.parentNode}catch(t){}i=i.blend(o&&"transparent"!==o?o:"_default")}i=i.toRgbaString()}try{t.style[e]=i}catch(t){}}},y.fx.step[e]=function(t){t.colorInit||(t.start=k(t.elem,e),t.end=k(t.end),t.colorInit=!0),y.cssHooks[e].set(t.elem,t.start.transition(t.end,t.pos))}}))})("backgroundColor borderBottomColor borderLeftColor borderRightColor borderTopColor color columnRuleColor outlineColor textDecorationColor textEmphasisColor"),y.cssHooks.borderColor={expand:function(t){var e={};return D(["Top","Right","Bottom","Left"],(function(i,n){e["border"+n+"Color"]=t})),e}};var M,I,$,N,z,H,j,R,q,B,W,F,U,Y=y.Color.names={aqua:"#00ffff",black:"#000000",blue:"#0000ff",fuchsia:"#ff00ff",gray:"#808080",green:"#008000",lime:"#00ff00",maroon:"#800000",navy:"#000080",olive:"#808000",purple:"#800080",red:"#ff0000",silver:"#c0c0c0",teal:"#008080",white:"#ffffff",yellow:"#ffff00",transparent:[null,null,null,0],_default:"#ffffff"},V="ui-effects-",K="ui-effects-style",X="ui-effects-animated";function G(t){var e,i,n=t.ownerDocument.defaultView?t.ownerDocument.defaultView.getComputedStyle(t,null):t.currentStyle,s={};if(n&&n.length&&n[0]&&n[n[0]])for(i=n.length;i--;)"string"==typeof n[e=n[i]]&&(s[e.replace(/-([\da-z])/gi,(function(t,e){return e.toUpperCase()}))]=n[e]);else for(e in n)"string"==typeof n[e]&&(s[e]=n[e]);return s}function Z(e,i,n,s){return e={effect:e=t.isPlainObject(e)?(i=e).effect:e},"function"==typeof(i=null==i?{}:i)&&(s=i,n=null,i={}),"number"!=typeof i&&!t.fx.speeds[i]||(s=n,n=i,i={}),"function"==typeof n&&(s=n,n=null),i&&t.extend(e,i),n=n||i.duration,e.duration=t.fx.off?0:"number"==typeof n?n:n in t.fx.speeds?t.fx.speeds[n]:t.fx.speeds._default,e.complete=s||i.complete,e}function Q(e){return!e||"number"==typeof e||t.fx.speeds[e]||"string"==typeof e&&!t.effects.effect[e]||"function"==typeof e||"object"==typeof e&&!e.effect}function J(t,e){var i=e.outerWidth();e=e.outerHeight(),t=/^rect\((-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto),?\s*(-?\d*\.?\d*px|-?\d+%|auto)\)$/.exec(t)||["",0,i,e,0];return{top:parseFloat(t[1])||0,right:"auto"===t[2]?i:parseFloat(t[2]),bottom:"auto"===t[3]?e:parseFloat(t[3]),left:parseFloat(t[4])||0}}t.effects={effect:{}},N=["add","remove","toggle"],z={border:1,borderBottom:1,borderColor:1,borderLeft:1,borderRight:1,borderTop:1,borderWidth:1,margin:1,padding:1},t.each(["borderLeftStyle","borderRightStyle","borderBottomStyle","borderTopStyle"],(function(e,i){t.fx.step[i]=function(t){("none"!==t.end&&!t.setAttr||1===t.pos&&!t.setAttr)&&(y.style(t.elem,i,t.end),t.setAttr=!0)}})),t.fn.addBack||(t.fn.addBack=function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}),t.effects.animateClass=function(e,i,n,s){var o=t.speed(i,n,s);return this.queue((function(){var i=t(this),n=i.attr("class")||"",s=(s=o.children?i.find("*").addBack():i).map((function(){return{el:t(this),start:G(this)}})),r=function(){t.each(N,(function(t,n){e[n]&&i[n+"Class"](e[n])}))};r(),s=s.map((function(){return this.end=G(this.el[0]),this.diff=function(e,i){var n,s,o={};for(n in i)s=i[n],e[n]!==s&&(z[n]||!t.fx.step[n]&&isNaN(parseFloat(s))||(o[n]=s));return o}(this.start,this.end),this})),i.attr("class",n),s=s.map((function(){var e=this,i=t.Deferred(),n=t.extend({},o,{queue:!1,complete:function(){i.resolve(e)}});return this.el.animate(this.diff,n),i.promise()})),t.when.apply(t,s.get()).done((function(){r(),t.each(arguments,(function(){var e=this.el;t.each(this.diff,(function(t){e.css(t,"")}))})),o.complete.call(i[0])}))}))},t.fn.extend({addClass:($=t.fn.addClass,function(e,i,n,s){return i?t.effects.animateClass.call(this,{add:e},i,n,s):$.apply(this,arguments)}),removeClass:(I=t.fn.removeClass,function(e,i,n,s){return 1<arguments.length?t.effects.animateClass.call(this,{remove:e},i,n,s):I.apply(this,arguments)}),toggleClass:(M=t.fn.toggleClass,function(e,i,n,s,o){return"boolean"==typeof i||void 0===i?n?t.effects.animateClass.call(this,i?{add:e}:{remove:e},n,s,o):M.apply(this,arguments):t.effects.animateClass.call(this,{toggle:e},i,n,s)}),switchClass:function(e,i,n,s,o){return t.effects.animateClass.call(this,{add:i,remove:e},n,s,o)}}),t.expr&&t.expr.pseudos&&t.expr.pseudos.animated&&(t.expr.pseudos.animated=(H=t.expr.pseudos.animated,function(e){return!!t(e).data(X)||H(e)})),!1!==t.uiBackCompat&&t.extend(t.effects,{save:function(t,e){for(var i=0,n=e.length;i<n;i++)null!==e[i]&&t.data(V+e[i],t[0].style[e[i]])},restore:function(t,e){for(var i,n=0,s=e.length;n<s;n++)null!==e[n]&&(i=t.data(V+e[n]),t.css(e[n],i))},setMode:function(t,e){return"toggle"===e?t.is(":hidden")?"show":"hide":e},createWrapper:function(e){if(e.parent().is(".ui-effects-wrapper"))return e.parent();var i={width:e.outerWidth(!0),height:e.outerHeight(!0),float:e.css("float")},n=t("<div></div>").addClass("ui-effects-wrapper").css({fontSize:"100%",background:"transparent",border:"none",margin:0,padding:0}),s={width:e.width(),height:e.height()},o=document.activeElement;try{o.id}catch(n){o=document.body}return e.wrap(n),e[0]!==o&&!t.contains(e[0],o)||t(o).trigger("focus"),n=e.parent(),"static"===e.css("position")?(n.css({position:"relative"}),e.css({position:"relative"})):(t.extend(i,{position:e.css("position"),zIndex:e.css("z-index")}),t.each(["top","left","bottom","right"],(function(t,n){i[n]=e.css(n),isNaN(parseInt(i[n],10))&&(i[n]="auto")})),e.css({position:"relative",top:0,left:0,right:"auto",bottom:"auto"})),e.css(s),n.css(i).show()},removeWrapper:function(e){var i=document.activeElement;return e.parent().is(".ui-effects-wrapper")&&(e.parent().replaceWith(e),e[0]!==i&&!t.contains(e[0],i)||t(i).trigger("focus")),e}}),t.extend(t.effects,{version:"1.13.2",define:function(e,i,n){return n||(n=i,i="effect"),t.effects.effect[e]=n,t.effects.effect[e].mode=i,n},scaledDimensions:function(t,e,i){if(0===e)return{height:0,width:0,outerHeight:0,outerWidth:0};var n="horizontal"!==i?(e||100)/100:1;e="vertical"!==i?(e||100)/100:1;return{height:t.height()*e,width:t.width()*n,outerHeight:t.outerHeight()*e,outerWidth:t.outerWidth()*n}},clipToBox:function(t){return{width:t.clip.right-t.clip.left,height:t.clip.bottom-t.clip.top,left:t.clip.left,top:t.clip.top}},unshift:function(t,e,i){var n=t.queue();1<e&&n.splice.apply(n,[1,0].concat(n.splice(e,i))),t.dequeue()},saveStyle:function(t){t.data(K,t[0].style.cssText)},restoreStyle:function(t){t[0].style.cssText=t.data(K)||"",t.removeData(K)},mode:function(t,e){return t=t.is(":hidden"),"toggle"===e&&(e=t?"show":"hide"),(t?"hide"===e:"show"===e)?"none":e},getBaseline:function(t,e){var i,n;switch(t[0]){case"top":i=0;break;case"middle":i=.5;break;case"bottom":i=1;break;default:i=t[0]/e.height}switch(t[1]){case"left":n=0;break;case"center":n=.5;break;case"right":n=1;break;default:n=t[1]/e.width}return{x:n,y:i}},createPlaceholder:function(e){var i,n=e.css("position"),s=e.position();return e.css({marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()),/^(static|relative)/.test(n)&&(n="absolute",i=t("<"+e[0].nodeName+">").insertAfter(e).css({display:/^(inline|ruby)/.test(e.css("display"))?"inline-block":"block",visibility:"hidden",marginTop:e.css("marginTop"),marginBottom:e.css("marginBottom"),marginLeft:e.css("marginLeft"),marginRight:e.css("marginRight"),float:e.css("float")}).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).addClass("ui-effects-placeholder"),e.data(V+"placeholder",i)),e.css({position:n,left:s.left,top:s.top}),i},removePlaceholder:function(t){var e=V+"placeholder",i=t.data(e);i&&(i.remove(),t.removeData(e))},cleanUp:function(e){t.effects.restoreStyle(e),t.effects.removePlaceholder(e)},setTransition:function(e,i,n,s){return s=s||{},t.each(i,(function(t,i){var o=e.cssUnit(i);0<o[0]&&(s[i]=o[0]*n+o[1])})),s}}),t.fn.extend({effect:function(){function e(e){var i=t(this),n=t.effects.mode(i,l)||s;i.data(X,!0),c.push(n),s&&("show"===n||n===s&&"hide"===n)&&i.show(),s&&"none"===n||t.effects.saveStyle(i),"function"==typeof e&&e()}var i=Z.apply(this,arguments),n=t.effects.effect[i.effect],s=n.mode,o=i.queue,r=o||"fx",a=i.complete,l=i.mode,c=[];return t.fx.off||!n?l?this[l](i.duration,a):this.each((function(){a&&a.call(this)})):!1===o?this.each(e).each(u):this.queue(r,e).queue(r,u);function u(e){var o=t(this);function r(){"function"==typeof a&&a.call(o[0]),"function"==typeof e&&e()}i.mode=c.shift(),!1===t.uiBackCompat||s?"none"===i.mode?(o[l](),r()):n.call(o[0],i,(function(){o.removeData(X),t.effects.cleanUp(o),"hide"===i.mode&&o.hide(),r()})):(o.is(":hidden")?"hide"===l:"show"===l)?(o[l](),r()):n.call(o[0],i,r)}},show:(q=t.fn.show,function(t){return Q(t)?q.apply(this,arguments):((t=Z.apply(this,arguments)).mode="show",this.effect.call(this,t))}),hide:(R=t.fn.hide,function(t){return Q(t)?R.apply(this,arguments):((t=Z.apply(this,arguments)).mode="hide",this.effect.call(this,t))}),toggle:(j=t.fn.toggle,function(t){return Q(t)||"boolean"==typeof t?j.apply(this,arguments):((t=Z.apply(this,arguments)).mode="toggle",this.effect.call(this,t))}),cssUnit:function(e){var i=this.css(e),n=[];return t.each(["em","px","%","pt"],(function(t,e){0<i.indexOf(e)&&(n=[parseFloat(i),e])})),n},cssClip:function(t){return t?this.css("clip","rect("+t.top+"px "+t.right+"px "+t.bottom+"px "+t.left+"px)"):J(this.css("clip"),this)},transfer:function(e,i){var n=t(this),s="fixed"===(l=t(e.to)).css("position"),o=t("body"),r=s?o.scrollTop():0,a=s?o.scrollLeft():0,l=(o={top:(o=l.offset()).top-r,left:o.left-a,height:l.innerHeight(),width:l.innerWidth()},n.offset()),c=t("<div class='ui-effects-transfer'></div>");c.appendTo("body").addClass(e.className).css({top:l.top-r,left:l.left-a,height:n.innerHeight(),width:n.innerWidth(),position:s?"fixed":"absolute"}).animate(o,e.duration,e.easing,(function(){c.remove(),"function"==typeof i&&i()}))}}),t.fx.step.clip=function(e){e.clipInit||(e.start=t(e.elem).cssClip(),"string"==typeof e.end&&(e.end=J(e.end,e.elem)),e.clipInit=!0),t(e.elem).cssClip({top:e.pos*(e.end.top-e.start.top)+e.start.top,right:e.pos*(e.end.right-e.start.right)+e.start.right,bottom:e.pos*(e.end.bottom-e.start.bottom)+e.start.bottom,left:e.pos*(e.end.left-e.start.left)+e.start.left})},B={},t.each(["Quad","Cubic","Quart","Quint","Expo"],(function(t,e){B[e]=function(e){return Math.pow(e,t+2)}})),t.extend(B,{Sine:function(t){return 1-Math.cos(t*Math.PI/2)},Circ:function(t){return 1-Math.sqrt(1-t*t)},Elastic:function(t){return 0===t||1===t?t:-Math.pow(2,8*(t-1))*Math.sin((80*(t-1)-7.5)*Math.PI/15)},Back:function(t){return t*t*(3*t-2)},Bounce:function(t){for(var e,i=4;t<((e=Math.pow(2,--i))-1)/11;);return 1/Math.pow(4,3-i)-7.5625*Math.pow((3*e-2)/22-t,2)}}),t.each(B,(function(e,i){t.easing["easeIn"+e]=i,t.easing["easeOut"+e]=function(t){return 1-i(1-t)},t.easing["easeInOut"+e]=function(t){return t<.5?i(2*t)/2:1-i(-2*t+2)/2}})),E=t.effects,t.effects.define("blind","hide",(function(e,i){var n={up:["bottom","top"],vertical:["bottom","top"],down:["top","bottom"],left:["right","left"],horizontal:["right","left"],right:["left","right"]},s=t(this),o=e.direction||"up",r=s.cssClip(),a={clip:t.extend({},r)},l=t.effects.createPlaceholder(s);a.clip[n[o][0]]=a.clip[n[o][1]],"show"===e.mode&&(s.cssClip(a.clip),l&&l.css(t.effects.clipToBox(a)),a.clip=r),l&&l.animate(t.effects.clipToBox(a),e.duration,e.easing),s.animate(a,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("bounce",(function(e,i){var n,s,o=t(this),r="hide"===(h=e.mode),a="show"===h,l=e.direction||"up",c=e.distance,u=e.times||5,h=2*u+(a||r?1:0),d=e.duration/h,p=e.easing,f="up"===l||"down"===l?"top":"left",m="up"===l||"left"===l,g=0;e=o.queue().length;for(t.effects.createPlaceholder(o),l=o.css(f),c=c||o["top"==f?"outerHeight":"outerWidth"]()/3,a&&((s={opacity:1})[f]=l,o.css("opacity",0).css(f,m?2*-c:2*c).animate(s,d,p)),r&&(c/=Math.pow(2,u-1)),(s={})[f]=l;g<u;g++)(n={})[f]=(m?"-=":"+=")+c,o.animate(n,d,p).animate(s,d,p),c=r?2*c:c/2;r&&((n={opacity:0})[f]=(m?"-=":"+=")+c,o.animate(n,d,p)),o.queue(i),t.effects.unshift(o,e,1+h)})),t.effects.define("clip","hide",(function(e,i){var n={},s=t(this),o=(r="both"===(a=e.direction||"vertical"))||"horizontal"===a,r=r||"vertical"===a,a=s.cssClip();n.clip={top:r?(a.bottom-a.top)/2:a.top,right:o?(a.right-a.left)/2:a.right,bottom:r?(a.bottom-a.top)/2:a.bottom,left:o?(a.right-a.left)/2:a.left},t.effects.createPlaceholder(s),"show"===e.mode&&(s.cssClip(n.clip),n.clip=a),s.animate(n,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("drop","hide",(function(e,i){var n=t(this),s="show"===e.mode,o=e.direction||"left",r="up"===o||"down"===o?"top":"left",a="up"===o||"left"===o?"-=":"+=",l="+="==a?"-=":"+=",c={opacity:0};t.effects.createPlaceholder(n),o=e.distance||n["top"==r?"outerHeight":"outerWidth"](!0)/2,c[r]=a+o,s&&(n.css(c),c[r]=l+o,c.opacity=1),n.animate(c,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("explode","hide",(function(e,i){var n,s,o,r,a,l,c=e.pieces?Math.round(Math.sqrt(e.pieces)):3,u=c,h=t(this),d="show"===e.mode,p=h.show().css("visibility","hidden").offset(),f=Math.ceil(h.outerWidth()/u),m=Math.ceil(h.outerHeight()/c),g=[];function v(){g.push(this),g.length===c*u&&(h.css({visibility:"visible"}),t(g).remove(),i())}for(n=0;n<c;n++)for(r=p.top+n*m,l=n-(c-1)/2,s=0;s<u;s++)o=p.left+s*f,a=s-(u-1)/2,h.clone().appendTo("body").wrap("<div></div>").css({position:"absolute",visibility:"visible",left:-s*f,top:-n*m}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:f,height:m,left:o+(d?a*f:0),top:r+(d?l*m:0),opacity:d?0:1}).animate({left:o+(d?0:a*f),top:r+(d?0:l*m),opacity:d?1:0},e.duration||500,e.easing,v)})),t.effects.define("fade","toggle",(function(e,i){var n="show"===e.mode;t(this).css("opacity",n?0:1).animate({opacity:n?1:0},{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("fold","hide",(function(e,i){var n=t(this),s="show"===(m=e.mode),o="hide"===m,r=e.size||15,a=/([0-9]+)%/.exec(r),l=e.horizFirst?["right","bottom"]:["bottom","right"],c=e.duration/2,u=t.effects.createPlaceholder(n),h=n.cssClip(),d={clip:t.extend({},h)},p={clip:t.extend({},h)},f=[h[l[0]],h[l[1]]],m=n.queue().length;a&&(r=parseInt(a[1],10)/100*f[o?0:1]),d.clip[l[0]]=r,p.clip[l[0]]=r,p.clip[l[1]]=0,s&&(n.cssClip(p.clip),u&&u.css(t.effects.clipToBox(p)),p.clip=h),n.queue((function(i){u&&u.animate(t.effects.clipToBox(d),c,e.easing).animate(t.effects.clipToBox(p),c,e.easing),i()})).animate(d,c,e.easing).animate(p,c,e.easing).queue(i),t.effects.unshift(n,m,4)})),t.effects.define("highlight","show",(function(e,i){var n=t(this),s={backgroundColor:n.css("backgroundColor")};"hide"===e.mode&&(s.opacity=0),t.effects.saveStyle(n),n.css({backgroundImage:"none",backgroundColor:e.color||"#ffff99"}).animate(s,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),t.effects.define("size",(function(e,i){var n,s=t(this),o=["fontSize"],r=["borderTopWidth","borderBottomWidth","paddingTop","paddingBottom"],a=["borderLeftWidth","borderRightWidth","paddingLeft","paddingRight"],l=e.mode,c="effect"!==l,u=e.scale||"both",h=e.origin||["middle","center"],d=s.css("position"),p=s.position(),f=t.effects.scaledDimensions(s),m=e.from||f,g=e.to||t.effects.scaledDimensions(s,0);t.effects.createPlaceholder(s),"show"===l&&(l=m,m=g,g=l),n={from:{y:m.height/f.height,x:m.width/f.width},to:{y:g.height/f.height,x:g.width/f.width}},"box"!==u&&"both"!==u||(n.from.y!==n.to.y&&(m=t.effects.setTransition(s,r,n.from.y,m),g=t.effects.setTransition(s,r,n.to.y,g)),n.from.x!==n.to.x&&(m=t.effects.setTransition(s,a,n.from.x,m),g=t.effects.setTransition(s,a,n.to.x,g))),"content"!==u&&"both"!==u||n.from.y!==n.to.y&&(m=t.effects.setTransition(s,o,n.from.y,m),g=t.effects.setTransition(s,o,n.to.y,g)),h&&(h=t.effects.getBaseline(h,f),m.top=(f.outerHeight-m.outerHeight)*h.y+p.top,m.left=(f.outerWidth-m.outerWidth)*h.x+p.left,g.top=(f.outerHeight-g.outerHeight)*h.y+p.top,g.left=(f.outerWidth-g.outerWidth)*h.x+p.left),delete m.outerHeight,delete m.outerWidth,s.css(m),"content"!==u&&"both"!==u||(r=r.concat(["marginTop","marginBottom"]).concat(o),a=a.concat(["marginLeft","marginRight"]),s.find("*[width]").each((function(){var i=t(this),s={height:(o=t.effects.scaledDimensions(i)).height*n.from.y,width:o.width*n.from.x,outerHeight:o.outerHeight*n.from.y,outerWidth:o.outerWidth*n.from.x},o={height:o.height*n.to.y,width:o.width*n.to.x,outerHeight:o.height*n.to.y,outerWidth:o.width*n.to.x};n.from.y!==n.to.y&&(s=t.effects.setTransition(i,r,n.from.y,s),o=t.effects.setTransition(i,r,n.to.y,o)),n.from.x!==n.to.x&&(s=t.effects.setTransition(i,a,n.from.x,s),o=t.effects.setTransition(i,a,n.to.x,o)),c&&t.effects.saveStyle(i),i.css(s),i.animate(o,e.duration,e.easing,(function(){c&&t.effects.restoreStyle(i)}))}))),s.animate(g,{queue:!1,duration:e.duration,easing:e.easing,complete:function(){var e=s.offset();0===g.opacity&&s.css("opacity",m.opacity),c||(s.css("position","static"===d?"relative":d).offset(e),t.effects.saveStyle(s)),i()}})})),t.effects.define("scale",(function(e,i){var n=t(this),s=e.mode;s=parseInt(e.percent,10)||(0===parseInt(e.percent,10)||"effect"!==s?0:100),s=t.extend(!0,{from:t.effects.scaledDimensions(n),to:t.effects.scaledDimensions(n,s,e.direction||"both"),origin:e.origin||["middle","center"]},e);e.fade&&(s.from.opacity=1,s.to.opacity=0),t.effects.effect.size.call(this,s,i)})),t.effects.define("puff","hide",(function(e,i){e=t.extend(!0,{},e,{fade:!0,percent:parseInt(e.percent,10)||150}),t.effects.effect.scale.call(this,e,i)})),t.effects.define("pulsate","show",(function(e,i){var n=t(this),s="show"===(c=e.mode),o=2*(e.times||5)+(s||"hide"===c?1:0),r=e.duration/o,a=0,l=1,c=n.queue().length;for(!s&&n.is(":visible")||(n.css("opacity",0).show(),a=1);l<o;l++)n.animate({opacity:a},r,e.easing),a=1-a;n.animate({opacity:a},r,e.easing),n.queue(i),t.effects.unshift(n,c,1+o)})),t.effects.define("shake",(function(e,i){var n=1,s=t(this),o=e.direction||"left",r=e.distance||20,a=e.times||3,l=2*a+1,c=Math.round(e.duration/l),u="up"===o||"down"===o?"top":"left",h="up"===o||"left"===o,d={},p={},f={};o=s.queue().length;for(t.effects.createPlaceholder(s),d[u]=(h?"-=":"+=")+r,p[u]=(h?"+=":"-=")+2*r,f[u]=(h?"-=":"+=")+2*r,s.animate(d,c,e.easing);n<a;n++)s.animate(p,c,e.easing).animate(f,c,e.easing);s.animate(p,c,e.easing).animate(d,c/2,e.easing).queue(i),t.effects.unshift(s,o,1+l)})),t.effects.define("slide","show",(function(e,i){var n,s,o=t(this),r={up:["bottom","top"],down:["top","bottom"],left:["right","left"],right:["left","right"]},a=e.mode,l=e.direction||"left",c="up"===l||"down"===l?"top":"left",u="up"===l||"left"===l,h=e.distance||o["top"==c?"outerHeight":"outerWidth"](!0),d={};t.effects.createPlaceholder(o),n=o.cssClip(),s=o.position()[c],d[c]=(u?-1:1)*h+s,d.clip=o.cssClip(),d.clip[r[l][1]]=d.clip[r[l][0]],"show"===a&&(o.cssClip(d.clip),o.css(c,d[c]),d.clip=n,d[c]=s),o.animate(d,{queue:!1,duration:e.duration,easing:e.easing,complete:i})})),E=!1!==t.uiBackCompat?t.effects.define("transfer",(function(e,i){t(this).transfer(e,i)})):E,t.ui.focusable=function(e,i){var n,s,o,r,a=e.nodeName.toLowerCase();return"area"===a?(s=(n=e.parentNode).name,!(!e.href||!s||"map"!==n.nodeName.toLowerCase())&&0<(s=t("img[usemap='#"+s+"']")).length&&s.is(":visible")):(/^(input|select|textarea|button|object)$/.test(a)?(o=!e.disabled)&&(r=t(e).closest("fieldset")[0])&&(o=!r.disabled):o="a"===a&&e.href||i,o&&t(e).is(":visible")&&function(t){for(var e=t.css("visibility");"inherit"===e;)e=(t=t.parent()).css("visibility");return"visible"===e}(t(e)))},t.extend(t.expr.pseudos,{focusable:function(e){return t.ui.focusable(e,null!=t.attr(e,"tabindex"))}}),t.ui.focusable,t.fn._form=function(){return"string"==typeof this[0].form?this.closest("form"):t(this[0].form)},t.ui.formResetMixin={_formResetHandler:function(){var e=t(this);setTimeout((function(){var i=e.data("ui-form-reset-instances");t.each(i,(function(){this.refresh()}))}))},_bindFormResetHandler:function(){var t;this.form=this.element._form(),this.form.length&&((t=this.form.data("ui-form-reset-instances")||[]).length||this.form.on("reset.ui-form-reset",this._formResetHandler),t.push(this),this.form.data("ui-form-reset-instances",t))},_unbindFormResetHandler:function(){var e;this.form.length&&((e=this.form.data("ui-form-reset-instances")).splice(t.inArray(this,e),1),e.length?this.form.data("ui-form-reset-instances",e):this.form.removeData("ui-form-reset-instances").off("reset.ui-form-reset"))}},t.expr.pseudos||(t.expr.pseudos=t.expr[":"]),t.uniqueSort||(t.uniqueSort=t.unique),t.escapeSelector||(W=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,F=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},t.escapeSelector=function(t){return(t+"").replace(W,F)}),t.fn.even&&t.fn.odd||t.fn.extend({even:function(){return this.filter((function(t){return t%2==0}))},odd:function(){return this.filter((function(t){return t%2==1}))}}),t.ui.keyCode={BACKSPACE:8,COMMA:188,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,LEFT:37,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SPACE:32,TAB:9,UP:38},t.fn.labels=function(){var e,i,n;return this.length?this[0].labels&&this[0].labels.length?this.pushStack(this[0].labels):(i=this.eq(0).parents("label"),(e=this.attr("id"))&&(n=(n=this.eq(0).parents().last()).add((n.length?n:this).siblings()),e="label[for='"+t.escapeSelector(e)+"']",i=i.add(n.find(e).addBack(e))),this.pushStack(i)):this.pushStack([])},t.fn.scrollParent=function(e){var i=this.css("position"),n="absolute"===i,s=e?/(auto|scroll|hidden)/:/(auto|scroll)/;e=this.parents().filter((function(){var e=t(this);return(!n||"static"!==e.css("position"))&&s.test(e.css("overflow")+e.css("overflow-y")+e.css("overflow-x"))})).eq(0);return"fixed"!==i&&e.length?e:t(this[0].ownerDocument||document)},t.extend(t.expr.pseudos,{tabbable:function(e){var i=t.attr(e,"tabindex"),n=null!=i;return(!n||0<=i)&&t.ui.focusable(e,n)}}),t.fn.extend({uniqueId:(U=0,function(){return this.each((function(){this.id||(this.id="ui-id-"+ ++U)}))}),removeUniqueId:function(){return this.each((function(){/^ui-id-\d+$/.test(this.id)&&t(this).removeAttr("id")}))}}),t.widget("ui.accordion",{version:"1.13.2",options:{active:0,animate:{},classes:{"ui-accordion-header":"ui-corner-top","ui-accordion-header-collapsed":"ui-corner-all","ui-accordion-content":"ui-corner-bottom"},collapsible:!1,event:"click",header:function(t){return t.find("> li > :first-child").add(t.find("> :not(li)").even())},heightStyle:"auto",icons:{activeHeader:"ui-icon-triangle-1-s",header:"ui-icon-triangle-1-e"},activate:null,beforeActivate:null},hideProps:{borderTopWidth:"hide",borderBottomWidth:"hide",paddingTop:"hide",paddingBottom:"hide",height:"hide"},showProps:{borderTopWidth:"show",borderBottomWidth:"show",paddingTop:"show",paddingBottom:"show",height:"show"},_create:function(){var e=this.options;this.prevShow=this.prevHide=t(),this._addClass("ui-accordion","ui-widget ui-helper-reset"),this.element.attr("role","tablist"),e.collapsible||!1!==e.active&&null!=e.active||(e.active=0),this._processPanels(),e.active<0&&(e.active+=this.headers.length),this._refresh()},_getCreateEventData:function(){return{header:this.active,panel:this.active.length?this.active.next():t()}},_createIcons:function(){var e,i=this.options.icons;i&&(e=t("<span>"),this._addClass(e,"ui-accordion-header-icon","ui-icon "+i.header),e.prependTo(this.headers),e=this.active.children(".ui-accordion-header-icon"),this._removeClass(e,i.header)._addClass(e,null,i.activeHeader)._addClass(this.headers,"ui-accordion-icons"))},_destroyIcons:function(){this._removeClass(this.headers,"ui-accordion-icons"),this.headers.children(".ui-accordion-header-icon").remove()},_destroy:function(){var t;this.element.removeAttr("role"),this.headers.removeAttr("role aria-expanded aria-selected aria-controls tabIndex").removeUniqueId(),this._destroyIcons(),t=this.headers.next().css("display","").removeAttr("role aria-hidden aria-labelledby").removeUniqueId(),"content"!==this.options.heightStyle&&t.css("height","")},_setOption:function(t,e){"active"!==t?("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())):this._activate(e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t),this._toggleClass(this.headers.add(this.headers.next()),null,"ui-state-disabled",!!t)},_keydown:function(e){if(!e.altKey&&!e.ctrlKey){var i=t.ui.keyCode,n=this.headers.length,s=this.headers.index(e.target),o=!1;switch(e.keyCode){case i.RIGHT:case i.DOWN:o=this.headers[(s+1)%n];break;case i.LEFT:case i.UP:o=this.headers[(s-1+n)%n];break;case i.SPACE:case i.ENTER:this._eventHandler(e);break;case i.HOME:o=this.headers[0];break;case i.END:o=this.headers[n-1]}o&&(t(e.target).attr("tabIndex",-1),t(o).attr("tabIndex",0),t(o).trigger("focus"),e.preventDefault())}},_panelKeyDown:function(e){e.keyCode===t.ui.keyCode.UP&&e.ctrlKey&&t(e.currentTarget).prev().trigger("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(){var t=this.headers,e=this.panels;"function"==typeof this.options.header?this.headers=this.options.header(this.element):this.headers=this.element.find(this.options.header),this._addClass(this.headers,"ui-accordion-header ui-accordion-header-collapsed","ui-state-default"),this.panels=this.headers.next().filter(":not(.ui-accordion-content-active)").hide(),this._addClass(this.panels,"ui-accordion-content","ui-helper-reset ui-widget-content"),e&&(this._off(t.not(this.headers)),this._off(e.not(this.panels)))},_refresh:function(){var e,i=this.options,n=i.heightStyle,s=this.element.parent();this.active=this._findActive(i.active),this._addClass(this.active,"ui-accordion-header-active","ui-state-active")._removeClass(this.active,"ui-accordion-header-collapsed"),this._addClass(this.active.next(),"ui-accordion-content-active"),this.active.next().show(),this.headers.attr("role","tab").each((function(){var e=t(this),i=e.uniqueId().attr("id"),n=e.next(),s=n.uniqueId().attr("id");e.attr("aria-controls",s),n.attr("aria-labelledby",i)})).next().attr("role","tabpanel"),this.headers.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}).next().attr({"aria-hidden":"true"}).hide(),this.active.length?this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}).next().attr({"aria-hidden":"false"}):this.headers.eq(0).attr("tabIndex",0),this._createIcons(),this._setupEvents(i.event),"fill"===n?(e=s.height(),this.element.siblings(":visible").each((function(){var i=t(this),n=i.css("position");"absolute"!==n&&"fixed"!==n&&(e-=i.outerHeight(!0))})),this.headers.each((function(){e-=t(this).outerHeight(!0)})),this.headers.next().each((function(){t(this).height(Math.max(0,e-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===n&&(e=0,this.headers.next().each((function(){var i=t(this).is(":visible");i||t(this).show(),e=Math.max(e,t(this).css("height","").height()),i||t(this).hide()})).height(e))},_activate:function(e){(e=this._findActive(e)[0])!==this.active[0]&&(e=e||this.active[0],this._eventHandler({target:e,currentTarget:e,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,s=t(e.currentTarget),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():s.next(),l=n.next();a={oldHeader:n,oldPanel:l,newHeader:r?t():s,newPanel:a};e.preventDefault(),o&&!i.collapsible||!1===this._trigger("beforeActivate",e,a)||(i.active=!r&&this.headers.index(s),this.active=o?t():s,this._toggle(a),this._removeClass(n,"ui-accordion-header-active","ui-state-active"),i.icons&&(n=n.children(".ui-accordion-header-icon"),this._removeClass(n,null,i.icons.activeHeader)._addClass(n,null,i.icons.header)),o||(this._removeClass(s,"ui-accordion-header-collapsed")._addClass(s,"ui-accordion-header-active","ui-state-active"),i.icons&&(o=s.children(".ui-accordion-header-icon"),this._removeClass(o,null,i.icons.header)._addClass(o,null,i.icons.activeHeader)),this._addClass(s.next(),"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-hidden":"true"}),n.prev().attr({"aria-selected":"false","aria-expanded":"false"}),i.length&&n.length?n.prev().attr({tabIndex:-1,"aria-expanded":"false"}):i.length&&this.headers.filter((function(){return 0===parseInt(t(this).attr("tabIndex"),10)})).attr("tabIndex",-1),i.attr("aria-hidden","false").prev().attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_animate:function(t,e,i){var n,s,o,r=this,a=0,l=t.css("box-sizing"),c=t.length&&(!e.length||t.index()<e.index()),u=this.options.animate||{},h=c&&u.down||u;c=function(){r._toggleComplete(i)};return s=(s="string"==typeof h?h:s)||h.easing||u.easing,o=(o="number"==typeof h?h:o)||h.duration||u.duration,e.length?t.length?(n=t.show().outerHeight(),e.animate(this.hideProps,{duration:o,easing:s,step:function(t,e){e.now=Math.round(t)}}),void t.hide().animate(this.showProps,{duration:o,easing:s,complete:c,step:function(t,i){i.now=Math.round(t),"height"!==i.prop?"content-box"===l&&(a+=i.now):"content"!==r.options.heightStyle&&(i.now=Math.round(n-e.outerHeight()-a),a=0)}})):e.animate(this.hideProps,o,s,c):t.animate(this.showProps,o,s,c)},_toggleComplete:function(t){var e=t.oldPanel,i=e.prev();this._removeClass(e,"ui-accordion-content-active"),this._removeClass(i,"ui-accordion-header-active")._addClass(i,"ui-accordion-header-collapsed"),e.length&&(e.parent()[0].className=e.parent()[0].className),this._trigger("activate",null,t)}}),t.ui.safeActiveElement=function(t){var e;try{e=t.activeElement}catch(i){e=t.body}return(e=e||t.body).nodeName?e:t.body},t.widget("ui.menu",{version:"1.13.2",defaultElement:"<ul>",delay:300,options:{icons:{submenu:"ui-icon-caret-1-e"},items:"> *",menus:"ul",position:{my:"left top",at:"right top"},role:"menu",blur:null,focus:null,select:null},_create:function(){this.activeMenu=this.element,this.mouseHandled=!1,this.lastMousePosition={x:null,y:null},this.element.uniqueId().attr({role:this.options.role,tabIndex:0}),this._addClass("ui-menu","ui-widget ui-widget-content"),this._on({"mousedown .ui-menu-item":function(t){t.preventDefault(),this._activateItem(t)},"click .ui-menu-item":function(e){var i=t(e.target),n=t(t.ui.safeActiveElement(this.document[0]));!this.mouseHandled&&i.not(".ui-state-disabled").length&&(this.select(e),e.isPropagationStopped()||(this.mouseHandled=!0),i.has(".ui-menu").length?this.expand(e):!this.element.is(":focus")&&n.closest(".ui-menu").length&&(this.element.trigger("focus",[!0]),this.active&&1===this.active.parents(".ui-menu").length&&clearTimeout(this.timer)))},"mouseenter .ui-menu-item":"_activateItem","mousemove .ui-menu-item":"_activateItem",mouseleave:"collapseAll","mouseleave .ui-menu":"collapseAll",focus:function(t,e){var i=this.active||this._menuItems().first();e||this.focus(t,i)},blur:function(e){this._delay((function(){t.contains(this.element[0],t.ui.safeActiveElement(this.document[0]))||this.collapseAll(e)}))},keydown:"_keydown"}),this.refresh(),this._on(this.document,{click:function(t){this._closeOnDocumentClick(t)&&this.collapseAll(t,!0),this.mouseHandled=!1}})},_activateItem:function(e){var i,n;this.previousFilter||e.clientX===this.lastMousePosition.x&&e.clientY===this.lastMousePosition.y||(this.lastMousePosition={x:e.clientX,y:e.clientY},i=t(e.target).closest(".ui-menu-item"),n=t(e.currentTarget),i[0]===n[0]&&(n.is(".ui-state-active")||(this._removeClass(n.siblings().children(".ui-state-active"),null,"ui-state-active"),this.focus(e,n))))},_destroy:function(){var e=this.element.find(".ui-menu-item").removeAttr("role aria-disabled").children(".ui-menu-item-wrapper").removeUniqueId().removeAttr("tabIndex role aria-haspopup");this.element.removeAttr("aria-activedescendant").find(".ui-menu").addBack().removeAttr("role aria-labelledby aria-expanded aria-hidden aria-disabled tabIndex").removeUniqueId().show(),e.children().each((function(){var e=t(this);e.data("ui-menu-submenu-caret")&&e.remove()}))},_keydown:function(e){var i,n,s,o=!0;switch(e.keyCode){case t.ui.keyCode.PAGE_UP:this.previousPage(e);break;case t.ui.keyCode.PAGE_DOWN:this.nextPage(e);break;case t.ui.keyCode.HOME:this._move("first","first",e);break;case t.ui.keyCode.END:this._move("last","last",e);break;case t.ui.keyCode.UP:this.previous(e);break;case t.ui.keyCode.DOWN:this.next(e);break;case t.ui.keyCode.LEFT:this.collapse(e);break;case t.ui.keyCode.RIGHT:this.active&&!this.active.is(".ui-state-disabled")&&this.expand(e);break;case t.ui.keyCode.ENTER:case t.ui.keyCode.SPACE:this._activate(e);break;case t.ui.keyCode.ESCAPE:this.collapse(e);break;default:i=this.previousFilter||"",s=o=!1,n=96<=e.keyCode&&e.keyCode<=105?(e.keyCode-96).toString():String.fromCharCode(e.keyCode),clearTimeout(this.filterTimer),n===i?s=!0:n=i+n,i=this._filterMenuItems(n),(i=s&&-1!==i.index(this.active.next())?this.active.nextAll(".ui-menu-item"):i).length||(n=String.fromCharCode(e.keyCode),i=this._filterMenuItems(n)),i.length?(this.focus(e,i),this.previousFilter=n,this.filterTimer=this._delay((function(){delete this.previousFilter}),1e3)):delete this.previousFilter}o&&e.preventDefault()},_activate:function(t){this.active&&!this.active.is(".ui-state-disabled")&&(this.active.children("[aria-haspopup='true']").length?this.expand(t):this.select(t))},refresh:function(){var e,i,n=this,s=this.options.icons.submenu,o=this.element.find(this.options.menus);this._toggleClass("ui-menu-icons",null,!!this.element.find(".ui-icon").length),i=o.filter(":not(.ui-menu)").hide().attr({role:this.options.role,"aria-hidden":"true","aria-expanded":"false"}).each((function(){var e=t(this),i=e.prev(),o=t("<span>").data("ui-menu-submenu-caret",!0);n._addClass(o,"ui-menu-icon","ui-icon "+s),i.attr("aria-haspopup","true").prepend(o),e.attr("aria-labelledby",i.attr("id"))})),this._addClass(i,"ui-menu","ui-widget ui-widget-content ui-front"),(e=o.add(this.element).find(this.options.items)).not(".ui-menu-item").each((function(){var e=t(this);n._isDivider(e)&&n._addClass(e,"ui-menu-divider","ui-widget-content")})),o=(i=e.not(".ui-menu-item, .ui-menu-divider")).children().not(".ui-menu").uniqueId().attr({tabIndex:-1,role:this._itemRole()}),this._addClass(i,"ui-menu-item")._addClass(o,"ui-menu-item-wrapper"),e.filter(".ui-state-disabled").attr("aria-disabled","true"),this.active&&!t.contains(this.element[0],this.active[0])&&this.blur()},_itemRole:function(){return{menu:"menuitem",listbox:"option"}[this.options.role]},_setOption:function(t,e){var i;"icons"===t&&(i=this.element.find(".ui-menu-icon"),this._removeClass(i,null,this.options.icons.submenu)._addClass(i,null,e.submenu)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",String(t)),this._toggleClass(null,"ui-state-disabled",!!t)},focus:function(t,e){var i;this.blur(t,t&&"focus"===t.type),this._scrollIntoView(e),this.active=e.first(),i=this.active.children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),this.options.role&&this.element.attr("aria-activedescendant",i.attr("id")),i=this.active.parent().closest(".ui-menu-item").children(".ui-menu-item-wrapper"),this._addClass(i,null,"ui-state-active"),t&&"keydown"===t.type?this._close():this.timer=this._delay((function(){this._close()}),this.delay),(i=e.children(".ui-menu")).length&&t&&/^mouse/.test(t.type)&&this._startOpening(i),this.activeMenu=e.parent(),this._trigger("focus",t,{item:e})},_scrollIntoView:function(e){var i,n,s;this._hasScroll()&&(n=parseFloat(t.css(this.activeMenu[0],"borderTopWidth"))||0,s=parseFloat(t.css(this.activeMenu[0],"paddingTop"))||0,i=e.offset().top-this.activeMenu.offset().top-n-s,n=this.activeMenu.scrollTop(),s=this.activeMenu.height(),e=e.outerHeight(),i<0?this.activeMenu.scrollTop(n+i):s<i+e&&this.activeMenu.scrollTop(n+i-s+e))},blur:function(t,e){e||clearTimeout(this.timer),this.active&&(this._removeClass(this.active.children(".ui-menu-item-wrapper"),null,"ui-state-active"),this._trigger("blur",t,{item:this.active}),this.active=null)},_startOpening:function(t){clearTimeout(this.timer),"true"===t.attr("aria-hidden")&&(this.timer=this._delay((function(){this._close(),this._open(t)}),this.delay))},_open:function(e){var i=t.extend({of:this.active},this.options.position);clearTimeout(this.timer),this.element.find(".ui-menu").not(e.parents(".ui-menu")).hide().attr("aria-hidden","true"),e.show().removeAttr("aria-hidden").attr("aria-expanded","true").position(i)},collapseAll:function(e,i){clearTimeout(this.timer),this.timer=this._delay((function(){var n=i?this.element:t(e&&e.target).closest(this.element.find(".ui-menu"));n.length||(n=this.element),this._close(n),this.blur(e),this._removeClass(n.find(".ui-state-active"),null,"ui-state-active"),this.activeMenu=n}),i?0:this.delay)},_close:function(t){(t=t||(this.active?this.active.parent():this.element)).find(".ui-menu").hide().attr("aria-hidden","true").attr("aria-expanded","false")},_closeOnDocumentClick:function(e){return!t(e.target).closest(".ui-menu").length},_isDivider:function(t){return!/[^\-\u2014\u2013\s]/.test(t.text())},collapse:function(t){var e=this.active&&this.active.parent().closest(".ui-menu-item",this.element);e&&e.length&&(this._close(),this.focus(t,e))},expand:function(t){var e=this.active&&this._menuItems(this.active.children(".ui-menu")).first();e&&e.length&&(this._open(e.parent()),this._delay((function(){this.focus(t,e)})))},next:function(t){this._move("next","first",t)},previous:function(t){this._move("prev","last",t)},isFirstItem:function(){return this.active&&!this.active.prevAll(".ui-menu-item").length},isLastItem:function(){return this.active&&!this.active.nextAll(".ui-menu-item").length},_menuItems:function(t){return(t||this.element).find(this.options.items).filter(".ui-menu-item")},_move:function(t,e,i){var n;(n=this.active?"first"===t||"last"===t?this.active["first"===t?"prevAll":"nextAll"](".ui-menu-item").last():this.active[t+"All"](".ui-menu-item").first():n)&&n.length&&this.active||(n=this._menuItems(this.activeMenu)[e]()),this.focus(i,n)},nextPage:function(e){var i,n,s;this.active?this.isLastItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.nextAll(".ui-menu-item").each((function(){return(i=t(this)).offset().top-n-s<0})),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu)[this.active?"last":"first"]())):this.next(e)},previousPage:function(e){var i,n,s;this.active?this.isFirstItem()||(this._hasScroll()?(n=this.active.offset().top,s=this.element.innerHeight(),0===t.fn.jquery.indexOf("3.2.")&&(s+=this.element[0].offsetHeight-this.element.outerHeight()),this.active.prevAll(".ui-menu-item").each((function(){return 0<(i=t(this)).offset().top-n+s})),this.focus(e,i)):this.focus(e,this._menuItems(this.activeMenu).first())):this.next(e)},_hasScroll:function(){return this.element.outerHeight()<this.element.prop("scrollHeight")},select:function(e){this.active=this.active||t(e.target).closest(".ui-menu-item");var i={item:this.active};this.active.has(".ui-menu").length||this.collapseAll(e,!0),this._trigger("select",e,i)},_filterMenuItems:function(e){e=e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&");var i=new RegExp("^"+e,"i");return this.activeMenu.find(this.options.items).filter(".ui-menu-item").filter((function(){return i.test(String.prototype.trim.call(t(this).children(".ui-menu-item-wrapper").text()))}))}}),t.widget("ui.autocomplete",{version:"1.13.2",defaultElement:"<input>",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},requestIndex:0,pending:0,liveRegionTimer:null,_create:function(){var e,i,n,s="textarea"===(o=this.element[0].nodeName.toLowerCase()),o="input"===o;this.isMultiLine=s||!o&&this._isContentEditable(this.element),this.valueMethod=this.element[s||o?"val":"text"],this.isNewMenu=!0,this._addClass("ui-autocomplete-input"),this.element.attr("autocomplete","off"),this._on(this.element,{keydown:function(s){if(this.element.prop("readOnly"))i=n=e=!0;else{i=n=e=!1;var o=t.ui.keyCode;switch(s.keyCode){case o.PAGE_UP:e=!0,this._move("previousPage",s);break;case o.PAGE_DOWN:e=!0,this._move("nextPage",s);break;case o.UP:e=!0,this._keyEvent("previous",s);break;case o.DOWN:e=!0,this._keyEvent("next",s);break;case o.ENTER:this.menu.active&&(e=!0,s.preventDefault(),this.menu.select(s));break;case o.TAB:this.menu.active&&this.menu.select(s);break;case o.ESCAPE:this.menu.element.is(":visible")&&(this.isMultiLine||this._value(this.term),this.close(s),s.preventDefault());break;default:i=!0,this._searchTimeout(s)}}},keypress:function(n){if(e)return e=!1,void(this.isMultiLine&&!this.menu.element.is(":visible")||n.preventDefault());if(!i){var s=t.ui.keyCode;switch(n.keyCode){case s.PAGE_UP:this._move("previousPage",n);break;case s.PAGE_DOWN:this._move("nextPage",n);break;case s.UP:this._keyEvent("previous",n);break;case s.DOWN:this._keyEvent("next",n)}}},input:function(t){if(n)return n=!1,void t.preventDefault();this._searchTimeout(t)},focus:function(){this.selectedItem=null,this.previous=this._value()},blur:function(t){clearTimeout(this.searching),this.close(t),this._change(t)}}),this._initSource(),this.menu=t("<ul>").appendTo(this._appendTo()).menu({role:null}).hide().attr({unselectable:"on"}).menu("instance"),this._addClass(this.menu.element,"ui-autocomplete","ui-front"),this._on(this.menu.element,{mousedown:function(t){t.preventDefault()},menufocus:function(e,i){var n,s;if(this.isNewMenu&&(this.isNewMenu=!1,e.originalEvent&&/^mouse/.test(e.originalEvent.type)))return this.menu.blur(),void this.document.one("mousemove",(function(){t(e.target).trigger(e.originalEvent)}));s=i.item.data("ui-autocomplete-item"),!1!==this._trigger("focus",e,{item:s})&&e.originalEvent&&/^key/.test(e.originalEvent.type)&&this._value(s.value),(n=i.item.attr("aria-label")||s.value)&&String.prototype.trim.call(n).length&&(clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(n))}),100))},menuselect:function(e,i){var n=i.item.data("ui-autocomplete-item"),s=this.previous;this.element[0]!==t.ui.safeActiveElement(this.document[0])&&(this.element.trigger("focus"),this.previous=s,this._delay((function(){this.previous=s,this.selectedItem=n}))),!1!==this._trigger("select",e,{item:n})&&this._value(n.value),this.term=this._value(),this.close(e),this.selectedItem=n}}),this.liveRegion=t("<div>",{role:"status","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_destroy:function(){clearTimeout(this.searching),this.element.removeAttr("autocomplete"),this.menu.element.remove(),this.liveRegion.remove()},_setOption:function(t,e){this._super(t,e),"source"===t&&this._initSource(),"appendTo"===t&&this.menu.element.appendTo(this._appendTo()),"disabled"===t&&e&&this.xhr&&this.xhr.abort()},_isEventTargetInWidget:function(e){var i=this.menu.element[0];return e.target===this.element[0]||e.target===i||t.contains(i,e.target)},_closeOnClickOutside:function(t){this._isEventTargetInWidget(t)||this.close()},_appendTo:function(){var e=this.options.appendTo;return(e=(e=e&&(e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_initSource:function(){var e,i,n=this;Array.isArray(this.options.source)?(e=this.options.source,this.source=function(i,n){n(t.ui.autocomplete.filter(e,i.term))}):"string"==typeof this.options.source?(i=this.options.source,this.source=function(e,s){n.xhr&&n.xhr.abort(),n.xhr=t.ajax({url:i,data:e,dataType:"json",success:function(t){s(t)},error:function(){s([])}})}):this.source=this.options.source},_searchTimeout:function(t){clearTimeout(this.searching),this.searching=this._delay((function(){var e=this.term===this._value(),i=this.menu.element.is(":visible"),n=t.altKey||t.ctrlKey||t.metaKey||t.shiftKey;e&&(i||n)||(this.selectedItem=null,this.search(null,t))}),this.options.delay)},search:function(t,e){return t=null!=t?t:this._value(),this.term=this._value(),t.length<this.options.minLength?this.close(e):!1!==this._trigger("search",e)?this._search(t):void 0},_search:function(t){this.pending++,this._addClass("ui-autocomplete-loading"),this.cancelSearch=!1,this.source({term:t},this._response())},_response:function(){var t=++this.requestIndex;return function(e){t===this.requestIndex&&this.__response(e),this.pending--,this.pending||this._removeClass("ui-autocomplete-loading")}.bind(this)},__response:function(t){t=t&&this._normalize(t),this._trigger("response",null,{content:t}),!this.options.disabled&&t&&t.length&&!this.cancelSearch?(this._suggest(t),this._trigger("open")):this._close()},close:function(t){this.cancelSearch=!0,this._close(t)},_close:function(t){this._off(this.document,"mousedown"),this.menu.element.is(":visible")&&(this.menu.element.hide(),this.menu.blur(),this.isNewMenu=!0,this._trigger("close",t))},_change:function(t){this.previous!==this._value()&&this._trigger("change",t,{item:this.selectedItem})},_normalize:function(e){return e.length&&e[0].label&&e[0].value?e:t.map(e,(function(e){return"string"==typeof e?{label:e,value:e}:t.extend({},e,{label:e.label||e.value,value:e.value||e.label})}))},_suggest:function(e){var i=this.menu.element.empty();this._renderMenu(i,e),this.isNewMenu=!0,this.menu.refresh(),i.show(),this._resizeMenu(),i.position(t.extend({of:this.element},this.options.position)),this.options.autoFocus&&this.menu.next(),this._on(this.document,{mousedown:"_closeOnClickOutside"})},_resizeMenu:function(){var t=this.menu.element;t.outerWidth(Math.max(t.width("").outerWidth()+1,this.element.outerWidth()))},_renderMenu:function(e,i){var n=this;t.each(i,(function(t,i){n._renderItemData(e,i)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-autocomplete-item",e)},_renderItem:function(e,i){return t("<li>").append(t("<div>").text(i.label)).appendTo(e)},_move:function(t,e){if(this.menu.element.is(":visible"))return this.menu.isFirstItem()&&/^previous/.test(t)||this.menu.isLastItem()&&/^next/.test(t)?(this.isMultiLine||this._value(this.term),void this.menu.blur()):void this.menu[t](e);this.search(null,e)},widget:function(){return this.menu.element},_value:function(){return this.valueMethod.apply(this.element,arguments)},_keyEvent:function(t,e){this.isMultiLine&&!this.menu.element.is(":visible")||(this._move(t,e),e.preventDefault())},_isContentEditable:function(t){if(!t.length)return!1;var e=t.prop("contentEditable");return"inherit"===e?this._isContentEditable(t.parent()):"true"===e}}),t.extend(t.ui.autocomplete,{escapeRegex:function(t){return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")},filter:function(e,i){var n=new RegExp(t.ui.autocomplete.escapeRegex(i),"i");return t.grep(e,(function(t){return n.test(t.label||t.value||t)}))}}),t.widget("ui.autocomplete",t.ui.autocomplete,{options:{messages:{noResults:"No search results.",results:function(t){return t+(1<t?" results are":" result is")+" available, use up and down arrow keys to navigate."}}},__response:function(e){var i;this._superApply(arguments),this.options.disabled||this.cancelSearch||(i=e&&e.length?this.options.messages.results(e.length):this.options.messages.noResults,clearTimeout(this.liveRegionTimer),this.liveRegionTimer=this._delay((function(){this.liveRegion.html(t("<div>").text(i))}),100))}}),t.ui.autocomplete;var tt,et,it=/ui-corner-([a-z]){2,6}/g;function nt(){this._curInst=null,this._keyEvent=!1,this._disabledInputs=[],this._datepickerShowing=!1,this._inDialog=!1,this._mainDivId="ui-datepicker-div",this._inlineClass="ui-datepicker-inline",this._appendClass="ui-datepicker-append",this._triggerClass="ui-datepicker-trigger",this._dialogClass="ui-datepicker-dialog",this._disableClass="ui-datepicker-disabled",this._unselectableClass="ui-datepicker-unselectable",this._currentClass="ui-datepicker-current-day",this._dayOverClass="ui-datepicker-days-cell-over",this.regional=[],this.regional[""]={closeText:"Done",prevText:"Prev",nextText:"Next",currentText:"Today",monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],weekHeader:"Wk",dateFormat:"mm/dd/yy",firstDay:0,isRTL:!1,showMonthAfterYear:!1,yearSuffix:"",selectMonthLabel:"Select month",selectYearLabel:"Select year"},this._defaults={showOn:"focus",showAnim:"fadeIn",showOptions:{},defaultDate:null,appendText:"",buttonText:"...",buttonImage:"",buttonImageOnly:!1,hideIfNoPrevNext:!1,navigationAsDateFormat:!1,gotoCurrent:!1,changeMonth:!1,changeYear:!1,yearRange:"c-10:c+10",showOtherMonths:!1,selectOtherMonths:!1,showWeek:!1,calculateWeek:this.iso8601Week,shortYearCutoff:"+10",minDate:null,maxDate:null,duration:"fast",beforeShowDay:null,beforeShow:null,onSelect:null,onChangeMonthYear:null,onClose:null,onUpdateDatepicker:null,numberOfMonths:1,showCurrentAtPos:0,stepMonths:1,stepBigMonths:12,altField:"",altFormat:"",constrainInput:!0,showButtonPanel:!1,autoSize:!1,disabled:!1},t.extend(this._defaults,this.regional[""]),this.regional.en=t.extend(!0,{},this.regional[""]),this.regional["en-US"]=t.extend(!0,{},this.regional.en),this.dpDiv=st(t("<div id='"+this._mainDivId+"' class='ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>"))}function st(e){var i="button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a";return e.on("mouseout",i,(function(){t(this).removeClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).removeClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).removeClass("ui-datepicker-next-hover")})).on("mouseover",i,ot)}function ot(){t.datepicker._isDisabledDatepicker((et.inline?et.dpDiv.parent():et.input)[0])||(t(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover"),t(this).addClass("ui-state-hover"),-1!==this.className.indexOf("ui-datepicker-prev")&&t(this).addClass("ui-datepicker-prev-hover"),-1!==this.className.indexOf("ui-datepicker-next")&&t(this).addClass("ui-datepicker-next-hover"))}function rt(e,i){for(var n in t.extend(e,i),i)null==i[n]&&(e[n]=i[n]);return e}t.widget("ui.controlgroup",{version:"1.13.2",defaultElement:"<div>",options:{direction:"horizontal",disabled:null,onlyVisible:!0,items:{button:"input[type=button], input[type=submit], input[type=reset], button, a",controlgroupLabel:".ui-controlgroup-label",checkboxradio:"input[type='checkbox'], input[type='radio']",selectmenu:"select",spinner:".ui-spinner-input"}},_create:function(){this._enhance()},_enhance:function(){this.element.attr("role","toolbar"),this.refresh()},_destroy:function(){this._callChildMethod("destroy"),this.childWidgets.removeData("ui-controlgroup-data"),this.element.removeAttr("role"),this.options.items.controlgroupLabel&&this.element.find(this.options.items.controlgroupLabel).find(".ui-controlgroup-label-contents").contents().unwrap()},_initWidgets:function(){var e=this,i=[];t.each(this.options.items,(function(n,s){var o,r={};if(s)return"controlgroupLabel"===n?((o=e.element.find(s)).each((function(){var e=t(this);e.children(".ui-controlgroup-label-contents").length||e.contents().wrapAll("<span class='ui-controlgroup-label-contents'></span>")})),e._addClass(o,null,"ui-widget ui-widget-content ui-state-default"),void(i=i.concat(o.get()))):void(t.fn[n]&&(r=e["_"+n+"Options"]?e["_"+n+"Options"]("middle"):{classes:{}},e.element.find(s).each((function(){var s=t(this),o=s[n]("instance"),a=t.widget.extend({},r);"button"===n&&s.parent(".ui-spinner").length||((o=o||s[n]()[n]("instance"))&&(a.classes=e._resolveClassesValues(a.classes,o)),s[n](a),a=s[n]("widget"),t.data(a[0],"ui-controlgroup-data",o||s[n]("instance")),i.push(a[0]))}))))})),this.childWidgets=t(t.uniqueSort(i)),this._addClass(this.childWidgets,"ui-controlgroup-item")},_callChildMethod:function(e){this.childWidgets.each((function(){var i=t(this).data("ui-controlgroup-data");i&&i[e]&&i[e]()}))},_updateCornerClass:function(t,e){e=this._buildSimpleOptions(e,"label").classes.label,this._removeClass(t,null,"ui-corner-top ui-corner-bottom ui-corner-left ui-corner-right ui-corner-all"),this._addClass(t,null,e)},_buildSimpleOptions:function(t,e){var i="vertical"===this.options.direction,n={classes:{}};return n.classes[e]={middle:"",first:"ui-corner-"+(i?"top":"left"),last:"ui-corner-"+(i?"bottom":"right"),only:"ui-corner-all"}[t],n},_spinnerOptions:function(t){return(t=this._buildSimpleOptions(t,"ui-spinner")).classes["ui-spinner-up"]="",t.classes["ui-spinner-down"]="",t},_buttonOptions:function(t){return this._buildSimpleOptions(t,"ui-button")},_checkboxradioOptions:function(t){return this._buildSimpleOptions(t,"ui-checkboxradio-label")},_selectmenuOptions:function(t){var e="vertical"===this.options.direction;return{width:e&&"auto",classes:{middle:{"ui-selectmenu-button-open":"","ui-selectmenu-button-closed":""},first:{"ui-selectmenu-button-open":"ui-corner-"+(e?"top":"tl"),"ui-selectmenu-button-closed":"ui-corner-"+(e?"top":"left")},last:{"ui-selectmenu-button-open":e?"":"ui-corner-tr","ui-selectmenu-button-closed":"ui-corner-"+(e?"bottom":"right")},only:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"}}[t]}},_resolveClassesValues:function(e,i){var n={};return t.each(e,(function(t){var s=i.options.classes[t]||"";s=String.prototype.trim.call(s.replace(it,""));n[t]=(s+" "+e[t]).replace(/\s+/g," ")})),n},_setOption:function(t,e){"direction"===t&&this._removeClass("ui-controlgroup-"+this.options.direction),this._super(t,e),"disabled"!==t?this.refresh():this._callChildMethod(e?"disable":"enable")},refresh:function(){var e,i=this;this._addClass("ui-controlgroup ui-controlgroup-"+this.options.direction),"horizontal"===this.options.direction&&this._addClass(null,"ui-helper-clearfix"),this._initWidgets(),e=this.childWidgets,(e=this.options.onlyVisible?e.filter(":visible"):e).length&&(t.each(["first","last"],(function(t,n){var s,o=e[n]().data("ui-controlgroup-data");o&&i["_"+o.widgetName+"Options"]?((s=i["_"+o.widgetName+"Options"](1===e.length?"only":n)).classes=i._resolveClassesValues(s.classes,o),o.element[o.widgetName](s)):i._updateCornerClass(e[n](),n)})),this._callChildMethod("refresh"))}}),t.widget("ui.checkboxradio",[t.ui.formResetMixin,{version:"1.13.2",options:{disabled:null,label:null,icon:!0,classes:{"ui-checkboxradio-label":"ui-corner-all","ui-checkboxradio-icon":"ui-corner-all"}},_getCreateOptions:function(){var e,i=this._super()||{};return this._readType(),e=this.element.labels(),this.label=t(e[e.length-1]),this.label.length||t.error("No label found for checkboxradio widget"),this.originalLabel="",(e=this.label.contents().not(this.element[0])).length&&(this.originalLabel+=e.clone().wrapAll("<div></div>").parent().html()),this.originalLabel&&(i.label=this.originalLabel),null!=(e=this.element[0].disabled)&&(i.disabled=e),i},_create:function(){var t=this.element[0].checked;this._bindFormResetHandler(),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled),this._setOption("disabled",this.options.disabled),this._addClass("ui-checkboxradio","ui-helper-hidden-accessible"),this._addClass(this.label,"ui-checkboxradio-label","ui-button ui-widget"),"radio"===this.type&&this._addClass(this.label,"ui-checkboxradio-radio-label"),this.options.label&&this.options.label!==this.originalLabel?this._updateLabel():this.originalLabel&&(this.options.label=this.originalLabel),this._enhance(),t&&this._addClass(this.label,"ui-checkboxradio-checked","ui-state-active"),this._on({change:"_toggleClasses",focus:function(){this._addClass(this.label,null,"ui-state-focus ui-visual-focus")},blur:function(){this._removeClass(this.label,null,"ui-state-focus ui-visual-focus")}})},_readType:function(){var e=this.element[0].nodeName.toLowerCase();this.type=this.element[0].type,"input"===e&&/radio|checkbox/.test(this.type)||t.error("Can't create checkboxradio on element.nodeName="+e+" and element.type="+this.type)},_enhance:function(){this._updateIcon(this.element[0].checked)},widget:function(){return this.label},_getRadioGroup:function(){var e=this.element[0].name,i="input[name='"+t.escapeSelector(e)+"']";return e?(this.form.length?t(this.form[0].elements).filter(i):t(i).filter((function(){return 0===t(this)._form().length}))).not(this.element):t([])},_toggleClasses:function(){var e=this.element[0].checked;this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",e),this.options.icon&&"checkbox"===this.type&&this._toggleClass(this.icon,null,"ui-icon-check ui-state-checked",e)._toggleClass(this.icon,null,"ui-icon-blank",!e),"radio"===this.type&&this._getRadioGroup().each((function(){var e=t(this).checkboxradio("instance");e&&e._removeClass(e.label,"ui-checkboxradio-checked","ui-state-active")}))},_destroy:function(){this._unbindFormResetHandler(),this.icon&&(this.icon.remove(),this.iconSpace.remove())},_setOption:function(t,e){if("label"!==t||e){if(this._super(t,e),"disabled"===t)return this._toggleClass(this.label,null,"ui-state-disabled",e),void(this.element[0].disabled=e);this.refresh()}},_updateIcon:function(e){var i="ui-icon ui-icon-background ";this.options.icon?(this.icon||(this.icon=t("<span>"),this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-checkboxradio-icon-space")),"checkbox"===this.type?(i+=e?"ui-icon-check ui-state-checked":"ui-icon-blank",this._removeClass(this.icon,null,e?"ui-icon-blank":"ui-icon-check")):i+="ui-icon-blank",this._addClass(this.icon,"ui-checkboxradio-icon",i),e||this._removeClass(this.icon,null,"ui-icon-check ui-state-checked"),this.icon.prependTo(this.label).after(this.iconSpace)):void 0!==this.icon&&(this.icon.remove(),this.iconSpace.remove(),delete this.icon)},_updateLabel:function(){var t=this.label.contents().not(this.element[0]);this.icon&&(t=t.not(this.icon[0])),(t=this.iconSpace?t.not(this.iconSpace[0]):t).remove(),this.label.append(this.options.label)},refresh:function(){var t=this.element[0].checked,e=this.element[0].disabled;this._updateIcon(t),this._toggleClass(this.label,"ui-checkboxradio-checked","ui-state-active",t),null!==this.options.label&&this._updateLabel(),e!==this.options.disabled&&this._setOptions({disabled:e})}}]),t.ui.checkboxradio,t.widget("ui.button",{version:"1.13.2",defaultElement:"<button>",options:{classes:{"ui-button":"ui-corner-all"},disabled:null,icon:null,iconPosition:"beginning",label:null,showLabel:!0},_getCreateOptions:function(){var t,e=this._super()||{};return this.isInput=this.element.is("input"),null!=(t=this.element[0].disabled)&&(e.disabled=t),this.originalLabel=this.isInput?this.element.val():this.element.html(),this.originalLabel&&(e.label=this.originalLabel),e},_create:function(){!this.option.showLabel&!this.options.icon&&(this.options.showLabel=!0),null==this.options.disabled&&(this.options.disabled=this.element[0].disabled||!1),this.hasTitle=!!this.element.attr("title"),this.options.label&&this.options.label!==this.originalLabel&&(this.isInput?this.element.val(this.options.label):this.element.html(this.options.label)),this._addClass("ui-button","ui-widget"),this._setOption("disabled",this.options.disabled),this._enhance(),this.element.is("a")&&this._on({keyup:function(e){e.keyCode===t.ui.keyCode.SPACE&&(e.preventDefault(),this.element[0].click?this.element[0].click():this.element.trigger("click"))}})},_enhance:function(){this.element.is("button")||this.element.attr("role","button"),this.options.icon&&(this._updateIcon("icon",this.options.icon),this._updateTooltip())},_updateTooltip:function(){this.title=this.element.attr("title"),this.options.showLabel||this.title||this.element.attr("title",this.options.label)},_updateIcon:function(e,i){var n="iconPosition"!==e,s=n?this.options.iconPosition:i;e="top"===s||"bottom"===s;this.icon?n&&this._removeClass(this.icon,null,this.options.icon):(this.icon=t("<span>"),this._addClass(this.icon,"ui-button-icon","ui-icon"),this.options.showLabel||this._addClass("ui-button-icon-only")),n&&this._addClass(this.icon,null,i),this._attachIcon(s),e?(this._addClass(this.icon,null,"ui-widget-icon-block"),this.iconSpace&&this.iconSpace.remove()):(this.iconSpace||(this.iconSpace=t("<span> </span>"),this._addClass(this.iconSpace,"ui-button-icon-space")),this._removeClass(this.icon,null,"ui-wiget-icon-block"),this._attachIconSpace(s))},_destroy:function(){this.element.removeAttr("role"),this.icon&&this.icon.remove(),this.iconSpace&&this.iconSpace.remove(),this.hasTitle||this.element.removeAttr("title")},_attachIconSpace:function(t){this.icon[/^(?:end|bottom)/.test(t)?"before":"after"](this.iconSpace)},_attachIcon:function(t){this.element[/^(?:end|bottom)/.test(t)?"append":"prepend"](this.icon)},_setOptions:function(t){var e=(void 0===t.showLabel?this.options:t).showLabel,i=(void 0===t.icon?this.options:t).icon;e||i||(t.showLabel=!0),this._super(t)},_setOption:function(t,e){"icon"===t&&(e?this._updateIcon(t,e):this.icon&&(this.icon.remove(),this.iconSpace&&this.iconSpace.remove())),"iconPosition"===t&&this._updateIcon(t,e),"showLabel"===t&&(this._toggleClass("ui-button-icon-only",null,!e),this._updateTooltip()),"label"===t&&(this.isInput?this.element.val(e):(this.element.html(e),this.icon&&(this._attachIcon(this.options.iconPosition),this._attachIconSpace(this.options.iconPosition)))),this._super(t,e),"disabled"===t&&(this._toggleClass(null,"ui-state-disabled",e),(this.element[0].disabled=e)&&this.element.trigger("blur"))},refresh:function(){var t=this.element.is("input, button")?this.element[0].disabled:this.element.hasClass("ui-button-disabled");t!==this.options.disabled&&this._setOptions({disabled:t}),this._updateTooltip()}}),!1!==t.uiBackCompat&&(t.widget("ui.button",t.ui.button,{options:{text:!0,icons:{primary:null,secondary:null}},_create:function(){this.options.showLabel&&!this.options.text&&(this.options.showLabel=this.options.text),!this.options.showLabel&&this.options.text&&(this.options.text=this.options.showLabel),this.options.icon||!this.options.icons.primary&&!this.options.icons.secondary?this.options.icon&&(this.options.icons.primary=this.options.icon):this.options.icons.primary?this.options.icon=this.options.icons.primary:(this.options.icon=this.options.icons.secondary,this.options.iconPosition="end"),this._super()},_setOption:function(t,e){"text"!==t?("showLabel"===t&&(this.options.text=e),"icon"===t&&(this.options.icons.primary=e),"icons"===t&&(e.primary?(this._super("icon",e.primary),this._super("iconPosition","beginning")):e.secondary&&(this._super("icon",e.secondary),this._super("iconPosition","end"))),this._superApply(arguments)):this._super("showLabel",e)}}),t.fn.button=(tt=t.fn.button,function(e){var i="string"==typeof e,n=Array.prototype.slice.call(arguments,1),s=this;return i?this.length||"instance"!==e?this.each((function(){var i=t(this).attr("type"),o=t.data(this,"ui-"+("checkbox"!==i&&"radio"!==i?"button":"checkboxradio"));return"instance"===e?(s=o,!1):o?"function"!=typeof o[e]||"_"===e.charAt(0)?t.error("no such method '"+e+"' for button widget instance"):(i=o[e].apply(o,n))!==o&&void 0!==i?(s=i&&i.jquery?s.pushStack(i.get()):i,!1):void 0:t.error("cannot call methods on button prior to initialization; attempted to call method '"+e+"'")})):s=void 0:(n.length&&(e=t.widget.extend.apply(null,[e].concat(n))),this.each((function(){var i,n="checkbox"!==(i=t(this).attr("type"))&&"radio"!==i?"button":"checkboxradio";(i=t.data(this,"ui-"+n))?(i.option(e||{}),i._init&&i._init()):"button"!=n?t(this).checkboxradio(t.extend({icon:!1},e)):tt.call(t(this),e)}))),s}),t.fn.buttonset=function(){return t.ui.controlgroup||t.error("Controlgroup widget missing"),"option"===arguments[0]&&"items"===arguments[1]&&arguments[2]?this.controlgroup.apply(this,[arguments[0],"items.button",arguments[2]]):"option"===arguments[0]&&"items"===arguments[1]?this.controlgroup.apply(this,[arguments[0],"items.button"]):("object"==typeof arguments[0]&&arguments[0].items&&(arguments[0].items={button:arguments[0].items}),this.controlgroup.apply(this,arguments))}),t.ui.button,t.extend(t.ui,{datepicker:{version:"1.13.2"}}),t.extend(nt.prototype,{markerClassName:"hasDatepicker",maxRows:4,_widgetDatepicker:function(){return this.dpDiv},setDefaults:function(t){return rt(this._defaults,t||{}),this},_attachDatepicker:function(e,i){var n,s=e.nodeName.toLowerCase(),o="div"===s||"span"===s;e.id||(this.uuid+=1,e.id="dp"+this.uuid),(n=this._newInst(t(e),o)).settings=t.extend({},i||{}),"input"===s?this._connectDatepicker(e,n):o&&this._inlineDatepicker(e,n)},_newInst:function(e,i){return{id:e[0].id.replace(/([^A-Za-z0-9_\-])/g,"\\\\$1"),input:e,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:i,dpDiv:i?st(t("<div class='"+this._inlineClass+" ui-datepicker ui-widget ui-widget-content ui-helper-clearfix ui-corner-all'></div>")):this.dpDiv}},_connectDatepicker:function(e,i){var n=t(e);i.append=t([]),i.trigger=t([]),n.hasClass(this.markerClassName)||(this._attachments(n,i),n.addClass(this.markerClassName).on("keydown",this._doKeyDown).on("keypress",this._doKeyPress).on("keyup",this._doKeyUp),this._autoSize(i),t.data(e,"datepicker",i),i.settings.disabled&&this._disableDatepicker(e))},_attachments:function(e,i){var n,s=this._get(i,"appendText"),o=this._get(i,"isRTL");i.append&&i.append.remove(),s&&(i.append=t("<span>").addClass(this._appendClass).text(s),e[o?"before":"after"](i.append)),e.off("focus",this._showDatepicker),i.trigger&&i.trigger.remove(),"focus"!==(n=this._get(i,"showOn"))&&"both"!==n||e.on("focus",this._showDatepicker),"button"!==n&&"both"!==n||(s=this._get(i,"buttonText"),n=this._get(i,"buttonImage"),this._get(i,"buttonImageOnly")?i.trigger=t("<img>").addClass(this._triggerClass).attr({src:n,alt:s,title:s}):(i.trigger=t("<button type='button'>").addClass(this._triggerClass),n?i.trigger.html(t("<img>").attr({src:n,alt:s,title:s})):i.trigger.text(s)),e[o?"before":"after"](i.trigger),i.trigger.on("click",(function(){return t.datepicker._datepickerShowing&&t.datepicker._lastInput===e[0]?t.datepicker._hideDatepicker():(t.datepicker._datepickerShowing&&t.datepicker._lastInput!==e[0]&&t.datepicker._hideDatepicker(),t.datepicker._showDatepicker(e[0])),!1})))},_autoSize:function(t){var e,i,n,s,o,r;this._get(t,"autoSize")&&!t.inline&&(o=new Date(2009,11,20),(r=this._get(t,"dateFormat")).match(/[DM]/)&&(e=function(t){for(s=n=i=0;s<t.length;s++)t[s].length>i&&(i=t[s].length,n=s);return n},o.setMonth(e(this._get(t,r.match(/MM/)?"monthNames":"monthNamesShort"))),o.setDate(e(this._get(t,r.match(/DD/)?"dayNames":"dayNamesShort"))+20-o.getDay())),t.input.attr("size",this._formatDate(t,o).length))},_inlineDatepicker:function(e,i){var n=t(e);n.hasClass(this.markerClassName)||(n.addClass(this.markerClassName).append(i.dpDiv),t.data(e,"datepicker",i),this._setDate(i,this._getDefaultDate(i),!0),this._updateDatepicker(i),this._updateAlternate(i),i.settings.disabled&&this._disableDatepicker(e),i.dpDiv.css("display","block"))},_dialogDatepicker:function(e,i,n,s,o){var r,a=this._dialogInst;return a||(this.uuid+=1,r="dp"+this.uuid,this._dialogInput=t("<input type='text' id='"+r+"' style='position: absolute; top: -100px; width: 0px;'/>"),this._dialogInput.on("keydown",this._doKeyDown),t("body").append(this._dialogInput),(a=this._dialogInst=this._newInst(this._dialogInput,!1)).settings={},t.data(this._dialogInput[0],"datepicker",a)),rt(a.settings,s||{}),i=i&&i.constructor===Date?this._formatDate(a,i):i,this._dialogInput.val(i),this._pos=o?o.length?o:[o.pageX,o.pageY]:null,this._pos||(r=document.documentElement.clientWidth,s=document.documentElement.clientHeight,i=document.documentElement.scrollLeft||document.body.scrollLeft,o=document.documentElement.scrollTop||document.body.scrollTop,this._pos=[r/2-100+i,s/2-150+o]),this._dialogInput.css("left",this._pos[0]+20+"px").css("top",this._pos[1]+"px"),a.settings.onSelect=n,this._inDialog=!0,this.dpDiv.addClass(this._dialogClass),this._showDatepicker(this._dialogInput[0]),t.blockUI&&t.blockUI(this.dpDiv),t.data(this._dialogInput[0],"datepicker",a),this},_destroyDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&(i=e.nodeName.toLowerCase(),t.removeData(e,"datepicker"),"input"===i?(s.append.remove(),s.trigger.remove(),n.removeClass(this.markerClassName).off("focus",this._showDatepicker).off("keydown",this._doKeyDown).off("keypress",this._doKeyPress).off("keyup",this._doKeyUp)):"div"!==i&&"span"!==i||n.removeClass(this.markerClassName).empty(),et===s&&(et=null,this._curInst=null))},_enableDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!1,s.trigger.filter("button").each((function(){this.disabled=!1})).end().filter("img").css({opacity:"1.0",cursor:""})):"div"!==i&&"span"!==i||((n=n.children("."+this._inlineClass)).children().removeClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!1)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})))},_disableDatepicker:function(e){var i,n=t(e),s=t.data(e,"datepicker");n.hasClass(this.markerClassName)&&("input"===(i=e.nodeName.toLowerCase())?(e.disabled=!0,s.trigger.filter("button").each((function(){this.disabled=!0})).end().filter("img").css({opacity:"0.5",cursor:"default"})):"div"!==i&&"span"!==i||((n=n.children("."+this._inlineClass)).children().addClass("ui-state-disabled"),n.find("select.ui-datepicker-month, select.ui-datepicker-year").prop("disabled",!0)),this._disabledInputs=t.map(this._disabledInputs,(function(t){return t===e?null:t})),this._disabledInputs[this._disabledInputs.length]=e)},_isDisabledDatepicker:function(t){if(!t)return!1;for(var e=0;e<this._disabledInputs.length;e++)if(this._disabledInputs[e]===t)return!0;return!1},_getInst:function(e){try{return t.data(e,"datepicker")}catch(e){throw"Missing instance data for this datepicker"}},_optionDatepicker:function(e,i,n){var s,o,r=this._getInst(e);if(2===arguments.length&&"string"==typeof i)return"defaults"===i?t.extend({},t.datepicker._defaults):r?"all"===i?t.extend({},r.settings):this._get(r,i):null;s=i||{},"string"==typeof i&&((s={})[i]=n),r&&(this._curInst===r&&this._hideDatepicker(),o=this._getDateDatepicker(e,!0),i=this._getMinMaxDate(r,"min"),n=this._getMinMaxDate(r,"max"),rt(r.settings,s),null!==i&&void 0!==s.dateFormat&&void 0===s.minDate&&(r.settings.minDate=this._formatDate(r,i)),null!==n&&void 0!==s.dateFormat&&void 0===s.maxDate&&(r.settings.maxDate=this._formatDate(r,n)),"disabled"in s&&(s.disabled?this._disableDatepicker(e):this._enableDatepicker(e)),this._attachments(t(e),r),this._autoSize(r),this._setDate(r,o),this._updateAlternate(r),this._updateDatepicker(r))},_changeDatepicker:function(t,e,i){this._optionDatepicker(t,e,i)},_refreshDatepicker:function(t){(t=this._getInst(t))&&this._updateDatepicker(t)},_setDateDatepicker:function(t,e){(t=this._getInst(t))&&(this._setDate(t,e),this._updateDatepicker(t),this._updateAlternate(t))},_getDateDatepicker:function(t,e){return(t=this._getInst(t))&&!t.inline&&this._setDateFromField(t,e),t?this._getDate(t):null},_doKeyDown:function(e){var i,n,s=t.datepicker._getInst(e.target),o=!0,r=s.dpDiv.is(".ui-datepicker-rtl");if(s._keyEvent=!0,t.datepicker._datepickerShowing)switch(e.keyCode){case 9:t.datepicker._hideDatepicker(),o=!1;break;case 13:return(n=t("td."+t.datepicker._dayOverClass+":not(."+t.datepicker._currentClass+")",s.dpDiv))[0]&&t.datepicker._selectDay(e.target,s.selectedMonth,s.selectedYear,n[0]),(i=t.datepicker._get(s,"onSelect"))?(n=t.datepicker._formatDate(s),i.apply(s.input?s.input[0]:null,[n,s])):t.datepicker._hideDatepicker(),!1;case 27:t.datepicker._hideDatepicker();break;case 33:t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 34:t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 35:(e.ctrlKey||e.metaKey)&&t.datepicker._clearDate(e.target),o=e.ctrlKey||e.metaKey;break;case 36:(e.ctrlKey||e.metaKey)&&t.datepicker._gotoToday(e.target),o=e.ctrlKey||e.metaKey;break;case 37:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?1:-1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?-t.datepicker._get(s,"stepBigMonths"):-t.datepicker._get(s,"stepMonths"),"M");break;case 38:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,-7,"D"),o=e.ctrlKey||e.metaKey;break;case 39:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,r?-1:1,"D"),o=e.ctrlKey||e.metaKey,e.originalEvent.altKey&&t.datepicker._adjustDate(e.target,e.ctrlKey?+t.datepicker._get(s,"stepBigMonths"):+t.datepicker._get(s,"stepMonths"),"M");break;case 40:(e.ctrlKey||e.metaKey)&&t.datepicker._adjustDate(e.target,7,"D"),o=e.ctrlKey||e.metaKey;break;default:o=!1}else 36===e.keyCode&&e.ctrlKey?t.datepicker._showDatepicker(this):o=!1;o&&(e.preventDefault(),e.stopPropagation())},_doKeyPress:function(e){var i,n=t.datepicker._getInst(e.target);if(t.datepicker._get(n,"constrainInput"))return i=t.datepicker._possibleChars(t.datepicker._get(n,"dateFormat")),n=String.fromCharCode(null==e.charCode?e.keyCode:e.charCode),e.ctrlKey||e.metaKey||n<" "||!i||-1<i.indexOf(n)},_doKeyUp:function(e){if((e=t.datepicker._getInst(e.target)).input.val()!==e.lastVal)try{t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),e.input?e.input.val():null,t.datepicker._getFormatConfig(e))&&(t.datepicker._setDateFromField(e),t.datepicker._updateAlternate(e),t.datepicker._updateDatepicker(e))}catch(e){}return!0},_showDatepicker:function(e){var i,n,s,o;"input"!==(e=e.target||e).nodeName.toLowerCase()&&(e=t("input",e.parentNode)[0]),t.datepicker._isDisabledDatepicker(e)||t.datepicker._lastInput===e||(o=t.datepicker._getInst(e),t.datepicker._curInst&&t.datepicker._curInst!==o&&(t.datepicker._curInst.dpDiv.stop(!0,!0),o&&t.datepicker._datepickerShowing&&t.datepicker._hideDatepicker(t.datepicker._curInst.input[0])),!1!==(n=(s=t.datepicker._get(o,"beforeShow"))?s.apply(e,[e,o]):{})&&(rt(o.settings,n),o.lastVal=null,t.datepicker._lastInput=e,t.datepicker._setDateFromField(o),t.datepicker._inDialog&&(e.value=""),t.datepicker._pos||(t.datepicker._pos=t.datepicker._findPos(e),t.datepicker._pos[1]+=e.offsetHeight),i=!1,t(e).parents().each((function(){return!(i|="fixed"===t(this).css("position"))})),s={left:t.datepicker._pos[0],top:t.datepicker._pos[1]},t.datepicker._pos=null,o.dpDiv.empty(),o.dpDiv.css({position:"absolute",display:"block",top:"-1000px"}),t.datepicker._updateDatepicker(o),s=t.datepicker._checkOffset(o,s,i),o.dpDiv.css({position:t.datepicker._inDialog&&t.blockUI?"static":i?"fixed":"absolute",display:"none",left:s.left+"px",top:s.top+"px"}),o.inline||(n=t.datepicker._get(o,"showAnim"),s=t.datepicker._get(o,"duration"),o.dpDiv.css("z-index",function(t){for(var e,i;t.length&&t[0]!==document;){if(("absolute"===(e=t.css("position"))||"relative"===e||"fixed"===e)&&(i=parseInt(t.css("zIndex"),10),!isNaN(i)&&0!==i))return i;t=t.parent()}return 0}(t(e))+1),t.datepicker._datepickerShowing=!0,t.effects&&t.effects.effect[n]?o.dpDiv.show(n,t.datepicker._get(o,"showOptions"),s):o.dpDiv[n||"show"](n?s:null),t.datepicker._shouldFocusInput(o)&&o.input.trigger("focus"),t.datepicker._curInst=o)))},_updateDatepicker:function(e){this.maxRows=4,(et=e).dpDiv.empty().append(this._generateHTML(e)),this._attachHandlers(e);var i,n=this._getNumberOfMonths(e),s=n[1],o=e.dpDiv.find("."+this._dayOverClass+" a"),r=t.datepicker._get(e,"onUpdateDatepicker");0<o.length&&ot.apply(o.get(0)),e.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width(""),1<s&&e.dpDiv.addClass("ui-datepicker-multi-"+s).css("width",17*s+"em"),e.dpDiv[(1!==n[0]||1!==n[1]?"add":"remove")+"Class"]("ui-datepicker-multi"),e.dpDiv[(this._get(e,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl"),e===t.datepicker._curInst&&t.datepicker._datepickerShowing&&t.datepicker._shouldFocusInput(e)&&e.input.trigger("focus"),e.yearshtml&&(i=e.yearshtml,setTimeout((function(){i===e.yearshtml&&e.yearshtml&&e.dpDiv.find("select.ui-datepicker-year").first().replaceWith(e.yearshtml),i=e.yearshtml=null}),0)),r&&r.apply(e.input?e.input[0]:null,[e])},_shouldFocusInput:function(t){return t.input&&t.input.is(":visible")&&!t.input.is(":disabled")&&!t.input.is(":focus")},_checkOffset:function(e,i,n){var s=e.dpDiv.outerWidth(),o=e.dpDiv.outerHeight(),r=e.input?e.input.outerWidth():0,a=e.input?e.input.outerHeight():0,l=document.documentElement.clientWidth+(n?0:t(document).scrollLeft()),c=document.documentElement.clientHeight+(n?0:t(document).scrollTop());return i.left-=this._get(e,"isRTL")?s-r:0,i.left-=n&&i.left===e.input.offset().left?t(document).scrollLeft():0,i.top-=n&&i.top===e.input.offset().top+a?t(document).scrollTop():0,i.left-=Math.min(i.left,i.left+s>l&&s<l?Math.abs(i.left+s-l):0),i.top-=Math.min(i.top,i.top+o>c&&o<c?Math.abs(o+a):0),i},_findPos:function(e){for(var i=this._getInst(e),n=this._get(i,"isRTL");e&&("hidden"===e.type||1!==e.nodeType||t.expr.pseudos.hidden(e));)e=e[n?"previousSibling":"nextSibling"];return[(i=t(e).offset()).left,i.top]},_hideDatepicker:function(e){var i,n,s=this._curInst;!s||e&&s!==t.data(e,"datepicker")||this._datepickerShowing&&(i=this._get(s,"showAnim"),n=this._get(s,"duration"),e=function(){t.datepicker._tidyDialog(s)},t.effects&&(t.effects.effect[i]||t.effects[i])?s.dpDiv.hide(i,t.datepicker._get(s,"showOptions"),n,e):s.dpDiv["slideDown"===i?"slideUp":"fadeIn"===i?"fadeOut":"hide"](i?n:null,e),i||e(),this._datepickerShowing=!1,(e=this._get(s,"onClose"))&&e.apply(s.input?s.input[0]:null,[s.input?s.input.val():"",s]),this._lastInput=null,this._inDialog&&(this._dialogInput.css({position:"absolute",left:"0",top:"-100px"}),t.blockUI&&(t.unblockUI(),t("body").append(this.dpDiv))),this._inDialog=!1)},_tidyDialog:function(t){t.dpDiv.removeClass(this._dialogClass).off(".ui-datepicker-calendar")},_checkExternalClick:function(e){var i;t.datepicker._curInst&&(i=t(e.target),e=t.datepicker._getInst(i[0]),(i[0].id===t.datepicker._mainDivId||0!==i.parents("#"+t.datepicker._mainDivId).length||i.hasClass(t.datepicker.markerClassName)||i.closest("."+t.datepicker._triggerClass).length||!t.datepicker._datepickerShowing||t.datepicker._inDialog&&t.blockUI)&&(!i.hasClass(t.datepicker.markerClassName)||t.datepicker._curInst===e)||t.datepicker._hideDatepicker())},_adjustDate:function(e,i,n){var s=t(e);e=this._getInst(s[0]);this._isDisabledDatepicker(s[0])||(this._adjustInstDate(e,i,n),this._updateDatepicker(e))},_gotoToday:function(e){var i=t(e),n=this._getInst(i[0]);this._get(n,"gotoCurrent")&&n.currentDay?(n.selectedDay=n.currentDay,n.drawMonth=n.selectedMonth=n.currentMonth,n.drawYear=n.selectedYear=n.currentYear):(e=new Date,n.selectedDay=e.getDate(),n.drawMonth=n.selectedMonth=e.getMonth(),n.drawYear=n.selectedYear=e.getFullYear()),this._notifyChange(n),this._adjustDate(i)},_selectMonthYear:function(e,i,n){var s=t(e);(e=this._getInst(s[0]))["selected"+("M"===n?"Month":"Year")]=e["draw"+("M"===n?"Month":"Year")]=parseInt(i.options[i.selectedIndex].value,10),this._notifyChange(e),this._adjustDate(s)},_selectDay:function(e,i,n,s){var o=t(e);t(s).hasClass(this._unselectableClass)||this._isDisabledDatepicker(o[0])||((o=this._getInst(o[0])).selectedDay=o.currentDay=parseInt(t("a",s).attr("data-date")),o.selectedMonth=o.currentMonth=i,o.selectedYear=o.currentYear=n,this._selectDate(e,this._formatDate(o,o.currentDay,o.currentMonth,o.currentYear)))},_clearDate:function(e){e=t(e),this._selectDate(e,"")},_selectDate:function(e,i){var n=t(e);e=this._getInst(n[0]);i=null!=i?i:this._formatDate(e),e.input&&e.input.val(i),this._updateAlternate(e),(n=this._get(e,"onSelect"))?n.apply(e.input?e.input[0]:null,[i,e]):e.input&&e.input.trigger("change"),e.inline?this._updateDatepicker(e):(this._hideDatepicker(),this._lastInput=e.input[0],"object"!=typeof e.input[0]&&e.input.trigger("focus"),this._lastInput=null)},_updateAlternate:function(e){var i,n,s=this._get(e,"altField");s&&(i=this._get(e,"altFormat")||this._get(e,"dateFormat"),n=this._getDate(e),e=this.formatDate(i,n,this._getFormatConfig(e)),t(document).find(s).val(e))},noWeekends:function(t){return[0<(t=t.getDay())&&t<6,""]},iso8601Week:function(t){var e=new Date(t.getTime());return e.setDate(e.getDate()+4-(e.getDay()||7)),t=e.getTime(),e.setMonth(0),e.setDate(1),Math.floor(Math.round((t-e)/864e5)/7)+1},parseDate:function(e,i,n){if(null==e||null==i)throw"Invalid arguments";if(""===(i="object"==typeof i?i.toString():i+""))return null;for(var s,o,r,a=0,l="string"!=typeof(l=(n?n.shortYearCutoff:null)||this._defaults.shortYearCutoff)?l:(new Date).getFullYear()%100+parseInt(l,10),c=(n?n.dayNamesShort:null)||this._defaults.dayNamesShort,u=(n?n.dayNames:null)||this._defaults.dayNames,h=(n?n.monthNamesShort:null)||this._defaults.monthNamesShort,d=(n?n.monthNames:null)||this._defaults.monthNames,p=-1,f=-1,m=-1,g=-1,v=!1,y=function(t){return(t=x+1<e.length&&e.charAt(x+1)===t)&&x++,t},b=function(t){var e=y(t);e="@"===t?14:"!"===t?20:"y"===t&&e?4:"o"===t?3:2,e=new RegExp("^\\d{"+("y"===t?e:1)+","+e+"}");if(!(e=i.substring(a).match(e)))throw"Missing number at position "+a;return a+=e[0].length,parseInt(e[0],10)},_=function(e,n,s){var o=-1;n=t.map(y(e)?s:n,(function(t,e){return[[e,t]]})).sort((function(t,e){return-(t[1].length-e[1].length)}));if(t.each(n,(function(t,e){var n=e[1];if(i.substr(a,n.length).toLowerCase()===n.toLowerCase())return o=e[0],a+=n.length,!1})),-1!==o)return o+1;throw"Unknown name at position "+a},w=function(){if(i.charAt(a)!==e.charAt(x))throw"Unexpected literal at position "+a;a++},x=0;x<e.length;x++)if(v)"'"!==e.charAt(x)||y("'")?w():v=!1;else switch(e.charAt(x)){case"d":m=b("d");break;case"D":_("D",c,u);break;case"o":g=b("o");break;case"m":f=b("m");break;case"M":f=_("M",h,d);break;case"y":p=b("y");break;case"@":p=(r=new Date(b("@"))).getFullYear(),f=r.getMonth()+1,m=r.getDate();break;case"!":p=(r=new Date((b("!")-this._ticksTo1970)/1e4)).getFullYear(),f=r.getMonth()+1,m=r.getDate();break;case"'":y("'")?w():v=!0;break;default:w()}if(a<i.length&&(o=i.substr(a),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===p?p=(new Date).getFullYear():p<100&&(p+=(new Date).getFullYear()-(new Date).getFullYear()%100+(p<=l?0:-100)),-1<g)for(f=1,m=g;!(m<=(s=this._getDaysInMonth(p,f-1)));)f++,m-=s;if((r=this._daylightSavingAdjust(new Date(p,f-1,m))).getFullYear()!==p||r.getMonth()+1!==f||r.getDate()!==m)throw"Invalid date";return r},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TICKS:"!",TIMESTAMP:"@",W3C:"yy-mm-dd",_ticksTo1970:24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7,formatDate:function(t,e,i){if(!e)return"";function n(t,e,i){var n=""+e;if(u(t))for(;n.length<i;)n="0"+n;return n}function s(t,e,i,n){return(u(t)?n:i)[e]}var o,r=(i?i.dayNamesShort:null)||this._defaults.dayNamesShort,a=(i?i.dayNames:null)||this._defaults.dayNames,l=(i?i.monthNamesShort:null)||this._defaults.monthNamesShort,c=(i?i.monthNames:null)||this._defaults.monthNames,u=function(e){return(e=o+1<t.length&&t.charAt(o+1)===e)&&o++,e},h="",d=!1;if(e)for(o=0;o<t.length;o++)if(d)"'"!==t.charAt(o)||u("'")?h+=t.charAt(o):d=!1;else switch(t.charAt(o)){case"d":h+=n("d",e.getDate(),2);break;case"D":h+=s("D",e.getDay(),r,a);break;case"o":h+=n("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":h+=n("m",e.getMonth()+1,2);break;case"M":h+=s("M",e.getMonth(),l,c);break;case"y":h+=u("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":h+=e.getTime();break;case"!":h+=1e4*e.getTime()+this._ticksTo1970;break;case"'":u("'")?h+="'":d=!0;break;default:h+=t.charAt(o)}return h},_possibleChars:function(t){for(var e="",i=!1,n=function(e){return(e=s+1<t.length&&t.charAt(s+1)===e)&&s++,e},s=0;s<t.length;s++)if(i)"'"!==t.charAt(s)||n("'")?e+=t.charAt(s):i=!1;else switch(t.charAt(s)){case"d":case"m":case"y":case"@":e+="0123456789";break;case"D":case"M":return null;case"'":n("'")?e+="'":i=!0;break;default:e+=t.charAt(s)}return e},_get:function(t,e){return(void 0!==t.settings[e]?t.settings:this._defaults)[e]},_setDateFromField:function(t,e){if(t.input.val()!==t.lastVal){var i=this._get(t,"dateFormat"),n=t.lastVal=t.input?t.input.val():null,s=this._getDefaultDate(t),o=s,r=this._getFormatConfig(t);try{o=this.parseDate(i,n,r)||s}catch(t){n=e?"":n}t.selectedDay=o.getDate(),t.drawMonth=t.selectedMonth=o.getMonth(),t.drawYear=t.selectedYear=o.getFullYear(),t.currentDay=n?o.getDate():0,t.currentMonth=n?o.getMonth():0,t.currentYear=n?o.getFullYear():0,this._adjustInstDate(t)}},_getDefaultDate:function(t){return this._restrictMinMax(t,this._determineDate(t,this._get(t,"defaultDate"),new Date))},_determineDate:function(e,i,n){var s,o;i=null==i||""===i?n:"string"==typeof i?function(i){try{return t.datepicker.parseDate(t.datepicker._get(e,"dateFormat"),i,t.datepicker._getFormatConfig(e))}catch(i){}for(var n=(i.toLowerCase().match(/^c/)?t.datepicker._getDate(e):null)||new Date,s=n.getFullYear(),o=n.getMonth(),r=n.getDate(),a=/([+\-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g,l=a.exec(i);l;){switch(l[2]||"d"){case"d":case"D":r+=parseInt(l[1],10);break;case"w":case"W":r+=7*parseInt(l[1],10);break;case"m":case"M":o+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o));break;case"y":case"Y":s+=parseInt(l[1],10),r=Math.min(r,t.datepicker._getDaysInMonth(s,o))}l=a.exec(i)}return new Date(s,o,r)}(i):"number"==typeof i?isNaN(i)?n:(s=i,(o=new Date).setDate(o.getDate()+s),o):new Date(i.getTime());return(i=i&&"Invalid Date"===i.toString()?n:i)&&(i.setHours(0),i.setMinutes(0),i.setSeconds(0),i.setMilliseconds(0)),this._daylightSavingAdjust(i)},_daylightSavingAdjust:function(t){return t?(t.setHours(12<t.getHours()?t.getHours()+2:0),t):null},_setDate:function(t,e,i){var n=!e,s=t.selectedMonth,o=t.selectedYear;e=this._restrictMinMax(t,this._determineDate(t,e,new Date));t.selectedDay=t.currentDay=e.getDate(),t.drawMonth=t.selectedMonth=t.currentMonth=e.getMonth(),t.drawYear=t.selectedYear=t.currentYear=e.getFullYear(),s===t.selectedMonth&&o===t.selectedYear||i||this._notifyChange(t),this._adjustInstDate(t),t.input&&t.input.val(n?"":this._formatDate(t))},_getDate:function(t){return!t.currentYear||t.input&&""===t.input.val()?null:this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay))},_attachHandlers:function(e){var i=this._get(e,"stepMonths"),n="#"+e.id.replace(/\\\\/g,"\\");e.dpDiv.find("[data-handler]").map((function(){var e={prev:function(){t.datepicker._adjustDate(n,-i,"M")},next:function(){t.datepicker._adjustDate(n,+i,"M")},hide:function(){t.datepicker._hideDatepicker()},today:function(){t.datepicker._gotoToday(n)},selectDay:function(){return t.datepicker._selectDay(n,+this.getAttribute("data-month"),+this.getAttribute("data-year"),this),!1},selectMonth:function(){return t.datepicker._selectMonthYear(n,this,"M"),!1},selectYear:function(){return t.datepicker._selectMonthYear(n,this,"Y"),!1}};t(this).on(this.getAttribute("data-event"),e[this.getAttribute("data-handler")])}))},_generateHTML:function(e){var i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_,w,x,k,C,T,S,E,D,A,O,L,P,M,I=new Date,$=this._daylightSavingAdjust(new Date(I.getFullYear(),I.getMonth(),I.getDate())),N=this._get(e,"isRTL"),z=this._get(e,"showButtonPanel"),H=this._get(e,"hideIfNoPrevNext"),j=this._get(e,"navigationAsDateFormat"),R=this._getNumberOfMonths(e),q=this._get(e,"showCurrentAtPos"),B=(I=this._get(e,"stepMonths"),1!==R[0]||1!==R[1]),W=this._daylightSavingAdjust(e.currentDay?new Date(e.currentYear,e.currentMonth,e.currentDay):new Date(9999,9,9)),F=this._getMinMaxDate(e,"min"),U=this._getMinMaxDate(e,"max"),Y=e.drawMonth-q,V=e.drawYear;if(Y<0&&(Y+=12,V--),U)for(i=this._daylightSavingAdjust(new Date(U.getFullYear(),U.getMonth()-R[0]*R[1]+1,U.getDate())),i=F&&i<F?F:i;this._daylightSavingAdjust(new Date(V,Y,1))>i;)--Y<0&&(Y=11,V--);for(e.drawMonth=Y,e.drawYear=V,q=this._get(e,"prevText"),q=j?this.formatDate(q,this._daylightSavingAdjust(new Date(V,Y-I,1)),this._getFormatConfig(e)):q,n=this._canAdjustMonth(e,-1,V,Y)?t("<a>").attr({class:"ui-datepicker-prev ui-corner-all","data-handler":"prev","data-event":"click",title:q}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(q))[0].outerHTML:H?"":t("<a>").attr({class:"ui-datepicker-prev ui-corner-all ui-state-disabled",title:q}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"e":"w")).text(q))[0].outerHTML,q=this._get(e,"nextText"),q=j?this.formatDate(q,this._daylightSavingAdjust(new Date(V,Y+I,1)),this._getFormatConfig(e)):q,s=this._canAdjustMonth(e,1,V,Y)?t("<a>").attr({class:"ui-datepicker-next ui-corner-all","data-handler":"next","data-event":"click",title:q}).append(t("<span>").addClass("ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(q))[0].outerHTML:H?"":t("<a>").attr({class:"ui-datepicker-next ui-corner-all ui-state-disabled",title:q}).append(t("<span>").attr("class","ui-icon ui-icon-circle-triangle-"+(N?"w":"e")).text(q))[0].outerHTML,I=this._get(e,"currentText"),H=this._get(e,"gotoCurrent")&&e.currentDay?W:$,I=j?this.formatDate(I,H,this._getFormatConfig(e)):I,q="",e.inline||(q=t("<button>").attr({type:"button",class:"ui-datepicker-close ui-state-default ui-priority-primary ui-corner-all","data-handler":"hide","data-event":"click"}).text(this._get(e,"closeText"))[0].outerHTML),j="",z&&(j=t("<div class='ui-datepicker-buttonpane ui-widget-content'>").append(N?q:"").append(this._isInRange(e,H)?t("<button>").attr({type:"button",class:"ui-datepicker-current ui-state-default ui-priority-secondary ui-corner-all","data-handler":"today","data-event":"click"}).text(I):"").append(N?"":q)[0].outerHTML),o=parseInt(this._get(e,"firstDay"),10),o=isNaN(o)?0:o,r=this._get(e,"showWeek"),a=this._get(e,"dayNames"),l=this._get(e,"dayNamesMin"),c=this._get(e,"monthNames"),u=this._get(e,"monthNamesShort"),h=this._get(e,"beforeShowDay"),d=this._get(e,"showOtherMonths"),p=this._get(e,"selectOtherMonths"),f=this._getDefaultDate(e),m="",v=0;v<R[0];v++){for(y="",this.maxRows=4,b=0;b<R[1];b++){if(_=this._daylightSavingAdjust(new Date(V,Y,e.selectedDay)),w=" ui-corner-all",x="",B){if(x+="<div class='ui-datepicker-group",1<R[1])switch(b){case 0:x+=" ui-datepicker-group-first",w=" ui-corner-"+(N?"right":"left");break;case R[1]-1:x+=" ui-datepicker-group-last",w=" ui-corner-"+(N?"left":"right");break;default:x+=" ui-datepicker-group-middle",w=""}x+="'>"}for(x+="<div class='ui-datepicker-header ui-widget-header ui-helper-clearfix"+w+"'>"+(/all|left/.test(w)&&0===v?N?s:n:"")+(/all|right/.test(w)&&0===v?N?n:s:"")+this._generateMonthYearHeader(e,Y,V,F,U,0<v||0<b,c,u)+"</div><table class='ui-datepicker-calendar'><thead><tr>",k=r?"<th class='ui-datepicker-week-col'>"+this._get(e,"weekHeader")+"</th>":"",g=0;g<7;g++)k+="<th scope='col'"+(5<=(g+o+6)%7?" class='ui-datepicker-week-end'":"")+"><span title='"+a[C=(g+o)%7]+"'>"+l[C]+"</span></th>";for(x+=k+"</tr></thead><tbody>",S=this._getDaysInMonth(V,Y),V===e.selectedYear&&Y===e.selectedMonth&&(e.selectedDay=Math.min(e.selectedDay,S)),T=(this._getFirstDayOfMonth(V,Y)-o+7)%7,S=Math.ceil((T+S)/7),E=B&&this.maxRows>S?this.maxRows:S,this.maxRows=E,D=this._daylightSavingAdjust(new Date(V,Y,1-T)),A=0;A<E;A++){for(x+="<tr>",O=r?"<td class='ui-datepicker-week-col'>"+this._get(e,"calculateWeek")(D)+"</td>":"",g=0;g<7;g++)L=h?h.apply(e.input?e.input[0]:null,[D]):[!0,""],M=(P=D.getMonth()!==Y)&&!p||!L[0]||F&&D<F||U&&U<D,O+="<td class='"+(5<=(g+o+6)%7?" ui-datepicker-week-end":"")+(P?" ui-datepicker-other-month":"")+(D.getTime()===_.getTime()&&Y===e.selectedMonth&&e._keyEvent||f.getTime()===D.getTime()&&f.getTime()===_.getTime()?" "+this._dayOverClass:"")+(M?" "+this._unselectableClass+" ui-state-disabled":"")+(P&&!d?"":" "+L[1]+(D.getTime()===W.getTime()?" "+this._currentClass:"")+(D.getTime()===$.getTime()?" ui-datepicker-today":""))+"'"+(P&&!d||!L[2]?"":" title='"+L[2].replace(/'/g,"'")+"'")+(M?"":" data-handler='selectDay' data-event='click' data-month='"+D.getMonth()+"' data-year='"+D.getFullYear()+"'")+">"+(P&&!d?" ":M?"<span class='ui-state-default'>"+D.getDate()+"</span>":"<a class='ui-state-default"+(D.getTime()===$.getTime()?" ui-state-highlight":"")+(D.getTime()===W.getTime()?" ui-state-active":"")+(P?" ui-priority-secondary":"")+"' href='#' aria-current='"+(D.getTime()===W.getTime()?"true":"false")+"' data-date='"+D.getDate()+"'>"+D.getDate()+"</a>")+"</td>",D.setDate(D.getDate()+1),D=this._daylightSavingAdjust(D);x+=O+"</tr>"}11<++Y&&(Y=0,V++),y+=x+="</tbody></table>"+(B?"</div>"+(0<R[0]&&b===R[1]-1?"<div class='ui-datepicker-row-break'></div>":""):"")}m+=y}return m+=j,e._keyEvent=!1,m},_generateMonthYearHeader:function(t,e,i,n,s,o,r,a){var l,c,u,h,d,p,f=this._get(t,"changeMonth"),m=this._get(t,"changeYear"),g=this._get(t,"showMonthAfterYear"),v=this._get(t,"selectMonthLabel"),y=this._get(t,"selectYearLabel"),b="<div class='ui-datepicker-title'>",_="";if(o||!f)_+="<span class='ui-datepicker-month'>"+r[e]+"</span>";else{for(l=n&&n.getFullYear()===i,c=s&&s.getFullYear()===i,_+="<select class='ui-datepicker-month' aria-label='"+v+"' data-handler='selectMonth' data-event='change'>",u=0;u<12;u++)(!l||u>=n.getMonth())&&(!c||u<=s.getMonth())&&(_+="<option value='"+u+"'"+(u===e?" selected='selected'":"")+">"+a[u]+"</option>");_+="</select>"}if(g||(b+=_+(!o&&f&&m?"":" ")),!t.yearshtml)if(t.yearshtml="",o||!m)b+="<span class='ui-datepicker-year'>"+i+"</span>";else{for(r=this._get(t,"yearRange").split(":"),h=(new Date).getFullYear(),d=(v=function(t){return t=t.match(/c[+\-].*/)?i+parseInt(t.substring(1),10):t.match(/[+\-].*/)?h+parseInt(t,10):parseInt(t,10),isNaN(t)?h:t})(r[0]),p=Math.max(d,v(r[1]||"")),d=n?Math.max(d,n.getFullYear()):d,p=s?Math.min(p,s.getFullYear()):p,t.yearshtml+="<select class='ui-datepicker-year' aria-label='"+y+"' data-handler='selectYear' data-event='change'>";d<=p;d++)t.yearshtml+="<option value='"+d+"'"+(d===i?" selected='selected'":"")+">"+d+"</option>";t.yearshtml+="</select>",b+=t.yearshtml,t.yearshtml=null}return b+=this._get(t,"yearSuffix"),g&&(b+=(!o&&f&&m?"":" ")+_),b+"</div>"},_adjustInstDate:function(t,e,i){var n=t.selectedYear+("Y"===i?e:0),s=t.selectedMonth+("M"===i?e:0);e=Math.min(t.selectedDay,this._getDaysInMonth(n,s))+("D"===i?e:0),e=this._restrictMinMax(t,this._daylightSavingAdjust(new Date(n,s,e)));t.selectedDay=e.getDate(),t.drawMonth=t.selectedMonth=e.getMonth(),t.drawYear=t.selectedYear=e.getFullYear(),"M"!==i&&"Y"!==i||this._notifyChange(t)},_restrictMinMax:function(t,e){var i=this._getMinMaxDate(t,"min");e=i&&e<i?i:e;return(t=this._getMinMaxDate(t,"max"))&&t<e?t:e},_notifyChange:function(t){var e=this._get(t,"onChangeMonthYear");e&&e.apply(t.input?t.input[0]:null,[t.selectedYear,t.selectedMonth+1,t])},_getNumberOfMonths:function(t){return null==(t=this._get(t,"numberOfMonths"))?[1,1]:"number"==typeof t?[1,t]:t},_getMinMaxDate:function(t,e){return this._determineDate(t,this._get(t,e+"Date"),null)},_getDaysInMonth:function(t,e){return 32-this._daylightSavingAdjust(new Date(t,e,32)).getDate()},_getFirstDayOfMonth:function(t,e){return new Date(t,e,1).getDay()},_canAdjustMonth:function(t,e,i,n){var s=this._getNumberOfMonths(t);s=this._daylightSavingAdjust(new Date(i,n+(e<0?e:s[0]*s[1]),1));return e<0&&s.setDate(this._getDaysInMonth(s.getFullYear(),s.getMonth())),this._isInRange(t,s)},_isInRange:function(t,e){var i=this._getMinMaxDate(t,"min"),n=this._getMinMaxDate(t,"max"),s=null,o=null,r=this._get(t,"yearRange");return r&&(t=r.split(":"),r=(new Date).getFullYear(),s=parseInt(t[0],10),o=parseInt(t[1],10),t[0].match(/[+\-].*/)&&(s+=r),t[1].match(/[+\-].*/)&&(o+=r)),(!i||e.getTime()>=i.getTime())&&(!n||e.getTime()<=n.getTime())&&(!s||e.getFullYear()>=s)&&(!o||e.getFullYear()<=o)},_getFormatConfig:function(t){var e=this._get(t,"shortYearCutoff");return{shortYearCutoff:e="string"!=typeof e?e:(new Date).getFullYear()%100+parseInt(e,10),dayNamesShort:this._get(t,"dayNamesShort"),dayNames:this._get(t,"dayNames"),monthNamesShort:this._get(t,"monthNamesShort"),monthNames:this._get(t,"monthNames")}},_formatDate:function(t,e,i,n){return e||(t.currentDay=t.selectedDay,t.currentMonth=t.selectedMonth,t.currentYear=t.selectedYear),e=e?"object"==typeof e?e:this._daylightSavingAdjust(new Date(n,i,e)):this._daylightSavingAdjust(new Date(t.currentYear,t.currentMonth,t.currentDay)),this.formatDate(this._get(t,"dateFormat"),e,this._getFormatConfig(t))}}),t.fn.datepicker=function(e){if(!this.length)return this;t.datepicker.initialized||(t(document).on("mousedown",t.datepicker._checkExternalClick),t.datepicker.initialized=!0),0===t("#"+t.datepicker._mainDivId).length&&t("body").append(t.datepicker.dpDiv);var i=Array.prototype.slice.call(arguments,1);return"string"==typeof e&&("isDisabled"===e||"getDate"===e||"widget"===e)||"option"===e&&2===arguments.length&&"string"==typeof arguments[1]?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this[0]].concat(i)):this.each((function(){"string"==typeof e?t.datepicker["_"+e+"Datepicker"].apply(t.datepicker,[this].concat(i)):t.datepicker._attachDatepicker(this,e)}))},t.datepicker=new nt,t.datepicker.initialized=!1,t.datepicker.uuid=(new Date).getTime(),t.datepicker.version="1.13.2",t.datepicker,t.ui.ie=!!/msie [\w.]+/.exec(navigator.userAgent.toLowerCase());var at,lt=!1;function ct(t,e,i){return e<=t&&t<e+i}function ut(t){return function(){var e=this.element.val();t.apply(this,arguments),this._refresh(),e!==this.element.val()&&this._trigger("change")}}t(document).on("mouseup",(function(){lt=!1})),t.widget("ui.mouse",{version:"1.13.2",options:{cancel:"input, textarea, button, select, option",distance:1,delay:0},_mouseInit:function(){var e=this;this.element.on("mousedown."+this.widgetName,(function(t){return e._mouseDown(t)})).on("click."+this.widgetName,(function(i){if(!0===t.data(i.target,e.widgetName+".preventClickEvent"))return t.removeData(i.target,e.widgetName+".preventClickEvent"),i.stopImmediatePropagation(),!1})),this.started=!1},_mouseDestroy:function(){this.element.off("."+this.widgetName),this._mouseMoveDelegate&&this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("mouseup."+this.widgetName,this._mouseUpDelegate)},_mouseDown:function(e){if(!lt){this._mouseMoved=!1,this._mouseStarted&&this._mouseUp(e),this._mouseDownEvent=e;var i=this,n=1===e.which,s=!("string"!=typeof this.options.cancel||!e.target.nodeName)&&t(e.target).closest(this.options.cancel).length;return!(n&&!s&&this._mouseCapture(e))||(this.mouseDelayMet=!this.options.delay,this.mouseDelayMet||(this._mouseDelayTimer=setTimeout((function(){i.mouseDelayMet=!0}),this.options.delay)),this._mouseDistanceMet(e)&&this._mouseDelayMet(e)&&(this._mouseStarted=!1!==this._mouseStart(e),!this._mouseStarted)?(e.preventDefault(),!0):(!0===t.data(e.target,this.widgetName+".preventClickEvent")&&t.removeData(e.target,this.widgetName+".preventClickEvent"),this._mouseMoveDelegate=function(t){return i._mouseMove(t)},this._mouseUpDelegate=function(t){return i._mouseUp(t)},this.document.on("mousemove."+this.widgetName,this._mouseMoveDelegate).on("mouseup."+this.widgetName,this._mouseUpDelegate),e.preventDefault(),lt=!0))}},_mouseMove:function(e){if(this._mouseMoved){if(t.ui.ie&&(!document.documentMode||document.documentMode<9)&&!e.button)return this._mouseUp(e);if(!e.which)if(e.originalEvent.altKey||e.originalEvent.ctrlKey||e.originalEvent.metaKey||e.originalEvent.shiftKey)this.ignoreMissingWhich=!0;else if(!this.ignoreMissingWhich)return this._mouseUp(e)}return(e.which||e.button)&&(this._mouseMoved=!0),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){this.document.off("mousemove."+this.widgetName,this._mouseMoveDelegate).off("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)),this._mouseDelayTimer&&(clearTimeout(this._mouseDelayTimer),delete this._mouseDelayTimer),this.ignoreMissingWhich=!1,lt=!1,e.preventDefault()},_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}}),t.ui.plugin={add:function(e,i,n){var s,o=t.ui[e].prototype;for(s in n)o.plugins[s]=o.plugins[s]||[],o.plugins[s].push([i,n[s]])},call:function(t,e,i,n){var s,o=t.plugins[e];if(o&&(n||t.element[0].parentNode&&11!==t.element[0].parentNode.nodeType))for(s=0;s<o.length;s++)t.options[o[s][0]]&&o[s][1].apply(t.element,i)}},t.ui.safeBlur=function(e){e&&"body"!==e.nodeName.toLowerCase()&&t(e).trigger("blur")},t.widget("ui.draggable",t.ui.mouse,{version:"1.13.2",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&&this._setPositionRelative(),this.options.addClasses&&this._addClass("ui-draggable"),this._setHandleClassName(),this._mouseInit()},_setOption:function(t,e){this._super(t,e),"handle"===t&&(this._removeHandleClassName(),this._setHandleClassName())},_destroy:function(){(this.helper||this.element).is(".ui-draggable-dragging")?this.destroyOnClear=!0:(this._removeHandleClassName(),this._mouseDestroy())},_mouseCapture:function(e){var i=this.options;return!(this.helper||i.disabled||0<t(e.target).closest(".ui-resizable-handle").length||(this.handle=this._getHandle(e),!this.handle||(this._blurActiveElement(e),this._blockFrames(!0===i.iframeFix?"iframe":i.iframeFix),0)))},_blockFrames:function(e){this.iframeBlocks=this.document.find(e).map((function(){var e=t(this);return t("<div>").css("position","absolute").appendTo(e.parent()).outerWidth(e.outerWidth()).outerHeight(e.outerHeight()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_blurActiveElement:function(e){var i=t.ui.safeActiveElement(this.document[0]);t(e.target).closest(i).length||t.ui.safeBlur(i)},_mouseStart:function(e){var i=this.options;return this.helper=this._createHelper(e),this._addClass(this.helper,"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(!0),this.offsetParent=this.helper.offsetParent(),this.hasFixedAncestor=0<this.helper.parents().filter((function(){return"fixed"===t(this).css("position")})).length,this.positionAbs=this.element.offset(),this._refreshOffsets(e),this.originalPosition=this.position=this._generatePosition(e,!1),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)},_refreshOffsets:function(t){this.offset={top:this.positionAbs.top-this.margins.top,left:this.positionAbs.left-this.margins.left,scroll:!1,parent:this._getParentOffset(),relative:this._getRelativeOffset()},this.offset.click={left:t.pageX-this.offset.left,top:t.pageY-this.offset.top}},_mouseDrag:function(e,i){if(this.hasFixedAncestor&&(this.offset.parent=this._getParentOffset()),this.position=this._generatePosition(e,!0),this.positionAbs=this._convertPositionTo("absolute"),!i){if(i=this._uiHash(),!1===this._trigger("drag",e,i))return this._mouseUp(new t.Event("mouseup",e)),!1;this.position=i.position}return this.helper[0].style.left=this.position.left+"px",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),"invalid"===this.options.revert&&!n||"valid"===this.options.revert&&n||!0===this.options.revert||"function"==typeof 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 this._unblockFrames(),t.ui.ddmanager&&t.ui.ddmanager.dragStop(this,e),this.handleElement.is(e.target)&&this.element.trigger("focus"),t.ui.mouse.prototype._mouseUp.call(this,e)},cancel:function(){return this.helper.is(".ui-draggable-dragging")?this._mouseUp(new t.Event("mouseup",{target:this.element[0]})):this._clear(),this},_getHandle:function(e){return!this.options.handle||!!t(e.target).closest(this.element.find(this.options.handle)).length},_setHandleClassName:function(){this.handleElement=this.options.handle?this.element.find(this.options.handle):this.element,this._addClass(this.handleElement,"ui-draggable-handle")},_removeHandleClassName:function(){this._removeClass(this.handleElement,"ui-draggable-handle")},_createHelper:function(e){var i=this.options,n="function"==typeof i.helper;return(e=n?t(i.helper.apply(this.element[0],[e])):"clone"===i.helper?this.element.clone().removeAttr("id"):this.element).parents("body").length||e.appendTo("parent"===i.appendTo?this.element[0].parentNode:i.appendTo),n&&e[0]===this.element[0]&&this._setPositionRelative(),e[0]===this.element[0]||/(fixed|absolute)/.test(e.css("position"))||e.css("position","absolute"),e},_setPositionRelative:function(){/^(?:r|a|f)/.test(this.element.css("position"))||(this.element[0].style.position="relative")},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_isRootNode:function(t){return/(html|body)/i.test(t.tagName)||t===this.document[0]},_getParentOffset:function(){var e=this.offsetParent.offset(),i=this.document[0];return"absolute"===this.cssPosition&&this.scrollParent[0]!==i&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),{top:(e=this._isRootNode(this.offsetParent[0])?{top:0,left:0}: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)return{top:0,left:0};var t=this.element.position(),e=this._isRootNode(this.scrollParent[0]);return{top:t.top-(parseInt(this.helper.css("top"),10)||0)+(e?0:this.scrollParent.scrollTop()),left:t.left-(parseInt(this.helper.css("left"),10)||0)+(e?0:this.scrollParent.scrollLeft())}},_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,s=this.options,o=this.document[0];this.relativeContainer=null,s.containment?"window"!==s.containment?"document"!==s.containment?s.containment.constructor!==Array?("parent"===s.containment&&(s.containment=this.helper[0].parentNode),(n=(i=t(s.containment))[0])&&(e=/(scroll|auto)/.test(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.relativeContainer=i)):this.containment=s.containment:this.containment=[0,0,t(o).width()-this.helperProportions.width-this.margins.left,(t(o).height()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]: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()||o.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]:this.containment=null},_convertPositionTo:function(t,e){e=e||this.position;var i="absolute"===t?1:-1;t=this._isRootNode(this.scrollParent[0]);return{top:e.top+this.offset.relative.top*i+this.offset.parent.top*i-("fixed"===this.cssPosition?-this.offset.scroll.top:t?0:this.offset.scroll.top)*i,left:e.left+this.offset.relative.left*i+this.offset.parent.left*i-("fixed"===this.cssPosition?-this.offset.scroll.left:t?0:this.offset.scroll.left)*i}},_generatePosition:function(t,e){var i,n=this.options,s=this._isRootNode(this.scrollParent[0]),o=t.pageX,r=t.pageY;return s&&this.offset.scroll||(this.offset.scroll={top:this.scrollParent.scrollTop(),left:this.scrollParent.scrollLeft()}),e&&(this.containment&&(i=this.relativeContainer?(i=this.relativeContainer.offset(),[this.containment[0]+i.left,this.containment[1]+i.top,this.containment[2]+i.left,this.containment[3]+i.top]):this.containment,t.pageX-this.offset.click.left<i[0]&&(o=i[0]+this.offset.click.left),t.pageY-this.offset.click.top<i[1]&&(r=i[1]+this.offset.click.top),t.pageX-this.offset.click.left>i[2]&&(o=i[2]+this.offset.click.left),t.pageY-this.offset.click.top>i[3]&&(r=i[3]+this.offset.click.top)),n.grid&&(t=n.grid[1]?this.originalPageY+Math.round((r-this.originalPageY)/n.grid[1])*n.grid[1]:this.originalPageY,r=!i||t-this.offset.click.top>=i[1]||t-this.offset.click.top>i[3]?t:t-this.offset.click.top>=i[1]?t-n.grid[1]:t+n.grid[1],t=n.grid[0]?this.originalPageX+Math.round((o-this.originalPageX)/n.grid[0])*n.grid[0]:this.originalPageX,o=!i||t-this.offset.click.left>=i[0]||t-this.offset.click.left>i[2]?t:t-this.offset.click.left>=i[0]?t-n.grid[0]:t+n.grid[0]),"y"===n.axis&&(o=this.originalPageX),"x"===n.axis&&(r=this.originalPageY)),{top:r-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.offset.scroll.top:s?0:this.offset.scroll.top),left:o-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.offset.scroll.left:s?0:this.offset.scroll.left)}},_clear:function(){this._removeClass(this.helper,"ui-draggable-dragging"),this.helper[0]===this.element[0]||this.cancelHelperRemoval||this.helper.remove(),this.helper=null,this.cancelHelperRemoval=!1,this.destroyOnClear&&this.destroy()},_trigger:function(e,i,n){return n=n||this._uiHash(),t.ui.plugin.call(this,e,[i,n,this],!0),/^(drag|start|stop)/.test(e)&&(this.positionAbs=this._convertPositionTo("absolute"),n.offset=this.positionAbs),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,n){var s=t.extend({},i,{item:n.element});n.sortables=[],t(n.options.connectToSortable).each((function(){var i=t(this).sortable("instance");i&&!i.options.disabled&&(n.sortables.push(i),i.refreshPositions(),i._trigger("activate",e,s))}))},stop:function(e,i,n){var s=t.extend({},i,{item:n.element});n.cancelHelperRemoval=!1,t.each(n.sortables,(function(){var t=this;t.isOver?(t.isOver=0,n.cancelHelperRemoval=!0,t.cancelHelperRemoval=!1,t._storedCSS={position:t.placeholder.css("position"),top:t.placeholder.css("top"),left:t.placeholder.css("left")},t._mouseStop(e),t.options.helper=t.options._helper):(t.cancelHelperRemoval=!0,t._trigger("deactivate",e,s))}))},drag:function(e,i,n){t.each(n.sortables,(function(){var s=!1,o=this;o.positionAbs=n.positionAbs,o.helperProportions=n.helperProportions,o.offset.click=n.offset.click,o._intersectsWith(o.containerCache)&&(s=!0,t.each(n.sortables,(function(){return this.positionAbs=n.positionAbs,this.helperProportions=n.helperProportions,this.offset.click=n.offset.click,s=(this===o||!this._intersectsWith(this.containerCache)||!t.contains(o.element[0],this.element[0]))&&s}))),s?(o.isOver||(o.isOver=1,n._parent=i.helper.parent(),o.currentItem=i.helper.appendTo(o.element).data("ui-sortable-item",!0),o.options._helper=o.options.helper,o.options.helper=function(){return i.helper[0]},e.target=o.currentItem[0],o._mouseCapture(e,!0),o._mouseStart(e,!0,!0),o.offset.click.top=n.offset.click.top,o.offset.click.left=n.offset.click.left,o.offset.parent.left-=n.offset.parent.left-o.offset.parent.left,o.offset.parent.top-=n.offset.parent.top-o.offset.parent.top,n._trigger("toSortable",e),n.dropped=o.element,t.each(n.sortables,(function(){this.refreshPositions()})),n.currentItem=n.element,o.fromOutside=n),o.currentItem&&(o._mouseDrag(e),i.position=o.position)):o.isOver&&(o.isOver=0,o.cancelHelperRemoval=!0,o.options._revert=o.options.revert,o.options.revert=!1,o._trigger("out",e,o._uiHash(o)),o._mouseStop(e,!0),o.options.revert=o.options._revert,o.options.helper=o.options._helper,o.placeholder&&o.placeholder.remove(),i.helper.appendTo(n._parent),n._refreshOffsets(e),i.position=n._generatePosition(e,!0),n._trigger("fromSortable",e),n.dropped=!1,t.each(n.sortables,(function(){this.refreshPositions()})))}))}}),t.ui.plugin.add("draggable","cursor",{start:function(e,i,n){var s=t("body");n=n.options;s.css("cursor")&&(n._cursor=s.css("cursor")),s.css("cursor",n.cursor)},stop:function(e,i,n){(n=n.options)._cursor&&t("body").css("cursor",n._cursor)}}),t.ui.plugin.add("draggable","opacity",{start:function(e,i,n){i=t(i.helper),n=n.options,i.css("opacity")&&(n._opacity=i.css("opacity")),i.css("opacity",n.opacity)},stop:function(e,i,n){(n=n.options)._opacity&&t(i.helper).css("opacity",n._opacity)}}),t.ui.plugin.add("draggable","scroll",{start:function(t,e,i){i.scrollParentNotHidden||(i.scrollParentNotHidden=i.helper.scrollParent(!1)),i.scrollParentNotHidden[0]!==i.document[0]&&"HTML"!==i.scrollParentNotHidden[0].tagName&&(i.overflowOffset=i.scrollParentNotHidden.offset())},drag:function(e,i,n){var s=n.options,o=!1,r=n.scrollParentNotHidden[0],a=n.document[0];r!==a&&"HTML"!==r.tagName?(s.axis&&"x"===s.axis||(n.overflowOffset.top+r.offsetHeight-e.pageY<s.scrollSensitivity?r.scrollTop=o=r.scrollTop+s.scrollSpeed:e.pageY-n.overflowOffset.top<s.scrollSensitivity&&(r.scrollTop=o=r.scrollTop-s.scrollSpeed)),s.axis&&"y"===s.axis||(n.overflowOffset.left+r.offsetWidth-e.pageX<s.scrollSensitivity?r.scrollLeft=o=r.scrollLeft+s.scrollSpeed:e.pageX-n.overflowOffset.left<s.scrollSensitivity&&(r.scrollLeft=o=r.scrollLeft-s.scrollSpeed))):(s.axis&&"x"===s.axis||(e.pageY-t(a).scrollTop()<s.scrollSensitivity?o=t(a).scrollTop(t(a).scrollTop()-s.scrollSpeed):t(window).height()-(e.pageY-t(a).scrollTop())<s.scrollSensitivity&&(o=t(a).scrollTop(t(a).scrollTop()+s.scrollSpeed))),s.axis&&"y"===s.axis||(e.pageX-t(a).scrollLeft()<s.scrollSensitivity?o=t(a).scrollLeft(t(a).scrollLeft()-s.scrollSpeed):t(window).width()-(e.pageX-t(a).scrollLeft())<s.scrollSensitivity&&(o=t(a).scrollLeft(t(a).scrollLeft()+s.scrollSpeed)))),!1!==o&&t.ui.ddmanager&&!s.dropBehaviour&&t.ui.ddmanager.prepareOffsets(n,e)}}),t.ui.plugin.add("draggable","snap",{start:function(e,i,n){var s=n.options;n.snapElements=[],t(s.snap.constructor!==String?s.snap.items||":data(ui-draggable)":s.snap).each((function(){var e=t(this),i=e.offset();this!==n.element[0]&&n.snapElements.push({item:this,width:e.outerWidth(),height:e.outerHeight(),top:i.top,left:i.left})}))},drag:function(e,i,n){for(var s,o,r,a,l,c,u,h,d,p=n.options,f=p.snapTolerance,m=i.offset.left,g=m+n.helperProportions.width,v=i.offset.top,y=v+n.helperProportions.height,b=n.snapElements.length-1;0<=b;b--)c=(l=n.snapElements[b].left-n.margins.left)+n.snapElements[b].width,h=(u=n.snapElements[b].top-n.margins.top)+n.snapElements[b].height,g<l-f||c+f<m||y<u-f||h+f<v||!t.contains(n.snapElements[b].item.ownerDocument,n.snapElements[b].item)?(n.snapElements[b].snapping&&n.options.snap.release&&n.options.snap.release.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=!1):("inner"!==p.snapMode&&(s=Math.abs(u-y)<=f,o=Math.abs(h-v)<=f,r=Math.abs(l-g)<=f,a=Math.abs(c-m)<=f,s&&(i.position.top=n._convertPositionTo("relative",{top:u-n.helperProportions.height,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l-n.helperProportions.width}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c}).left)),d=s||o||r||a,"outer"!==p.snapMode&&(s=Math.abs(u-v)<=f,o=Math.abs(h-y)<=f,r=Math.abs(l-m)<=f,a=Math.abs(c-g)<=f,s&&(i.position.top=n._convertPositionTo("relative",{top:u,left:0}).top),o&&(i.position.top=n._convertPositionTo("relative",{top:h-n.helperProportions.height,left:0}).top),r&&(i.position.left=n._convertPositionTo("relative",{top:0,left:l}).left),a&&(i.position.left=n._convertPositionTo("relative",{top:0,left:c-n.helperProportions.width}).left)),!n.snapElements[b].snapping&&(s||o||r||a||d)&&n.options.snap.snap&&n.options.snap.snap.call(n.element,e,t.extend(n._uiHash(),{snapItem:n.snapElements[b].item})),n.snapElements[b].snapping=s||o||r||a||d)}}),t.ui.plugin.add("draggable","stack",{start:function(e,i,n){var s;n=n.options,n=t.makeArray(t(n.stack)).sort((function(e,i){return(parseInt(t(e).css("zIndex"),10)||0)-(parseInt(t(i).css("zIndex"),10)||0)}));n.length&&(s=parseInt(t(n[0]).css("zIndex"),10)||0,t(n).each((function(e){t(this).css("zIndex",s+e)})),this.css("zIndex",s+n.length))}}),t.ui.plugin.add("draggable","zIndex",{start:function(e,i,n){i=t(i.helper),n=n.options,i.css("zIndex")&&(n._zIndex=i.css("zIndex")),i.css("zIndex",n.zIndex)},stop:function(e,i,n){(n=n.options)._zIndex&&t(i.helper).css("zIndex",n._zIndex)}}),t.ui.draggable,t.widget("ui.resizable",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"resize",options:{alsoResize:!1,animate:!1,animateDuration:"slow",animateEasing:"swing",aspectRatio:!1,autoHide:!1,classes:{"ui-resizable-se":"ui-icon ui-icon-gripsmall-diagonal-se"},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},_num:function(t){return parseFloat(t)||0},_isNumber:function(t){return!isNaN(parseFloat(t))},_hasScroll:function(e,i){if("hidden"===t(e).css("overflow"))return!1;var n=i&&"left"===i?"scrollLeft":"scrollTop";i=!1;if(0<e[n])return!0;try{e[n]=1,i=0<e[n],e[n]=0}catch(e){}return i},_create:function(){var e,i=this.options,n=this;this._addClass("ui-resizable"),t.extend(this,{_aspectRatio:!!i.aspectRatio,aspectRatio:i.aspectRatio,originalElement:this.element,_proportionallyResizeElements:[],_helper:i.helper||i.ghost||i.animate?i.helper||"ui-resizable-helper":null}),this.element[0].nodeName.match(/^(canvas|textarea|input|select|button|img)$/i)&&(this.element.wrap(t("<div class='ui-wrapper'></div>").css({overflow:"hidden",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.resizable("instance")),this.elementIsWrapper=!0,e={marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom"),marginLeft:this.originalElement.css("marginLeft")},this.element.css(e),this.originalElement.css("margin",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(e),this._proportionallyResize()),this._setupHandles(),i.autoHide&&t(this.element).on("mouseenter",(function(){i.disabled||(n._removeClass("ui-resizable-autohide"),n._handles.show())})).on("mouseleave",(function(){i.disabled||n.resizing||(n._addClass("ui-resizable-autohide"),n._handles.hide())})),this._mouseInit()},_destroy:function(){function e(e){t(e).removeData("resizable").removeData("ui-resizable").off(".resizable")}var i;return this._mouseDestroy(),this._addedHandles.remove(),this.elementIsWrapper&&(e(this.element),i=this.element,this.originalElement.css({position:i.css("position"),width:i.outerWidth(),height:i.outerHeight(),top:i.css("top"),left:i.css("left")}).insertAfter(i),i.remove()),this.originalElement.css("resize",this.originalResizeStyle),e(this.originalElement),this},_setOption:function(t,e){switch(this._super(t,e),t){case"handles":this._removeHandles(),this._setupHandles();break;case"aspectRatio":this._aspectRatio=!!e}},_setupHandles:function(){var e,i,n,s,o,r=this.options,a=this;if(this.handles=r.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=t(),this._addedHandles=t(),this.handles.constructor===String)for("all"===this.handles&&(this.handles="n,e,s,w,se,sw,ne,nw"),n=this.handles.split(","),this.handles={},i=0;i<n.length;i++)s="ui-resizable-"+(e=String.prototype.trim.call(n[i])),o=t("<div>"),this._addClass(o,"ui-resizable-handle "+s),o.css({zIndex:r.zIndex}),this.handles[e]=".ui-resizable-"+e,this.element.children(this.handles[e]).length||(this.element.append(o),this._addedHandles=this._addedHandles.add(o));this._renderAxis=function(e){var i,n,s;for(i in e=e||this.element,this.handles)this.handles[i].constructor===String?this.handles[i]=this.element.children(this.handles[i]).first().show():(this.handles[i].jquery||this.handles[i].nodeType)&&(this.handles[i]=t(this.handles[i]),this._on(this.handles[i],{mousedown:a._mouseDown})),this.elementIsWrapper&&this.originalElement[0].nodeName.match(/^(textarea|input|select|button)$/i)&&(n=t(this.handles[i],this.element),s=/sw|ne|nw|se|n|s/.test(i)?n.outerHeight():n.outerWidth(),n=["padding",/ne|nw|n/.test(i)?"Top":/se|sw|s/.test(i)?"Bottom":/^e$/.test(i)?"Right":"Left"].join(""),e.css(n,s),this._proportionallyResize()),this._handles=this._handles.add(this.handles[i])},this._renderAxis(this.element),this._handles=this._handles.add(this.element.find(".ui-resizable-handle")),this._handles.disableSelection(),this._handles.on("mouseover",(function(){a.resizing||(this.className&&(o=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)),a.axis=o&&o[1]?o[1]:"se")})),r.autoHide&&(this._handles.hide(),this._addClass("ui-resizable-autohide"))},_removeHandles:function(){this._addedHandles.remove()},_mouseCapture:function(e){var i,n,s=!1;for(i in this.handles)(n=t(this.handles[i])[0])!==e.target&&!t.contains(n,e.target)||(s=!0);return!this.options.disabled&&s},_mouseStart:function(e){var i,n,s=this.options,o=this.element;return this.resizing=!0,this._renderProxy(),i=this._num(this.helper.css("left")),n=this._num(this.helper.css("top")),s.containment&&(i+=t(s.containment).scrollLeft()||0,n+=t(s.containment).scrollTop()||0),this.offset=this.helper.offset(),this.position={left:i,top:n},this.size=this._helper?{width:this.helper.width(),height:this.helper.height()}:{width:o.width(),height:o.height()},this.originalSize=this._helper?{width:o.outerWidth(),height:o.outerHeight()}:{width:o.width(),height:o.height()},this.sizeDiff={width:o.outerWidth()-o.width(),height:o.outerHeight()-o.height()},this.originalPosition={left:i,top:n},this.originalMousePosition={left:e.pageX,top:e.pageY},this.aspectRatio="number"==typeof s.aspectRatio?s.aspectRatio:this.originalSize.width/this.originalSize.height||1,s=t(".ui-resizable-"+this.axis).css("cursor"),t("body").css("cursor","auto"===s?this.axis+"-resize":s),this._addClass("ui-resizable-resizing"),this._propagate("start",e),!0},_mouseDrag:function(e){var i=this.originalMousePosition,n=this.axis,s=e.pageX-i.left||0;i=e.pageY-i.top||0,n=this._change[n];return this._updatePrevProperties(),n&&(i=n.apply(this,[e,s,i]),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),i=this._applyChanges(),!this._helper&&this._proportionallyResizeElements.length&&this._proportionallyResize(),t.isEmptyObject(i)||(this._updatePrevProperties(),this._trigger("resize",e,this.ui()),this._applyChanges())),!1},_mouseStop:function(e){this.resizing=!1;var i,n,s,o=this.options,r=this;return this._helper&&(s=(i=(n=this._proportionallyResizeElements).length&&/textarea/i.test(n[0].nodeName))&&this._hasScroll(n[0],"left")?0:r.sizeDiff.height,n=i?0:r.sizeDiff.width,i={width:r.helper.width()-n,height:r.helper.height()-s},n=parseFloat(r.element.css("left"))+(r.position.left-r.originalPosition.left)||null,s=parseFloat(r.element.css("top"))+(r.position.top-r.originalPosition.top)||null,o.animate||this.element.css(t.extend(i,{top:s,left:n})),r.helper.height(r.size.height),r.helper.width(r.size.width),this._helper&&!o.animate&&this._proportionallyResize()),t("body").css("cursor","auto"),this._removeClass("ui-resizable-resizing"),this._propagate("stop",e),this._helper&&this.helper.remove(),!1},_updatePrevProperties:function(){this.prevPosition={top:this.position.top,left:this.position.left},this.prevSize={width:this.size.width,height:this.size.height}},_applyChanges:function(){var t={};return this.position.top!==this.prevPosition.top&&(t.top=this.position.top+"px"),this.position.left!==this.prevPosition.left&&(t.left=this.position.left+"px"),this.size.width!==this.prevSize.width&&(t.width=this.size.width+"px"),this.size.height!==this.prevSize.height&&(t.height=this.size.height+"px"),this.helper.css(t),t},_updateVirtualBoundaries:function(t){var e,i,n=this.options,s={minWidth:this._isNumber(n.minWidth)?n.minWidth:0,maxWidth:this._isNumber(n.maxWidth)?n.maxWidth:1/0,minHeight:this._isNumber(n.minHeight)?n.minHeight:0,maxHeight:this._isNumber(n.maxHeight)?n.maxHeight:1/0};(this._aspectRatio||t)&&(e=s.minHeight*this.aspectRatio,i=s.minWidth/this.aspectRatio,n=s.maxHeight*this.aspectRatio,t=s.maxWidth/this.aspectRatio,e>s.minWidth&&(s.minWidth=e),i>s.minHeight&&(s.minHeight=i),n<s.maxWidth&&(s.maxWidth=n),t<s.maxHeight&&(s.maxHeight=t)),this._vBoundaries=s},_updateCache:function(t){this.offset=this.helper.offset(),this._isNumber(t.left)&&(this.position.left=t.left),this._isNumber(t.top)&&(this.position.top=t.top),this._isNumber(t.height)&&(this.size.height=t.height),this._isNumber(t.width)&&(this.size.width=t.width)},_updateRatio:function(t){var e=this.position,i=this.size,n=this.axis;return this._isNumber(t.height)?t.width=t.height*this.aspectRatio:this._isNumber(t.width)&&(t.height=t.width/this.aspectRatio),"sw"===n&&(t.left=e.left+(i.width-t.width),t.top=null),"nw"===n&&(t.top=e.top+(i.height-t.height),t.left=e.left+(i.width-t.width)),t},_respectSize:function(t){var e=this._vBoundaries,i=this.axis,n=this._isNumber(t.width)&&e.maxWidth&&e.maxWidth<t.width,s=this._isNumber(t.height)&&e.maxHeight&&e.maxHeight<t.height,o=this._isNumber(t.width)&&e.minWidth&&e.minWidth>t.width,r=this._isNumber(t.height)&&e.minHeight&&e.minHeight>t.height,a=this.originalPosition.left+this.originalSize.width,l=this.originalPosition.top+this.originalSize.height,c=/sw|nw|w/.test(i);i=/nw|ne|n/.test(i);return o&&(t.width=e.minWidth),r&&(t.height=e.minHeight),n&&(t.width=e.maxWidth),s&&(t.height=e.maxHeight),o&&c&&(t.left=a-e.minWidth),n&&c&&(t.left=a-e.maxWidth),r&&i&&(t.top=l-e.minHeight),s&&i&&(t.top=l-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},_getPaddingPlusBorderDimensions:function(t){for(var e=0,i=[],n=[t.css("borderTopWidth"),t.css("borderRightWidth"),t.css("borderBottomWidth"),t.css("borderLeftWidth")],s=[t.css("paddingTop"),t.css("paddingRight"),t.css("paddingBottom"),t.css("paddingLeft")];e<4;e++)i[e]=parseFloat(n[e])||0,i[e]+=parseFloat(s[e])||0;return{height:i[0]+i[2],width:i[1]+i[3]}},_proportionallyResize:function(){if(this._proportionallyResizeElements.length)for(var t,e=0,i=this.helper||this.element;e<this._proportionallyResizeElements.length;e++)t=this._proportionallyResizeElements[e],this.outerDimensions||(this.outerDimensions=this._getPaddingPlusBorderDimensions(t)),t.css({height:i.height()-this.outerDimensions.height||0,width:i.width()-this.outerDimensions.width||0})},_renderProxy:function(){var e=this.element,i=this.options;this.elementOffset=e.offset(),this._helper?(this.helper=this.helper||t("<div></div>").css({overflow:"hidden"}),this._addClass(this.helper,this._helper),this.helper.css({width:this.element.outerWidth(),height:this.element.outerHeight(),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).resizable("instance"),n=i.options,s=i._proportionallyResizeElements,o=(a=s.length&&/textarea/i.test(s[0].nodeName))&&i._hasScroll(s[0],"left")?0:i.sizeDiff.height,r=a?0:i.sizeDiff.width,a={width:i.size.width-r,height:i.size.height-o};r=parseFloat(i.element.css("left"))+(i.position.left-i.originalPosition.left)||null,o=parseFloat(i.element.css("top"))+(i.position.top-i.originalPosition.top)||null;i.element.animate(t.extend(a,o&&r?{top:o,left:r}:{}),{duration:n.animateDuration,easing:n.animateEasing,step:function(){var n={width:parseFloat(i.element.css("width")),height:parseFloat(i.element.css("height")),top:parseFloat(i.element.css("top")),left:parseFloat(i.element.css("left"))};s&&s.length&&t(s[0]).css({width:n.width,height:n.height}),i._updateCache(n),i._propagate("resize",e)}})}}),t.ui.plugin.add("resizable","containment",{start:function(){var e,i,n=t(this).resizable("instance"),s=n.options,o=n.element,r=s.containment,a=r instanceof t?r.get(0):/parent/.test(r)?o.parent().get(0):r;a&&(n.containerElement=t(a),/document/.test(r)||r===document?(n.containerOffset={left:0,top:0},n.containerPosition={left:0,top:0},n.parentData={element:t(document),left:0,top:0,width:t(document).width(),height:t(document).height()||document.body.parentNode.scrollHeight}):(e=t(a),i=[],t(["Top","Right","Left","Bottom"]).each((function(t,s){i[t]=n._num(e.css("padding"+s))})),n.containerOffset=e.offset(),n.containerPosition=e.position(),n.containerSize={height:e.innerHeight()-i[3],width:e.innerWidth()-i[1]},s=n.containerOffset,o=n.containerSize.height,r=n.containerSize.width,r=n._hasScroll(a,"left")?a.scrollWidth:r,o=n._hasScroll(a)?a.scrollHeight:o,n.parentData={element:a,left:s.left,top:s.top,width:r,height:o}))},resize:function(e){var i=t(this).resizable("instance"),n=i.options,s=i.containerOffset,o=i.position,r=i._aspectRatio||e.shiftKey,a={top:0,left:0},l=i.containerElement;e=!0;l[0]!==document&&/static/.test(l.css("position"))&&(a=s),o.left<(i._helper?s.left:0)&&(i.size.width=i.size.width+(i._helper?i.position.left-s.left:i.position.left-a.left),r&&(i.size.height=i.size.width/i.aspectRatio,e=!1),i.position.left=n.helper?s.left:0),o.top<(i._helper?s.top:0)&&(i.size.height=i.size.height+(i._helper?i.position.top-s.top:i.position.top),r&&(i.size.width=i.size.height*i.aspectRatio,e=!1),i.position.top=i._helper?s.top:0),n=i.containerElement.get(0)===i.element.parent().get(0),o=/relative|absolute/.test(i.containerElement.css("position")),n&&o?(i.offset.left=i.parentData.left+i.position.left,i.offset.top=i.parentData.top+i.position.top):(i.offset.left=i.element.offset().left,i.offset.top=i.element.offset().top),o=Math.abs(i.sizeDiff.width+(i._helper?i.offset.left-a.left:i.offset.left-s.left)),s=Math.abs(i.sizeDiff.height+(i._helper?i.offset.top-a.top:i.offset.top-s.top)),o+i.size.width>=i.parentData.width&&(i.size.width=i.parentData.width-o,r&&(i.size.height=i.size.width/i.aspectRatio,e=!1)),s+i.size.height>=i.parentData.height&&(i.size.height=i.parentData.height-s,r&&(i.size.width=i.size.height*i.aspectRatio,e=!1)),e||(i.position.left=i.prevPosition.left,i.position.top=i.prevPosition.top,i.size.width=i.prevSize.width,i.size.height=i.prevSize.height)},stop:function(){var e=t(this).resizable("instance"),i=e.options,n=e.containerOffset,s=e.containerPosition,o=e.containerElement,r=(l=t(e.helper)).offset(),a=l.outerWidth()-e.sizeDiff.width,l=l.outerHeight()-e.sizeDiff.height;e._helper&&!i.animate&&/relative/.test(o.css("position"))&&t(this).css({left:r.left-s.left-n.left,width:a,height:l}),e._helper&&!i.animate&&/static/.test(o.css("position"))&&t(this).css({left:r.left-s.left-n.left,width:a,height:l})}}),t.ui.plugin.add("resizable","alsoResize",{start:function(){var e=t(this).resizable("instance").options;t(e.alsoResize).each((function(){var e=t(this);e.data("ui-resizable-alsoresize",{width:parseFloat(e.width()),height:parseFloat(e.height()),left:parseFloat(e.css("left")),top:parseFloat(e.css("top"))})}))},resize:function(e,i){var n=t(this).resizable("instance"),s=n.options,o=n.originalSize,r=n.originalPosition,a={height:n.size.height-o.height||0,width:n.size.width-o.width||0,top:n.position.top-r.top||0,left:n.position.left-r.left||0};t(s.alsoResize).each((function(){var e=t(this),n=t(this).data("ui-resizable-alsoresize"),s={},o=e.parents(i.originalElement[0]).length?["width","height"]:["width","height","top","left"];t.each(o,(function(t,e){var i=(n[e]||0)+(a[e]||0);i&&0<=i&&(s[e]=i||null)})),e.css(s)}))},stop:function(){t(this).removeData("ui-resizable-alsoresize")}}),t.ui.plugin.add("resizable","ghost",{start:function(){var e=t(this).resizable("instance"),i=e.size;e.ghost=e.originalElement.clone(),e.ghost.css({opacity:.25,display:"block",position:"relative",height:i.height,width:i.width,margin:0,left:0,top:0}),e._addClass(e.ghost,"ui-resizable-ghost"),!1!==t.uiBackCompat&&"string"==typeof e.options.ghost&&e.ghost.addClass(this.options.ghost),e.ghost.appendTo(e.helper)},resize:function(){var e=t(this).resizable("instance");e.ghost&&e.ghost.css({position:"relative",height:e.size.height,width:e.size.width})},stop:function(){var e=t(this).resizable("instance");e.ghost&&e.helper&&e.helper.get(0).removeChild(e.ghost.get(0))}}),t.ui.plugin.add("resizable","grid",{resize:function(){var e,i=t(this).resizable("instance"),n=i.options,s=i.size,o=i.originalSize,r=i.originalPosition,a=i.axis,l="number"==typeof n.grid?[n.grid,n.grid]:n.grid,c=l[0]||1,u=l[1]||1,h=Math.round((s.width-o.width)/c)*c,d=Math.round((s.height-o.height)/u)*u,p=o.width+h,f=o.height+d,m=n.maxWidth&&n.maxWidth<p,g=n.maxHeight&&n.maxHeight<f,v=n.minWidth&&n.minWidth>p;s=n.minHeight&&n.minHeight>f;n.grid=l,v&&(p+=c),s&&(f+=u),m&&(p-=c),g&&(f-=u),/^(se|s|e)$/.test(a)?(i.size.width=p,i.size.height=f):/^(ne)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.top=r.top-d):/^(sw)$/.test(a)?(i.size.width=p,i.size.height=f,i.position.left=r.left-h):((f-u<=0||p-c<=0)&&(e=i._getPaddingPlusBorderDimensions(this)),0<f-u?(i.size.height=f,i.position.top=r.top-d):(f=u-e.height,i.size.height=f,i.position.top=r.top+o.height-f),0<p-c?(i.size.width=p,i.position.left=r.left-h):(p=c-e.width,i.size.width=p,i.position.left=r.left+o.width-p))}}),t.ui.resizable,t.widget("ui.dialog",{version:"1.13.2",options:{appendTo:"body",autoOpen:!0,buttons:[],classes:{"ui-dialog":"ui-corner-all","ui-dialog-titlebar":"ui-corner-all"},closeOnEscape:!0,closeText:"Close",draggable:!0,hide:null,height:"auto",maxHeight:null,maxWidth:null,minHeight:150,minWidth:150,modal:!1,position:{my:"center",at:"center",of:window,collision:"fit",using:function(e){var i=t(this).css(e).offset().top;i<0&&t(this).css("top",e.top-i)}},resizable:!0,show:null,title:null,width:300,beforeClose:null,close:null,drag:null,dragStart:null,dragStop:null,focus:null,open:null,resize:null,resizeStart:null,resizeStop:null},sizeRelatedOptions:{buttons:!0,height:!0,maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0,width:!0},resizableRelatedOptions:{maxHeight:!0,maxWidth:!0,minHeight:!0,minWidth:!0},_create:function(){this.originalCss={display:this.element[0].style.display,width:this.element[0].style.width,minHeight:this.element[0].style.minHeight,maxHeight:this.element[0].style.maxHeight,height:this.element[0].style.height},this.originalPosition={parent:this.element.parent(),index:this.element.parent().children().index(this.element)},this.originalTitle=this.element.attr("title"),null==this.options.title&&null!=this.originalTitle&&(this.options.title=this.originalTitle),this.options.disabled&&(this.options.disabled=!1),this._createWrapper(),this.element.show().removeAttr("title").appendTo(this.uiDialog),this._addClass("ui-dialog-content","ui-widget-content"),this._createTitlebar(),this._createButtonPane(),this.options.draggable&&t.fn.draggable&&this._makeDraggable(),this.options.resizable&&t.fn.resizable&&this._makeResizable(),this._isOpen=!1,this._trackFocus()},_init:function(){this.options.autoOpen&&this.open()},_appendTo:function(){var e=this.options.appendTo;return e&&(e.jquery||e.nodeType)?t(e):this.document.find(e||"body").eq(0)},_destroy:function(){var t,e=this.originalPosition;this._untrackInstance(),this._destroyOverlay(),this.element.removeUniqueId().css(this.originalCss).detach(),this.uiDialog.remove(),this.originalTitle&&this.element.attr("title",this.originalTitle),(t=e.parent.children().eq(e.index)).length&&t[0]!==this.element[0]?t.before(this.element):e.parent.append(this.element)},widget:function(){return this.uiDialog},disable:t.noop,enable:t.noop,close:function(e){var i=this;this._isOpen&&!1!==this._trigger("beforeClose",e)&&(this._isOpen=!1,this._focusedElement=null,this._destroyOverlay(),this._untrackInstance(),this.opener.filter(":focusable").trigger("focus").length||t.ui.safeBlur(t.ui.safeActiveElement(this.document[0])),this._hide(this.uiDialog,this.options.hide,(function(){i._trigger("close",e)})))},isOpen:function(){return this._isOpen},moveToTop:function(){this._moveToTop()},_moveToTop:function(e,i){var n=!1,s=this.uiDialog.siblings(".ui-front:visible").map((function(){return+t(this).css("z-index")})).get();return(s=Math.max.apply(null,s))>=+this.uiDialog.css("z-index")&&(this.uiDialog.css("z-index",s+1),n=!0),n&&!i&&this._trigger("focus",e),n},open:function(){var e=this;this._isOpen?this._moveToTop()&&this._focusTabbable():(this._isOpen=!0,this.opener=t(t.ui.safeActiveElement(this.document[0])),this._size(),this._position(),this._createOverlay(),this._moveToTop(null,!0),this.overlay&&this.overlay.css("z-index",this.uiDialog.css("z-index")-1),this._show(this.uiDialog,this.options.show,(function(){e._focusTabbable(),e._trigger("focus")})),this._makeFocusTarget(),this._trigger("open"))},_focusTabbable:function(){var t=this._focusedElement;(t=(t=(t=(t=(t=t||this.element.find("[autofocus]")).length?t:this.element.find(":tabbable")).length?t:this.uiDialogButtonPane.find(":tabbable")).length?t:this.uiDialogTitlebarClose.filter(":tabbable")).length?t:this.uiDialog).eq(0).trigger("focus")},_restoreTabbableFocus:function(){var e=t.ui.safeActiveElement(this.document[0]);this.uiDialog[0]===e||t.contains(this.uiDialog[0],e)||this._focusTabbable()},_keepFocus:function(t){t.preventDefault(),this._restoreTabbableFocus(),this._delay(this._restoreTabbableFocus)},_createWrapper:function(){this.uiDialog=t("<div>").hide().attr({tabIndex:-1,role:"dialog"}).appendTo(this._appendTo()),this._addClass(this.uiDialog,"ui-dialog","ui-widget ui-widget-content ui-front"),this._on(this.uiDialog,{keydown:function(e){if(this.options.closeOnEscape&&!e.isDefaultPrevented()&&e.keyCode&&e.keyCode===t.ui.keyCode.ESCAPE)return e.preventDefault(),void this.close(e);var i,n,s;e.keyCode!==t.ui.keyCode.TAB||e.isDefaultPrevented()||(i=this.uiDialog.find(":tabbable"),n=i.first(),s=i.last(),e.target!==s[0]&&e.target!==this.uiDialog[0]||e.shiftKey?e.target!==n[0]&&e.target!==this.uiDialog[0]||!e.shiftKey||(this._delay((function(){s.trigger("focus")})),e.preventDefault()):(this._delay((function(){n.trigger("focus")})),e.preventDefault()))},mousedown:function(t){this._moveToTop(t)&&this._focusTabbable()}}),this.element.find("[aria-describedby]").length||this.uiDialog.attr({"aria-describedby":this.element.uniqueId().attr("id")})},_createTitlebar:function(){var e;this.uiDialogTitlebar=t("<div>"),this._addClass(this.uiDialogTitlebar,"ui-dialog-titlebar","ui-widget-header ui-helper-clearfix"),this._on(this.uiDialogTitlebar,{mousedown:function(e){t(e.target).closest(".ui-dialog-titlebar-close")||this.uiDialog.trigger("focus")}}),this.uiDialogTitlebarClose=t("<button type='button'></button>").button({label:t("<a>").text(this.options.closeText).html(),icon:"ui-icon-closethick",showLabel:!1}).appendTo(this.uiDialogTitlebar),this._addClass(this.uiDialogTitlebarClose,"ui-dialog-titlebar-close"),this._on(this.uiDialogTitlebarClose,{click:function(t){t.preventDefault(),this.close(t)}}),e=t("<span>").uniqueId().prependTo(this.uiDialogTitlebar),this._addClass(e,"ui-dialog-title"),this._title(e),this.uiDialogTitlebar.prependTo(this.uiDialog),this.uiDialog.attr({"aria-labelledby":e.attr("id")})},_title:function(t){this.options.title?t.text(this.options.title):t.html(" ")},_createButtonPane:function(){this.uiDialogButtonPane=t("<div>"),this._addClass(this.uiDialogButtonPane,"ui-dialog-buttonpane","ui-widget-content ui-helper-clearfix"),this.uiButtonSet=t("<div>").appendTo(this.uiDialogButtonPane),this._addClass(this.uiButtonSet,"ui-dialog-buttonset"),this._createButtons()},_createButtons:function(){var e=this,i=this.options.buttons;this.uiDialogButtonPane.remove(),this.uiButtonSet.empty(),t.isEmptyObject(i)||Array.isArray(i)&&!i.length?this._removeClass(this.uiDialog,"ui-dialog-buttons"):(t.each(i,(function(i,n){var s;n=t.extend({type:"button"},n="function"==typeof n?{click:n,text:i}:n),s=n.click,i={icon:n.icon,iconPosition:n.iconPosition,showLabel:n.showLabel,icons:n.icons,text:n.text},delete n.click,delete n.icon,delete n.iconPosition,delete n.showLabel,delete n.icons,"boolean"==typeof n.text&&delete n.text,t("<button></button>",n).button(i).appendTo(e.uiButtonSet).on("click",(function(){s.apply(e.element[0],arguments)}))})),this._addClass(this.uiDialog,"ui-dialog-buttons"),this.uiDialogButtonPane.appendTo(this.uiDialog))},_makeDraggable:function(){var e=this,i=this.options;function n(t){return{position:t.position,offset:t.offset}}this.uiDialog.draggable({cancel:".ui-dialog-content, .ui-dialog-titlebar-close",handle:".ui-dialog-titlebar",containment:"document",start:function(i,s){e._addClass(t(this),"ui-dialog-dragging"),e._blockFrames(),e._trigger("dragStart",i,n(s))},drag:function(t,i){e._trigger("drag",t,n(i))},stop:function(s,o){var r=o.offset.left-e.document.scrollLeft(),a=o.offset.top-e.document.scrollTop();i.position={my:"left top",at:"left"+(0<=r?"+":"")+r+" top"+(0<=a?"+":"")+a,of:e.window},e._removeClass(t(this),"ui-dialog-dragging"),e._unblockFrames(),e._trigger("dragStop",s,n(o))}})},_makeResizable:function(){var e=this,i=this.options,n=i.resizable,s=this.uiDialog.css("position");n="string"==typeof n?n:"n,e,s,w,se,sw,ne,nw";function o(t){return{originalPosition:t.originalPosition,originalSize:t.originalSize,position:t.position,size:t.size}}this.uiDialog.resizable({cancel:".ui-dialog-content",containment:"document",alsoResize:this.element,maxWidth:i.maxWidth,maxHeight:i.maxHeight,minWidth:i.minWidth,minHeight:this._minHeight(),handles:n,start:function(i,n){e._addClass(t(this),"ui-dialog-resizing"),e._blockFrames(),e._trigger("resizeStart",i,o(n))},resize:function(t,i){e._trigger("resize",t,o(i))},stop:function(n,s){var r=(a=e.uiDialog.offset()).left-e.document.scrollLeft(),a=a.top-e.document.scrollTop();i.height=e.uiDialog.height(),i.width=e.uiDialog.width(),i.position={my:"left top",at:"left"+(0<=r?"+":"")+r+" top"+(0<=a?"+":"")+a,of:e.window},e._removeClass(t(this),"ui-dialog-resizing"),e._unblockFrames(),e._trigger("resizeStop",n,o(s))}}).css("position",s)},_trackFocus:function(){this._on(this.widget(),{focusin:function(e){this._makeFocusTarget(),this._focusedElement=t(e.target)}})},_makeFocusTarget:function(){this._untrackInstance(),this._trackingInstances().unshift(this)},_untrackInstance:function(){var e=this._trackingInstances(),i=t.inArray(this,e);-1!==i&&e.splice(i,1)},_trackingInstances:function(){var t=this.document.data("ui-dialog-instances");return t||this.document.data("ui-dialog-instances",t=[]),t},_minHeight:function(){var t=this.options;return"auto"===t.height?t.minHeight:Math.min(t.minHeight,t.height)},_position:function(){var t=this.uiDialog.is(":visible");t||this.uiDialog.show(),this.uiDialog.position(this.options.position),t||this.uiDialog.hide()},_setOptions:function(e){var i=this,n=!1,s={};t.each(e,(function(t,e){i._setOption(t,e),t in i.sizeRelatedOptions&&(n=!0),t in i.resizableRelatedOptions&&(s[t]=e)})),n&&(this._size(),this._position()),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option",s)},_setOption:function(e,i){var n,s=this.uiDialog;"disabled"!==e&&(this._super(e,i),"appendTo"===e&&this.uiDialog.appendTo(this._appendTo()),"buttons"===e&&this._createButtons(),"closeText"===e&&this.uiDialogTitlebarClose.button({label:t("<a>").text(""+this.options.closeText).html()}),"draggable"===e&&((n=s.is(":data(ui-draggable)"))&&!i&&s.draggable("destroy"),!n&&i&&this._makeDraggable()),"position"===e&&this._position(),"resizable"===e&&((n=s.is(":data(ui-resizable)"))&&!i&&s.resizable("destroy"),n&&"string"==typeof i&&s.resizable("option","handles",i),n||!1===i||this._makeResizable()),"title"===e&&this._title(this.uiDialogTitlebar.find(".ui-dialog-title")))},_size:function(){var t,e,i,n=this.options;this.element.show().css({width:"auto",minHeight:0,maxHeight:"none",height:0}),n.minWidth>n.width&&(n.width=n.minWidth),t=this.uiDialog.css({height:"auto",width:n.width}).outerHeight(),e=Math.max(0,n.minHeight-t),i="number"==typeof n.maxHeight?Math.max(0,n.maxHeight-t):"none","auto"===n.height?this.element.css({minHeight:e,maxHeight:i,height:"auto"}):this.element.height(Math.max(0,n.height-t)),this.uiDialog.is(":data(ui-resizable)")&&this.uiDialog.resizable("option","minHeight",this._minHeight())},_blockFrames:function(){this.iframeBlocks=this.document.find("iframe").map((function(){var e=t(this);return t("<div>").css({position:"absolute",width:e.outerWidth(),height:e.outerHeight()}).appendTo(e.parent()).offset(e.offset())[0]}))},_unblockFrames:function(){this.iframeBlocks&&(this.iframeBlocks.remove(),delete this.iframeBlocks)},_allowInteraction:function(e){return!!t(e.target).closest(".ui-dialog").length||!!t(e.target).closest(".ui-datepicker").length},_createOverlay:function(){var e,i;this.options.modal&&(e=t.fn.jquery.substring(0,4),i=!0,this._delay((function(){i=!1})),this.document.data("ui-dialog-overlays")||this.document.on("focusin.ui-dialog",function(t){var n;i||(n=this._trackingInstances()[0])._allowInteraction(t)||(t.preventDefault(),n._focusTabbable(),"3.4."!==e&&"3.5."!==e||n._delay(n._restoreTabbableFocus))}.bind(this)),this.overlay=t("<div>").appendTo(this._appendTo()),this._addClass(this.overlay,null,"ui-widget-overlay ui-front"),this._on(this.overlay,{mousedown:"_keepFocus"}),this.document.data("ui-dialog-overlays",(this.document.data("ui-dialog-overlays")||0)+1))},_destroyOverlay:function(){var t;this.options.modal&&this.overlay&&((t=this.document.data("ui-dialog-overlays")-1)?this.document.data("ui-dialog-overlays",t):(this.document.off("focusin.ui-dialog"),this.document.removeData("ui-dialog-overlays")),this.overlay.remove(),this.overlay=null)}}),!1!==t.uiBackCompat&&t.widget("ui.dialog",t.ui.dialog,{options:{dialogClass:""},_createWrapper:function(){this._super(),this.uiDialog.addClass(this.options.dialogClass)},_setOption:function(t,e){"dialogClass"===t&&this.uiDialog.removeClass(this.options.dialogClass).addClass(e),this._superApply(arguments)}}),t.ui.dialog,t.widget("ui.droppable",{version:"1.13.2",widgetEventPrefix:"drop",options:{accept:"*",addClasses:!0,greedy:!1,scope:"default",tolerance:"intersect",activate:null,deactivate:null,drop:null,out:null,over:null},_create:function(){var t,e=this.options,i=e.accept;this.isover=!1,this.isout=!0,this.accept="function"==typeof i?i:function(t){return t.is(i)},this.proportions=function(){if(!arguments.length)return t=t||{width:this.element[0].offsetWidth,height:this.element[0].offsetHeight};t=arguments[0]},this._addToManager(e.scope),e.addClasses&&this._addClass("ui-droppable")},_addToManager:function(e){t.ui.ddmanager.droppables[e]=t.ui.ddmanager.droppables[e]||[],t.ui.ddmanager.droppables[e].push(this)},_splice:function(t){for(var e=0;e<t.length;e++)t[e]===this&&t.splice(e,1)},_destroy:function(){var e=t.ui.ddmanager.droppables[this.options.scope];this._splice(e)},_setOption:function(e,i){var n;"accept"===e?this.accept="function"==typeof i?i:function(t){return t.is(i)}:"scope"===e&&(n=t.ui.ddmanager.droppables[this.options.scope],this._splice(n),this._addToManager(i)),this._super(e,i)},_activate:function(e){var i=t.ui.ddmanager.current;this._addActiveClass(),i&&this._trigger("activate",e,this.ui(i))},_deactivate:function(e){var i=t.ui.ddmanager.current;this._removeActiveClass(),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._addHoverClass(),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._removeHoverClass(),this._trigger("out",e,this.ui(i)))},_drop:function(e,i){var n=i||t.ui.ddmanager.current,s=!1;return!(!n||(n.currentItem||n.element)[0]===this.element[0])&&(this.element.find(":data(ui-droppable)").not(".ui-draggable-dragging").each((function(){var i=t(this).droppable("instance");if(i.options.greedy&&!i.options.disabled&&i.options.scope===n.options.scope&&i.accept.call(i.element[0],n.currentItem||n.element)&&t.ui.intersect(n,t.extend(i,{offset:i.element.offset()}),i.options.tolerance,e))return!(s=!0)})),!s&&!!this.accept.call(this.element[0],n.currentItem||n.element)&&(this._removeActiveClass(),this._removeHoverClass(),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}},_addHoverClass:function(){this._addClass("ui-droppable-hover")},_removeHoverClass:function(){this._removeClass("ui-droppable-hover")},_addActiveClass:function(){this._addClass("ui-droppable-active")},_removeActiveClass:function(){this._removeClass("ui-droppable-active")}}),t.ui.intersect=function(t,e,i,n){if(!e.offset)return!1;var s=(t.positionAbs||t.position.absolute).left+t.margins.left,o=(t.positionAbs||t.position.absolute).top+t.margins.top,r=s+t.helperProportions.width,a=o+t.helperProportions.height,l=e.offset.left,c=e.offset.top,u=l+e.proportions().width,h=c+e.proportions().height;switch(i){case"fit":return l<=s&&r<=u&&c<=o&&a<=h;case"intersect":return l<s+t.helperProportions.width/2&&r-t.helperProportions.width/2<u&&c<o+t.helperProportions.height/2&&a-t.helperProportions.height/2<h;case"pointer":return ct(n.pageY,c,e.proportions().height)&&ct(n.pageX,l,e.proportions().width);case"touch":return(c<=o&&o<=h||c<=a&&a<=h||o<c&&h<a)&&(l<=s&&s<=u||l<=r&&r<=u||s<l&&u<r);default:return!1}},!(t.ui.ddmanager={current:null,droppables:{default:[]},prepareOffsets:function(e,i){var n,s,o=t.ui.ddmanager.droppables[e.options.scope]||[],r=i?i.type:null,a=(e.currentItem||e.element).find(":data(ui-droppable)").addBack();t:for(n=0;n<o.length;n++)if(!(o[n].options.disabled||e&&!o[n].accept.call(o[n].element[0],e.currentItem||e.element))){for(s=0;s<a.length;s++)if(a[s]===o[n].element[0]){o[n].proportions().height=0;continue t}o[n].visible="none"!==o[n].element.css("display"),o[n].visible&&("mousedown"===r&&o[n]._activate.call(o[n],i),o[n].offset=o[n].element.offset(),o[n].proportions({width:o[n].element[0].offsetWidth,height:o[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,i)&&(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").on("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(){var n,s,o,r;this.options.disabled||this.greedyChild||!this.visible||(r=!(o=t.ui.intersect(e,this,this.options.tolerance,i))&&this.isover?"isout":o&&!this.isover?"isover":null)&&(this.options.greedy&&(s=this.options.scope,(o=this.element.parents(":data(ui-droppable)").filter((function(){return t(this).droppable("instance").options.scope===s}))).length&&((n=t(o[0]).droppable("instance")).greedyChild="isover"===r)),n&&"isover"===r&&(n.isover=!1,n.isout=!0,n._out.call(n,i)),this[r]=!0,this["isout"===r?"isover":"isout"]=!1,this["isover"===r?"_over":"_out"].call(this,i),n&&"isout"===r&&(n.isout=!1,n.isover=!0,n._over.call(n,i)))}))},dragStop:function(e,i){e.element.parentsUntil("body").off("scroll.droppable"),e.options.refreshPositions||t.ui.ddmanager.prepareOffsets(e,i)}})!==t.uiBackCompat&&t.widget("ui.droppable",t.ui.droppable,{options:{hoverClass:!1,activeClass:!1},_addActiveClass:function(){this._super(),this.options.activeClass&&this.element.addClass(this.options.activeClass)},_removeActiveClass:function(){this._super(),this.options.activeClass&&this.element.removeClass(this.options.activeClass)},_addHoverClass:function(){this._super(),this.options.hoverClass&&this.element.addClass(this.options.hoverClass)},_removeHoverClass:function(){this._super(),this.options.hoverClass&&this.element.removeClass(this.options.hoverClass)}}),t.ui.droppable,t.widget("ui.progressbar",{version:"1.13.2",options:{classes:{"ui-progressbar":"ui-corner-all","ui-progressbar-value":"ui-corner-left","ui-progressbar-complete":"ui-corner-right"},max:100,value:0,change:null,complete:null},min:0,_create:function(){this.oldValue=this.options.value=this._constrainedValue(),this.element.attr({role:"progressbar","aria-valuemin":this.min}),this._addClass("ui-progressbar","ui-widget ui-widget-content"),this.valueDiv=t("<div>").appendTo(this.element),this._addClass(this.valueDiv,"ui-progressbar-value","ui-widget-header"),this._refreshValue()},_destroy:function(){this.element.removeAttr("role aria-valuemin aria-valuemax aria-valuenow"),this.valueDiv.remove()},value:function(t){if(void 0===t)return this.options.value;this.options.value=this._constrainedValue(t),this._refreshValue()},_constrainedValue:function(t){return void 0===t&&(t=this.options.value),this.indeterminate=!1===t,"number"!=typeof t&&(t=0),!this.indeterminate&&Math.min(this.options.max,Math.max(this.min,t))},_setOptions:function(t){var e=t.value;delete t.value,this._super(t),this.options.value=this._constrainedValue(e),this._refreshValue()},_setOption:function(t,e){"max"===t&&(e=Math.max(this.min,e)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this.element.attr("aria-disabled",t),this._toggleClass(null,"ui-state-disabled",!!t)},_percentage:function(){return this.indeterminate?100:100*(this.options.value-this.min)/(this.options.max-this.min)},_refreshValue:function(){var e=this.options.value,i=this._percentage();this.valueDiv.toggle(this.indeterminate||e>this.min).width(i.toFixed(0)+"%"),this._toggleClass(this.valueDiv,"ui-progressbar-complete",null,e===this.options.max)._toggleClass("ui-progressbar-indeterminate",null,this.indeterminate),this.indeterminate?(this.element.removeAttr("aria-valuenow"),this.overlayDiv||(this.overlayDiv=t("<div>").appendTo(this.valueDiv),this._addClass(this.overlayDiv,"ui-progressbar-overlay"))):(this.element.attr({"aria-valuemax":this.options.max,"aria-valuenow":e}),this.overlayDiv&&(this.overlayDiv.remove(),this.overlayDiv=null)),this.oldValue!==e&&(this.oldValue=e,this._trigger("change")),e===this.options.max&&this._trigger("complete")}}),t.widget("ui.selectable",t.ui.mouse,{version:"1.13.2",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=this;this._addClass("ui-selectable"),this.dragged=!1,this.refresh=function(){e.elementPos=t(e.element[0]).offset(),e.selectees=t(e.options.filter,e.element[0]),e._addClass(e.selectees,"ui-selectee"),e.selectees.each((function(){var i=t(this),n={left:(n=i.offset()).left-e.elementPos.left,top:n.top-e.elementPos.top};t.data(this,"selectable-item",{element:this,$element:i,left:n.left,top:n.top,right:n.left+i.outerWidth(),bottom:n.top+i.outerHeight(),startselected:!1,selected:i.hasClass("ui-selected"),selecting:i.hasClass("ui-selecting"),unselecting:i.hasClass("ui-unselecting")})}))},this.refresh(),this._mouseInit(),this.helper=t("<div>"),this._addClass(this.helper,"ui-selectable-helper")},_destroy:function(){this.selectees.removeData("selectable-item"),this._mouseDestroy()},_mouseStart:function(e){var i=this,n=this.options;this.opos=[e.pageX,e.pageY],this.elementPos=t(this.element[0]).offset(),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||(i._removeClass(n.$element,"ui-selected"),n.selected=!1,i._addClass(n.$element,"ui-unselecting"),n.unselecting=!0,i._trigger("unselecting",e,{unselecting:n.element}))})),t(e.target).parents().addBack().each((function(){var n,s=t.data(this,"selectable-item");if(s)return n=!e.metaKey&&!e.ctrlKey||!s.$element.hasClass("ui-selected"),i._removeClass(s.$element,n?"ui-unselecting":"ui-selected")._addClass(s.$element,n?"ui-selecting":"ui-unselecting"),s.unselecting=!n,s.selecting=n,(s.selected=n)?i._trigger("selecting",e,{selecting:s.element}):i._trigger("unselecting",e,{unselecting:s.element}),!1})))},_mouseDrag:function(e){if(this.dragged=!0,!this.options.disabled){var i,n=this,s=this.options,o=this.opos[0],r=this.opos[1],a=e.pageX,l=e.pageY;return a<o&&(i=a,a=o,o=i),l<r&&(i=l,l=r,r=i),this.helper.css({left:o,top:r,width:a-o,height:l-r}),this.selectees.each((function(){var i=t.data(this,"selectable-item"),c=!1,u={};i&&i.element!==n.element[0]&&(u.left=i.left+n.elementPos.left,u.right=i.right+n.elementPos.left,u.top=i.top+n.elementPos.top,u.bottom=i.bottom+n.elementPos.top,"touch"===s.tolerance?c=!(u.left>a||u.right<o||u.top>l||u.bottom<r):"fit"===s.tolerance&&(c=u.left>o&&u.right<a&&u.top>r&&u.bottom<l),c?(i.selected&&(n._removeClass(i.$element,"ui-selected"),i.selected=!1),i.unselecting&&(n._removeClass(i.$element,"ui-unselecting"),i.unselecting=!1),i.selecting||(n._addClass(i.$element,"ui-selecting"),i.selecting=!0,n._trigger("selecting",e,{selecting:i.element}))):(i.selecting&&((e.metaKey||e.ctrlKey)&&i.startselected?(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,n._addClass(i.$element,"ui-selected"),i.selected=!0):(n._removeClass(i.$element,"ui-selecting"),i.selecting=!1,i.startselected&&(n._addClass(i.$element,"ui-unselecting"),i.unselecting=!0),n._trigger("unselecting",e,{unselecting:i.element}))),i.selected&&(e.metaKey||e.ctrlKey||i.startselected||(n._removeClass(i.$element,"ui-selected"),i.selected=!1,n._addClass(i.$element,"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");i._removeClass(n.$element,"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");i._removeClass(n.$element,"ui-selecting")._addClass(n.$element,"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}}),t.widget("ui.selectmenu",[t.ui.formResetMixin,{version:"1.13.2",defaultElement:"<select>",options:{appendTo:null,classes:{"ui-selectmenu-button-open":"ui-corner-top","ui-selectmenu-button-closed":"ui-corner-all"},disabled:null,icons:{button:"ui-icon-triangle-1-s"},position:{my:"left top",at:"left bottom",collision:"none"},width:!1,change:null,close:null,focus:null,open:null,select:null},_create:function(){var e=this.element.uniqueId().attr("id");this.ids={element:e,button:e+"-button",menu:e+"-menu"},this._drawButton(),this._drawMenu(),this._bindFormResetHandler(),this._rendered=!1,this.menuItems=t()},_drawButton:function(){var e,i=this,n=this._parseOption(this.element.find("option:selected"),this.element[0].selectedIndex);this.labels=this.element.labels().attr("for",this.ids.button),this._on(this.labels,{click:function(t){this.button.trigger("focus"),t.preventDefault()}}),this.element.hide(),this.button=t("<span>",{tabindex:this.options.disabled?-1:0,id:this.ids.button,role:"combobox","aria-expanded":"false","aria-autocomplete":"list","aria-owns":this.ids.menu,"aria-haspopup":"true",title:this.element.attr("title")}).insertAfter(this.element),this._addClass(this.button,"ui-selectmenu-button ui-selectmenu-button-closed","ui-button ui-widget"),e=t("<span>").appendTo(this.button),this._addClass(e,"ui-selectmenu-icon","ui-icon "+this.options.icons.button),this.buttonItem=this._renderButtonItem(n).appendTo(this.button),!1!==this.options.width&&this._resizeButton(),this._on(this.button,this._buttonEvents),this.button.one("focusin",(function(){i._rendered||i._refreshMenu()}))},_drawMenu:function(){var e=this;this.menu=t("<ul>",{"aria-hidden":"true","aria-labelledby":this.ids.button,id:this.ids.menu}),this.menuWrap=t("<div>").append(this.menu),this._addClass(this.menuWrap,"ui-selectmenu-menu","ui-front"),this.menuWrap.appendTo(this._appendTo()),this.menuInstance=this.menu.menu({classes:{"ui-menu":"ui-corner-bottom"},role:"listbox",select:function(t,i){t.preventDefault(),e._setSelection(),e._select(i.item.data("ui-selectmenu-item"),t)},focus:function(t,i){i=i.item.data("ui-selectmenu-item"),null!=e.focusIndex&&i.index!==e.focusIndex&&(e._trigger("focus",t,{item:i}),e.isOpen||e._select(i,t)),e.focusIndex=i.index,e.button.attr("aria-activedescendant",e.menuItems.eq(i.index).attr("id"))}}).menu("instance"),this.menuInstance._off(this.menu,"mouseleave"),this.menuInstance._closeOnDocumentClick=function(){return!1},this.menuInstance._isDivider=function(){return!1}},refresh:function(){this._refreshMenu(),this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(this._getSelectedItem().data("ui-selectmenu-item")||{})),null===this.options.width&&this._resizeButton()},_refreshMenu:function(){var t=this.element.find("option");this.menu.empty(),this._parseOptions(t),this._renderMenu(this.menu,this.items),this.menuInstance.refresh(),this.menuItems=this.menu.find("li").not(".ui-selectmenu-optgroup").find(".ui-menu-item-wrapper"),this._rendered=!0,t.length&&(t=this._getSelectedItem(),this.menuInstance.focus(null,t),this._setAria(t.data("ui-selectmenu-item")),this._setOption("disabled",this.element.prop("disabled")))},open:function(t){this.options.disabled||(this._rendered?(this._removeClass(this.menu.find(".ui-state-active"),null,"ui-state-active"),this.menuInstance.focus(null,this._getSelectedItem())):this._refreshMenu(),this.menuItems.length&&(this.isOpen=!0,this._toggleAttr(),this._resizeMenu(),this._position(),this._on(this.document,this._documentClick),this._trigger("open",t)))},_position:function(){this.menuWrap.position(t.extend({of:this.button},this.options.position))},close:function(t){this.isOpen&&(this.isOpen=!1,this._toggleAttr(),this.range=null,this._off(this.document),this._trigger("close",t))},widget:function(){return this.button},menuWidget:function(){return this.menu},_renderButtonItem:function(e){var i=t("<span>");return this._setText(i,e.label),this._addClass(i,"ui-selectmenu-text"),i},_renderMenu:function(e,i){var n=this,s="";t.each(i,(function(i,o){var r;o.optgroup!==s&&(r=t("<li>",{text:o.optgroup}),n._addClass(r,"ui-selectmenu-optgroup","ui-menu-divider"+(o.element.parent("optgroup").prop("disabled")?" ui-state-disabled":"")),r.appendTo(e),s=o.optgroup),n._renderItemData(e,o)}))},_renderItemData:function(t,e){return this._renderItem(t,e).data("ui-selectmenu-item",e)},_renderItem:function(e,i){var n=t("<li>"),s=t("<div>",{title:i.element.attr("title")});return i.disabled&&this._addClass(n,null,"ui-state-disabled"),this._setText(s,i.label),n.append(s).appendTo(e)},_setText:function(t,e){e?t.text(e):t.html(" ")},_move:function(t,e){var i,n=".ui-menu-item";this.isOpen?i=this.menuItems.eq(this.focusIndex).parent("li"):(i=this.menuItems.eq(this.element[0].selectedIndex).parent("li"),n+=":not(.ui-state-disabled)"),(n="first"===t||"last"===t?i["first"===t?"prevAll":"nextAll"](n).eq(-1):i[t+"All"](n).eq(0)).length&&this.menuInstance.focus(e,n)},_getSelectedItem:function(){return this.menuItems.eq(this.element[0].selectedIndex).parent("li")},_toggle:function(t){this[this.isOpen?"close":"open"](t)},_setSelection:function(){var t;this.range&&(window.getSelection?((t=window.getSelection()).removeAllRanges(),t.addRange(this.range)):this.range.select(),this.button.trigger("focus"))},_documentClick:{mousedown:function(e){this.isOpen&&(t(e.target).closest(".ui-selectmenu-menu, #"+t.escapeSelector(this.ids.button)).length||this.close(e))}},_buttonEvents:{mousedown:function(){var t;window.getSelection?(t=window.getSelection()).rangeCount&&(this.range=t.getRangeAt(0)):this.range=document.selection.createRange()},click:function(t){this._setSelection(),this._toggle(t)},keydown:function(e){var i=!0;switch(e.keyCode){case t.ui.keyCode.TAB:case t.ui.keyCode.ESCAPE:this.close(e),i=!1;break;case t.ui.keyCode.ENTER:this.isOpen&&this._selectFocusedItem(e);break;case t.ui.keyCode.UP:e.altKey?this._toggle(e):this._move("prev",e);break;case t.ui.keyCode.DOWN:e.altKey?this._toggle(e):this._move("next",e);break;case t.ui.keyCode.SPACE:this.isOpen?this._selectFocusedItem(e):this._toggle(e);break;case t.ui.keyCode.LEFT:this._move("prev",e);break;case t.ui.keyCode.RIGHT:this._move("next",e);break;case t.ui.keyCode.HOME:case t.ui.keyCode.PAGE_UP:this._move("first",e);break;case t.ui.keyCode.END:case t.ui.keyCode.PAGE_DOWN:this._move("last",e);break;default:this.menu.trigger(e),i=!1}i&&e.preventDefault()}},_selectFocusedItem:function(t){var e=this.menuItems.eq(this.focusIndex).parent("li");e.hasClass("ui-state-disabled")||this._select(e.data("ui-selectmenu-item"),t)},_select:function(t,e){var i=this.element[0].selectedIndex;this.element[0].selectedIndex=t.index,this.buttonItem.replaceWith(this.buttonItem=this._renderButtonItem(t)),this._setAria(t),this._trigger("select",e,{item:t}),t.index!==i&&this._trigger("change",e,{item:t}),this.close(e)},_setAria:function(t){t=this.menuItems.eq(t.index).attr("id"),this.button.attr({"aria-labelledby":t,"aria-activedescendant":t}),this.menu.attr("aria-activedescendant",t)},_setOption:function(t,e){var i;"icons"===t&&(i=this.button.find("span.ui-icon"),this._removeClass(i,null,this.options.icons.button)._addClass(i,null,e.button)),this._super(t,e),"appendTo"===t&&this.menuWrap.appendTo(this._appendTo()),"width"===t&&this._resizeButton()},_setOptionDisabled:function(t){this._super(t),this.menuInstance.option("disabled",t),this.button.attr("aria-disabled",t),this._toggleClass(this.button,null,"ui-state-disabled",t),this.element.prop("disabled",t),t?(this.button.attr("tabindex",-1),this.close()):this.button.attr("tabindex",0)},_appendTo:function(){var e=this.options.appendTo;return(e=(e=e&&(e.jquery||e.nodeType?t(e):this.document.find(e).eq(0)))&&e[0]?e:this.element.closest(".ui-front, dialog")).length?e:this.document[0].body},_toggleAttr:function(){this.button.attr("aria-expanded",this.isOpen),this._removeClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"closed":"open"))._addClass(this.button,"ui-selectmenu-button-"+(this.isOpen?"open":"closed"))._toggleClass(this.menuWrap,"ui-selectmenu-open",null,this.isOpen),this.menu.attr("aria-hidden",!this.isOpen)},_resizeButton:function(){var t=this.options.width;!1!==t?(null===t&&(t=this.element.show().outerWidth(),this.element.hide()),this.button.outerWidth(t)):this.button.css("width","")},_resizeMenu:function(){this.menu.outerWidth(Math.max(this.button.outerWidth(),this.menu.width("").outerWidth()+1))},_getCreateOptions:function(){var t=this._super();return t.disabled=this.element.prop("disabled"),t},_parseOptions:function(e){var i=this,n=[];e.each((function(e,s){s.hidden||n.push(i._parseOption(t(s),e))})),this.items=n},_parseOption:function(t,e){var i=t.parent("optgroup");return{element:t,index:e,value:t.val(),label:t.text(),optgroup:i.attr("label")||"",disabled:i.prop("disabled")||t.prop("disabled")}},_destroy:function(){this._unbindFormResetHandler(),this.menuWrap.remove(),this.button.remove(),this.element.show(),this.element.removeUniqueId(),this.labels.attr("for",this.ids.element)}}]),t.widget("ui.slider",t.ui.mouse,{version:"1.13.2",widgetEventPrefix:"slide",options:{animate:!1,classes:{"ui-slider":"ui-corner-all","ui-slider-handle":"ui-corner-all","ui-slider-range":"ui-corner-all ui-widget-header"},distance:0,max:100,min:0,orientation:"horizontal",range:!1,step:1,value:0,values:null,change:null,slide:null,start:null,stop:null},numPages:5,_create:function(){this._keySliding=!1,this._mouseSliding=!1,this._animateOff=!0,this._handleIndex=null,this._detectOrientation(),this._mouseInit(),this._calculateNewMax(),this._addClass("ui-slider ui-slider-"+this.orientation,"ui-widget ui-widget-content"),this._refresh(),this._animateOff=!1},_refresh:function(){this._createRange(),this._createHandles(),this._setupEvents(),this._refreshValue()},_createHandles:function(){var e,i=this.options,n=this.element.find(".ui-slider-handle"),s=[],o=i.values&&i.values.length||1;for(n.length>o&&(n.slice(o).remove(),n=n.slice(0,o)),e=n.length;e<o;e++)s.push("<span tabindex='0'></span>");this.handles=n.add(t(s.join("")).appendTo(this.element)),this._addClass(this.handles,"ui-slider-handle","ui-state-default"),this.handle=this.handles.eq(0),this.handles.each((function(e){t(this).data("ui-slider-handle-index",e).attr("tabIndex",0)}))},_createRange:function(){var e=this.options;e.range?(!0===e.range&&(e.values?e.values.length&&2!==e.values.length?e.values=[e.values[0],e.values[0]]:Array.isArray(e.values)&&(e.values=e.values.slice(0)):e.values=[this._valueMin(),this._valueMin()]),this.range&&this.range.length?(this._removeClass(this.range,"ui-slider-range-min ui-slider-range-max"),this.range.css({left:"",bottom:""})):(this.range=t("<div>").appendTo(this.element),this._addClass(this.range,"ui-slider-range")),"min"!==e.range&&"max"!==e.range||this._addClass(this.range,"ui-slider-range-"+e.range)):(this.range&&this.range.remove(),this.range=null)},_setupEvents:function(){this._off(this.handles),this._on(this.handles,this._handleEvents),this._hoverable(this.handles),this._focusable(this.handles)},_destroy:function(){this.handles.remove(),this.range&&this.range.remove(),this._mouseDestroy()},_mouseCapture:function(e){var i,n,s,o,r,a,l=this,c=this.options;return!c.disabled&&(this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()},this.elementOffset=this.element.offset(),a={x:e.pageX,y:e.pageY},i=this._normValueFromMouse(a),n=this._valueMax()-this._valueMin()+1,this.handles.each((function(e){var r=Math.abs(i-l.values(e));(r<n||n===r&&(e===l._lastChangedValue||l.values(e)===c.min))&&(n=r,s=t(this),o=e)})),!1!==this._start(e,o)&&(this._mouseSliding=!0,this._handleIndex=o,this._addClass(s,null,"ui-state-active"),s.trigger("focus"),r=s.offset(),a=!t(e.target).parents().addBack().is(".ui-slider-handle"),this._clickOffset=a?{left:0,top:0}:{left:e.pageX-r.left-s.width()/2,top:e.pageY-r.top-s.height()/2-(parseInt(s.css("borderTopWidth"),10)||0)-(parseInt(s.css("borderBottomWidth"),10)||0)+(parseInt(s.css("marginTop"),10)||0)},this.handles.hasClass("ui-state-hover")||this._slide(e,o,i),this._animateOff=!0))},_mouseStart:function(){return!0},_mouseDrag:function(t){var e={x:t.pageX,y:t.pageY};e=this._normValueFromMouse(e);return this._slide(t,this._handleIndex,e),!1},_mouseStop:function(t){return this._removeClass(this.handles,null,"ui-state-active"),this._mouseSliding=!1,this._stop(t,this._handleIndex),this._change(t,this._handleIndex),this._handleIndex=null,this._clickOffset=null,this._animateOff=!1},_detectOrientation:function(){this.orientation="vertical"===this.options.orientation?"vertical":"horizontal"},_normValueFromMouse:function(t){var e;return(t=1<(t=(t="horizontal"===this.orientation?(e=this.elementSize.width,t.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)):(e=this.elementSize.height,t.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)))/e)?1:t)<0&&(t=0),"vertical"===this.orientation&&(t=1-t),e=this._valueMax()-this._valueMin(),e=this._valueMin()+t*e,this._trimAlignValue(e)},_uiHash:function(t,e,i){var n={handle:this.handles[t],handleIndex:t,value:void 0!==e?e:this.value()};return this._hasMultipleValues()&&(n.value=void 0!==e?e:this.values(t),n.values=i||this.values()),n},_hasMultipleValues:function(){return this.options.values&&this.options.values.length},_start:function(t,e){return this._trigger("start",t,this._uiHash(e))},_slide:function(t,e,i){var n,s=this.value(),o=this.values();this._hasMultipleValues()&&(n=this.values(e?0:1),s=this.values(e),2===this.options.values.length&&!0===this.options.range&&(i=0===e?Math.min(n,i):Math.max(n,i)),o[e]=i),i!==s&&!1!==this._trigger("slide",t,this._uiHash(e,i,o))&&(this._hasMultipleValues()?this.values(e,i):this.value(i))},_stop:function(t,e){this._trigger("stop",t,this._uiHash(e))},_change:function(t,e){this._keySliding||this._mouseSliding||(this._lastChangedValue=e,this._trigger("change",t,this._uiHash(e)))},value:function(t){return arguments.length?(this.options.value=this._trimAlignValue(t),this._refreshValue(),void this._change(null,0)):this._value()},values:function(t,e){var i,n,s;if(1<arguments.length)return this.options.values[t]=this._trimAlignValue(e),this._refreshValue(),void this._change(null,t);if(!arguments.length)return this._values();if(!Array.isArray(t))return this._hasMultipleValues()?this._values(t):this.value();for(i=this.options.values,n=t,s=0;s<i.length;s+=1)i[s]=this._trimAlignValue(n[s]),this._change(null,s);this._refreshValue()},_setOption:function(t,e){var i,n=0;switch("range"===t&&!0===this.options.range&&("min"===e?(this.options.value=this._values(0),this.options.values=null):"max"===e&&(this.options.value=this._values(this.options.values.length-1),this.options.values=null)),Array.isArray(this.options.values)&&(n=this.options.values.length),this._super(t,e),t){case"orientation":this._detectOrientation(),this._removeClass("ui-slider-horizontal ui-slider-vertical")._addClass("ui-slider-"+this.orientation),this._refreshValue(),this.options.range&&this._refreshRange(e),this.handles.css("horizontal"===e?"bottom":"left","");break;case"value":this._animateOff=!0,this._refreshValue(),this._change(null,0),this._animateOff=!1;break;case"values":for(this._animateOff=!0,this._refreshValue(),i=n-1;0<=i;i--)this._change(null,i);this._animateOff=!1;break;case"step":case"min":case"max":this._animateOff=!0,this._calculateNewMax(),this._refreshValue(),this._animateOff=!1;break;case"range":this._animateOff=!0,this._refresh(),this._animateOff=!1}},_setOptionDisabled:function(t){this._super(t),this._toggleClass(null,"ui-state-disabled",!!t)},_value:function(){var t=this.options.value;return this._trimAlignValue(t)},_values:function(t){var e,i;if(arguments.length)return t=this.options.values[t],this._trimAlignValue(t);if(this._hasMultipleValues()){for(e=this.options.values.slice(),i=0;i<e.length;i+=1)e[i]=this._trimAlignValue(e[i]);return e}return[]},_trimAlignValue:function(t){if(t<=this._valueMin())return this._valueMin();if(t>=this._valueMax())return this._valueMax();var e=0<this.options.step?this.options.step:1,i=(t-this._valueMin())%e;t-=i;return 2*Math.abs(i)>=e&&(t+=0<i?e:-e),parseFloat(t.toFixed(5))},_calculateNewMax:function(){var t=this.options.max,e=this._valueMin(),i=this.options.step;(t=Math.round((t-e)/i)*i+e)>this.options.max&&(t-=i),this.max=parseFloat(t.toFixed(this._precision()))},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_valueMin:function(){return this.options.min},_valueMax:function(){return this.max},_refreshRange:function(t){"vertical"===t&&this.range.css({width:"",left:""}),"horizontal"===t&&this.range.css({height:"",bottom:""})},_refreshValue:function(){var e,i,n,s,o,r=this.options.range,a=this.options,l=this,c=!this._animateOff&&a.animate,u={};this._hasMultipleValues()?this.handles.each((function(n){i=(l.values(n)-l._valueMin())/(l._valueMax()-l._valueMin())*100,u["horizontal"===l.orientation?"left":"bottom"]=i+"%",t(this).stop(1,1)[c?"animate":"css"](u,a.animate),!0===l.options.range&&("horizontal"===l.orientation?(0===n&&l.range.stop(1,1)[c?"animate":"css"]({left:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({width:i-e+"%"},{queue:!1,duration:a.animate})):(0===n&&l.range.stop(1,1)[c?"animate":"css"]({bottom:i+"%"},a.animate),1===n&&l.range[c?"animate":"css"]({height:i-e+"%"},{queue:!1,duration:a.animate}))),e=i})):(n=this.value(),s=this._valueMin(),o=this._valueMax(),i=o!==s?(n-s)/(o-s)*100:0,u["horizontal"===this.orientation?"left":"bottom"]=i+"%",this.handle.stop(1,1)[c?"animate":"css"](u,a.animate),"min"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:i+"%"},a.animate),"max"===r&&"horizontal"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({width:100-i+"%"},a.animate),"min"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:i+"%"},a.animate),"max"===r&&"vertical"===this.orientation&&this.range.stop(1,1)[c?"animate":"css"]({height:100-i+"%"},a.animate))},_handleEvents:{keydown:function(e){var i,n,s,o=t(e.target).data("ui-slider-handle-index");switch(e.keyCode){case t.ui.keyCode.HOME:case t.ui.keyCode.END:case t.ui.keyCode.PAGE_UP:case t.ui.keyCode.PAGE_DOWN:case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(e.preventDefault(),!this._keySliding&&(this._keySliding=!0,this._addClass(t(e.target),null,"ui-state-active"),!1===this._start(e,o)))return}switch(s=this.options.step,i=n=this._hasMultipleValues()?this.values(o):this.value(),e.keyCode){case t.ui.keyCode.HOME:n=this._valueMin();break;case t.ui.keyCode.END:n=this._valueMax();break;case t.ui.keyCode.PAGE_UP:n=this._trimAlignValue(i+(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.PAGE_DOWN:n=this._trimAlignValue(i-(this._valueMax()-this._valueMin())/this.numPages);break;case t.ui.keyCode.UP:case t.ui.keyCode.RIGHT:if(i===this._valueMax())return;n=this._trimAlignValue(i+s);break;case t.ui.keyCode.DOWN:case t.ui.keyCode.LEFT:if(i===this._valueMin())return;n=this._trimAlignValue(i-s)}this._slide(e,o,n)},keyup:function(e){var i=t(e.target).data("ui-slider-handle-index");this._keySliding&&(this._keySliding=!1,this._stop(e,i),this._change(e,i),this._removeClass(t(e.target),null,"ui-state-active"))}}}),t.widget("ui.sortable",t.ui.mouse,{version:"1.13.2",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},_isOverAxis:function(t,e,i){return e<=t&&t<e+i},_isFloating:function(t){return/left|right/.test(t.css("float"))||/inline|table-cell/.test(t.css("display"))},_create:function(){this.containerCache={},this._addClass("ui-sortable"),this.refresh(),this.offset=this.element.offset(),this._mouseInit(),this._setHandleClassName(),this.ready=!0},_setOption:function(t,e){this._super(t,e),"handle"===t&&this._setHandleClassName()},_setHandleClassName:function(){var e=this;this._removeClass(this.element.find(".ui-sortable-handle"),"ui-sortable-handle"),t.each(this.items,(function(){e._addClass(this.instance.options.handle?this.item.find(this.instance.options.handle):this.item,"ui-sortable-handle")}))},_destroy:function(){this._mouseDestroy();for(var t=this.items.length-1;0<=t;t--)this.items[t].item.removeData(this.widgetName+"-item");return this},_mouseCapture:function(e,i){var n=null,s=!1,o=this;return!(this.reverting||this.options.disabled||"static"===this.options.type||(this._refreshItems(e),t(e.target).parents().each((function(){if(t.data(this,o.widgetName+"-item")===o)return n=t(this),!1})),!(n=t.data(e.target,o.widgetName+"-item")===o?t(e.target):n)||this.options.handle&&!i&&(t(this.options.handle,n).find("*").addBack().each((function(){this===e.target&&(s=!0)})),!s)||(this.currentItem=n,this._removeCurrentsFromItems(),0)))},_mouseStart:function(e,i,n){var s,o,r=this.options;if((this.currentContainer=this).refreshPositions(),this.appendTo=t("parent"!==r.appendTo?r.appendTo:this.currentItem.parent()),this.helper=this._createHelper(e),this._cacheHelperProportions(),this._cacheMargins(),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},relative:this._getRelativeOffset()}),this.helper.css("position","absolute"),this.cssPosition=this.helper.css("position"),r.cursorAt&&this._adjustOffsetFromHelper(r.cursorAt),this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]},this.helper[0]!==this.currentItem[0]&&this.currentItem.hide(),this._createPlaceholder(),this.scrollParent=this.placeholder.scrollParent(),t.extend(this.offset,{parent:this._getParentOffset()}),r.containment&&this._setContainment(),r.cursor&&"auto"!==r.cursor&&(o=this.document.find("body"),this.storedCursor=o.css("cursor"),o.css("cursor",r.cursor),this.storedStylesheet=t("<style>*{ cursor: "+r.cursor+" !important; }</style>").appendTo(o)),r.zIndex&&(this.helper.css("zIndex")&&(this._storedZIndex=this.helper.css("zIndex")),this.helper.css("zIndex",r.zIndex)),r.opacity&&(this.helper.css("opacity")&&(this._storedOpacity=this.helper.css("opacity")),this.helper.css("opacity",r.opacity)),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this._trigger("start",e,this._uiHash()),this._preserveHelperProportions||this._cacheHelperProportions(),!n)for(s=this.containers.length-1;0<=s;s--)this.containers[s]._trigger("activate",e,this._uiHash(this));return t.ui.ddmanager&&(t.ui.ddmanager.current=this),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e),this.dragging=!0,this._addClass(this.helper,"ui-sortable-helper"),this.helper.parent().is(this.appendTo)||(this.helper.detach().appendTo(this.appendTo),this.offset.parent=this._getParentOffset()),this.position=this.originalPosition=this._generatePosition(e),this.originalPageX=e.pageX,this.originalPageY=e.pageY,this.lastPositionAbs=this.positionAbs=this._convertPositionTo("absolute"),this._mouseDrag(e),!0},_scroll:function(t){var e=this.options,i=!1;return this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName?(this.overflowOffset.top+this.scrollParent[0].offsetHeight-t.pageY<e.scrollSensitivity?this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop+e.scrollSpeed:t.pageY-this.overflowOffset.top<e.scrollSensitivity&&(this.scrollParent[0].scrollTop=i=this.scrollParent[0].scrollTop-e.scrollSpeed),this.overflowOffset.left+this.scrollParent[0].offsetWidth-t.pageX<e.scrollSensitivity?this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft+e.scrollSpeed:t.pageX-this.overflowOffset.left<e.scrollSensitivity&&(this.scrollParent[0].scrollLeft=i=this.scrollParent[0].scrollLeft-e.scrollSpeed)):(t.pageY-this.document.scrollTop()<e.scrollSensitivity?i=this.document.scrollTop(this.document.scrollTop()-e.scrollSpeed):this.window.height()-(t.pageY-this.document.scrollTop())<e.scrollSensitivity&&(i=this.document.scrollTop(this.document.scrollTop()+e.scrollSpeed)),t.pageX-this.document.scrollLeft()<e.scrollSensitivity?i=this.document.scrollLeft(this.document.scrollLeft()-e.scrollSpeed):this.window.width()-(t.pageX-this.document.scrollLeft())<e.scrollSensitivity&&(i=this.document.scrollLeft(this.document.scrollLeft()+e.scrollSpeed))),i},_mouseDrag:function(e){var i,n,s,o,r=this.options;for(this.position=this._generatePosition(e),this.positionAbs=this._convertPositionTo("absolute"),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"),r.scroll&&!1!==this._scroll(e)&&(this._refreshItemPositions(!0),t.ui.ddmanager&&!r.dropBehaviour&&t.ui.ddmanager.prepareOffsets(this,e)),this.dragDirection={vertical:this._getDragVerticalDirection(),horizontal:this._getDragHorizontalDirection()},i=this.items.length-1;0<=i;i--)if(s=(n=this.items[i]).item[0],(o=this._intersectsWithPointer(n))&&n.instance===this.currentContainer&&!(s===this.currentItem[0]||this.placeholder[1===o?"next":"prev"]()[0]===s||t.contains(this.placeholder[0],s)||"semi-dynamic"===this.options.type&&t.contains(this.element[0],s))){if(this.direction=1===o?"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){var n,s,o,r;if(e)return t.ui.ddmanager&&!this.options.dropBehaviour&&t.ui.ddmanager.drop(this,e),this.options.revert?(s=(n=this).placeholder.offset(),r={},(o=this.options.axis)&&"x"!==o||(r.left=s.left-this.offset.parent.left-this.margins.left+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollLeft)),o&&"y"!==o||(r.top=s.top-this.offset.parent.top-this.margins.top+(this.offsetParent[0]===this.document[0].body?0:this.offsetParent[0].scrollTop)),this.reverting=!0,t(this.helper).animate(r,parseInt(this.options.revert,10)||500,(function(){n._clear(e)}))):this._clear(e,i),!1},cancel:function(){if(this.dragging){this._mouseUp(new t.Event("mouseup",{target:null})),"original"===this.options.helper?(this.currentItem.css(this._storedCSS),this._removeClass(this.currentItem,"ui-sortable-helper")):this.currentItem.show();for(var e=this.containers.length-1;0<=e;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,s=n+this.helperProportions.height,o=t.left,r=o+t.width,a=t.top,l=a+t.height,c=this.offset.click.top,u=this.offset.click.left;c="x"===this.options.axis||a<n+c&&n+c<l,u="y"===this.options.axis||o<e+u&&e+u<r;return"pointer"===this.options.tolerance||this.options.forcePointerForContainers||"pointer"!==this.options.tolerance&&this.helperProportions[this.floating?"width":"height"]>t[this.floating?"width":"height"]?c&&u:o<e+this.helperProportions.width/2&&i-this.helperProportions.width/2<r&&a<n+this.helperProportions.height/2&&s-this.helperProportions.height/2<l},_intersectsWithPointer:function(t){var e="x"===this.options.axis||this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top,t.height);t="y"===this.options.axis||this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left,t.width);return!(!e||!t)&&(e=this.dragDirection.vertical,t=this.dragDirection.horizontal,this.floating?"right"===t||"down"===e?2:1:e&&("down"===e?2:1))},_intersectsWithSides:function(t){var e=this._isOverAxis(this.positionAbs.top+this.offset.click.top,t.top+t.height/2,t.height),i=this._isOverAxis(this.positionAbs.left+this.offset.click.left,t.left+t.width/2,t.width),n=this.dragDirection.vertical;t=this.dragDirection.horizontal;return this.floating&&t?"right"===t&&i||"left"===t&&!i:n&&("down"===n&&e||"up"===n&&!e)},_getDragVerticalDirection:function(){var t=this.positionAbs.top-this.lastPositionAbs.top;return 0!=t&&(0<t?"down":"up")},_getDragHorizontalDirection:function(){var t=this.positionAbs.left-this.lastPositionAbs.left;return 0!=t&&(0<t?"right":"left")},refresh:function(t){return this._refreshItems(t),this._setHandleClassName(),this.refreshPositions(),this},_connectWith:function(){var t=this.options;return t.connectWith.constructor===String?[t.connectWith]:t.connectWith},_getItemsAsjQuery:function(e){var i,n,s,o,r=[],a=[],l=this._connectWith();if(l&&e)for(i=l.length-1;0<=i;i--)for(n=(s=t(l[i],this.document[0])).length-1;0<=n;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&a.push(["function"==typeof o.options.items?o.options.items.call(o.element):t(o.options.items,o.element).not(".ui-sortable-helper").not(".ui-sortable-placeholder"),o]);function c(){r.push(this)}for(a.push(["function"==typeof 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=a.length-1;0<=i;i--)a[i][0].each(c);return t(r)},_removeCurrentsFromItems:function(){var e=this.currentItem.find(":data("+this.widgetName+"-item)");this.items=t.grep(this.items,(function(t){for(var i=0;i<e.length;i++)if(e[i]===t.item[0])return!1;return!0}))},_refreshItems:function(e){this.items=[],this.containers=[this];var i,n,s,o,r,a,l,c,u=this.items,h=[["function"==typeof 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;0<=i;i--)for(n=(s=t(d[i],this.document[0])).length-1;0<=n;n--)(o=t.data(s[n],this.widgetFullName))&&o!==this&&!o.options.disabled&&(h.push(["function"==typeof o.options.items?o.options.items.call(o.element[0],e,{item:this.currentItem}):t(o.options.items,o.element),o]),this.containers.push(o));for(i=h.length-1;0<=i;i--)for(r=h[i][1],c=(a=h[i][n=0]).length;n<c;n++)(l=t(a[n])).data(this.widgetName+"-item",r),u.push({item:l,instance:r,width:0,height:0,left:0,top:0})},_refreshItemPositions:function(e){for(var i,n,s=this.items.length-1;0<=s;s--)i=this.items[s],this.currentContainer&&i.instance!==this.currentContainer&&i.item[0]!==this.currentItem[0]||(n=this.options.toleranceElement?t(this.options.toleranceElement,i.item):i.item,e||(i.width=n.outerWidth(),i.height=n.outerHeight()),n=n.offset(),i.left=n.left,i.top=n.top)},refreshPositions:function(t){var e,i;if(this.floating=!!this.items.length&&("x"===this.options.axis||this._isFloating(this.items[0].item)),this.offsetParent&&this.helper&&(this.offset.parent=this._getParentOffset()),this._refreshItemPositions(t),this.options.custom&&this.options.custom.refreshContainers)this.options.custom.refreshContainers.call(this);else for(e=this.containers.length-1;0<=e;e--)i=this.containers[e].element.offset(),this.containers[e].containerCache.left=i.left,this.containers[e].containerCache.top=i.top,this.containers[e].containerCache.width=this.containers[e].element.outerWidth(),this.containers[e].containerCache.height=this.containers[e].element.outerHeight();return this},_createPlaceholder:function(e){var i,n,s=(e=e||this).options;s.placeholder&&s.placeholder.constructor!==String||(i=s.placeholder,n=e.currentItem[0].nodeName.toLowerCase(),s.placeholder={element:function(){var s=t("<"+n+">",e.document[0]);return e._addClass(s,"ui-sortable-placeholder",i||e.currentItem[0].className)._removeClass(s,"ui-sortable-helper"),"tbody"===n?e._createTrPlaceholder(e.currentItem.find("tr").eq(0),t("<tr>",e.document[0]).appendTo(s)):"tr"===n?e._createTrPlaceholder(e.currentItem,s):"img"===n&&s.attr("src",e.currentItem.attr("src")),i||s.css("visibility","hidden"),s},update:function(t,o){i&&!s.forcePlaceholderSize||(o.height()&&(!s.forcePlaceholderSize||"tbody"!==n&&"tr"!==n)||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(s.placeholder.element.call(e.element,e.currentItem)),e.currentItem.after(e.placeholder),s.placeholder.update(e,e.placeholder)},_createTrPlaceholder:function(e,i){var n=this;e.children().each((function(){t("<td> </td>",n.document[0]).attr("colspan",t(this).attr("colspan")||1).appendTo(i)}))},_contactContainers:function(e){for(var i,n,s,o,r,a,l,c,u,h=null,d=null,p=this.containers.length-1;0<=p;p--)t.contains(this.currentItem[0],this.containers[p].element[0])||(this._intersectsWith(this.containers[p].containerCache)?h&&t.contains(this.containers[p].element[0],h.element[0])||(h=this.containers[p],d=p):this.containers[p].containerCache.over&&(this.containers[p]._trigger("out",e,this._uiHash(this)),this.containers[p].containerCache.over=0));if(h)if(1===this.containers.length)this.containers[d].containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1);else{for(n=1e4,s=null,o=(c=h.floating||this._isFloating(this.currentItem))?"left":"top",r=c?"width":"height",u=c?"pageX":"pageY",i=this.items.length-1;0<=i;i--)t.contains(this.containers[d].element[0],this.items[i].item[0])&&this.items[i].item[0]!==this.currentItem[0]&&(a=this.items[i].item.offset()[o],l=!1,e[u]-a>this.items[i][r]/2&&(l=!0),Math.abs(e[u]-a)<n&&(n=Math.abs(e[u]-a),s=this.items[i],this.direction=l?"up":"down"));(s||this.options.dropOnEmpty)&&(this.currentContainer!==this.containers[d]?(s?this._rearrange(e,s,null,!0):this._rearrange(e,null,this.containers[d].element,!0),this._trigger("change",e,this._uiHash()),this.containers[d]._trigger("change",e,this._uiHash(this)),this.currentContainer=this.containers[d],this.options.placeholder.update(this.currentContainer,this.placeholder),this.scrollParent=this.placeholder.scrollParent(),this.scrollParent[0]!==this.document[0]&&"HTML"!==this.scrollParent[0].tagName&&(this.overflowOffset=this.scrollParent.offset()),this.containers[d]._trigger("over",e,this._uiHash(this)),this.containers[d].containerCache.over=1):this.currentContainer.containerCache.over||(this.containers[d]._trigger("over",e,this._uiHash()),this.currentContainer.containerCache.over=1))}},_createHelper:function(e){var i=this.options;return(e="function"==typeof i.helper?t(i.helper.apply(this.element[0],[e,this.currentItem])):"clone"===i.helper?this.currentItem.clone():this.currentItem).parents("body").length||this.appendTo[0].appendChild(e[0]),e[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")}),e[0].style.width&&!i.forceHelperSize||e.width(this.currentItem.width()),e[0].style.height&&!i.forceHelperSize||e.height(this.currentItem.height()),e},_adjustOffsetFromHelper:function(t){"string"==typeof t&&(t=t.split(" ")),"left"in(t=Array.isArray(t)?{left:+t[0],top:+t[1]||0}:t)&&(this.offset.click.left=t.left+this.margins.left),"right"in t&&(this.offset.click.left=this.helperProportions.width-t.right+this.margins.left),"top"in t&&(this.offset.click.top=t.top+this.margins.top),"bottom"in t&&(this.offset.click.top=this.helperProportions.height-t.bottom+this.margins.top)},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var e=this.offsetParent.offset();return"absolute"===this.cssPosition&&this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])&&(e.left+=this.scrollParent.scrollLeft(),e.top+=this.scrollParent.scrollTop()),{top:(e=this.offsetParent[0]===this.document[0].body||this.offsetParent[0].tagName&&"html"===this.offsetParent[0].tagName.toLowerCase()&&t.ui.ie?{top:0,left:0}: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)return{top:0,left:0};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()}},_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=this.options;"parent"===n.containment&&(n.containment=this.helper[0].parentNode),"document"!==n.containment&&"window"!==n.containment||(this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,"document"===n.containment?this.document.width():this.window.width()-this.helperProportions.width-this.margins.left,("document"===n.containment?this.document.height()||document.body.parentNode.scrollHeight:this.window.height()||this.document[0].body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]),/^(document|window|parent)$/.test(n.containment)||(e=t(n.containment)[0],i=t(n.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,s="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent;e=/(html|body)/i.test(s[0].tagName);return{top:i.top+this.offset.relative.top*n+this.offset.parent.top*n-("fixed"===this.cssPosition?-this.scrollParent.scrollTop():e?0:s.scrollTop())*n,left:i.left+this.offset.relative.left*n+this.offset.parent.left*n-("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():e?0:s.scrollLeft())*n}},_generatePosition:function(e){var i=this.options,n=e.pageX,s=e.pageY,o="absolute"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&t.contains(this.scrollParent[0],this.offsetParent[0])?this.scrollParent:this.offsetParent,r=/(html|body)/i.test(o[0].tagName);return"relative"!==this.cssPosition||this.scrollParent[0]!==this.document[0]&&this.scrollParent[0]!==this.offsetParent[0]||(this.offset.relative=this._getRelativeOffset()),this.originalPosition&&(this.containment&&(e.pageX-this.offset.click.left<this.containment[0]&&(n=this.containment[0]+this.offset.click.left),e.pageY-this.offset.click.top<this.containment[1]&&(s=this.containment[1]+this.offset.click.top),e.pageX-this.offset.click.left>this.containment[2]&&(n=this.containment[2]+this.offset.click.left),e.pageY-this.offset.click.top>this.containment[3]&&(s=this.containment[3]+this.offset.click.top)),i.grid&&(e=this.originalPageY+Math.round((s-this.originalPageY)/i.grid[1])*i.grid[1],s=!this.containment||e-this.offset.click.top>=this.containment[1]&&e-this.offset.click.top<=this.containment[3]?e:e-this.offset.click.top>=this.containment[1]?e-i.grid[1]:e+i.grid[1],e=this.originalPageX+Math.round((n-this.originalPageX)/i.grid[0])*i.grid[0],n=!this.containment||e-this.offset.click.left>=this.containment[0]&&e-this.offset.click.left<=this.containment[2]?e:e-this.offset.click.left>=this.containment[0]?e-i.grid[0]:e+i.grid[0])),{top:s-this.offset.click.top-this.offset.relative.top-this.offset.parent.top+("fixed"===this.cssPosition?-this.scrollParent.scrollTop():r?0:o.scrollTop()),left:n-this.offset.click.left-this.offset.relative.left-this.offset.parent.left+("fixed"===this.cssPosition?-this.scrollParent.scrollLeft():r?0:o.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 s=this.counter;this._delay((function(){s===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),this._removeClass(this.currentItem,"ui-sortable-helper")}else this.currentItem.show();function s(t,e,i){return function(n){i._trigger(t,n,e._uiHash(e))}}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;0<=i;i--)e||n.push(s("deactivate",this,this.containers[i])),this.containers[i].containerCache.over&&(n.push(s("out",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,e||this._trigger("beforeStop",t,this._uiHash()),this.placeholder[0].parentNode.removeChild(this.placeholder[0]),this.cancelHelperRemoval||(this.helper[0]!==this.currentItem[0]&&this.helper.remove(),this.helper=null),!e){for(i=0;i<n.length;i++)n[i].call(this,t);this._trigger("stop",t,this._uiHash())}return this.fromOutside=!1,!this.cancelHelperRemoval},_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}}}),t.widget("ui.spinner",{version:"1.13.2",defaultElement:"<input>",widgetEventPrefix:"spin",options:{classes:{"ui-spinner":"ui-corner-all","ui-spinner-down":"ui-corner-br","ui-spinner-up":"ui-corner-tr"},culture:null,icons:{down:"ui-icon-triangle-1-s",up:"ui-icon-triangle-1-n"},incremental:!0,max:null,min:null,numberFormat:null,page:10,step:1,change:null,spin:null,start:null,stop:null},_create:function(){this._setOption("max",this.options.max),this._setOption("min",this.options.min),this._setOption("step",this.options.step),""!==this.value()&&this._value(this.element.val(),!0),this._draw(),this._on(this._events),this._refresh(),this._on(this.window,{beforeunload:function(){this.element.removeAttr("autocomplete")}})},_getCreateOptions:function(){var e=this._super(),i=this.element;return t.each(["min","max","step"],(function(t,n){var s=i.attr(n);null!=s&&s.length&&(e[n]=s)})),e},_events:{keydown:function(t){this._start(t)&&this._keydown(t)&&t.preventDefault()},keyup:"_stop",focus:function(){this.previous=this.element.val()},blur:function(t){this.cancelBlur?delete this.cancelBlur:(this._stop(),this._refresh(),this.previous!==this.element.val()&&this._trigger("change",t))},mousewheel:function(e,i){var n=t.ui.safeActiveElement(this.document[0]);if(this.element[0]===n&&i){if(!this.spinning&&!this._start(e))return!1;this._spin((0<i?1:-1)*this.options.step,e),clearTimeout(this.mousewheelTimer),this.mousewheelTimer=this._delay((function(){this.spinning&&this._stop(e)}),100),e.preventDefault()}},"mousedown .ui-spinner-button":function(e){var i;function n(){this.element[0]===t.ui.safeActiveElement(this.document[0])||(this.element.trigger("focus"),this.previous=i,this._delay((function(){this.previous=i})))}i=this.element[0]===t.ui.safeActiveElement(this.document[0])?this.previous:this.element.val(),e.preventDefault(),n.call(this),this.cancelBlur=!0,this._delay((function(){delete this.cancelBlur,n.call(this)})),!1!==this._start(e)&&this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseup .ui-spinner-button":"_stop","mouseenter .ui-spinner-button":function(e){if(t(e.currentTarget).hasClass("ui-state-active"))return!1!==this._start(e)&&void this._repeat(null,t(e.currentTarget).hasClass("ui-spinner-up")?1:-1,e)},"mouseleave .ui-spinner-button":"_stop"},_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap("<span>").parent().append("<a></a><a></a>")},_draw:function(){this._enhance(),this._addClass(this.uiSpinner,"ui-spinner","ui-widget ui-widget-content"),this._addClass("ui-spinner-input"),this.element.attr("role","spinbutton"),this.buttons=this.uiSpinner.children("a").attr("tabIndex",-1).attr("aria-hidden",!0).button({classes:{"ui-button":""}}),this._removeClass(this.buttons,"ui-corner-all"),this._addClass(this.buttons.first(),"ui-spinner-button ui-spinner-up"),this._addClass(this.buttons.last(),"ui-spinner-button ui-spinner-down"),this.buttons.first().button({icon:this.options.icons.up,showLabel:!1}),this.buttons.last().button({icon:this.options.icons.down,showLabel:!1}),this.buttons.height()>Math.ceil(.5*this.uiSpinner.height())&&0<this.uiSpinner.height()&&this.uiSpinner.height(this.uiSpinner.height())},_keydown:function(e){var i=this.options,n=t.ui.keyCode;switch(e.keyCode){case n.UP:return this._repeat(null,1,e),!0;case n.DOWN:return this._repeat(null,-1,e),!0;case n.PAGE_UP:return this._repeat(null,i.page,e),!0;case n.PAGE_DOWN:return this._repeat(null,-i.page,e),!0}return!1},_start:function(t){return!(!this.spinning&&!1===this._trigger("start",t))&&(this.counter||(this.counter=1),this.spinning=!0)},_repeat:function(t,e,i){t=t||500,clearTimeout(this.timer),this.timer=this._delay((function(){this._repeat(40,e,i)}),t),this._spin(e*this.options.step,i)},_spin:function(t,e){var i=this.value()||0;this.counter||(this.counter=1),i=this._adjustValue(i+t*this._increment(this.counter)),this.spinning&&!1===this._trigger("spin",e,{value:i})||(this._value(i),this.counter++)},_increment:function(t){var e=this.options.incremental;return e?"function"==typeof e?e(t):Math.floor(t*t*t/5e4-t*t/500+17*t/200+1):1},_precision:function(){var t=this._precisionOf(this.options.step);return null!==this.options.min?Math.max(t,this._precisionOf(this.options.min)):t},_precisionOf:function(t){var e=t.toString();return-1===(t=e.indexOf("."))?0:e.length-t-1},_adjustValue:function(t){var e=this.options,i=null!==e.min?e.min:0,n=t-i;return t=i+Math.round(n/e.step)*e.step,t=parseFloat(t.toFixed(this._precision())),null!==e.max&&t>e.max?e.max:null!==e.min&&t<e.min?e.min:t},_stop:function(t){this.spinning&&(clearTimeout(this.timer),clearTimeout(this.mousewheelTimer),this.counter=0,this.spinning=!1,this._trigger("stop",t))},_setOption:function(t,e){var i;if("culture"===t||"numberFormat"===t)return i=this._parse(this.element.val()),this.options[t]=e,void this.element.val(this._format(i));"max"!==t&&"min"!==t&&"step"!==t||"string"==typeof e&&(e=this._parse(e)),"icons"===t&&(i=this.buttons.first().find(".ui-icon"),this._removeClass(i,null,this.options.icons.up),this._addClass(i,null,e.up),i=this.buttons.last().find(".ui-icon"),this._removeClass(i,null,this.options.icons.down),this._addClass(i,null,e.down)),this._super(t,e)},_setOptionDisabled:function(t){this._super(t),this._toggleClass(this.uiSpinner,null,"ui-state-disabled",!!t),this.element.prop("disabled",!!t),this.buttons.button(t?"disable":"enable")},_setOptions:ut((function(t){this._super(t)})),_parse:function(t){return""===(t="string"==typeof t&&""!==t?window.Globalize&&this.options.numberFormat?Globalize.parseFloat(t,10,this.options.culture):+t:t)||isNaN(t)?null:t},_format:function(t){return""===t?"":window.Globalize&&this.options.numberFormat?Globalize.format(t,this.options.numberFormat,this.options.culture):t},_refresh:function(){this.element.attr({"aria-valuemin":this.options.min,"aria-valuemax":this.options.max,"aria-valuenow":this._parse(this.element.val())})},isValid:function(){var t=this.value();return null!==t&&t===this._adjustValue(t)},_value:function(t,e){var i;""!==t&&null!==(i=this._parse(t))&&(e||(i=this._adjustValue(i)),t=this._format(i)),this.element.val(t),this._refresh()},_destroy:function(){this.element.prop("disabled",!1).removeAttr("autocomplete role aria-valuemin aria-valuemax aria-valuenow"),this.uiSpinner.replaceWith(this.element)},stepUp:ut((function(t){this._stepUp(t)})),_stepUp:function(t){this._start()&&(this._spin((t||1)*this.options.step),this._stop())},stepDown:ut((function(t){this._stepDown(t)})),_stepDown:function(t){this._start()&&(this._spin((t||1)*-this.options.step),this._stop())},pageUp:ut((function(t){this._stepUp((t||1)*this.options.page)})),pageDown:ut((function(t){this._stepDown((t||1)*this.options.page)})),value:function(t){if(!arguments.length)return this._parse(this.element.val());ut(this._value).call(this,t)},widget:function(){return this.uiSpinner}}),!1!==t.uiBackCompat&&t.widget("ui.spinner",t.ui.spinner,{_enhance:function(){this.uiSpinner=this.element.attr("autocomplete","off").wrap(this._uiSpinnerHtml()).parent().append(this._buttonHtml())},_uiSpinnerHtml:function(){return"<span>"},_buttonHtml:function(){return"<a></a><a></a>"}}),t.ui.spinner,t.widget("ui.tabs",{version:"1.13.2",delay:300,options:{active:null,classes:{"ui-tabs":"ui-corner-all","ui-tabs-nav":"ui-corner-all","ui-tabs-panel":"ui-corner-bottom","ui-tabs-tab":"ui-corner-top"},collapsible:!1,event:"click",heightStyle:"content",hide:null,show:null,activate:null,beforeActivate:null,beforeLoad:null,load:null},_isLocal:(at=/#.*$/,function(t){var e=t.href.replace(at,""),i=location.href.replace(at,"");try{e=decodeURIComponent(e)}catch(t){}try{i=decodeURIComponent(i)}catch(t){}return 1<t.hash.length&&e===i}),_create:function(){var e=this,i=this.options;this.running=!1,this._addClass("ui-tabs","ui-widget ui-widget-content"),this._toggleClass("ui-tabs-collapsible",null,i.collapsible),this._processTabs(),i.active=this._initialActive(),Array.isArray(i.disabled)&&(i.disabled=t.uniqueSort(i.disabled.concat(t.map(this.tabs.filter(".ui-state-disabled"),(function(t){return e.tabs.index(t)})))).sort()),!1!==this.options.active&&this.anchors.length?this.active=this._findActive(i.active):this.active=t(),this._refresh(),this.active.length&&this.load(i.active)},_initialActive:function(){var e=this.options.active,i=this.options.collapsible,n=location.hash.substring(1);return null===e&&(n&&this.tabs.each((function(i,s){if(t(s).attr("aria-controls")===n)return e=i,!1})),null!==(e=null===e?this.tabs.index(this.tabs.filter(".ui-tabs-active")):e)&&-1!==e||(e=!!this.tabs.length&&0)),!1!==e&&-1===(e=this.tabs.index(this.tabs.eq(e)))&&(e=!i&&0),e=!i&&!1===e&&this.anchors.length?0:e},_getCreateEventData:function(){return{tab:this.active,panel:this.active.length?this._getPanelForTab(this.active):t()}},_tabKeydown:function(e){var i=t(t.ui.safeActiveElement(this.document[0])).closest("li"),n=this.tabs.index(i),s=!0;if(!this._handlePageNav(e)){switch(e.keyCode){case t.ui.keyCode.RIGHT:case t.ui.keyCode.DOWN:n++;break;case t.ui.keyCode.UP:case t.ui.keyCode.LEFT:s=!1,n--;break;case t.ui.keyCode.END:n=this.anchors.length-1;break;case t.ui.keyCode.HOME:n=0;break;case t.ui.keyCode.SPACE:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n);case t.ui.keyCode.ENTER:return e.preventDefault(),clearTimeout(this.activating),void this._activate(n!==this.options.active&&n);default:return}e.preventDefault(),clearTimeout(this.activating),n=this._focusNextTab(n,s),e.ctrlKey||e.metaKey||(i.attr("aria-selected","false"),this.tabs.eq(n).attr("aria-selected","true"),this.activating=this._delay((function(){this.option("active",n)}),this.delay))}},_panelKeydown:function(e){this._handlePageNav(e)||e.ctrlKey&&e.keyCode===t.ui.keyCode.UP&&(e.preventDefault(),this.active.trigger("focus"))},_handlePageNav:function(e){return e.altKey&&e.keyCode===t.ui.keyCode.PAGE_UP?(this._activate(this._focusNextTab(this.options.active-1,!1)),!0):e.altKey&&e.keyCode===t.ui.keyCode.PAGE_DOWN?(this._activate(this._focusNextTab(this.options.active+1,!0)),!0):void 0},_findNextTab:function(e,i){for(var n=this.tabs.length-1;-1!==t.inArray(e=(e=n<e?0:e)<0?n:e,this.options.disabled);)e=i?e+1:e-1;return e},_focusNextTab:function(t,e){return t=this._findNextTab(t,e),this.tabs.eq(t).trigger("focus"),t},_setOption:function(t,e){"active"!==t?(this._super(t,e),"collapsible"===t&&(this._toggleClass("ui-tabs-collapsible",null,e),e||!1!==this.options.active||this._activate(0)),"event"===t&&this._setupEvents(e),"heightStyle"===t&&this._setupHeightStyle(e)):this._activate(e)},_sanitizeSelector:function(t){return t?t.replace(/[!"$%&'()*+,.\/:;<=>?@\[\]\^`{|}~]/g,"\\$&"):""},refresh:function(){var e=this.options,i=this.tablist.children(":has(a[href])");e.disabled=t.map(i.filter(".ui-state-disabled"),(function(t){return i.index(t)})),this._processTabs(),!1!==e.active&&this.anchors.length?this.active.length&&!t.contains(this.tablist[0],this.active[0])?this.tabs.length===e.disabled.length?(e.active=!1,this.active=t()):this._activate(this._findNextTab(Math.max(0,e.active-1),!1)):e.active=this.tabs.index(this.active):(e.active=!1,this.active=t()),this._refresh()},_refresh:function(){this._setOptionDisabled(this.options.disabled),this._setupEvents(this.options.event),this._setupHeightStyle(this.options.heightStyle),this.tabs.not(this.active).attr({"aria-selected":"false","aria-expanded":"false",tabIndex:-1}),this.panels.not(this._getPanelForTab(this.active)).hide().attr({"aria-hidden":"true"}),this.active.length?(this.active.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0}),this._addClass(this.active,"ui-tabs-active","ui-state-active"),this._getPanelForTab(this.active).show().attr({"aria-hidden":"false"})):this.tabs.eq(0).attr("tabIndex",0)},_processTabs:function(){var e=this,i=this.tabs,n=this.anchors,s=this.panels;this.tablist=this._getList().attr("role","tablist"),this._addClass(this.tablist,"ui-tabs-nav","ui-helper-reset ui-helper-clearfix ui-widget-header"),this.tablist.on("mousedown"+this.eventNamespace,"> li",(function(e){t(this).is(".ui-state-disabled")&&e.preventDefault()})).on("focus"+this.eventNamespace,".ui-tabs-anchor",(function(){t(this).closest("li").is(".ui-state-disabled")&&this.blur()})),this.tabs=this.tablist.find("> li:has(a[href])").attr({role:"tab",tabIndex:-1}),this._addClass(this.tabs,"ui-tabs-tab","ui-state-default"),this.anchors=this.tabs.map((function(){return t("a",this)[0]})).attr({tabIndex:-1}),this._addClass(this.anchors,"ui-tabs-anchor"),this.panels=t(),this.anchors.each((function(i,n){var s,o,r,a=t(n).uniqueId().attr("id"),l=t(n).closest("li"),c=l.attr("aria-controls");e._isLocal(n)?(r=(s=n.hash).substring(1),o=e.element.find(e._sanitizeSelector(s))):(r=l.attr("aria-controls")||t({}).uniqueId()[0].id,(o=e.element.find(s="#"+r)).length||(o=e._createPanel(r)).insertAfter(e.panels[i-1]||e.tablist),o.attr("aria-live","polite")),o.length&&(e.panels=e.panels.add(o)),c&&l.data("ui-tabs-aria-controls",c),l.attr({"aria-controls":r,"aria-labelledby":a}),o.attr("aria-labelledby",a)})),this.panels.attr("role","tabpanel"),this._addClass(this.panels,"ui-tabs-panel","ui-widget-content"),i&&(this._off(i.not(this.tabs)),this._off(n.not(this.anchors)),this._off(s.not(this.panels)))},_getList:function(){return this.tablist||this.element.find("ol, ul").eq(0)},_createPanel:function(e){return t("<div>").attr("id",e).data("ui-tabs-destroy",!0)},_setOptionDisabled:function(e){var i,n;for(Array.isArray(e)&&(e.length?e.length===this.anchors.length&&(e=!0):e=!1),n=0;i=this.tabs[n];n++)i=t(i),!0===e||-1!==t.inArray(n,e)?(i.attr("aria-disabled","true"),this._addClass(i,null,"ui-state-disabled")):(i.removeAttr("aria-disabled"),this._removeClass(i,null,"ui-state-disabled"));this.options.disabled=e,this._toggleClass(this.widget(),this.widgetFullName+"-disabled",null,!0===e)},_setupEvents:function(e){var i={};e&&t.each(e.split(" "),(function(t,e){i[e]="_eventHandler"})),this._off(this.anchors.add(this.tabs).add(this.panels)),this._on(!0,this.anchors,{click:function(t){t.preventDefault()}}),this._on(this.anchors,i),this._on(this.tabs,{keydown:"_tabKeydown"}),this._on(this.panels,{keydown:"_panelKeydown"}),this._focusable(this.tabs),this._hoverable(this.tabs)},_setupHeightStyle:function(e){var i,n=this.element.parent();"fill"===e?(i=n.height(),i-=this.element.outerHeight()-this.element.height(),this.element.siblings(":visible").each((function(){var e=t(this),n=e.css("position");"absolute"!==n&&"fixed"!==n&&(i-=e.outerHeight(!0))})),this.element.children().not(this.panels).each((function(){i-=t(this).outerHeight(!0)})),this.panels.each((function(){t(this).height(Math.max(0,i-t(this).innerHeight()+t(this).height()))})).css("overflow","auto")):"auto"===e&&(i=0,this.panels.each((function(){i=Math.max(i,t(this).height("").height())})).height(i))},_eventHandler:function(e){var i=this.options,n=this.active,s=t(e.currentTarget).closest("li"),o=s[0]===n[0],r=o&&i.collapsible,a=r?t():this._getPanelForTab(s),l=n.length?this._getPanelForTab(n):t();n={oldTab:n,oldPanel:l,newTab:r?t():s,newPanel:a};e.preventDefault(),s.hasClass("ui-state-disabled")||s.hasClass("ui-tabs-loading")||this.running||o&&!i.collapsible||!1===this._trigger("beforeActivate",e,n)||(i.active=!r&&this.tabs.index(s),this.active=o?t():s,this.xhr&&this.xhr.abort(),l.length||a.length||t.error("jQuery UI Tabs: Mismatching fragment identifier."),a.length&&this.load(this.tabs.index(s),e),this._toggle(e,n))},_toggle:function(e,i){var n=this,s=i.newPanel,o=i.oldPanel;function r(){n.running=!1,n._trigger("activate",e,i)}function a(){n._addClass(i.newTab.closest("li"),"ui-tabs-active","ui-state-active"),s.length&&n.options.show?n._show(s,n.options.show,r):(s.show(),r())}this.running=!0,o.length&&this.options.hide?this._hide(o,this.options.hide,(function(){n._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),a()})):(this._removeClass(i.oldTab.closest("li"),"ui-tabs-active","ui-state-active"),o.hide(),a()),o.attr("aria-hidden","true"),i.oldTab.attr({"aria-selected":"false","aria-expanded":"false"}),s.length&&o.length?i.oldTab.attr("tabIndex",-1):s.length&&this.tabs.filter((function(){return 0===t(this).attr("tabIndex")})).attr("tabIndex",-1),s.attr("aria-hidden","false"),i.newTab.attr({"aria-selected":"true","aria-expanded":"true",tabIndex:0})},_activate:function(e){(e=this._findActive(e))[0]!==this.active[0]&&(e=(e=e.length?e:this.active).find(".ui-tabs-anchor")[0],this._eventHandler({target:e,currentTarget:e,preventDefault:t.noop}))},_findActive:function(e){return!1===e?t():this.tabs.eq(e)},_getIndex:function(e){return"string"==typeof e?this.anchors.index(this.anchors.filter("[href$='"+t.escapeSelector(e)+"']")):e},_destroy:function(){this.xhr&&this.xhr.abort(),this.tablist.removeAttr("role").off(this.eventNamespace),this.anchors.removeAttr("role tabIndex").removeUniqueId(),this.tabs.add(this.panels).each((function(){t.data(this,"ui-tabs-destroy")?t(this).remove():t(this).removeAttr("role tabIndex aria-live aria-busy aria-selected aria-labelledby aria-hidden aria-expanded")})),this.tabs.each((function(){var e=t(this),i=e.data("ui-tabs-aria-controls");i?e.attr("aria-controls",i).removeData("ui-tabs-aria-controls"):e.removeAttr("aria-controls")})),this.panels.show(),"content"!==this.options.heightStyle&&this.panels.css("height","")},enable:function(e){var i=this.options.disabled;!1!==i&&(i=void 0!==e&&(e=this._getIndex(e),Array.isArray(i)?t.map(i,(function(t){return t!==e?t:null})):t.map(this.tabs,(function(t,i){return i!==e?i:null}))),this._setOptionDisabled(i))},disable:function(e){var i=this.options.disabled;if(!0!==i){if(void 0===e)i=!0;else{if(e=this._getIndex(e),-1!==t.inArray(e,i))return;i=Array.isArray(i)?t.merge([e],i).sort():[e]}this._setOptionDisabled(i)}},load:function(e,i){function n(t,e){"abort"===e&&s.panels.stop(!1,!0),s._removeClass(o,"ui-tabs-loading"),r.removeAttr("aria-busy"),t===s.xhr&&delete s.xhr}e=this._getIndex(e);var s=this,o=this.tabs.eq(e),r=(e=o.find(".ui-tabs-anchor"),this._getPanelForTab(o)),a={tab:o,panel:r};this._isLocal(e[0])||(this.xhr=t.ajax(this._ajaxSettings(e,i,a)),this.xhr&&"canceled"!==this.xhr.statusText&&(this._addClass(o,"ui-tabs-loading"),r.attr("aria-busy","true"),this.xhr.done((function(t,e,o){setTimeout((function(){r.html(t),s._trigger("load",i,a),n(o,e)}),1)})).fail((function(t,e){setTimeout((function(){n(t,e)}),1)}))))},_ajaxSettings:function(e,i,n){var s=this;return{url:e.attr("href").replace(/#.*$/,""),beforeSend:function(e,o){return s._trigger("beforeLoad",i,t.extend({jqXHR:e,ajaxSettings:o},n))}}},_getPanelForTab:function(e){return e=t(e).attr("aria-controls"),this.element.find(this._sanitizeSelector("#"+e))}}),!1!==t.uiBackCompat&&t.widget("ui.tabs",t.ui.tabs,{_processTabs:function(){this._superApply(arguments),this._addClass(this.tabs,"ui-tab")}}),t.ui.tabs,t.widget("ui.tooltip",{version:"1.13.2",options:{classes:{"ui-tooltip":"ui-corner-all ui-widget-shadow"},content:function(){var e=t(this).attr("title");return t("<a>").text(e).html()},hide:!0,items:"[title]:not([disabled])",position:{my:"left top+15",at:"left bottom",collision:"flipfit flip"},show:!0,track:!1,close:null,open:null},_addDescribedBy:function(t,e){var i=(t.attr("aria-describedby")||"").split(/\s+/);i.push(e),t.data("ui-tooltip-id",e).attr("aria-describedby",String.prototype.trim.call(i.join(" ")))},_removeDescribedBy:function(e){var i=e.data("ui-tooltip-id"),n=(e.attr("aria-describedby")||"").split(/\s+/);-1!==(i=t.inArray(i,n))&&n.splice(i,1),e.removeData("ui-tooltip-id"),(n=String.prototype.trim.call(n.join(" ")))?e.attr("aria-describedby",n):e.removeAttr("aria-describedby")},_create:function(){this._on({mouseover:"open",focusin:"open"}),this.tooltips={},this.parents={},this.liveRegion=t("<div>").attr({role:"log","aria-live":"assertive","aria-relevant":"additions"}).appendTo(this.document[0].body),this._addClass(this.liveRegion,null,"ui-helper-hidden-accessible"),this.disabledTitles=t([])},_setOption:function(e,i){var n=this;this._super(e,i),"content"===e&&t.each(this.tooltips,(function(t,e){n._updateContent(e.element)}))},_setOptionDisabled:function(t){this[t?"_disable":"_enable"]()},_disable:function(){var e=this;t.each(this.tooltips,(function(i,n){var s=t.Event("blur");s.target=s.currentTarget=n.element[0],e.close(s,!0)})),this.disabledTitles=this.disabledTitles.add(this.element.find(this.options.items).addBack().filter((function(){var e=t(this);if(e.is("[title]"))return e.data("ui-tooltip-title",e.attr("title")).removeAttr("title")})))},_enable:function(){this.disabledTitles.each((function(){var e=t(this);e.data("ui-tooltip-title")&&e.attr("title",e.data("ui-tooltip-title"))})),this.disabledTitles=t([])},open:function(e){var i=this,n=t(e?e.target:this.element).closest(this.options.items);n.length&&!n.data("ui-tooltip-id")&&(n.attr("title")&&n.data("ui-tooltip-title",n.attr("title")),n.data("ui-tooltip-open",!0),e&&"mouseover"===e.type&&n.parents().each((function(){var e,n=t(this);n.data("ui-tooltip-open")&&((e=t.Event("blur")).target=e.currentTarget=this,i.close(e,!0)),n.attr("title")&&(n.uniqueId(),i.parents[this.id]={element:this,title:n.attr("title")},n.attr("title",""))})),this._registerCloseHandlers(e,n),this._updateContent(n,e))},_updateContent:function(t,e){var i=this.options.content,n=this,s=e?e.type:null;if("string"==typeof i||i.nodeType||i.jquery)return this._open(e,t,i);(i=i.call(t[0],(function(i){n._delay((function(){t.data("ui-tooltip-open")&&(e&&(e.type=s),this._open(e,t,i))}))})))&&this._open(e,t,i)},_open:function(e,i,n){var s,o,r,a=t.extend({},this.options.position);function l(t){a.of=t,o.is(":hidden")||o.position(a)}n&&((s=this._find(i))?s.tooltip.find(".ui-tooltip-content").html(n):(i.is("[title]")&&(e&&"mouseover"===e.type?i.attr("title",""):i.removeAttr("title")),s=this._tooltip(i),o=s.tooltip,this._addDescribedBy(i,o.attr("id")),o.find(".ui-tooltip-content").html(n),this.liveRegion.children().hide(),(n=t("<div>").html(o.find(".ui-tooltip-content").html())).removeAttr("name").find("[name]").removeAttr("name"),n.removeAttr("id").find("[id]").removeAttr("id"),n.appendTo(this.liveRegion),this.options.track&&e&&/^mouse/.test(e.type)?(this._on(this.document,{mousemove:l}),l(e)):o.position(t.extend({of:i},this.options.position)),o.hide(),this._show(o,this.options.show),this.options.track&&this.options.show&&this.options.show.delay&&(r=this.delayedShow=setInterval((function(){o.is(":visible")&&(l(a.of),clearInterval(r))}),13)),this._trigger("open",e,{tooltip:o})))},_registerCloseHandlers:function(e,i){var n={keyup:function(e){e.keyCode===t.ui.keyCode.ESCAPE&&((e=t.Event(e)).currentTarget=i[0],this.close(e,!0))}};i[0]!==this.element[0]&&(n.remove=function(){var t=this._find(i);t&&this._removeTooltip(t.tooltip)}),e&&"mouseover"!==e.type||(n.mouseleave="close"),e&&"focusin"!==e.type||(n.focusout="close"),this._on(!0,i,n)},close:function(e){var i,n=this,s=t(e?e.currentTarget:this.element),o=this._find(s);o?(i=o.tooltip,o.closing||(clearInterval(this.delayedShow),s.data("ui-tooltip-title")&&!s.attr("title")&&s.attr("title",s.data("ui-tooltip-title")),this._removeDescribedBy(s),o.hiding=!0,i.stop(!0),this._hide(i,this.options.hide,(function(){n._removeTooltip(t(this))})),s.removeData("ui-tooltip-open"),this._off(s,"mouseleave focusout keyup"),s[0]!==this.element[0]&&this._off(s,"remove"),this._off(this.document,"mousemove"),e&&"mouseleave"===e.type&&t.each(this.parents,(function(e,i){t(i.element).attr("title",i.title),delete n.parents[e]})),o.closing=!0,this._trigger("close",e,{tooltip:i}),o.hiding||(o.closing=!1))):s.removeData("ui-tooltip-open")},_tooltip:function(e){var i=t("<div>").attr("role","tooltip"),n=t("<div>").appendTo(i),s=i.uniqueId().attr("id");return this._addClass(n,"ui-tooltip-content"),this._addClass(i,"ui-tooltip","ui-widget ui-widget-content"),i.appendTo(this._appendTo(e)),this.tooltips[s]={element:e,tooltip:i}},_find:function(t){return(t=t.data("ui-tooltip-id"))?this.tooltips[t]:null},_removeTooltip:function(t){clearInterval(this.delayedShow),t.remove(),delete this.tooltips[t.attr("id")]},_appendTo:function(t){return(t=t.closest(".ui-front, dialog")).length?t:this.document[0].body},_destroy:function(){var e=this;t.each(this.tooltips,(function(i,n){var s=t.Event("blur");n=n.element;s.target=s.currentTarget=n[0],e.close(s,!0),t("#"+i).remove(),n.data("ui-tooltip-title")&&(n.attr("title")||n.attr("title",n.data("ui-tooltip-title")),n.removeData("ui-tooltip-title"))})),this.liveRegion.remove()}}),!1!==t.uiBackCompat&&t.widget("ui.tooltip",t.ui.tooltip,{options:{tooltipClass:null},_tooltip:function(){var t=this._superApply(arguments);return this.options.tooltipClass&&t.tooltip.addClass(this.options.tooltipClass),t}}),t.ui.tooltip})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).bootstrap=e()}(this,(function(){"use strict";const t="transitionend",e=t=>{let e=t.getAttribute("data-bs-target");if(!e||"#"===e){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&"#"!==i?i.trim():null}return e},i=t=>{const i=e(t);return i&&document.querySelector(i)?i:null},n=t=>{const i=e(t);return i?document.querySelector(i):null},s=e=>{e.dispatchEvent(new Event(t))},o=t=>!(!t||"object"!=typeof t)&&(void 0!==t.jquery&&(t=t[0]),void 0!==t.nodeType),r=t=>o(t)?t.jquery?t[0]:t:"string"==typeof t&&t.length>0?document.querySelector(t):null,a=t=>{if(!o(t)||0===t.getClientRects().length)return!1;const e="visible"===getComputedStyle(t).getPropertyValue("visibility"),i=t.closest("details:not([open])");if(!i)return e;if(i!==t){const e=t.closest("summary");if(e&&e.parentNode!==i)return!1;if(null===e)return!1}return e},l=t=>!t||t.nodeType!==Node.ELEMENT_NODE||!!t.classList.contains("disabled")||(void 0!==t.disabled?t.disabled:t.hasAttribute("disabled")&&"false"!==t.getAttribute("disabled")),c=t=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof t.getRootNode){const e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?c(t.parentNode):null},u=()=>{},h=t=>{t.offsetHeight},d=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,p=[],f=()=>"rtl"===document.documentElement.dir,m=t=>{var e;e=()=>{const e=d();if(e){const i=t.NAME,n=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=n,t.jQueryInterface)}},"loading"===document.readyState?(p.length||document.addEventListener("DOMContentLoaded",(()=>{for(const t of p)t()})),p.push(e)):e()},g=t=>{"function"==typeof t&&t()},v=(e,i,n=!0)=>{if(!n)return void g(e);const o=(t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t);const n=Number.parseFloat(e),s=Number.parseFloat(i);return n||s?(e=e.split(",")[0],i=i.split(",")[0],1e3*(Number.parseFloat(e)+Number.parseFloat(i))):0})(i)+5;let r=!1;const a=({target:n})=>{n===i&&(r=!0,i.removeEventListener(t,a),g(e))};i.addEventListener(t,a),setTimeout((()=>{r||s(i)}),o)},y=(t,e,i,n)=>{const s=t.length;let o=t.indexOf(e);return-1===o?!i&&n?t[s-1]:t[0]:(o+=i?1:-1,n&&(o=(o+s)%s),t[Math.max(0,Math.min(o,s-1))])},b=/[^.]*(?=\..*)\.|.*/,_=/\..*/,w=/::\d+$/,x={};let k=1;const C={mouseenter:"mouseover",mouseleave:"mouseout"},T=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function S(t,e){return e&&`${e}::${k++}`||t.uidEvent||k++}function E(t){const e=S(t);return t.uidEvent=e,x[e]=x[e]||{},x[e]}function D(t,e,i=null){return Object.values(t).find((t=>t.callable===e&&t.delegationSelector===i))}function A(t,e,i){const n="string"==typeof e,s=n?i:e||i;let o=M(t);return T.has(o)||(o=t),[n,s,o]}function O(t,e,i,n,s){if("string"!=typeof e||!t)return;let[o,r,a]=A(e,i,n);if(e in C){const t=t=>function(e){if(!e.relatedTarget||e.relatedTarget!==e.delegateTarget&&!e.delegateTarget.contains(e.relatedTarget))return t.call(this,e)};r=t(r)}const l=E(t),c=l[a]||(l[a]={}),u=D(c,r,o?i:null);if(u)return void(u.oneOff=u.oneOff&&s);const h=S(r,e.replace(b,"")),d=o?function(t,e,i){return function n(s){const o=t.querySelectorAll(e);for(let{target:r}=s;r&&r!==this;r=r.parentNode)for(const a of o)if(a===r)return $(s,{delegateTarget:r}),n.oneOff&&I.off(t,s.type,e,i),i.apply(r,[s])}}(t,i,r):function(t,e){return function i(n){return $(n,{delegateTarget:t}),i.oneOff&&I.off(t,n.type,e),e.apply(t,[n])}}(t,r);d.delegationSelector=o?i:null,d.callable=r,d.oneOff=s,d.uidEvent=h,c[h]=d,t.addEventListener(a,d,o)}function L(t,e,i,n,s){const o=D(e[i],n,s);o&&(t.removeEventListener(i,o,Boolean(s)),delete e[i][o.uidEvent])}function P(t,e,i,n){const s=e[i]||{};for(const o of Object.keys(s))if(o.includes(n)){const n=s[o];L(t,e,i,n.callable,n.delegationSelector)}}function M(t){return t=t.replace(_,""),C[t]||t}const I={on(t,e,i,n){O(t,e,i,n,!1)},one(t,e,i,n){O(t,e,i,n,!0)},off(t,e,i,n){if("string"!=typeof e||!t)return;const[s,o,r]=A(e,i,n),a=r!==e,l=E(t),c=l[r]||{},u=e.startsWith(".");if(void 0===o){if(u)for(const i of Object.keys(l))P(t,l,i,e.slice(1));for(const i of Object.keys(c)){const n=i.replace(w,"");if(!a||e.includes(n)){const e=c[i];L(t,l,r,e.callable,e.delegationSelector)}}}else{if(!Object.keys(c).length)return;L(t,l,r,o,s?i:null)}},trigger(t,e,i){if("string"!=typeof e||!t)return null;const n=d();let s=null,o=!0,r=!0,a=!1;e!==M(e)&&n&&(s=n.Event(e,i),n(t).trigger(s),o=!s.isPropagationStopped(),r=!s.isImmediatePropagationStopped(),a=s.isDefaultPrevented());let l=new Event(e,{bubbles:o,cancelable:!0});return l=$(l,i),a&&l.preventDefault(),r&&t.dispatchEvent(l),l.defaultPrevented&&s&&s.preventDefault(),l}};function $(t,e){for(const[i,n]of Object.entries(e||{}))try{t[i]=n}catch(e){Object.defineProperty(t,i,{configurable:!0,get:()=>n})}return t}const N=new Map,z={set(t,e,i){N.has(t)||N.set(t,new Map);const n=N.get(t);n.has(e)||0===n.size?n.set(e,i):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(n.keys())[0]}.`)},get:(t,e)=>N.has(t)&&N.get(t).get(e)||null,remove(t,e){if(!N.has(t))return;const i=N.get(t);i.delete(e),0===i.size&&N.delete(t)}};function H(t){if("true"===t)return!0;if("false"===t)return!1;if(t===Number(t).toString())return Number(t);if(""===t||"null"===t)return null;if("string"!=typeof t)return t;try{return JSON.parse(decodeURIComponent(t))}catch(e){return t}}function j(t){return t.replace(/[A-Z]/g,(t=>`-${t.toLowerCase()}`))}const R={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${j(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${j(e)}`)},getDataAttributes(t){if(!t)return{};const e={},i=Object.keys(t.dataset).filter((t=>t.startsWith("bs")&&!t.startsWith("bsConfig")));for(const n of i){let i=n.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),e[i]=H(t.dataset[n])}return e},getDataAttribute:(t,e)=>H(t.getAttribute(`data-bs-${j(e)}`))};class q{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const i=o(e)?R.getDataAttribute(e,"config"):{};return{...this.constructor.Default,..."object"==typeof i?i:{},...o(e)?R.getDataAttributes(e):{},..."object"==typeof t?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const n of Object.keys(e)){const s=e[n],r=t[n],a=o(r)?"element":null==(i=r)?`${i}`:Object.prototype.toString.call(i).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(s).test(a))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${n}" provided type "${a}" but expected type "${s}".`)}var i}}class B extends q{constructor(t,e){super(),(t=r(t))&&(this._element=t,this._config=this._getConfig(e),z.set(this._element,this.constructor.DATA_KEY,this))}dispose(){z.remove(this._element,this.constructor.DATA_KEY),I.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,i=!0){v(t,e,i)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return z.get(r(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,"object"==typeof e?e:null)}static get VERSION(){return"5.2.2"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const W=(t,e="hide")=>{const i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;I.on(document,i,`[data-bs-dismiss="${s}"]`,(function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),l(this))return;const o=n(this)||this.closest(`.${s}`);t.getOrCreateInstance(o)[e]()}))};class F extends B{static get NAME(){return"alert"}close(){if(I.trigger(this._element,"close.bs.alert").defaultPrevented)return;this._element.classList.remove("show");const t=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,t)}_destroyElement(){this._element.remove(),I.trigger(this._element,"closed.bs.alert"),this.dispose()}static jQueryInterface(t){return this.each((function(){const e=F.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}W(F,"close"),m(F);const U='[data-bs-toggle="button"]';class Y extends B{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(t){return this.each((function(){const e=Y.getOrCreateInstance(this);"toggle"===t&&e[t]()}))}}I.on(document,"click.bs.button.data-api",U,(t=>{t.preventDefault();const e=t.target.closest(U);Y.getOrCreateInstance(e).toggle()})),m(Y);const V={find:(t,e=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(e,t)),findOne:(t,e=document.documentElement)=>Element.prototype.querySelector.call(e,t),children:(t,e)=>[].concat(...t.children).filter((t=>t.matches(e))),parents(t,e){const i=[];let n=t.parentNode.closest(e);for(;n;)i.push(n),n=n.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){const e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((t=>`${t}:not([tabindex^="-"])`)).join(",");return this.find(e,t).filter((t=>!l(t)&&a(t)))}},K={endCallback:null,leftCallback:null,rightCallback:null},X={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class G extends q{constructor(t,e){super(),this._element=t,t&&G.isSupported()&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return K}static get DefaultType(){return X}static get NAME(){return"swipe"}dispose(){I.off(this._element,".bs.swipe")}_start(t){this._supportPointerEvents?this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX):this._deltaX=t.touches[0].clientX}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),g(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=40)return;const e=t/this._deltaX;this._deltaX=0,e&&g(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(I.on(this._element,"pointerdown.bs.swipe",(t=>this._start(t))),I.on(this._element,"pointerup.bs.swipe",(t=>this._end(t))),this._element.classList.add("pointer-event")):(I.on(this._element,"touchstart.bs.swipe",(t=>this._start(t))),I.on(this._element,"touchmove.bs.swipe",(t=>this._move(t))),I.on(this._element,"touchend.bs.swipe",(t=>this._end(t))))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&("pen"===t.pointerType||"touch"===t.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const Z="next",Q="prev",J="left",tt="right",et="slid.bs.carousel",it="carousel",nt="active",st={ArrowLeft:tt,ArrowRight:J},ot={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},rt={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class at extends B{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=V.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===it&&this.cycle()}static get Default(){return ot}static get DefaultType(){return rt}static get NAME(){return"carousel"}next(){this._slide(Z)}nextWhenVisible(){!document.hidden&&a(this._element)&&this.next()}prev(){this._slide(Q)}pause(){this._isSliding&&s(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?I.one(this._element,et,(()=>this.cycle())):this.cycle())}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding)return void I.one(this._element,et,(()=>this.to(t)));const i=this._getItemIndex(this._getActive());if(i===t)return;const n=t>i?Z:Q;this._slide(n,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&I.on(this._element,"keydown.bs.carousel",(t=>this._keydown(t))),"hover"===this._config.pause&&(I.on(this._element,"mouseenter.bs.carousel",(()=>this.pause())),I.on(this._element,"mouseleave.bs.carousel",(()=>this._maybeEnableCycle()))),this._config.touch&&G.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const t of V.find(".carousel-item img",this._element))I.on(t,"dragstart.bs.carousel",(t=>t.preventDefault()));const t={leftCallback:()=>this._slide(this._directionToOrder(J)),rightCallback:()=>this._slide(this._directionToOrder(tt)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new G(this._element,t)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=st[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=V.findOne(".active",this._indicatorsElement);e.classList.remove(nt),e.removeAttribute("aria-current");const i=V.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);i&&(i.classList.add(nt),i.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const i=this._getActive(),n=t===Z,s=e||y(this._getItems(),i,n,this._config.wrap);if(s===i)return;const o=this._getItemIndex(s),r=e=>I.trigger(this._element,e,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(i),to:o});if(r("slide.bs.carousel").defaultPrevented)return;if(!i||!s)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(o),this._activeElement=s;const l=n?"carousel-item-start":"carousel-item-end",c=n?"carousel-item-next":"carousel-item-prev";s.classList.add(c),h(s),i.classList.add(l),s.classList.add(l),this._queueCallback((()=>{s.classList.remove(l,c),s.classList.add(nt),i.classList.remove(nt,c,l),this._isSliding=!1,r(et)}),i,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return V.findOne(".active.carousel-item",this._element)}_getItems(){return V.find(".carousel-item",this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return f()?t===J?Q:Z:t===J?Z:Q}_orderToDirection(t){return f()?t===Q?J:tt:t===Q?tt:J}static jQueryInterface(t){return this.each((function(){const e=at.getOrCreateInstance(this,t);if("number"!=typeof t){if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}else e.to(t)}))}}I.on(document,"click.bs.carousel.data-api","[data-bs-slide], [data-bs-slide-to]",(function(t){const e=n(this);if(!e||!e.classList.contains(it))return;t.preventDefault();const i=at.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");return s?(i.to(s),void i._maybeEnableCycle()):"next"===R.getDataAttribute(this,"slide")?(i.next(),void i._maybeEnableCycle()):(i.prev(),void i._maybeEnableCycle())})),I.on(window,"load.bs.carousel.data-api",(()=>{const t=V.find('[data-bs-ride="carousel"]');for(const e of t)at.getOrCreateInstance(e)})),m(at);const lt="show",ct="collapse",ut="collapsing",ht='[data-bs-toggle="collapse"]',dt={parent:null,toggle:!0},pt={parent:"(null|element)",toggle:"boolean"};class ft extends B{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const n=V.find(ht);for(const t of n){const e=i(t),n=V.find(e).filter((t=>t===this._element));null!==e&&n.length&&this._triggerArray.push(t)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return dt}static get DefaultType(){return pt}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((t=>t!==this._element)).map((t=>ft.getOrCreateInstance(t,{toggle:!1})))),t.length&&t[0]._isTransitioning)return;if(I.trigger(this._element,"show.bs.collapse").defaultPrevented)return;for(const e of t)e.hide();const e=this._getDimension();this._element.classList.remove(ct),this._element.classList.add(ut),this._element.style[e]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=`scroll${e[0].toUpperCase()+e.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ut),this._element.classList.add(ct,lt),this._element.style[e]="",I.trigger(this._element,"shown.bs.collapse")}),this._element,!0),this._element.style[e]=`${this._element[i]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(I.trigger(this._element,"hide.bs.collapse").defaultPrevented)return;const t=this._getDimension();this._element.style[t]=`${this._element.getBoundingClientRect()[t]}px`,h(this._element),this._element.classList.add(ut),this._element.classList.remove(ct,lt);for(const t of this._triggerArray){const e=n(t);e&&!this._isShown(e)&&this._addAriaAndCollapsedClass([t],!1)}this._isTransitioning=!0,this._element.style[t]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(ut),this._element.classList.add(ct),I.trigger(this._element,"hidden.bs.collapse")}),this._element,!0)}_isShown(t=this._element){return t.classList.contains(lt)}_configAfterMerge(t){return t.toggle=Boolean(t.toggle),t.parent=r(t.parent),t}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(ht);for(const e of t){const t=n(e);t&&this._addAriaAndCollapsedClass([e],this._isShown(t))}}_getFirstLevelChildren(t){const e=V.find(":scope .collapse .collapse",this._config.parent);return V.find(t,this._config.parent).filter((t=>!e.includes(t)))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const i of t)i.classList.toggle("collapsed",!e),i.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return"string"==typeof t&&/show|hide/.test(t)&&(e.toggle=!1),this.each((function(){const i=ft.getOrCreateInstance(this,e);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t]()}}))}}I.on(document,"click.bs.collapse.data-api",ht,(function(t){("A"===t.target.tagName||t.delegateTarget&&"A"===t.delegateTarget.tagName)&&t.preventDefault();const e=i(this),n=V.find(e);for(const t of n)ft.getOrCreateInstance(t,{toggle:!1}).toggle()})),m(ft);var mt="top",gt="bottom",vt="right",yt="left",bt="auto",_t=[mt,gt,vt,yt],wt="start",xt="end",kt="clippingParents",Ct="viewport",Tt="popper",St="reference",Et=_t.reduce((function(t,e){return t.concat([e+"-"+wt,e+"-"+xt])}),[]),Dt=[].concat(_t,[bt]).reduce((function(t,e){return t.concat([e,e+"-"+wt,e+"-"+xt])}),[]),At="beforeRead",Ot="read",Lt="afterRead",Pt="beforeMain",Mt="main",It="afterMain",$t="beforeWrite",Nt="write",zt="afterWrite",Ht=[At,Ot,Lt,Pt,Mt,It,$t,Nt,zt];function jt(t){return t?(t.nodeName||"").toLowerCase():null}function Rt(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function qt(t){return t instanceof Rt(t).Element||t instanceof Element}function Bt(t){return t instanceof Rt(t).HTMLElement||t instanceof HTMLElement}function Wt(t){return"undefined"!=typeof ShadowRoot&&(t instanceof Rt(t).ShadowRoot||t instanceof ShadowRoot)}const Ft={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var i=e.styles[t]||{},n=e.attributes[t]||{},s=e.elements[t];Bt(s)&&jt(s)&&(Object.assign(s.style,i),Object.keys(n).forEach((function(t){var e=n[t];!1===e?s.removeAttribute(t):s.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],s=e.attributes[t]||{},o=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:i[t]).reduce((function(t,e){return t[e]="",t}),{});Bt(n)&&jt(n)&&(Object.assign(n.style,o),Object.keys(s).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]};function Ut(t){return t.split("-")[0]}var Yt=Math.max,Vt=Math.min,Kt=Math.round;function Xt(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function Gt(){return!/^((?!chrome|android).)*safari/i.test(Xt())}function Zt(t,e,i){void 0===e&&(e=!1),void 0===i&&(i=!1);var n=t.getBoundingClientRect(),s=1,o=1;e&&Bt(t)&&(s=t.offsetWidth>0&&Kt(n.width)/t.offsetWidth||1,o=t.offsetHeight>0&&Kt(n.height)/t.offsetHeight||1);var r=(qt(t)?Rt(t):window).visualViewport,a=!Gt()&&i,l=(n.left+(a&&r?r.offsetLeft:0))/s,c=(n.top+(a&&r?r.offsetTop:0))/o,u=n.width/s,h=n.height/o;return{width:u,height:h,top:c,right:l+u,bottom:c+h,left:l,x:l,y:c}}function Qt(t){var e=Zt(t),i=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:n}}function Jt(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Wt(i)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function te(t){return Rt(t).getComputedStyle(t)}function ee(t){return["table","td","th"].indexOf(jt(t))>=0}function ie(t){return((qt(t)?t.ownerDocument:t.document)||window.document).documentElement}function ne(t){return"html"===jt(t)?t:t.assignedSlot||t.parentNode||(Wt(t)?t.host:null)||ie(t)}function se(t){return Bt(t)&&"fixed"!==te(t).position?t.offsetParent:null}function oe(t){for(var e=Rt(t),i=se(t);i&&ee(i)&&"static"===te(i).position;)i=se(i);return i&&("html"===jt(i)||"body"===jt(i)&&"static"===te(i).position)?e:i||function(t){var e=/firefox/i.test(Xt());if(/Trident/i.test(Xt())&&Bt(t)&&"fixed"===te(t).position)return null;var i=ne(t);for(Wt(i)&&(i=i.host);Bt(i)&&["html","body"].indexOf(jt(i))<0;){var n=te(i);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return i;i=i.parentNode}return null}(t)||e}function re(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ae(t,e,i){return Yt(t,Vt(e,i))}function le(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ce(t,e){return e.reduce((function(e,i){return e[i]=t,e}),{})}const ue={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,i=t.state,n=t.name,s=t.options,o=i.elements.arrow,r=i.modifiersData.popperOffsets,a=Ut(i.placement),l=re(a),c=[yt,vt].indexOf(a)>=0?"height":"width";if(o&&r){var u=function(t,e){return le("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ce(t,_t))}(s.padding,i),h=Qt(o),d="y"===l?mt:yt,p="y"===l?gt:vt,f=i.rects.reference[c]+i.rects.reference[l]-r[l]-i.rects.popper[c],m=r[l]-i.rects.reference[l],g=oe(o),v=g?"y"===l?g.clientHeight||0:g.clientWidth||0:0,y=f/2-m/2,b=u[d],_=v-h[c]-u[p],w=v/2-h[c]/2+y,x=ae(b,w,_),k=l;i.modifiersData[n]=((e={})[k]=x,e.centerOffset=x-w,e)}},effect:function(t){var e=t.state,i=t.options.element,n=void 0===i?"[data-popper-arrow]":i;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&Jt(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function he(t){return t.split("-")[1]}var de={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pe(t){var e,i=t.popper,n=t.popperRect,s=t.placement,o=t.variation,r=t.offsets,a=t.position,l=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,h=t.isFixed,d=r.x,p=void 0===d?0:d,f=r.y,m=void 0===f?0:f,g="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=g.x,m=g.y;var v=r.hasOwnProperty("x"),y=r.hasOwnProperty("y"),b=yt,_=mt,w=window;if(c){var x=oe(i),k="clientHeight",C="clientWidth";x===Rt(i)&&"static"!==te(x=ie(i)).position&&"absolute"===a&&(k="scrollHeight",C="scrollWidth"),(s===mt||(s===yt||s===vt)&&o===xt)&&(_=gt,m-=(h&&x===w&&w.visualViewport?w.visualViewport.height:x[k])-n.height,m*=l?1:-1),s!==yt&&(s!==mt&&s!==gt||o!==xt)||(b=vt,p-=(h&&x===w&&w.visualViewport?w.visualViewport.width:x[C])-n.width,p*=l?1:-1)}var T,S=Object.assign({position:a},c&&de),E=!0===u?function(t){var e=t.x,i=t.y,n=window.devicePixelRatio||1;return{x:Kt(e*n)/n||0,y:Kt(i*n)/n||0}}({x:p,y:m}):{x:p,y:m};return p=E.x,m=E.y,l?Object.assign({},S,((T={})[_]=y?"0":"",T[b]=v?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",T)):Object.assign({},S,((e={})[_]=y?m+"px":"",e[b]=v?p+"px":"",e.transform="",e))}const fe={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,i=t.options,n=i.gpuAcceleration,s=void 0===n||n,o=i.adaptive,r=void 0===o||o,a=i.roundOffsets,l=void 0===a||a,c={placement:Ut(e.placement),variation:he(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:s,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,pe(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:r,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,pe(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}};var me={passive:!0};const ge={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,i=t.instance,n=t.options,s=n.scroll,o=void 0===s||s,r=n.resize,a=void 0===r||r,l=Rt(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return o&&c.forEach((function(t){t.addEventListener("scroll",i.update,me)})),a&&l.addEventListener("resize",i.update,me),function(){o&&c.forEach((function(t){t.removeEventListener("scroll",i.update,me)})),a&&l.removeEventListener("resize",i.update,me)}},data:{}};var ve={left:"right",right:"left",bottom:"top",top:"bottom"};function ye(t){return t.replace(/left|right|bottom|top/g,(function(t){return ve[t]}))}var be={start:"end",end:"start"};function _e(t){return t.replace(/start|end/g,(function(t){return be[t]}))}function we(t){var e=Rt(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function xe(t){return Zt(ie(t)).left+we(t).scrollLeft}function ke(t){var e=te(t),i=e.overflow,n=e.overflowX,s=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+s+n)}function Ce(t){return["html","body","#document"].indexOf(jt(t))>=0?t.ownerDocument.body:Bt(t)&&ke(t)?t:Ce(ne(t))}function Te(t,e){var i;void 0===e&&(e=[]);var n=Ce(t),s=n===(null==(i=t.ownerDocument)?void 0:i.body),o=Rt(n),r=s?[o].concat(o.visualViewport||[],ke(n)?n:[]):n,a=e.concat(r);return s?a:a.concat(Te(ne(r)))}function Se(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Ee(t,e,i){return e===Ct?Se(function(t,e){var i=Rt(t),n=ie(t),s=i.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,l=0;if(s){o=s.width,r=s.height;var c=Gt();(c||!c&&"fixed"===e)&&(a=s.offsetLeft,l=s.offsetTop)}return{width:o,height:r,x:a+xe(t),y:l}}(t,i)):qt(e)?function(t,e){var i=Zt(t,!1,"fixed"===e);return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}(e,i):Se(function(t){var e,i=ie(t),n=we(t),s=null==(e=t.ownerDocument)?void 0:e.body,o=Yt(i.scrollWidth,i.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),r=Yt(i.scrollHeight,i.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),a=-n.scrollLeft+xe(t),l=-n.scrollTop;return"rtl"===te(s||i).direction&&(a+=Yt(i.clientWidth,s?s.clientWidth:0)-o),{width:o,height:r,x:a,y:l}}(ie(t)))}function De(t){var e,i=t.reference,n=t.element,s=t.placement,o=s?Ut(s):null,r=s?he(s):null,a=i.x+i.width/2-n.width/2,l=i.y+i.height/2-n.height/2;switch(o){case mt:e={x:a,y:i.y-n.height};break;case gt:e={x:a,y:i.y+i.height};break;case vt:e={x:i.x+i.width,y:l};break;case yt:e={x:i.x-n.width,y:l};break;default:e={x:i.x,y:i.y}}var c=o?re(o):null;if(null!=c){var u="y"===c?"height":"width";switch(r){case wt:e[c]=e[c]-(i[u]/2-n[u]/2);break;case xt:e[c]=e[c]+(i[u]/2-n[u]/2)}}return e}function Ae(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=void 0===n?t.placement:n,o=i.strategy,r=void 0===o?t.strategy:o,a=i.boundary,l=void 0===a?kt:a,c=i.rootBoundary,u=void 0===c?Ct:c,h=i.elementContext,d=void 0===h?Tt:h,p=i.altBoundary,f=void 0!==p&&p,m=i.padding,g=void 0===m?0:m,v=le("number"!=typeof g?g:ce(g,_t)),y=d===Tt?St:Tt,b=t.rects.popper,_=t.elements[f?y:d],w=function(t,e,i,n){var s="clippingParents"===e?function(t){var e=Te(ne(t)),i=["absolute","fixed"].indexOf(te(t).position)>=0&&Bt(t)?oe(t):t;return qt(i)?e.filter((function(t){return qt(t)&&Jt(t,i)&&"body"!==jt(t)})):[]}(t):[].concat(e),o=[].concat(s,[i]),r=o[0],a=o.reduce((function(e,i){var s=Ee(t,i,n);return e.top=Yt(s.top,e.top),e.right=Vt(s.right,e.right),e.bottom=Vt(s.bottom,e.bottom),e.left=Yt(s.left,e.left),e}),Ee(t,r,n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(qt(_)?_:_.contextElement||ie(t.elements.popper),l,u,r),x=Zt(t.elements.reference),k=De({reference:x,element:b,strategy:"absolute",placement:s}),C=Se(Object.assign({},b,k)),T=d===Tt?C:x,S={top:w.top-T.top+v.top,bottom:T.bottom-w.bottom+v.bottom,left:w.left-T.left+v.left,right:T.right-w.right+v.right},E=t.modifiersData.offset;if(d===Tt&&E){var D=E[s];Object.keys(S).forEach((function(t){var e=[vt,gt].indexOf(t)>=0?1:-1,i=[mt,gt].indexOf(t)>=0?"y":"x";S[t]+=D[i]*e}))}return S}const Oe={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0===r||r,l=i.fallbackPlacements,c=i.padding,u=i.boundary,h=i.rootBoundary,d=i.altBoundary,p=i.flipVariations,f=void 0===p||p,m=i.allowedAutoPlacements,g=e.options.placement,v=Ut(g),y=l||(v!==g&&f?function(t){if(Ut(t)===bt)return[];var e=ye(t);return[_e(t),e,_e(e)]}(g):[ye(g)]),b=[g].concat(y).reduce((function(t,i){return t.concat(Ut(i)===bt?function(t,e){void 0===e&&(e={});var i=e,n=i.placement,s=i.boundary,o=i.rootBoundary,r=i.padding,a=i.flipVariations,l=i.allowedAutoPlacements,c=void 0===l?Dt:l,u=he(n),h=u?a?Et:Et.filter((function(t){return he(t)===u})):_t,d=h.filter((function(t){return c.indexOf(t)>=0}));0===d.length&&(d=h);var p=d.reduce((function(e,i){return e[i]=Ae(t,{placement:i,boundary:s,rootBoundary:o,padding:r})[Ut(i)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:i,boundary:u,rootBoundary:h,padding:c,flipVariations:f,allowedAutoPlacements:m}):i)}),[]),_=e.rects.reference,w=e.rects.popper,x=new Map,k=!0,C=b[0],T=0;T<b.length;T++){var S=b[T],E=Ut(S),D=he(S)===wt,A=[mt,gt].indexOf(E)>=0,O=A?"width":"height",L=Ae(e,{placement:S,boundary:u,rootBoundary:h,altBoundary:d,padding:c}),P=A?D?vt:yt:D?gt:mt;_[O]>w[O]&&(P=ye(P));var M=ye(P),I=[];if(o&&I.push(L[E]<=0),a&&I.push(L[P]<=0,L[M]<=0),I.every((function(t){return t}))){C=S,k=!1;break}x.set(S,I)}if(k)for(var $=function(t){var e=b.find((function(e){var i=x.get(e);if(i)return i.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},N=f?3:1;N>0&&"break"!==$(N);N--);e.placement!==C&&(e.modifiersData[n]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Le(t,e,i){return void 0===i&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Pe(t){return[mt,vt,gt,yt].some((function(e){return t[e]>=0}))}const Me={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,i=t.name,n=e.rects.reference,s=e.rects.popper,o=e.modifiersData.preventOverflow,r=Ae(e,{elementContext:"reference"}),a=Ae(e,{altBoundary:!0}),l=Le(r,n),c=Le(a,s,o),u=Pe(l),h=Pe(c);e.modifiersData[i]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}},Ie={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.offset,o=void 0===s?[0,0]:s,r=Dt.reduce((function(t,i){return t[i]=function(t,e,i){var n=Ut(t),s=[yt,mt].indexOf(n)>=0?-1:1,o="function"==typeof i?i(Object.assign({},e,{placement:t})):i,r=o[0],a=o[1];return r=r||0,a=(a||0)*s,[yt,vt].indexOf(n)>=0?{x:a,y:r}:{x:r,y:a}}(i,e.rects,o),t}),{}),a=r[e.placement],l=a.x,c=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=c),e.modifiersData[n]=r}},$e={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,i=t.name;e.modifiersData[i]=De({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},Ne={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,i=t.options,n=t.name,s=i.mainAxis,o=void 0===s||s,r=i.altAxis,a=void 0!==r&&r,l=i.boundary,c=i.rootBoundary,u=i.altBoundary,h=i.padding,d=i.tether,p=void 0===d||d,f=i.tetherOffset,m=void 0===f?0:f,g=Ae(e,{boundary:l,rootBoundary:c,padding:h,altBoundary:u}),v=Ut(e.placement),y=he(e.placement),b=!y,_=re(v),w="x"===_?"y":"x",x=e.modifiersData.popperOffsets,k=e.rects.reference,C=e.rects.popper,T="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S="number"==typeof T?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),E=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,D={x:0,y:0};if(x){if(o){var A,O="y"===_?mt:yt,L="y"===_?gt:vt,P="y"===_?"height":"width",M=x[_],I=M+g[O],$=M-g[L],N=p?-C[P]/2:0,z=y===wt?k[P]:C[P],H=y===wt?-C[P]:-k[P],j=e.elements.arrow,R=p&&j?Qt(j):{width:0,height:0},q=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=q[O],W=q[L],F=ae(0,k[P],R[P]),U=b?k[P]/2-N-F-B-S.mainAxis:z-F-B-S.mainAxis,Y=b?-k[P]/2+N+F+W+S.mainAxis:H+F+W+S.mainAxis,V=e.elements.arrow&&oe(e.elements.arrow),K=V?"y"===_?V.clientTop||0:V.clientLeft||0:0,X=null!=(A=null==E?void 0:E[_])?A:0,G=M+Y-X,Z=ae(p?Vt(I,M+U-X-K):I,M,p?Yt($,G):$);x[_]=Z,D[_]=Z-M}if(a){var Q,J="x"===_?mt:yt,tt="x"===_?gt:vt,et=x[w],it="y"===w?"height":"width",nt=et+g[J],st=et-g[tt],ot=-1!==[mt,yt].indexOf(v),rt=null!=(Q=null==E?void 0:E[w])?Q:0,at=ot?nt:et-k[it]-C[it]-rt+S.altAxis,lt=ot?et+k[it]+C[it]-rt-S.altAxis:st,ct=p&&ot?function(t,e,i){var n=ae(t,e,i);return n>i?i:n}(at,et,lt):ae(p?at:nt,et,p?lt:st);x[w]=ct,D[w]=ct-et}e.modifiersData[n]=D}},requiresIfExists:["offset"]};function ze(t,e,i){void 0===i&&(i=!1);var n,s,o=Bt(e),r=Bt(e)&&function(t){var e=t.getBoundingClientRect(),i=Kt(e.width)/t.offsetWidth||1,n=Kt(e.height)/t.offsetHeight||1;return 1!==i||1!==n}(e),a=ie(e),l=Zt(t,r,i),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!i)&&(("body"!==jt(e)||ke(a))&&(c=(n=e)!==Rt(n)&&Bt(n)?{scrollLeft:(s=n).scrollLeft,scrollTop:s.scrollTop}:we(n)),Bt(e)?((u=Zt(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=xe(a))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function He(t){var e=new Map,i=new Set,n=[];function s(t){i.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!i.has(t)){var n=e.get(t);n&&s(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){i.has(t.name)||s(t)})),n}var je={placement:"bottom",modifiers:[],strategy:"absolute"};function Re(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function qe(t){void 0===t&&(t={});var e=t,i=e.defaultModifiers,n=void 0===i?[]:i,s=e.defaultOptions,o=void 0===s?je:s;return function(t,e,i){void 0===i&&(i=o);var s,r,a={placement:"bottom",orderedModifiers:[],options:Object.assign({},je,o),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,u={state:a,setOptions:function(i){var s="function"==typeof i?i(a.options):i;h(),a.options=Object.assign({},o,a.options,s),a.scrollParents={reference:qt(t)?Te(t):t.contextElement?Te(t.contextElement):[],popper:Te(e)};var r,c,d=function(t){var e=He(t);return Ht.reduce((function(t,i){return t.concat(e.filter((function(t){return t.phase===i})))}),[])}((r=[].concat(n,a.options.modifiers),c=r.reduce((function(t,e){var i=t[e.name];return t[e.name]=i?Object.assign({},i,e,{options:Object.assign({},i.options,e.options),data:Object.assign({},i.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return a.orderedModifiers=d.filter((function(t){return t.enabled})),a.orderedModifiers.forEach((function(t){var e=t.name,i=t.options,n=void 0===i?{}:i,s=t.effect;if("function"==typeof s){var o=s({state:a,name:e,instance:u,options:n});l.push(o||function(){})}})),u.update()},forceUpdate:function(){if(!c){var t=a.elements,e=t.reference,i=t.popper;if(Re(e,i)){a.rects={reference:ze(e,oe(i),"fixed"===a.options.strategy),popper:Qt(i)},a.reset=!1,a.placement=a.options.placement,a.orderedModifiers.forEach((function(t){return a.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<a.orderedModifiers.length;n++)if(!0!==a.reset){var s=a.orderedModifiers[n],o=s.fn,r=s.options,l=void 0===r?{}:r,h=s.name;"function"==typeof o&&(a=o({state:a,options:l,name:h,instance:u})||a)}else a.reset=!1,n=-1}}},update:(s=function(){return new Promise((function(t){u.forceUpdate(),t(a)}))},function(){return r||(r=new Promise((function(t){Promise.resolve().then((function(){r=void 0,t(s())}))}))),r}),destroy:function(){h(),c=!0}};if(!Re(t,e))return u;function h(){l.forEach((function(t){return t()})),l=[]}return u.setOptions(i).then((function(t){!c&&i.onFirstUpdate&&i.onFirstUpdate(t)})),u}}var Be=qe(),We=qe({defaultModifiers:[ge,$e,fe,Ft]}),Fe=qe({defaultModifiers:[ge,$e,fe,Ft,Ie,Oe,Ne,ue,Me]});const Ue=Object.freeze(Object.defineProperty({__proto__:null,popperGenerator:qe,detectOverflow:Ae,createPopperBase:Be,createPopper:Fe,createPopperLite:We,top:mt,bottom:gt,right:vt,left:yt,auto:bt,basePlacements:_t,start:wt,end:xt,clippingParents:kt,viewport:Ct,popper:Tt,reference:St,variationPlacements:Et,placements:Dt,beforeRead:At,read:Ot,afterRead:Lt,beforeMain:Pt,main:Mt,afterMain:It,beforeWrite:$t,write:Nt,afterWrite:zt,modifierPhases:Ht,applyStyles:Ft,arrow:ue,computeStyles:fe,eventListeners:ge,flip:Oe,hide:Me,offset:Ie,popperOffsets:$e,preventOverflow:Ne},Symbol.toStringTag,{value:"Module"})),Ye="dropdown",Ve="ArrowUp",Ke="ArrowDown",Xe="click.bs.dropdown.data-api",Ge="keydown.bs.dropdown.data-api",Ze="show",Qe='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Je=`${Qe}.show`,ti=".dropdown-menu",ei=f()?"top-end":"top-start",ii=f()?"top-start":"top-end",ni=f()?"bottom-end":"bottom-start",si=f()?"bottom-start":"bottom-end",oi=f()?"left-start":"right-start",ri=f()?"right-start":"left-start",ai={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},li={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class ci extends B{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=V.next(this._element,ti)[0]||V.prev(this._element,ti)[0]||V.findOne(ti,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return ai}static get DefaultType(){return li}static get NAME(){return Ye}toggle(){return this._isShown()?this.hide():this.show()}show(){if(l(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!I.trigger(this._element,"show.bs.dropdown",t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const t of[].concat(...document.body.children))I.on(t,"mouseover",u);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Ze),this._element.classList.add(Ze),I.trigger(this._element,"shown.bs.dropdown",t)}}hide(){if(l(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!I.trigger(this._element,"hide.bs.dropdown",t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",u);this._popper&&this._popper.destroy(),this._menu.classList.remove(Ze),this._element.classList.remove(Ze),this._element.setAttribute("aria-expanded","false"),R.removeDataAttribute(this._menu,"popper"),I.trigger(this._element,"hidden.bs.dropdown",t)}}_getConfig(t){if("object"==typeof(t=super._getConfig(t)).reference&&!o(t.reference)&&"function"!=typeof t.reference.getBoundingClientRect)throw new TypeError(`${Ye.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(void 0===Ue)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;"parent"===this._config.reference?t=this._parent:o(this._config.reference)?t=r(this._config.reference):"object"==typeof this._config.reference&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=Fe(t,this._menu,e)}_isShown(){return this._menu.classList.contains(Ze)}_getPlacement(){const t=this._parent;if(t.classList.contains("dropend"))return oi;if(t.classList.contains("dropstart"))return ri;if(t.classList.contains("dropup-center"))return"top";if(t.classList.contains("dropdown-center"))return"bottom";const e="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return t.classList.contains("dropup")?e?ii:ei:e?si:ni}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(R.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,..."function"==typeof this._config.popperConfig?this._config.popperConfig(t):this._config.popperConfig}}_selectMenuItem({key:t,target:e}){const i=V.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((t=>a(t)));i.length&&y(i,e,t===Ke,!i.includes(e)).focus()}static jQueryInterface(t){return this.each((function(){const e=ci.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}static clearMenus(t){if(2===t.button||"keyup"===t.type&&"Tab"!==t.key)return;const e=V.find(Je);for(const i of e){const e=ci.getInstance(i);if(!e||!1===e._config.autoClose)continue;const n=t.composedPath(),s=n.includes(e._menu);if(n.includes(e._element)||"inside"===e._config.autoClose&&!s||"outside"===e._config.autoClose&&s)continue;if(e._menu.contains(t.target)&&("keyup"===t.type&&"Tab"===t.key||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const o={relatedTarget:e._element};"click"===t.type&&(o.clickEvent=t),e._completeHide(o)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),i="Escape"===t.key,n=[Ve,Ke].includes(t.key);if(!n&&!i)return;if(e&&!i)return;t.preventDefault();const s=this.matches(Qe)?this:V.prev(this,Qe)[0]||V.next(this,Qe)[0]||V.findOne(Qe,t.delegateTarget.parentNode),o=ci.getOrCreateInstance(s);if(n)return t.stopPropagation(),o.show(),void o._selectMenuItem(t);o._isShown()&&(t.stopPropagation(),o.hide(),s.focus())}}I.on(document,Ge,Qe,ci.dataApiKeydownHandler),I.on(document,Ge,ti,ci.dataApiKeydownHandler),I.on(document,Xe,ci.clearMenus),I.on(document,"keyup.bs.dropdown.data-api",ci.clearMenus),I.on(document,Xe,Qe,(function(t){t.preventDefault(),ci.getOrCreateInstance(this).toggle()})),m(ci);const ui=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",hi=".sticky-top",di="padding-right",pi="margin-right";class fi{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,di,(e=>e+t)),this._setElementAttributes(ui,di,(e=>e+t)),this._setElementAttributes(hi,pi,(e=>e-t))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,di),this._resetElementAttributes(ui,di),this._resetElementAttributes(hi,pi)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,i){const n=this.getWidth();this._applyManipulationCallback(t,(t=>{if(t!==this._element&&window.innerWidth>t.clientWidth+n)return;this._saveInitialAttribute(t,e);const s=window.getComputedStyle(t).getPropertyValue(e);t.style.setProperty(e,`${i(Number.parseFloat(s))}px`)}))}_saveInitialAttribute(t,e){const i=t.style.getPropertyValue(e);i&&R.setDataAttribute(t,e,i)}_resetElementAttributes(t,e){this._applyManipulationCallback(t,(t=>{const i=R.getDataAttribute(t,e);null!==i?(R.removeDataAttribute(t,e),t.style.setProperty(e,i)):t.style.removeProperty(e)}))}_applyManipulationCallback(t,e){if(o(t))e(t);else for(const i of V.find(t,this._element))e(i)}}const mi="show",gi="mousedown.bs.backdrop",vi={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},yi={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class bi extends q{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return vi}static get DefaultType(){return yi}static get NAME(){return"backdrop"}show(t){if(!this._config.isVisible)return void g(t);this._append();const e=this._getElement();this._config.isAnimated&&h(e),e.classList.add(mi),this._emulateAnimation((()=>{g(t)}))}hide(t){this._config.isVisible?(this._getElement().classList.remove(mi),this._emulateAnimation((()=>{this.dispose(),g(t)}))):g(t)}dispose(){this._isAppended&&(I.off(this._element,gi),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add("fade"),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=r(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),I.on(t,gi,(()=>{g(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(t){v(t,this._getElement(),this._config.isAnimated)}}const _i=".bs.focustrap",wi="backward",xi={autofocus:!0,trapElement:null},ki={autofocus:"boolean",trapElement:"element"};class Ci extends q{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return xi}static get DefaultType(){return ki}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),I.off(document,_i),I.on(document,"focusin.bs.focustrap",(t=>this._handleFocusin(t))),I.on(document,"keydown.tab.bs.focustrap",(t=>this._handleKeydown(t))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,I.off(document,_i))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const i=V.focusableChildren(e);0===i.length?e.focus():this._lastTabNavDirection===wi?i[i.length-1].focus():i[0].focus()}_handleKeydown(t){"Tab"===t.key&&(this._lastTabNavDirection=t.shiftKey?wi:"forward")}}const Ti="hidden.bs.modal",Si="show.bs.modal",Ei="modal-open",Di="show",Ai="modal-static",Oi={backdrop:!0,focus:!0,keyboard:!0},Li={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Pi extends B{constructor(t,e){super(t,e),this._dialog=V.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new fi,this._addEventListeners()}static get Default(){return Oi}static get DefaultType(){return Li}static get NAME(){return"modal"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||I.trigger(this._element,Si,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(Ei),this._adjustDialog(),this._backdrop.show((()=>this._showElement(t))))}hide(){this._isShown&&!this._isTransitioning&&(I.trigger(this._element,"hide.bs.modal").defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(Di),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated())))}dispose(){for(const t of[window,this._dialog])I.off(t,".bs.modal");this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new bi({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Ci({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=V.findOne(".modal-body",this._dialog);e&&(e.scrollTop=0),h(this._element),this._element.classList.add(Di),this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,I.trigger(this._element,"shown.bs.modal",{relatedTarget:t})}),this._dialog,this._isAnimated())}_addEventListeners(){I.on(this._element,"keydown.dismiss.bs.modal",(t=>{if("Escape"===t.key)return this._config.keyboard?(t.preventDefault(),void this.hide()):void this._triggerBackdropTransition()})),I.on(window,"resize.bs.modal",(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),I.on(this._element,"mousedown.dismiss.bs.modal",(t=>{I.one(this._element,"click.dismiss.bs.modal",(e=>{this._element===t.target&&this._element===e.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(Ei),this._resetAdjustments(),this._scrollBar.reset(),I.trigger(this._element,Ti)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(I.trigger(this._element,"hidePrevented.bs.modal").defaultPrevented)return;const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._element.style.overflowY;"hidden"===e||this._element.classList.contains(Ai)||(t||(this._element.style.overflowY="hidden"),this._element.classList.add(Ai),this._queueCallback((()=>{this._element.classList.remove(Ai),this._queueCallback((()=>{this._element.style.overflowY=e}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),i=e>0;if(i&&!t){const t=f()?"paddingLeft":"paddingRight";this._element.style[t]=`${e}px`}if(!i&&t){const t=f()?"paddingRight":"paddingLeft";this._element.style[t]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each((function(){const i=Pi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===i[t])throw new TypeError(`No method named "${t}"`);i[t](e)}}))}}I.on(document,"click.bs.modal.data-api",'[data-bs-toggle="modal"]',(function(t){const e=n(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),I.one(e,Si,(t=>{t.defaultPrevented||I.one(e,Ti,(()=>{a(this)&&this.focus()}))}));const i=V.findOne(".modal.show");i&&Pi.getInstance(i).hide(),Pi.getOrCreateInstance(e).toggle(this)})),W(Pi),m(Pi);const Mi="show",Ii="showing",$i="hiding",Ni=".offcanvas.show",zi="hidePrevented.bs.offcanvas",Hi="hidden.bs.offcanvas",ji={backdrop:!0,keyboard:!0,scroll:!1},Ri={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class qi extends B{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return ji}static get DefaultType(){return Ri}static get NAME(){return"offcanvas"}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||I.trigger(this._element,"show.bs.offcanvas",{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._backdrop.show(),this._config.scroll||(new fi).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Ii),this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(Mi),this._element.classList.remove(Ii),I.trigger(this._element,"shown.bs.offcanvas",{relatedTarget:t})}),this._element,!0))}hide(){this._isShown&&(I.trigger(this._element,"hide.bs.offcanvas").defaultPrevented||(this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add($i),this._backdrop.hide(),this._queueCallback((()=>{this._element.classList.remove(Mi,$i),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new fi).reset(),I.trigger(this._element,Hi)}),this._element,!0)))}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=Boolean(this._config.backdrop);return new bi({className:"offcanvas-backdrop",isVisible:t,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:t?()=>{"static"!==this._config.backdrop?this.hide():I.trigger(this._element,zi)}:null})}_initializeFocusTrap(){return new Ci({trapElement:this._element})}_addEventListeners(){I.on(this._element,"keydown.dismiss.bs.offcanvas",(t=>{"Escape"===t.key&&(this._config.keyboard?this.hide():I.trigger(this._element,zi))}))}static jQueryInterface(t){return this.each((function(){const e=qi.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}I.on(document,"click.bs.offcanvas.data-api",'[data-bs-toggle="offcanvas"]',(function(t){const e=n(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this))return;I.one(e,Hi,(()=>{a(this)&&this.focus()}));const i=V.findOne(Ni);i&&i!==e&&qi.getInstance(i).hide(),qi.getOrCreateInstance(e).toggle(this)})),I.on(window,"load.bs.offcanvas.data-api",(()=>{for(const t of V.find(Ni))qi.getOrCreateInstance(t).show()})),I.on(window,"resize.bs.offcanvas",(()=>{for(const t of V.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(t).position&&qi.getOrCreateInstance(t).hide()})),W(qi),m(qi);const Bi=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),Wi=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^#&/:?]*(?:[#/?]|$))/i,Fi=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[\d+/a-z]+=*$/i,Ui=(t,e)=>{const i=t.nodeName.toLowerCase();return e.includes(i)?!Bi.has(i)||Boolean(Wi.test(t.nodeValue)||Fi.test(t.nodeValue)):e.filter((t=>t instanceof RegExp)).some((t=>t.test(i)))},Yi={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Vi={allowList:Yi,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Ki={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Xi={entry:"(string|element|function|null)",selector:"(string|element)"};class Gi extends q{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Vi}static get DefaultType(){return Ki}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((t=>this._resolvePossibleFunction(t))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[e,i]of Object.entries(this._config.content))this._setContent(t,i,e);const e=t.children[0],i=this._resolvePossibleFunction(this._config.extraClass);return i&&e.classList.add(...i.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,i]of Object.entries(t))super._typeCheckConfig({selector:e,entry:i},Xi)}_setContent(t,e,i){const n=V.findOne(i,t);n&&((e=this._resolvePossibleFunction(e))?o(e)?this._putElementInTemplate(r(e),n):this._config.html?n.innerHTML=this._maybeSanitize(e):n.textContent=e:n.remove())}_maybeSanitize(t){return this._config.sanitize?function(t,e,i){if(!t.length)return t;if(i&&"function"==typeof i)return i(t);const n=(new window.DOMParser).parseFromString(t,"text/html"),s=[].concat(...n.body.querySelectorAll("*"));for(const t of s){const i=t.nodeName.toLowerCase();if(!Object.keys(e).includes(i)){t.remove();continue}const n=[].concat(...t.attributes),s=[].concat(e["*"]||[],e[i]||[]);for(const e of n)Ui(e,s)||t.removeAttribute(e.nodeName)}return n.body.innerHTML}(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return"function"==typeof t?t(this):t}_putElementInTemplate(t,e){if(this._config.html)return e.innerHTML="",void e.append(t);e.textContent=t.textContent}}const Zi=new Set(["sanitize","allowList","sanitizeFn"]),Qi="fade",Ji="show",tn=".modal",en="hide.bs.modal",nn="hover",sn="focus",on={AUTO:"auto",TOP:"top",RIGHT:f()?"left":"right",BOTTOM:"bottom",LEFT:f()?"right":"left"},rn={allowList:Yi,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,0],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},an={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class ln extends B{constructor(t,e){if(void 0===Ue)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return rn}static get DefaultType(){return an}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),I.off(this._element.closest(tn),en,this._hideModalHandler),this.tip&&this.tip.remove(),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const t=I.trigger(this._element,this.constructor.eventName("show")),e=(c(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!e)return;this.tip&&(this.tip.remove(),this.tip=null);const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:n}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(n.append(i),I.trigger(this._element,this.constructor.eventName("inserted"))),this._popper?this._popper.update():this._popper=this._createPopper(i),i.classList.add(Ji),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.on(t,"mouseover",u);this._queueCallback((()=>{I.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(I.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;const t=this._getTipElement();if(t.classList.remove(Ji),"ontouchstart"in document.documentElement)for(const t of[].concat(...document.body.children))I.off(t,"mouseover",u);this._activeTrigger.click=!1,this._activeTrigger.focus=!1,this._activeTrigger.hover=!1,this._isHovered=null,this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||t.remove(),this._element.removeAttribute("aria-describedby"),I.trigger(this._element,this.constructor.eventName("hidden")),this._disposePopper())}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(Qi,Ji),e.classList.add(`bs-${this.constructor.NAME}-auto`);const i=(t=>{do{t+=Math.floor(1e6*Math.random())}while(document.getElementById(t));return t})(this.constructor.NAME).toString();return e.setAttribute("id",i),this._isAnimated()&&e.classList.add(Qi),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new Gi({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Qi)}_isShown(){return this.tip&&this.tip.classList.contains(Ji)}_createPopper(t){const e="function"==typeof this._config.placement?this._config.placement.call(this,t,this._element):this._config.placement,i=on[e.toUpperCase()];return Fe(this._element,t,this._getPopperConfig(i))}_getOffset(){const{offset:t}=this._config;return"string"==typeof t?t.split(",").map((t=>Number.parseInt(t,10))):"function"==typeof t?e=>t(e,this._element):t}_resolvePossibleFunction(t){return"function"==typeof t?t.call(this._element):t}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:t=>{this._getTipElement().setAttribute("data-popper-placement",t.state.placement)}}]};return{...e,..."function"==typeof this._config.popperConfig?this._config.popperConfig(e):this._config.popperConfig}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if("click"===e)I.on(this._element,this.constructor.eventName("click"),this._config.selector,(t=>{this._initializeOnDelegatedTarget(t).toggle()}));else if("manual"!==e){const t=e===nn?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),i=e===nn?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");I.on(this._element,t,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusin"===t.type?sn:nn]=!0,e._enter()})),I.on(this._element,i,this._config.selector,(t=>{const e=this._initializeOnDelegatedTarget(t);e._activeTrigger["focusout"===t.type?sn:nn]=e._element.contains(t.relatedTarget),e._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},I.on(this._element.closest(tn),en,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=R.getDataAttributes(this._element);for(const t of Object.keys(e))Zi.has(t)&&delete e[t];return t={...e,..."object"==typeof t&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=!1===t.container?document.body:r(t.container),"number"==typeof t.delay&&(t.delay={show:t.delay,hide:t.delay}),"number"==typeof t.title&&(t.title=t.title.toString()),"number"==typeof t.content&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const e in this._config)this.constructor.Default[e]!==this._config[e]&&(t[e]=this._config[e]);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null)}static jQueryInterface(t){return this.each((function(){const e=ln.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(ln);const cn={...ln.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},un={...ln.DefaultType,content:"(null|string|element|function)"};class hn extends ln{static get Default(){return cn}static get DefaultType(){return un}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each((function(){const e=hn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t]()}}))}}m(hn);const dn="click.bs.scrollspy",pn="active",fn="[href]",mn={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},gn={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class vn extends B{constructor(t,e){super(t,e),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return mn}static get DefaultType(){return gn}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=r(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,"string"==typeof t.threshold&&(t.threshold=t.threshold.split(",").map((t=>Number.parseFloat(t)))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(I.off(this._config.target,dn),I.on(this._config.target,dn,fn,(t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const i=this._rootElement||window,n=e.offsetTop-this._element.offsetTop;if(i.scrollTo)return void i.scrollTo({top:n,behavior:"smooth"});i.scrollTop=n}})))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((t=>this._observerCallback(t)),t)}_observerCallback(t){const e=t=>this._targetLinks.get(`#${t.target.id}`),i=t=>{this._previousScrollData.visibleEntryTop=t.target.offsetTop,this._process(e(t))},n=(this._rootElement||document.documentElement).scrollTop,s=n>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=n;for(const o of t){if(!o.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(o));continue}const t=o.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&t){if(i(o),!n)return}else s||t||i(o)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=V.find(fn,this._config.target);for(const e of t){if(!e.hash||l(e))continue;const t=V.findOne(e.hash,this._element);a(t)&&(this._targetLinks.set(e.hash,e),this._observableSections.set(e.hash,t))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(pn),this._activateParents(t),I.trigger(this._element,"activate.bs.scrollspy",{relatedTarget:t}))}_activateParents(t){if(t.classList.contains("dropdown-item"))V.findOne(".dropdown-toggle",t.closest(".dropdown")).classList.add(pn);else for(const e of V.parents(t,".nav, .list-group"))for(const t of V.prev(e,".nav-link, .nav-item > .nav-link, .list-group-item"))t.classList.add(pn)}_clearActiveClass(t){t.classList.remove(pn);const e=V.find("[href].active",t);for(const t of e)t.classList.remove(pn)}static jQueryInterface(t){return this.each((function(){const e=vn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}I.on(window,"load.bs.scrollspy.data-api",(()=>{for(const t of V.find('[data-bs-spy="scroll"]'))vn.getOrCreateInstance(t)})),m(vn);const yn="ArrowLeft",bn="ArrowRight",_n="ArrowUp",wn="ArrowDown",xn="active",kn="fade",Cn="show",Tn='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',Sn=`.nav-link:not(.dropdown-toggle), .list-group-item:not(.dropdown-toggle), [role="tab"]:not(.dropdown-toggle), ${Tn}`;class En extends B{constructor(t){super(t),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),I.on(this._element,"keydown.bs.tab",(t=>this._keydown(t))))}static get NAME(){return"tab"}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),i=e?I.trigger(e,"hide.bs.tab",{relatedTarget:t}):null;I.trigger(t,"show.bs.tab",{relatedTarget:e}).defaultPrevented||i&&i.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){t&&(t.classList.add(xn),this._activate(n(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),I.trigger(t,"shown.bs.tab",{relatedTarget:e})):t.classList.add(Cn)}),t,t.classList.contains(kn)))}_deactivate(t,e){t&&(t.classList.remove(xn),t.blur(),this._deactivate(n(t)),this._queueCallback((()=>{"tab"===t.getAttribute("role")?(t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),I.trigger(t,"hidden.bs.tab",{relatedTarget:e})):t.classList.remove(Cn)}),t,t.classList.contains(kn)))}_keydown(t){if(![yn,bn,_n,wn].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=[bn,wn].includes(t.key),i=y(this._getChildren().filter((t=>!l(t))),t.target,e,!0);i&&(i.focus({preventScroll:!0}),En.getOrCreateInstance(i).show())}_getChildren(){return V.find(Sn,this._parent)}_getActiveElem(){return this._getChildren().find((t=>this._elemIsActive(t)))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const t of e)this._setInitialAttributesOnChild(t)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),i=this._getOuterElement(t);t.setAttribute("aria-selected",e),i!==t&&this._setAttributeIfNotExists(i,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=n(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`#${t.id}`))}_toggleDropDown(t,e){const i=this._getOuterElement(t);if(!i.classList.contains("dropdown"))return;const n=(t,n)=>{const s=V.findOne(t,i);s&&s.classList.toggle(n,e)};n(".dropdown-toggle",xn),n(".dropdown-menu",Cn),i.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,i){t.hasAttribute(e)||t.setAttribute(e,i)}_elemIsActive(t){return t.classList.contains(xn)}_getInnerElement(t){return t.matches(Sn)?t:V.findOne(Sn,t)}_getOuterElement(t){return t.closest(".nav-item, .list-group-item")||t}static jQueryInterface(t){return this.each((function(){const e=En.getOrCreateInstance(this);if("string"==typeof t){if(void 0===e[t]||t.startsWith("_")||"constructor"===t)throw new TypeError(`No method named "${t}"`);e[t]()}}))}}I.on(document,"click.bs.tab",Tn,(function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),l(this)||En.getOrCreateInstance(this).show()})),I.on(window,"load.bs.tab",(()=>{for(const t of V.find('.active[data-bs-toggle="tab"], .active[data-bs-toggle="pill"], .active[data-bs-toggle="list"]'))En.getOrCreateInstance(t)})),m(En);const Dn="hide",An="show",On="showing",Ln={animation:"boolean",autohide:"boolean",delay:"number"},Pn={animation:!0,autohide:!0,delay:5e3};class Mn extends B{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Pn}static get DefaultType(){return Ln}static get NAME(){return"toast"}show(){I.trigger(this._element,"show.bs.toast").defaultPrevented||(this._clearTimeout(),this._config.animation&&this._element.classList.add("fade"),this._element.classList.remove(Dn),h(this._element),this._element.classList.add(An,On),this._queueCallback((()=>{this._element.classList.remove(On),I.trigger(this._element,"shown.bs.toast"),this._maybeScheduleHide()}),this._element,this._config.animation))}hide(){this.isShown()&&(I.trigger(this._element,"hide.bs.toast").defaultPrevented||(this._element.classList.add(On),this._queueCallback((()=>{this._element.classList.add(Dn),this._element.classList.remove(On,An),I.trigger(this._element,"hidden.bs.toast")}),this._element,this._config.animation)))}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(An),super.dispose()}isShown(){return this._element.classList.contains(An)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":this._hasMouseInteraction=e;break;case"focusin":case"focusout":this._hasKeyboardInteraction=e}if(e)return void this._clearTimeout();const i=t.relatedTarget;this._element===i||this._element.contains(i)||this._maybeScheduleHide()}_setListeners(){I.on(this._element,"mouseover.bs.toast",(t=>this._onInteraction(t,!0))),I.on(this._element,"mouseout.bs.toast",(t=>this._onInteraction(t,!1))),I.on(this._element,"focusin.bs.toast",(t=>this._onInteraction(t,!0))),I.on(this._element,"focusout.bs.toast",(t=>this._onInteraction(t,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each((function(){const e=Mn.getOrCreateInstance(this,t);if("string"==typeof t){if(void 0===e[t])throw new TypeError(`No method named "${t}"`);e[t](this)}}))}}return W(Mn),m(Mn),{Alert:F,Button:Y,Carousel:at,Collapse:ft,Dropdown:ci,Modal:Pi,Offcanvas:qi,Popover:hn,ScrollSpy:vn,Tab:En,Toast:Mn,Tooltip:ln}})),onDocumentReady((t=>{[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')).map((function(t){return new bootstrap.Tooltip(t)})),[].slice.call(document.querySelectorAll(".auto-tooltip[title]")).map((function(t){return new bootstrap.Tooltip(t)})),[].slice.call(document.querySelectorAll('[data-bs-toggle="tooltipHover"]')).map((function(t){return new bootstrap.Tooltip(t,{trigger:"hover"})})),[].slice.call(document.querySelectorAll('[data-bs-toggle="popover"]')).map((function(t){return new bootstrap.Popover(t,{html:!0})}));document.addEventListener("hide.bs.modal",(function(){document.activeElement.blur()}))})),function(t){"use strict";function e(e){e=t.extend({},m,e||{}),null===d&&(d=t("body"));for(var n=t(this),s=0,o=n.length;o>s;s++)i(n.eq(s),e);return n}function i(e,i){if(!e.hasClass(p.base)){i=t.extend({},i,e.data(h+"-options"));var r="";r+='<div class="'+p.bar+'">',r+='<div class="'+p.track+'">',r+='<div class="'+p.handle+'">',r+="</div></div></div>",i.paddingRight=parseInt(e.css("padding-right"),10),i.paddingBottom=parseInt(e.css("padding-bottom"),10),e.addClass([p.base,i.customClass].join(" ")).wrapInner('<div class="'+p.content+'" />').prepend(r),i.horizontal&&e.addClass(p.isHorizontal);var a=t.extend({$scroller:e,$content:e.find(u(p.content)),$bar:e.find(u(p.bar)),$track:e.find(u(p.track)),$handle:e.find(u(p.handle))},i);a.trackMargin=parseInt(a.trackMargin,10),a.$content.on("scroll."+h,a,n),a.$scroller.on(f.start,u(p.track),a,s).on(f.start,u(p.handle),a,o).data(h,a),g.reset.apply(e),t(undefined).one("load",(function(){g.reset.apply(e)}))}}function n(t){t.preventDefault(),t.stopPropagation();var e=t.data,i={};if(e.horizontal){var n=e.$content.scrollLeft();0>n&&(n=0);var s=n/e.scrollRatio;s>e.handleBounds.right&&(s=e.handleBounds.right),i={left:s}}else{var o=e.$content.scrollTop();0>o&&(o=0);var r=o/e.scrollRatio;r>e.handleBounds.bottom&&(r=e.handleBounds.bottom),i={top:r}}e.$handle.css(i)}function s(t){t.preventDefault(),t.stopPropagation();var e=t.data,i=t.originalEvent,n=e.$track.offset(),s=void 0!==i.targetTouches?i.targetTouches[0]:null,o=s?s.pageX:t.clientX,a=s?s.pageY:t.clientY;e.horizontal?(e.mouseStart=o,e.handleLeft=o-n.left-e.handleWidth/2,c(e,e.handleLeft)):(e.mouseStart=a,e.handleTop=a-n.top-e.handleHeight/2,c(e,e.handleTop)),r(e)}function o(t){t.preventDefault(),t.stopPropagation();var e=t.data,i=t.originalEvent,n=void 0!==i.targetTouches?i.targetTouches[0]:null,s=n?n.pageX:t.clientX,o=n?n.pageY:t.clientY;e.horizontal?(e.mouseStart=s,e.handleLeft=parseInt(e.$handle.css("left"),10)):(e.mouseStart=o,e.handleTop=parseInt(e.$handle.css("top"),10)),r(e)}function r(t){t.$content.off(u(h)),d.on(f.move,t,a).on(f.end,t,l)}function a(t){t.preventDefault(),t.stopPropagation();var e=t.data,i=t.originalEvent,n=0,s=0,o=void 0!==i.targetTouches?i.targetTouches[0]:null,r=o?o.pageX:t.clientX,a=o?o.pageY:t.clientY;e.horizontal?(s=e.mouseStart-r,n=e.handleLeft-s):(s=e.mouseStart-a,n=e.handleTop-s),c(e,n)}function l(t){t.preventDefault(),t.stopPropagation();var e=t.data;e.$content.on("scroll.scroller",e,n),d.off(".scroller")}function c(t,e){var i={};if(t.horizontal){e<t.handleBounds.left&&(e=t.handleBounds.left),e>t.handleBounds.right&&(e=t.handleBounds.right);var n=Math.round(e*t.scrollRatio);i={left:e},t.$content.scrollLeft(n)}else{e<t.handleBounds.top&&(e=t.handleBounds.top),e>t.handleBounds.bottom&&(e=t.handleBounds.bottom);var s=Math.round(e*t.scrollRatio);i={top:e},t.$content.scrollTop(s)}t.$handle.css(i)}function u(t){return"."+t}var h="scroller",d=null,p={base:"scroller",content:"scroller-content",bar:"scroller-bar",track:"scroller-track",handle:"scroller-handle",isHorizontal:"scroller-horizontal",isSetup:"scroller-setup",isActive:"scroller-active"},f={start:"touchstart."+h+" mousedown."+h,move:"touchmove."+h+" mousemove."+h,end:"touchend."+h+" mouseup."+h},m={customClass:"",duration:0,handleSize:0,horizontal:!1,trackMargin:0},g={defaults:function(e){return m=t.extend(m,e||{}),"object"!=typeof this||t(this)},destroy:function(){return t(this).each((function(e,i){var n=t(i).data(h);n&&(n.$scroller.removeClass([n.customClass,p.base,p.isActive].join(" ")),n.$bar.remove(),n.$content.contents().unwrap(),n.$content.off(u(h)),n.$scroller.off(u(h)).removeData(h))}))},scroll:function(e,i){return t(this).each((function(){var n=t(this).data(h),s=i||m.duration;if("number"!=typeof e){var o=t(e);if(o.length>0){var r=o.position();e=n.horizontal?r.left+n.$content.scrollLeft():r.top+n.$content.scrollTop()}else e=n.$content.scrollTop()}var a=n.horizontal?{scrollLeft:e}:{scrollTop:e};n.$content.stop().animate(a,s)}))},reset:function(){return t(this).each((function(){var e=t(this).data(h);if(e){e.$scroller.addClass(p.isSetup);var i={},n={},s={},o=0,r=!0;if(e.horizontal)e.barHeight=e.$content[0].offsetHeight-e.$content[0].clientHeight,e.frameWidth=e.$content.outerWidth(),e.trackWidth=e.frameWidth-2*e.trackMargin,e.scrollWidth=e.$content[0].scrollWidth,e.ratio=e.trackWidth/e.scrollWidth,e.trackRatio=e.trackWidth/e.scrollWidth,e.handleWidth=e.handleSize>0?e.handleSize:e.trackWidth*e.trackRatio,e.scrollRatio=(e.scrollWidth-e.frameWidth)/(e.trackWidth-e.handleWidth),e.handleBounds={left:0,right:e.trackWidth-e.handleWidth},e.$content.css({paddingBottom:e.barHeight+e.paddingBottom}),o=e.$content.scrollLeft()*e.ratio,r=e.scrollWidth<=e.frameWidth,i={width:e.frameWidth},n={width:e.trackWidth,marginLeft:e.trackMargin,marginRight:e.trackMargin},s={width:e.handleWidth};else e.barWidth=e.$content[0].offsetWidth-e.$content[0].clientWidth,e.frameHeight=e.$content.outerHeight(),e.trackHeight=e.frameHeight-2*e.trackMargin,e.scrollHeight=e.$content[0].scrollHeight,e.ratio=e.trackHeight/e.scrollHeight,e.trackRatio=e.trackHeight/e.scrollHeight,e.handleHeight=e.handleSize>0?e.handleSize:e.trackHeight*e.trackRatio,e.scrollRatio=(e.scrollHeight-e.frameHeight)/(e.trackHeight-e.handleHeight),e.handleBounds={top:0,bottom:e.trackHeight-e.handleHeight},o=e.$content.scrollTop()*e.ratio,r=e.scrollHeight<=e.frameHeight,i={height:e.frameHeight},n={height:e.trackHeight,marginBottom:e.trackMargin,marginTop:e.trackMargin},s={height:e.handleHeight};r?e.$scroller.removeClass(p.isActive):e.$scroller.addClass(p.isActive),e.$bar.css(i),e.$track.css(n),e.$handle.css(s),c(e,o),e.$scroller.removeClass(p.isSetup)}}))}};t.fn[h]=function(t){return g[t]?g[t].apply(this,Array.prototype.slice.call(arguments,1)):"object"!=typeof t&&t?this:e.apply(this,arguments)},t[h]=function(t){"defaults"===t&&g.defaults.apply(this,Array.prototype.slice.call(arguments,1))}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof module&&module.exports?module.exports=function(e,i){return void 0===i&&(i="undefined"!=typeof window?require("jquery"):require("jquery")(e)),t(i),i}:t(jQuery)}((function(t){var e=function(){if(t&&t.fn&&t.fn.select2&&t.fn.select2.amd)var e=t.fn.select2.amd;return function(){var t,i,n;e&&e.requirejs||(e?i=e:e={},function(e){function s(t,e){return b.call(t,e)}function o(t,e){var i,n,s,o,r,a,l,c,u,h,d,p=e&&e.split("/"),f=v.map,m=f&&f["*"]||{};if(t&&"."===t.charAt(0))if(e){for(r=(t=t.split("/")).length-1,v.nodeIdCompat&&w.test(t[r])&&(t[r]=t[r].replace(w,"")),t=p.slice(0,p.length-1).concat(t),u=0;u<t.length;u+=1)if("."===(d=t[u]))t.splice(u,1),u-=1;else if(".."===d){if(1===u&&(".."===t[2]||".."===t[0]))break;u>0&&(t.splice(u-1,2),u-=2)}t=t.join("/")}else 0===t.indexOf("./")&&(t=t.substring(2));if((p||m)&&f){for(u=(i=t.split("/")).length;u>0;u-=1){if(n=i.slice(0,u).join("/"),p)for(h=p.length;h>0;h-=1)if((s=f[p.slice(0,h).join("/")])&&(s=s[n])){o=s,a=u;break}if(o)break;!l&&m&&m[n]&&(l=m[n],c=u)}!o&&l&&(o=l,a=c),o&&(i.splice(0,a,o),t=i.join("/"))}return t}function r(t,i){return function(){var n=_.call(arguments,0);return"string"!=typeof n[0]&&1===n.length&&n.push(null),d.apply(e,n.concat([t,i]))}}function a(t){return function(e){m[t]=e}}function l(t){if(s(g,t)){var i=g[t];delete g[t],y[t]=!0,h.apply(e,i)}if(!s(m,t)&&!s(y,t))throw new Error("No "+t);return m[t]}function c(t){var e,i=t?t.indexOf("!"):-1;return i>-1&&(e=t.substring(0,i),t=t.substring(i+1,t.length)),[e,t]}function u(t){return function(){return v&&v.config&&v.config[t]||{}}}var h,d,p,f,m={},g={},v={},y={},b=Object.prototype.hasOwnProperty,_=[].slice,w=/\.js$/;p=function(t,e){var i,n=c(t),s=n[0];return t=n[1],s&&(i=l(s=o(s,e))),s?t=i&&i.normalize?i.normalize(t,function(t){return function(e){return o(e,t)}}(e)):o(t,e):(s=(n=c(t=o(t,e)))[0],t=n[1],s&&(i=l(s))),{f:s?s+"!"+t:t,n:t,pr:s,p:i}},f={require:function(t){return r(t)},exports:function(t){var e=m[t];return void 0!==e?e:m[t]={}},module:function(t){return{id:t,uri:"",exports:m[t],config:u(t)}}},h=function(t,i,n,o){var c,u,h,d,v,b,_=[],w=typeof n;if(o=o||t,"undefined"===w||"function"===w){for(i=!i.length&&n.length?["require","exports","module"]:i,v=0;v<i.length;v+=1)if("require"===(u=(d=p(i[v],o)).f))_[v]=f.require(t);else if("exports"===u)_[v]=f.exports(t),b=!0;else if("module"===u)c=_[v]=f.module(t);else if(s(m,u)||s(g,u)||s(y,u))_[v]=l(u);else{if(!d.p)throw new Error(t+" missing "+u);d.p.load(d.n,r(o,!0),a(u),{}),_[v]=m[u]}h=n?n.apply(m[t],_):void 0,t&&(c&&c.exports!==e&&c.exports!==m[t]?m[t]=c.exports:h===e&&b||(m[t]=h))}else t&&(m[t]=n)},t=i=d=function(t,i,n,s,o){if("string"==typeof t)return f[t]?f[t](i):l(p(t,i).f);if(!t.splice){if((v=t).deps&&d(v.deps,v.callback),!i)return;i.splice?(t=i,i=n,n=null):t=e}return i=i||function(){},"function"==typeof n&&(n=s,s=o),s?h(e,t,i,n):setTimeout((function(){h(e,t,i,n)}),4),d},d.config=function(t){return d(t)},t._defined=m,n=function(t,e,i){if("string"!=typeof t)throw new Error("See almond README: incorrect module build, no module name");e.splice||(i=e,e=[]),s(m,t)||s(g,t)||(g[t]=[t,e,i])},n.amd={jQuery:!0}}(),e.requirejs=t,e.require=i,e.define=n)}(),e.define("almond",(function(){})),e.define("jquery",[],(function(){var e=t||$;return null==e&&console&&console.error&&console.error("Select2: An instance of jQuery or a jQuery-compatible library was not found. Make sure that you are including jQuery before Select2 on your web page."),e})),e.define("select2/utils",["jquery"],(function(t){function e(t){var e=t.prototype,i=[];for(var n in e){"function"==typeof e[n]&&"constructor"!==n&&i.push(n)}return i}var i={Extend:function(t,e){function i(){this.constructor=t}var n={}.hasOwnProperty;for(var s in e)n.call(e,s)&&(t[s]=e[s]);return i.prototype=e.prototype,t.prototype=new i,t.__super__=e.prototype,t},Decorate:function(t,i){function n(){var e=Array.prototype.unshift,n=i.prototype.constructor.length,s=t.prototype.constructor;n>0&&(e.call(arguments,t.prototype.constructor),s=i.prototype.constructor),s.apply(this,arguments)}var s=e(i),o=e(t);i.displayName=t.displayName,n.prototype=new function(){this.constructor=n};for(var r=0;r<o.length;r++){var a=o[r];n.prototype[a]=t.prototype[a]}for(var l=function(t){var e=function(){};t in n.prototype&&(e=n.prototype[t]);var s=i.prototype[t];return function(){return Array.prototype.unshift.call(arguments,e),s.apply(this,arguments)}},c=0;c<s.length;c++){var u=s[c];n.prototype[u]=l(u)}return n}},n=function(){this.listeners={}};return n.prototype.on=function(t,e){this.listeners=this.listeners||{},t in this.listeners?this.listeners[t].push(e):this.listeners[t]=[e]},n.prototype.trigger=function(t){var e=Array.prototype.slice,i=e.call(arguments,1);this.listeners=this.listeners||{},null==i&&(i=[]),0===i.length&&i.push({}),i[0]._type=t,t in this.listeners&&this.invoke(this.listeners[t],e.call(arguments,1)),"*"in this.listeners&&this.invoke(this.listeners["*"],arguments)},n.prototype.invoke=function(t,e){for(var i=0,n=t.length;n>i;i++)t[i].apply(this,e)},i.Observable=n,i.generateChars=function(t){for(var e="",i=0;t>i;i++){e+=Math.floor(36*Math.random()).toString(36)}return e},i.bind=function(t,e){return function(){t.apply(e,arguments)}},i._convertData=function(t){for(var e in t){var i=e.split("-"),n=t;if(1!==i.length){for(var s=0;s<i.length;s++){var o=i[s];(o=o.substring(0,1).toLowerCase()+o.substring(1))in n||(n[o]={}),s==i.length-1&&(n[o]=t[e]),n=n[o]}delete t[e]}}return t},i.hasScroll=function(e,i){var n=t(i),s=i.style.overflowX,o=i.style.overflowY;return(s!==o||"hidden"!==o&&"visible"!==o)&&("scroll"===s||"scroll"===o||(n.innerHeight()<i.scrollHeight||n.innerWidth()<i.scrollWidth))},i.escapeMarkup=function(t){var e={"\\":"\","&":"&","<":"<",">":">",'"':""","'":"'","/":"/"};return"string"!=typeof t?t:String(t).replace(/[&<>"'\/\\]/g,(function(t){return e[t]}))},i.appendMany=function(e,i){if("1.7"===t.fn.jquery.substr(0,3)){var n=t();t.map(i,(function(t){n=n.add(t)})),i=n}e.append(i)},i})),e.define("select2/results",["jquery","./utils"],(function(t,e){function i(t,e,n){this.$element=t,this.data=n,this.options=e,i.__super__.constructor.call(this)}return e.Extend(i,e.Observable),i.prototype.render=function(){var e=t('<ul class="select2-results__options" role="tree"></ul>');return this.options.get("multiple")&&e.attr("aria-multiselectable","true"),this.$results=e,e},i.prototype.clear=function(){this.$results.empty()},i.prototype.displayMessage=function(e){var i=this.options.get("escapeMarkup");this.clear(),this.hideLoading();var n=t('<li role="treeitem" aria-live="assertive" class="select2-results__option"></li>'),s=this.options.get("translations").get(e.message);n.append(i(s(e.args))),n[0].className+=" select2-results__message",this.$results.append(n)},i.prototype.hideMessages=function(){this.$results.find(".select2-results__message").remove()},i.prototype.append=function(t){this.hideLoading();var e=[];if(null!=t.results&&0!==t.results.length){t.results=this.sort(t.results);for(var i=0;i<t.results.length;i++){var n=t.results[i],s=this.option(n);e.push(s)}this.$results.append(e)}else 0===this.$results.children().length&&this.trigger("results:message",{message:"noResults"})},i.prototype.position=function(t,e){e.find(".select2-results").append(t)},i.prototype.sort=function(t){return this.options.get("sorter")(t)},i.prototype.highlightFirstItem=function(){var t=this.$results.find(".select2-results__option[aria-selected]"),e=t.filter("[aria-selected=true]");e.length>0?e.first().trigger("mouseenter"):t.first().trigger("mouseenter"),this.ensureHighlightVisible()},i.prototype.setClasses=function(){var e=this;this.data.current((function(i){var n=t.map(i,(function(t){return t.id.toString()}));e.$results.find(".select2-results__option[aria-selected]").each((function(){var e=t(this),i=t.data(this,"data"),s=""+i.id;null!=i.element&&i.element.selected||null==i.element&&t.inArray(s,n)>-1?e.attr("aria-selected","true"):e.attr("aria-selected","false")}))}))},i.prototype.showLoading=function(t){this.hideLoading();var e={disabled:!0,loading:!0,text:this.options.get("translations").get("searching")(t)},i=this.option(e);i.className+=" loading-results",this.$results.prepend(i)},i.prototype.hideLoading=function(){this.$results.find(".loading-results").remove()},i.prototype.option=function(e){var i=document.createElement("li");i.className="select2-results__option";var n={role:"treeitem","aria-selected":"false"};for(var s in e.disabled&&(delete n["aria-selected"],n["aria-disabled"]="true"),null==e.id&&delete n["aria-selected"],null!=e._resultId&&(i.id=e._resultId),e.title&&(i.title=e.title),e.children&&(n.role="group",n["aria-label"]=e.text,delete n["aria-selected"]),n){var o=n[s];i.setAttribute(s,o)}if(e.children){var r=t(i),a=document.createElement("strong");a.className="select2-results__group",t(a),this.template(e,a);for(var l=[],c=0;c<e.children.length;c++){var u=e.children[c],h=this.option(u);l.push(h)}var d=t("<ul></ul>",{class:"select2-results__options select2-results__options--nested"});d.append(l),r.append(a),r.append(d)}else this.template(e,i);return t.data(i,"data",e),i},i.prototype.bind=function(e,i){var n=this,s=e.id+"-results";this.$results.attr("id",s),e.on("results:all",(function(t){n.clear(),n.append(t.data),e.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),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(),n.highlightFirstItem())})),e.on("unselect",(function(){e.isOpen()&&(n.setClasses(),n.highlightFirstItem())})),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 s=i-1;0===t.length&&(s=0);var o=e.eq(s);o.trigger("mouseenter");var r=n.$results.offset().top,a=o.offset().top,l=n.$results.scrollTop()+(a-r);0===s?n.$results.scrollTop(0):0>a-r&&n.$results.scrollTop(l)}})),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 s=e.eq(i);s.trigger("mouseenter");var o=n.$results.offset().top+n.$results.outerHeight(!1),r=s.offset().top+s.outerHeight(!1),a=n.$results.scrollTop()+r-o;0===i?n.$results.scrollTop(0):r>o&&n.$results.scrollTop(a)}})),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-e+t.deltaY,s=t.deltaY>0&&e-t.deltaY<=0,o=t.deltaY<0&&i<=n.$results.height();s?(n.$results.scrollTop(0),t.preventDefault(),t.stopPropagation()):o&&(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),s=i.data("data");return"true"===i.attr("aria-selected")?void(n.options.get("multiple")?n.trigger("unselect",{originalEvent:e,data:s}):n.trigger("close",{})):void n.trigger("select",{originalEvent:e,data:s})})),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,s=this.$results.scrollTop()+(n-i),o=n-i;s-=2*t.outerHeight(!1),2>=e?this.$results.scrollTop(0):(o>this.$results.outerHeight()||0>o)&&this.$results.scrollTop(s)}},i.prototype.template=function(e,i){var n=this.options.get("templateResult"),s=this.options.get("escapeMarkup"),o=n(e,i);null==o?i.style.display="none":"string"==typeof o?i.innerHTML=s(o):t(i).append(o)},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('<span class="select2-selection" role="combobox" aria-haspopup="true" aria-expanded="false"></span>');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,s=(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",s),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 s(){s.__super__.constructor.apply(this,arguments)}return i.Extend(s,e),s.prototype.render=function(){var t=s.__super__.render.call(this);return t.addClass("select2-selection--single"),t.html('<span class="select2-selection__rendered"></span><span class="select2-selection__arrow" role="presentation"><b role="presentation"></b></span>'),t},s.prototype.bind=function(t,e){var i=this;s.__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("focus",(function(e){t.isOpen()||i.$selection.focus()})),t.on("selection:update",(function(t){i.update(t.data)}))},s.prototype.clear=function(){this.$selection.find(".select2-selection__rendered").empty()},s.prototype.display=function(t,e){var i=this.options.get("templateSelection");return this.options.get("escapeMarkup")(i(t,e))},s.prototype.selectionContainer=function(){return t("<span></span>")},s.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()},s})),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('<ul class="select2-selection__rendered"></ul>'),t},n.prototype.bind=function(e,i){var s=this;n.__super__.bind.apply(this,arguments),this.$selection.on("click",(function(t){s.trigger("toggle",{originalEvent:t})})),this.$selection.on("click",".select2-selection__choice__remove",(function(e){if(!s.options.get("disabled")){var i=t(this).parent().data("data");s.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('<li class="select2-selection__choice"><span class="select2-selection__choice__remove" role="presentation">×</span></li>')},n.prototype.update=function(t){if(this.clear(),0!==t.length){for(var e=[],n=0;n<t.length;n++){var s=t[n],o=this.selectionContainer(),r=this.display(s,o);o.append(r),o.prop("title",s.title||s.text),o.data("data",s),e.push(o)}var a=this.$selection.find(".select2-selection__rendered");i.appendMany(a,e)}},n})),e.define("select2/selection/placeholder",["../utils"],(function(t){function e(t,e,i){this.placeholder=this.normalizePlaceholder(i.get("placeholder")),t.call(this,e,i)}return e.prototype.normalizePlaceholder=function(t,e){return"string"==typeof e&&(e={id:"",text:e}),e},e.prototype.createPlaceholder=function(t,e){var i=this.selectionContainer();return i.html(this.display(e)),i.addClass("select2-selection__placeholder").removeClass("select2-selection__choice"),i},e.prototype.update=function(t,e){var i=1==e.length&&e[0].id!=this.placeholder.id;if(e.length>1||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"),s=0;s<n.length;s++){var o={data:n[s]};if(this.trigger("unselect",o),o.prevented)return}this.$element.val(this.placeholder.id).trigger("change"),this.trigger("toggle",{})}}},i.prototype._handleKeyboardClear=function(t,i,n){n.isOpen()||(i.which==e.DELETE||i.which==e.BACKSPACE)&&this._handleClear(i)},i.prototype.update=function(e,i){if(e.call(this,i),!(this.$selection.find(".select2-selection__placeholder").length>0||0===i.length)){var n=t('<span class="select2-selection__clear">×</span>');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('<li class="select2-search select2-search--inline"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" aria-autocomplete="list" /></li>');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 s=this;t.call(this,e,n),e.on("open",(function(){s.$search.trigger("focus")})),e.on("close",(function(){s.$search.val(""),s.$search.removeAttr("aria-activedescendant"),s.$search.trigger("focus")})),e.on("enable",(function(){s.$search.prop("disabled",!1),s._transferTabIndex()})),e.on("disable",(function(){s.$search.prop("disabled",!0)})),e.on("focus",(function(t){s.$search.trigger("focus")})),e.on("results:focus",(function(t){s.$search.attr("aria-activedescendant",t.id)})),this.$selection.on("focusin",".select2-search--inline",(function(t){s.trigger("focus",t)})),this.$selection.on("focusout",".select2-search--inline",(function(t){s._handleBlur(t)})),this.$selection.on("keydown",".select2-search--inline",(function(t){if(t.stopPropagation(),s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented(),t.which===i.BACKSPACE&&""===s.$search.val()){var e=s.$searchContainer.prev(".select2-selection__choice");if(e.length>0){var n=e.data("data");s.searchRemoveChoice(n),t.preventDefault()}}}));var o=document.documentMode,r=o&&11>=o;this.$selection.on("input.searchcheck",".select2-search--inline",(function(t){return r?void s.$selection.off("input.search input.searchcheck"):void s.$selection.off("keyup.search")})),this.$selection.on("keyup.search input.search",".select2-search--inline",(function(t){if(r&&"input"===t.type)s.$selection.off("input.search input.searchcheck");else{var e=t.which;e!=i.SHIFT&&e!=i.CTRL&&e!=i.ALT&&e!=i.TAB&&s.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 s=this,o=["open","opening","close","closing","select","selecting","unselect","unselecting"],r=["opening","closing","selecting","unselecting"];e.call(this,i,n),i.on("*",(function(e,i){if(-1!==t.inArray(e,o)){i=i||{};var n=t.Event("select2:"+e,{params:i});s.$element.trigger(n),-1!==t.inArray(e,r)&&(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),s=n.item(t);e.push(s)})),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 s=[];(t=[t]).push.apply(t,n);for(var o=0;o<t.length;o++){var r=t[o].id;-1===i.inArray(r,s)&&s.push(r)}e.$element.val(s),e.$element.trigger("change")}));else{var n=t.id;this.$element.val(n),this.$element.trigger("change")}},n.prototype.unselect=function(t){var e=this;if(this.$element.prop("multiple"))return t.selected=!1,i(t.element).is("option")?(t.element.selected=!1,void this.$element.trigger("change")):void this.current((function(n){for(var s=[],o=0;o<n.length;o++){var r=n[o].id;r!==t.id&&-1===i.inArray(r,s)&&s.push(r)}e.$element.val(s),e.$element.trigger("change")}))},n.prototype.bind=function(t,e){var i=this;this.container=t,t.on("select",(function(t){i.select(t.data)})),t.on("unselect",(function(t){i.unselect(t.data)}))},n.prototype.destroy=function(){this.$element.find("*").each((function(){i.removeData(this,"data")}))},n.prototype.query=function(t,e){var n=[],s=this;this.$element.children().each((function(){var e=i(this);if(e.is("option")||e.is("optgroup")){var o=s.item(e),r=s.matches(t,o);null!==r&&n.push(r)}})),e({results:n})},n.prototype.addOptions=function(t){e.appendMany(this.$element,t)},n.prototype.option=function(t){var e;t.children?(e=document.createElement("optgroup")).label=t.text:void 0!==(e=document.createElement("option")).textContent?e.textContent=t.text:e.innerText=t.text,void 0!==t.id&&(e.value=t.id),t.disabled&&(e.disabled=!0),t.selected&&(e.selected=!0),t.title&&(e.title=t.title);var n=i(e),s=this._normalizeItem(t);return s.element=e,i.data(e,"data",s),n},n.prototype.item=function(t){var e={};if(null!=(e=i.data(t[0],"data")))return e;if(t.is("option"))e={id:t.val(),text:t.text(),disabled:t.prop("disabled"),selected:t.prop("selected"),title:t.prop("title")};else if(t.is("optgroup")){e={text:t.prop("label"),children:[],title:t.prop("title")};for(var n=t.children("option"),s=[],o=0;o<n.length;o++){var r=i(n[o]),a=this.item(r);s.push(a)}e.children=s}return(e=this._normalizeItem(e)).element=t[0],i.data(t[0],"data",e),e},n.prototype._normalizeItem=function(t){i.isPlainObject(t)||(t={id:t,text:t});return null!=(t=i.extend({},{text:""},t)).id&&(t.id=t.id.toString()),null!=t.text&&(t.text=t.text.toString()),null==t._resultId&&t.id&&null!=this.container&&(t._resultId=this.generateResultId(this.container,t)),i.extend({},{selected:!1,disabled:!1},t)},n.prototype.matches=function(t,e){return this.options.get("matcher")(t,e)},n})),e.define("select2/data/array",["./select","../utils","jquery"],(function(t,e,i){function n(t,e){var i=e.get("data")||[];n.__super__.constructor.call(this,t,e),this.addOptions(this.convertToOptions(i))}return e.Extend(n,t),n.prototype.select=function(t){var e=this.$element.find("option").filter((function(e,i){return i.value==t.id.toString()}));0===e.length&&(e=this.option(t),this.addOptions(e)),n.__super__.select.call(this,t)},n.prototype.convertToOptions=function(t){function n(t){return function(){return i(this).val()==t.id}}for(var s=this,o=this.$element.find("option"),r=o.map((function(){return s.item(i(this)).id})).get(),a=[],l=0;l<t.length;l++){var c=this._normalizeItem(t[l]);if(i.inArray(c.id,r)>=0){var u=o.filter(n(c)),h=this.item(u),d=i.extend(!0,{},c,h),p=this.option(d);u.replaceWith(p)}else{var f=this.option(c);if(c.children){var m=this.convertToOptions(c.children);e.appendMany(f,m)}a.push(f)}}return a},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 s=i.ajax(t);return s.then(e),s.fail(n),s}};return i.extend({},e,t,!0)},n.prototype.processResults=function(t){return t},n.prototype.query=function(t,e){function n(){var n=o.transport(o,(function(n){var o=s.processResults(n,t);s.options.get("debug")&&window.console&&console.error&&(o&&o.results&&i.isArray(o.results)||console.error("Select2: The AJAX results did not return an array in the `results` key of the response.")),e(o)}),(function(){n.status&&"0"===n.status||s.trigger("results:message",{message:"errorLoading"})}));s._request=n}var s=this;null!=this._request&&(i.isFunction(this._request.abort)&&this._request.abort(),this._request=null);var o=i.extend({type:"GET"},this.ajaxOptions);"function"==typeof o.url&&(o.url=o.url.call(this.$element,t)),"function"==typeof o.data&&(o.data=o.data.call(this.$element,t)),this.ajaxOptions.delay&&null!=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 s=n.get("tags"),o=n.get("createTag");void 0!==o&&(this.createTag=o);var r=n.get("insertTag");if(void 0!==r&&(this.insertTag=r),e.call(this,i,n),t.isArray(s))for(var a=0;a<s.length;a++){var l=s[a],c=this._normalizeItem(l),u=this.option(c);this.$element.append(u)}}return e.prototype.query=function(t,e,i){var n=this;return this._removeOldTags(),null==e.term||null!=e.page?void t.call(this,e,i):void t.call(this,e,(function t(s,o){for(var r=s.results,a=0;a<r.length;a++){var l=r[a],c=null!=l.children&&!t({results:l.children},!0);if((l.text||"").toUpperCase()===(e.term||"").toUpperCase()||c)return!o&&(s.data=r,void i(s))}if(o)return!0;var u=n.createTag(e);if(null!=u){var h=n.option(u);h.attr("data-select2-tag",!0),n.addOptions([h]),n.insertTag(r,u)}s.results=r,i(s)}))},e.prototype.createTag=function(e,i){var n=t.trim(i.term);return""===n?null:{id:n,text:n}},e.prototype.insertTag=function(t,e,i){e.unshift(i)},e.prototype._removeOldTags=function(e){(this._lastTag,this.$element.find("option[data-select2-tag]")).each((function(){this.selected||t(this).remove()}))},e})),e.define("select2/data/tokenizer",["jquery"],(function(t){function e(t,e,i){var n=i.get("tokenizer");void 0!==n&&(this.tokenizer=n),t.call(this,e,i)}return e.prototype.bind=function(t,e,i){t.call(this,e,i),this.$search=e.dropdown.$search||e.selection.$search||i.find(".select2-search__field")},e.prototype.query=function(e,i,n){var s=this;i.term=i.term||"";var o=this.tokenizer(i,this.options,(function(e){var i=s._normalizeItem(e);if(!s.$element.find("option").filter((function(){return t(this).val()===i.id})).length){var n=s.option(i);n.attr("data-select2-tag",!0),s._removeOldTags(),s.addOptions([n])}!function(t){s.trigger("select",{data:t})}(i)}));o.term!==i.term&&(this.$search.length&&(this.$search.val(o.term),this.$search.focus()),i.term=o.term),e.call(this,i,n)},e.prototype.tokenizer=function(e,i,n,s){for(var o=n.get("tokenSeparators")||[],r=i.term,a=0,l=this.createTag||function(t){return{id:t.term,text:t.term}};a<r.length;){var c=r[a];if(-1!==t.inArray(c,o)){var u=r.substr(0,a),h=l(t.extend({},i,{term:u}));null!=h?(s(h),r=r.substr(a+1)||"",a=0):a++}else a++}return{term:r}},e})),e.define("select2/data/minimumInputLength",[],(function(){function t(t,e,i){this.minimumInputLength=i.get("minimumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",e.term.length<this.minimumInputLength?void this.trigger("results:message",{message:"inputTooShort",args:{minimum:this.minimumInputLength,input:e.term,params:e}}):void t.call(this,e,i)},t})),e.define("select2/data/maximumInputLength",[],(function(){function t(t,e,i){this.maximumInputLength=i.get("maximumInputLength"),t.call(this,e,i)}return t.prototype.query=function(t,e,i){return e.term=e.term||"",this.maximumInputLength>0&&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(s){var o=null!=s?s.length:0;return n.maximumSelectionLength>0&&o>=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('<span class="select2-dropdown"><span class="select2-results"></span></span>');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('<span class="select2-search select2-search--dropdown"><input class="select2-search__field" type="search" tabindex="-1" autocomplete="off" autocorrect="off" autocapitalize="off" spellcheck="false" role="textbox" /></span>');return this.$searchContainer=n,this.$search=n.find("input"),i.prepend(n),i},i.prototype.bind=function(e,i,n){var s=this;e.call(this,i,n),this.$search.on("keydown",(function(t){s.trigger("keypress",t),s._keyUpPrevented=t.isDefaultPrevented()})),this.$search.on("input",(function(e){t(this).off("keyup")})),this.$search.on("keyup input",(function(t){s.handleSearch(t)})),i.on("open",(function(){s.$search.attr("tabindex",0),s.$search.focus(),window.setTimeout((function(){s.$search.focus()}),0)})),i.on("close",(function(){s.$search.attr("tabindex",-1),s.$search.val("")})),i.on("focus",(function(){i.isOpen()&&s.$search.focus()})),i.on("results:all",(function(t){null!=t.query.term&&""!==t.query.term||(s.showSearch(t)?s.$searchContainer.removeClass("select2-search--hide"):s.$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 s=e[n];this.placeholder.id===s.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 s=this;e.call(this,i,n),i.on("query",(function(t){s.lastParams=t,s.loading=!0})),i.on("query:append",(function(t){s.lastParams=t,s.loading=!0})),this.$results.on("scroll",(function(){var e=t.contains(document.documentElement,s.$loadingMore[0]);!s.loading&&e&&(s.$results.offset().top+s.$results.outerHeight(!1)+50>=s.$loadingMore.offset().top+s.$loadingMore.outerHeight(!1)&&s.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('<li class="select2-results__option select2-results__option--load-more"role="treeitem" aria-disabled="true"></li>'),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,s=!1;t.call(this,e,i),e.on("open",(function(){n._showDropdown(),n._attachPositioningHandler(e),s||(s=!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("<span></span>"),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 s=this,o="scroll.select2."+n.id,r="resize.select2."+n.id,a="orientationchange.select2."+n.id,l=this.$container.parents().filter(e.hasScroll);l.each((function(){t(this).data("select2-scroll-position",{x:t(this).scrollLeft(),y:t(this).scrollTop()})})),l.on(o,(function(e){var i=t(this).data("select2-scroll-position");t(this).scrollTop(i.y)})),t(window).on(o+" "+r+" "+a,(function(t){s._positionDropdown(),s._resizeDropdown()}))},i.prototype._detachPositioningHandler=function(i,n){var s="scroll.select2."+n.id,o="resize.select2."+n.id,r="orientationchange.select2."+n.id;this.$container.parents().filter(e.hasScroll).off(s),t(window).off(s+" "+o+" "+r)},i.prototype._positionDropdown=function(){var e=t(window),i=this.$dropdown.hasClass("select2-dropdown--above"),n=this.$dropdown.hasClass("select2-dropdown--below"),s=null,o=this.$container.offset();o.bottom=o.top+this.$container.outerHeight(!1);var r={height:this.$container.outerHeight(!1)};r.top=o.top,r.bottom=o.top+r.height;var a=this.$dropdown.outerHeight(!1),l=e.scrollTop(),c=e.scrollTop()+e.height(),u=l<o.top-a,h=c>o.bottom+a,d={left:o.left,top:r.bottom},p=this.$dropdownParent;"static"===p.css("position")&&(p=p.offsetParent());var f=p.offset();d.top-=f.top,d.left-=f.left,i||n||(s="below"),h||!u||i?!u&&h&&i&&(s="below"):s="above",("above"==s||i&&"below"!==s)&&(d.top=r.top-f.top-a),null!=s&&(this.$dropdown.removeClass("select2-dropdown--below select2-dropdown--above").addClass("select2-dropdown--"+s),this.$container.removeClass("select2-container--below select2-container--above").addClass("select2-container--"+s)),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.position="relative",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;n<e.length;n++){var s=e[n];s.children?i+=t(s.children):i++}return i}function e(t,e,i,n){this.minimumResultsForSearch=i.get("minimumResultsForSearch"),this.minimumResultsForSearch<0&&(this.minimumResultsForSearch=1/0),t.call(this,e,i,n)}return e.prototype.showSearch=function(e,i){return!(t(i.data.results)<this.minimumResultsForSearch)&&e.call(this,i)},e})),e.define("select2/dropdown/selectOnClose",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("close",(function(t){n._handleSelectOnClose(t)}))},t.prototype._handleSelectOnClose=function(t,e){if(e&&null!=e.originalSelect2Event){var i=e.originalSelect2Event;if("select"===i._type||"unselect"===i._type)return}var n=this.getHighlightedResults();if(!(n.length<1)){var s=n.data("data");null!=s.element&&s.element.selected||null==s.element&&s.selected||this.trigger("select",{data:s})}},t})),e.define("select2/dropdown/closeOnSelect",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){var n=this;t.call(this,e,i),e.on("select",(function(t){n._selectTriggered(t)})),e.on("unselect",(function(t){n._selectTriggered(t)}))},t.prototype._selectTriggered=function(t,e){var i=e.originalEvent;i&&i.ctrlKey||this.trigger("close",{originalEvent:i,originalSelect2Event:e})},t})),e.define("select2/i18n/en",[],(function(){return{errorLoading:function(){return"The results could not be loaded."},inputTooLong:function(t){var e=t.input.length-t.maximum,i="Please delete "+e+" character";return 1!=e&&(i+="s"),i},inputTooShort:function(t){return"Please enter "+(t.minimum-t.input.length)+" or more characters"},loadingMore:function(){return"Loading more results…"},maximumSelected:function(t){var e="You can only select "+t.maximum+" item";return 1!=t.maximum&&(e+="s"),e},noResults:function(){return"No results found"},searching:function(){return"Searching…"}}})),e.define("select2/defaults",["jquery","require","./results","./selection/single","./selection/multiple","./selection/placeholder","./selection/allowClear","./selection/search","./selection/eventRelay","./utils","./translation","./diacritics","./data/select","./data/array","./data/ajax","./data/tags","./data/tokenizer","./data/minimumInputLength","./data/maximumInputLength","./data/maximumSelectionLength","./dropdown","./dropdown/search","./dropdown/hidePlaceholder","./dropdown/infiniteScroll","./dropdown/attachBody","./dropdown/minimumResultsForSearch","./dropdown/selectOnClose","./dropdown/closeOnSelect","./i18n/en"],(function(t,e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,v,y,b,_,w,x,k,C,T,S,E,D){function A(){this.reset()}return A.prototype.apply=function(h){if(null==(h=t.extend(!0,{},this.defaults,h)).dataAdapter){if(null!=h.ajax?h.dataAdapter=f:null!=h.data?h.dataAdapter=p:h.dataAdapter=d,h.minimumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,v)),h.maximumInputLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,y)),h.maximumSelectionLength>0&&(h.dataAdapter=c.Decorate(h.dataAdapter,b)),h.tags&&(h.dataAdapter=c.Decorate(h.dataAdapter,m)),(null!=h.tokenSeparators||null!=h.tokenizer)&&(h.dataAdapter=c.Decorate(h.dataAdapter,g)),null!=h.query){var D=e(h.amdBase+"compat/query");h.dataAdapter=c.Decorate(h.dataAdapter,D)}if(null!=h.initSelection){var A=e(h.amdBase+"compat/initSelection");h.dataAdapter=c.Decorate(h.dataAdapter,A)}}if(null==h.resultsAdapter&&(h.resultsAdapter=i,null!=h.ajax&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,k)),null!=h.placeholder&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,x)),h.selectOnClose&&(h.resultsAdapter=c.Decorate(h.resultsAdapter,S))),null==h.dropdownAdapter){if(h.multiple)h.dropdownAdapter=_;else{var O=c.Decorate(_,w);h.dropdownAdapter=O}if(0!==h.minimumResultsForSearch&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,T)),h.closeOnSelect&&(h.dropdownAdapter=c.Decorate(h.dropdownAdapter,E)),null!=h.dropdownCssClass||null!=h.dropdownCss||null!=h.adaptDropdownCssClass){var L=e(h.amdBase+"compat/dropdownCss");h.dropdownAdapter=c.Decorate(h.dropdownAdapter,L)}h.dropdownAdapter=c.Decorate(h.dropdownAdapter,C)}if(null==h.selectionAdapter){if(h.multiple?h.selectionAdapter=s:h.selectionAdapter=n,null!=h.placeholder&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,o)),h.allowClear&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,r)),h.multiple&&(h.selectionAdapter=c.Decorate(h.selectionAdapter,a)),null!=h.containerCssClass||null!=h.containerCss||null!=h.adaptContainerCssClass){var P=e(h.amdBase+"compat/containerCss");h.selectionAdapter=c.Decorate(h.selectionAdapter,P)}h.selectionAdapter=c.Decorate(h.selectionAdapter,l)}if("string"==typeof h.language)if(h.language.indexOf("-")>0){var M=h.language.split("-")[0];h.language=[h.language,M]}else h.language=[h.language];if(t.isArray(h.language)){var I=new u;h.language.push("en");for(var $=h.language,N=0;N<$.length;N++){var z=$[N],H={};try{H=u.loadPath(z)}catch(t){try{z=this.defaults.amdLanguageBase+z,H=u.loadPath(z)}catch(t){h.debug&&window.console&&console.warn&&console.warn('Select2: The language file for "'+z+'" could not be automatically loaded. A fallback will be used instead.');continue}}I.extend(H)}h.translations=I}else{var j=u.loadPath(this.defaults.amdLanguageBase+"en"),R=new u(h.language);R.extend(j),h.translations=R}return h},A.prototype.reset=function(){function e(t){return t.replace(/[^\u0000-\u007E]/g,(function(t){return h[t]||t}))}this.defaults={amdBase:"./",amdLanguageBase:"./i18n/",closeOnSelect:!0,debug:!1,dropdownAutoWidth:!1,escapeMarkup:c.escapeMarkup,language:D,matcher:function i(n,s){if(""===t.trim(n.term))return s;if(s.children&&s.children.length>0){for(var o=t.extend(!0,{},s),r=s.children.length-1;r>=0;r--){null==i(n,s.children[r])&&o.children.splice(r,1)}return o.children.length>0?o:i(n,o)}var a=e(s.text).toUpperCase(),l=e(n.term).toUpperCase();return a.indexOf(l)>-1?s: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 s=c._convertData(n);t.extend(this.defaults,s)},new A})),e.define("select2/options",["require","jquery","./defaults","./utils"],(function(t,e,i,n){function s(e,s){if(this.options=e,null!=s&&this.fromElement(s),this.options=i.apply(this.options),s&&s.is("input")){var o=t(this.get("amdBase")+"compat/inputData");this.options.dataAdapter=n.Decorate(this.options.dataAdapter,o)}}return s.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 s;s=e.fn.jquery&&"1."==e.fn.jquery.substr(0,2)&&t[0].dataset?e.extend(!0,{},t[0].dataset,t.data()):t.data();var o=e.extend(!0,{},s);for(var r in o=n._convertData(o))e.inArray(r,i)>-1||(e.isPlainObject(this.options[r])?e.extend(this.options[r],o[r]):this.options[r]=o[r]);return this},s.prototype.get=function(t){return this.options[t]},s.prototype.set=function(t,e){this.options[t]=e},s})),e.define("select2/core",["jquery","./options","./utils","./keys"],(function(t,e,i,n){var s=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),s.__super__.constructor.call(this);var n=t.attr("tabindex")||0;t.data("old-tabindex",n),t.attr("tabindex","-1");var o=this.options.get("dataAdapter");this.dataAdapter=new o(t,this.options);var r=this.render();this._placeContainer(r);var a=this.options.get("selectionAdapter");this.selection=new a(t,this.options),this.$selection=this.selection.render(),this.selection.position(this.$selection,r);var l=this.options.get("dropdownAdapter");this.dropdown=new l(t,this.options),this.$dropdown=this.dropdown.render(),this.dropdown.position(this.$dropdown,r);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 u=this;this._bindAdapters(),this._registerDomEvents(),this._registerDataEvents(),this._registerSelectionEvents(),this._registerDropdownEvents(),this._registerResultsEvents(),this._registerEvents(),this.dataAdapter.current((function(t){u.trigger("selection:update",{data:t})})),t.addClass("select2-hidden-accessible"),t.attr("aria-hidden","true"),this._syncAttributes(),t.data("select2",this)};return i.Extend(s,i.Observable),s.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)).replace(/(:|\.|\[|\]|,)/g,"")},s.prototype._placeContainer=function(t){t.insertAfter(this.$element);var e=this._resolveWidth(this.$element,this.options.get("width"));null!=e&&t.css("width",e)},s.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 s=t.outerWidth(!1);return 0>=s?"auto":s+"px"}if("style"==e){var o=t.attr("style");if("string"!=typeof o)return null;for(var r=o.split(";"),a=0,l=r.length;l>a;a+=1){var c=r[a].replace(/\s/g,"").match(i);if(null!==c&&c.length>=1)return c[1]}return null}return e},s.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)},s.prototype._registerDomEvents=function(){var e=this;this.$element.on("change.select2",(function(){e.dataAdapter.current((function(t){e.trigger("selection:update",{data:t})}))})),this.$element.on("focus.select2",(function(t){e.trigger("focus",t)})),this._syncA=i.bind(this._syncAttributes,this),this._syncS=i.bind(this._syncSubtree,this),this.$element[0].attachEvent&&this.$element[0].attachEvent("onpropertychange",this._syncA);var n=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver;null!=n?(this._observer=new n((function(i){t.each(i,e._syncA),t.each(i,e._syncS)})),this._observer.observe(this.$element[0],{attributes:!0,childList:!0,subtree:!1})):this.$element[0].addEventListener&&(this.$element[0].addEventListener("DOMAttrModified",e._syncA,!1),this.$element[0].addEventListener("DOMNodeInserted",e._syncS,!1),this.$element[0].addEventListener("DOMNodeRemoved",e._syncS,!1))},s.prototype._registerDataEvents=function(){var t=this;this.dataAdapter.on("*",(function(e,i){t.trigger(e,i)}))},s.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,s){-1===t.inArray(n,i)&&e.trigger(n,s)}))},s.prototype._registerDropdownEvents=function(){var t=this;this.dropdown.on("*",(function(e,i){t.trigger(e,i)}))},s.prototype._registerResultsEvents=function(){var t=this;this.results.on("*",(function(e,i){t.trigger(e,i)}))},s.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())}))},s.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",{})},s.prototype._syncSubtree=function(t,e){var i=!1,n=this;if(!t||!t.target||"OPTION"===t.target.nodeName||"OPTGROUP"===t.target.nodeName){if(e)if(e.addedNodes&&e.addedNodes.length>0)for(var s=0;s<e.addedNodes.length;s++){e.addedNodes[s].selected&&(i=!0)}else e.removedNodes&&e.removedNodes.length>0&&(i=!0);else i=!0;i&&this.dataAdapter.current((function(t){n.trigger("selection:update",{data:t})}))}},s.prototype.trigger=function(t,e){var i=s.__super__.trigger,n={open:"opening",close:"closing",select:"selecting",unselect:"unselecting"};if(void 0===e&&(e={}),t in n){var o=n[t],r={prevented:!1,name:t,args:e};if(i.call(this,o,r),r.prevented)return void(e.prevented=!0)}i.call(this,t,e)},s.prototype.toggleDropdown=function(){this.options.get("disabled")||(this.isOpen()?this.close():this.open())},s.prototype.open=function(){this.isOpen()||this.trigger("query",{})},s.prototype.close=function(){this.isOpen()&&this.trigger("close",{})},s.prototype.isOpen=function(){return this.$container.hasClass("select2-container--open")},s.prototype.hasFocus=function(){return this.$container.hasClass("select2-container--focus")},s.prototype.focus=function(t){this.hasFocus()||(this.$container.addClass("select2-container--focus"),this.trigger("focus",{}))},s.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)},s.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},s.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")},s.prototype.destroy=function(){this.$container.remove(),this.$element[0].detachEvent&&this.$element[0].detachEvent("onpropertychange",this._syncA),null!=this._observer?(this._observer.disconnect(),this._observer=null):this.$element[0].removeEventListener&&(this.$element[0].removeEventListener("DOMAttrModified",this._syncA,!1),this.$element[0].removeEventListener("DOMNodeInserted",this._syncS,!1),this.$element[0].removeEventListener("DOMNodeRemoved",this._syncS,!1)),this._syncA=null,this._syncS=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},s.prototype.render=function(){var e=t('<span class="select2 select2-container"><span class="selection"></span><span class="dropdown-wrapper" aria-hidden="true"></span></span>');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},s})),e.define("select2/compat/utils",["jquery"],(function(t){return{syncCssClasses:function(e,i,n){var s,o,r=[];(s=t.trim(e.attr("class")))&&t((s=""+s).split(/\s+/)).each((function(){0===this.indexOf("select2-")&&r.push(this)})),(s=t.trim(i.attr("class")))&&t((s=""+s).split(/\s+/)).each((function(){0!==this.indexOf("select2-")&&(null!=(o=n(this))&&r.push(o))})),e.attr("class",r.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 s=n.call(this),o=this.options.get("containerCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var r=this.options.get("adaptContainerCssClass");if(r=r||i,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=r;r=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("containerCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(s,this.$element,r),s.css(l),s.addClass(o),s},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 s=n.call(this),o=this.options.get("dropdownCssClass")||"";t.isFunction(o)&&(o=o(this.$element));var r=this.options.get("adaptDropdownCssClass");if(r=r||i,-1!==o.indexOf(":all:")){o=o.replace(":all:","");var a=r;r=function(t){var e=a(t);return null!=e?e+" "+t:t}}var l=this.options.get("dropdownCss")||{};return t.isFunction(l)&&(l=l(this.$element)),e.syncCssClasses(s,this.$element,r),s.css(l),s.addClass(o),s},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 `<select>` element instead."),t.call(this,e,i)}return e.prototype.current=function(e,i){function n(e,i){var s=[];return e.selected||-1!==t.inArray(e.id,i)?(e.selected=!0,s.push(e)):e.selected=!1,e.children&&s.push.apply(s,n(e.children,i)),s}for(var s=[],o=0;o<this._currentData.length;o++){var r=this._currentData[o];s.push.apply(s,n(r,this.$element.val().split(this._valueSeparator)))}i(s)},e.prototype.select=function(e,i){if(this.options.get("multiple")){var n=this.$element.val();n+=this._valueSeparator+i.id,this.$element.val(n),this.$element.trigger("change")}else this.current((function(e){t.map(e,(function(t){t.selected=!1}))})),this.$element.val(i.id),this.$element.trigger("change")},e.prototype.unselect=function(t,e){var i=this;e.selected=!1,this.current((function(t){for(var n=[],s=0;s<t.length;s++){var o=t[s];e.id!=o.id&&n.push(o.id)}i.$element.val(n.join(i._valueSeparator)),i.$element.trigger("change")}))},e.prototype.query=function(t,e,i){for(var n=[],s=0;s<this._currentData.length;s++){var o=this._currentData[s],r=this.matches(e,o);null!==r&&n.push(r)}i({results:n})},e.prototype.addOptions=function(e,i){var n=t.map(i,(function(e){return t.data(e[0],"data")}));this._currentData.push.apply(this._currentData,n)},e})),e.define("select2/compat/matcher",["jquery"],(function(t){return function(e){return function(i,n){var s=t.extend(!0,{},n);if(null==i.term||""===t.trim(i.term))return s;if(n.children){for(var o=n.children.length-1;o>=0;o--){var r=n.children[o];e(i.term,r.text,r)||s.children.splice(o,1)}if(s.children.length>0)return s}return e(i.term,n.text,n)?s:null}}})),e.define("select2/compat/query",[],(function(){function t(t,e,i){i.get("debug")&&window.console&&console.warn&&console.warn("Select2: The `query` option has been deprecated in favor of a custom data adapter that overrides the `query` method. Support will be removed for the `query` option in future versions of Select2."),t.call(this,e,i)}return t.prototype.query=function(t,e,i){e.callback=i,this.options.get("query").call(null,e)},t})),e.define("select2/dropdown/attachContainer",[],(function(){function t(t,e,i){t.call(this,e,i)}return t.prototype.position=function(t,e,i){i.find(".dropdown-wrapper").append(e),e.addClass("select2-dropdown--below"),i.addClass("select2-container--below")},t})),e.define("select2/dropdown/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);this.$dropdown.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),e.define("select2/selection/stopPropagation",[],(function(){function t(){}return t.prototype.bind=function(t,e,i){t.call(this,e,i);this.$selection.on(["blur","change","click","dblclick","focus","focusin","focusout","input","keydown","keyup","keypress","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseup","search","touchend","touchstart"].join(" "),(function(t){t.stopPropagation()}))},t})),function(i){"function"==typeof e.define&&e.define.amd?e.define("jquery-mousewheel",["jquery"],i):"object"==typeof exports?module.exports=i:i(t)}((function(t){function e(e){var r=e||window.event,a=l.call(arguments,1),c=0,h=0,d=0,p=0,f=0,m=0;if((e=t.event.fix(r)).type="mousewheel","detail"in r&&(d=-1*r.detail),"wheelDelta"in r&&(d=r.wheelDelta),"wheelDeltaY"in r&&(d=r.wheelDeltaY),"wheelDeltaX"in r&&(h=-1*r.wheelDeltaX),"axis"in r&&r.axis===r.HORIZONTAL_AXIS&&(h=-1*d,d=0),c=0===d?h:d,"deltaY"in r&&(c=d=-1*r.deltaY),"deltaX"in r&&(h=r.deltaX,0===d&&(c=-1*h)),0!==d||0!==h){if(1===r.deltaMode){var g=t.data(this,"mousewheel-line-height");c*=g,d*=g,h*=g}else if(2===r.deltaMode){var v=t.data(this,"mousewheel-page-height");c*=v,d*=v,h*=v}if(p=Math.max(Math.abs(d),Math.abs(h)),(!o||o>p)&&(o=p,n(r,p)&&(o/=40)),n(r,p)&&(c/=40,h/=40,d/=40),c=Math[c>=1?"floor":"ceil"](c/o),h=Math[h>=1?"floor":"ceil"](h/o),d=Math[d>=1?"floor":"ceil"](d/o),u.settings.normalizeOffset&&this.getBoundingClientRect){var y=this.getBoundingClientRect();f=e.clientX-y.left,m=e.clientY-y.top}return e.deltaX=h,e.deltaY=d,e.deltaFactor=o,e.offsetX=f,e.offsetY=m,e.deltaMode=0,a.unshift(e,c,h,d),s&&clearTimeout(s),s=setTimeout(i,200),(t.event.dispatch||t.event.handle).apply(this,a)}}function i(){o=null}function n(t,e){return u.settings.adjustOldDeltas&&"mousewheel"===t.type&&e%120==0}var s,o,r=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],a="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],l=Array.prototype.slice;if(t.event.fixHooks)for(var c=r.length;c;)t.event.fixHooks[r[--c]]=t.event.mouseHooks;var u=t.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var i=a.length;i;)this.addEventListener(a[--i],e,!1);else this.onmousewheel=e;t.data(this,"mousewheel-line-height",u.getLineHeight(this)),t.data(this,"mousewheel-page-height",u.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var i=a.length;i;)this.removeEventListener(a[--i],e,!1);else this.onmousewheel=null;t.removeData(this,"mousewheel-line-height"),t.removeData(this,"mousewheel-page-height")},getLineHeight:function(e){var i=t(e),n=i["offsetParent"in t.fn?"offsetParent":"parent"]();return n.length||(n=t("body")),parseInt(n.css("fontSize"),10)||parseInt(i.css("fontSize"),10)||16},getPageHeight:function(e){return t(e).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};t.fn.extend({mousewheel:function(t){return t?this.bind("mousewheel",t):this.trigger("mousewheel")},unmousewheel:function(t){return this.unbind("mousewheel",t)}})})),e.define("jquery.select2",["jquery","jquery-mousewheel","./select2/core","./select2/defaults"],(function(t,e,i,n){if(null==t.fn.select2){var s=["open","close","destroy"];t.fn.select2=function(e){if("object"==typeof(e=e||{}))return this.each((function(){var n=t.extend(!0,{},e);new i(t(this),n)})),this;if("string"==typeof e){var n,o=Array.prototype.slice.call(arguments,1);return this.each((function(){var i=t(this).data("select2");null==i&&window.console&&console.error&&console.error("The select2('"+e+"') method was called on an element that is not using Select2."),n=i[e].apply(i,o)})),t.inArray(e,s)>-1?this:n}throw new Error("Invalid arguments for Select2: "+e)}}return null==t.fn.select2.defaults&&(t.fn.select2.defaults=n),i})),{define:e.define,require:e.require}}(),i=e.require("jquery.select2");return t.fn.select2.amd=e,i}));const SocialShare=function(t){"use strict";const e={facebook:t=>{let e=`https://www.facebook.com/sharer.php?s=100&p[title]=${t.title}&u=${t.url}&t=${t.title}&p[url]=${t.url}`;return e+=t.text?`&p[summary]=${t.text}`:"",e+=t.hashtags?`&hashtag=%23${t.hashtags.split("%2C")[0]}`:"",e},twitter:t=>{let e=`https://twitter.com/intent/tweet?url=${t.url}&text=${t.title}`;return e+=t.via?`&via=${t.via}`:"",e+=t.hashtags?`&hashtags=${t.hashtags}`:"",e},"x-twitter":t=>{let e=`https://twitter.com/intent/tweet?url=${t.url}&text=${t.title}`;return e+=t.via?`&via=${t.via}`:"",e+=t.hashtags?`&hashtags=${t.hashtags}`:"",e},linkedin:t=>{let e=`https://www.linkedin.com/shareArticle?mini=true&url=${t.url}&title=${t.title}&source=${t.url}`;return e+=t.text?`&summary=${t.text}`:"",e},whatsapp:t=>{let e=`https://wa.me/?text=${t.title}%0D%0A${t.url}`;return e+=t.text?`%0D%0A%0D%0A${t.text}`:"",e},telegram:t=>`https://telegram.me/share/url?text=${t.title}&url=${t.url}`,messenger:t=>`https://www.facebook.com/dialog/send?app_id=${t.fbAppId}&link=${t.url}&redirect_uri=${t.url}`,pinterest:t=>{let e=`https://www.pinterest.com/pin/create/button/?url=${t.url}&description=${t.title}`;return e+=t.media?`&media=${t.media}`:"",e},tumblr:t=>{let e=`https://www.tumblr.com/widgets/share/tool?posttype=link&title=${t.title}&content=${t.url}&canonicalUrl=${t.url}`;return e+=t.hashtags?`&tags=${t.hashtags}`:"",e+=t.text?`&caption=${t.text}`:"",e+=t.via?`&show-via=${t.via}`:"",e},vk:t=>{let e=`https://vk.com/share.php?url=${t.url}&title=${t.title}`;return e+=t.text?`&description=${t.text}`:"",e+=t.media?`&image=${t.media}`:"",e},mastodon:t=>{let e=`https://toot.kytta.dev/?text=${t.title}%0D%0A${t.url}`;return e+=t.text?`%0D%0A%0D%0A${t.text}`:"",e+=t.via?`%0D%0A%0D%0A${t.via}`:"",e},odnoklassniki:t=>{let e=`https://connect.ok.ru/offer?url=${t.url}&title=${t.title}`;return e+=t.media?`&imageUrl=${t.media}`:"",e},pocket:t=>`https://getpocket.com/edit.php?url=${t.url}`,reddit:t=>`https://www.reddit.com/submit?title=${t.title}&url=${t.url}`,teams:t=>{let e=`https://teams.microsoft.com/share?href=${t.url}`;return e+=t.text?`&msgText=${t.text}`:"",e},viber:t=>{let e=`viber://forward?text=${t.title}%0D%0A${t.url}`;return e+=t.text?`%0D%0A%0D%0A${t.text}`:"",e},email:t=>`mailto:?subject=${t.title}&body=${t.url}`},i=(t,e={})=>()=>{let i="noopener,noreferrer",n=screen.width,s=screen.height,o=e.width?e.width:n-.2*n,r=e.height?e.height:s-.2*s;return i+=",toolbar=0,status=0,width="+o+",height="+r+",top="+(s/2-r/2)+",left="+(n/2-o/2),window.open(t,"_blank",i),!1};return t||(t={}),t.init=(t={})=>{const n=document.querySelectorAll(".social-share");for(const s of n)for(const n of s.children)if(n){const o=n.classList.length,r={url:n.dataset.url||s.dataset.url||t.url||window.location.href,title:n.dataset.title||s.dataset.title||t.title||document.title,text:n.dataset.text||s.dataset.text||t.text||"",media:n.dataset.media||s.dataset.media||t.media||"",hashtags:n.dataset.hashtags||s.dataset.hashtags||t.hashtags||"",via:n.dataset.via||s.dataset.via||t.via||"",fbAppId:n.dataset.fbAppId||s.dataset.fbAppId||t.fbAppId||""};let a={};t.width&&t.height&&(a={width:t.width,height:t.height});for(let t=0;t<o;t+=1){const s=n.classList.item(t);if("copy-url"===s&&n.addEventListener("click",(()=>{navigator.clipboard.writeText(r.url),n.classList.add("done"),setTimeout((()=>{n.classList.remove("done")}),1e3)})),"print"===s&&n.addEventListener("click",(()=>{window.print()})),"web-share"===s){const t={title:r.title,text:r.text,url:r.url};navigator.canShare&&navigator.canShare(t)?n.addEventListener("click",(()=>{navigator.share(t)})):n.style.display="none"}if(Object.prototype.hasOwnProperty.call(e,s)){const t=e[s](r);"a"===n.tagName.toLowerCase()&&(n.setAttribute("href",t),n.setAttribute("rel","noopener noreferrer"),n.setAttribute("target","_blank")),n.addEventListener("click",i(t,a));break}}}},t}();function RepositionNav(){var t=$(window).height()/2-$("#nav").height()/2;$("#nav").css({top:t})}var t,e;!function(t){t.fn.parallax=function(e,i,n,s){var o=t(window),r=t(window).height(),a=(o.scrollTop(),t(this));function l(t,e,i,n,s){return t+" "+Math.round(-(e+i-n)*s)+"px"}function c(t,s){a.css({backgroundPosition:l(e,s,t,i,n)})}null==e&&(e="50%"),null==i&&(i=0),null==n&&(n=.1),null==s&&(s=!0),height=a.height(),a.css({backgroundPosition:l(e,s,i,n)}),o.bind("scroll",(function(){var e=o.scrollTop();!function(e,i){i.each((function(){var i=t(this),n=i.offset().top;if(1==s)var o=i.outerHeight(!0);else o=i.height();n+o>=e&&n+o-r<e&&c(e,o),n<=e&&n+o>=e&&n-r<e&&n+o-r>e&&c(e,o),n+o>e&&n-r<e&&n>e&&c(e,o)}))}(e,a),t("#pixels").html(e)}))}}(jQuery),function(t){t.fn.niceSelect=function(e){function i(e){e.after(t("<div></div>").addClass("nice-select").addClass(e.attr("class")||"").addClass(e.attr("disabled")?"disabled":"").attr("tabindex",e.attr("disabled")?null:"0").html('<span class="current"></span><ul class="list"></ul>'));var i=e.next(),n=e.find("option"),s=e.find("option:selected");i.find(".current").html(s.data("display")||s.text()),n.each((function(e){var n=t(this),s=n.data("display");i.find("ul").append(t("<li></li>").attr("data-value",n.val()).attr("data-display",s||null).addClass("option"+(n.is(":selected")?" selected":"")+(n.is(":disabled")?" disabled":"")).html(n.text()))}))}if("string"==typeof e)return"update"==e?this.each((function(){var e=t(this),n=t(this).next(".nice-select"),s=n.hasClass("open");n.length&&(n.remove(),i(e),s&&e.next().trigger("click"))})):"destroy"==e?(this.each((function(){var e=t(this),i=t(this).next(".nice-select");i.length&&(i.remove(),e.css("display",""))})),0==t(".nice-select").length&&t(document).off(".nice_select")):console.log('Method "'+e+'" does not exist.'),this;this.hide(),this.each((function(){var e=t(this);e.next().hasClass("nice-select")||i(e)})),t(document).off(".nice_select"),t(document).on("click.nice_select",".nice-select",(function(e){var i=t(this);t(".nice-select").not(i).removeClass("open"),i.toggleClass("open"),i.hasClass("open")?(i.find(".option"),i.find(".focus").removeClass("focus"),i.find(".selected").addClass("focus")):i.focus()})),t(document).on("click.nice_select",(function(e){0===t(e.target).closest(".nice-select").length&&t(".nice-select").removeClass("open").find(".option")})),t(document).on("click.nice_select",".nice-select .option:not(.disabled)",(function(e){var i=t(this),n=i.closest(".nice-select");n.find(".selected").removeClass("selected"),i.addClass("selected");var s=i.data("display")||i.text();n.find(".current").text(s),n.prev("select").val(i.data("value")).trigger("change")})),t(document).on("keydown.nice_select",".nice-select",(function(e){var i=t(this),n=t(i.find(".focus")||i.find(".list .option.selected"));if(32==e.keyCode||13==e.keyCode)return i.hasClass("open")?n.trigger("click"):i.trigger("click"),!1;if(40==e.keyCode){if(i.hasClass("open")){var s=n.nextAll(".option:not(.disabled)").first();s.length>0&&(i.find(".focus").removeClass("focus"),s.addClass("focus"))}else i.trigger("click");return!1}if(38==e.keyCode){if(i.hasClass("open")){var o=n.prevAll(".option:not(.disabled)").first();o.length>0&&(i.find(".focus").removeClass("focus"),o.addClass("focus"))}else i.trigger("click");return!1}if(27==e.keyCode)i.hasClass("open")&&i.trigger("click");else if(9==e.keyCode&&i.hasClass("open"))return!1}));var n=document.createElement("a").style;return n.cssText="pointer-events:auto","auto"!==n.pointerEvents&&t("html").addClass("no-csspointerevents"),this}}(jQuery),function(t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}((function(t){"use strict";var e=!1,i=!1,n=0,s=2e3,o=0,r=t,a=document,l=window,c=r(l),u=[],h=l.requestAnimationFrame||l.webkitRequestAnimationFrame||l.mozRequestAnimationFrame||!1,d=l.cancelAnimationFrame||l.webkitCancelAnimationFrame||l.mozCancelAnimationFrame||!1;if(h)l.cancelAnimationFrame||(d=function(t){});else{var p=0;h=function(t,e){var i=(new Date).getTime(),n=Math.max(0,16-(i-p)),s=l.setTimeout((function(){t(i+n)}),n);return p=i+n,s},d=function(t){l.clearTimeout(t)}}var f=l.MutationObserver||l.WebKitMutationObserver||!1,m=Date.now||function(){return(new Date).getTime()},g={zindex:"auto",cursoropacitymin:0,cursoropacitymax:1,cursorcolor:"#424242",cursorwidth:"6px",cursorborder:"1px solid #fff",cursorborderradius:"5px",scrollspeed:40,mousescrollstep:27,touchbehavior:!1,emulatetouch:!1,hwacceleration:!0,usetransition:!0,boxzoom:!1,dblclickzoom:!0,gesturezoom:!0,grabcursorenabled:!0,autohidemode:!0,background:"",iframeautoresize:!0,cursorminheight:32,preservenativescrolling:!0,railoffset:!1,railhoffset:!1,bouncescroll:!0,spacebarenabled:!0,railpadding:{top:0,right:0,left:0,bottom:0},disableoutline:!0,horizrailenabled:!0,railalign:"right",railvalign:"bottom",enabletranslate3d:!0,enablemousewheel:!0,enablekeyboard:!0,smoothscroll:!0,sensitiverail:!0,enablemouselockapi:!0,cursorfixedheight:!1,directionlockdeadzone:6,hidecursordelay:400,nativeparentscrolling:!0,enablescrollonselection:!0,overflowx:!0,overflowy:!0,cursordragspeed:.3,rtlmode:"auto",cursordragontouch:!1,oneaxismousemode:"auto",scriptpath:function(){var t=a.currentScript||function(){var t=a.getElementsByTagName("script");return!!t.length&&t[t.length-1]}(),e=t?t.src.split("?")[0]:"";return e.split("/").length>0?e.split("/").slice(0,-1).join("/")+"/":""}(),preventmultitouchscrolling:!0,disablemutationobserver:!1,enableobserver:!0,scrollbarid:!1},v=!1,y=function(){if(v)return v;var t=a.createElement("DIV"),e=t.style,i=navigator.userAgent,n=navigator.platform,s={};return s.haspointerlock="pointerLockElement"in a||"webkitPointerLockElement"in a||"mozPointerLockElement"in a,s.isopera="opera"in l,s.isopera12=s.isopera&&"getUserMedia"in navigator,s.isoperamini="[object OperaMini]"===Object.prototype.toString.call(l.operamini),s.isie="all"in a&&"attachEvent"in t&&!s.isopera,s.isieold=s.isie&&!("msInterpolationMode"in e),s.isie7=s.isie&&!s.isieold&&(!("documentMode"in a)||7===a.documentMode),s.isie8=s.isie&&"documentMode"in a&&8===a.documentMode,s.isie9=s.isie&&"performance"in l&&9===a.documentMode,s.isie10=s.isie&&"performance"in l&&10===a.documentMode,s.isie11="msRequestFullscreen"in t&&a.documentMode>=11,s.ismsedge="msCredentials"in l,s.ismozilla="MozAppearance"in e,s.iswebkit=!s.ismsedge&&"WebkitAppearance"in e,s.ischrome=s.iswebkit&&"chrome"in l,s.ischrome38=s.ischrome&&"touchAction"in e,s.ischrome22=!s.ischrome38&&s.ischrome&&s.haspointerlock,s.ischrome26=!s.ischrome38&&s.ischrome&&"transition"in e,s.cantouch="ontouchstart"in a.documentElement||"ontouchstart"in l,s.hasw3ctouch=!!l.PointerEvent&&(navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0),s.hasmstouch=!s.hasw3ctouch&&(l.MSPointerEvent||!1),s.ismac=/^mac$/i.test(n),s.isios=s.cantouch&&/iphone|ipad|ipod/i.test(n),s.isios4=s.isios&&!("seal"in Object),s.isios7=s.isios&&"webkitHidden"in a,s.isios8=s.isios&&"hidden"in a,s.isios10=s.isios&&l.Proxy,s.isandroid=/android/i.test(i),s.haseventlistener="addEventListener"in t,s.trstyle=!1,s.hastransform=!1,s.hastranslate3d=!1,s.transitionstyle=!1,s.hastransition=!1,s.transitionend=!1,s.trstyle="transform",s.hastransform="transform"in e||function(){for(var t=["msTransform","webkitTransform","MozTransform","OTransform"],i=0,n=t.length;i<n;i++)if(void 0!==e[t[i]]){s.trstyle=t[i];break}s.hastransform=!!s.trstyle}(),s.hastransform&&(e[s.trstyle]="translate3d(1px,2px,3px)",s.hastranslate3d=/translate3d/.test(e[s.trstyle])),s.transitionstyle="transition",s.prefixstyle="",s.transitionend="transitionend",s.hastransition="transition"in e||function(){s.transitionend=!1;for(var t=["webkitTransition","msTransition","MozTransition","OTransition","OTransition","KhtmlTransition"],i=["-webkit-","-ms-","-moz-","-o-","-o","-khtml-"],n=["webkitTransitionEnd","msTransitionEnd","transitionend","otransitionend","oTransitionEnd","KhtmlTransitionEnd"],o=0,r=t.length;o<r;o++)if(t[o]in e){s.transitionstyle=t[o],s.prefixstyle=i[o],s.transitionend=n[o];break}s.ischrome26&&(s.prefixstyle=i[1]),s.hastransition=s.transitionstyle}(),s.cursorgrabvalue=function(){var t=["grab","-webkit-grab","-moz-grab"];(s.ischrome&&!s.ischrome38||s.isie)&&(t=[]);for(var i=0,n=t.length;i<n;i++){var o=t[i];if(e.cursor=o,e.cursor==o)return o}return"url(https://cdnjs.cloudflare.com/ajax/libs/slider-pro/1.3.0/css/images/openhand.cur),n-resize"}(),s.hasmousecapture="setCapture"in t,s.hasMutationObserver=!1!==f,t=null,v=s,s},b=function(t,p){function v(){var t=C.doc.css(O.trstyle);return!(!t||"matrix"!=t.substr(0,6))&&t.replace(/^.*\((.*)\)$/g,"$1").replace(/px/g,"").split(/, +/)}function b(t,e,i){var n=t.css(e),s=parseFloat(n);if(isNaN(s)){var o=3==(s=M[n]||0)?i?C.win.outerHeight()-C.win.innerHeight():C.win.outerWidth()-C.win.innerWidth():1;return C.isie8&&s&&(s+=1),o?s:0}return s}function w(t,e,i,n){C._bind(t,e,(function(n){var s={original:n=n||l.event,target:n.target||n.srcElement,type:"wheel",deltaMode:"MozMousePixelScroll"==n.type?0:1,deltaX:0,deltaZ:0,preventDefault:function(){return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},stopImmediatePropagation:function(){n.stopImmediatePropagation?n.stopImmediatePropagation():n.cancelBubble=!0}};return"mousewheel"==e?(n.wheelDeltaX&&(s.deltaX=-.025*n.wheelDeltaX),n.wheelDeltaY&&(s.deltaY=-.025*n.wheelDeltaY),!s.deltaY&&!s.deltaX&&(s.deltaY=-.025*n.wheelDelta)):s.deltaY=n.detail,i.call(t,s)}),n)}function x(t,e,i,n){C.scrollrunning||(C.newscrolly=C.getScrollTop(),C.newscrollx=C.getScrollLeft(),j=m());var s=m()-j;if(j=m(),s>350?R=1:R+=(2-R)/10,e=e*R|0,t=t*R|0){if(n)if(t<0){if(C.getScrollLeft()>=C.page.maxw)return!0}else if(C.getScrollLeft()<=0)return!0;var o=t>0?1:-1;H!==o&&(C.scrollmom&&C.scrollmom.stop(),C.newscrollx=C.getScrollLeft(),H=o),C.lastdeltax-=t}if(e){if(function(){var t=C.getScrollTop();if(e<0){if(t>=C.page.maxh)return!0}else if(t<=0)return!0}()){if(S.nativeparentscrolling&&i&&!C.ispage&&!C.zoomactive)return!0;var r=C.view.h>>1;C.newscrolly<-r?(C.newscrolly=-r,e=-1):C.newscrolly>C.page.maxh+r?(C.newscrolly=C.page.maxh+r,e=1):e=0}var a=e>0?1:-1;z!==a&&(C.scrollmom&&C.scrollmom.stop(),C.newscrolly=C.getScrollTop(),z=a),C.lastdeltay-=e}(e||t)&&C.synched("relativexy",(function(){var t=C.lastdeltay+C.newscrolly;C.lastdeltay=0;var e=C.lastdeltax+C.newscrollx;C.lastdeltax=0,C.rail.drag||C.doScrollPos(e,t)}))}function k(t,e,i){var n,s;return!(i||!q)||(0===t.deltaMode?(n=-t.deltaX*(S.mousescrollstep/54)|0,s=-t.deltaY*(S.mousescrollstep/54)|0):1===t.deltaMode&&(n=-t.deltaX*S.mousescrollstep*50/80|0,s=-t.deltaY*S.mousescrollstep*50/80|0),e&&S.oneaxismousemode&&0===n&&s&&(n=s,s=0,i&&(n<0?C.getScrollLeft()>=C.page.maxw:C.getScrollLeft()<=0)&&(s=n,n=0)),C.isrtlmode&&(n=-n),x(n,s,i,!0)?void(i&&(q=!0)):(q=!1,t.stopImmediatePropagation(),t.preventDefault()))}var C=this;this.version="3.7.6",this.name="nicescroll",this.me=p;var T=r("body"),S=this.opt={doc:T,win:!1};if(r.extend(S,g),S.snapbackspeed=80,t)for(var E in S)void 0!==t[E]&&(S[E]=t[E]);if(S.disablemutationobserver&&(f=!1),this.doc=S.doc,this.iddoc=this.doc&&this.doc[0]&&this.doc[0].id||"",this.ispage=/^BODY|HTML/.test(S.win?S.win[0].nodeName:this.doc[0].nodeName),this.haswrapper=!1!==S.win,this.win=S.win||(this.ispage?c:this.doc),this.docscroll=this.ispage&&!this.haswrapper?c:this.win,this.body=T,this.viewport=!1,this.isfixed=!1,this.iframe=!1,this.isiframe="IFRAME"==this.doc[0].nodeName&&"IFRAME"==this.win[0].nodeName,this.istextarea="TEXTAREA"==this.win[0].nodeName,this.forcescreen=!1,this.canshowonmouseevent="scroll"!=S.autohidemode,this.onmousedown=!1,this.onmouseup=!1,this.onmousemove=!1,this.onmousewheel=!1,this.onkeypress=!1,this.ongesturezoom=!1,this.onclick=!1,this.onscrollstart=!1,this.onscrollend=!1,this.onscrollcancel=!1,this.onzoomin=!1,this.onzoomout=!1,this.view=!1,this.page=!1,this.scroll={x:0,y:0},this.scrollratio={x:0,y:0},this.cursorheight=20,this.scrollvaluemax=0,"auto"==S.rtlmode){var D=this.win[0]==l?this.body:this.win,A=D.css("writing-mode")||D.css("-webkit-writing-mode")||D.css("-ms-writing-mode")||D.css("-moz-writing-mode");"horizontal-tb"==A||"lr-tb"==A||""===A?(this.isrtlmode="rtl"==D.css("direction"),this.isvertical=!1):(this.isrtlmode="vertical-rl"==A||"tb"==A||"tb-rl"==A||"rl-tb"==A,this.isvertical="vertical-rl"==A||"tb"==A||"tb-rl"==A)}else this.isrtlmode=!0===S.rtlmode,this.isvertical=!1;if(this.scrollrunning=!1,this.scrollmom=!1,this.observer=!1,this.observerremover=!1,this.observerbody=!1,!1!==S.scrollbarid)this.id=S.scrollbarid;else do{this.id="ascrail"+s++}while(a.getElementById(this.id));this.rail=!1,this.cursor=!1,this.cursorfreezed=!1,this.selectiondrag=!1,this.zoom=!1,this.zoomactive=!1,this.hasfocus=!1,this.hasmousefocus=!1,this.railslocked=!1,this.locked=!1,this.hidden=!1,this.cursoractive=!0,this.wheelprevented=!1,this.overflowx=S.overflowx,this.overflowy=S.overflowy,this.nativescrollingarea=!1,this.checkarea=0,this.events=[],this.saved={},this.delaylist={},this.synclist={},this.lastdeltax=0,this.lastdeltay=0,this.detected=y();var O=r.extend({},this.detected);this.canhwscroll=O.hastransform&&S.hwacceleration,this.ishwscroll=this.canhwscroll&&C.haswrapper,this.isrtlmode?this.isvertical?this.hasreversehr=!(O.iswebkit||O.isie||O.isie11):this.hasreversehr=!(O.iswebkit||O.isie&&!O.isie10&&!O.isie11):this.hasreversehr=!1,this.istouchcapable=!1,(O.cantouch||!O.hasw3ctouch&&!O.hasmstouch)&&(!O.cantouch||O.isios||O.isandroid||!O.iswebkit&&!O.ismozilla)||(this.istouchcapable=!0),S.enablemouselockapi||(O.hasmousecapture=!1,O.haspointerlock=!1),this.debounced=function(t,e,i){C&&(C.delaylist[t]||(C.delaylist[t]={h:h((function(){C.delaylist[t].fn.call(C),C.delaylist[t]=!1}),i)},e.call(C)),C.delaylist[t].fn=e)},this.synched=function(t,e){C.synclist[t]?C.synclist[t]=e:(C.synclist[t]=e,h((function(){C&&(C.synclist[t]&&C.synclist[t].call(C),C.synclist[t]=null)})))},this.unsynched=function(t){C.synclist[t]&&(C.synclist[t]=!1)},this.css=function(t,e){for(var i in e)C.saved.css.push([t,i,t.css(i)]),t.css(i,e[i])},this.scrollTop=function(t){return void 0===t?C.getScrollTop():C.setScrollTop(t)},this.scrollLeft=function(t){return void 0===t?C.getScrollLeft():C.setScrollLeft(t)};var L=function(t,e,i,n,s,o,r){this.st=t,this.ed=e,this.spd=i,this.p1=n||0,this.p2=s||1,this.p3=o||0,this.p4=r||1,this.ts=m(),this.df=e-t};if(L.prototype={B2:function(t){return 3*(1-t)*(1-t)*t},B3:function(t){return 3*(1-t)*t*t},B4:function(t){return t*t*t},getPos:function(){return(m()-this.ts)/this.spd},getNow:function(){var t=(m()-this.ts)/this.spd,e=this.B2(t)+this.B3(t)+this.B4(t);return t>=1?this.ed:this.st+this.df*e|0},update:function(t,e){return this.st=this.getNow(),this.ed=t,this.spd=e,this.ts=m(),this.df=this.ed-this.st,this}},this.ishwscroll){this.doc.translate={x:0,y:0,tx:"0px",ty:"0px"},O.hastranslate3d&&O.isios&&this.doc.css("-webkit-backface-visibility","hidden"),this.getScrollTop=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[13]:-e[5];if(C.timerscroll&&C.timerscroll.bz)return C.timerscroll.bz.getNow()}return C.doc.translate.y},this.getScrollLeft=function(t){if(!t){var e=v();if(e)return 16==e.length?-e[12]:-e[4];if(C.timerscroll&&C.timerscroll.bh)return C.timerscroll.bh.getNow()}return C.doc.translate.x},this.notifyScrollEvent=function(t){var e=a.createEvent("UIEvents");e.initUIEvent("scroll",!1,!1,l,1),e.niceevent=!0,t.dispatchEvent(e)};var P=this.isrtlmode?1:-1;O.hastranslate3d&&S.enabletranslate3d?(this.setScrollTop=function(t,e){C.doc.translate.y=t,C.doc.translate.ty=-1*t+"px",C.doc.css(O.trstyle,"translate3d("+C.doc.translate.tx+","+C.doc.translate.ty+",0)"),e||C.notifyScrollEvent(C.win[0])},this.setScrollLeft=function(t,e){C.doc.translate.x=t,C.doc.translate.tx=t*P+"px",C.doc.css(O.trstyle,"translate3d("+C.doc.translate.tx+","+C.doc.translate.ty+",0)"),e||C.notifyScrollEvent(C.win[0])}):(this.setScrollTop=function(t,e){C.doc.translate.y=t,C.doc.translate.ty=-1*t+"px",C.doc.css(O.trstyle,"translate("+C.doc.translate.tx+","+C.doc.translate.ty+")"),e||C.notifyScrollEvent(C.win[0])},this.setScrollLeft=function(t,e){C.doc.translate.x=t,C.doc.translate.tx=t*P+"px",C.doc.css(O.trstyle,"translate("+C.doc.translate.tx+","+C.doc.translate.ty+")"),e||C.notifyScrollEvent(C.win[0])})}else this.getScrollTop=function(){return C.docscroll.scrollTop()},this.setScrollTop=function(t){C.docscroll.scrollTop(t)},this.getScrollLeft=function(){return C.hasreversehr?C.detected.ismozilla?C.page.maxw-Math.abs(C.docscroll.scrollLeft()):C.page.maxw-C.docscroll.scrollLeft():C.docscroll.scrollLeft()},this.setScrollLeft=function(t){return setTimeout((function(){if(C)return C.hasreversehr&&(t=C.detected.ismozilla?-(C.page.maxw-t):C.page.maxw-t),C.docscroll.scrollLeft(t)}),1)};this.getTarget=function(t){return!!t&&(t.target?t.target:!!t.srcElement&&t.srcElement)},this.hasParent=function(t,e){if(!t)return!1;for(var i=t.target||t.srcElement||t||!1;i&&i.id!=e;)i=i.parentNode||!1;return!1!==i};var M={thin:1,medium:3,thick:5};this.getDocumentScrollOffset=function(){return{top:l.pageYOffset||a.documentElement.scrollTop,left:l.pageXOffset||a.documentElement.scrollLeft}},this.getOffset=function(){if(C.isfixed){var t=C.win.offset(),e=C.getDocumentScrollOffset();return t.top-=e.top,t.left-=e.left,t}var i=C.win.offset();if(!C.viewport)return i;var n=C.viewport.offset();return{top:i.top-n.top,left:i.left-n.left}},this.updateScrollBar=function(t){var e,i;if(C.ishwscroll)C.rail.css({height:C.win.innerHeight()-(S.railpadding.top+S.railpadding.bottom)}),C.railh&&C.railh.css({width:C.win.innerWidth()-(S.railpadding.left+S.railpadding.right)});else{var n=C.getOffset();if((e={top:n.top,left:n.left-(S.railpadding.left+S.railpadding.right)}).top+=b(C.win,"border-top-width",!0),e.left+=C.rail.align?C.win.outerWidth()-b(C.win,"border-right-width")-C.rail.width:b(C.win,"border-left-width"),(i=S.railoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left)),C.railslocked||C.rail.css({top:e.top,left:e.left,height:(t?t.h:C.win.innerHeight())-(S.railpadding.top+S.railpadding.bottom)}),C.zoom&&C.zoom.css({top:e.top+1,left:1==C.rail.align?e.left-20:e.left+C.rail.width+4}),C.railh&&!C.railslocked){e={top:n.top,left:n.left},(i=S.railhoffset)&&(i.top&&(e.top+=i.top),i.left&&(e.left+=i.left));var s=C.railh.align?e.top+b(C.win,"border-top-width",!0)+C.win.innerHeight()-C.railh.height:e.top+b(C.win,"border-top-width",!0),o=e.left+b(C.win,"border-left-width");C.railh.css({top:s-(S.railpadding.top+S.railpadding.bottom),left:o,width:C.railh.width})}}},this.doRailClick=function(t,e,i){var n,s,o,r;C.railslocked||(C.cancelEvent(t),"pageY"in t||(t.pageX=t.clientX+a.documentElement.scrollLeft,t.pageY=t.clientY+a.documentElement.scrollTop),e?(n=i?C.doScrollLeft:C.doScrollTop,o=i?(t.pageX-C.railh.offset().left-C.cursorwidth/2)*C.scrollratio.x:(t.pageY-C.rail.offset().top-C.cursorheight/2)*C.scrollratio.y,C.unsynched("relativexy"),n(0|o)):(n=i?C.doScrollLeftBy:C.doScrollBy,o=i?C.scroll.x:C.scroll.y,r=i?t.pageX-C.railh.offset().left:t.pageY-C.rail.offset().top,s=i?C.view.w:C.view.h,n(o>=r?s:-s)))},C.newscrolly=C.newscrollx=0,C.hasanimationframe="requestAnimationFrame"in l,C.hascancelanimationframe="cancelAnimationFrame"in l,C.hasborderbox=!1,this.init=function(){if(C.saved.css=[],O.isoperamini)return!0;if(O.isandroid&&!("hidden"in a))return!0;S.emulatetouch=S.emulatetouch||S.touchbehavior,C.hasborderbox=l.getComputedStyle&&"border-box"===l.getComputedStyle(a.body)["box-sizing"];var t={"overflow-y":"hidden"};if((O.isie11||O.isie10)&&(t["-ms-overflow-style"]="none"),C.ishwscroll&&(this.doc.css(O.transitionstyle,O.prefixstyle+"transform 0ms ease-out"),O.transitionend&&C.bind(C.doc,O.transitionend,C.onScrollTransitionEnd,!1)),C.zindex="auto",C.ispage||"auto"!=S.zindex?C.zindex=S.zindex:C.zindex=function(){var t=C.win;if("zIndex"in t)return t.zIndex();for(;t.length>0;){if(9==t[0].nodeType)return!1;var e=t.css("zIndex");if(!isNaN(e)&&0!==e)return parseInt(e);t=t.parent()}return!1}()||"auto",!C.ispage&&"auto"!=C.zindex&&C.zindex>o&&(o=C.zindex),C.isie&&0===C.zindex&&"auto"==S.zindex&&(C.zindex="auto"),!C.ispage||!O.isieold){var s=C.docscroll;C.ispage&&(s=C.haswrapper?C.win:C.doc),C.css(s,t),C.ispage&&(O.isie11||O.isie)&&C.css(r("html"),t),!O.isios||C.ispage||C.haswrapper||C.css(T,{"-webkit-overflow-scrolling":"touch"});var u=r(a.createElement("div"));u.css({position:"relative",top:0,float:"right",width:S.cursorwidth,height:0,"background-color":S.cursorcolor,border:S.cursorborder,"background-clip":"padding-box","-webkit-border-radius":S.cursorborderradius,"-moz-border-radius":S.cursorborderradius,"border-radius":S.cursorborderradius}),u.addClass("nicescroll-cursors"),C.cursor=u;var h=r(a.createElement("div"));h.attr("id",C.id),h.addClass("nicescroll-rails nicescroll-rails-vr");var d,p,m=["left","right","top","bottom"];for(var g in m)p=m[g],(d=S.railpadding[p]||0)&&h.css("padding-"+p,d+"px");h.append(u),h.width=Math.max(parseFloat(S.cursorwidth),u.outerWidth()),h.css({width:h.width+"px",zIndex:C.zindex,background:S.background,cursor:"default"}),h.visibility=!0,h.scrollable=!0,h.align="left"==S.railalign?0:1,C.rail=h,C.rail.drag=!1;var v,y=!1;if(!S.boxzoom||C.ispage||O.isieold||(y=a.createElement("div"),C.bind(y,"click",C.doZoom),C.bind(y,"mouseenter",(function(){C.zoom.css("opacity",S.cursoropacitymax)})),C.bind(y,"mouseleave",(function(){C.zoom.css("opacity",S.cursoropacitymin)})),C.zoom=r(y),C.zoom.css({cursor:"pointer",zIndex:C.zindex,backgroundImage:"url("+S.scriptpath+"zoomico.png)",height:18,width:18,backgroundPosition:"0 0"}),S.dblclickzoom&&C.bind(C.win,"dblclick",C.doZoom),O.cantouch&&S.gesturezoom&&(C.ongesturezoom=function(t){return t.scale>1.5&&C.doZoomIn(t),t.scale<.8&&C.doZoomOut(t),C.cancelEvent(t)},C.bind(C.win,"gestureend",C.ongesturezoom))),C.railh=!1,S.horizrailenabled&&(C.css(s,{overflowX:"hidden"}),(u=r(a.createElement("div"))).css({position:"absolute",top:0,height:S.cursorwidth,width:0,backgroundColor:S.cursorcolor,border:S.cursorborder,backgroundClip:"padding-box","-webkit-border-radius":S.cursorborderradius,"-moz-border-radius":S.cursorborderradius,"border-radius":S.cursorborderradius}),O.isieold&&u.css("overflow","hidden"),u.addClass("nicescroll-cursors"),C.cursorh=u,(v=r(a.createElement("div"))).attr("id",C.id+"-hr"),v.addClass("nicescroll-rails nicescroll-rails-hr"),v.height=Math.max(parseFloat(S.cursorwidth),u.outerHeight()),v.css({height:v.height+"px",zIndex:C.zindex,background:S.background}),v.append(u),v.visibility=!0,v.scrollable=!0,v.align="top"==S.railvalign?0:1,C.railh=v,C.railh.drag=!1),C.ispage)h.css({position:"fixed",top:0,height:"100%"}),h.css(h.align?{right:0}:{left:0}),C.body.append(h),C.railh&&(v.css({position:"fixed",left:0,width:"100%"}),v.css(v.align?{bottom:0}:{top:0}),C.body.append(v));else{if(C.ishwscroll){"static"==C.win.css("position")&&C.css(C.win,{position:"relative"});var b="HTML"==C.win[0].nodeName?C.body:C.win;r(b).scrollTop(0).scrollLeft(0),C.zoom&&(C.zoom.css({position:"absolute",top:1,right:0,"margin-right":h.width+4}),b.append(C.zoom)),h.css({position:"absolute",top:0}),h.css(h.align?{right:0}:{left:0}),b.append(h),v&&(v.css({position:"absolute",left:0,bottom:0}),v.css(v.align?{bottom:0}:{top:0}),b.append(v))}else{C.isfixed="fixed"==C.win.css("position");var w=C.isfixed?"fixed":"absolute";C.isfixed||(C.viewport=C.getViewport(C.win[0])),C.viewport&&(C.body=C.viewport,/fixed|absolute/.test(C.viewport.css("position"))||C.css(C.viewport,{position:"relative"})),h.css({position:w}),C.zoom&&C.zoom.css({position:w}),C.updateScrollBar(),C.body.append(h),C.zoom&&C.body.append(C.zoom),C.railh&&(v.css({position:w}),C.body.append(v))}O.isios&&C.css(C.win,{"-webkit-tap-highlight-color":"rgba(0,0,0,0)","-webkit-touch-callout":"none"}),S.disableoutline&&(O.isie&&C.win.attr("hideFocus","true"),O.iswebkit&&C.win.css("outline","none"))}if(!1===S.autohidemode?(C.autohidedom=!1,C.rail.css({opacity:S.cursoropacitymax}),C.railh&&C.railh.css({opacity:S.cursoropacitymax})):!0===S.autohidemode||"leave"===S.autohidemode?(C.autohidedom=r().add(C.rail),O.isie8&&(C.autohidedom=C.autohidedom.add(C.cursor)),C.railh&&(C.autohidedom=C.autohidedom.add(C.railh)),C.railh&&O.isie8&&(C.autohidedom=C.autohidedom.add(C.cursorh))):"scroll"==S.autohidemode?(C.autohidedom=r().add(C.rail),C.railh&&(C.autohidedom=C.autohidedom.add(C.railh))):"cursor"==S.autohidemode?(C.autohidedom=r().add(C.cursor),C.railh&&(C.autohidedom=C.autohidedom.add(C.cursorh))):"hidden"==S.autohidemode&&(C.autohidedom=!1,C.hide(),C.railslocked=!1),O.cantouch||C.istouchcapable||S.emulatetouch||O.hasmstouch){C.scrollmom=new _(C),C.ontouchstart=function(t){if(C.locked)return!1;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;if(C.hasmoving=!1,C.scrollmom.timer&&(C.triggerScrollEnd(),C.scrollmom.stop()),!C.railslocked){var e=C.getTarget(t);if(e&&/INPUT/i.test(e.nodeName)&&/range/i.test(e.type))return C.stopPropagation(t);var i="mousedown"===t.type;if(!("clientX"in t)&&"changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),C.forcescreen){var n=t;(t={original:t.original?t.original:t}).clientX=n.screenX,t.clientY=n.screenY}if(C.rail.drag={x:t.clientX,y:t.clientY,sx:C.scroll.x,sy:C.scroll.y,st:C.getScrollTop(),sl:C.getScrollLeft(),pt:2,dl:!1,tg:e},C.ispage||!S.directionlockdeadzone)C.rail.drag.dl="f";else{var s={w:c.width(),h:c.height()},o=C.getContentSize(),a=o.h-s.h,l=o.w-s.w;C.rail.scrollable&&!C.railh.scrollable?C.rail.drag.ck=a>0&&"v":!C.rail.scrollable&&C.railh.scrollable?C.rail.drag.ck=l>0&&"h":C.rail.drag.ck=!1}if(S.emulatetouch&&C.isiframe&&O.isie){var u=C.win.position();C.rail.drag.x+=u.left,C.rail.drag.y+=u.top}if(C.hasmoving=!1,C.lastmouseup=!1,C.scrollmom.reset(t.clientX,t.clientY),e&&i){if(!/INPUT|SELECT|BUTTON|TEXTAREA/i.test(e.nodeName))return O.hasmousecapture&&e.setCapture(),S.emulatetouch?(e.onclick&&!e._onclick&&(e._onclick=e.onclick,e.onclick=function(t){if(C.hasmoving)return!1;e._onclick.call(this,t)}),C.cancelEvent(t)):C.stopPropagation(t);/SUBMIT|CANCEL|BUTTON/i.test(r(e).attr("type"))&&(C.preventclick={tg:e,click:!1})}}},C.ontouchend=function(t){if(!C.rail.drag)return!0;if(2==C.rail.drag.pt){if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!1;C.rail.drag=!1;var e="mouseup"===t.type;if(C.hasmoving&&(C.scrollmom.doMomentum(),C.lastmouseup=!0,C.hideCursor(),O.hasmousecapture&&a.releaseCapture(),e))return C.cancelEvent(t)}else if(1==C.rail.drag.pt)return C.onmouseup(t)};var x=S.emulatetouch&&C.isiframe&&!O.hasmousecapture,k=.3*S.directionlockdeadzone|0;C.ontouchmove=function(t,e){if(!C.rail.drag)return!0;if(t.targetTouches&&S.preventmultitouchscrolling&&t.targetTouches.length>1)return!0;if(t.pointerType&&("mouse"===t.pointerType||t.pointerType===t.MSPOINTER_TYPE_MOUSE))return!0;if(2==C.rail.drag.pt){var i,n;if("changedTouches"in t&&(t.clientX=t.changedTouches[0].clientX,t.clientY=t.changedTouches[0].clientY),n=i=0,x&&!e){var s=C.win.position();n=-s.left,i=-s.top}var o=t.clientY+i,r=o-C.rail.drag.y,l=t.clientX+n,c=l-C.rail.drag.x,u=C.rail.drag.st-r;if(C.ishwscroll&&S.bouncescroll)u<0?u=Math.round(u/2):u>C.page.maxh&&(u=C.page.maxh+Math.round((u-C.page.maxh)/2));else if(u<0?(u=0,o=0):u>C.page.maxh&&(u=C.page.maxh,o=0),0===o&&!C.hasmoving)return C.ispage||(C.rail.drag=!1),!0;var h=C.getScrollLeft();if(C.railh&&C.railh.scrollable&&(h=C.isrtlmode?c-C.rail.drag.sl:C.rail.drag.sl-c,C.ishwscroll&&S.bouncescroll?h<0?h=Math.round(h/2):h>C.page.maxw&&(h=C.page.maxw+Math.round((h-C.page.maxw)/2)):(h<0&&(h=0,l=0),h>C.page.maxw&&(h=C.page.maxw,l=0))),!C.hasmoving){if(C.rail.drag.y===t.clientY&&C.rail.drag.x===t.clientX)return C.cancelEvent(t);var d=Math.abs(r),p=Math.abs(c),f=S.directionlockdeadzone;if(C.rail.drag.ck?"v"==C.rail.drag.ck?p>f&&d<=k?C.rail.drag=!1:d>f&&(C.rail.drag.dl="v"):"h"==C.rail.drag.ck&&(d>f&&p<=k?C.rail.drag=!1:p>f&&(C.rail.drag.dl="h")):d>f&&p>f?C.rail.drag.dl="f":d>f?C.rail.drag.dl=p>k?"f":"v":p>f&&(C.rail.drag.dl=d>k?"f":"h"),!C.rail.drag.dl)return C.cancelEvent(t);C.triggerScrollStart(t.clientX,t.clientY,0,0,0),C.hasmoving=!0}return C.preventclick&&!C.preventclick.click&&(C.preventclick.click=C.preventclick.tg.onclick||!1,C.preventclick.tg.onclick=C.onpreventclick),C.rail.drag.dl&&("v"==C.rail.drag.dl?h=C.rail.drag.sl:"h"==C.rail.drag.dl&&(u=C.rail.drag.st)),C.synched("touchmove",(function(){C.rail.drag&&2==C.rail.drag.pt&&(C.prepareTransition&&C.resetTransition(),C.rail.scrollable&&C.setScrollTop(u),C.scrollmom.update(l,o),C.railh&&C.railh.scrollable?(C.setScrollLeft(h),C.showCursor(u,h)):C.showCursor(u),O.isie10&&a.selection.clear())})),C.cancelEvent(t)}return 1==C.rail.drag.pt?C.onmousemove(t):void 0},C.ontouchstartCursor=function(t,e){if(!C.rail.drag||3==C.rail.drag.pt){if(C.locked)return C.cancelEvent(t);C.cancelScroll(),C.rail.drag={x:t.touches[0].clientX,y:t.touches[0].clientY,sx:C.scroll.x,sy:C.scroll.y,pt:3,hr:!!e};var i=C.getTarget(t);return!C.ispage&&O.hasmousecapture&&i.setCapture(),C.isiframe&&!O.hasmousecapture&&(C.saved.csspointerevents=C.doc.css("pointer-events"),C.css(C.doc,{"pointer-events":"none"})),C.cancelEvent(t)}},C.ontouchendCursor=function(t){if(C.rail.drag){if(O.hasmousecapture&&a.releaseCapture(),C.isiframe&&!O.hasmousecapture&&C.doc.css("pointer-events",C.saved.csspointerevents),3!=C.rail.drag.pt)return;return C.rail.drag=!1,C.cancelEvent(t)}},C.ontouchmoveCursor=function(t){if(C.rail.drag){if(3!=C.rail.drag.pt)return;if(C.cursorfreezed=!0,C.rail.drag.hr){C.scroll.x=C.rail.drag.sx+(t.touches[0].clientX-C.rail.drag.x),C.scroll.x<0&&(C.scroll.x=0);var e=C.scrollvaluemaxw;C.scroll.x>e&&(C.scroll.x=e)}else{C.scroll.y=C.rail.drag.sy+(t.touches[0].clientY-C.rail.drag.y),C.scroll.y<0&&(C.scroll.y=0);var i=C.scrollvaluemax;C.scroll.y>i&&(C.scroll.y=i)}return C.synched("touchmove",(function(){C.rail.drag&&3==C.rail.drag.pt&&(C.showCursor(),C.rail.drag.hr?C.doScrollLeft(Math.round(C.scroll.x*C.scrollratio.x),S.cursordragspeed):C.doScrollTop(Math.round(C.scroll.y*C.scrollratio.y),S.cursordragspeed))})),C.cancelEvent(t)}}}if(C.onmousedown=function(t,e){if(!C.rail.drag||1==C.rail.drag.pt){if(C.railslocked)return C.cancelEvent(t);C.cancelScroll(),C.rail.drag={x:t.clientX,y:t.clientY,sx:C.scroll.x,sy:C.scroll.y,pt:1,hr:e||!1};var i=C.getTarget(t);return O.hasmousecapture&&i.setCapture(),C.isiframe&&!O.hasmousecapture&&(C.saved.csspointerevents=C.doc.css("pointer-events"),C.css(C.doc,{"pointer-events":"none"})),C.hasmoving=!1,C.cancelEvent(t)}},C.onmouseup=function(t){if(C.rail.drag)return 1!=C.rail.drag.pt||(O.hasmousecapture&&a.releaseCapture(),C.isiframe&&!O.hasmousecapture&&C.doc.css("pointer-events",C.saved.csspointerevents),C.rail.drag=!1,C.cursorfreezed=!1,C.hasmoving&&C.triggerScrollEnd(),C.cancelEvent(t))},C.onmousemove=function(t){if(C.rail.drag){if(1!==C.rail.drag.pt)return;if(O.ischrome&&0===t.which)return C.onmouseup(t);if(C.cursorfreezed=!0,C.hasmoving||C.triggerScrollStart(t.clientX,t.clientY,0,0,0),C.hasmoving=!0,C.rail.drag.hr){C.scroll.x=C.rail.drag.sx+(t.clientX-C.rail.drag.x),C.scroll.x<0&&(C.scroll.x=0);var e=C.scrollvaluemaxw;C.scroll.x>e&&(C.scroll.x=e)}else{C.scroll.y=C.rail.drag.sy+(t.clientY-C.rail.drag.y),C.scroll.y<0&&(C.scroll.y=0);var i=C.scrollvaluemax;C.scroll.y>i&&(C.scroll.y=i)}return C.synched("mousemove",(function(){C.cursorfreezed&&(C.showCursor(),C.rail.drag.hr?C.scrollLeft(Math.round(C.scroll.x*C.scrollratio.x)):C.scrollTop(Math.round(C.scroll.y*C.scrollratio.y)))})),C.cancelEvent(t)}C.checkarea=0},O.cantouch||S.emulatetouch)C.onpreventclick=function(t){if(C.preventclick)return C.preventclick.tg.onclick=C.preventclick.click,C.preventclick=!1,C.cancelEvent(t)},C.onclick=!O.isios&&function(t){return!C.lastmouseup||(C.lastmouseup=!1,C.cancelEvent(t))},S.grabcursorenabled&&O.cursorgrabvalue&&(C.css(C.ispage?C.doc:C.win,{cursor:O.cursorgrabvalue}),C.css(C.rail,{cursor:O.cursorgrabvalue}));else{var E=function(t){if(C.selectiondrag){if(t){var e=C.win.outerHeight(),i=t.pageY-C.selectiondrag.top;i>0&&i<e&&(i=0),i>=e&&(i-=e),C.selectiondrag.df=i}if(0!==C.selectiondrag.df){var n=-2*C.selectiondrag.df/6|0;C.doScrollBy(n),C.debounced("doselectionscroll",(function(){E()}),50)}}};C.hasTextSelected="getSelection"in a?function(){return a.getSelection().rangeCount>0}:"selection"in a?function(){return"None"!=a.selection.type}:function(){return!1},C.onselectionstart=function(t){C.ispage||(C.selectiondrag=C.win.offset())},C.onselectionend=function(t){C.selectiondrag=!1},C.onselectiondrag=function(t){C.selectiondrag&&C.hasTextSelected()&&C.debounced("selectionscroll",(function(){E(t)}),250)}}if(O.hasw3ctouch?(C.css(C.ispage?r("html"):C.win,{"touch-action":"none"}),C.css(C.rail,{"touch-action":"none"}),C.css(C.cursor,{"touch-action":"none"}),C.bind(C.win,"pointerdown",C.ontouchstart),C.bind(a,"pointerup",C.ontouchend),C.delegate(a,"pointermove",C.ontouchmove)):O.hasmstouch?(C.css(C.ispage?r("html"):C.win,{"-ms-touch-action":"none"}),C.css(C.rail,{"-ms-touch-action":"none"}),C.css(C.cursor,{"-ms-touch-action":"none"}),C.bind(C.win,"MSPointerDown",C.ontouchstart),C.bind(a,"MSPointerUp",C.ontouchend),C.delegate(a,"MSPointerMove",C.ontouchmove),C.bind(C.cursor,"MSGestureHold",(function(t){t.preventDefault()})),C.bind(C.cursor,"contextmenu",(function(t){t.preventDefault()}))):O.cantouch&&(C.bind(C.win,"touchstart",C.ontouchstart,!1,!0),C.bind(a,"touchend",C.ontouchend,!1,!0),C.bind(a,"touchcancel",C.ontouchend,!1,!0),C.delegate(a,"touchmove",C.ontouchmove,!1,!0)),S.emulatetouch&&(C.bind(C.win,"mousedown",C.ontouchstart,!1,!0),C.bind(a,"mouseup",C.ontouchend,!1,!0),C.bind(a,"mousemove",C.ontouchmove,!1,!0)),(S.cursordragontouch||!O.cantouch&&!S.emulatetouch)&&(C.rail.css({cursor:"default"}),C.railh&&C.railh.css({cursor:"default"}),C.jqbind(C.rail,"mouseenter",(function(){if(!C.ispage&&!C.win.is(":visible"))return!1;C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0})),C.jqbind(C.rail,"mouseleave",(function(){C.rail.active=!1,C.rail.drag||C.hideCursor()})),S.sensitiverail&&(C.bind(C.rail,"click",(function(t){C.doRailClick(t,!1,!1)})),C.bind(C.rail,"dblclick",(function(t){C.doRailClick(t,!0,!1)})),C.bind(C.cursor,"click",(function(t){C.cancelEvent(t)})),C.bind(C.cursor,"dblclick",(function(t){C.cancelEvent(t)}))),C.railh&&(C.jqbind(C.railh,"mouseenter",(function(){if(!C.ispage&&!C.win.is(":visible"))return!1;C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0})),C.jqbind(C.railh,"mouseleave",(function(){C.rail.active=!1,C.rail.drag||C.hideCursor()})),S.sensitiverail&&(C.bind(C.railh,"click",(function(t){C.doRailClick(t,!1,!0)})),C.bind(C.railh,"dblclick",(function(t){C.doRailClick(t,!0,!0)})),C.bind(C.cursorh,"click",(function(t){C.cancelEvent(t)})),C.bind(C.cursorh,"dblclick",(function(t){C.cancelEvent(t)}))))),S.cursordragontouch&&(this.istouchcapable||O.cantouch)&&(C.bind(C.cursor,"touchstart",C.ontouchstartCursor),C.bind(C.cursor,"touchmove",C.ontouchmoveCursor),C.bind(C.cursor,"touchend",C.ontouchendCursor),C.cursorh&&C.bind(C.cursorh,"touchstart",(function(t){C.ontouchstartCursor(t,!0)})),C.cursorh&&C.bind(C.cursorh,"touchmove",C.ontouchmoveCursor),C.cursorh&&C.bind(C.cursorh,"touchend",C.ontouchendCursor)),S.emulatetouch||O.isandroid||O.isios?(C.bind(O.hasmousecapture?C.win:a,"mouseup",C.ontouchend),C.onclick&&C.bind(a,"click",C.onclick),S.cursordragontouch?(C.bind(C.cursor,"mousedown",C.onmousedown),C.bind(C.cursor,"mouseup",C.onmouseup),C.cursorh&&C.bind(C.cursorh,"mousedown",(function(t){C.onmousedown(t,!0)})),C.cursorh&&C.bind(C.cursorh,"mouseup",C.onmouseup)):(C.bind(C.rail,"mousedown",(function(t){t.preventDefault()})),C.railh&&C.bind(C.railh,"mousedown",(function(t){t.preventDefault()})))):(C.bind(O.hasmousecapture?C.win:a,"mouseup",C.onmouseup),C.bind(a,"mousemove",C.onmousemove),C.onclick&&C.bind(a,"click",C.onclick),C.bind(C.cursor,"mousedown",C.onmousedown),C.bind(C.cursor,"mouseup",C.onmouseup),C.railh&&(C.bind(C.cursorh,"mousedown",(function(t){C.onmousedown(t,!0)})),C.bind(C.cursorh,"mouseup",C.onmouseup)),!C.ispage&&S.enablescrollonselection&&(C.bind(C.win[0],"mousedown",C.onselectionstart),C.bind(a,"mouseup",C.onselectionend),C.bind(C.cursor,"mouseup",C.onselectionend),C.cursorh&&C.bind(C.cursorh,"mouseup",C.onselectionend),C.bind(a,"mousemove",C.onselectiondrag)),C.zoom&&(C.jqbind(C.zoom,"mouseenter",(function(){C.canshowonmouseevent&&C.showCursor(),C.rail.active=!0})),C.jqbind(C.zoom,"mouseleave",(function(){C.rail.active=!1,C.rail.drag||C.hideCursor()})))),S.enablemousewheel&&(C.isiframe||C.mousewheel(O.isie&&C.ispage?a:C.win,C.onmousewheel),C.mousewheel(C.rail,C.onmousewheel),C.railh&&C.mousewheel(C.railh,C.onmousewheelhr)),C.ispage||O.cantouch||/HTML|^BODY/.test(C.win[0].nodeName)||(C.win.attr("tabindex")||C.win.attr({tabindex:++n}),C.bind(C.win,"focus",(function(t){e=C.getTarget(t).id||C.getTarget(t)||!1,C.hasfocus=!0,C.canshowonmouseevent&&C.noticeCursor()})),C.bind(C.win,"blur",(function(t){e=!1,C.hasfocus=!1})),C.bind(C.win,"mouseenter",(function(t){i=C.getTarget(t).id||C.getTarget(t)||!1,C.hasmousefocus=!0,C.canshowonmouseevent&&C.noticeCursor()})),C.bind(C.win,"mouseleave",(function(t){i=!1,C.hasmousefocus=!1,C.rail.drag||C.hideCursor()}))),C.onkeypress=function(t){if(C.railslocked&&0===C.page.maxh)return!0;t=t||l.event;var n=C.getTarget(t);if(n&&/INPUT|TEXTAREA|SELECT|OPTION/.test(n.nodeName)&&(!n.getAttribute("type")&&!n.type||!/submit|button|cancel/i.tp))return!0;if(r(n).attr("contenteditable"))return!0;if(C.hasfocus||C.hasmousefocus&&!e||C.ispage&&!e&&!i){var s=t.keyCode;if(C.railslocked&&27!=s)return C.cancelEvent(t);var o=t.ctrlKey||!1,a=t.shiftKey||!1,c=!1;switch(s){case 38:case 63233:C.doScrollBy(72),c=!0;break;case 40:case 63235:C.doScrollBy(-72),c=!0;break;case 37:case 63232:C.railh&&(o?C.doScrollLeft(0):C.doScrollLeftBy(72),c=!0);break;case 39:case 63234:C.railh&&(o?C.doScrollLeft(C.page.maxw):C.doScrollLeftBy(-72),c=!0);break;case 33:case 63276:C.doScrollBy(C.view.h),c=!0;break;case 34:case 63277:C.doScrollBy(-C.view.h),c=!0;break;case 36:case 63273:C.railh&&o?C.doScrollPos(0,0):C.doScrollTo(0),c=!0;break;case 35:case 63275:C.railh&&o?C.doScrollPos(C.page.maxw,C.page.maxh):C.doScrollTo(C.page.maxh),c=!0;break;case 32:S.spacebarenabled&&(a?C.doScrollBy(C.view.h):C.doScrollBy(-C.view.h),c=!0);break;case 27:C.zoomactive&&(C.doZoom(),c=!0)}if(c)return C.cancelEvent(t)}},S.enablekeyboard&&C.bind(a,O.isopera&&!O.isopera12?"keypress":"keydown",C.onkeypress),C.bind(a,"keydown",(function(t){t.ctrlKey&&(C.wheelprevented=!0)})),C.bind(a,"keyup",(function(t){t.ctrlKey||(C.wheelprevented=!1)})),C.bind(l,"blur",(function(t){C.wheelprevented=!1})),C.bind(l,"resize",C.onscreenresize),C.bind(l,"orientationchange",C.onscreenresize),C.bind(l,"load",C.lazyResize),O.ischrome&&!C.ispage&&!C.haswrapper){var D=C.win.attr("style"),A=parseFloat(C.win.css("width"))+1;C.win.css("width",A),C.synched("chromefix",(function(){C.win.attr("style",D)}))}if(C.onAttributeChange=function(t){C.lazyResize(C.isieold?250:30)},S.enableobserver&&(C.isie11||!1===f||(C.observerbody=new f((function(t){if(t.forEach((function(t){if("attributes"==t.type)return T.hasClass("modal-open")&&T.hasClass("modal-dialog")&&!r.contains(r(".modal-dialog")[0],C.doc[0])?C.hide():C.show()})),C.me.clientWidth!=C.page.width||C.me.clientHeight!=C.page.height)return C.lazyResize(30)})),C.observerbody.observe(a.body,{childList:!0,subtree:!0,characterData:!1,attributes:!0,attributeFilter:["class"]})),!C.ispage&&!C.haswrapper)){var L=C.win[0];!1!==f?(C.observer=new f((function(t){t.forEach(C.onAttributeChange)})),C.observer.observe(L,{childList:!0,characterData:!1,attributes:!0,subtree:!1}),C.observerremover=new f((function(t){t.forEach((function(t){if(t.removedNodes.length>0)for(var e in t.removedNodes)if(C&&t.removedNodes[e]===L)return C.remove()}))})),C.observerremover.observe(L.parentNode,{childList:!0,characterData:!1,attributes:!1,subtree:!1})):(C.bind(L,O.isie&&!O.isie9?"propertychange":"DOMAttrModified",C.onAttributeChange),O.isie9&&L.attachEvent("onpropertychange",C.onAttributeChange),C.bind(L,"DOMNodeRemoved",(function(t){t.target===L&&C.remove()})))}!C.ispage&&S.boxzoom&&C.bind(l,"resize",C.resizeZoom),C.istextarea&&(C.bind(C.win,"keydown",C.lazyResize),C.bind(C.win,"mouseup",C.lazyResize)),C.lazyResize(30)}if("IFRAME"==this.doc[0].nodeName){var P=function(){var e;C.iframexd=!1;try{(e="contentDocument"in this?this.contentDocument:this.contentWindow._doc).domain}catch(t){C.iframexd=!0,e=!1}if(C.iframexd)return"console"in l&&console.log("NiceScroll error: policy restriced iframe"),!0;if(C.forcescreen=!0,C.isiframe&&(C.iframe={doc:r(e),html:C.doc.contents().find("html")[0],body:C.doc.contents().find("body")[0]},C.getContentSize=function(){return{w:Math.max(C.iframe.html.scrollWidth,C.iframe.body.scrollWidth),h:Math.max(C.iframe.html.scrollHeight,C.iframe.body.scrollHeight)}},C.docscroll=r(C.iframe.body)),!O.isios&&S.iframeautoresize&&!C.isiframe){C.win.scrollTop(0),C.doc.height("");var i=Math.max(e.getElementsByTagName("html")[0].scrollHeight,e.body.scrollHeight);C.doc.height(i)}C.lazyResize(30),C.css(r(C.iframe.body),t),O.isios&&C.haswrapper&&C.css(r(e.body),{"-webkit-transform":"translate3d(0,0,0)"}),"contentWindow"in this?C.bind(this.contentWindow,"scroll",C.onscroll):C.bind(e,"scroll",C.onscroll),S.enablemousewheel&&C.mousewheel(e,C.onmousewheel),S.enablekeyboard&&C.bind(e,O.isopera?"keypress":"keydown",C.onkeypress),O.cantouch?(C.bind(e,"touchstart",C.ontouchstart),C.bind(e,"touchmove",C.ontouchmove)):S.emulatetouch&&(C.bind(e,"mousedown",C.ontouchstart),C.bind(e,"mousemove",(function(t){return C.ontouchmove(t,!0)})),S.grabcursorenabled&&O.cursorgrabvalue&&C.css(r(e.body),{cursor:O.cursorgrabvalue})),C.bind(e,"mouseup",C.ontouchend),C.zoom&&(S.dblclickzoom&&C.bind(e,"dblclick",C.doZoom),C.ongesturezoom&&C.bind(e,"gestureend",C.ongesturezoom))};this.doc[0].readyState&&"complete"===this.doc[0].readyState&&setTimeout((function(){P.call(C.doc[0],!1)}),500),C.bind(this.doc,"load",P)}},this.showCursor=function(t,e){if(C.cursortimeout&&(clearTimeout(C.cursortimeout),C.cursortimeout=0),C.rail){if(C.autohidedom&&(C.autohidedom.stop().css({opacity:S.cursoropacitymax}),C.cursoractive=!0),C.rail.drag&&1==C.rail.drag.pt||(void 0!==t&&!1!==t&&(C.scroll.y=t/C.scrollratio.y|0),void 0!==e&&(C.scroll.x=e/C.scrollratio.x|0)),C.cursor.css({height:C.cursorheight,top:C.scroll.y}),C.cursorh){var i=C.hasreversehr?C.scrollvaluemaxw-C.scroll.x:C.scroll.x;C.cursorh.css({width:C.cursorwidth,left:!C.rail.align&&C.rail.visibility?i+C.rail.width:i}),C.cursoractive=!0}C.zoom&&C.zoom.stop().css({opacity:S.cursoropacitymax})}},this.hideCursor=function(t){C.cursortimeout||C.rail&&C.autohidedom&&(C.hasmousefocus&&"leave"===S.autohidemode||(C.cursortimeout=setTimeout((function(){C.rail.active&&C.showonmouseevent||(C.autohidedom.stop().animate({opacity:S.cursoropacitymin}),C.zoom&&C.zoom.stop().animate({opacity:S.cursoropacitymin}),C.cursoractive=!1),C.cursortimeout=0}),t||S.hidecursordelay)))},this.noticeCursor=function(t,e,i){C.showCursor(e,i),C.rail.active||C.hideCursor(t)},this.getContentSize=C.ispage?function(){return{w:Math.max(a.body.scrollWidth,a.documentElement.scrollWidth),h:Math.max(a.body.scrollHeight,a.documentElement.scrollHeight)}}:C.haswrapper?function(){return{w:C.doc[0].offsetWidth,h:C.doc[0].offsetHeight}}:function(){return{w:C.docscroll[0].scrollWidth,h:C.docscroll[0].scrollHeight}},this.onResize=function(t,e){if(!C||!C.win)return!1;var i=C.page.maxh,n=C.page.maxw,s=C.view.h,o=C.view.w;if(C.view={w:C.ispage?C.win.width():C.win[0].clientWidth,h:C.ispage?C.win.height():C.win[0].clientHeight},C.page=e||C.getContentSize(),C.page.maxh=Math.max(0,C.page.h-C.view.h),C.page.maxw=Math.max(0,C.page.w-C.view.w),C.page.maxh==i&&C.page.maxw==n&&C.view.w==o&&C.view.h==s){if(C.ispage)return C;var r=C.win.offset();if(C.lastposition){var a=C.lastposition;if(a.top==r.top&&a.left==r.left)return C}C.lastposition=r}return 0===C.page.maxh?(C.hideRail(),C.scrollvaluemax=0,C.scroll.y=0,C.scrollratio.y=0,C.cursorheight=0,C.setScrollTop(0),C.rail&&(C.rail.scrollable=!1)):(C.page.maxh-=S.railpadding.top+S.railpadding.bottom,C.rail.scrollable=!0),0===C.page.maxw?(C.hideRailHr(),C.scrollvaluemaxw=0,C.scroll.x=0,C.scrollratio.x=0,C.cursorwidth=0,C.setScrollLeft(0),C.railh&&(C.railh.scrollable=!1)):(C.page.maxw-=S.railpadding.left+S.railpadding.right,C.railh&&(C.railh.scrollable=S.horizrailenabled)),C.railslocked=C.locked||0===C.page.maxh&&0===C.page.maxw,C.railslocked?(C.ispage||C.updateScrollBar(C.view),!1):(C.hidden||(C.rail.visibility||C.showRail(),C.railh&&!C.railh.visibility&&C.showRailHr()),C.istextarea&&C.win.css("resize")&&"none"!=C.win.css("resize")&&(C.view.h-=20),C.cursorheight=Math.min(C.view.h,Math.round(C.view.h*(C.view.h/C.page.h))),C.cursorheight=S.cursorfixedheight?S.cursorfixedheight:Math.max(S.cursorminheight,C.cursorheight),C.cursorwidth=Math.min(C.view.w,Math.round(C.view.w*(C.view.w/C.page.w))),C.cursorwidth=S.cursorfixedheight?S.cursorfixedheight:Math.max(S.cursorminheight,C.cursorwidth),C.scrollvaluemax=C.view.h-C.cursorheight-(S.railpadding.top+S.railpadding.bottom),C.hasborderbox||(C.scrollvaluemax-=C.cursor[0].offsetHeight-C.cursor[0].clientHeight),C.railh&&(C.railh.width=C.page.maxh>0?C.view.w-C.rail.width:C.view.w,C.scrollvaluemaxw=C.railh.width-C.cursorwidth-(S.railpadding.left+S.railpadding.right)),C.ispage||C.updateScrollBar(C.view),C.scrollratio={x:C.page.maxw/C.scrollvaluemaxw,y:C.page.maxh/C.scrollvaluemax},C.getScrollTop()>C.page.maxh?C.doScrollTop(C.page.maxh):(C.scroll.y=C.getScrollTop()/C.scrollratio.y|0,C.scroll.x=C.getScrollLeft()/C.scrollratio.x|0,C.cursoractive&&C.noticeCursor()),C.scroll.y&&0===C.getScrollTop()&&C.doScrollTo(C.scroll.y*C.scrollratio.y|0),C)},this.resize=C.onResize;var I=0;this.onscreenresize=function(t){clearTimeout(I);var e=!C.ispage&&!C.haswrapper;e&&C.hideRails(),I=setTimeout((function(){C&&(e&&C.showRails(),C.resize()),I=0}),120)},this.lazyResize=function(t){return clearTimeout(I),t=isNaN(t)?240:t,I=setTimeout((function(){C&&C.resize(),I=0}),t),C},this.jqbind=function(t,e,i){C.events.push({e:t,n:e,f:i,q:!0}),r(t).on(e,i)},this.mousewheel=function(t,e,i){var n="jquery"in t?t[0]:t;if("onwheel"in a.createElement("div"))C._bind(n,"wheel",e,i||!1);else{var s=void 0!==a.onmousewheel?"mousewheel":"DOMMouseScroll";w(n,s,e,i||!1),"DOMMouseScroll"==s&&w(n,"MozMousePixelScroll",e,i||!1)}};var $=!1;if(O.haseventlistener){try{var N=Object.defineProperty({},"passive",{get:function(){$=!0}});l.addEventListener("test",null,N)}catch(t){}this.stopPropagation=function(t){return!!t&&((t=t.original?t.original:t).stopPropagation(),!1)},this.cancelEvent=function(t){return t.cancelable&&t.preventDefault(),t.stopImmediatePropagation(),t.preventManipulation&&t.preventManipulation(),!1}}else Event.prototype.preventDefault=function(){this.returnValue=!1},Event.prototype.stopPropagation=function(){this.cancelBubble=!0},l.constructor.prototype.addEventListener=a.constructor.prototype.addEventListener=Element.prototype.addEventListener=function(t,e,i){this.attachEvent("on"+t,e)},l.constructor.prototype.removeEventListener=a.constructor.prototype.removeEventListener=Element.prototype.removeEventListener=function(t,e,i){this.detachEvent("on"+t,e)},this.cancelEvent=function(t){return(t=t||l.event)&&(t.cancelBubble=!0,t.cancel=!0,t.returnValue=!1),!1},this.stopPropagation=function(t){return(t=t||l.event)&&(t.cancelBubble=!0),!1};this.delegate=function(t,e,i,n,s){var o=u[e]||!1;o||(o={a:[],l:[],f:function(t){for(var e=o.l,i=!1,n=e.length-1;n>=0;n--)if(!1===(i=e[n].call(t.target,t)))return!1;return i}},C.bind(t,e,o.f,n,s),u[e]=o),C.ispage?(o.a=[C.id].concat(o.a),o.l=[i].concat(o.l)):(o.a.push(C.id),o.l.push(i))},this.undelegate=function(t,e,i,n,s){var o=u[e]||!1;if(o&&o.l)for(var r=0,a=o.l.length;r<a;r++)o.a[r]===C.id&&(o.a.splice(r),o.l.splice(r),0===o.a.length&&(C._unbind(t,e,o.l.f),u[e]=null))},this.bind=function(t,e,i,n,s){var o="jquery"in t?t[0]:t;C._bind(o,e,i,n||!1,s||!1)},this._bind=function(t,e,i,n,s){C.events.push({e:t,n:e,f:i,b:n,q:!1}),$&&s?t.addEventListener(e,i,{passive:!1,capture:n}):t.addEventListener(e,i,n||!1)},this._unbind=function(t,e,i,n){u[e]?C.undelegate(t,e,i,n):t.removeEventListener(e,i,n)},this.unbindAll=function(){for(var t=0;t<C.events.length;t++){var e=C.events[t];e.q?e.e.unbind(e.n,e.f):C._unbind(e.e,e.n,e.f,e.b)}},this.showRails=function(){return C.showRail().showRailHr()},this.showRail=function(){return 0===C.page.maxh||!C.ispage&&"none"==C.win.css("display")||(C.rail.visibility=!0,C.rail.css("display","block")),C},this.showRailHr=function(){return C.railh&&(0===C.page.maxw||!C.ispage&&"none"==C.win.css("display")||(C.railh.visibility=!0,C.railh.css("display","block"))),C},this.hideRails=function(){return C.hideRail().hideRailHr()},this.hideRail=function(){return C.rail.visibility=!1,C.rail.css("display","none"),C},this.hideRailHr=function(){return C.railh&&(C.railh.visibility=!1,C.railh.css("display","none")),C},this.show=function(){return C.hidden=!1,C.railslocked=!1,C.showRails()},this.hide=function(){return C.hidden=!0,C.railslocked=!0,C.hideRails()},this.toggle=function(){return C.hidden?C.show():C.hide()},this.remove=function(){for(var t in C.stop(),C.cursortimeout&&clearTimeout(C.cursortimeout),C.delaylist)C.delaylist[t]&&d(C.delaylist[t].h);C.doZoomOut(),C.unbindAll(),O.isie9&&C.win[0].detachEvent("onpropertychange",C.onAttributeChange),!1!==C.observer&&C.observer.disconnect(),!1!==C.observerremover&&C.observerremover.disconnect(),!1!==C.observerbody&&C.observerbody.disconnect(),C.events=null,C.cursor&&C.cursor.remove(),C.cursorh&&C.cursorh.remove(),C.rail&&C.rail.remove(),C.railh&&C.railh.remove(),C.zoom&&C.zoom.remove();for(var e=0;e<C.saved.css.length;e++){var i=C.saved.css[e];i[0].css(i[1],void 0===i[2]?"":i[2])}C.saved=!1,C.me.data("__nicescroll","");var n=r.nicescroll;for(var s in n.each((function(t){if(this&&this.id===C.id){delete n[t];for(var e=++t;e<n.length;e++,t++)n[t]=n[e];--n.length&&delete n[n.length]}})),C)C[s]=null,delete C[s];C=null},this.scrollstart=function(t){return this.onscrollstart=t,C},this.scrollend=function(t){return this.onscrollend=t,C},this.scrollcancel=function(t){return this.onscrollcancel=t,C},this.zoomin=function(t){return this.onzoomin=t,C},this.zoomout=function(t){return this.onzoomout=t,C},this.isScrollable=function(t){var e=t.target?t.target:t;if("OPTION"==e.nodeName)return!0;for(;e&&1==e.nodeType&&e!==this.me[0]&&!/^BODY|HTML/.test(e.nodeName);){var i=r(e),n=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(n))return e.clientHeight!=e.scrollHeight;e=!!e.parentNode&&e.parentNode}return!1},this.getViewport=function(t){for(var e=!(!t||!t.parentNode)&&t.parentNode;e&&1==e.nodeType&&!/^BODY|HTML/.test(e.nodeName);){var i=r(e);if(/fixed|absolute/.test(i.css("position")))return i;var n=i.css("overflowY")||i.css("overflowX")||i.css("overflow")||"";if(/scroll|auto/.test(n)&&e.clientHeight!=e.scrollHeight)return i;if(i.getNiceScroll().length>0)return i;e=!!e.parentNode&&e.parentNode}return!1},this.triggerScrollStart=function(t,e,i,n,s){if(C.onscrollstart){var o={type:"scrollstart",current:{x:t,y:e},request:{x:i,y:n},end:{x:C.newscrollx,y:C.newscrolly},speed:s};C.onscrollstart.call(C,o)}},this.triggerScrollEnd=function(){if(C.onscrollend){var t=C.getScrollLeft(),e=C.getScrollTop(),i={type:"scrollend",current:{x:t,y:e},end:{x:t,y:e}};C.onscrollend.call(C,i)}};var z=0,H=0,j=0,R=1,q=!1;if(this.onmousewheel=function(t){if(C.wheelprevented||C.locked)return!1;if(C.railslocked)return C.debounced("checkunlock",C.resize,250),!1;if(C.rail.drag)return C.cancelEvent(t);if("auto"===S.oneaxismousemode&&0!==t.deltaX&&(S.oneaxismousemode=!1),S.oneaxismousemode&&0===t.deltaX&&!C.rail.scrollable)return!C.railh||!C.railh.scrollable||C.onmousewheelhr(t);var e=m(),i=!1;if(S.preservenativescrolling&&C.checkarea+600<e&&(C.nativescrollingarea=C.isScrollable(t),i=!0),C.checkarea=e,C.nativescrollingarea)return!0;var n=k(t,!1,i);return n&&(C.checkarea=0),n},this.onmousewheelhr=function(t){if(!C.wheelprevented){if(C.railslocked||!C.railh.scrollable)return!0;if(C.rail.drag)return C.cancelEvent(t);var e=m(),i=!1;return S.preservenativescrolling&&C.checkarea+600<e&&(C.nativescrollingarea=C.isScrollable(t),i=!0),C.checkarea=e,!!C.nativescrollingarea||(C.railslocked?C.cancelEvent(t):k(t,!0,i))}},this.stop=function(){return C.cancelScroll(),C.scrollmon&&C.scrollmon.stop(),C.cursorfreezed=!1,C.scroll.y=Math.round(C.getScrollTop()*(1/C.scrollratio.y)),C.noticeCursor(),C},this.getTransitionSpeed=function(t){return 80+t/72*S.scrollspeed|0},S.smoothscroll)if(C.ishwscroll&&O.hastransition&&S.usetransition&&S.smoothscroll){var B="";this.resetTransition=function(){B="",C.doc.css(O.prefixstyle+"transition-duration","0ms")},this.prepareTransition=function(t,e){var i=e?t:C.getTransitionSpeed(t),n=i+"ms";return B!==n&&(B=n,C.doc.css(O.prefixstyle+"transition-duration",n)),i},this.doScrollLeft=function(t,e){var i=C.scrollrunning?C.newscrolly:C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.scrollrunning?C.newscrollx:C.getScrollLeft();C.doScrollPos(i,t,e)},this.cursorupdate={running:!1,start:function(){var t=this;if(!t.running){t.running=!0;var e=function(){t.running&&h(e),C.showCursor(C.getScrollTop(),C.getScrollLeft()),C.notifyScrollEvent(C.win[0])};h(e)}},stop:function(){this.running=!1}},this.doScrollPos=function(t,e,i){var n=C.getScrollTop(),s=C.getScrollLeft();if(((C.newscrolly-n)*(e-n)<0||(C.newscrollx-s)*(t-s)<0)&&C.cancelScroll(),S.bouncescroll?(e<0?e=e/2|0:e>C.page.maxh&&(e=C.page.maxh+(e-C.page.maxh)/2|0),t<0?t=t/2|0:t>C.page.maxw&&(t=C.page.maxw+(t-C.page.maxw)/2|0)):(e<0?e=0:e>C.page.maxh&&(e=C.page.maxh),t<0?t=0:t>C.page.maxw&&(t=C.page.maxw)),C.scrollrunning&&t==C.newscrollx&&e==C.newscrolly)return!1;C.newscrolly=e,C.newscrollx=t;var o=C.getScrollTop(),r=C.getScrollLeft(),a={};a.x=t-r,a.y=e-o;var l=0|Math.sqrt(a.x*a.x+a.y*a.y),c=C.prepareTransition(l);C.scrollrunning||(C.scrollrunning=!0,C.triggerScrollStart(r,o,t,e,c),C.cursorupdate.start()),C.scrollendtrapped=!0,O.transitionend||(C.scrollendtrapped&&clearTimeout(C.scrollendtrapped),C.scrollendtrapped=setTimeout(C.onScrollTransitionEnd,c)),C.setScrollTop(C.newscrolly),C.setScrollLeft(C.newscrollx)},this.cancelScroll=function(){if(!C.scrollendtrapped)return!0;var t=C.getScrollTop(),e=C.getScrollLeft();return C.scrollrunning=!1,O.transitionend||clearTimeout(O.transitionend),C.scrollendtrapped=!1,C.resetTransition(),C.setScrollTop(t),C.railh&&C.setScrollLeft(e),C.timerscroll&&C.timerscroll.tm&&clearInterval(C.timerscroll.tm),C.timerscroll=!1,C.cursorfreezed=!1,C.cursorupdate.stop(),C.showCursor(t,e),C},this.onScrollTransitionEnd=function(){if(C.scrollendtrapped){var t=C.getScrollTop(),e=C.getScrollLeft();if(t<0?t=0:t>C.page.maxh&&(t=C.page.maxh),e<0?e=0:e>C.page.maxw&&(e=C.page.maxw),t!=C.newscrolly||e!=C.newscrollx)return C.doScrollPos(e,t,S.snapbackspeed);C.scrollrunning&&C.triggerScrollEnd(),C.scrollrunning=!1,C.scrollendtrapped=!1,C.resetTransition(),C.timerscroll=!1,C.setScrollTop(t),C.railh&&C.setScrollLeft(e),C.cursorupdate.stop(),C.noticeCursor(!1,t,e),C.cursorfreezed=!1}}}else this.doScrollLeft=function(t,e){var i=C.scrollrunning?C.newscrolly:C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.scrollrunning?C.newscrollx:C.getScrollLeft();C.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var n=C.getScrollTop(),s=C.getScrollLeft();((C.newscrolly-n)*(e-n)<0||(C.newscrollx-s)*(t-s)<0)&&C.cancelScroll();var o=!1;if(C.bouncescroll&&C.rail.visibility||(e<0?(e=0,o=!0):e>C.page.maxh&&(e=C.page.maxh,o=!0)),C.bouncescroll&&C.railh.visibility||(t<0?(t=0,o=!0):t>C.page.maxw&&(t=C.page.maxw,o=!0)),C.scrollrunning&&C.newscrolly===e&&C.newscrollx===t)return!0;C.newscrolly=e,C.newscrollx=t,C.dst={},C.dst.x=t-s,C.dst.y=e-n,C.dst.px=s,C.dst.py=n;var r=0|Math.sqrt(C.dst.x*C.dst.x+C.dst.y*C.dst.y),a=C.getTransitionSpeed(r);C.bzscroll={};var l=o?1:.58;C.bzscroll.x=new L(s,C.newscrollx,a,0,0,l,1),C.bzscroll.y=new L(n,C.newscrolly,a,0,0,l,1),m();var c=function(){if(C.scrollrunning){var t=C.bzscroll.y.getPos();C.setScrollLeft(C.bzscroll.x.getNow()),C.setScrollTop(C.bzscroll.y.getNow()),t<=1?C.timer=h(c):(C.scrollrunning=!1,C.timer=0,C.triggerScrollEnd())}};C.scrollrunning||(C.triggerScrollStart(s,n,t,e,a),C.scrollrunning=!0,C.timer=h(c))},this.cancelScroll=function(){return C.timer&&d(C.timer),C.timer=0,C.bzscroll=!1,C.scrollrunning=!1,C};else this.doScrollLeft=function(t,e){var i=C.getScrollTop();C.doScrollPos(t,i,e)},this.doScrollTop=function(t,e){var i=C.getScrollLeft();C.doScrollPos(i,t,e)},this.doScrollPos=function(t,e,i){var n=t>C.page.maxw?C.page.maxw:t;n<0&&(n=0);var s=e>C.page.maxh?C.page.maxh:e;s<0&&(s=0),C.synched("scroll",(function(){C.setScrollTop(s),C.setScrollLeft(n)}))},this.cancelScroll=function(){};this.doScrollBy=function(t,e){x(0,t)},this.doScrollLeftBy=function(t,e){x(t,0)},this.doScrollTo=function(t,e){var i=e?Math.round(t*C.scrollratio.y):t;i<0?i=0:i>C.page.maxh&&(i=C.page.maxh),C.cursorfreezed=!1,C.doScrollTop(t)},this.checkContentSize=function(){var t=C.getContentSize();t.h==C.page.h&&t.w==C.page.w||C.resize(!1,t)},C.onscroll=function(t){C.rail.drag||C.cursorfreezed||C.synched("scroll",(function(){C.scroll.y=Math.round(C.getScrollTop()/C.scrollratio.y),C.railh&&(C.scroll.x=Math.round(C.getScrollLeft()/C.scrollratio.x)),C.noticeCursor()}))},C.bind(C.docscroll,"scroll",C.onscroll),this.doZoomIn=function(t){if(!C.zoomactive){C.zoomactive=!0,C.zoomrestore={style:{}};var e=["position","top","left","zIndex","backgroundColor","marginTop","marginBottom","marginLeft","marginRight"],i=C.win[0].style;for(var n in e){var s=e[n];C.zoomrestore.style[s]=void 0!==i[s]?i[s]:""}C.zoomrestore.style.width=C.win.css("width"),C.zoomrestore.style.height=C.win.css("height"),C.zoomrestore.padding={w:C.win.outerWidth()-C.win.width(),h:C.win.outerHeight()-C.win.height()},O.isios4&&(C.zoomrestore.scrollTop=c.scrollTop(),c.scrollTop(0)),C.win.css({position:O.isios4?"absolute":"fixed",top:0,left:0,zIndex:o+100,margin:0});var r=C.win.css("backgroundColor");return(""===r||/transparent|rgba\(0, 0, 0, 0\)|rgba\(0,0,0,0\)/.test(r))&&C.win.css("backgroundColor","#fff"),C.rail.css({zIndex:o+101}),C.zoom.css({zIndex:o+102}),C.zoom.css("backgroundPosition","0 -18px"),C.resizeZoom(),C.onzoomin&&C.onzoomin.call(C),C.cancelEvent(t)}},this.doZoomOut=function(t){if(C.zoomactive)return C.zoomactive=!1,C.win.css("margin",""),C.win.css(C.zoomrestore.style),O.isios4&&c.scrollTop(C.zoomrestore.scrollTop),C.rail.css({"z-index":C.zindex}),C.zoom.css({"z-index":C.zindex}),C.zoomrestore=!1,C.zoom.css("backgroundPosition","0 0"),C.onResize(),C.onzoomout&&C.onzoomout.call(C),C.cancelEvent(t)},this.doZoom=function(t){return C.zoomactive?C.doZoomOut(t):C.doZoomIn(t)},this.resizeZoom=function(){if(C.zoomactive){var t=C.getScrollTop();C.win.css({width:c.width()-C.zoomrestore.padding.w+"px",height:c.height()-C.zoomrestore.padding.h+"px"}),C.onResize(),C.setScrollTop(Math.min(C.page.maxh,t))}},this.init(),r.nicescroll.push(this)},_=function(t){var e=this;this.nc=t,this.lastx=0,this.lasty=0,this.speedx=0,this.speedy=0,this.lasttime=0,this.steptime=0,this.snapx=!1,this.snapy=!1,this.demulx=0,this.demuly=0,this.lastscrollx=-1,this.lastscrolly=-1,this.chkx=0,this.chky=0,this.timer=0,this.reset=function(t,i){e.stop(),e.steptime=0,e.lasttime=m(),e.speedx=0,e.speedy=0,e.lastx=t,e.lasty=i,e.lastscrollx=-1,e.lastscrolly=-1},this.update=function(t,i){var n=m();e.steptime=n-e.lasttime,e.lasttime=n;var s=i-e.lasty,o=t-e.lastx,r=e.nc.getScrollTop()+s,a=e.nc.getScrollLeft()+o;e.snapx=a<0||a>e.nc.page.maxw,e.snapy=r<0||r>e.nc.page.maxh,e.speedx=o,e.speedy=s,e.lastx=t,e.lasty=i},this.stop=function(){e.nc.unsynched("domomentum2d"),e.timer&&clearTimeout(e.timer),e.timer=0,e.lastscrollx=-1,e.lastscrolly=-1},this.doSnapy=function(t,i){var n=!1;i<0?(i=0,n=!0):i>e.nc.page.maxh&&(i=e.nc.page.maxh,n=!0),t<0?(t=0,n=!0):t>e.nc.page.maxw&&(t=e.nc.page.maxw,n=!0),n?e.nc.doScrollPos(t,i,e.nc.opt.snapbackspeed):e.nc.triggerScrollEnd()},this.doMomentum=function(t){var i=m(),n=t?i+t:e.lasttime,s=e.nc.getScrollLeft(),o=e.nc.getScrollTop(),r=e.nc.page.maxh,a=e.nc.page.maxw;e.speedx=a>0?Math.min(60,e.speedx):0,e.speedy=r>0?Math.min(60,e.speedy):0;var l=n&&i-n<=60;(o<0||o>r||s<0||s>a)&&(l=!1);var c=!(!e.speedy||!l)&&e.speedy,u=!(!e.speedx||!l)&&e.speedx;if(c||u){var h=Math.max(16,e.steptime);if(h>50){var d=h/50;e.speedx*=d,e.speedy*=d,h=50}e.demulxy=0,e.lastscrollx=e.nc.getScrollLeft(),e.chkx=e.lastscrollx,e.lastscrolly=e.nc.getScrollTop(),e.chky=e.lastscrolly;var p=e.lastscrollx,f=e.lastscrolly,g=function(){var t=m()-i>600?.04:.02;e.speedx&&(p=Math.floor(e.lastscrollx-e.speedx*(1-e.demulxy)),e.lastscrollx=p,(p<0||p>a)&&(t=.1)),e.speedy&&(f=Math.floor(e.lastscrolly-e.speedy*(1-e.demulxy)),e.lastscrolly=f,(f<0||f>r)&&(t=.1)),e.demulxy=Math.min(1,e.demulxy+t),e.nc.synched("domomentum2d",(function(){e.speedx&&(e.nc.getScrollLeft(),e.chkx=p,e.nc.setScrollLeft(p)),e.speedy&&(e.nc.getScrollTop(),e.chky=f,e.nc.setScrollTop(f)),e.timer||(e.nc.hideCursor(),e.doSnapy(p,f))})),e.demulxy<1?e.timer=setTimeout(g,h):(e.stop(),e.nc.hideCursor(),e.doSnapy(p,f))};g()}else e.doSnapy(e.nc.getScrollLeft(),e.nc.getScrollTop())}},w=t.fn.scrollTop;t.cssHooks.pageYOffset={get:function(t,e,i){var n=r.data(t,"__nicescroll")||!1;return n&&n.ishwscroll?n.getScrollTop():w.call(t)},set:function(t,e){var i=r.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollTop(parseInt(e)):w.call(t,e),this}},t.fn.scrollTop=function(t){if(void 0===t){var e=!!this[0]&&(r.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollTop():w.call(this)}return this.each((function(){var e=r.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollTop(parseInt(t)):w.call(r(this),t)}))};var x=t.fn.scrollLeft;r.cssHooks.pageXOffset={get:function(t,e,i){var n=r.data(t,"__nicescroll")||!1;return n&&n.ishwscroll?n.getScrollLeft():x.call(t)},set:function(t,e){var i=r.data(t,"__nicescroll")||!1;return i&&i.ishwscroll?i.setScrollLeft(parseInt(e)):x.call(t,e),this}},t.fn.scrollLeft=function(t){if(void 0===t){var e=!!this[0]&&(r.data(this[0],"__nicescroll")||!1);return e&&e.ishwscroll?e.getScrollLeft():x.call(this)}return this.each((function(){var e=r.data(this,"__nicescroll")||!1;e&&e.ishwscroll?e.setScrollLeft(parseInt(t)):x.call(r(this),t)}))};var k=function(t){var e=this;if(this.length=0,this.name="nicescrollarray",this.each=function(t){return r.each(e,t),e},this.push=function(t){e[e.length]=t,e.length++},this.eq=function(t){return e[t]},t)for(var i=0;i<t.length;i++){var n=r.data(t[i],"__nicescroll")||!1;n&&(this[this.length]=n,this.length++)}return this};!function(t,e,i){for(var n=0,s=e.length;n<s;n++)i(t,e[n])}(k.prototype,["show","hide","toggle","onResize","resize","remove","stop","doScrollPos"],(function(t,e){t[e]=function(){var t=arguments;return this.each((function(){this[e].apply(this,t)}))}})),t.fn.getNiceScroll=function(t){return void 0===t?new k(this):this[t]&&r.data(this[t],"__nicescroll")||!1},(t.expr.pseudos||t.expr[":"]).nicescroll=function(t){return void 0!==r.data(t,"__nicescroll")},r.fn.niceScroll=function(t,e){void 0!==e||"object"!=typeof t||"jquery"in t||(e=t,t=!1);var i=new k;return this.each((function(){var n=r(this),s=r.extend({},e);if(t){var o=r(t);s.doc=o.length>1?r(t,n):o,s.win=n}!("doc"in s)||"win"in s||(s.win=n);var a=n.data("__nicescroll")||!1;a||(s.doc=s.doc||n,a=new b(s,n),n.data("__nicescroll",a)),i.push(a)})),1===i.length?i[0]:i},l.NiceScroll={getjQuery:function(){return t}},r.nicescroll||(r.nicescroll=new k,r.nicescroll.options=g)})),function(t,e,i,n){function s(e,i){this.settings=null,this.options=t.extend({},s.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy((function(e,i){this._handlers[i]=t.proxy(this[i],this)}),this)),t.each(s.Plugins,t.proxy((function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)}),this)),t.each(s.Workers,t.proxy((function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})}),this)),this.setup(),this.initialize()}s.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},s.Width={Default:"default",Inner:"inner",Outer:"outer"},s.Type={Event:"event",State:"state"},s.Plugins={},s.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=!this.settings.autoWidth,n=this.settings.rtl,s={width:"auto","margin-left":n?e:"","margin-right":n?"":e};!i&&this.$stage.children().css(s),t.css=s}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,s=!this.settings.autoWidth,o=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,o[n]=s?e*i:this._items[n].width();this._widths=o}},{filter:["items","settings"],run:function(){var e=[],i=this._items,n=this.settings,s=Math.max(2*n.items,4),o=2*Math.ceil(i.length/2),r=n.loop&&i.length?n.rewind?s:Math.max(s,o):0,a="",l="";for(r/=2;r>0;)e.push(this.normalize(e.length/2,!0)),a+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l,r-=1;this._clones=e,t(a).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,s=0,o=[];++i<e;)n=o[i-1]||0,s=this._widths[this.relative(i)]+this.settings.margin,o.push(n+s*t);this._coordinates=o}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,s=this.settings.rtl?1:-1,o=2*this.settings.stagePadding,r=this.coordinates(this.current())+o,a=r+this.width()*s,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+o*s,(this.op(t,"<=",r)&&this.op(t,">",a)||this.op(e,"<",r)&&this.op(e,">",a))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],s.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},s.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},s.prototype.initialize=function(){var t,e,i;(this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading"))&&(t=this.$element.find("img"),e=this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n,i=this.$element.children(e).width(),t.length&&i<=0&&this.preloadAutoWidthImages(t));this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},s.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},s.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,s=null;i?(t.each(i,(function(t){t<=e&&t>n&&(n=Number(t))})),"function"==typeof(s=t.extend({},this.options,i[n])).stagePadding&&(s.stagePadding=s.stagePadding()),delete s.responsive,s.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):s=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:s}}),this._breakpoint=n,this.settings=s,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},s.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},s.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},s.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy((function(t){return this[t]}),this._invalidated),s={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(s),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},s.prototype.width=function(t){switch(t=t||s.Width.Default){case s.Width.Inner:case s.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},s.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},s.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},s.prototype.onResize=function(){return!!this._items.length&&(this._width!==this.$element.width()&&(!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))))},s.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},s.prototype.onDragStart=function(e){var n=null;3!==e.which&&(t.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},s.prototype.onDragMove=function(t){var e=null,i=null,n=null,s=this.difference(this._drag.pointer,this.pointer(t)),o=this.difference(this._drag.stage.start,s);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,o.x=((o.x-e)%i+i)%i+e):(e=this.settings.rtl?this.coordinates(this.maximum()):this.coordinates(this.minimum()),i=this.settings.rtl?this.coordinates(this.minimum()):this.coordinates(this.maximum()),n=this.settings.pullDrag?-1*s.x/5:0,o.x=Math.max(Math.min(o.x,e+n),i+n)),this._drag.stage.current=o,this.animate(o.x))},s.prototype.onDragEnd=function(e){var n=this.difference(this._drag.pointer,this.pointer(e)),s=this._drag.stage.current,o=n.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(s.x,0!==n.x?o:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=o,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},s.prototype.closest=function(e,i){var s=-1,o=this.width(),r=this.coordinates();return this.settings.freeDrag||t.each(r,t.proxy((function(t,a){return"left"===i&&e>a-30&&e<a+30?s=t:"right"===i&&e>a-o-30&&e<a-o+30?s=t+1:this.op(e,"<",a)&&this.op(e,">",r[t+1]!==n?r[t+1]:a-o)&&(s="left"===i?t+1:t),-1===s}),this)),this.settings.loop||(this.op(e,">",r[this.minimum()])?s=e=this.minimum():this.op(e,"<",r[this.maximum()])&&(s=e=this.maximum())),s},s.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},s.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},s.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},s.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},s.prototype.reset=function(t){(t=this.normalize(t))!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},s.prototype.normalize=function(t,e){var i=this._items.length,s=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=n:(t<0||t>=i+s)&&(t=((t-s/2)%i+i)%i+s/2),t},s.prototype.relative=function(t){return t-=this._clones.length/2,this.normalize(t,!0)},s.prototype.maximum=function(t){var e,i,n,s=this.settings,o=this._coordinates.length;if(s.loop)o=this._clones.length/2+this._items.length-1;else if(s.autoWidth||s.merge){if(e=this._items.length)for(i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););o=e+1}else o=s.center?this._items.length-1:this._items.length-s.items;return t&&(o-=this._clones.length/2),Math.max(o,0)},s.prototype.minimum=function(t){return t?0:this._clones.length/2},s.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},s.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},s.prototype.clones=function(e){var i=this._clones.length/2,s=i+this._items.length,o=function(t){return t%2==0?s+t/2:i-(t+1)/2};return e===n?t.map(this._clones,(function(t,e){return o(e)})):t.map(this._clones,(function(t,i){return t===e?o(i):null}))},s.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},s.prototype.coordinates=function(e){var i,s=1,o=e-1;return e===n?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(s=-1,o=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[o]||0))/2*s):i=this._coordinates[o]||0,i=Math.ceil(i))},s.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},s.prototype.to=function(t,e){var i=this.current(),n=null,s=t-this.relative(i),o=(s>0)-(s<0),r=this._items.length,a=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(s)>r/2&&(s+=-1*o*r),(n=(((t=i+s)-a)%r+r)%r+a)!==t&&n-s<=l&&n-s>0&&(i=n-s,t=n,this.reset(i))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(a,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},s.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},s.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},s.prototype.onTransitionEnd=function(t){if(t!==n&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},s.prototype.viewport=function(){var n;return this.options.responsiveBaseElement!==e?n=t(this.options.responsiveBaseElement).width():e.innerWidth?n=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?n=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},s.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},s.prototype.add=function(e,i){var s=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[s]&&this.reset(this._items[s].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},s.prototype.remove=function(t){(t=this.normalize(t,!0))!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},s.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy((function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))}),this))},s.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},s.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},s.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},s.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},s.prototype.trigger=function(e,i,n,o,r){var a={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,n],(function(t){return t})).join("-").toLowerCase()),c=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},a,i));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(c)})),this.register({type:s.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},s.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]===n&&(this._states.current[e]=0),this._states.current[e]++}),this))},s.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},s.prototype.register=function(e){if(e.type===s.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===s.Type.State&&(this._states.tags[e.name]?this._states.tags[e.name]=this._states.tags[e.name].concat(e.tags):this._states.tags[e.name]=e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(i,n){return t.inArray(i,this._states.tags[e.name])===n}),this)))},s.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},s.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},s.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},s.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},s.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=t(this),o=n.data("owl.carousel");o||(o=new s(this,"object"==typeof e&&e),n.data("owl.carousel",o),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,i){o.register({type:s.Type.Event,name:i}),o.$element.on(i+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),o[i].apply(this,[].slice.call(arguments,1)),this.release([i]))}),o))}))),"string"==typeof e&&"_"!==e.charAt(0)&&o[e].apply(o,i)}))},t.fn.owlCarousel.Constructor=s}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={autoRefresh:!0,autoRefreshInterval:500},i.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},i.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},i.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,s=i.center&&-1*n||0,o=(e.property&&undefined!==e.property.value?e.property.value:this._core.current())+s,r=this._core.clones().length,a=t.proxy((function(t,e){this.load(e)}),this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(o-=i.lazyLoadEager,n++));s++<n;)this.load(r/2+this._core.relative(o)),r&&t.each(this._core.clones(this._core.relative(o)),a),o++}}),this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers)};i.Defaults={lazyLoad:!1,lazyLoadEager:0},i.prototype.load=function(i){var n=this._core.$stage.children().eq(i),s=n&&n.find(".owl-lazy");!s||t.inArray(n.get(0),this._loaded)>-1||(s.each(t.proxy((function(i,n){var s,o=t(n),r=e.devicePixelRatio>1&&o.attr("data-src-retina")||o.attr("data-src")||o.attr("data-srcset");this._core.trigger("load",{element:o,url:r},"lazy"),o.is("img")?o.one("load.owl.lazy",t.proxy((function(){o.css("opacity",1),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("src",r):o.is("source")?o.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:o,url:r},"lazy")}),this)).attr("srcset",r):((s=new Image).onload=t.proxy((function(){o.css({"background-image":'url("'+r+'")',opacity:"1"}),this._core.trigger("loaded",{element:o,url:r},"lazy")}),this),s.src=r)}),this)),this._loaded.push(n.get(0)))},i.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=i}(window.Zepto||window.jQuery,window,document),function(t,e){var i=function(n){this._core=n,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},i.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var s=this;t(e).on("load",(function(){s._core.settings.autoHeight&&s.update()})),t(e).resize((function(){s._core.settings.autoHeight&&(null!=s._intervalId&&clearTimeout(s._intervalId),s._intervalId=setTimeout((function(){s.update()}),250))}))};i.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},i.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,n=this._core.settings.lazyLoad,s=this._core.$stage.children().toArray().slice(e,i),o=[],r=0;t.each(s,(function(e,i){o.push(t(i).height())})),(r=Math.max.apply(null,o))<=1&&n&&this._previousHeight&&(r=this._previousHeight),this._previousHeight=r,this._core.$stage.parent().height(r).addClass(this._core.settings.autoHeightClass)},i.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=i}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}}),this)},this._core.options=t.extend({},n.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};n.Defaults={video:!1,videoHeight:!1,videoWidth:!1},n.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),s=t.attr("data-width")||this._core.settings.videoWidth,o=t.attr("data-height")||this._core.settings.videoHeight,r=t.attr("href");if(!r)throw new Error("Missing video URL.");if((n=r.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}n=n[6],this._videos[r]={type:i,id:n,width:s,height:o},e.attr("data-video",r),this.thumbnail(t,this._videos[r])},n.prototype.thumbnail=function(e,i){var n,s,o=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",r=e.find("img"),a="src",l="",c=this._core.settings,u=function(i){n=c.lazyLoad?t("<div/>",{class:"owl-video-tn "+l,srcType:i}):t("<div/>",{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(n),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:o})),this._core.settings.lazyLoad&&(a="data-src",l="owl-lazy"),r.length)return u(r.attr(a)),r.remove(),!1;"youtube"===i.type?(s="//img.youtube.com/vi/"+i.id+"/hqdefault.jpg",u(s)):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t[0].thumbnail_large,u(s)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){s=t.framegrab_url,u(s)}})},n.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},n.prototype.play=function(e){var i,n=t(e.target).closest("."+this._core.settings.itemClass),s=this._videos[n.attr("data-video")],o=s.width||"100%",r=s.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",r),i.attr("width",o),"youtube"===s.type?i.attr("src","//www.youtube.com/embed/"+s.id+"?autoplay=1&rel=0&v="+s.id):"vimeo"===s.type?i.attr("src","//player.vimeo.com/video/"+s.id+"?autoplay=1"):"vzaar"===s.type&&i.attr("src","//view.vzaar.com/"+s.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},n.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},n.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=n}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var s=function(e){this.core=e,this.core.options=t.extend({},s.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};s.Defaults={animateOut:!1,animateIn:!1},s.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),s=this.core.$stage.children().eq(this.next),o=this.core.settings.animateIn,r=this.core.settings.animateOut;this.core.current()!==this.previous&&(r&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(r)),o&&s.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(o))}},s.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},s.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=s}(window.Zepto||window.jQuery,window,document),function(t,e,i){var n=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,i){t.namespace&&this.play(e,i)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},n.Defaults,this._core.options)};n.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},n.prototype._next=function(n){this._call=e.setTimeout(t.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},n.prototype.read=function(){return(new Date).getTime()-this._time},n.prototype.play=function(i,n){var s;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,s=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-s,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,n),i-s)},n.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},n.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},n.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=n}(window.Zepto||window.jQuery,window,document),function(t){"use strict";var e=function(i){this._core=i,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},e.Defaults,this._core.options),this.$element.on(this._handlers)};e.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},e.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(i.navSpeed)}),this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(i.navSpeed)}),this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy((function(e){var n=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)}),this)),this._overrides)this._core[e]=t.proxy(this[e],this)},e.prototype.destroy=function(){var t,e,i,n,s;for(t in s=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&s.navContainer?this._controls[e].html(""):this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},e.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,s=this._core.maximum(!0),o=this._core.settings,r=o.center||o.autoWidth||o.dotsData?1:o.dotsEach||o.items;if("page"!==o.slideBy&&(o.slideBy=Math.min(o.slideBy,o.items)),o.dots||"page"==o.slideBy)for(this._pages=[],t=i,e=0,0;t<n;t++){if(e>=r||0===e){if(this._pages.push({start:Math.min(s,t-i),end:t-i+r-1}),Math.min(s,t-i)===s)break;e=0}e+=this._core.mergers(this._core.relative(t))}},e.prototype.draw=function(){var e,i=this._core.settings,n=this._core.items().length<=i.items,s=this._core.relative(this._core.current()),o=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!o&&s<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!o&&s>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},e.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},e.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy((function(t,i){return t.start<=e&&t.end>=e}),this)).pop()},e.prototype.getPosition=function(e){var i,n,s=this._core.settings;return"page"==s.slideBy?(i=t.inArray(this.current(),this._pages),n=this._pages.length,e?++i:--i,i=this._pages[(i%n+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=s.slideBy:i-=s.slideBy),i},e.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},e.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},e.prototype.to=function(e,i,n){var s;!n&&this._pages.length?(s=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%s+s)%s].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=e}(window.Zepto||window.jQuery,window,document),function(t,e){"use strict";var i=function(n){this._core=n,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy((function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}}),this),"changed.owl.carousel":t.proxy((function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),s=t.map(this._hashes,(function(t,e){return t===n?e:null})).join();if(!s||e.location.hash.slice(1)===s)return;e.location.hash=s}}),this)},this._core.options=t.extend({},i.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy((function(t){var i=e.location.hash.substring(1),n=this._core.$stage.children(),s=this._hashes[i]&&n.index(this._hashes[i]);undefined!==s&&s!==this._core.current()&&this._core.to(this._core.relative(s),!1,!0)}),this))};i.Defaults={URLhashListener:!1},i.prototype.destroy=function(){var i,n;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=i}(window.Zepto||window.jQuery,window,document),function(t){var e=t("<support>").get(0).style,i="Webkit Moz O ms".split(" "),n={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}},s=function(){return!!a("transform")},o=function(){return!!a("perspective")},r=function(){return!!a("animation")};function a(n,s){var o=!1,r=n.charAt(0).toUpperCase()+n.slice(1);return t.each((n+" "+i.join(r+" ")+r).split(" "),(function(t,i){if(undefined!==e[i])return o=!s||i,!1})),o}function l(t){return a(t,!0)}(function(){return!!a("transition")})()&&(t.support.transition=new String(l("transition")),t.support.transition.end=n.transition.end[t.support.transition]),r()&&(t.support.animation=new String(l("animation")),t.support.animation.end=n.animation.end[t.support.animation]),s()&&(t.support.transform=new String(l("transform")),t.support.transform3d=o())}(window.Zepto||window.jQuery,window,document),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).PNotify={})}(this,(function(t){"use strict";function e(t){return(e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function n(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function s(t,e,i){return e&&n(t.prototype,e),i&&n(t,i),t}function o(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function r(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function a(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?r(Object(i),!0).forEach((function(e){o(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):r(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function l(t){return(l=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)})(t)}function c(t,e){return(c=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function u(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function h(t,e,i){return(h=u()?Reflect.construct:function(t,e,i){var n=[null];n.push.apply(n,e);var s=new(Function.bind.apply(t,n));return i&&c(s,i.prototype),s}).apply(null,arguments)}function d(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function p(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var i=[],n=!0,s=!1,o=void 0;try{for(var r,a=t[Symbol.iterator]();!(n=(r=a.next()).done)&&(i.push(r.value),!e||i.length!==e);n=!0);}catch(t){s=!0,o=t}finally{try{n||null==a.return||a.return()}finally{if(s)throw o}}return i}}(t,e)||m(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(t){return function(t){if(Array.isArray(t))return g(t)}(t)||function(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}(t)||m(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m(t,e){if(t){if("string"==typeof t)return g(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?g(t,e):void 0}}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}function v(){}function y(t,e){for(var i in e)t[i]=e[i];return t}function b(t){return t()}function _(){return Object.create(null)}function w(t){t.forEach(b)}function x(t){return"function"==typeof t}function k(t,i){return t!=t?i==i:t!==i||t&&"object"===e(t)||"function"==typeof t}function C(t,e){t.appendChild(e)}function T(t,e,i){t.insertBefore(e,i||null)}function S(t){t.parentNode.removeChild(t)}function E(t){return document.createElement(t)}function D(t){return document.createTextNode(t)}function A(){return D(" ")}function O(){return D("")}function L(t,e,i,n){return t.addEventListener(e,i,n),function(){return t.removeEventListener(e,i,n)}}function P(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function M(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}var I,$=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;i(this,t),this.a=e,this.e=this.n=null}return s(t,[{key:"m",value:function(t,e){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;this.e||(this.e=E(e.nodeName),this.t=e,this.h(t)),this.i(i)}},{key:"h",value:function(t){this.e.innerHTML=t,this.n=Array.from(this.e.childNodes)}},{key:"i",value:function(t){for(var e=0;e<this.n.length;e+=1)T(this.t,this.n[e],t)}},{key:"p",value:function(t){this.d(),this.h(t),this.i(this.a)}},{key:"d",value:function(){this.n.forEach(S)}}]),t}();function N(t){I=t}function z(){if(!I)throw new Error("Function called outside component initialization");return I}var H=[],j=[],R=[],q=[],B=Promise.resolve(),W=!1;function F(){W||(W=!0,B.then(X))}function U(){return F(),B}function Y(t){R.push(t)}var V=!1,K=new Set;function X(){if(!V){V=!0;do{for(var t=0;t<H.length;t+=1){var e=H[t];N(e),G(e.$$)}for(N(null),H.length=0;j.length;)j.pop()();for(var i=0;i<R.length;i+=1){var n=R[i];K.has(n)||(K.add(n),n())}R.length=0}while(H.length);for(;q.length;)q.pop()();W=!1,V=!1,K.clear()}}function G(t){if(null!==t.fragment){t.update(),w(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(Y)}}var Z,Q=new Set;function J(){Z={r:0,c:[],p:Z}}function tt(){Z.r||w(Z.c),Z=Z.p}function et(t,e){t&&t.i&&(Q.delete(t),t.i(e))}function it(t,e,i,n){if(t&&t.o){if(Q.has(t))return;Q.add(t),Z.c.push((function(){Q.delete(t),n&&(i&&t.d(1),n())})),t.o(e)}}var nt="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function st(t,e){it(t,1,1,(function(){e.delete(t.key)}))}function ot(t,e,i,n,s,o,r,a,l,c,u,h){for(var d=t.length,p=o.length,f=d,m={};f--;)m[t[f].key]=f;var g=[],v=new Map,y=new Map;for(f=p;f--;){var b=h(s,o,f),_=i(b),w=r.get(_);w?n&&w.p(b,e):(w=c(_,b)).c(),v.set(_,g[f]=w),_ in m&&y.set(_,Math.abs(f-m[_]))}var x=new Set,k=new Set;function C(t){et(t,1),t.m(a,u),r.set(t.key,t),u=t.first,p--}for(;d&&p;){var T=g[p-1],S=t[d-1],E=T.key,D=S.key;T===S?(u=T.first,d--,p--):v.has(D)?!r.has(E)||x.has(E)?C(T):k.has(D)?d--:y.get(E)>y.get(D)?(k.add(E),C(T)):(x.add(D),d--):(l(S,r),d--)}for(;d--;){var A=t[d];v.has(A.key)||l(A,r)}for(;p;)C(g[p-1]);return g}function rt(t,e){for(var i={},n={},s={$$scope:1},o=t.length;o--;){var r=t[o],a=e[o];if(a){for(var l in r)l in a||(n[l]=1);for(var c in a)s[c]||(i[c]=a[c],s[c]=1);t[o]=a}else for(var u in r)s[u]=1}for(var h in n)h in i||(i[h]=void 0);return i}function at(t){return"object"===e(t)&&null!==t?t:{}}function lt(t){t&&t.c()}function ct(t,e,i){var n=t.$$,s=n.fragment,o=n.on_mount,r=n.on_destroy,a=n.after_update;s&&s.m(e,i),Y((function(){var e=o.map(b).filter(x);r?r.push.apply(r,f(e)):w(e),t.$$.on_mount=[]})),a.forEach(Y)}function ut(t,e){var i=t.$$;null!==i.fragment&&(w(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])}var ht=function(){function t(){i(this,t)}return s(t,[{key:"$destroy",value:function(){ut(this,1),this.$destroy=v}},{key:"$on",value:function(t,e){var i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),function(){var t=i.indexOf(e);-1!==t&&i.splice(t,1)}}},{key:"$set",value:function(t){var e;this.$$set&&(e=t,0!==Object.keys(e).length)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}]),t}(),dt=function(){function t(e){if(i(this,t),Object.assign(this,{dir1:null,dir2:null,firstpos1:null,firstpos2:null,spacing1:25,spacing2:25,push:"bottom",maxOpen:1,maxStrategy:"wait",maxClosureCausesWait:!0,modal:"ish",modalishFlash:!0,overlayClose:!0,overlayClosesPinned:!1,positioned:!0,context:window&&document.body||null},e),"ish"===this.modal&&1!==this.maxOpen)throw new Error("A modalish stack must have a maxOpen value of 1.");if("ish"===this.modal&&!this.dir1)throw new Error("A modalish stack must have a direction.");if("top"===this.push&&"ish"===this.modal&&"close"!==this.maxStrategy)throw new Error("A modalish stack that pushes to the top must use the close maxStrategy.");this._noticeHead={notice:null,prev:null,next:null},this._noticeTail={notice:null,prev:this._noticeHead,next:null},this._noticeHead.next=this._noticeTail,this._noticeMap=new WeakMap,this._length=0,this._addpos2=0,this._animation=!0,this._posTimer=null,this._openNotices=0,this._listener=null,this._overlayOpen=!1,this._overlayInserted=!1,this._collapsingModalState=!1,this._leader=null,this._leaderOff=null,this._masking=null,this._maskingOff=null,this._swapping=!1,this._callbacks={}}return s(t,[{key:"forEach",value:function(t){var e,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=i.start,s=void 0===n?"oldest":n,o=i.dir,r=void 0===o?"newer":o,a=i.skipModuleHandled,l=void 0!==a&&a;if("head"===s||"newest"===s&&"top"===this.push||"oldest"===s&&"bottom"===this.push)e=this._noticeHead.next;else if("tail"===s||"newest"===s&&"bottom"===this.push||"oldest"===s&&"top"===this.push)e=this._noticeTail.prev;else{if(!this._noticeMap.has(s))throw new Error("Invalid start param.");e=this._noticeMap.get(s)}for(;e.notice;){var c=e.notice;if("prev"===r||"top"===this.push&&"newer"===r||"bottom"===this.push&&"older"===r)e=e.prev;else{if(!("next"===r||"top"===this.push&&"older"===r||"bottom"===this.push&&"newer"===r))throw new Error("Invalid dir param.");e=e.next}if(!(l&&c.getModuleHandled()||!1!==t(c)))break}}},{key:"close",value:function(t){this.forEach((function(e){return e.close(t,!1,!1)}))}},{key:"open",value:function(t){this.forEach((function(e){return e.open(t)}))}},{key:"openLast",value:function(){this.forEach((function(t){if(-1===["opening","open","waiting"].indexOf(t.getState()))return t.open(),!1}),{start:"newest",dir:"older"})}},{key:"swap",value:function(t,e){var i=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],s=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return-1===["open","opening","closing"].indexOf(t.getState())?Promise.reject():(this._swapping=e,t.close(n,!1,s).then((function(){return e.open(n)})).finally((function(){i._swapping=!1})))}},{key:"on",value:function(t,e){var i=this;return t in this._callbacks||(this._callbacks[t]=[]),this._callbacks[t].push(e),function(){i._callbacks[t].splice(i._callbacks[t].indexOf(e),1)}}},{key:"fire",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.stack=this,t in this._callbacks&&this._callbacks[t].forEach((function(t){return t(e)}))}},{key:"position",value:function(){var t=this;this.positioned&&this._length>0?(this.fire("beforePosition"),this._resetPositionData(),this.forEach((function(e){t._positionNotice(e)}),{start:"head",dir:"next",skipModuleHandled:!0}),this.fire("afterPosition")):(delete this._nextpos1,delete this._nextpos2)}},{key:"queuePosition",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10;this._posTimer&&clearTimeout(this._posTimer),this._posTimer=setTimeout((function(){return t.position()}),e)}},{key:"_resetPositionData",value:function(){this._nextpos1=this.firstpos1,this._nextpos2=this.firstpos2,this._addpos2=0}},{key:"_positionNotice",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:t===this._masking;if(this.positioned){var i=t.refs.elem;if(i&&(i.classList.contains("pnotify-in")||i.classList.contains("pnotify-initial")||e)){var n=[this.firstpos1,this.firstpos2,this._nextpos1,this._nextpos2,this._addpos2],s=n[0],o=n[1],r=n[2],a=n[3],l=n[4];i.getBoundingClientRect(),!this._animation||e||this._collapsingModalState?t._setMoveClass(""):t._setMoveClass("pnotify-move");var c,u=this.context===document.body?window.innerHeight:this.context.scrollHeight,h=this.context===document.body?window.innerWidth:this.context.scrollWidth;if(this.dir1){var d;switch(c={down:"top",up:"bottom",left:"right",right:"left"}[this.dir1],this.dir1){case"down":d=i.offsetTop;break;case"up":d=u-i.scrollHeight-i.offsetTop;break;case"left":d=h-i.scrollWidth-i.offsetLeft;break;case"right":d=i.offsetLeft}null==s&&(r=s=d)}if(this.dir1&&this.dir2){var p,f={down:"top",up:"bottom",left:"right",right:"left"}[this.dir2];switch(this.dir2){case"down":p=i.offsetTop;break;case"up":p=u-i.scrollHeight-i.offsetTop;break;case"left":p=h-i.scrollWidth-i.offsetLeft;break;case"right":p=i.offsetLeft}if(null==o&&(a=o=p),!e){var m=r+i.offsetHeight+this.spacing1,g=r+i.offsetWidth+this.spacing1;(("down"===this.dir1||"up"===this.dir1)&&m>u||("left"===this.dir1||"right"===this.dir1)&&g>h)&&(r=s,a+=l+this.spacing2,l=0)}switch(null!=a&&(i.style[f]="".concat(a,"px"),this._animation||i.style[f]),this.dir2){case"down":case"up":i.offsetHeight+(parseFloat(i.style.marginTop,10)||0)+(parseFloat(i.style.marginBottom,10)||0)>l&&(l=i.offsetHeight);break;case"left":case"right":i.offsetWidth+(parseFloat(i.style.marginLeft,10)||0)+(parseFloat(i.style.marginRight,10)||0)>l&&(l=i.offsetWidth)}}else if(this.dir1){var v,y;switch(this.dir1){case"down":case"up":y=["left","right"],v=this.context.scrollWidth/2-i.offsetWidth/2;break;case"left":case"right":y=["top","bottom"],v=u/2-i.offsetHeight/2}i.style[y[0]]="".concat(v,"px"),i.style[y[1]]="auto",this._animation||i.style[y[0]]}if(this.dir1)switch(null!=r&&(i.style[c]="".concat(r,"px"),this._animation||i.style[c]),this.dir1){case"down":case"up":r+=i.offsetHeight+this.spacing1;break;case"left":case"right":r+=i.offsetWidth+this.spacing1}else{var b=h/2-i.offsetWidth/2,_=u/2-i.offsetHeight/2;i.style.left="".concat(b,"px"),i.style.top="".concat(_,"px"),this._animation||i.style.left}e||(this.firstpos1=s,this.firstpos2=o,this._nextpos1=r,this._nextpos2=a,this._addpos2=l)}}}},{key:"_addNotice",value:function(t){var e=this;this.fire("beforeAddNotice",{notice:t});var i=function(){if(e.fire("beforeOpenNotice",{notice:t}),t.getModuleHandled())e.fire("afterOpenNotice",{notice:t});else{if(e._openNotices++,("ish"!==e.modal||!e._overlayOpen)&&e.maxOpen!==1/0&&e._openNotices>e.maxOpen&&"close"===e.maxStrategy){var i=e._openNotices-e.maxOpen;e.forEach((function(t){if(-1!==["opening","open"].indexOf(t.getState()))return t.close(!1,!1,e.maxClosureCausesWait),t===e._leader&&e._setLeader(null),!! --i}))}!0===e.modal&&e._insertOverlay(),"ish"!==e.modal||e._leader&&-1!==["opening","open","closing"].indexOf(e._leader.getState())||e._setLeader(t),"ish"===e.modal&&e._overlayOpen&&t._preventTimerClose(!0),e.fire("afterOpenNotice",{notice:t})}},n={notice:t,prev:null,next:null,beforeOpenOff:t.on("pnotify:beforeOpen",i),afterCloseOff:t.on("pnotify:afterClose",(function(){if(e.fire("beforeCloseNotice",{notice:t}),t.getModuleHandled())e.fire("afterCloseNotice",{notice:t});else{if(e._openNotices--,"ish"===e.modal&&t===e._leader&&(e._setLeader(null),e._masking&&e._setMasking(null)),!e._swapping&&e.maxOpen!==1/0&&e._openNotices<e.maxOpen){var i=!1,n=function(n){if(n!==t&&"waiting"===n.getState()&&(n.open().catch((function(){})),e._openNotices>=e.maxOpen))return i=!0,!1};"wait"===e.maxStrategy?(e.forEach(n,{start:t,dir:"next"}),i||e.forEach(n,{start:t,dir:"prev"})):"close"===e.maxStrategy&&e.maxClosureCausesWait&&(e.forEach(n,{start:t,dir:"older"}),i||e.forEach(n,{start:t,dir:"newer"}))}e._openNotices<=0?(e._openNotices=0,e._resetPositionData(),e._overlayOpen&&!e._swapping&&e._removeOverlay()):e._collapsingModalState||e.queuePosition(0),e.fire("afterCloseNotice",{notice:t})}}))};if("top"===this.push?(n.next=this._noticeHead.next,n.prev=this._noticeHead,n.next.prev=n,n.prev.next=n):(n.prev=this._noticeTail.prev,n.next=this._noticeTail,n.prev.next=n,n.next.prev=n),this._noticeMap.set(t,n),this._length++,this._listener||(this._listener=function(){return e.position()},this.context.addEventListener("pnotify:position",this._listener)),-1!==["open","opening","closing"].indexOf(t.getState()))i();else if("ish"===this.modal&&this.modalishFlash&&this._shouldNoticeWait(t))var s=t.on("pnotify:mount",(function(){s(),t._setMasking(!0,!1,(function(){t._setMasking(!1)})),e._resetPositionData(),e._positionNotice(e._leader),window.requestAnimationFrame((function(){e._positionNotice(t,!0)}))}));this.fire("afterAddNotice",{notice:t})}},{key:"_removeNotice",value:function(t){if(this._noticeMap.has(t)){this.fire("beforeRemoveNotice",{notice:t});var e=this._noticeMap.get(t);this._leader===t&&this._setLeader(null),this._masking===t&&this._setMasking(null),e.prev.next=e.next,e.next.prev=e.prev,e.prev=null,e.next=null,e.beforeOpenOff(),e.beforeOpenOff=null,e.afterCloseOff(),e.afterCloseOff=null,this._noticeMap.delete(t),this._length--,!this._length&&this._listener&&(this.context.removeEventListener("pnotify:position",this._listener),this._listener=null),!this._length&&this._overlayOpen&&this._removeOverlay(),-1!==["open","opening","closing"].indexOf(t.getState())&&this._handleNoticeClosed(t),this.fire("afterRemoveNotice",{notice:t})}}},{key:"_setLeader",value:function(t){var e=this;if(this.fire("beforeSetLeader",{leader:t}),this._leaderOff&&(this._leaderOff(),this._leaderOff=null),this._leader=t,this._leader){var i,n=function(){var t=null;e._overlayOpen&&(e._collapsingModalState=!0,e.forEach((function(i){i._preventTimerClose(!1),i!==e._leader&&-1!==["opening","open"].indexOf(i.getState())&&(t||(t=i),i.close(i===t,!1,!0))}),{start:e._leader,dir:"next",skipModuleHandled:!0}),e._removeOverlay()),s&&(clearTimeout(s),s=null),e.forEach((function(i){if(i!==e._leader)return"waiting"===i.getState()||i===t?(e._setMasking(i,!!t),!1):void 0}),{start:e._leader,dir:"next",skipModuleHandled:!0})},s=null,o=function(){s&&(clearTimeout(s),s=null),s=setTimeout((function(){s=null,e._setMasking(null)}),750)};this._leaderOff=(i=[this._leader.on("mouseenter",n),this._leader.on("focusin",n),this._leader.on("mouseleave",o),this._leader.on("focusout",o)],function(){return i.map((function(t){return t()}))}),this.fire("afterSetLeader",{leader:t})}else this.fire("afterSetLeader",{leader:t})}},{key:"_setMasking",value:function(t,e){var i=this;if(this._masking){if(this._masking===t)return;this._masking._setMasking(!1,e)}if(this._maskingOff&&(this._maskingOff(),this._maskingOff=null),this._masking=t,this._masking){this._resetPositionData(),this._leader&&this._positionNotice(this._leader),this._masking._setMasking(!0,e),window.requestAnimationFrame((function(){i._masking&&i._positionNotice(i._masking)}));var n,s=function(){"ish"===i.modal&&(i._insertOverlay(),i._setMasking(null,!0),i.forEach((function(t){t._preventTimerClose(!0),"waiting"===t.getState()&&t.open()}),{start:i._leader,dir:"next",skipModuleHandled:!0}))};this._maskingOff=(n=[this._masking.on("mouseenter",s),this._masking.on("focusin",s)],function(){return n.map((function(t){return t()}))})}}},{key:"_shouldNoticeWait",value:function(t){return this._swapping!==t&&!("ish"===this.modal&&this._overlayOpen)&&this.maxOpen!==1/0&&this._openNotices>=this.maxOpen&&"wait"===this.maxStrategy}},{key:"_insertOverlay",value:function(){var t=this;this._overlay||(this._overlay=document.createElement("div"),this._overlay.classList.add("pnotify-modal-overlay"),this.dir1&&this._overlay.classList.add("pnotify-modal-overlay-".concat(this.dir1)),this.overlayClose&&this._overlay.classList.add("pnotify-modal-overlay-closes"),this.context!==document.body&&(this._overlay.style.height="".concat(this.context.scrollHeight,"px"),this._overlay.style.width="".concat(this.context.scrollWidth,"px")),this._overlay.addEventListener("click",(function(e){if(t.overlayClose){if(t.fire("overlayClose",{clickEvent:e}),e.defaultPrevented)return;t._leader&&t._setLeader(null),t.forEach((function(e){-1===["closed","closing","waiting"].indexOf(e.getState())&&(e.hide||t.overlayClosesPinned?e.close():e.hide||"ish"!==t.modal||(t._leader?e.close(!1,!1,!0):t._setLeader(e)))}),{skipModuleHandled:!0}),t._overlayOpen&&t._removeOverlay()}}))),this._overlay.parentNode!==this.context&&(this.fire("beforeAddOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlay=this.context.insertBefore(this._overlay,this.context.firstChild),this._overlayOpen=!0,this._overlayInserted=!0,window.requestAnimationFrame((function(){t._overlay.classList.add("pnotify-modal-overlay-in"),t.fire("afterAddOverlay")}))),this._collapsingModalState=!1}},{key:"_removeOverlay",value:function(){var t=this;this._overlay.parentNode&&(this.fire("beforeRemoveOverlay"),this._overlay.classList.remove("pnotify-modal-overlay-in"),this._overlayOpen=!1,setTimeout((function(){t._overlayInserted=!1,t._overlay.parentNode&&(t._overlay.parentNode.removeChild(t._overlay),t.fire("afterRemoveOverlay"))}),250),setTimeout((function(){t._collapsingModalState=!1}),400))}},{key:"notices",get:function(){var t=[];return this.forEach((function(e){return t.push(e)})),t}},{key:"length",get:function(){return this._length}},{key:"leader",get:function(){return this._leader}}]),t}(),pt=function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return h(Bt,e)},ft=nt.Map;function mt(t,e,i){var n=t.slice();return n[109]=e[i][0],n[110]=e[i][1],n}function gt(t,e,i){var n=t.slice();return n[109]=e[i][0],n[110]=e[i][1],n}function vt(t,e,i){var n=t.slice();return n[109]=e[i][0],n[110]=e[i][1],n}function yt(t,e,i){var n=t.slice();return n[109]=e[i][0],n[110]=e[i][1],n}function bt(t,e){var i,n,s,o,r=[{self:e[42]},e[110]],a=e[109].default;function l(t){for(var e={},i=0;i<r.length;i+=1)e=y(e,r[i]);return{props:e}}return a&&(n=new a(l())),{key:t,first:null,c:function(){i=O(),n&<(n.$$.fragment),s=O(),this.first=i},m:function(t,e){T(t,i,e),n&&ct(n,t,e),T(t,s,e),o=!0},p:function(t,e){var i=2176&e[1]?rt(r,[2048&e[1]&&{self:t[42]},128&e[1]&&at(t[110])]):{};if(a!==(a=t[109].default)){if(n){J();var o=n;it(o.$$.fragment,1,0,(function(){ut(o,1)})),tt()}a?(lt((n=new a(l())).$$.fragment),et(n.$$.fragment,1),ct(n,s.parentNode,s)):n=null}else a&&n.$set(i)},i:function(t){o||(n&&et(n.$$.fragment,t),o=!0)},o:function(t){n&&it(n.$$.fragment,t),o=!1},d:function(t){t&&S(i),t&&S(s),n&&ut(n,t)}}}function _t(t){var e,i,n,s,o,r;return{c:function(){e=E("div"),P(i=E("span"),"class",t[22]("closer")),P(e,"class",n="pnotify-closer ".concat(t[21]("closer")," ").concat(t[17]&&!t[26]||t[28]?"pnotify-hidden":"")),P(e,"role","button"),P(e,"tabindex","0"),P(e,"title",s=t[20].close)},m:function(n,s){T(n,e,s),C(e,i),o||(r=L(e,"click",t[81]),o=!0)},p:function(t,i){335675392&i[0]&&n!==(n="pnotify-closer ".concat(t[21]("closer")," ").concat(t[17]&&!t[26]||t[28]?"pnotify-hidden":""))&&P(e,"class",n),1048576&i[0]&&s!==(s=t[20].close)&&P(e,"title",s)},d:function(t){t&&S(e),o=!1,r()}}}function wt(t){var e,i,n,s,o,r,a,l;return{c:function(){e=E("div"),P(i=E("span"),"class",n="".concat(t[22]("sticker")," ").concat(t[3]?t[22]("unstuck"):t[22]("stuck"))),P(e,"class",s="pnotify-sticker ".concat(t[21]("sticker")," ").concat(t[19]&&!t[26]||t[28]?"pnotify-hidden":"")),P(e,"role","button"),P(e,"aria-pressed",o=!t[3]),P(e,"tabindex","0"),P(e,"title",r=t[3]?t[20].stick:t[20].unstick)},m:function(n,s){T(n,e,s),C(e,i),a||(l=L(e,"click",t[82]),a=!0)},p:function(t,a){8&a[0]&&n!==(n="".concat(t[22]("sticker")," ").concat(t[3]?t[22]("unstuck"):t[22]("stuck")))&&P(i,"class",n),336068608&a[0]&&s!==(s="pnotify-sticker ".concat(t[21]("sticker")," ").concat(t[19]&&!t[26]||t[28]?"pnotify-hidden":""))&&P(e,"class",s),8&a[0]&&o!==(o=!t[3])&&P(e,"aria-pressed",o),1048584&a[0]&&r!==(r=t[3]?t[20].stick:t[20].unstick)&&P(e,"title",r)},d:function(t){t&&S(e),a=!1,l()}}}function xt(t){var e,i,n;return{c:function(){e=E("div"),P(i=E("span"),"class",n=!0===t[13]?t[22](t[4]):t[13]),P(e,"class","pnotify-icon ".concat(t[21]("icon")))},m:function(n,s){T(n,e,s),C(e,i),t[83](e)},p:function(t,e){8208&e[0]&&n!==(n=!0===t[13]?t[22](t[4]):t[13])&&P(i,"class",n)},d:function(i){i&&S(e),t[83](null)}}}function kt(t,e){var i,n,s,o,r=[{self:e[42]},e[110]],a=e[109].default;function l(t){for(var e={},i=0;i<r.length;i+=1)e=y(e,r[i]);return{props:e}}return a&&(n=new a(l())),{key:t,first:null,c:function(){i=O(),n&<(n.$$.fragment),s=O(),this.first=i},m:function(t,e){T(t,i,e),n&&ct(n,t,e),T(t,s,e),o=!0},p:function(t,e){var i=2304&e[1]?rt(r,[2048&e[1]&&{self:t[42]},256&e[1]&&at(t[110])]):{};if(a!==(a=t[109].default)){if(n){J();var o=n;it(o.$$.fragment,1,0,(function(){ut(o,1)})),tt()}a?(lt((n=new a(l())).$$.fragment),et(n.$$.fragment,1),ct(n,s.parentNode,s)):n=null}else a&&n.$set(i)},i:function(t){o||(n&&et(n.$$.fragment,t),o=!0)},o:function(t){n&&it(n.$$.fragment,t),o=!1},d:function(t){t&&S(i),t&&S(s),n&&ut(n,t)}}}function Ct(t){var e,i=!t[34]&&Tt(t);return{c:function(){e=E("div"),i&&i.c(),P(e,"class","pnotify-title ".concat(t[21]("title")))},m:function(n,s){T(n,e,s),i&&i.m(e,null),t[84](e)},p:function(t,n){t[34]?i&&(i.d(1),i=null):i?i.p(t,n):((i=Tt(t)).c(),i.m(e,null))},d:function(n){n&&S(e),i&&i.d(),t[84](null)}}}function Tt(t){var e;function i(t,e){return t[6]?Et:St}var n=i(t),s=n(t);return{c:function(){s.c(),e=O()},m:function(t,i){s.m(t,i),T(t,e,i)},p:function(t,o){n===(n=i(t))&&s?s.p(t,o):(s.d(1),(s=n(t))&&(s.c(),s.m(e.parentNode,e)))},d:function(t){s.d(t),t&&S(e)}}}function St(t){var e,i;return{c:function(){e=E("span"),i=D(t[5]),P(e,"class","pnotify-pre-line")},m:function(t,n){T(t,e,n),C(e,i)},p:function(t,e){32&e[0]&&M(i,t[5])},d:function(t){t&&S(e)}}}function Et(t){var e,i;return{c:function(){i=O(),e=new $(i)},m:function(n,s){e.m(t[5],n,s),T(n,i,s)},p:function(t,i){32&i[0]&&e.p(t[5])},d:function(t){t&&S(i),t&&e.d()}}}function Dt(t){var e,i,n=!t[35]&&At(t);return{c:function(){e=E("div"),n&&n.c(),P(e,"class",i="pnotify-text ".concat(t[21]("text")," ").concat(""===t[33]?"":"pnotify-text-with-max-height")),P(e,"style",t[33]),P(e,"role","alert")},m:function(i,s){T(i,e,s),n&&n.m(e,null),t[85](e)},p:function(t,s){t[35]?n&&(n.d(1),n=null):n?n.p(t,s):((n=At(t)).c(),n.m(e,null)),4&s[1]&&i!==(i="pnotify-text ".concat(t[21]("text")," ").concat(""===t[33]?"":"pnotify-text-with-max-height"))&&P(e,"class",i),4&s[1]&&P(e,"style",t[33])},d:function(i){i&&S(e),n&&n.d(),t[85](null)}}}function At(t){var e;function i(t,e){return t[8]?Lt:Ot}var n=i(t),s=n(t);return{c:function(){s.c(),e=O()},m:function(t,i){s.m(t,i),T(t,e,i)},p:function(t,o){n===(n=i(t))&&s?s.p(t,o):(s.d(1),(s=n(t))&&(s.c(),s.m(e.parentNode,e)))},d:function(t){s.d(t),t&&S(e)}}}function Ot(t){var e,i;return{c:function(){e=E("span"),i=D(t[7]),P(e,"class","pnotify-pre-line")},m:function(t,n){T(t,e,n),C(e,i)},p:function(t,e){128&e[0]&&M(i,t[7])},d:function(t){t&&S(e)}}}function Lt(t){var e,i;return{c:function(){i=O(),e=new $(i)},m:function(n,s){e.m(t[7],n,s),T(n,i,s)},p:function(t,i){128&i[0]&&e.p(t[7])},d:function(t){t&&S(i),t&&e.d()}}}function Pt(t,e){var i,n,s,o,r=[{self:e[42]},e[110]],a=e[109].default;function l(t){for(var e={},i=0;i<r.length;i+=1)e=y(e,r[i]);return{props:e}}return a&&(n=new a(l())),{key:t,first:null,c:function(){i=O(),n&<(n.$$.fragment),s=O(),this.first=i},m:function(t,e){T(t,i,e),n&&ct(n,t,e),T(t,s,e),o=!0},p:function(t,e){var i=2560&e[1]?rt(r,[2048&e[1]&&{self:t[42]},512&e[1]&&at(t[110])]):{};if(a!==(a=t[109].default)){if(n){J();var o=n;it(o.$$.fragment,1,0,(function(){ut(o,1)})),tt()}a?(lt((n=new a(l())).$$.fragment),et(n.$$.fragment,1),ct(n,s.parentNode,s)):n=null}else a&&n.$set(i)},i:function(t){o||(n&&et(n.$$.fragment,t),o=!0)},o:function(t){n&&it(n.$$.fragment,t),o=!1},d:function(t){t&&S(i),t&&S(s),n&&ut(n,t)}}}function Mt(t,e){var i,n,s,o,r=[{self:e[42]},e[110]],a=e[109].default;function l(t){for(var e={},i=0;i<r.length;i+=1)e=y(e,r[i]);return{props:e}}return a&&(n=new a(l())),{key:t,first:null,c:function(){i=O(),n&<(n.$$.fragment),s=O(),this.first=i},m:function(t,e){T(t,i,e),n&&ct(n,t,e),T(t,s,e),o=!0},p:function(t,e){var i=3072&e[1]?rt(r,[2048&e[1]&&{self:t[42]},1024&e[1]&&at(t[110])]):{};if(a!==(a=t[109].default)){if(n){J();var o=n;it(o.$$.fragment,1,0,(function(){ut(o,1)})),tt()}a?(lt((n=new a(l())).$$.fragment),et(n.$$.fragment,1),ct(n,s.parentNode,s)):n=null}else a&&n.$set(i)},i:function(t){o||(n&&et(n.$$.fragment,t),o=!0)},o:function(t){n&&it(n.$$.fragment,t),o=!1},d:function(t){t&&S(i),t&&S(s),n&&ut(n,t)}}}function It(t){for(var e,i,n,s,o,r,a,l,c,u,h,d,p,f,m,g,y,b=[],_=new ft,k=[],D=new ft,O=[],M=new ft,I=[],$=new ft,N=t[38],z=function(t){return t[109]},H=0;H<N.length;H+=1){var j=yt(t,N,H),R=z(j);_.set(R,b[H]=bt(R,j))}for(var q=t[16]&&!t[36]&&_t(t),B=t[18]&&!t[36]&&wt(t),W=!1!==t[13]&&xt(t),F=t[39],U=function(t){return t[109]},Y=0;Y<F.length;Y+=1){var V=vt(t,F,Y),K=U(V);D.set(K,k[Y]=kt(K,V))}for(var X=!1!==t[5]&&Ct(t),G=!1!==t[7]&&Dt(t),Z=t[40],Q=function(t){return t[109]},nt=0;nt<Z.length;nt+=1){var rt=gt(t,Z,nt),at=Q(rt);M.set(at,O[nt]=Pt(at,rt))}for(var lt=t[41],ct=function(t){return t[109]},ut=0;ut<lt.length;ut+=1){var ht=mt(t,lt,ut),dt=ct(ht);$.set(dt,I[ut]=Mt(dt,ht))}return{c:function(){e=E("div"),i=E("div");for(var m=0;m<b.length;m+=1)b[m].c();n=A(),q&&q.c(),s=A(),B&&B.c(),o=A(),W&&W.c(),r=A(),a=E("div");for(var g=0;g<k.length;g+=1)k[g].c();l=A(),X&&X.c(),c=A(),G&&G.c(),u=A();for(var v=0;v<O.length;v+=1)O[v].c();h=A();for(var y=0;y<I.length;y+=1)I[y].c();P(a,"class","pnotify-content ".concat(t[21]("content"))),P(i,"class",d="pnotify-container ".concat(t[21]("container")," ").concat(t[21](t[4])," ").concat(t[15]?"pnotify-shadow":""," ").concat(t[27].container.join(" "))),P(i,"style",p="".concat(t[31]," ").concat(t[32])),P(i,"role","alert"),P(e,"data-pnotify",""),P(e,"class",f="pnotify ".concat(!t[0]||t[0].positioned?"pnotify-positioned":""," ").concat(!1!==t[13]?"pnotify-with-icon":""," ").concat(t[21]("elem")," pnotify-mode-").concat(t[9]," ").concat(t[10]," ").concat(t[24]," ").concat(t[25]," ").concat(t[37]," ").concat("fade"===t[2]?"pnotify-fade-".concat(t[14]):""," ").concat(t[30]?"pnotify-modal ".concat(t[11]):t[12]," ").concat(t[28]?"pnotify-masking":""," ").concat(t[29]?"pnotify-masking-in":""," ").concat(t[27].elem.join(" "))),P(e,"aria-live","assertive"),P(e,"role","alertdialog")},m:function(d,p){T(d,e,p),C(e,i);for(var f=0;f<b.length;f+=1)b[f].m(i,null);C(i,n),q&&q.m(i,null),C(i,s),B&&B.m(i,null),C(i,o),W&&W.m(i,null),C(i,r),C(i,a);for(var _=0;_<k.length;_+=1)k[_].m(a,null);C(a,l),X&&X.m(a,null),C(a,c),G&&G.m(a,null),C(a,u);for(var w=0;w<O.length;w+=1)O[w].m(a,null);t[86](a),C(i,h);for(var S=0;S<I.length;S+=1)I[S].m(i,null);var E;t[87](i),t[88](e),m=!0,g||(y=[(E=t[43].call(null,e),E&&x(E.destroy)?E.destroy:v),L(e,"mouseenter",t[44]),L(e,"mouseleave",t[45]),L(e,"focusin",t[44]),L(e,"focusout",t[45])],g=!0)},p:function(t,h){if(2176&h[1]){var g=t[38];J(),b=ot(b,h,z,1,t,g,_,i,st,bt,n,yt),tt()}if(t[16]&&!t[36]?q?q.p(t,h):((q=_t(t)).c(),q.m(i,s)):q&&(q.d(1),q=null),t[18]&&!t[36]?B?B.p(t,h):((B=wt(t)).c(),B.m(i,o)):B&&(B.d(1),B=null),!1!==t[13]?W?W.p(t,h):((W=xt(t)).c(),W.m(i,r)):W&&(W.d(1),W=null),2304&h[1]){var v=t[39];J(),k=ot(k,h,U,1,t,v,D,a,st,kt,l,vt),tt()}if(!1!==t[5]?X?X.p(t,h):((X=Ct(t)).c(),X.m(a,c)):X&&(X.d(1),X=null),!1!==t[7]?G?G.p(t,h):((G=Dt(t)).c(),G.m(a,u)):G&&(G.d(1),G=null),2560&h[1]){var y=t[40];J(),O=ot(O,h,Q,1,t,y,M,a,st,Pt,null,gt),tt()}if(3072&h[1]){var w=t[41];J(),I=ot(I,h,ct,1,t,w,$,i,st,Mt,null,mt),tt()}(!m||134250512&h[0]&&d!==(d="pnotify-container ".concat(t[21]("container")," ").concat(t[21](t[4])," ").concat(t[15]?"pnotify-shadow":""," ").concat(t[27].container.join(" "))))&&P(i,"class",d),(!m||3&h[1]&&p!==(p="".concat(t[31]," ").concat(t[32])))&&P(i,"style",p),(!m||2063629829&h[0]|64&h[1]&&f!==(f="pnotify ".concat(!t[0]||t[0].positioned?"pnotify-positioned":""," ").concat(!1!==t[13]?"pnotify-with-icon":""," ").concat(t[21]("elem")," pnotify-mode-").concat(t[9]," ").concat(t[10]," ").concat(t[24]," ").concat(t[25]," ").concat(t[37]," ").concat("fade"===t[2]?"pnotify-fade-".concat(t[14]):""," ").concat(t[30]?"pnotify-modal ".concat(t[11]):t[12]," ").concat(t[28]?"pnotify-masking":""," ").concat(t[29]?"pnotify-masking-in":""," ").concat(t[27].elem.join(" "))))&&P(e,"class",f)},i:function(t){if(!m){for(var e=0;e<N.length;e+=1)et(b[e]);for(var i=0;i<F.length;i+=1)et(k[i]);for(var n=0;n<Z.length;n+=1)et(O[n]);for(var s=0;s<lt.length;s+=1)et(I[s]);m=!0}},o:function(t){for(var e=0;e<b.length;e+=1)it(b[e]);for(var i=0;i<k.length;i+=1)it(k[i]);for(var n=0;n<O.length;n+=1)it(O[n]);for(var s=0;s<I.length;s+=1)it(I[s]);m=!1},d:function(i){i&&S(e);for(var n=0;n<b.length;n+=1)b[n].d();q&&q.d(),B&&B.d(),W&&W.d();for(var s=0;s<k.length;s+=1)k[s].d();X&&X.d(),G&&G.d();for(var o=0;o<O.length;o+=1)O[o].d();t[86](null);for(var r=0;r<I.length;r+=1)I[r].d();t[87](null),t[88](null),g=!1,w(y)}}}function $t(t,i){"object"!==e(t)&&(t={text:t}),i&&(t.type=i);var n=document.body;return"stack"in t&&t.stack&&t.stack.context&&(n=t.stack.context),{target:n,props:t}}var Nt,zt=new dt({dir1:"down",dir2:"left",firstpos1:25,firstpos2:25,spacing1:36,spacing2:36,push:"bottom"}),Ht=new Map,jt={type:"notice",title:!1,titleTrusted:!1,text:!1,textTrusted:!1,styling:"brighttheme",icons:"brighttheme",mode:"no-preference",addClass:"",addModalClass:"",addModelessClass:"",autoOpen:!0,width:"360px",minHeight:"16px",maxTextHeight:"200px",icon:!0,animation:"fade",animateSpeed:"normal",shadow:!0,hide:!0,delay:8e3,mouseReset:!0,closer:!0,closerHover:!0,sticker:!0,stickerHover:!0,labels:{close:"Close",stick:"Pin",unstick:"Unpin"},remove:!0,destroy:!0,stack:zt,modules:Ht};function Rt(){zt.context||(zt.context=document.body),window.addEventListener("resize",(function(){Nt&&clearTimeout(Nt),Nt=setTimeout((function(){var t=new Event("pnotify:position");document.body.dispatchEvent(t),Nt=null}),10)}))}function qt(t,e,i){var n=z(),s=function(){var t=z();return function(e,i){var n=t.$$.callbacks[e];if(n){var s=function(t,e){var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,!1,!1,e),i}(e,i);n.slice().forEach((function(e){e.call(t,s)}))}}}(),o=function(t){var e=["focus","blur","fullscreenchange","fullscreenerror","scroll","cut","copy","paste","keydown","keypress","keyup","auxclick","click","contextmenu","dblclick","mousedown","mouseenter","mouseleave","mousemove","mouseover","mouseout","mouseup","pointerlockchange","pointerlockerror","select","wheel","drag","dragend","dragenter","dragstart","dragleave","dragover","drop","touchcancel","touchend","touchmove","touchstart","pointerover","pointerenter","pointerdown","pointermove","pointerup","pointercancel","pointerout","pointerleave","gotpointercapture","lostpointercapture"].concat(f(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]));function i(e){!function(t,e){var i=t.$$.callbacks[e.type];i&&i.slice().forEach((function(t){return t(e)}))}(t,e)}return function(t){for(var n=[],s=0;s<e.length;s++)n.push(L(t,e[s],i));return{destroy:function(){for(var t=0;t<n.length;t++)n[t]()}}}}(n,["pnotify:init","pnotify:mount","pnotify:update","pnotify:beforeOpen","pnotify:afterOpen","pnotify:enterModal","pnotify:leaveModal","pnotify:beforeClose","pnotify:afterClose","pnotify:beforeDestroy","pnotify:afterDestroy","focusin","focusout","animationend","transitionend"]),r=e.modules,l=void 0===r?new Map(jt.modules):r,c=e.stack,u=void 0===c?jt.stack:c,h={elem:null,container:null,content:null,iconContainer:null,titleContainer:null,textContainer:null},d=a({},jt);Vt("init",{notice:n,defaults:d});var m,g=e.type,v=void 0===g?d.type:g,y=e.title,b=void 0===y?d.title:y,_=e.titleTrusted,w=void 0===_?d.titleTrusted:_,x=e.text,k=void 0===x?d.text:x,C=e.textTrusted,T=void 0===C?d.textTrusted:C,S=e.styling,E=void 0===S?d.styling:S,D=e.icons,A=void 0===D?d.icons:D,O=e.mode,P=void 0===O?d.mode:O,M=e.addClass,I=void 0===M?d.addClass:M,$=e.addModalClass,N=void 0===$?d.addModalClass:$,H=e.addModelessClass,R=void 0===H?d.addModelessClass:H,q=e.autoOpen,B=void 0===q?d.autoOpen:q,W=e.width,F=void 0===W?d.width:W,Y=e.minHeight,V=void 0===Y?d.minHeight:Y,K=e.maxTextHeight,X=void 0===K?d.maxTextHeight:K,G=e.icon,Z=void 0===G?d.icon:G,Q=e.animation,J=void 0===Q?d.animation:Q,tt=e.animateSpeed,et=void 0===tt?d.animateSpeed:tt,it=e.shadow,nt=void 0===it?d.shadow:it,st=e.hide,ot=void 0===st?d.hide:st,rt=e.delay,at=void 0===rt?d.delay:rt,lt=e.mouseReset,ct=void 0===lt?d.mouseReset:lt,ut=e.closer,ht=void 0===ut?d.closer:ut,dt=e.closerHover,pt=void 0===dt?d.closerHover:dt,ft=e.sticker,mt=void 0===ft?d.sticker:ft,gt=e.stickerHover,vt=void 0===gt?d.stickerHover:gt,yt=e.labels,bt=void 0===yt?d.labels:yt,_t=e.remove,wt=void 0===_t?d.remove:_t,xt=e.destroy,kt=void 0===xt?d.destroy:xt,Ct="closed",Tt=null,St=null,Et=null,Dt=!1,At="",Ot="",Lt=!1,Pt=!1,Mt={elem:[],container:[]},It=!1,$t=!1,Nt=!1,zt=!1,Ht=null,Rt=ot,qt=null,Bt=null,Wt=u&&(!0===u.modal||"ish"===u.modal&&"prevented"===Tt),Ft=NaN,Ut=null,Yt=null;function Vt(t){var e=a({notice:n},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{});"init"===t&&Array.from(l).forEach((function(t){var i=p(t,2),n=i[0];return i[1],"init"in n&&n.init(e)}));var i=h.elem||u&&u.context||document.body;if(!i)return s("pnotify:".concat(t),e),!0;var o=new Event("pnotify:".concat(t),{bubbles:"init"===t||"mount"===t,cancelable:t.startsWith("before")});return o.detail=e,i.dispatchEvent(o),!o.defaultPrevented}function Kt(){var t=u&&u.context||document.body;if(!t)throw new Error("No context to insert this notice into.");if(!h.elem)throw new Error("Trying to insert notice before element is available.");h.elem.parentNode!==t&&t.appendChild(h.elem)}function Xt(){h.elem&&h.elem.parentNode.removeChild(h.elem)}m=function(){Vt("mount"),B&&le().catch((function(){}))},z().$$.on_mount.push(m),z().$$.before_update.push((function(){Vt("update"),"closed"!==Ct&&"waiting"!==Ct&&ot!==Rt&&(ot?Rt||ge():me()),"closed"!==Ct&&"closing"!==Ct&&u&&!u._collapsingModalState&&u.queuePosition(),Rt=ot}));var Gt,Zt,Qt,Jt,te,ee,ie,ne,se,oe,re,ae=e.open,le=void 0===ae?function(t){if("opening"===Ct)return qt;if("open"===Ct)return ot&&ge(),Promise.resolve();if(!It&&u&&u._shouldNoticeWait(n))return Ct="waiting",Promise.reject();if(!Vt("beforeOpen",{immediate:t}))return Promise.reject();var e,s;Ct="opening",i(28,Nt=!1),i(24,At="pnotify-initial pnotify-hidden");var o=new Promise((function(t,i){e=t,s=i}));qt=o;var r=function(){ot&&ge(),Ct="open",Vt("afterOpen",{immediate:t}),qt=null,e()};return $t?(r(),Promise.resolve()):(Kt(),window.requestAnimationFrame((function(){if("opening"!==Ct)return s(),void(qt=null);u&&(i(0,u._animation=!1,u),"top"===u.push&&u._resetPositionData(),u._positionNotice(n),u.queuePosition(0),i(0,u._animation=!0,u)),de(r,t)})),o)}:ae,ce=e.close,ue=void 0===ce?function(t,e,s){if("closing"===Ct)return Bt;if("closed"===Ct)return Promise.resolve();var o,r=function(){Vt("beforeDestroy")&&(u&&u._removeNotice(n),n.$destroy(),Vt("afterDestroy"))};if("waiting"===Ct)return s||(Ct="closed",kt&&!s&&r()),Promise.resolve();if(!Vt("beforeClose",{immediate:t,timerHide:e,waitAfterward:s}))return Promise.reject();Ct="closing",Lt=!!e,Tt&&"prevented"!==Tt&&clearTimeout&&clearTimeout(Tt),Tt=null;var a=new Promise((function(t,e){o=t}));return Bt=a,fe((function(){i(26,Pt=!1),Lt=!1,Ct=s?"waiting":"closed",Vt("afterClose",{immediate:t,timerHide:e,waitAfterward:s}),Bt=null,o(),s||(kt?r():wt&&Xt())}),t),a}:ce,he=e.animateIn,de=void 0===he?function(t,e){Dt="in";var n=function e(i){if(!(i&&h.elem&&i.target!==h.elem||(h.elem&&h.elem.removeEventListener("transitionend",e),St&&clearTimeout(St),"in"!==Dt))){var n=$t;if(!n&&h.elem){var s=h.elem.getBoundingClientRect();for(var o in s)if(s[o]>0){n=!0;break}}n?(t&&t.call(),Dt=!1):St=setTimeout(e,40)}};if("fade"!==J||e){var s=J;i(2,J="none"),i(24,At="pnotify-in ".concat("fade"===s?"pnotify-fade-in":"")),U().then((function(){i(2,J=s),n()}))}else h.elem&&h.elem.addEventListener("transitionend",n),i(24,At="pnotify-in"),U().then((function(){i(24,At="pnotify-in pnotify-fade-in"),St=setTimeout(n,650)}))}:he,pe=e.animateOut,fe=void 0===pe?function(t,e){Dt="out";var n=function e(n){if(!(n&&h.elem&&n.target!==h.elem||(h.elem&&h.elem.removeEventListener("transitionend",e),Et&&clearTimeout(Et),"out"!==Dt))){var s=$t;if(!s&&h.elem){var o=h.elem.getBoundingClientRect();for(var r in o)if(o[r]>0){s=!0;break}}h.elem&&h.elem.style.opacity&&"0"!==h.elem.style.opacity&&s?Et=setTimeout(e,40):(i(24,At=""),t&&t.call(),Dt=!1)}};"fade"!==J||e?(i(24,At=""),U().then((function(){n()}))):(h.elem&&h.elem.addEventListener("transitionend",n),i(24,At="pnotify-in"),Et=setTimeout(n,650))}:pe;function me(){Tt&&"prevented"!==Tt&&(clearTimeout(Tt),Tt=null),Et&&clearTimeout(Et),"closing"===Ct&&(Ct="open",Dt=!1,i(24,At="fade"===J?"pnotify-in pnotify-fade-in":"pnotify-in"))}function ge(){"prevented"!==Tt&&(me(),at!==1/0&&(Tt=setTimeout((function(){return ue(!1,!0)}),isNaN(at)?0:at)))}return t.$$set=function(t){"modules"in t&&i(46,l=t.modules),"stack"in t&&i(0,u=t.stack),"type"in t&&i(4,v=t.type),"title"in t&&i(5,b=t.title),"titleTrusted"in t&&i(6,w=t.titleTrusted),"text"in t&&i(7,k=t.text),"textTrusted"in t&&i(8,T=t.textTrusted),"styling"in t&&i(47,E=t.styling),"icons"in t&&i(48,A=t.icons),"mode"in t&&i(9,P=t.mode),"addClass"in t&&i(10,I=t.addClass),"addModalClass"in t&&i(11,N=t.addModalClass),"addModelessClass"in t&&i(12,R=t.addModelessClass),"autoOpen"in t&&i(49,B=t.autoOpen),"width"in t&&i(50,F=t.width),"minHeight"in t&&i(51,V=t.minHeight),"maxTextHeight"in t&&i(52,X=t.maxTextHeight),"icon"in t&&i(13,Z=t.icon),"animation"in t&&i(2,J=t.animation),"animateSpeed"in t&&i(14,et=t.animateSpeed),"shadow"in t&&i(15,nt=t.shadow),"hide"in t&&i(3,ot=t.hide),"delay"in t&&i(53,at=t.delay),"mouseReset"in t&&i(54,ct=t.mouseReset),"closer"in t&&i(16,ht=t.closer),"closerHover"in t&&i(17,pt=t.closerHover),"sticker"in t&&i(18,mt=t.sticker),"stickerHover"in t&&i(19,vt=t.stickerHover),"labels"in t&&i(20,bt=t.labels),"remove"in t&&i(55,wt=t.remove),"destroy"in t&&i(56,kt=t.destroy),"open"in t&&i(59,le=t.open),"close"in t&&i(23,ue=t.close),"animateIn"in t&&i(60,de=t.animateIn),"animateOut"in t&&i(61,fe=t.animateOut)},t.$$.update=function(){524288&t.$$.dirty[1]&&i(31,Gt="string"==typeof F?"width: ".concat(F,";"):""),1048576&t.$$.dirty[1]&&i(32,Zt="string"==typeof V?"min-height: ".concat(V,";"):""),2097152&t.$$.dirty[1]&&i(33,Qt="string"==typeof X?"max-height: ".concat(X,";"):""),32&t.$$.dirty[0]&&i(34,Jt=b instanceof HTMLElement),128&t.$$.dirty[0]&&i(35,te=k instanceof HTMLElement),1&t.$$.dirty[0]|1792&t.$$.dirty[3]&&Ft!==u&&(Ft&&(Ft._removeNotice(n),i(30,Wt=!1),Ut(),Yt()),u&&(u._addNotice(n),i(102,Ut=u.on("beforeAddOverlay",(function(){i(30,Wt=!0),Vt("enterModal")}))),i(103,Yt=u.on("afterRemoveOverlay",(function(){i(30,Wt=!1),Vt("leaveModal")})))),i(101,Ft=u)),1073748992&t.$$.dirty[0]&&i(36,ee=I.match(/\bnonblock\b/)||N.match(/\bnonblock\b/)&&Wt||R.match(/\bnonblock\b/)&&!Wt),1&t.$$.dirty[0]&&i(37,ie=u&&u.dir1?"pnotify-stack-".concat(u.dir1):""),32768&t.$$.dirty[1]&&i(38,ne=Array.from(l).filter((function(t){var e=p(t,2),i=e[0];return e[1],"PrependContainer"===i.position}))),32768&t.$$.dirty[1]&&i(39,se=Array.from(l).filter((function(t){var e=p(t,2),i=e[0];return e[1],"PrependContent"===i.position}))),32768&t.$$.dirty[1]&&i(40,oe=Array.from(l).filter((function(t){var e=p(t,2),i=e[0];return e[1],"AppendContent"===i.position}))),32768&t.$$.dirty[1]&&i(41,re=Array.from(l).filter((function(t){var e=p(t,2),i=e[0];return e[1],"AppendContainer"===i.position}))),34&t.$$.dirty[0]|8&t.$$.dirty[1]&&Jt&&h.titleContainer&&h.titleContainer.appendChild(b),130&t.$$.dirty[0]|16&t.$$.dirty[1]&&te&&h.textContainer&&h.textContainer.appendChild(k)},[u,h,J,ot,v,b,w,k,T,P,I,N,R,Z,et,nt,ht,pt,mt,vt,bt,function(t){return"string"==typeof E?"".concat(E,"-").concat(t):t in E?E[t]:"".concat(E.prefix,"-").concat(t)},function(t){return"string"==typeof A?"".concat(A,"-icon-").concat(t):t in A?A[t]:"".concat(A.prefix,"-icon-").concat(t)},ue,At,Ot,Pt,Mt,Nt,zt,Wt,Gt,Zt,Qt,Jt,te,ee,ie,ne,se,oe,re,n,o,function(t){if(i(26,Pt=!0),ct&&"closing"===Ct){if(!Lt)return;me()}ot&&ct&&me()},function(t){i(26,Pt=!1),ot&&ct&&"out"!==Dt&&-1!==["open","opening"].indexOf(Ct)&&ge()},l,E,A,B,F,V,X,at,ct,wt,kt,function(){return Ct},function(){return Tt},le,de,fe,me,ge,function(t){t?(me(),Tt="prevented"):"prevented"===Tt&&(Tt=null,"open"===Ct&&ot&&ge())},function(){return n.$on.apply(n,arguments)},function(){return n.$set.apply(n,arguments)},function(t,e){s(t,e)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var n=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];-1===Mt[t].indexOf(n)&&Mt[t].push(n)}i(27,Mt)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var n=e+1<1||arguments.length<=e+1?void 0:arguments[e+1],s=Mt[t].indexOf(n);-1!==s&&Mt[t].splice(s,1)}i(27,Mt)},function(t){for(var e=0;e<(arguments.length<=1?0:arguments.length-1);e++){var i=e+1<1||arguments.length<=e+1?void 0:arguments[e+1];if(-1===Mt[t].indexOf(i))return!1}return!0},function(){return It},function(t){return It=t},function(){return $t},function(t){return $t=t},function(t){return Dt=t},function(){return At},function(t){return i(24,At=t)},function(){return Ot},function(t){return i(25,Ot=t)},function(t,e,n){if(Ht&&clearTimeout(Ht),Nt!==t)if(t)i(28,Nt=!0),i(29,zt=!!e),Kt(),U().then((function(){window.requestAnimationFrame((function(){if(Nt)if(e&&n)n();else{i(29,zt=!0);var t=function t(){h.elem&&h.elem.removeEventListener("transitionend",t),Ht&&clearTimeout(Ht),zt&&n&&n()};h.elem&&h.elem.addEventListener("transitionend",t),Ht=setTimeout(t,650)}}))}));else if(e)i(28,Nt=!1),i(29,zt=!1),wt&&-1===["open","opening","closing"].indexOf(Ct)&&Xt(),n&&n();else{var s=function t(){h.elem&&h.elem.removeEventListener("transitionend",t),Ht&&clearTimeout(Ht),zt||(i(28,Nt=!1),wt&&-1===["open","opening","closing"].indexOf(Ct)&&Xt(),n&&n())};i(29,zt=!1),h.elem&&h.elem.addEventListener("transitionend",s),h.elem&&h.elem.style.opacity,Ht=setTimeout(s,650)}},function(){return ue(!1)},function(){return i(3,ot=!ot)},function(t){j[t?"unshift":"push"]((function(){h.iconContainer=t,i(1,h)}))},function(t){j[t?"unshift":"push"]((function(){h.titleContainer=t,i(1,h)}))},function(t){j[t?"unshift":"push"]((function(){h.textContainer=t,i(1,h)}))},function(t){j[t?"unshift":"push"]((function(){h.content=t,i(1,h)}))},function(t){j[t?"unshift":"push"]((function(){h.container=t,i(1,h)}))},function(t){j[t?"unshift":"push"]((function(){h.elem=t,i(1,h)}))}]}window&&document.body?Rt():document.addEventListener("DOMContentLoaded",Rt);var Bt=function(t){!function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&c(t,e)}(r,t);var e,n,o=(e=r,n=u(),function(){var t,i=l(e);if(n){var s=l(this).constructor;t=Reflect.construct(i,arguments,s)}else t=i.apply(this,arguments);return function(t,e){return!e||"object"!=typeof e&&"function"!=typeof e?d(t):e}(this,t)});function r(t){var e;return i(this,r),function(t,e,i,n,s,o){var r=arguments.length>6&&void 0!==arguments[6]?arguments[6]:[-1],a=I;N(t);var l=e.props||{},c=t.$$={fragment:null,ctx:null,props:o,update:v,not_equal:s,bound:_(),on_mount:[],on_destroy:[],before_update:[],after_update:[],context:new Map(a?a.$$.context:[]),callbacks:_(),dirty:r,skip_bound:!1},u=!1;if(c.ctx=i?i(t,l,(function(e,i){var n=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:i;return c.ctx&&s(c.ctx[e],c.ctx[e]=n)&&(!c.skip_bound&&c.bound[e]&&c.bound[e](n),u&&function(t,e){-1===t.$$.dirty[0]&&(H.push(t),F(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],c.update(),u=!0,w(c.before_update),c.fragment=!!n&&n(c.ctx),e.target){if(e.hydrate){var h=function(t){return Array.from(t.childNodes)}(e.target);c.fragment&&c.fragment.l(h),h.forEach(S)}else c.fragment&&c.fragment.c();e.intro&&et(t.$$.fragment),ct(t,e.target,e.anchor),X()}N(a)}(d(e=o.call(this)),t,qt,It,k,{modules:46,stack:0,refs:1,type:4,title:5,titleTrusted:6,text:7,textTrusted:8,styling:47,icons:48,mode:9,addClass:10,addModalClass:11,addModelessClass:12,autoOpen:49,width:50,minHeight:51,maxTextHeight:52,icon:13,animation:2,animateSpeed:14,shadow:15,hide:3,delay:53,mouseReset:54,closer:16,closerHover:17,sticker:18,stickerHover:19,labels:20,remove:55,destroy:56,getState:57,getTimer:58,getStyle:21,getIcon:22,open:59,close:23,animateIn:60,animateOut:61,cancelClose:62,queueClose:63,_preventTimerClose:64,on:65,update:66,fire:67,addModuleClass:68,removeModuleClass:69,hasModuleClass:70,getModuleHandled:71,setModuleHandled:72,getModuleOpen:73,setModuleOpen:74,setAnimating:75,getAnimatingClass:76,setAnimatingClass:77,_getMoveClass:78,_setMoveClass:79,_setMasking:80},[-1,-1,-1,-1]),e}return s(r,[{key:"modules",get:function(){return this.$$.ctx[46]},set:function(t){this.$set({modules:t}),X()}},{key:"stack",get:function(){return this.$$.ctx[0]},set:function(t){this.$set({stack:t}),X()}},{key:"refs",get:function(){return this.$$.ctx[1]}},{key:"type",get:function(){return this.$$.ctx[4]},set:function(t){this.$set({type:t}),X()}},{key:"title",get:function(){return this.$$.ctx[5]},set:function(t){this.$set({title:t}),X()}},{key:"titleTrusted",get:function(){return this.$$.ctx[6]},set:function(t){this.$set({titleTrusted:t}),X()}},{key:"text",get:function(){return this.$$.ctx[7]},set:function(t){this.$set({text:t}),X()}},{key:"textTrusted",get:function(){return this.$$.ctx[8]},set:function(t){this.$set({textTrusted:t}),X()}},{key:"styling",get:function(){return this.$$.ctx[47]},set:function(t){this.$set({styling:t}),X()}},{key:"icons",get:function(){return this.$$.ctx[48]},set:function(t){this.$set({icons:t}),X()}},{key:"mode",get:function(){return this.$$.ctx[9]},set:function(t){this.$set({mode:t}),X()}},{key:"addClass",get:function(){return this.$$.ctx[10]},set:function(t){this.$set({addClass:t}),X()}},{key:"addModalClass",get:function(){return this.$$.ctx[11]},set:function(t){this.$set({addModalClass:t}),X()}},{key:"addModelessClass",get:function(){return this.$$.ctx[12]},set:function(t){this.$set({addModelessClass:t}),X()}},{key:"autoOpen",get:function(){return this.$$.ctx[49]},set:function(t){this.$set({autoOpen:t}),X()}},{key:"width",get:function(){return this.$$.ctx[50]},set:function(t){this.$set({width:t}),X()}},{key:"minHeight",get:function(){return this.$$.ctx[51]},set:function(t){this.$set({minHeight:t}),X()}},{key:"maxTextHeight",get:function(){return this.$$.ctx[52]},set:function(t){this.$set({maxTextHeight:t}),X()}},{key:"icon",get:function(){return this.$$.ctx[13]},set:function(t){this.$set({icon:t}),X()}},{key:"animation",get:function(){return this.$$.ctx[2]},set:function(t){this.$set({animation:t}),X()}},{key:"animateSpeed",get:function(){return this.$$.ctx[14]},set:function(t){this.$set({animateSpeed:t}),X()}},{key:"shadow",get:function(){return this.$$.ctx[15]},set:function(t){this.$set({shadow:t}),X()}},{key:"hide",get:function(){return this.$$.ctx[3]},set:function(t){this.$set({hide:t}),X()}},{key:"delay",get:function(){return this.$$.ctx[53]},set:function(t){this.$set({delay:t}),X()}},{key:"mouseReset",get:function(){return this.$$.ctx[54]},set:function(t){this.$set({mouseReset:t}),X()}},{key:"closer",get:function(){return this.$$.ctx[16]},set:function(t){this.$set({closer:t}),X()}},{key:"closerHover",get:function(){return this.$$.ctx[17]},set:function(t){this.$set({closerHover:t}),X()}},{key:"sticker",get:function(){return this.$$.ctx[18]},set:function(t){this.$set({sticker:t}),X()}},{key:"stickerHover",get:function(){return this.$$.ctx[19]},set:function(t){this.$set({stickerHover:t}),X()}},{key:"labels",get:function(){return this.$$.ctx[20]},set:function(t){this.$set({labels:t}),X()}},{key:"remove",get:function(){return this.$$.ctx[55]},set:function(t){this.$set({remove:t}),X()}},{key:"destroy",get:function(){return this.$$.ctx[56]},set:function(t){this.$set({destroy:t}),X()}},{key:"getState",get:function(){return this.$$.ctx[57]}},{key:"getTimer",get:function(){return this.$$.ctx[58]}},{key:"getStyle",get:function(){return this.$$.ctx[21]}},{key:"getIcon",get:function(){return this.$$.ctx[22]}},{key:"open",get:function(){return this.$$.ctx[59]},set:function(t){this.$set({open:t}),X()}},{key:"close",get:function(){return this.$$.ctx[23]},set:function(t){this.$set({close:t}),X()}},{key:"animateIn",get:function(){return this.$$.ctx[60]},set:function(t){this.$set({animateIn:t}),X()}},{key:"animateOut",get:function(){return this.$$.ctx[61]},set:function(t){this.$set({animateOut:t}),X()}},{key:"cancelClose",get:function(){return this.$$.ctx[62]}},{key:"queueClose",get:function(){return this.$$.ctx[63]}},{key:"_preventTimerClose",get:function(){return this.$$.ctx[64]}},{key:"on",get:function(){return this.$$.ctx[65]}},{key:"update",get:function(){return this.$$.ctx[66]}},{key:"fire",get:function(){return this.$$.ctx[67]}},{key:"addModuleClass",get:function(){return this.$$.ctx[68]}},{key:"removeModuleClass",get:function(){return this.$$.ctx[69]}},{key:"hasModuleClass",get:function(){return this.$$.ctx[70]}},{key:"getModuleHandled",get:function(){return this.$$.ctx[71]}},{key:"setModuleHandled",get:function(){return this.$$.ctx[72]}},{key:"getModuleOpen",get:function(){return this.$$.ctx[73]}},{key:"setModuleOpen",get:function(){return this.$$.ctx[74]}},{key:"setAnimating",get:function(){return this.$$.ctx[75]}},{key:"getAnimatingClass",get:function(){return this.$$.ctx[76]}},{key:"setAnimatingClass",get:function(){return this.$$.ctx[77]}},{key:"_getMoveClass",get:function(){return this.$$.ctx[78]}},{key:"_setMoveClass",get:function(){return this.$$.ctx[79]}},{key:"_setMasking",get:function(){return this.$$.ctx[80]}}]),r}(ht);t.Stack=dt,t.alert=function(t){return pt($t(t))},t.default=Bt,t.defaultModules=Ht,t.defaultStack=zt,t.defaults=jt,t.error=function(t){return pt($t(t,"error"))},t.info=function(t){return pt($t(t,"info"))},t.notice=function(t){return pt($t(t,"notice"))},t.success=function(t){return pt($t(t,"success"))},Object.defineProperty(t,"__esModule",{value:!0})})),function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t=t||self).Sweetalert2=e()}(this,(function(){"use strict";const t=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),e="SweetAlert2:",i=t=>t.charAt(0).toUpperCase()+t.slice(1),n=t=>Array.prototype.slice.call(t),s=t=>{console.warn("".concat(e," ").concat("object"==typeof t?t.join(" "):t))},o=t=>{console.error("".concat(e," ").concat(t))},r=[],a=t=>"function"==typeof t?t():t,l=t=>t&&"function"==typeof t.toPromise,c=t=>l(t)?t.toPromise():Promise.resolve(t),u=t=>t&&Promise.resolve(t)===t,h=t=>t instanceof Element||(t=>"object"==typeof t&&t.jquery)(t);var d=t=>{const e={};for(const i in t)e[t[i]]="swal2-"+t[i];return e};const p=d(["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","default-outline","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","top-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error"]),f=d(["success","warning","info","question","error"]),m=()=>document.body.querySelector(".".concat(p.container)),g=t=>{const e=m();return e?e.querySelector(t):null},v=t=>g(".".concat(t)),y=()=>v(p.popup),b=()=>v(p.icon),_=()=>v(p.title),w=()=>v(p["html-container"]),x=()=>v(p.image),k=()=>v(p["progress-steps"]),C=()=>v(p["validation-message"]),T=()=>g(".".concat(p.actions," .").concat(p.confirm)),S=()=>g(".".concat(p.actions," .").concat(p.deny)),E=()=>g(".".concat(p.loader)),D=()=>g(".".concat(p.actions," .").concat(p.cancel)),A=()=>v(p.actions),O=()=>v(p.footer),L=()=>v(p["timer-progress-bar"]),P=()=>v(p.close),M=()=>{const t=n(y().querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])')).sort(((t,e)=>(t=parseInt(t.getAttribute("tabindex")),(e=parseInt(e.getAttribute("tabindex")))<t?1:t<e?-1:0)));var e=n(y().querySelectorAll('\n a[href],\n area[href],\n input:not([disabled]),\n select:not([disabled]),\n textarea:not([disabled]),\n button:not([disabled]),\n iframe,\n object,\n embed,\n [tabindex="0"],\n [contenteditable],\n audio[controls],\n video[controls],\n summary\n')).filter((t=>"-1"!==t.getAttribute("tabindex")));return(t=>{const e=[];for(let i=0;i<t.length;i++)-1===e.indexOf(t[i])&&e.push(t[i]);return e})(t.concat(e)).filter((t=>Q(t)))},I=()=>!$()&&!document.body.classList.contains(p["no-backdrop"]),$=()=>document.body.classList.contains(p["toast-shown"]);function N(t){var e=1<arguments.length&&void 0!==arguments[1]&&arguments[1];const i=L();Q(i)&&(e&&(i.style.transition="none",i.style.width="100%"),setTimeout((()=>{i.style.transition="width ".concat(t/1e3,"s linear"),i.style.width="0%"}),10))}const z={previousBodyPadding:null},H=(t,e)=>{if(t.textContent="",e){const i=(new DOMParser).parseFromString(e,"text/html");n(i.querySelector("head").childNodes).forEach((e=>{t.appendChild(e)})),n(i.querySelector("body").childNodes).forEach((e=>{t.appendChild(e)}))}},j=(t,e)=>{if(!e)return!1;var i=e.split(/\s+/);for(let e=0;e<i.length;e++)if(!t.classList.contains(i[e]))return!1;return!0},R=(t,e,i)=>{var o,r;if(r=e,n((o=t).classList).forEach((t=>{Object.values(p).includes(t)||Object.values(f).includes(t)||Object.values(r.showClass).includes(t)||o.classList.remove(t)})),e.customClass&&e.customClass[i]){if("string"!=typeof e.customClass[i]&&!e.customClass[i].forEach)return s("Invalid type of customClass.".concat(i,'! Expected string or iterable object, got "').concat(typeof e.customClass[i],'"'));F(t,e.customClass[i])}},q=(t,e)=>{if(!e)return null;switch(e){case"select":case"textarea":case"file":return Y(t,p[e]);case"checkbox":return t.querySelector(".".concat(p.checkbox," input"));case"radio":return t.querySelector(".".concat(p.radio," input:checked"))||t.querySelector(".".concat(p.radio," input:first-child"));case"range":return t.querySelector(".".concat(p.range," input"));default:return Y(t,p.input)}},B=t=>{var e;t.focus(),"file"!==t.type&&(e=t.value,t.value="",t.value=e)},W=(t,e,i)=>{t&&e&&(e="string"==typeof e?e.split(/\s+/).filter(Boolean):e).forEach((e=>{t.forEach?t.forEach((t=>{i?t.classList.add(e):t.classList.remove(e)})):i?t.classList.add(e):t.classList.remove(e)}))},F=(t,e)=>{W(t,e,!0)},U=(t,e)=>{W(t,e,!1)},Y=(t,e)=>{for(let i=0;i<t.childNodes.length;i++)if(j(t.childNodes[i],e))return t.childNodes[i]},V=(t,e,i)=>{(i=i==="".concat(parseInt(i))?parseInt(i):i)||0===parseInt(i)?t.style[e]="number"==typeof i?"".concat(i,"px"):i:t.style.removeProperty(e)},K=function(t){t.style.display=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"flex"},X=t=>{t.style.display="none"},G=(t,e,i,n)=>{const s=t.querySelector(e);s&&(s.style[i]=n)},Z=(t,e,i)=>{e?K(t,i):X(t)},Q=t=>!(!t||!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),J=t=>!!(t.scrollHeight>t.clientHeight),tt=t=>{const e=window.getComputedStyle(t);var i=parseFloat(e.getPropertyValue("animation-duration")||"0");t=parseFloat(e.getPropertyValue("transition-duration")||"0");return 0<i||0<t},et=()=>"undefined"==typeof window||"undefined"==typeof document,it='\n <div aria-labelledby="'.concat(p.title,'" aria-describedby="').concat(p["html-container"],'" class="').concat(p.popup,'" tabindex="-1">\n <button type="button" class="').concat(p.close,'"></button>\n <ul class="').concat(p["progress-steps"],'"></ul>\n <div class="').concat(p.icon,'"></div>\n <img class="').concat(p.image,'" />\n <h2 class="').concat(p.title,'" id="').concat(p.title,'"></h2>\n <div class="').concat(p["html-container"],'" id="').concat(p["html-container"],'"></div>\n <input class="').concat(p.input,'" />\n <input type="file" class="').concat(p.file,'" />\n <div class="').concat(p.range,'">\n <input type="range" />\n <output></output>\n </div>\n <select class="').concat(p.select,'"></select>\n <div class="').concat(p.radio,'"></div>\n <label for="').concat(p.checkbox,'" class="').concat(p.checkbox,'">\n <input type="checkbox" />\n <span class="').concat(p.label,'"></span>\n </label>\n <textarea class="').concat(p.textarea,'"></textarea>\n <div class="').concat(p["validation-message"],'" id="').concat(p["validation-message"],'"></div>\n <div class="').concat(p.actions,'">\n <div class="').concat(p.loader,'"></div>\n <button type="button" class="').concat(p.confirm,'"></button>\n <button type="button" class="').concat(p.deny,'"></button>\n <button type="button" class="').concat(p.cancel,'"></button>\n </div>\n <div class="').concat(p.footer,'"></div>\n <div class="').concat(p["timer-progress-bar-container"],'">\n <div class="').concat(p["timer-progress-bar"],'"></div>\n </div>\n </div>\n').replace(/(^|\n)\s*/g,""),nt=()=>{Ee.isVisible()&&Ee.resetValidationMessage()},st=(t,e)=>{t instanceof HTMLElement?e.appendChild(t):"object"==typeof t?((t,e)=>{t.jquery?ot(e,t):H(e,t.toString())})(t,e):t&&H(e,t)},ot=(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))},rt=(()=>{if(et())return!1;var t=document.createElement("div"),e={WebkitAnimation:"webkitAnimationEnd",OAnimation:"oAnimationEnd oanimationend",animation:"animationend"};for(const i in e)if(Object.prototype.hasOwnProperty.call(e,i)&&void 0!==t.style[i])return e[i];return!1})();function at(t,e,n){Z(t,n["show".concat(i(e),"Button")],"inline-block"),H(t,n["".concat(e,"ButtonText")]),t.setAttribute("aria-label",n["".concat(e,"ButtonAriaLabel")]),t.className=p[e],R(t,n,"".concat(e,"Button")),F(t,n["".concat(e,"ButtonClass")])}var lt={awaitingPromise:new WeakMap,promise:new WeakMap,innerParams:new WeakMap,domCache:new WeakMap};const ct=["input","file","range","select","radio","checkbox","textarea"],ut=t=>{for(let i=0;i<t.attributes.length;i++){var e=t.attributes[i].name;["type","value","style"].includes(e)||t.removeAttribute(e)}},ht=(t,e)=>{t.placeholder&&!e.inputPlaceholder||(t.placeholder=e.inputPlaceholder)},dt=(t,e,i)=>{if(i.inputLabel){t.id=p.input;const s=document.createElement("label");var n=p["input-label"];s.setAttribute("for",t.id),s.className=n,F(s,i.customClass.inputLabel),s.innerText=i.inputLabel,e.insertAdjacentElement("beforebegin",s)}},pt=t=>(t=p[t]||p.input,Y(y(),t)),ft={};ft.text=ft.email=ft.password=ft.number=ft.tel=ft.url=(t,e)=>("string"==typeof e.inputValue||"number"==typeof e.inputValue?t.value=e.inputValue:u(e.inputValue)||s('Unexpected type of inputValue! Expected "string", "number" or "Promise", got "'.concat(typeof e.inputValue,'"')),dt(t,t,e),ht(t,e),t.type=e.input,t),ft.file=(t,e)=>(dt(t,t,e),ht(t,e),t),ft.range=(t,e)=>{const i=t.querySelector("input"),n=t.querySelector("output");return i.value=e.inputValue,i.type=e.input,n.value=e.inputValue,dt(i,t,e),t},ft.select=(t,e)=>{if(t.textContent="",e.inputPlaceholder){const i=document.createElement("option");H(i,e.inputPlaceholder),i.value="",i.disabled=!0,i.selected=!0,t.appendChild(i)}return dt(t,t,e),t},ft.radio=t=>(t.textContent="",t),ft.checkbox=(t,e)=>{const i=q(y(),"checkbox");i.value=1,i.id=p.checkbox,i.checked=Boolean(e.inputValue);var n=t.querySelector("span");return H(n,e.inputPlaceholder),t},ft.textarea=(t,e)=>(t.value=e.inputValue,ht(t,e),dt(t,t,e),setTimeout((()=>{if("MutationObserver"in window){const e=parseInt(window.getComputedStyle(y()).width);new MutationObserver((()=>{var i=t.offsetWidth+(i=t,parseInt(window.getComputedStyle(i).marginLeft)+parseInt(window.getComputedStyle(i).marginRight));y().style.width=i>e?"".concat(i,"px"):null})).observe(t,{attributes:!0,attributeFilter:["style"]})}})),t);const mt=(t,e)=>{const i=w();R(i,e,"htmlContainer"),e.html?(st(e.html,i),K(i,"block")):e.text?(i.textContent=e.text,K(i,"block")):X(i),((t,e)=>{const i=y(),n=!(t=lt.innerParams.get(t))||e.input!==t.input;ct.forEach((t=>{var s=p[t];const o=Y(i,s);((t,e)=>{const i=q(y(),t);if(i){ut(i);for(const t in e)i.setAttribute(t,e[t])}})(t,e.inputAttributes),o.className=s,n&&X(o)})),e.input&&(n&&(t=>{if(!ft[t.input])return o('Unexpected type of input! Expected "text", "email", "password", "number", "tel", "select", "radio", "checkbox", "textarea", "file" or "url", got "'.concat(t.input,'"'));const e=pt(t.input),i=ft[t.input](e,t);K(i),setTimeout((()=>{B(i)}))})(e),(t=>{const e=pt(t.input);t.customClass&&F(e,t.customClass.input)})(e))})(t,e)},gt=(t,e)=>{for(const i in f)e.icon!==i&&U(t,f[i]);F(t,f[e.icon]),bt(t,e),vt(),R(t,e,"icon")},vt=()=>{const t=y();var e=window.getComputedStyle(t).getPropertyValue("background-color");const i=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let t=0;t<i.length;t++)i[t].style.backgroundColor=e},yt=(t,e)=>{t.textContent="",e.iconHtml?H(t,_t(e.iconHtml)):"success"===e.icon?H(t,'\n <div class="swal2-success-circular-line-left"></div>\n <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span>\n <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div>\n <div class="swal2-success-circular-line-right"></div>\n '):"error"===e.icon?H(t,'\n <span class="swal2-x-mark">\n <span class="swal2-x-mark-line-left"></span>\n <span class="swal2-x-mark-line-right"></span>\n </span>\n '):H(t,_t({question:"?",warning:"!",info:"i"}[e.icon]))},bt=(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"])G(t,i,"backgroundColor",e.iconColor);G(t,".swal2-success-ring","borderColor",e.iconColor)}},_t=t=>'<div class="'.concat(p["icon-content"],'">').concat(t,"</div>"),wt=(t,e)=>{((t,e)=>{var i=m();const n=y();e.toast?(V(i,"width",e.width),n.style.width="100%",n.insertBefore(E(),b())):V(n,"width",e.width),V(n,"padding",e.padding),e.background&&(n.style.background=e.background),X(C()),((t,e)=>{t.className="".concat(p.popup," ").concat(Q(t)?e.showClass.popup:""),e.toast?(F([document.documentElement,document.body],p["toast-shown"]),F(t,p.toast)):F(t,p.modal),R(t,e,"popup"),"string"==typeof e.customClass&&F(t,e.customClass),e.icon&&F(t,p["icon-".concat(e.icon)])})(n,e)})(0,e),((t,e)=>{var i,n,o=m();o&&(n=o,"string"==typeof(i=e.backdrop)?n.style.background=i:i||F([document.documentElement,document.body],p["no-backdrop"]),n=o,(i=e.position)in p?F(n,p[i]):(s('The "position" parameter is not valid, defaulting to "center"'),F(n,p.center)),i=o,!(n=e.grow)||"string"!=typeof n||(n="grow-".concat(n))in p&&F(i,p[n]),R(o,e,"container"))})(0,e),((t,e)=>{const i=k();if(!e.progressSteps||0===e.progressSteps.length)return X(i);K(i),i.textContent="",e.currentProgressStep>=e.progressSteps.length&&s("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),e.progressSteps.forEach(((t,n)=>{var s;s=t,t=document.createElement("li"),F(t,p["progress-step"]),H(t,s),i.appendChild(t),n===e.currentProgressStep&&F(t,p["active-progress-step"]),n!==e.progressSteps.length-1&&(n=(t=>{const e=document.createElement("li");return F(e,p["progress-step-line"]),t.progressStepsDistance&&(e.style.width=t.progressStepsDistance),e})(e),i.appendChild(n))}))})(0,e),((t,e)=>{var i=lt.innerParams.get(t);t=b(),i&&e.icon===i.icon?(yt(t,e),gt(t,e)):e.icon||e.iconHtml?e.icon&&-1===Object.keys(f).indexOf(e.icon)?(o('Unknown icon! Expected "success", "error", "warning", "info" or "question", got "'.concat(e.icon,'"')),X(t)):(K(t),yt(t,e),gt(t,e),F(t,e.showClass.icon)):X(t)})(t,e),((t,e)=>{const i=x();if(!e.imageUrl)return X(i);K(i,""),i.setAttribute("src",e.imageUrl),i.setAttribute("alt",e.imageAlt),V(i,"width",e.imageWidth),V(i,"height",e.imageHeight),i.className=p.image,R(i,e,"image")})(0,e),((t,e)=>{const i=_();Z(i,e.title||e.titleText,"block"),e.title&&st(e.title,i),e.titleText&&(i.innerText=e.titleText),R(i,e,"title")})(0,e),((t,e)=>{const i=P();H(i,e.closeButtonHtml),R(i,e,"closeButton"),Z(i,e.showCloseButton),i.setAttribute("aria-label",e.closeButtonAriaLabel)})(0,e),mt(t,e),((t,e)=>{var i,n,s,o,r,a=A(),l=E();(e.showConfirmButton||e.showDenyButton||e.showCancelButton?K:X)(a),R(a,e,"actions"),i=a,n=l,s=e,o=T(),r=S(),a=D(),at(o,"confirm",s),at(r,"deny",s),at(a,"cancel",s),function(t,e,i,n){if(!n.buttonsStyling)return U([t,e,i],p.styled);F([t,e,i],p.styled),n.confirmButtonColor&&(t.style.backgroundColor=n.confirmButtonColor,F(t,p["default-outline"])),n.denyButtonColor&&(e.style.backgroundColor=n.denyButtonColor,F(e,p["default-outline"])),n.cancelButtonColor&&(i.style.backgroundColor=n.cancelButtonColor,F(i,p["default-outline"]))}(o,r,a,s),s.reverseButtons&&(s.toast?(i.insertBefore(a,o),i.insertBefore(r,o)):(i.insertBefore(a,n),i.insertBefore(r,n),i.insertBefore(o,n))),H(l,e.loaderHtml),R(l,e,"loader")})(0,e),((t,e)=>{var i=O();Z(i,e.footer),e.footer&&st(e.footer,i),R(i,e,"footer")})(0,e),"function"==typeof e.didRender&&e.didRender(y())},xt=()=>T()&&T().click(),kt=t=>{let e=y();e||Ee.fire(),e=y();var i=E();$()?X(b()):((t,e)=>{const i=A(),n=E();!e&&Q(T())&&(e=T()),K(i),e&&(X(e),n.setAttribute("data-button-to-replace",e.className)),n.parentNode.insertBefore(n,e),F([t,i],p.loading)})(e,t),K(i),e.setAttribute("data-loading",!0),e.setAttribute("aria-busy",!0),e.focus()},Ct={},Tt=t=>new Promise((e=>{if(!t)return e();var i=window.scrollX,n=window.scrollY;Ct.restoreFocusTimeout=setTimeout((()=>{Ct.previousActiveElement&&Ct.previousActiveElement.focus?(Ct.previousActiveElement.focus(),Ct.previousActiveElement=null):document.body&&document.body.focus(),e()}),100),window.scrollTo(i,n)})),St=()=>{if(Ct.timeout)return(()=>{const t=L();var e=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";var i=parseInt(window.getComputedStyle(t).width);i=parseInt(e/i*100);t.style.removeProperty("transition"),t.style.width="".concat(i,"%")})(),Ct.timeout.stop()},Et=()=>{if(Ct.timeout){var t=Ct.timeout.start();return N(t),t}};let Dt=!1;const At={},Ot=t=>{for(let i=t.target;i&&i!==document;i=i.parentNode)for(const t in At){var e=i.getAttribute(t);if(e)return void At[t].fire({template:e})}},Lt={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose:void 0,didDestroy:void 0,scrollbarPadding:!0},Pt=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","willClose"],Mt={},It=["allowOutsideClick","allowEnterKey","backdrop","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],$t=t=>Object.prototype.hasOwnProperty.call(Lt,t),Nt=t=>Mt[t],zt=t=>{$t(t)||s('Unknown parameter "'.concat(t,'"'))},Ht=t=>{It.includes(t)&&s('The parameter "'.concat(t,'" is incompatible with toasts'))},jt=t=>{Nt(t)&&((t,e)=>{e='"'.concat(t,'" is deprecated and will be removed in the next major release. Please use "').concat(e,'" instead.'),r.includes(e)||(r.push(e),s(e))})(t,Nt(t))};var Rt=Object.freeze({isValidParameter:$t,isUpdatableParameter:t=>-1!==Pt.indexOf(t),isDeprecatedParameter:Nt,argsToParams:t=>{const e={};return"object"!=typeof t[0]||h(t[0])?["title","html","icon"].forEach(((i,n)=>{"string"==typeof(n=t[n])||h(n)?e[i]=n:void 0!==n&&o("Unexpected type of ".concat(i,'! Expected "string" or "Element", got ').concat(typeof n))})):Object.assign(e,t[0]),e},isVisible:()=>Q(y()),clickConfirm:xt,clickDeny:()=>S()&&S().click(),clickCancel:()=>D()&&D().click(),getContainer:m,getPopup:y,getTitle:_,getHtmlContainer:w,getImage:x,getIcon:b,getInputLabel:()=>v(p["input-label"]),getCloseButton:P,getActions:A,getConfirmButton:T,getDenyButton:S,getCancelButton:D,getLoader:E,getFooter:O,getTimerProgressBar:L,getFocusableElements:M,getValidationMessage:C,isLoading:()=>y().hasAttribute("data-loading"),fire:function(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return new this(...e)},mixin:function(t){return class extends(this){_main(e,i){return super._main(e,Object.assign({},t,i))}}},showLoading:kt,enableLoading:kt,getTimerLeft:()=>Ct.timeout&&Ct.timeout.getTimerLeft(),stopTimer:St,resumeTimer:Et,toggleTimer:()=>{var t=Ct.timeout;return t&&(t.running?St:Et)()},increaseTimer:t=>{if(Ct.timeout)return N(t=Ct.timeout.increase(t),!0),t},isTimerRunning:()=>Ct.timeout&&Ct.timeout.isRunning(),bindClickHandler:function(){At[0<arguments.length&&void 0!==arguments[0]?arguments[0]:"data-swal-template"]=this,Dt||(document.body.addEventListener("click",Ot),Dt=!0)}});function qt(){var t=lt.innerParams.get(this);if(t){const e=lt.domCache.get(this);X(e.loader),$()?t.icon&&K(b()):(t=>{const e=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));e.length?K(e[0],"inline-block"):Q(T())||Q(S())||Q(D())||X(t.actions)})(e),U([e.popup,e.actions],p.loading),e.popup.removeAttribute("aria-busy"),e.popup.removeAttribute("data-loading"),e.confirmButton.disabled=!1,e.denyButton.disabled=!1,e.cancelButton.disabled=!1}}const Bt=t=>{var e,i=t.target,n=m();return!((e=t).touches&&e.touches.length&&"stylus"===e.touches[0].touchType||t.touches&&1<t.touches.length||i!==n&&(J(n)||"INPUT"===i.tagName||"TEXTAREA"===i.tagName||J(w())&&w().contains(i)))},Wt=()=>{n(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")}))};var Ft={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};function Ut(t,e,i,n){$()?Xt(t,n):(Tt(i).then((()=>Xt(t,n))),Ct.keydownTarget.removeEventListener("keydown",Ct.keydownHandler,{capture:Ct.keydownListenerCapture}),Ct.keydownHandlerAdded=!1),/^((?!chrome|android).)*safari/i.test(navigator.userAgent)?(e.setAttribute("style","display:none !important"),e.removeAttribute("class"),e.innerHTML=""):e.remove(),I()&&(null!==z.previousBodyPadding&&(document.body.style.paddingRight="".concat(z.previousBodyPadding,"px"),z.previousBodyPadding=null),(()=>{var t;j(document.body,p.iosfix)&&(t=parseInt(document.body.style.top,10),U(document.body,p.iosfix),document.body.style.top="",document.body.scrollTop=-1*t)})(),Wt()),U([document.documentElement,document.body],[p.shown,p["height-auto"],p["no-backdrop"],p["toast-shown"]])}function Yt(t){t=void 0!==(i=t)?Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},i):{isConfirmed:!1,isDenied:!1,isDismissed:!0};const e=Ft.swalPromiseResolve.get(this);var i=(t=>{const e=y();if(!e)return!1;const i=lt.innerParams.get(t);if(!i||j(e,i.hideClass.popup))return!1;U(e,i.showClass.popup),F(e,i.hideClass.popup);const n=m();return U(n,i.showClass.backdrop),F(n,i.hideClass.backdrop),Kt(t,e,i),!0})(this);this.isAwaitingPromise()?t.isDismissed||(Vt(this),e(t)):i&&e(t)}const Vt=t=>{t.isAwaitingPromise()&&(lt.awaitingPromise.delete(t),lt.innerParams.get(t)||t._destroy())},Kt=(t,e,i)=>{var n,s,o,r=m(),a=rt&&tt(e);"function"==typeof i.willClose&&i.willClose(e),a?(n=t,s=e,o=r,a=i.returnFocus,e=i.didClose,Ct.swalCloseEventFinishedCallback=Ut.bind(null,n,o,a,e),s.addEventListener(rt,(function(t){t.target===s&&(Ct.swalCloseEventFinishedCallback(),delete Ct.swalCloseEventFinishedCallback)}))):Ut(t,r,i.returnFocus,i.didClose)},Xt=(t,e)=>{setTimeout((()=>{"function"==typeof e&&e.bind(t.params)(),t._destroy()}))};function Gt(t,e,i){const n=lt.domCache.get(t);e.forEach((t=>{n[t].disabled=i}))}function Zt(t,e){if(!t)return!1;if("radio"===t.type){const i=t.parentNode.parentNode.querySelectorAll("input");for(let t=0;t<i.length;t++)i[t].disabled=e}else t.disabled=e}class Qt{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.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date-this.started),this.remaining}increase(t){var 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}}var Jt={email:(t,e)=>/^[a-zA-Z0-9.+_-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]{2,24}$/.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 te(t){var e,i;(e=t).inputValidator||Object.keys(Jt).forEach((t=>{e.input===t&&(e.inputValidator=Jt[t])})),t.showLoaderOnConfirm&&!t.preConfirm&&s("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"),(i=t).target&&("string"!=typeof i.target||document.querySelector(i.target))&&("string"==typeof i.target||i.target.appendChild)||(s('Target parameter is not valid, defaulting to "body"'),i.target="body"),"string"==typeof t.title&&(t.title=t.title.split("\n").join("<br />")),(t=>{var e=(()=>{const t=m();return!!t&&(t.remove(),U([document.documentElement,document.body],[p["no-backdrop"],p["toast-shown"],p["has-column"]]),!0)})();if(et())o("SweetAlert2 requires document to initialize");else{const i=document.createElement("div");i.className=p.container,e&&F(i,p["no-transition"]),H(i,it);const n="string"==typeof(e=t.target)?document.querySelector(e):e;n.appendChild(i),(t=>{const e=y();e.setAttribute("role",t.toast?"alert":"dialog"),e.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||e.setAttribute("aria-modal","true")})(t),t=n,"rtl"===window.getComputedStyle(t).direction&&F(m(),p.rtl),(()=>{const t=y(),e=Y(t,p.input),i=Y(t,p.file),n=t.querySelector(".".concat(p.range," input")),s=t.querySelector(".".concat(p.range," output")),o=Y(t,p.select),r=t.querySelector(".".concat(p.checkbox," input")),a=Y(t,p.textarea);e.oninput=nt,i.onchange=nt,o.onchange=nt,r.onchange=nt,a.oninput=nt,n.oninput=()=>{nt(),s.value=n.value},n.onchange=()=>{nt(),n.nextSibling.value=n.value}})()}})(t)}const ee=["swal-title","swal-html","swal-footer"],ie=t=>(t="string"==typeof t.template?document.querySelector(t.template):t.template)?((t=>{const e=ee.concat(["swal-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);n(t.children).forEach((t=>{const i=t.tagName.toLowerCase();-1===e.indexOf(i)&&s("Unrecognized element <".concat(i,">"))}))})(t=t.content),Object.assign((t=>{const e={};return n(t.querySelectorAll("swal-param")).forEach((t=>{ne(t,["name","value"]);const i=t.getAttribute("name");let n=t.getAttribute("value");"boolean"==typeof Lt[i]&&"false"===n&&(n=!1),"object"==typeof Lt[i]&&(n=JSON.parse(n)),e[i]=n})),e})(t),(t=>{const e={};return n(t.querySelectorAll("swal-button")).forEach((t=>{ne(t,["type","color","aria-label"]);const n=t.getAttribute("type");e["".concat(n,"ButtonText")]=t.innerHTML,e["show".concat(i(n),"Button")]=!0,t.hasAttribute("color")&&(e["".concat(n,"ButtonColor")]=t.getAttribute("color")),t.hasAttribute("aria-label")&&(e["".concat(n,"ButtonAriaLabel")]=t.getAttribute("aria-label"))})),e})(t),(t=>{const e={},i=t.querySelector("swal-image");return i&&(ne(i,["src","width","height","alt"]),i.hasAttribute("src")&&(e.imageUrl=i.getAttribute("src")),i.hasAttribute("width")&&(e.imageWidth=i.getAttribute("width")),i.hasAttribute("height")&&(e.imageHeight=i.getAttribute("height")),i.hasAttribute("alt")&&(e.imageAlt=i.getAttribute("alt"))),e})(t),(t=>{const e={},i=t.querySelector("swal-icon");return i&&(ne(i,["type","color"]),i.hasAttribute("type")&&(e.icon=i.getAttribute("type")),i.hasAttribute("color")&&(e.iconColor=i.getAttribute("color")),e.iconHtml=i.innerHTML),e})(t),(t=>{const e={},i=t.querySelector("swal-input");i&&(ne(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 s=t.querySelectorAll("swal-input-option");return s.length&&(e.inputOptions={},n(s).forEach((t=>{ne(t,["value"]);const i=t.getAttribute("value"),n=t.innerHTML;e.inputOptions[i]=n}))),e})(t),((t,e)=>{const i={};for(const n in e){const s=e[n],o=t.querySelector(s);o&&(ne(o,[]),i[s.replace(/^swal-/,"")]=o.innerHTML.trim())}return i})(t,ee))):{},ne=(t,e)=>{n(t.attributes).forEach((i=>{-1===e.indexOf(i.name)&&s(['Unrecognized attribute "'.concat(i.name,'" on <').concat(t.tagName.toLowerCase(),">."),"".concat(e.length?"Allowed attributes are: ".concat(e.join(", ")):"To set the value, use HTML within the element.")])}))},se=t=>{const e=m(),i=y();"function"==typeof t.willOpen&&t.willOpen(i);var s=window.getComputedStyle(document.body).overflowY;((t,e,i)=>{F(t,i.showClass.backdrop),e.style.setProperty("opacity","0","important"),K(e,"grid"),setTimeout((()=>{F(e,i.showClass.popup),e.style.removeProperty("opacity")}),10),F([document.documentElement,document.body],p.shown),i.heightAuto&&i.backdrop&&!i.toast&&F([document.documentElement,document.body],p["height-auto"])})(e,i,t),setTimeout((()=>{((t,e)=>{rt&&tt(e)?(t.style.overflowY="hidden",e.addEventListener(rt,oe)):t.style.overflowY="auto"})(e,i)}),10),I()&&(((t,e,i)=>{(()=>{var t;(/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream||"MacIntel"===navigator.platform&&1<navigator.maxTouchPoints)&&!j(document.body,p.iosfix)&&(t=document.body.scrollTop,document.body.style.top="".concat(-1*t,"px"),F(document.body,p.iosfix),(()=>{const t=m();let e;t.ontouchstart=t=>{e=Bt(t)},t.ontouchmove=t=>{e&&(t.preventDefault(),t.stopPropagation())}})(),(()=>{if(!navigator.userAgent.match(/(CriOS|FxiOS|EdgiOS|YaBrowser|UCBrowser)/i)){const t=44;y().scrollHeight>window.innerHeight-t&&(m().style.paddingBottom="".concat(t,"px"))}})())})(),e&&"hidden"!==i&&null===z.previousBodyPadding&&document.body.scrollHeight>window.innerHeight&&(z.previousBodyPadding=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight="".concat(z.previousBodyPadding+(()=>{const t=document.createElement("div");t.className=p["scrollbar-measure"],document.body.appendChild(t);var e=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),e})(),"px")),setTimeout((()=>{t.scrollTop=0}))})(e,t.scrollbarPadding,s),n(document.body.children).forEach((t=>{t===m()||t.contains(m())||(t.hasAttribute("aria-hidden")&&t.setAttribute("data-previous-aria-hidden",t.getAttribute("aria-hidden")),t.setAttribute("aria-hidden","true"))}))),$()||Ct.previousActiveElement||(Ct.previousActiveElement=document.activeElement),"function"==typeof t.didOpen&&setTimeout((()=>t.didOpen(i))),U(e,p["no-transition"])},oe=t=>{const e=y();if(t.target===e){const t=m();e.removeEventListener(rt,oe),t.style.overflowY="auto"}},re={select:(t,e,i)=>{const n=Y(t,p.select),s=(t,e,n)=>{const s=document.createElement("option");s.value=n,H(s,e),s.selected=le(n,i.inputValue),t.appendChild(s)};e.forEach((t=>{var e=t[0];const i=t[1];if(Array.isArray(i)){const t=document.createElement("optgroup");t.label=e,t.disabled=!1,n.appendChild(t),i.forEach((e=>s(t,e[1],e[0])))}else s(n,i,e)})),n.focus()},radio:(t,e,i)=>{const n=Y(t,p.radio);e.forEach((t=>{var e=t[0];t=t[1];const s=document.createElement("input"),o=document.createElement("label");s.type="radio",s.name=p.radio,s.value=e,le(e,i.inputValue)&&(s.checked=!0);const r=document.createElement("span");H(r,t),r.className=p.label,o.appendChild(s),o.appendChild(r),n.appendChild(o)}));const s=n.querySelectorAll("input");s.length&&s[0].focus()}},ae=t=>{const e=[];return"undefined"!=typeof Map&&t instanceof Map?t.forEach(((t,i)=>{let n=t;"object"==typeof n&&(n=ae(n)),e.push([i,n])})):Object.keys(t).forEach((i=>{let n=t[i];"object"==typeof n&&(n=ae(n)),e.push([i,n])})),e},le=(t,e)=>e&&e.toString()===t.toString(),ce=(t,e)=>{var i=lt.innerParams.get(t),n=((t,e)=>{const i=t.getInput();if(!i)return null;switch(e.input){case"checkbox":return i.checked?1:0;case"radio":return(n=i).checked?n.value:null;case"file":return(n=i).files.length?null!==n.getAttribute("multiple")?n.files:n.files[0]:null;default:return e.inputAutoTrim?i.value.trim():i.value}var n})(t,i);i.inputValidator?ue(t,n,e):t.getInput().checkValidity()?("deny"===e?he:fe)(t,n):(t.enableButtons(),t.showValidationMessage(i.validationMessage))},ue=(t,e,i)=>{const n=lt.innerParams.get(t);t.disableInput();Promise.resolve().then((()=>c(n.inputValidator(e,n.validationMessage)))).then((n=>{t.enableButtons(),t.enableInput(),n?t.showValidationMessage(n):("deny"===i?he:fe)(t,e)}))},he=(t,e)=>{const i=lt.innerParams.get(t||void 0);if(i.showLoaderOnDeny&&kt(S()),i.preDeny){lt.awaitingPromise.set(t||void 0,!0);Promise.resolve().then((()=>c(i.preDeny(e,i.validationMessage)))).then((i=>{!1===i?t.hideLoading():t.closePopup({isDenied:!0,value:void 0===i?e:i})})).catch((e=>pe(t||void 0,e)))}else t.closePopup({isDenied:!0,value:e})},de=(t,e)=>{t.closePopup({isConfirmed:!0,value:e})},pe=(t,e)=>{t.rejectPromise(e)},fe=(t,e)=>{const i=lt.innerParams.get(t||void 0);if(i.showLoaderOnConfirm&&kt(),i.preConfirm){t.resetValidationMessage(),lt.awaitingPromise.set(t||void 0,!0);Promise.resolve().then((()=>c(i.preConfirm(e,i.validationMessage)))).then((i=>{Q(C())||!1===i?t.hideLoading():de(t,void 0===i?e:i)})).catch((e=>pe(t||void 0,e)))}else de(t,e)},me=(t,e,i)=>{const n=M();if(n.length)return(e+=i)===n.length?e=0:-1===e&&(e=n.length-1),n[e].focus();y().focus()},ge=["ArrowRight","ArrowDown"],ve=["ArrowLeft","ArrowUp"],ye=(t,e,i)=>{e.isComposing||e.target&&t.getInput()&&e.target.outerHTML===t.getInput().outerHTML&&(["textarea","file"].includes(i.input)||(xt(),e.preventDefault()))},be=(t,e)=>{var i=t.target,n=M();let s=-1;for(let t=0;t<n.length;t++)if(i===n[t]){s=t;break}t.shiftKey?me(0,s,-1):me(0,s,1),t.stopPropagation(),t.preventDefault()},_e=t=>{if([T(),S(),D()].includes(document.activeElement)){t=ge.includes(t)?"nextElementSibling":"previousElementSibling";const e=document.activeElement[t];e&&e.focus()}},we=(e,i,n)=>{a(i.allowEscapeKey)&&(e.preventDefault(),n(t.esc))};let xe=!1;const ke=t=>{t.isAwaitingPromise()?(Ce(lt,t),lt.awaitingPromise.set(t,!0)):(Ce(Ft,t),Ce(lt,t))},Ce=(t,e)=>{for(const i in t)t[i].delete(e)};let Te;d=Object.freeze({hideLoading:qt,disableLoading:qt,getInput:function(t){var e=lt.innerParams.get(t||this);return(t=lt.domCache.get(t||this))?q(t.popup,e.input):null},close:Yt,isAwaitingPromise:function(){return!!lt.awaitingPromise.get(this)},rejectPromise:function(t){const e=Ft.swalPromiseReject.get(this);Vt(this),e&&e(t)},closePopup:Yt,closeModal:Yt,closeToast:Yt,enableButtons:function(){Gt(this,["confirmButton","denyButton","cancelButton"],!1)},disableButtons:function(){Gt(this,["confirmButton","denyButton","cancelButton"],!0)},enableInput:function(){return Zt(this.getInput(),!1)},disableInput:function(){return Zt(this.getInput(),!0)},showValidationMessage:function(t){const e=lt.domCache.get(this);var i=lt.innerParams.get(this);H(e.validationMessage,t),e.validationMessage.className=p["validation-message"],i.customClass&&i.customClass.validationMessage&&F(e.validationMessage,i.customClass.validationMessage),K(e.validationMessage);const n=this.getInput();n&&(n.setAttribute("aria-invalid",!0),n.setAttribute("aria-describedby",p["validation-message"]),B(n),F(n,p.inputerror))},resetValidationMessage:function(){var t=lt.domCache.get(this);t.validationMessage&&X(t.validationMessage);const e=this.getInput();e&&(e.removeAttribute("aria-invalid"),e.removeAttribute("aria-describedby"),U(e,p.inputerror))},getProgressSteps:function(){return lt.domCache.get(this).progressSteps},_main:function(e){var i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};(t=>{!t.backdrop&&t.allowOutsideClick&&s('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`');for(const e in t)zt(e),t.toast&&Ht(e),jt(e)})(Object.assign({},i,e)),Ct.currentInstance&&(Ct.currentInstance._destroy(),I()&&Wt()),Ct.currentInstance=this,te(e=((t,e)=>{const i=ie(t),n=Object.assign({},Lt,e,i,t);return n.showClass=Object.assign({},Lt.showClass,n.showClass),n.hideClass=Object.assign({},Lt.hideClass,n.hideClass),n})(e,i)),Object.freeze(e),Ct.timeout&&(Ct.timeout.stop(),delete Ct.timeout),clearTimeout(Ct.restoreFocusTimeout);var n,r,h;i=(t=>{const e={popup:y(),container:m(),actions:A(),confirmButton:T(),denyButton:S(),cancelButton:D(),loader:E(),closeButton:P(),validationMessage:C(),progressSteps:k()};return lt.domCache.set(t,e),e})(this);return wt(this,e),lt.innerParams.set(this,e),n=this,r=i,h=e,new Promise(((e,i)=>{const s=t=>{n.closePopup({isDismissed:!0,dismiss:t})};Ft.swalPromiseResolve.set(n,e),Ft.swalPromiseReject.set(n,i),r.confirmButton.onclick=()=>(t=>{var e=lt.innerParams.get(t);t.disableButtons(),e.input?ce(t,"confirm"):fe(t,!0)})(n),r.denyButton.onclick=()=>(t=>{var e=lt.innerParams.get(t);t.disableButtons(),e.returnInputValueOnDeny?ce(t,"deny"):he(t,!1)})(n),r.cancelButton.onclick=()=>((e,i)=>{e.disableButtons(),i(t.cancel)})(n,s),r.closeButton.onclick=()=>s(t.close),((e,i,n)=>{var s,o,r,l,c,u,h;lt.innerParams.get(e).toast?(u=e,h=n,i.popup.onclick=()=>{var e=lt.innerParams.get(u);e.showConfirmButton||e.showDenyButton||e.showCancelButton||e.showCloseButton||e.timer||e.input||h(t.close)}):((c=i).popup.onmousedown=()=>{c.container.onmouseup=function(t){c.container.onmouseup=void 0,t.target===c.container&&(xe=!0)}},(l=i).container.onmousedown=()=>{l.popup.onmouseup=function(t){l.popup.onmouseup=void 0,t.target!==l.popup&&!l.popup.contains(t.target)||(xe=!0)}},s=e,r=n,(o=i).container.onclick=e=>{var i=lt.innerParams.get(s);xe?xe=!1:e.target===o.container&&a(i.allowOutsideClick)&&r(t.backdrop)})})(n,r,s),((t,e,i,n)=>{e.keydownTarget&&e.keydownHandlerAdded&&(e.keydownTarget.removeEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!1),i.toast||(e.keydownHandler=e=>((t,e,i)=>{const n=lt.innerParams.get(t);n&&(n.stopKeydownPropagation&&e.stopPropagation(),"Enter"===e.key?ye(t,e,n):"Tab"===e.key?be(e,n):[...ge,...ve].includes(e.key)?_e(e.key):"Escape"===e.key&&we(e,n,i))})(t,e,n),e.keydownTarget=i.keydownListenerCapture?window:y(),e.keydownListenerCapture=i.keydownListenerCapture,e.keydownTarget.addEventListener("keydown",e.keydownHandler,{capture:e.keydownListenerCapture}),e.keydownHandlerAdded=!0)})(n,Ct,h,s),((t,e)=>{"select"===e.input||"radio"===e.input?((t,e)=>{const i=y(),n=t=>re[e.input](i,ae(t),e);l(e.inputOptions)||u(e.inputOptions)?(kt(T()),c(e.inputOptions).then((e=>{t.hideLoading(),n(e)}))):"object"==typeof e.inputOptions?n(e.inputOptions):o("Unexpected type of inputOptions! Expected object, Map or Promise, got ".concat(typeof e.inputOptions))})(t,e):["text","email","number","tel","textarea"].includes(e.input)&&(l(e.inputValue)||u(e.inputValue))&&(kt(T()),((t,e)=>{const i=t.getInput();X(i),c(e.inputValue).then((n=>{i.value="number"===e.input?parseFloat(n)||0:"".concat(n),K(i),i.focus(),t.hideLoading()})).catch((e=>{o("Error in inputValue promise: ".concat(e)),i.value="",K(i),i.focus(),t.hideLoading()}))})(t,e))})(n,h),se(h),((t,e,i)=>{var n=L();X(n),e.timer&&(t.timeout=new Qt((()=>{i("timer"),delete t.timeout}),e.timer),e.timerProgressBar&&(K(n),setTimeout((()=>{t.timeout&&t.timeout.running&&N(e.timer)}))))})(Ct,h,s),((t,e)=>{if(!e.toast)a(e.allowEnterKey)?((t,e)=>e.focusDeny&&Q(t.denyButton)?(t.denyButton.focus(),!0):e.focusCancel&&Q(t.cancelButton)?(t.cancelButton.focus(),!0):!(!e.focusConfirm||!Q(t.confirmButton)||(t.confirmButton.focus(),0)))(t,e)||me(0,-1,1):document.activeElement&&"function"==typeof document.activeElement.blur&&document.activeElement.blur()})(r,h),setTimeout((()=>{r.container.scrollTop=0}))}))},update:function(t){var e=y(),i=lt.innerParams.get(this);if(!e||j(e,i.hideClass.popup))return s("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 n={};Object.keys(t).forEach((e=>{Ee.isUpdatableParameter(e)?n[e]=t[e]:s('Invalid parameter to update: "'.concat(e,'". Updatable params are listed here: https://github.com/sweetalert2/sweetalert2/blob/master/src/utils/params.js\n\nIf you think this parameter should be updatable, request it here: https://github.com/sweetalert2/sweetalert2/issues/new?template=02_feature_request.md'))})),i=Object.assign({},i,n),wt(this,i),lt.innerParams.set(this,i),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})},_destroy:function(){var t=lt.domCache.get(this);const e=lt.innerParams.get(this);e?(t.popup&&Ct.swalCloseEventFinishedCallback&&(Ct.swalCloseEventFinishedCallback(),delete Ct.swalCloseEventFinishedCallback),Ct.deferDisposalTimer&&(clearTimeout(Ct.deferDisposalTimer),delete Ct.deferDisposalTimer),"function"==typeof e.didDestroy&&e.didDestroy(),ke(t=this),delete t.params,delete Ct.keydownHandler,delete Ct.keydownTarget,delete Ct.currentInstance):ke(this)}});class Se{constructor(){if("undefined"!=typeof window){Te=this;for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];var n=Object.freeze(this.constructor.argsToParams(e));Object.defineProperties(this,{params:{value:n,writable:!1,enumerable:!0,configurable:!0}}),n=this._main(this.params),lt.promise.set(this,n)}}then(t){return lt.promise.get(this).then(t)}finally(t){return lt.promise.get(this).finally(t)}}Object.assign(Se.prototype,d),Object.assign(Se,Rt),Object.keys(d).forEach((t=>{Se[t]=function(){if(Te)return Te[t](...arguments)}})),Se.DismissReason=t,Se.version="11.1.10";const Ee=Se;return Ee.default=Ee,Ee})),void 0!==this&&this.Sweetalert2&&(this.swal=this.sweetAlert=this.Swal=this.SweetAlert=this.Sweetalert2),"undefined"!=typeof document&&function(t,e){var i=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(i),i.styleSheet)i.styleSheet.disabled||(i.styleSheet.cssText=e);else try{i.innerHTML=e}catch(t){i.innerText=e}}(document,'.swal2-popup.swal2-toast{box-sizing:border-box;grid-column:1/4!important;grid-row:1/4!important;grid-template-columns:1fr 99fr 1fr;padding:1em;overflow-y:hidden;background:#fff;box-shadow:0 0 1px rgba(0,0,0,.075),0 1px 2px rgba(0,0,0,.075),1px 2px 4px rgba(0,0,0,.075),1px 3px 8px rgba(0,0,0,.075),2px 4px 16px rgba(0,0,0,.075);pointer-events:all}.swal2-popup.swal2-toast>*{grid-column:2}.swal2-popup.swal2-toast .swal2-title{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-loading{justify-content:center}.swal2-popup.swal2-toast .swal2-input{height:2em;margin:.5em;font-size:1em}.swal2-popup.swal2-toast .swal2-validation-message{font-size:1em}.swal2-popup.swal2-toast .swal2-footer{margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-popup.swal2-toast .swal2-close{grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-popup.swal2-toast .swal2-html-container{margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-popup.swal2-toast .swal2-html-container:empty{padding:0}.swal2-popup.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-popup.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-popup.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:700}.swal2-popup.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-popup.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-popup.swal2-toast .swal2-actions{justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-popup.swal2-toast .swal2-styled{margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-popup.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;transform:rotate(45deg);border-radius:50%}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.8em;left:-.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-popup.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-popup.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-popup.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-toast-animate-success-line-tip .75s;animation:swal2-toast-animate-success-line-tip .75s}.swal2-popup.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-toast-animate-success-line-long .75s;animation:swal2-toast-animate-success-line-long .75s}.swal2-popup.swal2-toast.swal2-show{-webkit-animation:swal2-toast-show .5s;animation:swal2-toast-show .5s}.swal2-popup.swal2-toast.swal2-hide{-webkit-animation:swal2-toast-hide .1s forwards;animation:swal2-toast-hide .1s forwards}.swal2-container{display:grid;position:fixed;z-index:1060;top:0;right:0;bottom:0;left:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto) minmax(-webkit-min-content,auto);grid-template-rows:minmax(min-content,auto) minmax(min-content,auto) minmax(min-content,auto);height:100%;padding:.625em;overflow-x:hidden;transition:background-color .1s;-webkit-overflow-scrolling:touch}.swal2-container.swal2-backdrop-show,.swal2-container.swal2-noanimation{background:rgba(0,0,0,.4)}.swal2-container.swal2-backdrop-hide{background:0 0!important}.swal2-container.swal2-bottom-start,.swal2-container.swal2-center-start,.swal2-container.swal2-top-start{grid-template-columns:minmax(0,1fr) auto auto}.swal2-container.swal2-bottom,.swal2-container.swal2-center,.swal2-container.swal2-top{grid-template-columns:auto minmax(0,1fr) auto}.swal2-container.swal2-bottom-end,.swal2-container.swal2-center-end,.swal2-container.swal2-top-end{grid-template-columns:auto auto minmax(0,1fr)}.swal2-container.swal2-top-start>.swal2-popup{align-self:start}.swal2-container.swal2-top>.swal2-popup{grid-column:2;align-self:start;justify-self:center}.swal2-container.swal2-top-end>.swal2-popup,.swal2-container.swal2-top-right>.swal2-popup{grid-column:3;align-self:start;justify-self:end}.swal2-container.swal2-center-left>.swal2-popup,.swal2-container.swal2-center-start>.swal2-popup{grid-row:2;align-self:center}.swal2-container.swal2-center>.swal2-popup{grid-column:2;grid-row:2;align-self:center;justify-self:center}.swal2-container.swal2-center-end>.swal2-popup,.swal2-container.swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;align-self:center;justify-self:end}.swal2-container.swal2-bottom-left>.swal2-popup,.swal2-container.swal2-bottom-start>.swal2-popup{grid-column:1;grid-row:3;align-self:end}.swal2-container.swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;justify-self:center;align-self:end}.swal2-container.swal2-bottom-end>.swal2-popup,.swal2-container.swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;align-self:end;justify-self:end}.swal2-container.swal2-grow-fullscreen>.swal2-popup,.swal2-container.swal2-grow-row>.swal2-popup{grid-column:1/4;width:100%}.swal2-container.swal2-grow-column>.swal2-popup,.swal2-container.swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}.swal2-container.swal2-no-transition{transition:none!important}.swal2-popup{display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0,100%);width:32em;max-width:100%;padding:0 0 1.25em;border:none;border-radius:5px;background:#fff;color:#545454;font-family:inherit;font-size:1rem}.swal2-popup:focus{outline:0}.swal2-popup.swal2-loading{overflow-y:hidden}.swal2-title{position:relative;max-width:100%;margin:0;padding:.8em 1em 0;color:#595959;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word}.swal2-actions{display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}.swal2-actions:not(.swal2-loading) .swal2-styled[disabled]{opacity:.4}.swal2-actions:not(.swal2-loading) .swal2-styled:hover{background-image:linear-gradient(rgba(0,0,0,.1),rgba(0,0,0,.1))}.swal2-actions:not(.swal2-loading) .swal2-styled:active{background-image:linear-gradient(rgba(0,0,0,.2),rgba(0,0,0,.2))}.swal2-loader{display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;-webkit-animation:swal2-rotate-loading 1.5s linear 0s infinite normal;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 transparent #2778c4 transparent}.swal2-styled{margin:.3125em;padding:.625em 1.1em;transition:box-shadow .1s;box-shadow:0 0 0 3px transparent;font-weight:500}.swal2-styled:not([disabled]){cursor:pointer}.swal2-styled.swal2-confirm{border:0;border-radius:.25em;background:initial;background-color:#7367f0;color:#fff;font-size:1em}.swal2-styled.swal2-confirm:focus{box-shadow:0 0 0 3px rgba(115,103,240,.5)}.swal2-styled.swal2-deny{border:0;border-radius:.25em;background:initial;background-color:#ea5455;color:#fff;font-size:1em}.swal2-styled.swal2-deny:focus{box-shadow:0 0 0 3px rgba(234,84,85,.5)}.swal2-styled.swal2-cancel{border:0;border-radius:.25em;background:initial;background-color:#6e7d88;color:#fff;font-size:1em}.swal2-styled.swal2-cancel:focus{box-shadow:0 0 0 3px rgba(110,125,136,.5)}.swal2-styled.swal2-default-outline:focus{box-shadow:0 0 0 3px rgba(100,150,200,.5)}.swal2-styled:focus{outline:0}.swal2-styled::-moz-focus-inner{border:0}.swal2-footer{justify-content:center;margin:1em 0 0;padding:1em 1em 0;border-top:1px solid #eee;color:#545454;font-size:1em}.swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto!important;height:.25em;overflow:hidden;border-bottom-right-radius:5px;border-bottom-left-radius:5px}.swal2-timer-progress-bar{width:100%;height:.25em;background:rgba(0,0,0,.2)}.swal2-image{max-width:100%;margin:2em auto 1em}.swal2-close{z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:color .1s,box-shadow .1s;border:none;border-radius:5px;background:0 0;color:#ccc;font-family:serif;font-family:monospace;font-size:2.5em;cursor:pointer;justify-self:end}.swal2-close:hover{transform:none;background:0 0;color:#f27474}.swal2-close:focus{outline:0;box-shadow:inset 0 0 0 3px rgba(100,150,200,.5)}.swal2-close::-moz-focus-inner{border:0}.swal2-html-container{z-index:1;justify-content:center;margin:1em 1.6em .3em;padding:0;overflow:auto;color:#545454;font-size:1.125em;font-weight:400;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word}.swal2-checkbox,.swal2-file,.swal2-input,.swal2-radio,.swal2-select,.swal2-textarea{margin:1em 2em 0}.swal2-file,.swal2-input,.swal2-textarea{box-sizing:border-box;width:auto;transition:border-color .1s,box-shadow .1s;border:1px solid #d9d9d9;border-radius:.1875em;background:inherit;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px transparent;color:inherit;font-size:1.125em}.swal2-file.swal2-inputerror,.swal2-input.swal2-inputerror,.swal2-textarea.swal2-inputerror{border-color:#f27474!important;box-shadow:0 0 2px #f27474!important}.swal2-file:focus,.swal2-input:focus,.swal2-textarea:focus{border:1px solid #b4dbed;outline:0;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5)}.swal2-file::-moz-placeholder,.swal2-input::-moz-placeholder,.swal2-textarea::-moz-placeholder{color:#ccc}.swal2-file:-ms-input-placeholder,.swal2-input:-ms-input-placeholder,.swal2-textarea:-ms-input-placeholder{color:#ccc}.swal2-file::placeholder,.swal2-input::placeholder,.swal2-textarea::placeholder{color:#ccc}.swal2-range{margin:1em 2em 0;background:#fff}.swal2-range input{width:80%}.swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}.swal2-range input,.swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}.swal2-input{height:2.625em;padding:0 .75em}.swal2-file{width:75%;margin-right:auto;margin-left:auto;background:inherit;font-size:1.125em}.swal2-textarea{height:6.75em;padding:.75em}.swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:inherit;color:inherit;font-size:1.125em}.swal2-checkbox,.swal2-radio{align-items:center;justify-content:center;background:#fff;color:inherit}.swal2-checkbox label,.swal2-radio label{margin:0 .6em;font-size:1.125em}.swal2-checkbox input,.swal2-radio input{flex-shrink:0;margin:0 .4em}.swal2-input-label{display:flex;justify-content:center;margin:1em auto 0}.swal2-validation-message{align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:#f0f0f0;color:#666;font-size:1em;font-weight:300}.swal2-validation-message::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}.swal2-icon{position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;border:.25em solid transparent;border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}.swal2-icon.swal2-error{border-color:#f27474;color:#f27474}.swal2-icon.swal2-error .swal2-x-mark{position:relative;flex-grow:1}.swal2-icon.swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}.swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}.swal2-icon.swal2-error.swal2-icon-show{-webkit-animation:swal2-animate-error-icon .5s;animation:swal2-animate-error-icon .5s}.swal2-icon.swal2-error.swal2-icon-show .swal2-x-mark{-webkit-animation:swal2-animate-error-x-mark .5s;animation:swal2-animate-error-x-mark .5s}.swal2-icon.swal2-warning{border-color:#facea8;color:#f8bb86}.swal2-icon.swal2-info{border-color:#9de0f6;color:#3fc3ee}.swal2-icon.swal2-question{border-color:#c9dae1;color:#87adbd}.swal2-icon.swal2-success{border-color:#a5dc86;color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;transform:rotate(45deg);border-radius:50%}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=left]{top:-.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}.swal2-icon.swal2-success [class^=swal2-success-circular-line][class$=right]{top:-.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}.swal2-icon.swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-.25em;left:-.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}.swal2-icon.swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}.swal2-icon.swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}.swal2-icon.swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}.swal2-icon.swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-tip{-webkit-animation:swal2-animate-success-line-tip .75s;animation:swal2-animate-success-line-tip .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-line-long{-webkit-animation:swal2-animate-success-line-long .75s;animation:swal2-animate-success-line-long .75s}.swal2-icon.swal2-success.swal2-icon-show .swal2-success-circular-line-right{-webkit-animation:swal2-rotate-success-circular-line 4.25s ease-in;animation:swal2-rotate-success-circular-line 4.25s ease-in}.swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:inherit;font-weight:600}.swal2-progress-steps li{display:inline-block;position:relative}.swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:#add8e6;color:#fff}.swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:#add8e6}.swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}[class^=swal2]{-webkit-tap-highlight-color:transparent}.swal2-show{-webkit-animation:swal2-show .3s;animation:swal2-show .3s}.swal2-hide{-webkit-animation:swal2-hide .15s forwards;animation:swal2-hide .15s forwards}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}@-webkit-keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@keyframes swal2-toast-show{0%{transform:translateY(-.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0)}}@-webkit-keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@-webkit-keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@-webkit-keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}@-webkit-keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@keyframes swal2-show{0%{transform:scale(.7)}45%{transform:scale(1.05)}80%{transform:scale(.95)}100%{transform:scale(1)}}@-webkit-keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(.5);opacity:0}}@-webkit-keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@-webkit-keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@-webkit-keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@-webkit-keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(.4);opacity:0}50%{margin-top:1.625em;transform:scale(.4);opacity:0}80%{margin-top:-.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@-webkit-keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}100%{transform:rotateX(0);opacity:1}}@-webkit-keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes swal2-rotate-loading{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto!important}body.swal2-no-backdrop .swal2-container{background-color:transparent!important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px rgba(0,0,0,.4)}@media print{body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown){overflow-y:scroll!important}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop):not(.swal2-toast-shown) .swal2-container{position:static!important}}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:transparent;pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{top:0;right:auto;bottom:auto;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{top:0;right:0;bottom:auto;left:auto}body.swal2-toast-shown .swal2-container.swal2-top-left,body.swal2-toast-shown .swal2-container.swal2-top-start{top:0;right:auto;bottom:auto;left:0}body.swal2-toast-shown .swal2-container.swal2-center-left,body.swal2-toast-shown .swal2-container.swal2-center-start{top:50%;right:auto;bottom:auto;left:0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{top:50%;right:auto;bottom:auto;left:50%;transform:translate(-50%,-50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{top:50%;right:0;bottom:auto;left:auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-left,body.swal2-toast-shown .swal2-container.swal2-bottom-start{top:auto;right:auto;bottom:0;left:0}body.swal2-toast-shown .swal2-container.swal2-bottom{top:auto;right:auto;bottom:0;left:50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{top:auto;right:0;bottom:0;left:auto}'),t=this,e=function(){"use strict";function t(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function e(e){for(var i=1;i<arguments.length;i++){var s=null!=arguments[i]?arguments[i]:{};i%2?t(Object(s),!0).forEach((function(t){n(e,t,s[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(s)):t(Object(s)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(s,t))}))}return e}function i(t){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i(t)}function n(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function s(t){return function(t){if(Array.isArray(t))return r(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||o(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o(t,e){if(t){if("string"==typeof t)return r(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var a=function(t){return"string"==typeof t?document.querySelector(t):t()},l=function(t,e){var i="string"==typeof t?document.createElement(t):t;for(var n in e){var s=e[n];if("inside"===n)s.append(i);else if("dest"===n)a(s[0]).insertAdjacentElement(s[1],i);else if("around"===n){var o=s;o.parentNode.insertBefore(i,o),i.append(o),null!=o.getAttribute("autofocus")&&o.focus()}else n in i?i[n]=s:i.setAttribute(n,s)}return i},c=function(t,e){return t=String(t).toLowerCase(),e?t.normalize("NFD").replace(/[\u0300-\u036f]/g,"").normalize("NFC"):t},u=function(t,i){return l("mark",e({innerHTML:t},"string"==typeof i&&{class:i})).outerHTML},h=function(t,e){e.input.dispatchEvent(new CustomEvent(t,{bubbles:!0,detail:e.feedback,cancelable:!0}))},d=function(t,e,i){var n=i||{},s=n.mode,o=n.diacritics,r=n.highlight,a=c(e,o);if(e=String(e),t=c(t,o),"loose"===s){var l=(t=t.replace(/ /g,"")).length,h=0,d=Array.from(e).map((function(e,i){return h<l&&a[i]===t[h]&&(e=r?u(e,r):e,h++),e})).join("");if(h===l)return d}else{var p=a.indexOf(t);if(~p)return t=e.substring(p,p+t.length),r?e.replace(t,u(t,r)):e}},p=function(t,e){return new Promise((function(i,n){var s;return(s=t.data).cache&&s.store?i():new Promise((function(t,i){return"function"==typeof s.src?new Promise((function(t,i){return"AsyncFunction"===s.src.constructor.name?s.src(e).then(t,i):t(s.src(e))})).then(t,i):t(s.src)})).then((function(e){try{return t.feedback=s.store=e,h("response",t),i()}catch(t){return n(t)}}),n)}))},f=function(t,e){var i=e.data,n=e.searchEngine,s=[];i.store.forEach((function(r,a){var l=function(i){var o=i?r[i]:r,a="function"==typeof n?n(t,o):d(t,o,{mode:n,diacritics:e.diacritics,highlight:e.resultItem.highlight});if(a){var l={match:a,value:r};i&&(l.key=i),s.push(l)}};if(i.keys){var c,u=function(t){var e="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!e){if(Array.isArray(t)||(e=o(t))){e&&(t=e);var i=0,n=function(){};return{s:n,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,r=!0,a=!1;return{s:function(){e=e.call(t)},n:function(){var t=e.next();return r=t.done,t},e:function(t){a=!0,s=t},f:function(){try{r||null==e.return||e.return()}finally{if(a)throw s}}}}(i.keys);try{for(u.s();!(c=u.n()).done;)l(c.value)}catch(t){u.e(t)}finally{u.f()}}else l()})),i.filter&&(s=i.filter(s));var r=s.slice(0,e.resultsList.maxResults);e.feedback={query:t,matches:s,results:r},h("results",e)},m="aria-expanded",g="aria-activedescendant",v="aria-selected",y=function(t,i){t.feedback.selection=e({index:i},t.feedback.results[i])},b=function(t){t.isOpen||((t.wrapper||t.input).setAttribute(m,!0),t.list.removeAttribute("hidden"),t.isOpen=!0,h("open",t))},_=function(t){t.isOpen&&((t.wrapper||t.input).setAttribute(m,!1),t.input.setAttribute(g,""),t.list.setAttribute("hidden",""),t.isOpen=!1,h("close",t))},w=function(t,e){var i=e.resultItem,n=e.list.getElementsByTagName(i.tag),o=!!i.selected&&i.selected.split(" ");if(e.isOpen&&n.length){var r,a,l=e.cursor;t>=n.length&&(t=0),t<0&&(t=n.length-1),e.cursor=t,l>-1&&(n[l].removeAttribute(v),o&&(a=n[l].classList).remove.apply(a,s(o))),n[t].setAttribute(v,!0),o&&(r=n[t].classList).add.apply(r,s(o)),e.input.setAttribute(g,n[e.cursor].id),e.list.scrollTop=n[t].offsetTop-e.list.clientHeight+n[t].clientHeight+5,e.feedback.cursor=e.cursor,y(e,t),h("navigate",e)}},x=function(t){w(t.cursor+1,t)},k=function(t){w(t.cursor-1,t)},C=function(t,e,i){(i=i>=0?i:t.cursor)<0||(t.feedback.event=e,y(t,i),h("selection",t),_(t))};function T(t,i){var n=this;return new Promise((function(s,o){var r,a;return r=i||((a=t.input)instanceof HTMLInputElement||a instanceof HTMLTextAreaElement?a.value:a.innerHTML),function(t,e,i){return e?e(t):t.length>=i}(r=t.query?t.query(r):r,t.trigger,t.threshold)?p(t,r).then((function(i){try{return t.feedback instanceof Error?s():(f(r,t),t.resultsList&&function(t){var i=t.resultsList,n=t.list,s=t.resultItem,o=t.feedback,r=o.matches,a=o.results;if(t.cursor=-1,n.innerHTML="",r.length||i.noResults){var c=new DocumentFragment;a.forEach((function(t,i){var n=l(s.tag,e({id:"".concat(s.id,"_").concat(i),role:"option",innerHTML:t.match,inside:c},s.class&&{class:s.class}));s.element&&s.element(n,t)})),n.append(c),i.element&&i.element(n,o),b(t)}else _(t)}(t),c.call(n))}catch(t){return o(t)}}),o):(_(t),c.call(n));function c(){return s()}}))}var S=function(t,e){for(var i in t)for(var n in t[i])e(i,n)};function E(t){var i=this;return new Promise((function(n,s){var o,r,a;if(o=t.placeHolder,a={role:"combobox","aria-owns":(r=t.resultsList).id,"aria-haspopup":!0,"aria-expanded":!1},l(t.input,e(e({"aria-controls":r.id,"aria-autocomplete":"both"},o&&{placeholder:o}),!t.wrapper&&e({},a))),t.wrapper&&(t.wrapper=l("div",e({around:t.input,class:t.name+"_wrapper"},a))),r&&(t.list=l(r.tag,e({dest:[r.destination,r.position],id:r.id,role:"listbox",hidden:"hidden"},r.class&&{class:r.class}))),function(t){var i,n,s,o=t.events,r=(i=function(){return T(t)},n=t.debounce,function(){clearTimeout(s),s=setTimeout((function(){return i()}),n)}),a=t.events=e({input:e({},o&&o.input)},t.resultsList&&{list:o?e({},o.list):{}}),l={input:{input:function(){r()},keydown:function(e){!function(t,e){switch(t.keyCode){case 40:case 38:t.preventDefault(),40===t.keyCode?x(e):k(e);break;case 13:e.submit||t.preventDefault(),e.cursor>=0&&C(e,t);break;case 9:e.resultsList.tabSelect&&e.cursor>=0&&C(e,t);break;case 27:e.input.value="",_(e)}}(e,t)},blur:function(){_(t)}},list:{mousedown:function(t){t.preventDefault()},click:function(e){!function(t,e){var i=e.resultItem.tag.toUpperCase(),n=Array.from(e.list.querySelectorAll(i)),s=t.target.closest(i);s&&s.nodeName===i&&C(e,t,n.indexOf(s))}(e,t)}}};S(l,(function(e,i){(t.resultsList||"input"===i)&&(a[e][i]||(a[e][i]=l[e][i]))})),S(a,(function(e,i){t[e].addEventListener(i,a[e][i])}))}(t),t.data.cache)return p(t).then((function(t){try{return c.call(i)}catch(t){return s(t)}}),s);function c(){return h("init",t),n()}return c.call(i)}))}function D(t){var e=t.prototype;e.init=function(){E(this)},e.start=function(t){T(this,t)},e.unInit=function(){if(this.wrapper){var t=this.wrapper.parentNode;t.insertBefore(this.input,this.wrapper),t.removeChild(this.wrapper)}var e;S((e=this).events,(function(t,i){e[t].removeEventListener(i,e.events[t][i])}))},e.open=function(){b(this)},e.close=function(){_(this)},e.goTo=function(t){w(t,this)},e.next=function(){x(this)},e.previous=function(){k(this)},e.select=function(t){C(this,null,t)},e.search=function(t,e,i){return d(t,e,i)}}return function t(e){this.options=e,this.id=t.instances=(t.instances||0)+1,this.name="autoComplete",this.wrapper=1,this.threshold=1,this.debounce=0,this.resultsList={position:"afterend",tag:"ul",maxResults:5},this.resultItem={tag:"li"},function(t){var e=t.name,n=t.options,s=t.resultsList,o=t.resultItem;for(var r in n)if("object"===i(n[r]))for(var l in t[r]||(t[r]={}),n[r])t[r][l]=n[r][l];else t[r]=n[r];t.selector=t.selector||"#"+e,s.destination=s.destination||t.selector,s.id=s.id||e+"_list_"+t.id,o.id=o.id||e+"_result",t.input=a(t.selector)}(this),D.call(this,t),E(this)}},"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):(t="undefined"!=typeof globalThis?globalThis:t||self).autoComplete=e(),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.counterUp=e():t.counterUp=e()}(self,(function(){return(()=>{"use strict";var t={d:(e,i)=>{for(var n in i)t.o(i,n)&&!t.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:i[n]})},o:(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r:t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})}},e={};t.r(e),t.d(e,{default:()=>i,divideNumbers:()=>s});const i=(t,e={})=>{const{action:i="start",duration:o=1e3,delay:r=16}=e;if("stop"===i)return void n(t);if(n(t),!/[0-9]/.test(t.innerHTML))return;const a=s(t.innerHTML,{duration:o||t.getAttribute("data-duration"),delay:r||t.getAttribute("data-delay")});t._countUpOrigInnerHTML=t.innerHTML,t.innerHTML=a[0]||" ",t.style.visibility="visible";const l=function(){t.innerHTML=a.shift()||" ",a.length?(clearTimeout(t.countUpTimeout),t.countUpTimeout=setTimeout(l,r)):t._countUpOrigInnerHTML=void 0};t.countUpTimeout=setTimeout(l,r)},n=t=>{clearTimeout(t.countUpTimeout),t._countUpOrigInnerHTML&&(t.innerHTML=t._countUpOrigInnerHTML,t._countUpOrigInnerHTML=void 0),t.style.visibility=""},s=(t,e={})=>{const{duration:i=1e3,delay:n=16}=e,s=i/n,o=t.toString().split(/(<[^>]+>|[0-9.][,.0-9]*[0-9]*)/),r=[];for(let t=0;t<s;t++)r.push("");for(let t=0;t<o.length;t++)if(/([0-9.][,.0-9]*[0-9]*)/.test(o[t])&&!/<[^>]+>/.test(o[t])){let e=o[t];const i=[...e.matchAll(/[.,]/g)].map((t=>({char:t[0],i:e.length-t.index-1}))).sort(((t,e)=>t.i-e.i));e=e.replace(/[.,]/g,"");let n=r.length-1;for(let t=s;t>=1;t--){let o=parseInt(e/s*t,10);o=i.reduce(((t,{char:e,i:i})=>t.length<=i?t:t.slice(0,-i)+e+t.slice(-i)),o.toString()),r[n--]+=o}}else for(let e=0;e<s;e++)r[e]+=o[t];return r[r.length]=t.toString(),r};return e})()})),function(t){"object"==typeof module&&module.exports?module.exports=t():window.intlTelInput=t()}((function(t){"use strict";return function(){function e(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function i(t,i,n){return i&&e(t.prototype,i),n&&e(t,n),t}for(var n=[["Afghanistan (افغانستان)","af","93"],["Albania (Shqipëri)","al","355"],["Algeria (الجزائر)","dz","213"],["American Samoa","as","1",5,["684"]],["Andorra","ad","376"],["Angola","ao","244"],["Anguilla","ai","1",6,["264"]],["Antigua and Barbuda","ag","1",7,["268"]],["Argentina","ar","54"],["Armenia (Հայաստան)","am","374"],["Aruba","aw","297"],["Ascension Island","ac","247"],["Australia","au","61",0],["Austria (Österreich)","at","43"],["Azerbaijan (Azərbaycan)","az","994"],["Bahamas","bs","1",8,["242"]],["Bahrain (البحرين)","bh","973"],["Bangladesh (বাংলাদেশ)","bd","880"],["Barbados","bb","1",9,["246"]],["Belarus (Беларусь)","by","375"],["Belgium (België)","be","32"],["Belize","bz","501"],["Benin (Bénin)","bj","229"],["Bermuda","bm","1",10,["441"]],["Bhutan (འབྲུག)","bt","975"],["Bolivia","bo","591"],["Bosnia and Herzegovina (Босна и Херцеговина)","ba","387"],["Botswana","bw","267"],["Brazil (Brasil)","br","55"],["British Indian Ocean Territory","io","246"],["British Virgin Islands","vg","1",11,["284"]],["Brunei","bn","673"],["Bulgaria (България)","bg","359"],["Burkina Faso","bf","226"],["Burundi (Uburundi)","bi","257"],["Cambodia (កម្ពុជា)","kh","855"],["Cameroon (Cameroun)","cm","237"],["Canada","ca","1",1,["204","226","236","249","250","289","306","343","365","387","403","416","418","431","437","438","450","506","514","519","548","579","581","587","604","613","639","647","672","705","709","742","778","780","782","807","819","825","867","873","902","905"]],["Cape Verde (Kabu Verdi)","cv","238"],["Caribbean Netherlands","bq","599",1,["3","4","7"]],["Cayman Islands","ky","1",12,["345"]],["Central African Republic (République centrafricaine)","cf","236"],["Chad (Tchad)","td","235"],["Chile","cl","56"],["China (中国)","cn","86"],["Christmas Island","cx","61",2,["89164"]],["Cocos (Keeling) Islands","cc","61",1,["89162"]],["Colombia","co","57"],["Comoros (جزر القمر)","km","269"],["Congo (DRC) (Jamhuri ya Kidemokrasia ya Kongo)","cd","243"],["Congo (Republic) (Congo-Brazzaville)","cg","242"],["Cook Islands","ck","682"],["Costa Rica","cr","506"],["Côte d’Ivoire","ci","225"],["Croatia (Hrvatska)","hr","385"],["Cuba","cu","53"],["Curaçao","cw","599",0],["Cyprus (Κύπρος)","cy","357"],["Czech Republic (Česká republika)","cz","420"],["Denmark (Danmark)","dk","45"],["Djibouti","dj","253"],["Dominica","dm","1",13,["767"]],["Dominican Republic (República Dominicana)","do","1",2,["809","829","849"]],["Ecuador","ec","593"],["Egypt (مصر)","eg","20"],["El Salvador","sv","503"],["Equatorial Guinea (Guinea Ecuatorial)","gq","240"],["Eritrea","er","291"],["Estonia (Eesti)","ee","372"],["Eswatini","sz","268"],["Ethiopia","et","251"],["Falkland Islands (Islas Malvinas)","fk","500"],["Faroe Islands (Føroyar)","fo","298"],["Fiji","fj","679"],["Finland (Suomi)","fi","358",0],["France","fr","33"],["French Guiana (Guyane française)","gf","594"],["French Polynesia (Polynésie française)","pf","689"],["Gabon","ga","241"],["Gambia","gm","220"],["Georgia (საქართველო)","ge","995"],["Germany (Deutschland)","de","49"],["Ghana (Gaana)","gh","233"],["Gibraltar","gi","350"],["Greece (Ελλάδα)","gr","30"],["Greenland (Kalaallit Nunaat)","gl","299"],["Grenada","gd","1",14,["473"]],["Guadeloupe","gp","590",0],["Guam","gu","1",15,["671"]],["Guatemala","gt","502"],["Guernsey","gg","44",1,["1481","7781","7839","7911"]],["Guinea (Guinée)","gn","224"],["Guinea-Bissau (Guiné Bissau)","gw","245"],["Guyana","gy","592"],["Haiti","ht","509"],["Honduras","hn","504"],["Hong Kong (香港)","hk","852"],["Hungary (Magyarország)","hu","36"],["Iceland (Ísland)","is","354"],["India (भारत)","in","91"],["Indonesia","id","62"],["Iran (ایران)","ir","98"],["Iraq (العراق)","iq","964"],["Ireland","ie","353"],["Isle of Man","im","44",2,["1624","74576","7524","7924","7624"]],["Israel (ישראל)","il","972"],["Italy (Italia)","it","39",0],["Jamaica","jm","1",4,["876","658"]],["Japan (日本)","jp","81"],["Jersey","je","44",3,["1534","7509","7700","7797","7829","7937"]],["Jordan (الأردن)","jo","962"],["Kazakhstan (Казахстан)","kz","7",1,["33","7"]],["Kenya","ke","254"],["Kiribati","ki","686"],["Kosovo","xk","383"],["Kuwait (الكويت)","kw","965"],["Kyrgyzstan (Кыргызстан)","kg","996"],["Laos (ລາວ)","la","856"],["Latvia (Latvija)","lv","371"],["Lebanon (لبنان)","lb","961"],["Lesotho","ls","266"],["Liberia","lr","231"],["Libya (ليبيا)","ly","218"],["Liechtenstein","li","423"],["Lithuania (Lietuva)","lt","370"],["Luxembourg","lu","352"],["Macau (澳門)","mo","853"],["North Macedonia (Македонија)","mk","389"],["Madagascar (Madagasikara)","mg","261"],["Malawi","mw","265"],["Malaysia","my","60"],["Maldives","mv","960"],["Mali","ml","223"],["Malta","mt","356"],["Marshall Islands","mh","692"],["Martinique","mq","596"],["Mauritania (موريتانيا)","mr","222"],["Mauritius (Moris)","mu","230"],["Mayotte","yt","262",1,["269","639"]],["Mexico (México)","mx","52"],["Micronesia","fm","691"],["Moldova (Republica Moldova)","md","373"],["Monaco","mc","377"],["Mongolia (Монгол)","mn","976"],["Montenegro (Crna Gora)","me","382"],["Montserrat","ms","1",16,["664"]],["Morocco (المغرب)","ma","212",0],["Mozambique (Moçambique)","mz","258"],["Myanmar (Burma) (မြန်မာ)","mm","95"],["Namibia (Namibië)","na","264"],["Nauru","nr","674"],["Nepal (नेपाल)","np","977"],["Netherlands (Nederland)","nl","31"],["New Caledonia (Nouvelle-Calédonie)","nc","687"],["New Zealand","nz","64"],["Nicaragua","ni","505"],["Niger (Nijar)","ne","227"],["Nigeria","ng","234"],["Niue","nu","683"],["Norfolk Island","nf","672"],["North Korea (조선 민주주의 인민 공화국)","kp","850"],["Northern Mariana Islands","mp","1",17,["670"]],["Norway (Norge)","no","47",0],["Oman (عُمان)","om","968"],["Pakistan (پاکستان)","pk","92"],["Palau","pw","680"],["Palestine (فلسطين)","ps","970"],["Panama (Panamá)","pa","507"],["Papua New Guinea","pg","675"],["Paraguay","py","595"],["Peru (Perú)","pe","51"],["Philippines","ph","63"],["Poland (Polska)","pl","48"],["Portugal","pt","351"],["Puerto Rico","pr","1",3,["787","939"]],["Qatar (قطر)","qa","974"],["Réunion (La Réunion)","re","262",0],["Romania (România)","ro","40"],["Russia (Россия)","ru","7",0],["Rwanda","rw","250"],["Saint Barthélemy","bl","590",1],["Saint Helena","sh","290"],["Saint Kitts and Nevis","kn","1",18,["869"]],["Saint Lucia","lc","1",19,["758"]],["Saint Martin (Saint-Martin (partie française))","mf","590",2],["Saint Pierre and Miquelon (Saint-Pierre-et-Miquelon)","pm","508"],["Saint Vincent and the Grenadines","vc","1",20,["784"]],["Samoa","ws","685"],["San Marino","sm","378"],["São Tomé and Príncipe (São Tomé e Príncipe)","st","239"],["Saudi Arabia (المملكة العربية السعودية)","sa","966"],["Senegal (Sénégal)","sn","221"],["Serbia (Србија)","rs","381"],["Seychelles","sc","248"],["Sierra Leone","sl","232"],["Singapore","sg","65"],["Sint Maarten","sx","1",21,["721"]],["Slovakia (Slovensko)","sk","421"],["Slovenia (Slovenija)","si","386"],["Solomon Islands","sb","677"],["Somalia (Soomaaliya)","so","252"],["South Africa","za","27"],["South Korea (대한민국)","kr","82"],["South Sudan (جنوب السودان)","ss","211"],["Spain (España)","es","34"],["Sri Lanka (ශ්රී ලංකාව)","lk","94"],["Sudan (السودان)","sd","249"],["Suriname","sr","597"],["Svalbard and Jan Mayen","sj","47",1,["79"]],["Sweden (Sverige)","se","46"],["Switzerland (Schweiz)","ch","41"],["Syria (سوريا)","sy","963"],["Taiwan (台灣)","tw","886"],["Tajikistan","tj","992"],["Tanzania","tz","255"],["Thailand (ไทย)","th","66"],["Timor-Leste","tl","670"],["Togo","tg","228"],["Tokelau","tk","690"],["Tonga","to","676"],["Trinidad and Tobago","tt","1",22,["868"]],["Tunisia (تونس)","tn","216"],["Turkey (Türkiye)","tr","90"],["Turkmenistan","tm","993"],["Turks and Caicos Islands","tc","1",23,["649"]],["Tuvalu","tv","688"],["U.S. Virgin Islands","vi","1",24,["340"]],["Uganda","ug","256"],["Ukraine (Україна)","ua","380"],["United Arab Emirates (الإمارات العربية المتحدة)","ae","971"],["United Kingdom","gb","44",0],["United States","us","1",0],["Uruguay","uy","598"],["Uzbekistan (Oʻzbekiston)","uz","998"],["Vanuatu","vu","678"],["Vatican City (Città del Vaticano)","va","39",1,["06698"]],["Venezuela","ve","58"],["Vietnam (Việt Nam)","vn","84"],["Wallis and Futuna (Wallis-et-Futuna)","wf","681"],["Western Sahara (الصحراء الغربية)","eh","212",1,["5288","5289"]],["Yemen (اليمن)","ye","967"],["Zambia","zm","260"],["Zimbabwe","zw","263"],["Åland Islands","ax","358",1,["18"]]],s=0;s<n.length;s++){var o=n[s];n[s]={name:o[0],iso2:o[1],dialCode:o[2],priority:o[3]||0,areaCodes:o[4]||null}}var r={getInstance:function(t){var e=t.getAttribute("data-intl-tel-input-id");return window.intlTelInputGlobals.instances[e]},instances:{},documentReady:function(){return"complete"===document.readyState}};"object"==typeof window&&(window.intlTelInputGlobals=r);var a=0,l={allowDropdown:!0,autoHideDialCode:!0,autoPlaceholder:"polite",customContainer:"",customPlaceholder:null,dropdownContainer:null,excludeCountries:[],formatOnDisplay:!0,geoIpLookup:null,hiddenInput:"",initialCountry:"",localizedCountries:null,nationalMode:!0,onlyCountries:[],placeholderNumberType:"MOBILE",preferredCountries:["us","gb"],separateDialCode:!1,utilsScript:""},c=["800","822","833","844","855","866","877","880","881","882","883","884","885","886","887","888","889"],u=function(t,e){for(var i=Object.keys(t),n=0;n<i.length;n++)e(i[n],t[i[n]])},h=function(t){u(window.intlTelInputGlobals.instances,(function(e){window.intlTelInputGlobals.instances[e][t]()}))},d=function(){function e(t,i){var n=this;(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,e),this.id=a++,this.a=t,this.b=null,this.c=null;var s=i||{};this.d={},u(l,(function(t,e){n.d[t]=s.hasOwnProperty(t)?s[t]:e})),this.e=Boolean(t.getAttribute("placeholder"))}return i(e,[{key:"_init",value:function(){var t=this;if(this.d.nationalMode&&(this.d.autoHideDialCode=!1),this.d.separateDialCode&&(this.d.autoHideDialCode=this.d.nationalMode=!1),this.g=/Android.+Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),this.g&&(document.body.classList.add("iti-mobile"),this.d.dropdownContainer||(this.d.dropdownContainer=document.body)),"undefined"!=typeof Promise){var e=new Promise((function(e,i){t.h=e,t.i=i})),i=new Promise((function(e,i){t.i0=e,t.i1=i}));this.promise=Promise.all([e,i])}else this.h=this.i=function(){},this.i0=this.i1=function(){};this.s={},this._b(),this._f(),this._h(),this._i(),this._i3()}},{key:"_b",value:function(){this._d(),this._d2(),this._e(),this.d.localizedCountries&&this._d0(),(this.d.onlyCountries.length||this.d.localizedCountries)&&this.p.sort(this._d1)}},{key:"_c",value:function(e,i,n){i.length>this.countryCodeMaxLen&&(this.countryCodeMaxLen=i.length),this.q.hasOwnProperty(i)||(this.q[i]=[]);for(var s=0;s<this.q[i].length;s++)if(this.q[i][s]===e)return;var o=n!==t?n:this.q[i].length;this.q[i][o]=e}},{key:"_d",value:function(){if(this.d.onlyCountries.length){var t=this.d.onlyCountries.map((function(t){return t.toLowerCase()}));this.p=n.filter((function(e){return t.indexOf(e.iso2)>-1}))}else if(this.d.excludeCountries.length){var e=this.d.excludeCountries.map((function(t){return t.toLowerCase()}));this.p=n.filter((function(t){return-1===e.indexOf(t.iso2)}))}else this.p=n}},{key:"_d0",value:function(){for(var t=0;t<this.p.length;t++){var e=this.p[t].iso2.toLowerCase();this.d.localizedCountries.hasOwnProperty(e)&&(this.p[t].name=this.d.localizedCountries[e])}}},{key:"_d1",value:function(t,e){return t.name.localeCompare(e.name)}},{key:"_d2",value:function(){this.countryCodeMaxLen=0,this.dialCodes={},this.q={};for(var t=0;t<this.p.length;t++){var e=this.p[t];this.dialCodes[e.dialCode]||(this.dialCodes[e.dialCode]=!0),this._c(e.iso2,e.dialCode,e.priority)}for(var i=0;i<this.p.length;i++){var n=this.p[i];if(n.areaCodes)for(var s=this.q[n.dialCode][0],o=0;o<n.areaCodes.length;o++){for(var r=n.areaCodes[o],a=1;a<r.length;a++){var l=n.dialCode+r.substr(0,a);this._c(s,l),this._c(n.iso2,l)}this._c(n.iso2,n.dialCode+r)}}}},{key:"_e",value:function(){this.preferredCountries=[];for(var t=0;t<this.d.preferredCountries.length;t++){var e=this.d.preferredCountries[t].toLowerCase(),i=this._y(e,!1,!0);i&&this.preferredCountries.push(i)}}},{key:"_e2",value:function(t,e,i){var n=document.createElement(t);return e&&u(e,(function(t,e){return n.setAttribute(t,e)})),i&&i.appendChild(n),n}},{key:"_f",value:function(){this.a.hasAttribute("autocomplete")||this.a.form&&this.a.form.hasAttribute("autocomplete")||this.a.setAttribute("autocomplete","off");var t="iti";this.d.allowDropdown&&(t+=" iti--allow-dropdown"),this.d.separateDialCode&&(t+=" iti--separate-dial-code"),this.d.customContainer&&(t+=" ",t+=this.d.customContainer);var e=this._e2("div",{class:t});if(this.a.parentNode.insertBefore(e,this.a),this.k=this._e2("div",{class:"iti__flag-container"},e),e.appendChild(this.a),this.selectedFlag=this._e2("div",{class:"iti__selected-flag",role:"combobox","aria-controls":"iti-".concat(this.id,"__country-listbox"),"aria-owns":"iti-".concat(this.id,"__country-listbox"),"aria-expanded":"false"},this.k),this.l=this._e2("div",{class:"iti__flag"},this.selectedFlag),this.d.separateDialCode&&(this.t=this._e2("div",{class:"iti__selected-dial-code"},this.selectedFlag)),this.d.allowDropdown&&(this.selectedFlag.setAttribute("tabindex","0"),this.u=this._e2("div",{class:"iti__arrow"},this.selectedFlag),this.m=this._e2("ul",{class:"iti__country-list iti__hide",id:"iti-".concat(this.id,"__country-listbox"),role:"listbox","aria-label":"List of countries"}),this.preferredCountries.length&&(this._g(this.preferredCountries,"iti__preferred",!0),this._e2("li",{class:"iti__divider",role:"separator","aria-disabled":"true"},this.m)),this._g(this.p,"iti__standard"),this.d.dropdownContainer?(this.dropdown=this._e2("div",{class:"iti iti--container"}),this.dropdown.appendChild(this.m)):this.k.appendChild(this.m)),this.d.hiddenInput){var i=this.d.hiddenInput,n=this.a.getAttribute("name");if(n){var s=n.lastIndexOf("[");-1!==s&&(i="".concat(n.substr(0,s),"[").concat(i,"]"))}this.hiddenInput=this._e2("input",{type:"hidden",name:i}),e.appendChild(this.hiddenInput)}}},{key:"_g",value:function(t,e,i){for(var n="",s=0;s<t.length;s++){var o=t[s],r=i?"-preferred":"";n+="<li class='iti__country ".concat(e,"' tabIndex='-1' id='iti-").concat(this.id,"__item-").concat(o.iso2).concat(r,"' role='option' data-dial-code='").concat(o.dialCode,"' data-country-code='").concat(o.iso2,"' aria-selected='false'>"),n+="<div class='iti__flag-box'><div class='iti__flag iti__".concat(o.iso2,"'></div></div>"),n+="<span class='iti__country-name'>".concat(o.name,"</span>"),n+="<span class='iti__dial-code'>+".concat(o.dialCode,"</span>"),n+="</li>"}this.m.insertAdjacentHTML("beforeend",n)}},{key:"_h",value:function(){var t=this.a.getAttribute("value"),e=this.a.value,i=t&&"+"===t.charAt(0)&&(!e||"+"!==e.charAt(0))?t:e,n=this._5(i),s=this._w(i),o=this.d,r=o.initialCountry,a=o.nationalMode,l=o.autoHideDialCode,c=o.separateDialCode;n&&!s?this._v(i):"auto"!==r&&(r?this._z(r.toLowerCase()):n&&s?this._z("us"):(this.j=this.preferredCountries.length?this.preferredCountries[0].iso2:this.p[0].iso2,i||this._z(this.j)),i||a||l||c||(this.a.value="+".concat(this.s.dialCode))),i&&this._u(i)}},{key:"_i",value:function(){this._j(),this.d.autoHideDialCode&&this._l(),this.d.allowDropdown&&this._i2(),this.hiddenInput&&this._i0()}},{key:"_i0",value:function(){var t=this;this._a14=function(){t.hiddenInput.value=t.getNumber()},this.a.form&&this.a.form.addEventListener("submit",this._a14)}},{key:"_i1",value:function(){for(var t=this.a;t&&"LABEL"!==t.tagName;)t=t.parentNode;return t}},{key:"_i2",value:function(){var t=this;this._a9=function(e){t.m.classList.contains("iti__hide")?t.a.focus():e.preventDefault()};var e=this._i1();e&&e.addEventListener("click",this._a9),this._a10=function(){!t.m.classList.contains("iti__hide")||t.a.disabled||t.a.readOnly||t._n()},this.selectedFlag.addEventListener("click",this._a10),this._a11=function(e){t.m.classList.contains("iti__hide")&&-1!==["ArrowUp","Up","ArrowDown","Down"," ","Enter"].indexOf(e.key)&&(e.preventDefault(),e.stopPropagation(),t._n()),"Tab"===e.key&&t._2()},this.k.addEventListener("keydown",this._a11)}},{key:"_i3",value:function(){var t=this;this.d.utilsScript&&!window.intlTelInputUtils?window.intlTelInputGlobals.documentReady()?window.intlTelInputGlobals.loadUtils(this.d.utilsScript):window.addEventListener("load",(function(){window.intlTelInputGlobals.loadUtils(t.d.utilsScript)})):this.i0(),"auto"===this.d.initialCountry?this._i4():this.h()}},{key:"_i4",value:function(){window.intlTelInputGlobals.autoCountry?this.handleAutoCountry():window.intlTelInputGlobals.startedLoadingAutoCountry||(window.intlTelInputGlobals.startedLoadingAutoCountry=!0,"function"==typeof this.d.geoIpLookup&&this.d.geoIpLookup((function(t){window.intlTelInputGlobals.autoCountry=t.toLowerCase(),setTimeout((function(){return h("handleAutoCountry")}))}),(function(){return h("rejectAutoCountryPromise")})))}},{key:"_j",value:function(){var t=this;this._a12=function(){t._v(t.a.value)&&t._m2CountryChange()},this.a.addEventListener("keyup",this._a12),this._a13=function(){setTimeout(t._a12)},this.a.addEventListener("cut",this._a13),this.a.addEventListener("paste",this._a13)}},{key:"_j2",value:function(t){var e=this.a.getAttribute("maxlength");return e&&t.length>e?t.substr(0,e):t}},{key:"_l",value:function(){var t=this;this._a8=function(){t._l2()},this.a.form&&this.a.form.addEventListener("submit",this._a8),this.a.addEventListener("blur",this._a8)}},{key:"_l2",value:function(){if("+"===this.a.value.charAt(0)){var t=this._m(this.a.value);t&&this.s.dialCode!==t||(this.a.value="")}}},{key:"_m",value:function(t){return t.replace(/\D/g,"")}},{key:"_m2",value:function(t){var e=document.createEvent("Event");e.initEvent(t,!0,!0),this.a.dispatchEvent(e)}},{key:"_n",value:function(){this.m.classList.remove("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","true"),this._o(),this.b&&(this._x(this.b,!1),this._3(this.b,!0)),this._p(),this.u.classList.add("iti__arrow--up"),this._m2("open:countrydropdown")}},{key:"_n2",value:function(t,e,i){i&&!t.classList.contains(e)?t.classList.add(e):!i&&t.classList.contains(e)&&t.classList.remove(e)}},{key:"_o",value:function(){var t=this;if(this.d.dropdownContainer&&this.d.dropdownContainer.appendChild(this.dropdown),!this.g){var e=this.a.getBoundingClientRect(),i=window.pageYOffset||document.documentElement.scrollTop,n=e.top+i,s=this.m.offsetHeight,o=n+this.a.offsetHeight+s<i+window.innerHeight,r=n-s>i;if(this._n2(this.m,"iti__country-list--dropup",!o&&r),this.d.dropdownContainer){var a=!o&&r?0:this.a.offsetHeight;this.dropdown.style.top="".concat(n+a,"px"),this.dropdown.style.left="".concat(e.left+document.body.scrollLeft,"px"),this._a4=function(){return t._2()},window.addEventListener("scroll",this._a4)}}}},{key:"_o2",value:function(t){for(var e=t;e&&e!==this.m&&!e.classList.contains("iti__country");)e=e.parentNode;return e===this.m?null:e}},{key:"_p",value:function(){var t=this;this._a0=function(e){var i=t._o2(e.target);i&&t._x(i,!1)},this.m.addEventListener("mouseover",this._a0),this._a1=function(e){var i=t._o2(e.target);i&&t._1(i)},this.m.addEventListener("click",this._a1);var e=!0;this._a2=function(){e||t._2(),e=!1},document.documentElement.addEventListener("click",this._a2);var i="",n=null;this._a3=function(e){e.preventDefault(),"ArrowUp"===e.key||"Up"===e.key||"ArrowDown"===e.key||"Down"===e.key?t._q(e.key):"Enter"===e.key?t._r():"Escape"===e.key?t._2():/^[a-zA-ZÀ-ÿа-яА-Я ]$/.test(e.key)&&(n&&clearTimeout(n),i+=e.key.toLowerCase(),t._s(i),n=setTimeout((function(){i=""}),1e3))},document.addEventListener("keydown",this._a3)}},{key:"_q",value:function(t){var e="ArrowUp"===t||"Up"===t?this.c.previousElementSibling:this.c.nextElementSibling;e&&(e.classList.contains("iti__divider")&&(e="ArrowUp"===t||"Up"===t?e.previousElementSibling:e.nextElementSibling),this._x(e,!0))}},{key:"_r",value:function(){this.c&&this._1(this.c)}},{key:"_s",value:function(t){for(var e=0;e<this.p.length;e++)if(this._t(this.p[e].name,t)){var i=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(this.p[e].iso2));this._x(i,!1),this._3(i,!0);break}}},{key:"_t",value:function(t,e){return t.substr(0,e.length).toLowerCase()===e}},{key:"_u",value:function(t){var e=t;if(this.d.formatOnDisplay&&window.intlTelInputUtils&&this.s){var i=!this.d.separateDialCode&&(this.d.nationalMode||"+"!==e.charAt(0)),n=intlTelInputUtils.numberFormat,s=n.NATIONAL,o=n.INTERNATIONAL,r=i?s:o;e=intlTelInputUtils.formatNumber(e,this.s.iso2,r)}e=this._7(e),this.a.value=e}},{key:"_v",value:function(t){var e=t,i=this.s.dialCode,n="1"===i;e&&this.d.nationalMode&&n&&"+"!==e.charAt(0)&&("1"!==e.charAt(0)&&(e="1".concat(e)),e="+".concat(e)),this.d.separateDialCode&&i&&"+"!==e.charAt(0)&&(e="+".concat(i).concat(e));var s=this._5(e,!0),o=this._m(e),r=null;if(s){var a=this.q[this._m(s)],l=-1!==a.indexOf(this.s.iso2)&&o.length<=s.length-1;if(!("1"===i&&this._w(o)||l))for(var c=0;c<a.length;c++)if(a[c]){r=a[c];break}}else"+"===e.charAt(0)&&o.length?r="":e&&"+"!==e||(r=this.j);return null!==r&&this._z(r)}},{key:"_w",value:function(t){var e=this._m(t);if("1"===e.charAt(0)){var i=e.substr(1,3);return-1!==c.indexOf(i)}return!1}},{key:"_x",value:function(t,e){var i=this.c;i&&i.classList.remove("iti__highlight"),this.c=t,this.c.classList.add("iti__highlight"),e&&this.c.focus()}},{key:"_y",value:function(t,e,i){for(var s=e?n:this.p,o=0;o<s.length;o++)if(s[o].iso2===t)return s[o];if(i)return null;throw new Error("No country data for '".concat(t,"'"))}},{key:"_z",value:function(t){var e=this.s.iso2?this.s:{};this.s=t?this._y(t,!1,!1):{},this.s.iso2&&(this.j=this.s.iso2),this.l.setAttribute("class","iti__flag iti__".concat(t));var i=t?"".concat(this.s.name,": +").concat(this.s.dialCode):"Unknown";if(this.selectedFlag.setAttribute("title",i),this.d.separateDialCode){var n=this.s.dialCode?"+".concat(this.s.dialCode):"";this.t.innerHTML=n;var s=this.selectedFlag.offsetWidth||this._z2();this.a.style.paddingLeft="".concat(s+6,"px")}if(this._0(),this.d.allowDropdown){var o=this.b;if(o&&(o.classList.remove("iti__active"),o.setAttribute("aria-selected","false")),t){var r=this.m.querySelector("#iti-".concat(this.id,"__item-").concat(t,"-preferred"))||this.m.querySelector("#iti-".concat(this.id,"__item-").concat(t));r.setAttribute("aria-selected","true"),r.classList.add("iti__active"),this.b=r,this.selectedFlag.setAttribute("aria-activedescendant",r.getAttribute("id"))}}return e.iso2!==t}},{key:"_z2",value:function(){var t=this.a.parentNode.cloneNode();t.style.visibility="hidden",document.body.appendChild(t);var e=this.k.cloneNode();t.appendChild(e);var i=this.selectedFlag.cloneNode(!0);e.appendChild(i);var n=i.offsetWidth;return t.parentNode.removeChild(t),n}},{key:"_0",value:function(){var t="aggressive"===this.d.autoPlaceholder||!this.e&&"polite"===this.d.autoPlaceholder;if(window.intlTelInputUtils&&t){var e=intlTelInputUtils.numberType[this.d.placeholderNumberType],i=this.s.iso2?intlTelInputUtils.getExampleNumber(this.s.iso2,this.d.nationalMode,e):"";i=this._7(i),"function"==typeof this.d.customPlaceholder&&(i=this.d.customPlaceholder(i,this.s)),this.a.setAttribute("placeholder",i)}}},{key:"_1",value:function(t){var e=this._z(t.getAttribute("data-country-code"));this._2(),this._4(t.getAttribute("data-dial-code"),!0),this.a.focus();var i=this.a.value.length;this.a.setSelectionRange(i,i),e&&this._m2CountryChange()}},{key:"_2",value:function(){this.m.classList.add("iti__hide"),this.selectedFlag.setAttribute("aria-expanded","false"),this.u.classList.remove("iti__arrow--up"),document.removeEventListener("keydown",this._a3),document.documentElement.removeEventListener("click",this._a2),this.m.removeEventListener("mouseover",this._a0),this.m.removeEventListener("click",this._a1),this.d.dropdownContainer&&(this.g||window.removeEventListener("scroll",this._a4),this.dropdown.parentNode&&this.dropdown.parentNode.removeChild(this.dropdown)),this._m2("close:countrydropdown")}},{key:"_3",value:function(t,e){var i=this.m,n=window.pageYOffset||document.documentElement.scrollTop,s=i.offsetHeight,o=i.getBoundingClientRect().top+n,r=o+s,a=t.offsetHeight,l=t.getBoundingClientRect().top+n,c=l+a,u=l-o+i.scrollTop,h=s/2-a/2;if(l<o)e&&(u-=h),i.scrollTop=u;else if(c>r){e&&(u+=h);var d=s-a;i.scrollTop=u-d}}},{key:"_4",value:function(t,e){var i,n=this.a.value,s="+".concat(t);if("+"===n.charAt(0)){var o=this._5(n);i=o?n.replace(o,s):s}else{if(this.d.nationalMode||this.d.separateDialCode)return;if(n)i=s+n;else{if(!e&&this.d.autoHideDialCode)return;i=s}}this.a.value=i}},{key:"_5",value:function(t,e){var i="";if("+"===t.charAt(0))for(var n="",s=0;s<t.length;s++){var o=t.charAt(s);if(!isNaN(parseInt(o,10))){if(n+=o,e)this.q[n]&&(i=t.substr(0,s+1));else if(this.dialCodes[n]){i=t.substr(0,s+1);break}if(n.length===this.countryCodeMaxLen)break}}return i}},{key:"_6",value:function(){var t=this.a.value.trim(),e=this.s.dialCode,i=this._m(t);return(this.d.separateDialCode&&"+"!==t.charAt(0)&&e&&i?"+".concat(e):"")+t}},{key:"_7",value:function(t){var e=t;if(this.d.separateDialCode){var i=this._5(e);if(i){var n=" "===e[(i="+".concat(this.s.dialCode)).length]||"-"===e[i.length]?i.length+1:i.length;e=e.substr(n)}}return this._j2(e)}},{key:"_m2CountryChange",value:function(){this._m2("countrychange")}},{key:"handleAutoCountry",value:function(){"auto"===this.d.initialCountry&&(this.j=window.intlTelInputGlobals.autoCountry,this.a.value||this.setCountry(this.j),this.h())}},{key:"handleUtils",value:function(){window.intlTelInputUtils&&(this.a.value&&this._u(this.a.value),this._0()),this.i0()}},{key:"destroy",value:function(){var t=this.a.form;if(this.d.allowDropdown){this._2(),this.selectedFlag.removeEventListener("click",this._a10),this.k.removeEventListener("keydown",this._a11);var e=this._i1();e&&e.removeEventListener("click",this._a9)}this.hiddenInput&&t&&t.removeEventListener("submit",this._a14),this.d.autoHideDialCode&&(t&&t.removeEventListener("submit",this._a8),this.a.removeEventListener("blur",this._a8)),this.a.removeEventListener("keyup",this._a12),this.a.removeEventListener("cut",this._a13),this.a.removeEventListener("paste",this._a13),this.a.removeAttribute("data-intl-tel-input-id");var i=this.a.parentNode;i.parentNode.insertBefore(this.a,i),i.parentNode.removeChild(i),delete window.intlTelInputGlobals.instances[this.id]}},{key:"getExtension",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getExtension(this._6(),this.s.iso2):""}},{key:"getNumber",value:function(t){if(window.intlTelInputUtils){var e=this.s.iso2;return intlTelInputUtils.formatNumber(this._6(),e,t)}return""}},{key:"getNumberType",value:function(){return window.intlTelInputUtils?intlTelInputUtils.getNumberType(this._6(),this.s.iso2):-99}},{key:"getSelectedCountryData",value:function(){return this.s}},{key:"getValidationError",value:function(){if(window.intlTelInputUtils){var t=this.s.iso2;return intlTelInputUtils.getValidationError(this._6(),t)}return-99}},{key:"isValidNumber",value:function(){var t=this._6().trim(),e=this.d.nationalMode?this.s.iso2:"";return window.intlTelInputUtils?intlTelInputUtils.isValidNumber(t,e):null}},{key:"setCountry",value:function(t){var e=t.toLowerCase();this.l.classList.contains("iti__".concat(e))||(this._z(e),this._4(this.s.dialCode,!1),this._m2CountryChange())}},{key:"setNumber",value:function(t){var e=this._v(t);this._u(t),e&&this._m2CountryChange()}},{key:"setPlaceholderNumberType",value:function(t){this.d.placeholderNumberType=t,this._0()}}]),e}();r.getCountryData=function(){return n};var p=function(t,e,i){var n=document.createElement("script");n.onload=function(){h("handleUtils"),e&&e()},n.onerror=function(){h("rejectUtilsScriptPromise"),i&&i()},n.className="iti-load-utils",n.async=!0,n.src=t,document.body.appendChild(n)};return r.loadUtils=function(t){if(!window.intlTelInputUtils&&!window.intlTelInputGlobals.startedLoadingUtilsScript){if(window.intlTelInputGlobals.startedLoadingUtilsScript=!0,"undefined"!=typeof Promise)return new Promise((function(e,i){return p(t,e,i)}));p(t)}return null},r.defaults=l,r.version="17.0.18",function(t,e){var i=new d(t,e);return i._init(),t.setAttribute("data-intl-tel-input-id",i.id),window.intlTelInputGlobals.instances[i.id]=i,i}}()})),function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e(require("jQuery")):"function"==typeof define&&define.amd?define(["jQuery"],e):"object"==typeof exports?exports.busyLoad=e(require("jQuery")):t.busyLoad=e(t.jQuery)}("undefined"!=typeof self?self:this,(function(t){return function(t){function e(n){if(i[n])return i[n].exports;var s=i[n]={i:n,l:!1,exports:{}};return t[n].call(s.exports,s,s.exports,e),s.l=!0,s.exports}var i={};return e.m=t,e.c=i,e.d=function(t,i,n){e.o(t,i)||Object.defineProperty(t,i,{configurable:!1,enumerable:!0,get:n})},e.n=function(t){var i=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(i,"a",i),i},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=13)}([function(t,e,i){var n=i(18);t.exports=function(t,e,i){var s=null==t?void 0:n(t,e);return void 0===s?i:s}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}();e.Component=function(){function t(e,i,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._options=i,this._busyLoadOptions=n,this.setTag(e)}return n(t,[{key:"debugOptions",value:function(){console.log(this._options)}},{key:"extendOptions",value:function(t){$.extend(this._options,t)}},{key:"setTag",value:function(t){if(t instanceof jQuery)this._$tag=t;else{if(!("string"==typeof t||t instanceof String))throw"wrong type for creating a tag";this._$tag=$("<"+t+"/>",this._options)}}},{key:"options",get:function(){return this._options},set:function(t){this._options=t}},{key:"tag",get:function(){return this._$tag},set:function(t){this._$tag=t}}]),t}()},function(t,e,i){var n=i(10)(Object,"create");t.exports=n},function(t,e,i){var n=i(46);t.exports=function(t,e){for(var i=t.length;i--;)if(n(t[i][0],e))return i;return-1}},function(t,e,i){var n=i(52);t.exports=function(t,e){var i=t.__data__;return n(e)?i["string"==typeof e?"string":"hash"]:i.map}},function(t,e){var i=Array.isArray;t.exports=i},function(t,e,i){var n=i(9),s=i(25),o="[object Symbol]";t.exports=function(t){return"symbol"==typeof t||s(t)&&n(t)==o}},function(t,e,i){var n=i(8).Symbol;t.exports=n},function(t,e,i){var n=i(21),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();t.exports=o},function(t,e,i){var n=i(7),s=i(23),o=i(24),r="[object Null]",a="[object Undefined]",l=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?a:r:l&&l in Object(t)?s(t):o(t)}},function(t,e,i){var n=i(33),s=i(38);t.exports=function(t,e){var i=s(t,e);return n(i)?i:void 0}},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={spinner:"pump",image:!1,fontawesome:!1,custom:!1,color:"#fff",background:"rgba(0, 0, 0, 0.21)",maxSize:"50px",minSize:"20px",text:!1,textColor:!1,textMargin:".5rem",textPosition:"right",fontSize:"1rem",fullScreen:!1,animation:!1,animationDuration:"fast",containerClass:"busy-load-container",containerItemClass:"busy-load-container-item",spinnerClass:"busy-load-spinner",textClass:"busy-load-text"}},function(t,e,i){"use strict";i(14);var n=i(15),s=function(t){return t&&t.__esModule?t:{default:t}}(i(12));!function(t){t.fn.busyLoad=n.busyLoad,t.busyLoadSetup=n.busyLoadSetup,t.busyLoadFull=n.busyLoadFull,t.fn.busyLoad.defaults=s.default}(i(64))},function(t,e){},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.busyLoadSetup=function(t){$.extend(!0,s.default,t)},e.busyLoad=function(t,e){return this.each((function(){var i=new n.BusyLoad($(this),JSON.parse(JSON.stringify(s.default)),e);switch(t){case"show":i.show();break;case"hide":i.hide();break;default:throw"don't know action '"+t+"'"}}))},e.busyLoadFull=function(t,e){var i=$("body"),o=new n.BusyLoad(i,JSON.parse(JSON.stringify(s.default)),e);switch(t.toLowerCase()){case"show":i.addClass("no-scroll"),o.caller=i,o.extendSettings({fullScreen:!0}),o.show();break;case"hide":o.hide(),i.removeClass("no-scroll")}return i};var n=i(16),s=function(t){return t&&t.__esModule?t:{default:t}}(i(12))},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.BusyLoad=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(17),o=i(60),r=i(61),a=i(62),l=i(0);e.BusyLoad=function(){function t(e,i,n){(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")})(this,t),this._settings=i,this._caller=e,this.extendSettings(n)}return n(t,[{key:"debugSettings",value:function(){console.log(this._settings.fullScreen)}},{key:"extendSettings",value:function(t){$.extend(this._settings,t)}},{key:"animateShow",value:function(t){var e=this,i=function(){return t.trigger("bl.shown",[t,$(e.caller)])};if(this.caller.append(t),t.trigger("bl.show",[t,$(this.caller)]),l(this.settings,"animation",!1))switch(l(this.settings,"animation").toLowerCase()){case"fade":t=t.fadeIn(l(this.settings,"animationDuration","fast"),i);break;case"slide":t=t.slideDown(l(this.settings,"animationDuration","fast"),i);break;default:throw"don't know animation: "+l(this.settings,"animation")}else t.show(0,i);return t}},{key:"animateHide",value:function(t){var e=this,i=function(){t.trigger("bl.hidden",[t,$(e.caller)]),t.remove()};if(t.trigger("bl.hide",[t,$(this.caller)]),l(this.settings,"animation",!1))switch(l(this.settings,"animation").toLowerCase()){case"fade":t=t.fadeOut(l(this.settings,"animationDuration","fast"),i);break;case"slide":t=t.slideUp(l(this.settings,"animationDuration","fast"),i);break;default:throw"don't know animation: "+l(this.settings,"animation")}else t.hide(0,i)}},{key:"getOverlay",value:function(){return this._caller.data("busy-load-container")?$("#"+this._caller.data("busy-load-container")):(this._container=new s.Container(this._settings),this._containerItem=new o.ContainerItem(this._settings),l(this.settings,"text",!1)&&(this._loadingText=new r.Text(this._settings),this._containerItem.tag.append(this._loadingText.tag)),!1!==l(this.settings,"spinner","pump")&&(this._spinner=new a.Spinner(this._settings),this._containerItem.tag.append(this._spinner.tag)),this._container.tag.append(this._containerItem.tag).hide(),this._container.tag)}},{key:"createRandomString",value:function(){return Math.random().toString(36).substring(2,15)+Math.random().toString(36).substring(2,15)}},{key:"toggle",value:function(t,e){if("show"==e){var i=this.createRandomString();"static"===this.caller.css("position")&&this.caller.css("position","relative"),this._caller.addClass("busy-load-active"),t.attr("id",i),t=this.animateShow(t),this._caller.data("busy-load-container",i)}else this.animateHide(t),this._caller.removeData("busy-load-container"),this._caller.removeClass("busy-load-active")}},{key:"show",value:function(){this.toggle(this.getOverlay(),"show")}},{key:"hide",value:function(){var t=this._caller.data("busy-load-container");this.toggle($("#"+t),"hide")}},{key:"settings",get:function(){return this._settings},set:function(t){this._settings=t}},{key:"caller",get:function(){return this._caller},set:function(t){this._caller=t}}]),t}()},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Container=void 0;var n=i(1),s=i(0);e.Container=function(t){function e(t){return function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e),function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,"div",{class:s(t,"containerClass"),css:{position:s(t,"fullScreen",!1)?"fixed":"absolute",top:0,left:0,background:s(t,"background","#fff"),color:s(t,"color","#0000001a"),display:"flex","align-items":"center","justify-content":"center",width:"100%",height:"100%","z-index":9999}},t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.Component)},function(t,e,i){var n=i(19),s=i(59);t.exports=function(t,e){for(var i=0,o=(e=n(e,t)).length;null!=t&&i<o;)t=t[s(e[i++])];return i&&i==o?t:void 0}},function(t,e,i){var n=i(5),s=i(20),o=i(26),r=i(56);t.exports=function(t,e){return n(t)?t:s(t,e)?[t]:o(r(t))}},function(t,e,i){var n=i(5),s=i(6),o=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;t.exports=function(t,e){if(n(t))return!1;var i=typeof t;return!("number"!=i&&"symbol"!=i&&"boolean"!=i&&null!=t&&!s(t))||r.test(t)||!o.test(t)||null!=e&&t in Object(e)}},function(t,e,i){(function(e){var i="object"==typeof e&&e&&e.Object===Object&&e;t.exports=i}).call(e,i(22))},function(t,e){var i;i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(i=window)}t.exports=i},function(t,e,i){var n=i(7),s=Object.prototype,o=s.hasOwnProperty,r=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=o.call(t,a),i=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=r.call(t);return n&&(e?t[a]=i:delete t[a]),s}},function(t,e){var i=Object.prototype.toString;t.exports=function(t){return i.call(t)}},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,i){var n=i(27),s=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,o=/\\(\\)?/g,r=n((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(s,(function(t,i,n,s){e.push(n?s.replace(o,"$1"):i||t)})),e}));t.exports=r},function(t,e,i){var n=i(28),s=500;t.exports=function(t){var e=n(t,(function(t){return i.size===s&&i.clear(),t})),i=e.cache;return e}},function(t,e,i){function n(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError(o);var i=function(){var n=arguments,s=e?e.apply(this,n):n[0],o=i.cache;if(o.has(s))return o.get(s);var r=t.apply(this,n);return i.cache=o.set(s,r)||o,r};return i.cache=new(n.Cache||s),i}var s=i(29),o="Expected a function";n.Cache=s,t.exports=n},function(t,e,i){function n(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}var s=i(30),o=i(51),r=i(53),a=i(54),l=i(55);n.prototype.clear=s,n.prototype.delete=o,n.prototype.get=r,n.prototype.has=a,n.prototype.set=l,t.exports=n},function(t,e,i){var n=i(31),s=i(43),o=i(50);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},function(t,e,i){function n(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}var s=i(32),o=i(39),r=i(40),a=i(41),l=i(42);n.prototype.clear=s,n.prototype.delete=o,n.prototype.get=r,n.prototype.has=a,n.prototype.set=l,t.exports=n},function(t,e,i){var n=i(2);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},function(t,e,i){var n=i(34),s=i(35),o=i(11),r=i(37),a=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,h=c.hasOwnProperty,d=RegExp("^"+u.call(h).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!o(t)||s(t))&&(n(t)?d:a).test(r(t))}},function(t,e,i){var n=i(9),s=i(11),o="[object AsyncFunction]",r="[object Function]",a="[object GeneratorFunction]",l="[object Proxy]";t.exports=function(t){if(!s(t))return!1;var e=n(t);return e==r||e==a||e==o||e==l}},function(t,e,i){var n=i(36),s=function(){var t=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();t.exports=function(t){return!!s&&s in t}},function(t,e,i){var n=i(8)["__core-js_shared__"];t.exports=n},function(t,e){var i=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return i.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,i){var n=i(2),s="__lodash_hash_undefined__",o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var i=e[t];return i===s?void 0:i}return o.call(e,t)?e[t]:void 0}},function(t,e,i){var n=i(2),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},function(t,e,i){var n=i(2),s="__lodash_hash_undefined__";t.exports=function(t,e){var i=this.__data__;return this.size+=this.has(t)?0:1,i[t]=n&&void 0===e?s:e,this}},function(t,e,i){function n(t){var e=-1,i=null==t?0:t.length;for(this.clear();++e<i;){var n=t[e];this.set(n[0],n[1])}}var s=i(44),o=i(45),r=i(47),a=i(48),l=i(49);n.prototype.clear=s,n.prototype.delete=o,n.prototype.get=r,n.prototype.has=a,n.prototype.set=l,t.exports=n},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,i){var n=i(3),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,i=n(e,t);return!(i<0||(i==e.length-1?e.pop():s.call(e,i,1),--this.size,0))}},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,i){var n=i(3);t.exports=function(t){var e=this.__data__,i=n(e,t);return i<0?void 0:e[i][1]}},function(t,e,i){var n=i(3);t.exports=function(t){return n(this.__data__,t)>-1}},function(t,e,i){var n=i(3);t.exports=function(t,e){var i=this.__data__,s=n(i,t);return s<0?(++this.size,i.push([t,e])):i[s][1]=e,this}},function(t,e,i){var n=i(10)(i(8),"Map");t.exports=n},function(t,e,i){var n=i(4);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,i){var n=i(4);t.exports=function(t){return n(this,t).get(t)}},function(t,e,i){var n=i(4);t.exports=function(t){return n(this,t).has(t)}},function(t,e,i){var n=i(4);t.exports=function(t,e){var i=n(this,t),s=i.size;return i.set(t,e),this.size+=i.size==s?0:1,this}},function(t,e,i){var n=i(57);t.exports=function(t){return null==t?"":n(t)}},function(t,e,i){var n=i(7),s=i(58),o=i(5),r=i(6),a=1/0,l=n?n.prototype:void 0,c=l?l.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(o(e))return s(e,t)+"";if(r(e))return c?c.call(e):"";var i=e+"";return"0"==i&&1/e==-a?"-0":i}},function(t,e){t.exports=function(t,e){for(var i=-1,n=null==t?0:t.length,s=Array(n);++i<n;)s[i]=e(t[i],i,t);return s}},function(t,e,i){var n=i(6),s=1/0;t.exports=function(t){if("string"==typeof t||n(t))return t;var e=t+"";return"0"==e&&1/t==-s?"-0":e}},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.ContainerItem=void 0;var n=i(1),s=i(0);e.ContainerItem=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=s(t,"textPosition","right");switch(i){case"top":i="column";break;case"bottom":i="column-reverse";break;case"right":i="row-reverse";break;case"left":i="row";break;default:throw"don't know textPosition: "+i}return function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,"div",{class:s(t,"containerItemClass"),css:{background:"none",display:"flex","justify-content":"center","align-items":"center","flex-direction":i}},t))}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.Component)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Text=void 0;var n=i(1),s=i(0);e.Text=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,"span",{class:s(t,"textClass"),css:{color:s(t,"textColor",s(t,"color","#fff")),"font-size":s(t,"fontSize","1rem")},text:s(t,"text","Loading ...")},t)),n="margin-left";switch(s(t,"textPosition","right")){case"top":n="margin-bottom";break;case"bottom":n="margin-top";break;case"left":n="margin-right"}return i.tag.css(n,s(t,"textMargin",".5rem")),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),e}(n.Component)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Spinner=void 0;var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(1),o=i(63),r=i(0);e.Spinner=function(t){function e(t){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,e);var i=function(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}(this,(e.__proto__||Object.getPrototypeOf(e)).call(this,"span",{},t));return r(i._busyLoadOptions,"fontawesome")?i.createFontAwesomeTag():r(i._busyLoadOptions,"custom")?i.createCustomTag():r(i._busyLoadOptions,"image")?i.createImageTag():r(i._busyLoadOptions,"spinner")?i.createCssTag(r(i._busyLoadOptions,"spinner")):i.createCssTag("pump"),i.tag.addClass(r(i._busyLoadOptions,"spinnerClass")),i}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(e,t),n(e,[{key:"createCssTag",value:function(t){var e=new o.SpinnerLib(t,this._busyLoadOptions);this.setTag(e.spinner),this.tag.addClass("busy-load-spinner-css"),this.setMaxMinSize()}},{key:"createImageTag",value:function(){this.options={class:"loader-image",src:this._busyLoadOptions.image},this.setTag("img"),this.setMaxMinSize(),this.tag.addClass("busy-load-spinner-image")}},{key:"createFontAwesomeTag",value:function(){this.options={class:r(this._busyLoadOptions,"fontawesome","fa fa-refresh fa-spin fa-2x fa-fw"),css:{color:r(this._busyLoadOptions,"color","#fff")}},this.setTag("span"),this.tag.addClass("busy-load-spinner-fontawesome"),this._$tag.append($("<span/>",{class:"sr-only",text:"Loading ..."}))}},{key:"createCustomTag",value:function(){var t=r(this._busyLoadOptions,"custom");if(!(t instanceof jQuery))throw"wrong type for creating a tag";this.setTag(t),this.tag.addClass("busy-load-spinner-custom")}},{key:"setMaxMinSize",value:function(){this.tag.css({"max-height":r(this._busyLoadOptions,"maxSize"),"max-width":r(this._busyLoadOptions,"maxSize"),"min-height":r(this._busyLoadOptions,"minSize"),"min-width":r(this._busyLoadOptions,"minSize")})}}]),e}(s.Component)},function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var n=function(){function t(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}return function(e,i,n){return i&&t(e.prototype,i),n&&t(e,n),e}}(),s=i(0);e.SpinnerLib=function(){function t(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};switch(function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this._busyLoadOptions=i,e.toLowerCase()){case"pump":this.createPump();break;case"pulsar":this.createPulsar();break;case"accordion":this.createAccordion();break;case"cube":this.createCube();break;case"cubes":this.createCubes();break;case"circles":this.createCircles();break;case"circle-line":this.createCircleLine();break;case"cube-grid":this.createCubeGrid();break;default:throw"don't know spinner: "+e}}return n(t,[{key:"createCubeGrid",value:function(){this._spinner=$('<div class="spinner-cube-grid"> \n <div class="sk-cube sk-cube1"></div>\n <div class="sk-cube sk-cube2"></div>\n <div class="sk-cube sk-cube3"></div>\n <div class="sk-cube sk-cube4"></div>\n <div class="sk-cube sk-cube5"></div>\n <div class="sk-cube sk-cube6"></div>\n <div class="sk-cube sk-cube7"></div>\n <div class="sk-cube sk-cube8"></div>\n <div class="sk-cube sk-cube9"></div>\n </div>'),this._spinner.find(".sk-cube").css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createCircleLine",value:function(){this._spinner=$('<div class="spinner-circle-line">\n <div class="bounce1"></div>\n <div class="bounce2"></div>\n <div class="bounce3"></div>\n </div>'),this._spinner.find(".bounce1, .bounce2, .bounce3").css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createCircles",value:function(){this._spinner=$('<div class="spinner-circles">\n <div class="dot1"></div>\n <div class="dot2"></div>\n </div>'),this._spinner.css({"margin-right":"0.4rem"}).find(".dot1, .dot2").css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createPump",value:function(){this._spinner=$('<div class="spinner-pump">\n <div class="double-bounce1"></div>\n <div class="double-bounce2"></div>\n </div>'),this._spinner.find(".double-bounce1, .double-bounce2").css({"background-color":s(this._busyLoadOptions,"color","#333"),"margin-right":"0.9rem"})}},{key:"createPulsar",value:function(){this._spinner=$('<div class="spinner-pulsar"></div>'),this._spinner.css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createAccordion",value:function(){this._spinner=$('<div class="spinner-accordion">\n \t\t <div class="rect1"></div>\n \t\t <div class="rect2"></div>\n \t\t <div class="rect3"></div>\n \t\t <div class="rect4"></div>\n \t\t <div class="rect5"></div>\n \t\t</div>'),this._spinner.find("div").css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createCube",value:function(){this._spinner=$('<div class="spinner-cube"></div>'),this._spinner.css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"createCubes",value:function(){this._spinner=$('<div class="spinner-cubes"> \n <div class="cube1"></div>\n <div class="cube2"></div>\n </div>'),this._spinner.css({"margin-right":"0.9rem"}).find(".cube1, .cube2").css({"background-color":s(this._busyLoadOptions,"color","#333")})}},{key:"spinner",get:function(){return this._spinner},set:function(t){this._spinner=t}}]),t}()},function(e,i){e.exports=t}])})),window.hideMaxListItems=function(t,e){document.querySelectorAll(t).forEach((t=>function(t,e){const i=Object.assign({},{max:3,speed:1e3,moreText:"READ MORE",lessText:"READ LESS",moreHTML:'<p class="maxlist-more"><a href="#"></a></p>'},e),n=t,s=n.children.length;let o;if(s>0&&i.speed>0?(o=Math.round(i.speed/s),o<1&&(o=1)):o=0,s>0&&s>i.max){Array.from(n.children).forEach((function(t,e){e+1>i.max?t.style.display="none":t.style.display="block"}));const t=s-i.max;let e=i.moreText,r=i.lessText;t>0&&(e=e.replace("[COUNT]",t.toString()),r=r.replace("[COUNT]",t.toString()));const a=n.nextElementSibling;let l;a&&a.classList.contains("maxlist-more")?(l=a,l.style.display="block"):(l=document.createElement("div"),l.innerHTML=i.moreHTML,n.parentNode.insertBefore(l.firstChild,n.nextSibling),l=n.nextElementSibling);const c=l.querySelector("a");c.innerHTML=e,c.addEventListener("click",(function(t){t.preventDefault();const s=Array.from(n.children).slice(i.max);function a(t,e,i,n){e<t.length&&e>=0?(t[e].style.display=i?"block":"none",setTimeout((function(){a(t,i?e+1:e-1,i,n)}),o)):n()}c.innerHTML===e?(c.innerHTML=r,a(s,0,!0,(function(){}))):(c.innerHTML=e,a(s,s.length-1,!1,(function(){})))}))}else{const t=n.nextElementSibling;t&&t.classList.contains("maxlist-more")&&(t.style.display="none"),Array.from(n.children).forEach((function(t){t.style.display="block"}))}}(t,e)))},function(){function t(t,e){const i={fieldElSelector:['input[type="text"]','input[type="email"]','input[type="password"]','input[type="tel"]','input[type="url"]','input[type="number"]','input[type="date"]','input[type="month"]','input[type="week"]','input[type="time"]','input[type="datetime-local"]','input[type="color"]','input[type="search"]',"textarea"].join(","),fieldElErrorClass:"is-invalid",formErrorElSelector:"formErrorElementSelector",formErrorMessage:"This form contains invalid data.",fieldErrorElClasses:["text-danger"],defaultErrors:{required:"This field is required",validator:"This field is not valid"},errors:{alphanumeric:"Enter an alphanumeric value",numeric:"Enter a positive numeric value",email:"Enter a valid email address",url:"Enter a valid URL",username:"Enter an alphanumeric with underscores, 3-16 characters",password:"Enter a strong password requirements",date:"Enter a valid date (YYYY-MM-DD) format",time:"Enter a valid time (HH 24-hour) format",cardExpiry:"Enter a valid card expiry",cardCvc:"Enter a valid card CVC"},callback:()=>t.submit()},n=Object.assign({},i,e),s=t.querySelectorAll(n.fieldElSelector),o=document.getElementById(n.formErrorElSelector),r={email:{regex:/^[\w-\.]+@([\w-]+\.)+[\w-]{2,4}$/},numeric:{regex:/^\d+$/},url:{regex:/^(ftp|http|https):\/\/[^ "]+$/},cardExpiry:{regex:/^(0[1-9]|1[0-2])\\s?\/\\s?([0-9]{4}|[0-9]{2})$/},cardCvc:{regex:/^[0-9]{3,4}$/},alphanumeric:{regex:/^[a-zA-Z0-9]+$/},date:{regex:/^\d{4}-\d{2}-\d{2}$/},time:{regex:/^([01]?[0-9]|2[0-3]):[0-5][0-9]$/},username:{regex:/^[a-zA-Z0-9_]{3,16}$/},password:{regex:/^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&*]).{8,}$/}},a=(t,e)=>{const i=document.createElement("div");i.classList.add("err-message"),n.fieldErrorElClasses&&i.classList.add(...n.fieldErrorElClasses),i.textContent=e,t.insertAdjacentElement("afterend",i)},l=t=>{const e=t.dataset.validType,i=t.value,s=t.closest(".input-group"),l=s?s.nextElementSibling:t.nextElementSibling;let u=!0,h="";if(i){const t=r[e]??null;if(t&&!t.regex.test(i)){u=!1;let i=n.defaultErrors.validator??null;i=n.errors[e]??i,i=t.error??i,h=i??""}}else c(t)&&(h=n.defaultErrors.required,u=!1);if(t.classList.remove(n.fieldElErrorClass),o&&o.classList.add("d-none"),u)l&&l.classList.contains("err-message")&&l.remove();else{o&&o.classList.remove("d-none"),t.classList.add(n.fieldElErrorClass),s&&s.classList.add(n.fieldElErrorClass);const e=h??"Invalid data";if(l&&l.classList.contains("err-message")){e!==l.innerHTML&&(l.remove(),a(s||t,e))}else a(s||t,e)}return{isValid:u,error:h}},c=t=>t.required||(t=>{if(!isDomElement(t))return!1;const e=t.closest(".required");if(!isDomElement(e))return!1;const i=["hidden","hide","d-none"].some((t=>e.classList.contains(t)));return"none"!==e.style.display&&!i})(t);s.forEach((t=>{t.addEventListener("blur",(t=>l(t.target)))})),t.addEventListener("submit",(e=>{const i=t.querySelectorAll(n.fieldElSelector);let s=!0,r=null;return i.forEach((t=>{let e=l(t);e.isValid||(s=e.isValid,null===r&&(r=t))})),(t=>{if(!o)return!1;o.classList.add("d-none"),t||o.classList.remove("d-none")})(s),s?n.callback&&"function"==typeof n.callback?(e.preventDefault(),n.callback(),!1):void 0:(e.preventDefault(),null!==r&&r.scrollIntoView({behavior:"smooth"}),!1)}))}window.formValidate=function(e,i){document.querySelectorAll(e).forEach((e=>t(e,i)))}}();class BsRowColumnsReorder{constructor(t,e={}){this.selector=t,this.options=Object.assign({defaultColumns:4,debounceTime:50},e),this.gridContainers=[],this.originalItemsOrderCache=[],this.debounceTimer=null,this.init()}init(){this.updateContainers(),window.addEventListener("load",(()=>this.reorderAllGrids())),window.addEventListener("resize",(()=>this.debounce(this.reorderAllGrids.bind(this))))}updateContainers(){const t=Array.from(document.querySelectorAll(this.selector)).filter((t=>!this.gridContainers.includes(t)));t.forEach((t=>this.processContainer(t))),this.gridContainers.push(...t)}processContainer(t){if(!this.hasRowColsClass(t))return;const e=Array.from(t.children);this.originalItemsOrderCache.push({container:t,items:e})}reorderAllGrids(){this.gridContainers.forEach((t=>this.reorderGrid(t)))}reorderGrid(t){if(!this.hasRowColsClass(t))return;const e=this.originalItemsOrderCache.find((e=>e.container===t));if(!e)return;const i=this.parseColumnNumber(t,this.options.defaultColumns),n=this.reorderArrayToColumns(e.items,i);t.innerHTML="",n.forEach((e=>t.appendChild(e)))}addContainer(t){this.processContainer(t),this.reorderGrid(t)}addNewContainers(t){Array.from(t.querySelectorAll(this.selector)).forEach((t=>{this.processContainer(t),this.reorderGrid(t)})),this.updateContainers()}parseColumnNumber(t,e=4){const i=t.className,n={xs:0,sm:576,md:768,lg:992,xl:1200,xxl:1400},s=/row-cols-([a-z]+)-(\d+)/g,o=/row-cols-(\d+)/g,r=window.innerWidth;let a,l=e,c=0,u=!1;for(;null!==(a=s.exec(i));){u=!0;const t=a[1],e=parseInt(a[2],10),i=n[t]||0;r>=i&&i>=c&&(c=i,l=e)}return u||(a=o.exec(i),a&&(l=parseInt(a[1],10))),l}reorderArrayToColumns(t,e){const i=Math.ceil(t.length/e),n=[];for(let e=0;e<t.length;e+=i)n.push(t.slice(e,e+i));const s=[];for(let t=0;t<i;t++)for(let e of n)void 0!==e[t]&&s.push(e[t]);return s}hasRowColsClass(t){return/row-cols-([a-z]+-\d+|\d+)/.test(t.className)}debounce(t){clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(t,this.options.debounceTime)}}if(onDocumentReady((t=>{let e={headers:{"X-Requested-With":"XMLHttpRequest"},async:!0,cache:!0,xhrFields:{withCredentials:!0},crossDomain:!0};const i=document.querySelector('meta[name="csrf-token"]');i&&(e.headers["X-CSRF-TOKEN"]=i.getAttribute("content")),$.ajaxSetup(e)})),void 0===maxSubCats)var maxSubCats=3;function isFromTouchDevice(){return"ontouchstart"in window}var isTouchDevice=isFromTouchDevice();function createCustomSpinnerEl(){return $("<div>",{class:"spinner-border",css:{width:"30px",height:"30px"}})}function applyTooltipStyles(){const t=document.querySelectorAll(".tooltip-inner");t.length>0&&t.forEach((t=>{t.style.width="300px",t.style.maxWidth="300px"}))}function setCountryPhoneCode(t,e){if(void 0===t||void 0===e)return!1;if(void 0===e[t])return!1;const i=document.getElementById("phoneCountry");i&&(i.innerHTML=e[t].phone)}function checkNewMessages(){let t=$(".dropdown-toggle .count-threads-with-new-messages").html();if(void 0===t)return!1;$.ajax({method:"POST",url:siteUrl+"/account/messages/check-new",data:{languageCode:languageCode,oldValue:t,_token:$("input[name=_token]").val()}}).done((function(t){if(void 0===t.logged)return!1;if(0===t.logged||"0"===t.logged||""===t.logged)return!1;let e=$(".count-threads-with-new-messages");return t.countThreadsWithNewMessages>0?(t.countThreadsWithNewMessages>=t.countLimit?e.html(t.countLimit+"+"):e.html(t.countThreadsWithNewMessages),e.show()):e.html("0").hide(),!1}))}function getCsrfToken(t=null){let e=null;const i=document.querySelector("input[name=_token]");if(i&&(e=i.value),isEmpty(e)&&isDomElement(t)){const i=t.closest("form");i&&(e=i.dataset.csrfToken||i.dataset.token||null)}return e}if(onDocumentReady((t=>{initElementTooltips(getHtmlElement()),initElementTooltips(getHtmlElement(),{trigger:"hover"},"tooltipHover"),initElementPopovers(getHtmlElement(),{html:!0});const e=document.getElementById("locSearch");if(e){["mouseover","mouseenter","mouseleave","mousemove"].forEach((t=>{e.addEventListener(t,applyTooltipStyles)}))}let i="rtl"===getHtmlElement().getAttribute("dir"),n=$("#wrapper"),s=$(".navbar-site"),o=s.height();n.css("padding-top",o+"px"),isTouchDevice||function(t){let e=$(""+t).outerHeight();$(document).scroll((function(){let i=(e-window.scrollY)/e;i>=0&&t.css("background-color","rgba(0,0,0,"+(1.1-i)+")")}))}(".layer-bg"),$(".nav-tabs li > a").click((function(){let t=$(this);t.closest("ul").find("li").removeClass("active"),t.parent("li").addClass("active")})),$(this).width()<767&&$(".event-category-list .event-item-col").each((function(t,e){var i=$(this).find(".card-footer"),n=$(this).find(".card-event-info");$(this).find(".badge.price-tag").clone().insertAfter(n),i.clone().insertAfter(n)})),hideMaxListItems(".long-list",{max:8,speed:500,moreText:langLayout.hideMaxListItems.moreText+" ([COUNT])",lessText:langLayout.hideMaxListItems.lessText}),hideMaxListItems(".long-list-user",{max:12,speed:500,moreText:langLayout.hideMaxListItems.moreText+" ([COUNT])",lessText:langLayout.hideMaxListItems.lessText}),hideMaxListItems(".long-list-home",{max:maxSubCats,speed:500,moreText:langLayout.hideMaxListItems.moreText+" ([COUNT])",lessText:langLayout.hideMaxListItems.lessText}),$(".btn-cat-collapsed").click((function(){var t=$(this).data("target"),e=$(this).attr("aria-expanded");if(void 0===e)return!1;$(t).toggle("slow"),"true"==e?$(".cat-list "+t).next(".maxlist-more").hide():$(".cat-list "+t).next(".maxlist-more").show()})),$(".niceselecter").niceSelect({}),$(".scrollbar").niceScroll(),$(document).on("click","a.scrollto",(function(t){t.preventDefault(),$("html, body").animate({scrollTop:$($.attr(this,"href")).offset().top},500)}));var r=$(".cat-collapse");$(window).bind("resize load",(function(){$(this).width()<767?(r.collapse("hide"),r.on("show.bs.collapse",(function(){$(this).prev(".cat-title").find(".icon-down-open-big").addClass("active-panel")})),r.on("hide.bs.collapse",(function(){$(this).prev(".cat-title").find(".icon-down-open-big").removeClass("active-panel")}))):($("#bd-docs-nav").collapse("show"),r.collapse("show"))})),$(".tbtn").click((function(){$(".themeControll").toggleClass("active")})),$("input:radio").click((function(){$("input:radio#job-seeker:checked").length>0?($(".forJobSeeker").removeClass("hide"),$(".forJobFinder").addClass("hide")):($(".forJobFinder").removeClass("hide"),$(".forJobSeeker").addClass("hide"))}));var a={},l={};i?(a={right:"-251px"},l={right:"0"}):(a={left:"-251px"},l={left:"0"}),$(".filter-toggle").click((function(){$(".mobile-filter-sidebar").prepend("<div class='closeFilter'>X</div>").animate(l,250,"linear",(function(){})),$(".menu-overly-mask").addClass("is-visible")})),$(".menu-overly-mask").click((function(){$(".mobile-filter-sidebar").animate(a,250,"linear",(function(){})),$(".menu-overly-mask").removeClass("is-visible")})),$(document).on("click",".closeFilter",(function(){$(".mobile-filter-sidebar").animate(a,250,"linear",(function(){})),$(".menu-overly-mask").removeClass("is-visible")})),$("#browseLocations").on("shown.bs.modal",(function(t){$("ul.list-link li a").click((function(){$("ul.list-link li a").removeClass("active"),$(this).addClass("active"),$(".cityName").text($(this).text()),$("#browseLocations").modal("hide")}))})),$("#checkAll").click((function(){$(".add-img-selector input:checkbox").not(this).prop("checked",this.checked)}));var c;isTouchDevice||(c=0,$(window).scroll((function(t){var e=$(this).scrollTop();e>c?s.addClass("stuck"):s.removeClass("stuck"),e<450&&s.removeClass("stuck"),c=e}))),$(".dropdown-clear-filter").click((function(t){let e=$(this);e.closest(".dropdown-menu").find('input[type="radio"]').prop("checked",!1),e.closest(".dropdown-menu").find('input[type="checkbox"]').prop("checked",!1),t.stopPropagation()})),$(".dropdown-menu.stay").click((function(t){t.stopPropagation()})),"undefined"!=typeof timerNewMessagesChecking&&(checkNewMessages(),timerNewMessagesChecking>0&&setInterval((()=>checkNewMessages()),timerNewMessagesChecking)),$.busyLoadSetup({background:"rgba(0, 0, 0, 0.05)",animation:"fade",spinner:"pump",color:"#666",textPosition:"left"})})),jQuery.event.special.touchstart={setup:function(t,e,i){e.includes("noPreventDefault")?this.addEventListener("touchstart",i,{passive:!1}):this.addEventListener("touchstart",i,{passive:!0})}},void 0===fakeLocationsResults)var fakeLocationsResults="0";if(void 0===errorText)var errorText={errorFound:"Error Found"};"undefined"==typeof isLoggedAdmin&&(isLoggedAdmin=!1);const showNoSuggestionNotice=-1===["1","2"].indexOf(fakeLocationsResults),searchFormSelector="#searchForm ",locationFieldSelector="#searchForm input[type=text][name=location].autocomplete-enabled",locationIdFieldSelector="#searchForm input[type=hidden][name=l]",adminDivisionFieldSelector="#searchForm input[type=hidden][name=r]",tooltipTriggerElSelector=locationFieldSelector+".tooltipHere",threshold=1,suggestionsElSelectorId="autoCompleteResults",suggestionsZIndex=1492;function addOpenAutoCompleteListener(t,e){if(isEmpty(t.detail)){const i=t.target;isEmpty(i.value)||e.start(i.value)}}function displayLoadingMessage(t){if(!isDomElement(t))return!1;adjustSuggestionsElStyle(document.querySelector(locationFieldSelector),t);createFakeElementInList(t,`<i class="bi bi-hourglass-split"></i> ${langLayout.loading}`)}function adjustSuggestionsElStyle(t,e){if(!isDomElement(t)||!isDomElement(e))return!1;const i=getElementCoords(t);if(isEmpty(i))return!1;e.style.position="absolute",e.style.width=i.width+"px",e.style.top=i.bottom+"px",e.style.left=i.left+"px",e.style.zIndex=1492}function hideSuggestionsElWhenAreaTextIsFilled(t,e,i){if(!isDomElement(t)||!isDefined(e)||!isDefined(i))return!1;const n=langLayout.location.area,s=i.substring(0,n.length);e.length<=0&&s===n?(t.classList.add("d-none"),t.innerHTML=""):t.classList.remove("d-none")}function redrawItemElement(t,e,i=null){const n=isDefined(e.admin)?", "+e.admin:"";i=isEmpty(i)?e.name:i,i=`<span class="text-truncate">${i='<i class="bi bi-geo-alt text-secondary"></i> '+(i+=n)}</span>`,t.innerHTML=i}function displayNoResultsMessage(t,e,i,n){let s;if(i.length<=0)s=langLayout.autoComplete.searchCities;else if(i.length>0&&i.length<n)s=langLayout.autoComplete.enterMinimumChars(n);else{if(!showNoSuggestionNotice)return t.classList.add("d-none"),!1;s=langLayout.autoComplete.noResultsFor(i)}s=`<span>${s}</span>`,createFakeElementInList(t,s)}function createFakeElementInList(t,e){const i=document.createElement("div");i.setAttribute("class","auto-complete-no-results px-3 py-2 text-left"),i.innerHTML=e,t.innerHTML="",t.prepend(i)}function selectElement(t,e,i,n){const s=t.detail.selection.value,o=isDefined(s.admin)?", "+s.admin:"",r=s.id,a=s.name+o;i.value=r,e.value=a,e.dataset.oldValue=a,e.blur(),enableTooltipForElement(n)}function emptyHiddenFields(t,e,i=null){isElDefined(t)&&(t.dataset.oldValue=""),isElDefined(e)&&(e.value=""),isElDefined(i)&&(i.value="")}if(onDocumentReady((function(t){if(!isString(countryCode)||"0"===countryCode||""===countryCode)return!1;const e=document.querySelector(locationFieldSelector),i=document.querySelector(locationIdFieldSelector),n=document.querySelector(adminDivisionFieldSelector),s=document.querySelector(tooltipTriggerElSelector);if(!isDomElement(e)||!isDomElement(i))return!1;const o=getCsrfToken(e);addInputChangeListeners(e,(function(t){const e=t.target;isElDefined(e)&&isEmpty(e.value)&&emptyHiddenFields(e,i,n)}));let r={selector:locationFieldSelector,wrapper:!1,threshold:0,debounce:500,diacritics:!0,query:t=>t.trim(),data:{src:t=>{disableTooltipForElement(s);let r=t.replace(/ /g,"");if(t=(t=r.length<=0?r:t).length>=1?t:"",isElDefined(e)){const s=e.dataset.oldValue;isEmpty(s)||t!==s&&emptyHiddenFields(e,i,n)}if(t.length<1)return[];return displayLoadingMessage(document.getElementById("autoCompleteResults")),httpRequest("post",`${siteUrl}/browsing/countries/${strToLower(countryCode)}/cities/autocomplete`,{query:t,_token:o}).then((t=>{if(!isDefined(t.suggestions)){return jsAlert('The "json.suggestions" property is undefined!',"error",!1),[]}return t.suggestions})).catch((t=>{jsAlert(t,"error",!1,!0)}))},keys:["name"],cache:!1},resultsList:{tag:"ul",id:"autoCompleteResults",class:"auto-complete-results dropdown mt-0 p-0 shadow bg-body z-3",destination:"body",position:"beforeend",maxResults:void 0,noResults:!0,element:(t,e)=>{const i=e.query,n=e.results;adjustSuggestionsElStyle(document.querySelector(locationFieldSelector),t),hideSuggestionsElWhenAreaTextIsFilled(t,n,i),n.length<=0&&displayNoResultsMessage(t,n,i,1)}},resultItem:{class:"auto-complete-item px-3 py-2",element:(t,e)=>{redrawItemElement(t,e.value,e.match)},highlight:"auto-complete-item-highlight",selected:"auto-complete-item-selected bg-light-inverse"},events:{input:{focus:t=>{a.input.value.length>=1?a.open():a.start()},selection:t=>selectElement(t,e,i,s)}}};const a=new autoComplete(r);e.addEventListener("open",(t=>addOpenAutoCompleteListener(t,a)))})),void 0===siteUrl)var siteUrl="";if(void 0===isLogged)var isLogged=!1;if(void 0===phoneCountries)var phoneCountries=[];if(void 0===phoneCountry)var phoneCountry="us";if(void 0===defaultAuthField)var defaultAuthField="email";function applyIntlTelInput(t,e,i=null){if(isEmpty(t))return null;let n={initialCountry:"",separateDialCode:!0,preferredCountries:[]};if(isEmpty(siteUrl)||(n.utilsScript=siteUrl+"/assets/plugins/intl-tel-input/17.0.18/js/utils.js"),!isEmpty(i)){let t=function(t){return!isEmpty(t.iso2)&&t.iso2.toLowerCase()===i.toLowerCase()};e.filter((e=>t(e))).length>0&&(n.initialCountry=i.toLowerCase())}if(!isEmpty(e)){let t=window.intlTelInputGlobals.getCountryData();t.length=0,e.forEach((function(e){t.push(e)})),t.length>1&&!isEmpty(i)&&(n.preferredCountries=[i.toLowerCase()])}let s=window.intlTelInput(t,n);const o=function(){let t=document.querySelectorAll("input[name='phone_intl']");if(t.length){let e=s.getNumber();t.forEach((function(t){isEmpty(t)||(t.value=e)}))}let e=document.querySelectorAll("input[name='phone_country']");if(e.length){let t=s.getSelectedCountryData();e.forEach((function(e){isEmpty(e)||isEmpty(t.iso2)||(e.value=t.iso2)}))}};return t.addEventListener("focus",o),t.addEventListener("blur",o),t.addEventListener("change",o),t.addEventListener("keyup",o),s}function selectAuthField(t,e=null,i=null){let n,s;if(i=i||"email",e?(n=e.tagName.toLowerCase(),s="input"===n?e.value:e.dataset.authField??i):s=i,!s||s.length<=0)return jsAlert("Impossible to get the auth field!","error",!1),!1;if(n&&"a"===n){const e=t.querySelectorAll("input[name='auth_field']:not([type=radio], [type=checkbox])");e.length>0&&e.forEach((t=>{t.value=s}))}const o=t.querySelectorAll(".auth-field-item"),r=t.querySelectorAll(".auth-field-item:not(.force-to-display)");let a;const l=t.querySelector("input[name='"+s+"']");if(l&&(a=l.closest(".auth-field-item")),o.length>0&&o.forEach((t=>{t.classList.remove("required");let e=t.querySelector("label sup");e&&e.remove()})),a){a.classList.add("required");let t=a.querySelector("label");t&&(t.innerHTML+=" <sup>*</sup>")}void 0!==isLogged&&!0!==isLogged&&(r.length>0&&r.forEach((t=>{t.classList.add("d-none")})),a&&a.classList.remove("d-none"))}if(onDocumentReady((t=>{applyIntlTelInput(document.querySelector("#mPhone"),phoneCountries,phoneCountry),applyIntlTelInput(document.querySelector("input[name='phone']:not([type=hidden]):not(.m-phone)"),phoneCountries,phoneCountry),applyIntlTelInput(document.querySelector("#fromPhone"),phoneCountries,phoneCountry);const e=document.querySelectorAll("form"),i=Array.from(e).filter((t=>t.querySelector(".auth-field-item")));i.length>0&&i.forEach((t=>{selectAuthField(t,null,defaultAuthField);const e=t.querySelectorAll("a.auth-field");e.length>0&&e.forEach((e=>{e.addEventListener("click",(e=>{e.preventDefault(),selectAuthField(t,e.target)}))}));const i=t.querySelectorAll("input.auth-field-input");i.length>0&&i.forEach((e=>{e.addEventListener("change",(e=>{selectAuthField(t,e.target)}))}))}))})),void 0===showSecurityTips)var showSecurityTips="0";async function showPhone(t,e){let i,n;"i"===t.tagName.toLowerCase()&&(t=t.parentElement);const s=document.getElementById("phoneModal"),o=document.getElementById("phoneModalLink"),r=t.dataset.postId??0;if(0===r||"0"===r||""===r){if(1===e||"1"===e)return!1;const i=t.getAttribute("href");return i.startsWith("tel:")&&(window.location.href=i),!1}const a=t.querySelector("i");let l=`${siteUrl}/posts/${r}/phone`,c={post_id:r,_token:document.querySelector("input[name=_token]").value??null};try{1===e||"1"===e?s.innerHTML='<i class="spinner-border text-primary"></i>':a&&(a.classList.remove("fa-solid","fa-mobile-screen-button"),a.classList.add("spinner-border","spinner-border-sm"),a.style.verticalAlign="middle",a.setAttribute("role","status"),a.setAttribute("aria-hidden","true"));const r=await httpRequest("POST",l,c);if(void 0===r.phoneModal||void 0===r.phone)return!1;if(1===e||"1"===e)s.innerHTML=r.phoneModal,o.setAttribute("href",r.link),i=document.getElementById("securityTips"),i&&!i.classList.contains("show")&&(n=new bootstrap.Modal(i),n.show());else{t.innerHTML='<i class="fa-solid fa-mobile-screen-button"></i> '+r.phone,t.setAttribute("href",r.link);let e=bootstrap.Tooltip.getInstance(t);e&&e.dispose()}t.dataset.postId="0"}catch(t){let i=getErrorMessage(t);null!==i&&jsAlert(i,"error"),1!==e&&"1"!==e&&a&&(a.classList.remove("spinner-border","spinner-border-sm"),a.style.verticalAlign="",a.classList.add("fa-solid","fa-mobile-screen-button"),a.removeAttribute("role"),a.removeAttribute("aria-hidden"))}return!1}if(onDocumentReady((t=>{const e=document.querySelectorAll(".phoneBlock");e.length>0&&e.forEach((t=>{t.addEventListener("click",(t=>(t.preventDefault(),showPhone(t.target,showSecurityTips))))}))})),void 0===isLogged)isLogged=!1;async function savePost(t){let e=null;"a"===(t=t.parentElement).tagName.toLowerCase()&&(e=t.querySelector("i"));let i=t.id??null;if(!i)return console.error("Listing ID not found."),!1;let n=`${siteUrl}/account/saved-posts/toggle`,s={post_id:i,_token:document.querySelector("input[name=_token]").value??null};showWaitingDialog();try{const e=await httpRequest("POST",n,s);if(hideWaitingDialog(),isNotDefined(e.isLogged))return!1;const i=!0!==e.isLogged,o=e.status&&(401===e.status||419===e.status);if(i||o)return openLoginModal(),e.message&&jsAlert(e.message,"error",!1),!1;if(!0===e.isSaved){if(t.classList.contains("btn")){const t=document.getElementById(e.postId);t.classList.remove("btn-default"),t.classList.add("btn-success")}else{const e='data-bs-toggle="tooltip" title="'+lang.labelSavePostRemove+'"';t.innerHTML='<i class="bi bi-bookmark-fill" '+e+"></i>"}jsAlert(e.message,"success")}else{if(t.classList.contains("btn")){const t=document.getElementById(e.postId);t.classList.remove("btn-success"),t.classList.add("btn-default")}else{const e='data-bs-toggle="tooltip" title="'+lang.labelSavePostSave+'"';t.innerHTML='<i class="bi bi-bookmark" '+e+"></i>"}jsAlert(e.message,"success")}return!1}catch(t){if(hideWaitingDialog(),t.response&&t.response.status){const e=t.response;if((401===e.status||419===e.status)&&(openLoginModal(),!isLogged))return!1}let e=getErrorMessage(t);return null!==e&&jsAlert(e,"error",!1),!1}}async function saveSearch(t){"i"===t.tagName.toLowerCase()&&(t=t.parentElement);let e=t.dataset.searchUrl,i=t.dataset.resultsCount;if(!e)return console.error("Search URL not found."),!1;showWaitingDialog();const n=`${siteUrl}/account/saved-searches/store`,s={search_url:e,results_count:i,_token:document.querySelector("input[name=_token]").value??null};try{const t=await httpRequest("POST",n,s);return hideWaitingDialog(),void 0===t.isLogged?!1:!0!==t.isLogged?(openLoginModal(),!1):(jsAlert(t.message,"success"),!1)}catch(t){if(hideWaitingDialog(),t.response&&t.response.status){const e=t.response;if(401===e.status||419===e.status)return openLoginModal(),!1}const e=getErrorMessage(t);return null!==e&&jsAlert(e,"error",!1),!1}}if(onDocumentReady((t=>{const e=document.querySelectorAll("a[id].make-favorite");e.length>0&&e.forEach((t=>{t.addEventListener("click",(t=>(t.preventDefault(),!0!==isLogged?(openLoginModal(),!1):savePost(t.target))))}));const i=document.getElementById("saveSearch");i&&i.addEventListener("click",(t=>(t.preventDefault(),!0!==isLogged?(openLoginModal(),!1):saveSearch(t.target))))})),void 0===isSettingsAppDarkModeEnabled)var isSettingsAppDarkModeEnabled=!1;if(void 0===isDarkModeEnabledForCurrentUser)var isDarkModeEnabledForCurrentUser=!1;if(void 0===isDarkModeEnabledForCurrentDevice)var isDarkModeEnabledForCurrentDevice=!1;function isDarkThemeEnabledInHtml(){const t=getHtmlElement();return isSettingsAppDarkModeEnabled&&"dark"===t.getAttribute("theme")}function isDarkThemeNotEnabledInHtml(){return"dark"!==getHtmlElement().getAttribute("theme")}function setDarkModeServer(t){if(!isDomElement(t))return;"span"===t.tagName.toLowerCase()&&(t=t.parentElement);let e=t.dataset.csrfToken,i=t.dataset.userId,n=isDarkThemeNotEnabledInHtml()?1:0;httpRequest("post",`${siteUrl}/account/dark-mode`,{user_id:i,dark_mode:n,_token:e}).then((t=>{if(void 0===t.darkMode)return void jsAlert(langLayout.darkMode.error,"error");jsAlert(1===t.darkMode?langLayout.darkMode.successSet:langLayout.darkMode.successDisabled,"success")})).catch((t=>jsAlert(t,"error",!1,!0)))}function setDarkMode(t){if(!isDomElement(t))return;"span"===t.tagName.toLowerCase()&&(t=t.parentElement),setDarkModeServer(t);const e=getHtmlElement(),i=document.querySelector(".navbar-identity .navbar-brand .dark-logo"),n=document.querySelector(".navbar-identity .navbar-brand .light-logo");isDomElement(i)&&isDomElement(n)&&(isDarkThemeEnabledInHtml()?(e.setAttribute("theme","light"),delete e.dataset.bsTheme,i.style.display="none",n.style.display="block",t.classList.remove("active")):(e.setAttribute("theme","dark"),e.dataset.bsTheme="dark",i.style.display="block",n.style.display="none",t.classList.add("active")))}function loadDarkMode(){const t=getHtmlElement(),e=document.querySelector(".navbar-identity .navbar-brand .dark-logo"),i=document.querySelector(".navbar-identity .navbar-brand .light-logo");isDomElement(e)&&isDomElement(i)&&(isDarkModeEnabledForCurrentDevice?(t.setAttribute("theme","dark"),t.dataset.bsTheme="dark",e.style.display="block",i.style.display="none"):(t.setAttribute("theme","light"),delete t.dataset.bsTheme,e.style.display="none",i.style.display="block"))}function retrieveDarkModeButtonStatus(t){isDomElement(t)&&(isDarkModeEnabledForCurrentDevice?t.classList.add("active"):t.classList.remove("active"))}onDocumentReady((t=>{loadDarkMode();const e=document.querySelector(".theme-switcher");isDomElement(e)&&(retrieveDarkModeButtonStatus(e),e.addEventListener("click",(t=>{t.preventDefault(),setDarkMode(t.target)})))}));