"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(global,factory){"use strict";if((typeof module==="undefined"?"undefined":_typeof(module))==="object"&&_typeof(module.exports)==="object"){module.exports=global.document?factory(global,true):function(w){if(!w.document){throw new Error("jQuery requires a window with a document");}
return factory(w);};}else{factory(global);}})(typeof window!=="undefined"?window:void 0,function(window,noGlobal){"use strict";var arr=[];var getProto=Object.getPrototypeOf;var _slice=arr.slice;var flat=arr.flat?function(array){return arr.flat.call(array);}:function(array){return arr.concat.apply([],array);};var push=arr.push;var indexOf=arr.indexOf;var class2type={};var toString=class2type.toString;var hasOwn=class2type.hasOwnProperty;var fnToString=hasOwn.toString;var ObjectFunctionString=fnToString.call(Object);var support={};var isFunction=function isFunction(obj){return typeof obj==="function"&&typeof obj.nodeType!=="number"&&typeof obj.item!=="function";};var isWindow=function isWindow(obj){return obj!=null&&obj===obj.window;};var document=window.document;var preservedScriptAttributes={type:true,src:true,nonce:true,noModule:true};function DOMEval(code,node,doc){doc=doc||document;var i,val,script=doc.createElement("script");script.text=code;if(node){for(i in preservedScriptAttributes){val=node[i]||node.getAttribute&&node.getAttribute(i);if(val){script.setAttribute(i,val);}}}
doc.head.appendChild(script).parentNode.removeChild(script);}
function toType(obj){if(obj==null){return obj+"";}
return _typeof(obj)==="object"||typeof obj==="function"?class2type[toString.call(obj)]||"object":_typeof(obj);}
var version="3.7.1",rhtmlSuffix=/HTML$/i,_jQuery2=function jQuery(selector,context){return new _jQuery2.fn.init(selector,context);};_jQuery2.fn=_jQuery2.prototype={jquery:version,constructor:_jQuery2,length:0,toArray:function toArray(){return _slice.call(this);},get:function get(num){if(num==null){return _slice.call(this);}
return num<0?this[num+this.length]:this[num];},pushStack:function pushStack(elems){var ret=_jQuery2.merge(this.constructor(),elems);ret.prevObject=this;return ret;},each:function each(callback){return _jQuery2.each(this,callback);},map:function map(callback){return this.pushStack(_jQuery2.map(this,function(elem,i){return callback.call(elem,i,elem);}));},slice:function slice(){return this.pushStack(_slice.apply(this,arguments));},first:function first(){return this.eq(0);},last:function last(){return this.eq(-1);},even:function even(){return this.pushStack(_jQuery2.grep(this,function(_elem,i){return(i+1)%2;}));},odd:function odd(){return this.pushStack(_jQuery2.grep(this,function(_elem,i){return i%2;}));},eq:function eq(i){var len=this.length,j=+i+(i<0?len:0);return this.pushStack(j>=0&&j<len?[this[j]]:[]);},end:function end(){return this.prevObject||this.constructor();},push:push,sort:arr.sort,splice:arr.splice};_jQuery2.extend=_jQuery2.fn.extend=function(){var options,name,src,copy,copyIsArray,clone,target=arguments[0]||{},i=1,length=arguments.length,deep=false;if(typeof target==="boolean"){deep=target;target=arguments[i]||{};i++;}
if(_typeof(target)!=="object"&&!isFunction(target)){target={};}
if(i===length){target=this;i--;}
for(;i<length;i++){if((options=arguments[i])!=null){for(name in options){copy=options[name];if(name==="__proto__"||target===copy){continue;}
if(deep&&copy&&(_jQuery2.isPlainObject(copy)||(copyIsArray=Array.isArray(copy)))){src=target[name];if(copyIsArray&&!Array.isArray(src)){clone=[];}else if(!copyIsArray&&!_jQuery2.isPlainObject(src)){clone={};}else{clone=src;}
copyIsArray=false;target[name]=_jQuery2.extend(deep,clone,copy);}else if(copy!==undefined){target[name]=copy;}}}}
return target;};_jQuery2.extend({expando:"jQuery"+(version+Math.random()).replace(/\D/g,""),isReady:true,error:function error(msg){throw new Error(msg);},noop:function noop(){},isPlainObject:function isPlainObject(obj){var proto,Ctor;if(!obj||toString.call(obj)!=="[object Object]"){return false;}
proto=getProto(obj);if(!proto){return true;}
Ctor=hasOwn.call(proto,"constructor")&&proto.constructor;return typeof Ctor==="function"&&fnToString.call(Ctor)===ObjectFunctionString;},isEmptyObject:function isEmptyObject(obj){var name;for(name in obj){return false;}
return true;},globalEval:function globalEval(code,options,doc){DOMEval(code,{nonce:options&&options.nonce},doc);},each:function each(obj,callback){var length,i=0;if(isArrayLike(obj)){length=obj.length;for(;i<length;i++){if(callback.call(obj[i],i,obj[i])===false){break;}}}else{for(i in obj){if(callback.call(obj[i],i,obj[i])===false){break;}}}
return obj;},text:function text(elem){var node,ret="",i=0,nodeType=elem.nodeType;if(!nodeType){while(node=elem[i++]){ret+=_jQuery2.text(node);}}
if(nodeType===1||nodeType===11){return elem.textContent;}
if(nodeType===9){return elem.documentElement.textContent;}
if(nodeType===3||nodeType===4){return elem.nodeValue;}
return ret;},makeArray:function makeArray(arr,results){var ret=results||[];if(arr!=null){if(isArrayLike(Object(arr))){_jQuery2.merge(ret,typeof arr==="string"?[arr]:arr);}else{push.call(ret,arr);}}
return ret;},inArray:function inArray(elem,arr,i){return arr==null?-1:indexOf.call(arr,elem,i);},isXMLDoc:function isXMLDoc(elem){var namespace=elem&&elem.namespaceURI,docElem=elem&&(elem.ownerDocument||elem).documentElement;return!rhtmlSuffix.test(namespace||docElem&&docElem.nodeName||"HTML");},merge:function merge(first,second){var len=+second.length,j=0,i=first.length;for(;j<len;j++){first[i++]=second[j];}
first.length=i;return first;},grep:function grep(elems,callback,invert){var callbackInverse,matches=[],i=0,length=elems.length,callbackExpect=!invert;for(;i<length;i++){callbackInverse=!callback(elems[i],i);if(callbackInverse!==callbackExpect){matches.push(elems[i]);}}
return matches;},map:function map(elems,callback,arg){var length,value,i=0,ret=[];if(isArrayLike(elems)){length=elems.length;for(;i<length;i++){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}else{for(i in elems){value=callback(elems[i],i,arg);if(value!=null){ret.push(value);}}}
return flat(ret);},guid:1,support:support});if(typeof Symbol==="function"){_jQuery2.fn[Symbol.iterator]=arr[Symbol.iterator];}
_jQuery2.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(_i,name){class2type["[object "+name+"]"]=name.toLowerCase();});function isArrayLike(obj){var length=!!obj&&"length" in obj&&obj.length,type=toType(obj);if(isFunction(obj)||isWindow(obj)){return false;}
return type==="array"||length===0||typeof length==="number"&&length>0&&length-1 in obj;}
function nodeName(elem,name){return elem.nodeName&&elem.nodeName.toLowerCase()===name.toLowerCase();}
var pop=arr.pop;var sort=arr.sort;var splice=arr.splice;var whitespace="[\\x20\\t\\r\\n\\f]";var rtrimCSS=new RegExp("^"+whitespace+"+|((?:^|[^\\\\])(?:\\\\.)*)"+whitespace+"+$","g");_jQuery2.contains=function(a,b){var bup=b&&b.parentNode;return a===bup||!!(bup&&bup.nodeType===1&&(a.contains?a.contains(bup):a.compareDocumentPosition&&a.compareDocumentPosition(bup)&16));};var rcssescape=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function fcssescape(ch,asCodePoint){if(asCodePoint){if(ch==="\0"){return"\uFFFD";}
return ch.slice(0,-1)+"\\"+ch.charCodeAt(ch.length-1).toString(16)+" ";}
return"\\"+ch;}
_jQuery2.escapeSelector=function(sel){return(sel+"").replace(rcssescape,fcssescape);};var preferredDoc=document,pushNative=push;(function(){var i,Expr,outermostContext,sortInput,hasDuplicate,push=pushNative,document,documentElement,documentIsHTML,rbuggyQSA,matches,expando=_jQuery2.expando,dirruns=0,done=0,classCache=createCache(),tokenCache=createCache(),compilerCache=createCache(),nonnativeSelectorCache=createCache(),sortOrder=function sortOrder(a,b){if(a===b){hasDuplicate=true;}
return 0;},booleans="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|"+"loop|multiple|open|readonly|required|scoped",identifier="(?:\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",attributes="\\["+whitespace+"*("+identifier+")(?:"+whitespace+"*([*^$|!~]?=)"+whitespace+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+identifier+"))|)"+whitespace+"*\\]",pseudos=":("+identifier+")(?:\\(("+"('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|"+"((?:\\\\.|[^\\\\()[\\]]|"+attributes+")*)|"+".*"+")\\)|)",rwhitespace=new RegExp(whitespace+"+","g"),rcomma=new RegExp("^"+whitespace+"*,"+whitespace+"*"),rleadingCombinator=new RegExp("^"+whitespace+"*([>+~]|"+whitespace+")"+whitespace+"*"),rdescend=new RegExp(whitespace+"|>"),rpseudo=new RegExp(pseudos),ridentifier=new RegExp("^"+identifier+"$"),matchExpr={ID:new RegExp("^#("+identifier+")"),CLASS:new RegExp("^\\.("+identifier+")"),TAG:new RegExp("^("+identifier+"|[*])"),ATTR:new RegExp("^"+attributes),PSEUDO:new RegExp("^"+pseudos),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+whitespace+"*(even|odd|(([+-]|)(\\d*)n|)"+whitespace+"*(?:([+-]|)"+whitespace+"*(\\d+)|))"+whitespace+"*\\)|)","i"),bool:new RegExp("^(?:"+booleans+")$","i"),needsContext:new RegExp("^"+whitespace+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+whitespace+"*((?:-\\d)?\\d*)"+whitespace+"*\\)|)(?=[^-]|$)","i")},rinputs=/^(?:input|select|textarea|button)$/i,rheader=/^h\d$/i,rquickExpr=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rsibling=/[+~]/,runescape=new RegExp("\\\\[\\da-fA-F]{1,6}"+whitespace+"?|\\\\([^\\r\\n\\f])","g"),funescape=function funescape(escape,nonHex){var high="0x"+escape.slice(1)-0x10000;if(nonHex){return nonHex;}
return high<0?String.fromCharCode(high+0x10000):String.fromCharCode(high>>10|0xD800,high&0x3FF|0xDC00);},unloadHandler=function unloadHandler(){setDocument();},inDisabledFieldset=addCombinator(function(elem){return elem.disabled===true&&nodeName(elem,"fieldset");},{dir:"parentNode",next:"legend"});function safeActiveElement(){try{return document.activeElement;}catch(err){}}
try{push.apply(arr=_slice.call(preferredDoc.childNodes),preferredDoc.childNodes);arr[preferredDoc.childNodes.length].nodeType;}catch(e){push={apply:function apply(target,els){pushNative.apply(target,_slice.call(els));},call:function call(target){pushNative.apply(target,_slice.call(arguments,1));}};}
function find(selector,context,results,seed){var m,i,elem,nid,match,groups,newSelector,newContext=context&&context.ownerDocument,nodeType=context?context.nodeType:9;results=results||[];if(typeof selector!=="string"||!selector||nodeType!==1&&nodeType!==9&&nodeType!==11){return results;}
if(!seed){setDocument(context);context=context||document;if(documentIsHTML){if(nodeType!==11&&(match=rquickExpr.exec(selector))){if(m=match[1]){if(nodeType===9){if(elem=context.getElementById(m)){if(elem.id===m){push.call(results,elem);return results;}}else{return results;}}else{if(newContext&&(elem=newContext.getElementById(m))&&find.contains(context,elem)&&elem.id===m){push.call(results,elem);return results;}}}else if(match[2]){push.apply(results,context.getElementsByTagName(selector));return results;}else if((m=match[3])&&context.getElementsByClassName){push.apply(results,context.getElementsByClassName(m));return results;}}
if(!nonnativeSelectorCache[selector+" "]&&(!rbuggyQSA||!rbuggyQSA.test(selector))){newSelector=selector;newContext=context;if(nodeType===1&&(rdescend.test(selector)||rleadingCombinator.test(selector))){newContext=rsibling.test(selector)&&testContext(context.parentNode)||context;if(newContext!=context||!support.scope){if(nid=context.getAttribute("id")){nid=_jQuery2.escapeSelector(nid);}else{context.setAttribute("id",nid=expando);}}
groups=tokenize(selector);i=groups.length;while(i--){groups[i]=(nid?"#"+nid:":scope")+" "+toSelector(groups[i]);}
newSelector=groups.join(",");}
try{push.apply(results,newContext.querySelectorAll(newSelector));return results;}catch(qsaError){nonnativeSelectorCache(selector,true);}finally{if(nid===expando){context.removeAttribute("id");}}}}}
return select(selector.replace(rtrimCSS,"$1"),context,results,seed);}
function createCache(){var keys=[];function cache(key,value){if(keys.push(key+" ")>Expr.cacheLength){delete cache[keys.shift()];}
return cache[key+" "]=value;}
return cache;}
function markFunction(fn){fn[expando]=true;return fn;}
function assert(fn){var el=document.createElement("fieldset");try{return!!fn(el);}catch(e){return false;}finally{if(el.parentNode){el.parentNode.removeChild(el);}
el=null;}}
function createInputPseudo(type){return function(elem){return nodeName(elem,"input")&&elem.type===type;};}
function createButtonPseudo(type){return function(elem){return(nodeName(elem,"input")||nodeName(elem,"button"))&&elem.type===type;};}
function createDisabledPseudo(disabled){return function(elem){if("form" in elem){if(elem.parentNode&&elem.disabled===false){if("label" in elem){if("label" in elem.parentNode){return elem.parentNode.disabled===disabled;}else{return elem.disabled===disabled;}}
return elem.isDisabled===disabled||elem.isDisabled!==!disabled&&inDisabledFieldset(elem)===disabled;}
return elem.disabled===disabled;}else if("label" in elem){return elem.disabled===disabled;}
return false;};}
function createPositionalPseudo(fn){return markFunction(function(argument){argument=+argument;return markFunction(function(seed,matches){var j,matchIndexes=fn([],seed.length,argument),i=matchIndexes.length;while(i--){if(seed[j=matchIndexes[i]]){seed[j]=!(matches[j]=seed[j]);}}});});}
function testContext(context){return context&&typeof context.getElementsByTagName!=="undefined"&&context;}
function setDocument(node){var subWindow,doc=node?node.ownerDocument||node:preferredDoc;if(doc==document||doc.nodeType!==9||!doc.documentElement){return document;}
document=doc;documentElement=document.documentElement;documentIsHTML=!_jQuery2.isXMLDoc(document);matches=documentElement.matches||documentElement.webkitMatchesSelector||documentElement.msMatchesSelector;if(documentElement.msMatchesSelector&&preferredDoc!=document&&(subWindow=document.defaultView)&&subWindow.top!==subWindow){subWindow.addEventListener("unload",unloadHandler);}
support.getById=assert(function(el){documentElement.appendChild(el).id=_jQuery2.expando;return!document.getElementsByName||!document.getElementsByName(_jQuery2.expando).length;});support.disconnectedMatch=assert(function(el){return matches.call(el,"*");});support.scope=assert(function(){return document.querySelectorAll(":scope");});support.cssHas=assert(function(){try{document.querySelector(":has(*,:jqfake)");return false;}catch(e){return true;}});if(support.getById){Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){return elem.getAttribute("id")===attrId;};};Expr.find.ID=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var elem=context.getElementById(id);return elem?[elem]:[];}};}else{Expr.filter.ID=function(id){var attrId=id.replace(runescape,funescape);return function(elem){var node=typeof elem.getAttributeNode!=="undefined"&&elem.getAttributeNode("id");return node&&node.value===attrId;};};Expr.find.ID=function(id,context){if(typeof context.getElementById!=="undefined"&&documentIsHTML){var node,i,elems,elem=context.getElementById(id);if(elem){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}
elems=context.getElementsByName(id);i=0;while(elem=elems[i++]){node=elem.getAttributeNode("id");if(node&&node.value===id){return[elem];}}}
return[];}};}
Expr.find.TAG=function(tag,context){if(typeof context.getElementsByTagName!=="undefined"){return context.getElementsByTagName(tag);}else{return context.querySelectorAll(tag);}};Expr.find.CLASS=function(className,context){if(typeof context.getElementsByClassName!=="undefined"&&documentIsHTML){return context.getElementsByClassName(className);}};rbuggyQSA=[];assert(function(el){var input;documentElement.appendChild(el).innerHTML="<a id='"+expando+"' href='' disabled='disabled'></a>"+"<select id='"+expando+"-\r\\' disabled='disabled'>"+"<option selected=''></option></select>";if(!el.querySelectorAll("[selected]").length){rbuggyQSA.push("\\["+whitespace+"*(?:value|"+booleans+")");}
if(!el.querySelectorAll("[id~="+expando+"-]").length){rbuggyQSA.push("~=");}
if(!el.querySelectorAll("a#"+expando+"+*").length){rbuggyQSA.push(".#.+[+~]");}
if(!el.querySelectorAll(":checked").length){rbuggyQSA.push(":checked");}
input=document.createElement("input");input.setAttribute("type","hidden");el.appendChild(input).setAttribute("name","D");documentElement.appendChild(el).disabled=true;if(el.querySelectorAll(":disabled").length!==2){rbuggyQSA.push(":enabled",":disabled");}
input=document.createElement("input");input.setAttribute("name","");el.appendChild(input);if(!el.querySelectorAll("[name='']").length){rbuggyQSA.push("\\["+whitespace+"*name"+whitespace+"*="+whitespace+"*(?:''|\"\")");}});if(!support.cssHas){rbuggyQSA.push(":has");}
rbuggyQSA=rbuggyQSA.length&&new RegExp(rbuggyQSA.join("|"));sortOrder=function sortOrder(a,b){if(a===b){hasDuplicate=true;return 0;}
var compare=!a.compareDocumentPosition-!b.compareDocumentPosition;if(compare){return compare;}
compare=(a.ownerDocument||a)==(b.ownerDocument||b)?a.compareDocumentPosition(b):1;if(compare&1||!support.sortDetached&&b.compareDocumentPosition(a)===compare){if(a===document||a.ownerDocument==preferredDoc&&find.contains(preferredDoc,a)){return-1;}
if(b===document||b.ownerDocument==preferredDoc&&find.contains(preferredDoc,b)){return 1;}
return sortInput?indexOf.call(sortInput,a)-indexOf.call(sortInput,b):0;}
return compare&4?-1:1;};return document;}
find.matches=function(expr,elements){return find(expr,null,null,elements);};find.matchesSelector=function(elem,expr){setDocument(elem);if(documentIsHTML&&!nonnativeSelectorCache[expr+" "]&&(!rbuggyQSA||!rbuggyQSA.test(expr))){try{var ret=matches.call(elem,expr);if(ret||support.disconnectedMatch||elem.document&&elem.document.nodeType!==11){return ret;}}catch(e){nonnativeSelectorCache(expr,true);}}
return find(expr,document,null,[elem]).length>0;};find.contains=function(context,elem){if((context.ownerDocument||context)!=document){setDocument(context);}
return _jQuery2.contains(context,elem);};find.attr=function(elem,name){if((elem.ownerDocument||elem)!=document){setDocument(elem);}
var fn=Expr.attrHandle[name.toLowerCase()],val=fn&&hasOwn.call(Expr.attrHandle,name.toLowerCase())?fn(elem,name,!documentIsHTML):undefined;if(val!==undefined){return val;}
return elem.getAttribute(name);};find.error=function(msg){throw new Error("Syntax error, unrecognized expression: "+msg);};_jQuery2.uniqueSort=function(results){var elem,duplicates=[],j=0,i=0;hasDuplicate=!support.sortStable;sortInput=!support.sortStable&&_slice.call(results,0);sort.call(results,sortOrder);if(hasDuplicate){while(elem=results[i++]){if(elem===results[i]){j=duplicates.push(i);}}
while(j--){splice.call(results,duplicates[j],1);}}
sortInput=null;return results;};_jQuery2.fn.uniqueSort=function(){return this.pushStack(_jQuery2.uniqueSort(_slice.apply(this)));};Expr=_jQuery2.expr={cacheLength:50,createPseudo:markFunction,match:matchExpr,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:true}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:true},"~":{dir:"previousSibling"}},preFilter:{ATTR:function ATTR(match){match[1]=match[1].replace(runescape,funescape);match[3]=(match[3]||match[4]||match[5]||"").replace(runescape,funescape);if(match[2]==="~="){match[3]=" "+match[3]+" ";}
return match.slice(0,4);},CHILD:function CHILD(match){match[1]=match[1].toLowerCase();if(match[1].slice(0,3)==="nth"){if(!match[3]){find.error(match[0]);}
match[4]=+(match[4]?match[5]+(match[6]||1):2*(match[3]==="even"||match[3]==="odd"));match[5]=+(match[7]+match[8]||match[3]==="odd");}else if(match[3]){find.error(match[0]);}
return match;},PSEUDO:function PSEUDO(match){var excess,unquoted=!match[6]&&match[2];if(matchExpr.CHILD.test(match[0])){return null;}
if(match[3]){match[2]=match[4]||match[5]||"";}else if(unquoted&&rpseudo.test(unquoted)&&(excess=tokenize(unquoted,true))&&(excess=unquoted.indexOf(")",unquoted.length-excess)-unquoted.length)){match[0]=match[0].slice(0,excess);match[2]=unquoted.slice(0,excess);}
return match.slice(0,3);}},filter:{TAG:function TAG(nodeNameSelector){var expectedNodeName=nodeNameSelector.replace(runescape,funescape).toLowerCase();return nodeNameSelector==="*"?function(){return true;}:function(elem){return nodeName(elem,expectedNodeName);};},CLASS:function CLASS(className){var pattern=classCache[className+" "];return pattern||(pattern=new RegExp("(^|"+whitespace+")"+className+"("+whitespace+"|$)"))&&classCache(className,function(elem){return pattern.test(typeof elem.className==="string"&&elem.className||typeof elem.getAttribute!=="undefined"&&elem.getAttribute("class")||"");});},ATTR:function ATTR(name,operator,check){return function(elem){var result=find.attr(elem,name);if(result==null){return operator==="!=";}
if(!operator){return true;}
result+="";if(operator==="="){return result===check;}
if(operator==="!="){return result!==check;}
if(operator==="^="){return check&&result.indexOf(check)===0;}
if(operator==="*="){return check&&result.indexOf(check)>-1;}
if(operator==="$="){return check&&result.slice(-check.length)===check;}
if(operator==="~="){return(" "+result.replace(rwhitespace," ")+" ").indexOf(check)>-1;}
if(operator==="|="){return result===check||result.slice(0,check.length+1)===check+"-";}
return false;};},CHILD:function CHILD(type,what,_argument,first,last){var simple=type.slice(0,3)!=="nth",forward=type.slice(-4)!=="last",ofType=what==="of-type";return first===1&&last===0?function(elem){return!!elem.parentNode;}:function(elem,_context,xml){var cache,outerCache,node,nodeIndex,start,dir=simple!==forward?"nextSibling":"previousSibling",parent=elem.parentNode,name=ofType&&elem.nodeName.toLowerCase(),useCache=!xml&&!ofType,diff=false;if(parent){if(simple){while(dir){node=elem;while(node=node[dir]){if(ofType?nodeName(node,name):node.nodeType===1){return false;}}
start=dir=type==="only"&&!start&&"nextSibling";}
return true;}
start=[forward?parent.firstChild:parent.lastChild];if(forward&&useCache){outerCache=parent[expando]||(parent[expando]={});cache=outerCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex&&cache[2];node=nodeIndex&&parent.childNodes[nodeIndex];while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if(node.nodeType===1&&++diff&&node===elem){outerCache[type]=[dirruns,nodeIndex,diff];break;}}}else{if(useCache){outerCache=elem[expando]||(elem[expando]={});cache=outerCache[type]||[];nodeIndex=cache[0]===dirruns&&cache[1];diff=nodeIndex;}
if(diff===false){while(node=++nodeIndex&&node&&node[dir]||(diff=nodeIndex=0)||start.pop()){if((ofType?nodeName(node,name):node.nodeType===1)&&++diff){if(useCache){outerCache=node[expando]||(node[expando]={});outerCache[type]=[dirruns,diff];}
if(node===elem){break;}}}}}
diff-=last;return diff===first||diff%first===0&&diff/first>=0;}};},PSEUDO:function PSEUDO(pseudo,argument){var args,fn=Expr.pseudos[pseudo]||Expr.setFilters[pseudo.toLowerCase()]||find.error("unsupported pseudo: "+pseudo);if(fn[expando]){return fn(argument);}
if(fn.length>1){args=[pseudo,pseudo,"",argument];return Expr.setFilters.hasOwnProperty(pseudo.toLowerCase())?markFunction(function(seed,matches){var idx,matched=fn(seed,argument),i=matched.length;while(i--){idx=indexOf.call(seed,matched[i]);seed[idx]=!(matches[idx]=matched[i]);}}):function(elem){return fn(elem,0,args);};}
return fn;}},pseudos:{not:markFunction(function(selector){var input=[],results=[],matcher=compile(selector.replace(rtrimCSS,"$1"));return matcher[expando]?markFunction(function(seed,matches,_context,xml){var elem,unmatched=matcher(seed,null,xml,[]),i=seed.length;while(i--){if(elem=unmatched[i]){seed[i]=!(matches[i]=elem);}}}):function(elem,_context,xml){input[0]=elem;matcher(input,null,xml,results);input[0]=null;return!results.pop();};}),has:markFunction(function(selector){return function(elem){return find(selector,elem).length>0;};}),contains:markFunction(function(text){text=text.replace(runescape,funescape);return function(elem){return(elem.textContent||_jQuery2.text(elem)).indexOf(text)>-1;};}),lang:markFunction(function(lang){if(!ridentifier.test(lang||"")){find.error("unsupported lang: "+lang);}
lang=lang.replace(runescape,funescape).toLowerCase();return function(elem){var elemLang;do{if(elemLang=documentIsHTML?elem.lang:elem.getAttribute("xml:lang")||elem.getAttribute("lang")){elemLang=elemLang.toLowerCase();return elemLang===lang||elemLang.indexOf(lang+"-")===0;}}while((elem=elem.parentNode)&&elem.nodeType===1);return false;};}),target:function target(elem){var hash=window.location&&window.location.hash;return hash&&hash.slice(1)===elem.id;},root:function root(elem){return elem===documentElement;},focus:function focus(elem){return elem===safeActiveElement()&&document.hasFocus()&&!!(elem.type||elem.href||~elem.tabIndex);},enabled:createDisabledPseudo(false),disabled:createDisabledPseudo(true),checked:function checked(elem){return nodeName(elem,"input")&&!!elem.checked||nodeName(elem,"option")&&!!elem.selected;},selected:function selected(elem){if(elem.parentNode){elem.parentNode.selectedIndex;}
return elem.selected===true;},empty:function empty(elem){for(elem=elem.firstChild;elem;elem=elem.nextSibling){if(elem.nodeType<6){return false;}}
return true;},parent:function parent(elem){return!Expr.pseudos.empty(elem);},header:function header(elem){return rheader.test(elem.nodeName);},input:function input(elem){return rinputs.test(elem.nodeName);},button:function button(elem){return nodeName(elem,"input")&&elem.type==="button"||nodeName(elem,"button");},text:function text(elem){var attr;return nodeName(elem,"input")&&elem.type==="text"&&((attr=elem.getAttribute("type"))==null||attr.toLowerCase()==="text");},first:createPositionalPseudo(function(){return[0];}),last:createPositionalPseudo(function(_matchIndexes,length){return[length-1];}),eq:createPositionalPseudo(function(_matchIndexes,length,argument){return[argument<0?argument+length:argument];}),even:createPositionalPseudo(function(matchIndexes,length){var i=0;for(;i<length;i+=2){matchIndexes.push(i);}
return matchIndexes;}),odd:createPositionalPseudo(function(matchIndexes,length){var i=1;for(;i<length;i+=2){matchIndexes.push(i);}
return matchIndexes;}),lt:createPositionalPseudo(function(matchIndexes,length,argument){var i;if(argument<0){i=argument+length;}else if(argument>length){i=length;}else{i=argument;}
for(;--i>=0;){matchIndexes.push(i);}
return matchIndexes;}),gt:createPositionalPseudo(function(matchIndexes,length,argument){var i=argument<0?argument+length:argument;for(;++i<length;){matchIndexes.push(i);}
return matchIndexes;})}};Expr.pseudos.nth=Expr.pseudos.eq;for(i in{radio:true,checkbox:true,file:true,password:true,image:true}){Expr.pseudos[i]=createInputPseudo(i);}
for(i in{submit:true,reset:true}){Expr.pseudos[i]=createButtonPseudo(i);}
function setFilters(){}
setFilters.prototype=Expr.filters=Expr.pseudos;Expr.setFilters=new setFilters();function tokenize(selector,parseOnly){var matched,match,tokens,type,soFar,groups,preFilters,cached=tokenCache[selector+" "];if(cached){return parseOnly?0:cached.slice(0);}
soFar=selector;groups=[];preFilters=Expr.preFilter;while(soFar){if(!matched||(match=rcomma.exec(soFar))){if(match){soFar=soFar.slice(match[0].length)||soFar;}
groups.push(tokens=[]);}
matched=false;if(match=rleadingCombinator.exec(soFar)){matched=match.shift();tokens.push({value:matched,type:match[0].replace(rtrimCSS," ")});soFar=soFar.slice(matched.length);}
for(type in Expr.filter){if((match=matchExpr[type].exec(soFar))&&(!preFilters[type]||(match=preFilters[type](match)))){matched=match.shift();tokens.push({value:matched,type:type,matches:match});soFar=soFar.slice(matched.length);}}
if(!matched){break;}}
if(parseOnly){return soFar.length;}
return soFar?find.error(selector):tokenCache(selector,groups).slice(0);}
function toSelector(tokens){var i=0,len=tokens.length,selector="";for(;i<len;i++){selector+=tokens[i].value;}
return selector;}
function addCombinator(matcher,combinator,base){var dir=combinator.dir,skip=combinator.next,key=skip||dir,checkNonElements=base&&key==="parentNode",doneName=done++;return combinator.first?function(elem,context,xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){return matcher(elem,context,xml);}}
return false;}:function(elem,context,xml){var oldCache,outerCache,newCache=[dirruns,doneName];if(xml){while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){if(matcher(elem,context,xml)){return true;}}}}else{while(elem=elem[dir]){if(elem.nodeType===1||checkNonElements){outerCache=elem[expando]||(elem[expando]={});if(skip&&nodeName(elem,skip)){elem=elem[dir]||elem;}else if((oldCache=outerCache[key])&&oldCache[0]===dirruns&&oldCache[1]===doneName){return newCache[2]=oldCache[2];}else{outerCache[key]=newCache;if(newCache[2]=matcher(elem,context,xml)){return true;}}}}}
return false;};}
function elementMatcher(matchers){return matchers.length>1?function(elem,context,xml){var i=matchers.length;while(i--){if(!matchers[i](elem,context,xml)){return false;}}
return true;}:matchers[0];}
function multipleContexts(selector,contexts,results){var i=0,len=contexts.length;for(;i<len;i++){find(selector,contexts[i],results);}
return results;}
function condense(unmatched,map,filter,context,xml){var elem,newUnmatched=[],i=0,len=unmatched.length,mapped=map!=null;for(;i<len;i++){if(elem=unmatched[i]){if(!filter||filter(elem,context,xml)){newUnmatched.push(elem);if(mapped){map.push(i);}}}}
return newUnmatched;}
function setMatcher(preFilter,selector,matcher,postFilter,postFinder,postSelector){if(postFilter&&!postFilter[expando]){postFilter=setMatcher(postFilter);}
if(postFinder&&!postFinder[expando]){postFinder=setMatcher(postFinder,postSelector);}
return markFunction(function(seed,results,context,xml){var temp,i,elem,matcherOut,preMap=[],postMap=[],preexisting=results.length,elems=seed||multipleContexts(selector||"*",context.nodeType?[context]:context,[]),matcherIn=preFilter&&(seed||!selector)?condense(elems,preMap,preFilter,context,xml):elems;if(matcher){matcherOut=postFinder||(seed?preFilter:preexisting||postFilter)?[]:results;matcher(matcherIn,matcherOut,context,xml);}else{matcherOut=matcherIn;}
if(postFilter){temp=condense(matcherOut,postMap);postFilter(temp,[],context,xml);i=temp.length;while(i--){if(elem=temp[i]){matcherOut[postMap[i]]=!(matcherIn[postMap[i]]=elem);}}}
if(seed){if(postFinder||preFilter){if(postFinder){temp=[];i=matcherOut.length;while(i--){if(elem=matcherOut[i]){temp.push(matcherIn[i]=elem);}}
postFinder(null,matcherOut=[],temp,xml);}
i=matcherOut.length;while(i--){if((elem=matcherOut[i])&&(temp=postFinder?indexOf.call(seed,elem):preMap[i])>-1){seed[temp]=!(results[temp]=elem);}}}}else{matcherOut=condense(matcherOut===results?matcherOut.splice(preexisting,matcherOut.length):matcherOut);if(postFinder){postFinder(null,results,matcherOut,xml);}else{push.apply(results,matcherOut);}}});}
function matcherFromTokens(tokens){var checkContext,matcher,j,len=tokens.length,leadingRelative=Expr.relative[tokens[0].type],implicitRelative=leadingRelative||Expr.relative[" "],i=leadingRelative?1:0,matchContext=addCombinator(function(elem){return elem===checkContext;},implicitRelative,true),matchAnyContext=addCombinator(function(elem){return indexOf.call(checkContext,elem)>-1;},implicitRelative,true),matchers=[function(elem,context,xml){var ret=!leadingRelative&&(xml||context!=outermostContext)||((checkContext=context).nodeType?matchContext(elem,context,xml):matchAnyContext(elem,context,xml));checkContext=null;return ret;}];for(;i<len;i++){if(matcher=Expr.relative[tokens[i].type]){matchers=[addCombinator(elementMatcher(matchers),matcher)];}else{matcher=Expr.filter[tokens[i].type].apply(null,tokens[i].matches);if(matcher[expando]){j=++i;for(;j<len;j++){if(Expr.relative[tokens[j].type]){break;}}
return setMatcher(i>1&&elementMatcher(matchers),i>1&&toSelector(tokens.slice(0,i-1).concat({value:tokens[i-2].type===" "?"*":""})).replace(rtrimCSS,"$1"),matcher,i<j&&matcherFromTokens(tokens.slice(i,j)),j<len&&matcherFromTokens(tokens=tokens.slice(j)),j<len&&toSelector(tokens));}
matchers.push(matcher);}}
return elementMatcher(matchers);}
function matcherFromGroupMatchers(elementMatchers,setMatchers){var bySet=setMatchers.length>0,byElement=elementMatchers.length>0,superMatcher=function superMatcher(seed,context,xml,results,outermost){var elem,j,matcher,matchedCount=0,i="0",unmatched=seed&&[],setMatched=[],contextBackup=outermostContext,elems=seed||byElement&&Expr.find.TAG("*",outermost),dirrunsUnique=dirruns+=contextBackup==null?1:Math.random()||0.1,len=elems.length;if(outermost){outermostContext=context==document||context||outermost;}
for(;i!==len&&(elem=elems[i])!=null;i++){if(byElement&&elem){j=0;if(!context&&elem.ownerDocument!=document){setDocument(elem);xml=!documentIsHTML;}
while(matcher=elementMatchers[j++]){if(matcher(elem,context||document,xml)){push.call(results,elem);break;}}
if(outermost){dirruns=dirrunsUnique;}}
if(bySet){if(elem=!matcher&&elem){matchedCount--;}
if(seed){unmatched.push(elem);}}}
matchedCount+=i;if(bySet&&i!==matchedCount){j=0;while(matcher=setMatchers[j++]){matcher(unmatched,setMatched,context,xml);}
if(seed){if(matchedCount>0){while(i--){if(!(unmatched[i]||setMatched[i])){setMatched[i]=pop.call(results);}}}
setMatched=condense(setMatched);}
push.apply(results,setMatched);if(outermost&&!seed&&setMatched.length>0&&matchedCount+setMatchers.length>1){_jQuery2.uniqueSort(results);}}
if(outermost){dirruns=dirrunsUnique;outermostContext=contextBackup;}
return unmatched;};return bySet?markFunction(superMatcher):superMatcher;}
function compile(selector,match){var i,setMatchers=[],elementMatchers=[],cached=compilerCache[selector+" "];if(!cached){if(!match){match=tokenize(selector);}
i=match.length;while(i--){cached=matcherFromTokens(match[i]);if(cached[expando]){setMatchers.push(cached);}else{elementMatchers.push(cached);}}
cached=compilerCache(selector,matcherFromGroupMatchers(elementMatchers,setMatchers));cached.selector=selector;}
return cached;}
function select(selector,context,results,seed){var i,tokens,token,type,find,compiled=typeof selector==="function"&&selector,match=!seed&&tokenize(selector=compiled.selector||selector);results=results||[];if(match.length===1){tokens=match[0]=match[0].slice(0);if(tokens.length>2&&(token=tokens[0]).type==="ID"&&context.nodeType===9&&documentIsHTML&&Expr.relative[tokens[1].type]){context=(Expr.find.ID(token.matches[0].replace(runescape,funescape),context)||[])[0];if(!context){return results;}else if(compiled){context=context.parentNode;}
selector=selector.slice(tokens.shift().value.length);}
i=matchExpr.needsContext.test(selector)?0:tokens.length;while(i--){token=tokens[i];if(Expr.relative[type=token.type]){break;}
if(find=Expr.find[type]){if(seed=find(token.matches[0].replace(runescape,funescape),rsibling.test(tokens[0].type)&&testContext(context.parentNode)||context)){tokens.splice(i,1);selector=seed.length&&toSelector(tokens);if(!selector){push.apply(results,seed);return results;}
break;}}}}
(compiled||compile(selector,match))(seed,context,!documentIsHTML,results,!context||rsibling.test(selector)&&testContext(context.parentNode)||context);return results;}
support.sortStable=expando.split("").sort(sortOrder).join("")===expando;setDocument();support.sortDetached=assert(function(el){return el.compareDocumentPosition(document.createElement("fieldset"))&1;});_jQuery2.find=find;_jQuery2.expr[":"]=_jQuery2.expr.pseudos;_jQuery2.unique=_jQuery2.uniqueSort;find.compile=compile;find.select=select;find.setDocument=setDocument;find.tokenize=tokenize;find.escape=_jQuery2.escapeSelector;find.getText=_jQuery2.text;find.isXML=_jQuery2.isXMLDoc;find.selectors=_jQuery2.expr;find.support=_jQuery2.support;find.uniqueSort=_jQuery2.uniqueSort;})();var dir=function dir(elem,_dir,until){var matched=[],truncate=until!==undefined;while((elem=elem[_dir])&&elem.nodeType!==9){if(elem.nodeType===1){if(truncate&&_jQuery2(elem).is(until)){break;}
matched.push(elem);}}
return matched;};var _siblings=function siblings(n,elem){var matched=[];for(;n;n=n.nextSibling){if(n.nodeType===1&&n!==elem){matched.push(n);}}
return matched;};var rneedsContext=_jQuery2.expr.match.needsContext;var rsingleTag=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function winnow(elements,qualifier,not){if(isFunction(qualifier)){return _jQuery2.grep(elements,function(elem,i){return!!qualifier.call(elem,i,elem)!==not;});}
if(qualifier.nodeType){return _jQuery2.grep(elements,function(elem){return elem===qualifier!==not;});}
if(typeof qualifier!=="string"){return _jQuery2.grep(elements,function(elem){return indexOf.call(qualifier,elem)>-1!==not;});}
return _jQuery2.filter(qualifier,elements,not);}
_jQuery2.filter=function(expr,elems,not){var elem=elems[0];if(not){expr=":not("+expr+")";}
if(elems.length===1&&elem.nodeType===1){return _jQuery2.find.matchesSelector(elem,expr)?[elem]:[];}
return _jQuery2.find.matches(expr,_jQuery2.grep(elems,function(elem){return elem.nodeType===1;}));};_jQuery2.fn.extend({find:function find(selector){var i,ret,len=this.length,self=this;if(typeof selector!=="string"){return this.pushStack(_jQuery2(selector).filter(function(){for(i=0;i<len;i++){if(_jQuery2.contains(self[i],this)){return true;}}}));}
ret=this.pushStack([]);for(i=0;i<len;i++){_jQuery2.find(selector,self[i],ret);}
return len>1?_jQuery2.uniqueSort(ret):ret;},filter:function filter(selector){return this.pushStack(winnow(this,selector||[],false));},not:function not(selector){return this.pushStack(winnow(this,selector||[],true));},is:function is(selector){return!!winnow(this,typeof selector==="string"&&rneedsContext.test(selector)?_jQuery2(selector):selector||[],false).length;}});var rootjQuery,rquickExpr=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,init=_jQuery2.fn.init=function(selector,context,root){var match,elem;if(!selector){return this;}
root=root||rootjQuery;if(typeof selector==="string"){if(selector[0]==="<"&&selector[selector.length-1]===">"&&selector.length>=3){match=[null,selector,null];}else{match=rquickExpr.exec(selector);}
if(match&&(match[1]||!context)){if(match[1]){context=context instanceof _jQuery2?context[0]:context;_jQuery2.merge(this,_jQuery2.parseHTML(match[1],context&&context.nodeType?context.ownerDocument||context:document,true));if(rsingleTag.test(match[1])&&_jQuery2.isPlainObject(context)){for(match in context){if(isFunction(this[match])){this[match](context[match]);}else{this.attr(match,context[match]);}}}
return this;}else{elem=document.getElementById(match[2]);if(elem){this[0]=elem;this.length=1;}
return this;}}else if(!context||context.jquery){return(context||root).find(selector);}else{return this.constructor(context).find(selector);}}else if(selector.nodeType){this[0]=selector;this.length=1;return this;}else if(isFunction(selector)){return root.ready!==undefined?root.ready(selector):selector(_jQuery2);}
return _jQuery2.makeArray(selector,this);};init.prototype=_jQuery2.fn;rootjQuery=_jQuery2(document);var rparentsprev=/^(?:parents|prev(?:Until|All))/,guaranteedUnique={children:true,contents:true,next:true,prev:true};_jQuery2.fn.extend({has:function has(target){var targets=_jQuery2(target,this),l=targets.length;return this.filter(function(){var i=0;for(;i<l;i++){if(_jQuery2.contains(this,targets[i])){return true;}}});},closest:function closest(selectors,context){var cur,i=0,l=this.length,matched=[],targets=typeof selectors!=="string"&&_jQuery2(selectors);if(!rneedsContext.test(selectors)){for(;i<l;i++){for(cur=this[i];cur&&cur!==context;cur=cur.parentNode){if(cur.nodeType<11&&(targets?targets.index(cur)>-1:cur.nodeType===1&&_jQuery2.find.matchesSelector(cur,selectors))){matched.push(cur);break;}}}}
return this.pushStack(matched.length>1?_jQuery2.uniqueSort(matched):matched);},index:function index(elem){if(!elem){return this[0]&&this[0].parentNode?this.first().prevAll().length:-1;}
if(typeof elem==="string"){return indexOf.call(_jQuery2(elem),this[0]);}
return indexOf.call(this,elem.jquery?elem[0]:elem);},add:function add(selector,context){return this.pushStack(_jQuery2.uniqueSort(_jQuery2.merge(this.get(),_jQuery2(selector,context))));},addBack:function addBack(selector){return this.add(selector==null?this.prevObject:this.prevObject.filter(selector));}});function sibling(cur,dir){while((cur=cur[dir])&&cur.nodeType!==1){}
return cur;}
_jQuery2.each({parent:function parent(elem){var parent=elem.parentNode;return parent&&parent.nodeType!==11?parent:null;},parents:function parents(elem){return dir(elem,"parentNode");},parentsUntil:function parentsUntil(elem,_i,until){return dir(elem,"parentNode",until);},next:function next(elem){return sibling(elem,"nextSibling");},prev:function prev(elem){return sibling(elem,"previousSibling");},nextAll:function nextAll(elem){return dir(elem,"nextSibling");},prevAll:function prevAll(elem){return dir(elem,"previousSibling");},nextUntil:function nextUntil(elem,_i,until){return dir(elem,"nextSibling",until);},prevUntil:function prevUntil(elem,_i,until){return dir(elem,"previousSibling",until);},siblings:function siblings(elem){return _siblings((elem.parentNode||{}).firstChild,elem);},children:function children(elem){return _siblings(elem.firstChild);},contents:function contents(elem){if(elem.contentDocument!=null&&getProto(elem.contentDocument)){return elem.contentDocument;}
if(nodeName(elem,"template")){elem=elem.content||elem;}
return _jQuery2.merge([],elem.childNodes);}},function(name,fn){_jQuery2.fn[name]=function(until,selector){var matched=_jQuery2.map(this,fn,until);if(name.slice(-5)!=="Until"){selector=until;}
if(selector&&typeof selector==="string"){matched=_jQuery2.filter(selector,matched);}
if(this.length>1){if(!guaranteedUnique[name]){_jQuery2.uniqueSort(matched);}
if(rparentsprev.test(name)){matched.reverse();}}
return this.pushStack(matched);};});var rnothtmlwhite=/[^\x20\t\r\n\f]+/g;function createOptions(options){var object={};_jQuery2.each(options.match(rnothtmlwhite)||[],function(_,flag){object[flag]=true;});return object;}
_jQuery2.Callbacks=function(options){options=typeof options==="string"?createOptions(options):_jQuery2.extend({},options);var
firing,memory,_fired,_locked,list=[],queue=[],firingIndex=-1,fire=function fire(){_locked=_locked||options.once;_fired=firing=true;for(;queue.length;firingIndex=-1){memory=queue.shift();while(++firingIndex<list.length){if(list[firingIndex].apply(memory[0],memory[1])===false&&options.stopOnFalse){firingIndex=list.length;memory=false;}}}
if(!options.memory){memory=false;}
firing=false;if(_locked){if(memory){list=[];}else{list="";}}},self={add:function add(){if(list){if(memory&&!firing){firingIndex=list.length-1;queue.push(memory);}
(function add(args){_jQuery2.each(args,function(_,arg){if(isFunction(arg)){if(!options.unique||!self.has(arg)){list.push(arg);}}else if(arg&&arg.length&&toType(arg)!=="string"){add(arg);}});})(arguments);if(memory&&!firing){fire();}}
return this;},remove:function remove(){_jQuery2.each(arguments,function(_,arg){var index;while((index=_jQuery2.inArray(arg,list,index))>-1){list.splice(index,1);if(index<=firingIndex){firingIndex--;}}});return this;},has:function has(fn){return fn?_jQuery2.inArray(fn,list)>-1:list.length>0;},empty:function empty(){if(list){list=[];}
return this;},disable:function disable(){_locked=queue=[];list=memory="";return this;},disabled:function disabled(){return!list;},lock:function lock(){_locked=queue=[];if(!memory&&!firing){list=memory="";}
return this;},locked:function locked(){return!!_locked;},fireWith:function fireWith(context,args){if(!_locked){args=args||[];args=[context,args.slice?args.slice():args];queue.push(args);if(!firing){fire();}}
return this;},fire:function fire(){self.fireWith(this,arguments);return this;},fired:function fired(){return!!_fired;}};return self;};function Identity(v){return v;}
function Thrower(ex){throw ex;}
function adoptValue(value,resolve,reject,noValue){var method;try{if(value&&isFunction(method=value.promise)){method.call(value).done(resolve).fail(reject);}else if(value&&isFunction(method=value.then)){method.call(value,resolve,reject);}else{resolve.apply(undefined,[value].slice(noValue));}}catch(value){reject.apply(undefined,[value]);}}
_jQuery2.extend({Deferred:function Deferred(func){var tuples=[["notify","progress",_jQuery2.Callbacks("memory"),_jQuery2.Callbacks("memory"),2],["resolve","done",_jQuery2.Callbacks("once memory"),_jQuery2.Callbacks("once memory"),0,"resolved"],["reject","fail",_jQuery2.Callbacks("once memory"),_jQuery2.Callbacks("once memory"),1,"rejected"]],_state="pending",_promise={state:function state(){return _state;},always:function always(){deferred.done(arguments).fail(arguments);return this;},"catch":function _catch(fn){return _promise.then(null,fn);},pipe:function pipe(){var fns=arguments;return _jQuery2.Deferred(function(newDefer){_jQuery2.each(tuples,function(_i,tuple){var fn=isFunction(fns[tuple[4]])&&fns[tuple[4]];deferred[tuple[1]](function(){var returned=fn&&fn.apply(this,arguments);if(returned&&isFunction(returned.promise)){returned.promise().progress(newDefer.notify).done(newDefer.resolve).fail(newDefer.reject);}else{newDefer[tuple[0]+"With"](this,fn?[returned]:arguments);}});});fns=null;}).promise();},then:function then(onFulfilled,onRejected,onProgress){var maxDepth=0;function resolve(depth,deferred,handler,special){return function(){var that=this,args=arguments,mightThrow=function mightThrow(){var returned,then;if(depth<maxDepth){return;}
returned=handler.apply(that,args);if(returned===deferred.promise()){throw new TypeError("Thenable self-resolution");}
then=returned&&(_typeof(returned)==="object"||typeof returned==="function")&&returned.then;if(isFunction(then)){if(special){then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special));}else{maxDepth++;then.call(returned,resolve(maxDepth,deferred,Identity,special),resolve(maxDepth,deferred,Thrower,special),resolve(maxDepth,deferred,Identity,deferred.notifyWith));}}else{if(handler!==Identity){that=undefined;args=[returned];}
(special||deferred.resolveWith)(that,args);}},process=special?mightThrow:function(){try{mightThrow();}catch(e){if(_jQuery2.Deferred.exceptionHook){_jQuery2.Deferred.exceptionHook(e,process.error);}
if(depth+1>=maxDepth){if(handler!==Thrower){that=undefined;args=[e];}
deferred.rejectWith(that,args);}}};if(depth){process();}else{if(_jQuery2.Deferred.getErrorHook){process.error=_jQuery2.Deferred.getErrorHook();}else if(_jQuery2.Deferred.getStackHook){process.error=_jQuery2.Deferred.getStackHook();}
window.setTimeout(process);}};}
return _jQuery2.Deferred(function(newDefer){tuples[0][3].add(resolve(0,newDefer,isFunction(onProgress)?onProgress:Identity,newDefer.notifyWith));tuples[1][3].add(resolve(0,newDefer,isFunction(onFulfilled)?onFulfilled:Identity));tuples[2][3].add(resolve(0,newDefer,isFunction(onRejected)?onRejected:Thrower));}).promise();},promise:function promise(obj){return obj!=null?_jQuery2.extend(obj,_promise):_promise;}},deferred={};_jQuery2.each(tuples,function(i,tuple){var list=tuple[2],stateString=tuple[5];_promise[tuple[1]]=list.add;if(stateString){list.add(function(){_state=stateString;},tuples[3-i][2].disable,tuples[3-i][3].disable,tuples[0][2].lock,tuples[0][3].lock);}
list.add(tuple[3].fire);deferred[tuple[0]]=function(){deferred[tuple[0]+"With"](this===deferred?undefined:this,arguments);return this;};deferred[tuple[0]+"With"]=list.fireWith;});_promise.promise(deferred);if(func){func.call(deferred,deferred);}
return deferred;},when:function when(singleValue){var
remaining=arguments.length,i=remaining,resolveContexts=Array(i),resolveValues=_slice.call(arguments),primary=_jQuery2.Deferred(),updateFunc=function updateFunc(i){return function(value){resolveContexts[i]=this;resolveValues[i]=arguments.length>1?_slice.call(arguments):value;if(!--remaining){primary.resolveWith(resolveContexts,resolveValues);}};};if(remaining<=1){adoptValue(singleValue,primary.done(updateFunc(i)).resolve,primary.reject,!remaining);if(primary.state()==="pending"||isFunction(resolveValues[i]&&resolveValues[i].then)){return primary.then();}}
while(i--){adoptValue(resolveValues[i],updateFunc(i),primary.reject);}
return primary.promise();}});var rerrorNames=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;_jQuery2.Deferred.exceptionHook=function(error,asyncError){if(window.console&&window.console.warn&&error&&rerrorNames.test(error.name)){window.console.warn("jQuery.Deferred exception: "+error.message,error.stack,asyncError);}};_jQuery2.readyException=function(error){window.setTimeout(function(){throw error;});};var readyList=_jQuery2.Deferred();_jQuery2.fn.ready=function(fn){readyList.then(fn).catch(function(error){_jQuery2.readyException(error);});return this;};_jQuery2.extend({isReady:false,readyWait:1,ready:function ready(wait){if(wait===true?--_jQuery2.readyWait:_jQuery2.isReady){return;}
_jQuery2.isReady=true;if(wait!==true&&--_jQuery2.readyWait>0){return;}
readyList.resolveWith(document,[_jQuery2]);}});_jQuery2.ready.then=readyList.then;function completed(){document.removeEventListener("DOMContentLoaded",completed);window.removeEventListener("load",completed);_jQuery2.ready();}
if(document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll){window.setTimeout(_jQuery2.ready);}else{document.addEventListener("DOMContentLoaded",completed);window.addEventListener("load",completed);}
var _access=function access(elems,fn,key,value,chainable,emptyGet,raw){var i=0,len=elems.length,bulk=key==null;if(toType(key)==="object"){chainable=true;for(i in key){_access(elems,fn,i,key[i],true,emptyGet,raw);}}else if(value!==undefined){chainable=true;if(!isFunction(value)){raw=true;}
if(bulk){if(raw){fn.call(elems,value);fn=null;}else{bulk=fn;fn=function fn(elem,_key,value){return bulk.call(_jQuery2(elem),value);};}}
if(fn){for(;i<len;i++){fn(elems[i],key,raw?value:value.call(elems[i],i,fn(elems[i],key)));}}}
if(chainable){return elems;}
if(bulk){return fn.call(elems);}
return len?fn(elems[0],key):emptyGet;};var rmsPrefix=/^-ms-/,rdashAlpha=/-([a-z])/g;function fcamelCase(_all,letter){return letter.toUpperCase();}
function camelCase(string){return string.replace(rmsPrefix,"ms-").replace(rdashAlpha,fcamelCase);}
var acceptData=function acceptData(owner){return owner.nodeType===1||owner.nodeType===9||!+owner.nodeType;};function Data(){this.expando=_jQuery2.expando+Data.uid++;}
Data.uid=1;Data.prototype={cache:function cache(owner){var value=owner[this.expando];if(!value){value={};if(acceptData(owner)){if(owner.nodeType){owner[this.expando]=value;}else{Object.defineProperty(owner,this.expando,{value:value,configurable:true});}}}
return value;},set:function set(owner,data,value){var prop,cache=this.cache(owner);if(typeof data==="string"){cache[camelCase(data)]=value;}else{for(prop in data){cache[camelCase(prop)]=data[prop];}}
return cache;},get:function get(owner,key){return key===undefined?this.cache(owner):owner[this.expando]&&owner[this.expando][camelCase(key)];},access:function access(owner,key,value){if(key===undefined||key&&typeof key==="string"&&value===undefined){return this.get(owner,key);}
this.set(owner,key,value);return value!==undefined?value:key;},remove:function remove(owner,key){var i,cache=owner[this.expando];if(cache===undefined){return;}
if(key!==undefined){if(Array.isArray(key)){key=key.map(camelCase);}else{key=camelCase(key);key=key in cache?[key]:key.match(rnothtmlwhite)||[];}
i=key.length;while(i--){delete cache[key[i]];}}
if(key===undefined||_jQuery2.isEmptyObject(cache)){if(owner.nodeType){owner[this.expando]=undefined;}else{delete owner[this.expando];}}},hasData:function hasData(owner){var cache=owner[this.expando];return cache!==undefined&&!_jQuery2.isEmptyObject(cache);}};var dataPriv=new Data();var dataUser=new Data();var rbrace=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,rmultiDash=/[A-Z]/g;function getData(data){if(data==="true"){return true;}
if(data==="false"){return false;}
if(data==="null"){return null;}
if(data===+data+""){return+data;}
if(rbrace.test(data)){return JSON.parse(data);}
return data;}
function dataAttr(elem,key,data){var name;if(data===undefined&&elem.nodeType===1){name="data-"+key.replace(rmultiDash,"-$&").toLowerCase();data=elem.getAttribute(name);if(typeof data==="string"){try{data=getData(data);}catch(e){}
dataUser.set(elem,key,data);}else{data=undefined;}}
return data;}
_jQuery2.extend({hasData:function hasData(elem){return dataUser.hasData(elem)||dataPriv.hasData(elem);},data:function data(elem,name,_data){return dataUser.access(elem,name,_data);},removeData:function removeData(elem,name){dataUser.remove(elem,name);},_data:function _data(elem,name,data){return dataPriv.access(elem,name,data);},_removeData:function _removeData(elem,name){dataPriv.remove(elem,name);}});_jQuery2.fn.extend({data:function data(key,value){var i,name,data,elem=this[0],attrs=elem&&elem.attributes;if(key===undefined){if(this.length){data=dataUser.get(elem);if(elem.nodeType===1&&!dataPriv.get(elem,"hasDataAttrs")){i=attrs.length;while(i--){if(attrs[i]){name=attrs[i].name;if(name.indexOf("data-")===0){name=camelCase(name.slice(5));dataAttr(elem,name,data[name]);}}}
dataPriv.set(elem,"hasDataAttrs",true);}}
return data;}
if(_typeof(key)==="object"){return this.each(function(){dataUser.set(this,key);});}
return _access(this,function(value){var data;if(elem&&value===undefined){data=dataUser.get(elem,key);if(data!==undefined){return data;}
data=dataAttr(elem,key);if(data!==undefined){return data;}
return;}
this.each(function(){dataUser.set(this,key,value);});},null,value,arguments.length>1,null,true);},removeData:function removeData(key){return this.each(function(){dataUser.remove(this,key);});}});_jQuery2.extend({queue:function queue(elem,type,data){var queue;if(elem){type=(type||"fx")+"queue";queue=dataPriv.get(elem,type);if(data){if(!queue||Array.isArray(data)){queue=dataPriv.access(elem,type,_jQuery2.makeArray(data));}else{queue.push(data);}}
return queue||[];}},dequeue:function dequeue(elem,type){type=type||"fx";var queue=_jQuery2.queue(elem,type),startLength=queue.length,fn=queue.shift(),hooks=_jQuery2._queueHooks(elem,type),next=function next(){_jQuery2.dequeue(elem,type);};if(fn==="inprogress"){fn=queue.shift();startLength--;}
if(fn){if(type==="fx"){queue.unshift("inprogress");}
delete hooks.stop;fn.call(elem,next,hooks);}
if(!startLength&&hooks){hooks.empty.fire();}},_queueHooks:function _queueHooks(elem,type){var key=type+"queueHooks";return dataPriv.get(elem,key)||dataPriv.access(elem,key,{empty:_jQuery2.Callbacks("once memory").add(function(){dataPriv.remove(elem,[type+"queue",key]);})});}});_jQuery2.fn.extend({queue:function queue(type,data){var setter=2;if(typeof type!=="string"){data=type;type="fx";setter--;}
if(arguments.length<setter){return _jQuery2.queue(this[0],type);}
return data===undefined?this:this.each(function(){var queue=_jQuery2.queue(this,type,data);_jQuery2._queueHooks(this,type);if(type==="fx"&&queue[0]!=="inprogress"){_jQuery2.dequeue(this,type);}});},dequeue:function dequeue(type){return this.each(function(){_jQuery2.dequeue(this,type);});},clearQueue:function clearQueue(type){return this.queue(type||"fx",[]);},promise:function promise(type,obj){var tmp,count=1,defer=_jQuery2.Deferred(),elements=this,i=this.length,resolve=function resolve(){if(!--count){defer.resolveWith(elements,[elements]);}};if(typeof type!=="string"){obj=type;type=undefined;}
type=type||"fx";while(i--){tmp=dataPriv.get(elements[i],type+"queueHooks");if(tmp&&tmp.empty){count++;tmp.empty.add(resolve);}}
resolve();return defer.promise(obj);}});var pnum=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source;var rcssNum=new RegExp("^(?:([+-])=|)("+pnum+")([a-z%]*)$","i");var cssExpand=["Top","Right","Bottom","Left"];var documentElement=document.documentElement;var isAttached=function isAttached(elem){return _jQuery2.contains(elem.ownerDocument,elem);},composed={composed:true};if(documentElement.getRootNode){isAttached=function isAttached(elem){return _jQuery2.contains(elem.ownerDocument,elem)||elem.getRootNode(composed)===elem.ownerDocument;};}
var isHiddenWithinTree=function isHiddenWithinTree(elem,el){elem=el||elem;return elem.style.display==="none"||elem.style.display===""&&isAttached(elem)&&_jQuery2.css(elem,"display")==="none";};function adjustCSS(elem,prop,valueParts,tween){var adjusted,scale,maxIterations=20,currentValue=tween?function(){return tween.cur();}:function(){return _jQuery2.css(elem,prop,"");},initial=currentValue(),unit=valueParts&&valueParts[3]||(_jQuery2.cssNumber[prop]?"":"px"),initialInUnit=elem.nodeType&&(_jQuery2.cssNumber[prop]||unit!=="px"&&+initial)&&rcssNum.exec(_jQuery2.css(elem,prop));if(initialInUnit&&initialInUnit[3]!==unit){initial=initial/2;unit=unit||initialInUnit[3];initialInUnit=+initial||1;while(maxIterations--){_jQuery2.style(elem,prop,initialInUnit+unit);if((1-scale)*(1-(scale=currentValue()/initial||0.5))<=0){maxIterations=0;}
initialInUnit=initialInUnit/scale;}
initialInUnit=initialInUnit*2;_jQuery2.style(elem,prop,initialInUnit+unit);valueParts=valueParts||[];}
if(valueParts){initialInUnit=+initialInUnit||+initial||0;adjusted=valueParts[1]?initialInUnit+(valueParts[1]+1)*valueParts[2]:+valueParts[2];if(tween){tween.unit=unit;tween.start=initialInUnit;tween.end=adjusted;}}
return adjusted;}
var defaultDisplayMap={};function getDefaultDisplay(elem){var temp,doc=elem.ownerDocument,nodeName=elem.nodeName,display=defaultDisplayMap[nodeName];if(display){return display;}
temp=doc.body.appendChild(doc.createElement(nodeName));display=_jQuery2.css(temp,"display");temp.parentNode.removeChild(temp);if(display==="none"){display="block";}
defaultDisplayMap[nodeName]=display;return display;}
function showHide(elements,show){var display,elem,values=[],index=0,length=elements.length;for(;index<length;index++){elem=elements[index];if(!elem.style){continue;}
display=elem.style.display;if(show){if(display==="none"){values[index]=dataPriv.get(elem,"display")||null;if(!values[index]){elem.style.display="";}}
if(elem.style.display===""&&isHiddenWithinTree(elem)){values[index]=getDefaultDisplay(elem);}}else{if(display!=="none"){values[index]="none";dataPriv.set(elem,"display",display);}}}
for(index=0;index<length;index++){if(values[index]!=null){elements[index].style.display=values[index];}}
return elements;}
_jQuery2.fn.extend({show:function show(){return showHide(this,true);},hide:function hide(){return showHide(this);},toggle:function toggle(state){if(typeof state==="boolean"){return state?this.show():this.hide();}
return this.each(function(){if(isHiddenWithinTree(this)){_jQuery2(this).show();}else{_jQuery2(this).hide();}});}});var rcheckableType=/^(?:checkbox|radio)$/i;var rtagName=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var rscriptType=/^$|^module$|\/(?:java|ecma)script/i;(function(){var fragment=document.createDocumentFragment(),div=fragment.appendChild(document.createElement("div")),input=document.createElement("input");input.setAttribute("type","radio");input.setAttribute("checked","checked");input.setAttribute("name","t");div.appendChild(input);support.checkClone=div.cloneNode(true).cloneNode(true).lastChild.checked;div.innerHTML="<textarea>x</textarea>";support.noCloneChecked=!!div.cloneNode(true).lastChild.defaultValue;div.innerHTML="<option></option>";support.option=!!div.lastChild;})();var wrapMap={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,"",""]};wrapMap.tbody=wrapMap.tfoot=wrapMap.colgroup=wrapMap.caption=wrapMap.thead;wrapMap.th=wrapMap.td;if(!support.option){wrapMap.optgroup=wrapMap.option=[1,"<select multiple='multiple'>","</select>"];}
function getAll(context,tag){var ret;if(typeof context.getElementsByTagName!=="undefined"){ret=context.getElementsByTagName(tag||"*");}else if(typeof context.querySelectorAll!=="undefined"){ret=context.querySelectorAll(tag||"*");}else{ret=[];}
if(tag===undefined||tag&&nodeName(context,tag)){return _jQuery2.merge([context],ret);}
return ret;}
function setGlobalEval(elems,refElements){var i=0,l=elems.length;for(;i<l;i++){dataPriv.set(elems[i],"globalEval",!refElements||dataPriv.get(refElements[i],"globalEval"));}}
var rhtml=/<|&#?\w+;/;function buildFragment(elems,context,scripts,selection,ignored){var elem,tmp,tag,wrap,attached,j,fragment=context.createDocumentFragment(),nodes=[],i=0,l=elems.length;for(;i<l;i++){elem=elems[i];if(elem||elem===0){if(toType(elem)==="object"){_jQuery2.merge(nodes,elem.nodeType?[elem]:elem);}else if(!rhtml.test(elem)){nodes.push(context.createTextNode(elem));}else{tmp=tmp||fragment.appendChild(context.createElement("div"));tag=(rtagName.exec(elem)||["",""])[1].toLowerCase();wrap=wrapMap[tag]||wrapMap._default;tmp.innerHTML=wrap[1]+_jQuery2.htmlPrefilter(elem)+wrap[2];j=wrap[0];while(j--){tmp=tmp.lastChild;}
_jQuery2.merge(nodes,tmp.childNodes);tmp=fragment.firstChild;tmp.textContent="";}}}
fragment.textContent="";i=0;while(elem=nodes[i++]){if(selection&&_jQuery2.inArray(elem,selection)>-1){if(ignored){ignored.push(elem);}
continue;}
attached=isAttached(elem);tmp=getAll(fragment.appendChild(elem),"script");if(attached){setGlobalEval(tmp);}
if(scripts){j=0;while(elem=tmp[j++]){if(rscriptType.test(elem.type||"")){scripts.push(elem);}}}}
return fragment;}
var rtypenamespace=/^([^.]*)(?:\.(.+)|)/;function returnTrue(){return true;}
function returnFalse(){return false;}
function _on(elem,types,selector,data,fn,one){var origFn,type;if(_typeof(types)==="object"){if(typeof selector!=="string"){data=data||selector;selector=undefined;}
for(type in types){_on(elem,type,selector,data,types[type],one);}
return elem;}
if(data==null&&fn==null){fn=selector;data=selector=undefined;}else if(fn==null){if(typeof selector==="string"){fn=data;data=undefined;}else{fn=data;data=selector;selector=undefined;}}
if(fn===false){fn=returnFalse;}else if(!fn){return elem;}
if(one===1){origFn=fn;fn=function fn(event){_jQuery2().off(event);return origFn.apply(this,arguments);};fn.guid=origFn.guid||(origFn.guid=_jQuery2.guid++);}
return elem.each(function(){_jQuery2.event.add(this,types,fn,data,selector);});}
_jQuery2.event={global:{},add:function add(elem,types,handler,data,selector){var handleObjIn,eventHandle,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.get(elem);if(!acceptData(elem)){return;}
if(handler.handler){handleObjIn=handler;handler=handleObjIn.handler;selector=handleObjIn.selector;}
if(selector){_jQuery2.find.matchesSelector(documentElement,selector);}
if(!handler.guid){handler.guid=_jQuery2.guid++;}
if(!(events=elemData.events)){events=elemData.events=Object.create(null);}
if(!(eventHandle=elemData.handle)){eventHandle=elemData.handle=function(e){return typeof _jQuery2!=="undefined"&&_jQuery2.event.triggered!==e.type?_jQuery2.event.dispatch.apply(elem,arguments):undefined;};}
types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){continue;}
special=_jQuery2.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;special=_jQuery2.event.special[type]||{};handleObj=_jQuery2.extend({type:type,origType:origType,data:data,handler:handler,guid:handler.guid,selector:selector,needsContext:selector&&_jQuery2.expr.match.needsContext.test(selector),namespace:namespaces.join(".")},handleObjIn);if(!(handlers=events[type])){handlers=events[type]=[];handlers.delegateCount=0;if(!special.setup||special.setup.call(elem,data,namespaces,eventHandle)===false){if(elem.addEventListener){elem.addEventListener(type,eventHandle);}}}
if(special.add){special.add.call(elem,handleObj);if(!handleObj.handler.guid){handleObj.handler.guid=handler.guid;}}
if(selector){handlers.splice(handlers.delegateCount++,0,handleObj);}else{handlers.push(handleObj);}
_jQuery2.event.global[type]=true;}},remove:function remove(elem,types,handler,selector,mappedTypes){var j,origCount,tmp,events,t,handleObj,special,handlers,type,namespaces,origType,elemData=dataPriv.hasData(elem)&&dataPriv.get(elem);if(!elemData||!(events=elemData.events)){return;}
types=(types||"").match(rnothtmlwhite)||[""];t=types.length;while(t--){tmp=rtypenamespace.exec(types[t])||[];type=origType=tmp[1];namespaces=(tmp[2]||"").split(".").sort();if(!type){for(type in events){_jQuery2.event.remove(elem,type+types[t],handler,selector,true);}
continue;}
special=_jQuery2.event.special[type]||{};type=(selector?special.delegateType:special.bindType)||type;handlers=events[type]||[];tmp=tmp[2]&&new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)");origCount=j=handlers.length;while(j--){handleObj=handlers[j];if((mappedTypes||origType===handleObj.origType)&&(!handler||handler.guid===handleObj.guid)&&(!tmp||tmp.test(handleObj.namespace))&&(!selector||selector===handleObj.selector||selector==="**"&&handleObj.selector)){handlers.splice(j,1);if(handleObj.selector){handlers.delegateCount--;}
if(special.remove){special.remove.call(elem,handleObj);}}}
if(origCount&&!handlers.length){if(!special.teardown||special.teardown.call(elem,namespaces,elemData.handle)===false){_jQuery2.removeEvent(elem,type,elemData.handle);}
delete events[type];}}
if(_jQuery2.isEmptyObject(events)){dataPriv.remove(elem,"handle events");}},dispatch:function dispatch(nativeEvent){var i,j,ret,matched,handleObj,handlerQueue,args=new Array(arguments.length),event=_jQuery2.event.fix(nativeEvent),handlers=(dataPriv.get(this,"events")||Object.create(null))[event.type]||[],special=_jQuery2.event.special[event.type]||{};args[0]=event;for(i=1;i<arguments.length;i++){args[i]=arguments[i];}
event.delegateTarget=this;if(special.preDispatch&&special.preDispatch.call(this,event)===false){return;}
handlerQueue=_jQuery2.event.handlers.call(this,event,handlers);i=0;while((matched=handlerQueue[i++])&&!event.isPropagationStopped()){event.currentTarget=matched.elem;j=0;while((handleObj=matched.handlers[j++])&&!event.isImmediatePropagationStopped()){if(!event.rnamespace||handleObj.namespace===false||event.rnamespace.test(handleObj.namespace)){event.handleObj=handleObj;event.data=handleObj.data;ret=((_jQuery2.event.special[handleObj.origType]||{}).handle||handleObj.handler).apply(matched.elem,args);if(ret!==undefined){if((event.result=ret)===false){event.preventDefault();event.stopPropagation();}}}}}
if(special.postDispatch){special.postDispatch.call(this,event);}
return event.result;},handlers:function handlers(event,_handlers){var i,handleObj,sel,matchedHandlers,matchedSelectors,handlerQueue=[],delegateCount=_handlers.delegateCount,cur=event.target;if(delegateCount&&cur.nodeType&&!(event.type==="click"&&event.button>=1)){for(;cur!==this;cur=cur.parentNode||this){if(cur.nodeType===1&&!(event.type==="click"&&cur.disabled===true)){matchedHandlers=[];matchedSelectors={};for(i=0;i<delegateCount;i++){handleObj=_handlers[i];sel=handleObj.selector+" ";if(matchedSelectors[sel]===undefined){matchedSelectors[sel]=handleObj.needsContext?_jQuery2(sel,this).index(cur)>-1:_jQuery2.find(sel,this,null,[cur]).length;}
if(matchedSelectors[sel]){matchedHandlers.push(handleObj);}}
if(matchedHandlers.length){handlerQueue.push({elem:cur,handlers:matchedHandlers});}}}}
cur=this;if(delegateCount<_handlers.length){handlerQueue.push({elem:cur,handlers:_handlers.slice(delegateCount)});}
return handlerQueue;},addProp:function addProp(name,hook){Object.defineProperty(_jQuery2.Event.prototype,name,{enumerable:true,configurable:true,get:isFunction(hook)?function(){if(this.originalEvent){return hook(this.originalEvent);}}:function(){if(this.originalEvent){return this.originalEvent[name];}},set:function set(value){Object.defineProperty(this,name,{enumerable:true,configurable:true,writable:true,value:value});}});},fix:function fix(originalEvent){return originalEvent[_jQuery2.expando]?originalEvent:new _jQuery2.Event(originalEvent);},special:{load:{noBubble:true},click:{setup:function setup(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){leverageNative(el,"click",true);}
return false;},trigger:function trigger(data){var el=this||data;if(rcheckableType.test(el.type)&&el.click&&nodeName(el,"input")){leverageNative(el,"click");}
return true;},_default:function _default(event){var target=event.target;return rcheckableType.test(target.type)&&target.click&&nodeName(target,"input")&&dataPriv.get(target,"click")||nodeName(target,"a");}},beforeunload:{postDispatch:function postDispatch(event){if(event.result!==undefined&&event.originalEvent){event.originalEvent.returnValue=event.result;}}}}};function leverageNative(el,type,isSetup){if(!isSetup){if(dataPriv.get(el,type)===undefined){_jQuery2.event.add(el,type,returnTrue);}
return;}
dataPriv.set(el,type,false);_jQuery2.event.add(el,type,{namespace:false,handler:function handler(event){var result,saved=dataPriv.get(this,type);if(event.isTrigger&1&&this[type]){if(!saved){saved=_slice.call(arguments);dataPriv.set(this,type,saved);this[type]();result=dataPriv.get(this,type);dataPriv.set(this,type,false);if(saved!==result){event.stopImmediatePropagation();event.preventDefault();return result;}}else if((_jQuery2.event.special[type]||{}).delegateType){event.stopPropagation();}}else if(saved){dataPriv.set(this,type,_jQuery2.event.trigger(saved[0],saved.slice(1),this));event.stopPropagation();event.isImmediatePropagationStopped=returnTrue;}}});}
_jQuery2.removeEvent=function(elem,type,handle){if(elem.removeEventListener){elem.removeEventListener(type,handle);}};_jQuery2.Event=function(src,props){if(!(this instanceof _jQuery2.Event)){return new _jQuery2.Event(src,props);}
if(src&&src.type){this.originalEvent=src;this.type=src.type;this.isDefaultPrevented=src.defaultPrevented||src.defaultPrevented===undefined&&src.returnValue===false?returnTrue:returnFalse;this.target=src.target&&src.target.nodeType===3?src.target.parentNode:src.target;this.currentTarget=src.currentTarget;this.relatedTarget=src.relatedTarget;}else{this.type=src;}
if(props){_jQuery2.extend(this,props);}
this.timeStamp=src&&src.timeStamp||Date.now();this[_jQuery2.expando]=true;};_jQuery2.Event.prototype={constructor:_jQuery2.Event,isDefaultPrevented:returnFalse,isPropagationStopped:returnFalse,isImmediatePropagationStopped:returnFalse,isSimulated:false,preventDefault:function preventDefault(){var e=this.originalEvent;this.isDefaultPrevented=returnTrue;if(e&&!this.isSimulated){e.preventDefault();}},stopPropagation:function stopPropagation(){var e=this.originalEvent;this.isPropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopPropagation();}},stopImmediatePropagation:function stopImmediatePropagation(){var e=this.originalEvent;this.isImmediatePropagationStopped=returnTrue;if(e&&!this.isSimulated){e.stopImmediatePropagation();}
this.stopPropagation();}};_jQuery2.each({altKey:true,bubbles:true,cancelable:true,changedTouches:true,ctrlKey:true,detail:true,eventPhase:true,metaKey:true,pageX:true,pageY:true,shiftKey:true,view:true,"char":true,code:true,charCode:true,key:true,keyCode:true,button:true,buttons:true,clientX:true,clientY:true,offsetX:true,offsetY:true,pointerId:true,pointerType:true,screenX:true,screenY:true,targetTouches:true,toElement:true,touches:true,which:true},_jQuery2.event.addProp);_jQuery2.each({focus:"focusin",blur:"focusout"},function(type,delegateType){function focusMappedHandler(nativeEvent){if(document.documentMode){var handle=dataPriv.get(this,"handle"),event=_jQuery2.event.fix(nativeEvent);event.type=nativeEvent.type==="focusin"?"focus":"blur";event.isSimulated=true;handle(nativeEvent);if(event.target===event.currentTarget){handle(event);}}else{_jQuery2.event.simulate(delegateType,nativeEvent.target,_jQuery2.event.fix(nativeEvent));}}
_jQuery2.event.special[type]={setup:function setup(){var attaches;leverageNative(this,type,true);if(document.documentMode){attaches=dataPriv.get(this,delegateType);if(!attaches){this.addEventListener(delegateType,focusMappedHandler);}
dataPriv.set(this,delegateType,(attaches||0)+1);}else{return false;}},trigger:function trigger(){leverageNative(this,type);return true;},teardown:function teardown(){var attaches;if(document.documentMode){attaches=dataPriv.get(this,delegateType)-1;if(!attaches){this.removeEventListener(delegateType,focusMappedHandler);dataPriv.remove(this,delegateType);}else{dataPriv.set(this,delegateType,attaches);}}else{return false;}},_default:function _default(event){return dataPriv.get(event.target,type);},delegateType:delegateType};_jQuery2.event.special[delegateType]={setup:function setup(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType);if(!attaches){if(document.documentMode){this.addEventListener(delegateType,focusMappedHandler);}else{doc.addEventListener(type,focusMappedHandler,true);}}
dataPriv.set(dataHolder,delegateType,(attaches||0)+1);},teardown:function teardown(){var doc=this.ownerDocument||this.document||this,dataHolder=document.documentMode?this:doc,attaches=dataPriv.get(dataHolder,delegateType)-1;if(!attaches){if(document.documentMode){this.removeEventListener(delegateType,focusMappedHandler);}else{doc.removeEventListener(type,focusMappedHandler,true);}
dataPriv.remove(dataHolder,delegateType);}else{dataPriv.set(dataHolder,delegateType,attaches);}}};});_jQuery2.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(orig,fix){_jQuery2.event.special[orig]={delegateType:fix,bindType:fix,handle:function handle(event){var ret,target=this,related=event.relatedTarget,handleObj=event.handleObj;if(!related||related!==target&&!_jQuery2.contains(target,related)){event.type=handleObj.origType;ret=handleObj.handler.apply(this,arguments);event.type=fix;}
return ret;}};});_jQuery2.fn.extend({on:function on(types,selector,data,fn){return _on(this,types,selector,data,fn);},one:function one(types,selector,data,fn){return _on(this,types,selector,data,fn,1);},off:function off(types,selector,fn){var handleObj,type;if(types&&types.preventDefault&&types.handleObj){handleObj=types.handleObj;_jQuery2(types.delegateTarget).off(handleObj.namespace?handleObj.origType+"."+handleObj.namespace:handleObj.origType,handleObj.selector,handleObj.handler);return this;}
if(_typeof(types)==="object"){for(type in types){this.off(type,selector,types[type]);}
return this;}
if(selector===false||typeof selector==="function"){fn=selector;selector=undefined;}
if(fn===false){fn=returnFalse;}
return this.each(function(){_jQuery2.event.remove(this,types,fn,selector);});}});var
rnoInnerhtml=/<script|<style|<link/i,rchecked=/checked\s*(?:[^=]|=\s*.checked.)/i,rcleanScript=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function manipulationTarget(elem,content){if(nodeName(elem,"table")&&nodeName(content.nodeType!==11?content:content.firstChild,"tr")){return _jQuery2(elem).children("tbody")[0]||elem;}
return elem;}
function disableScript(elem){elem.type=(elem.getAttribute("type")!==null)+"/"+elem.type;return elem;}
function restoreScript(elem){if((elem.type||"").slice(0,5)==="true/"){elem.type=elem.type.slice(5);}else{elem.removeAttribute("type");}
return elem;}
function cloneCopyEvent(src,dest){var i,l,type,pdataOld,udataOld,udataCur,events;if(dest.nodeType!==1){return;}
if(dataPriv.hasData(src)){pdataOld=dataPriv.get(src);events=pdataOld.events;if(events){dataPriv.remove(dest,"handle events");for(type in events){for(i=0,l=events[type].length;i<l;i++){_jQuery2.event.add(dest,type,events[type][i]);}}}}
if(dataUser.hasData(src)){udataOld=dataUser.access(src);udataCur=_jQuery2.extend({},udataOld);dataUser.set(dest,udataCur);}}
function fixInput(src,dest){var nodeName=dest.nodeName.toLowerCase();if(nodeName==="input"&&rcheckableType.test(src.type)){dest.checked=src.checked;}else if(nodeName==="input"||nodeName==="textarea"){dest.defaultValue=src.defaultValue;}}
function domManip(collection,args,callback,ignored){args=flat(args);var fragment,first,scripts,hasScripts,node,doc,i=0,l=collection.length,iNoClone=l-1,value=args[0],valueIsFunction=isFunction(value);if(valueIsFunction||l>1&&typeof value==="string"&&!support.checkClone&&rchecked.test(value)){return collection.each(function(index){var self=collection.eq(index);if(valueIsFunction){args[0]=value.call(this,index,self.html());}
domManip(self,args,callback,ignored);});}
if(l){fragment=buildFragment(args,collection[0].ownerDocument,false,collection,ignored);first=fragment.firstChild;if(fragment.childNodes.length===1){fragment=first;}
if(first||ignored){scripts=_jQuery2.map(getAll(fragment,"script"),disableScript);hasScripts=scripts.length;for(;i<l;i++){node=fragment;if(i!==iNoClone){node=_jQuery2.clone(node,true,true);if(hasScripts){_jQuery2.merge(scripts,getAll(node,"script"));}}
callback.call(collection[i],node,i);}
if(hasScripts){doc=scripts[scripts.length-1].ownerDocument;_jQuery2.map(scripts,restoreScript);for(i=0;i<hasScripts;i++){node=scripts[i];if(rscriptType.test(node.type||"")&&!dataPriv.access(node,"globalEval")&&_jQuery2.contains(doc,node)){if(node.src&&(node.type||"").toLowerCase()!=="module"){if(_jQuery2._evalUrl&&!node.noModule){_jQuery2._evalUrl(node.src,{nonce:node.nonce||node.getAttribute("nonce")},doc);}}else{DOMEval(node.textContent.replace(rcleanScript,""),node,doc);}}}}}}
return collection;}
function _remove(elem,selector,keepData){var node,nodes=selector?_jQuery2.filter(selector,elem):elem,i=0;for(;(node=nodes[i])!=null;i++){if(!keepData&&node.nodeType===1){_jQuery2.cleanData(getAll(node));}
if(node.parentNode){if(keepData&&isAttached(node)){setGlobalEval(getAll(node,"script"));}
node.parentNode.removeChild(node);}}
return elem;}
_jQuery2.extend({htmlPrefilter:function htmlPrefilter(html){return html;},clone:function clone(elem,dataAndEvents,deepDataAndEvents){var i,l,srcElements,destElements,clone=elem.cloneNode(true),inPage=isAttached(elem);if(!support.noCloneChecked&&(elem.nodeType===1||elem.nodeType===11)&&!_jQuery2.isXMLDoc(elem)){destElements=getAll(clone);srcElements=getAll(elem);for(i=0,l=srcElements.length;i<l;i++){fixInput(srcElements[i],destElements[i]);}}
if(dataAndEvents){if(deepDataAndEvents){srcElements=srcElements||getAll(elem);destElements=destElements||getAll(clone);for(i=0,l=srcElements.length;i<l;i++){cloneCopyEvent(srcElements[i],destElements[i]);}}else{cloneCopyEvent(elem,clone);}}
destElements=getAll(clone,"script");if(destElements.length>0){setGlobalEval(destElements,!inPage&&getAll(elem,"script"));}
return clone;},cleanData:function cleanData(elems){var data,elem,type,special=_jQuery2.event.special,i=0;for(;(elem=elems[i])!==undefined;i++){if(acceptData(elem)){if(data=elem[dataPriv.expando]){if(data.events){for(type in data.events){if(special[type]){_jQuery2.event.remove(elem,type);}else{_jQuery2.removeEvent(elem,type,data.handle);}}}
elem[dataPriv.expando]=undefined;}
if(elem[dataUser.expando]){elem[dataUser.expando]=undefined;}}}}});_jQuery2.fn.extend({detach:function detach(selector){return _remove(this,selector,true);},remove:function remove(selector){return _remove(this,selector);},text:function text(value){return _access(this,function(value){return value===undefined?_jQuery2.text(this):this.empty().each(function(){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){this.textContent=value;}});},null,value,arguments.length);},append:function append(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.appendChild(elem);}});},prepend:function prepend(){return domManip(this,arguments,function(elem){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var target=manipulationTarget(this,elem);target.insertBefore(elem,target.firstChild);}});},before:function before(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this);}});},after:function after(){return domManip(this,arguments,function(elem){if(this.parentNode){this.parentNode.insertBefore(elem,this.nextSibling);}});},empty:function empty(){var elem,i=0;for(;(elem=this[i])!=null;i++){if(elem.nodeType===1){_jQuery2.cleanData(getAll(elem,false));elem.textContent="";}}
return this;},clone:function clone(dataAndEvents,deepDataAndEvents){dataAndEvents=dataAndEvents==null?false:dataAndEvents;deepDataAndEvents=deepDataAndEvents==null?dataAndEvents:deepDataAndEvents;return this.map(function(){return _jQuery2.clone(this,dataAndEvents,deepDataAndEvents);});},html:function html(value){return _access(this,function(value){var elem=this[0]||{},i=0,l=this.length;if(value===undefined&&elem.nodeType===1){return elem.innerHTML;}
if(typeof value==="string"&&!rnoInnerhtml.test(value)&&!wrapMap[(rtagName.exec(value)||["",""])[1].toLowerCase()]){value=_jQuery2.htmlPrefilter(value);try{for(;i<l;i++){elem=this[i]||{};if(elem.nodeType===1){_jQuery2.cleanData(getAll(elem,false));elem.innerHTML=value;}}
elem=0;}catch(e){}}
if(elem){this.empty().append(value);}},null,value,arguments.length);},replaceWith:function replaceWith(){var ignored=[];return domManip(this,arguments,function(elem){var parent=this.parentNode;if(_jQuery2.inArray(this,ignored)<0){_jQuery2.cleanData(getAll(this));if(parent){parent.replaceChild(elem,this);}}},ignored);}});_jQuery2.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){_jQuery2.fn[name]=function(selector){var elems,ret=[],insert=_jQuery2(selector),last=insert.length-1,i=0;for(;i<=last;i++){elems=i===last?this:this.clone(true);_jQuery2(insert[i])[original](elems);push.apply(ret,elems.get());}
return this.pushStack(ret);};});var rnumnonpx=new RegExp("^("+pnum+")(?!px)[a-z%]+$","i");var rcustomProp=/^--/;var getStyles=function getStyles(elem){var view=elem.ownerDocument.defaultView;if(!view||!view.opener){view=window;}
return view.getComputedStyle(elem);};var swap=function swap(elem,options,callback){var ret,name,old={};for(name in options){old[name]=elem.style[name];elem.style[name]=options[name];}
ret=callback.call(elem);for(name in options){elem.style[name]=old[name];}
return ret;};var rboxStyle=new RegExp(cssExpand.join("|"),"i");(function(){function computeStyleTests(){if(!div){return;}
container.style.cssText="position:absolute;left:-11111px;width:60px;"+"margin-top:1px;padding:0;border:0";div.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;"+"margin:auto;border:1px;padding:1px;"+"width:60%;top:1%";documentElement.appendChild(container).appendChild(div);var divStyle=window.getComputedStyle(div);pixelPositionVal=divStyle.top!=="1%";reliableMarginLeftVal=roundPixelMeasures(divStyle.marginLeft)===12;div.style.right="60%";pixelBoxStylesVal=roundPixelMeasures(divStyle.right)===36;boxSizingReliableVal=roundPixelMeasures(divStyle.width)===36;div.style.position="absolute";scrollboxSizeVal=roundPixelMeasures(div.offsetWidth/3)===12;documentElement.removeChild(container);div=null;}
function roundPixelMeasures(measure){return Math.round(parseFloat(measure));}
var pixelPositionVal,boxSizingReliableVal,scrollboxSizeVal,pixelBoxStylesVal,reliableTrDimensionsVal,reliableMarginLeftVal,container=document.createElement("div"),div=document.createElement("div");if(!div.style){return;}
div.style.backgroundClip="content-box";div.cloneNode(true).style.backgroundClip="";support.clearCloneStyle=div.style.backgroundClip==="content-box";_jQuery2.extend(support,{boxSizingReliable:function boxSizingReliable(){computeStyleTests();return boxSizingReliableVal;},pixelBoxStyles:function pixelBoxStyles(){computeStyleTests();return pixelBoxStylesVal;},pixelPosition:function pixelPosition(){computeStyleTests();return pixelPositionVal;},reliableMarginLeft:function reliableMarginLeft(){computeStyleTests();return reliableMarginLeftVal;},scrollboxSize:function scrollboxSize(){computeStyleTests();return scrollboxSizeVal;},reliableTrDimensions:function reliableTrDimensions(){var table,tr,trChild,trStyle;if(reliableTrDimensionsVal==null){table=document.createElement("table");tr=document.createElement("tr");trChild=document.createElement("div");table.style.cssText="position:absolute;left:-11111px;border-collapse:separate";tr.style.cssText="box-sizing:content-box;border:1px solid";tr.style.height="1px";trChild.style.height="9px";trChild.style.display="block";documentElement.appendChild(table).appendChild(tr).appendChild(trChild);trStyle=window.getComputedStyle(tr);reliableTrDimensionsVal=parseInt(trStyle.height,10)+parseInt(trStyle.borderTopWidth,10)+parseInt(trStyle.borderBottomWidth,10)===tr.offsetHeight;documentElement.removeChild(table);}
return reliableTrDimensionsVal;}});})();function curCSS(elem,name,computed){var width,minWidth,maxWidth,ret,isCustomProp=rcustomProp.test(name),style=elem.style;computed=computed||getStyles(elem);if(computed){ret=computed.getPropertyValue(name)||computed[name];if(isCustomProp&&ret){ret=ret.replace(rtrimCSS,"$1")||undefined;}
if(ret===""&&!isAttached(elem)){ret=_jQuery2.style(elem,name);}
if(!support.pixelBoxStyles()&&rnumnonpx.test(ret)&&rboxStyle.test(name)){width=style.width;minWidth=style.minWidth;maxWidth=style.maxWidth;style.minWidth=style.maxWidth=style.width=ret;ret=computed.width;style.width=width;style.minWidth=minWidth;style.maxWidth=maxWidth;}}
return ret!==undefined?ret+"":ret;}
function addGetHookIf(conditionFn,hookFn){return{get:function get(){if(conditionFn()){delete this.get;return;}
return(this.get=hookFn).apply(this,arguments);}};}
var cssPrefixes=["Webkit","Moz","ms"],emptyStyle=document.createElement("div").style,vendorProps={};function vendorPropName(name){var capName=name[0].toUpperCase()+name.slice(1),i=cssPrefixes.length;while(i--){name=cssPrefixes[i]+capName;if(name in emptyStyle){return name;}}}
function finalPropName(name){var final=_jQuery2.cssProps[name]||vendorProps[name];if(final){return final;}
if(name in emptyStyle){return name;}
return vendorProps[name]=vendorPropName(name)||name;}
var
rdisplayswap=/^(none|table(?!-c[ea]).+)/,cssShow={position:"absolute",visibility:"hidden",display:"block"},cssNormalTransform={letterSpacing:"0",fontWeight:"400"};function setPositiveNumber(_elem,value,subtract){var matches=rcssNum.exec(value);return matches?Math.max(0,matches[2]-(subtract||0))+(matches[3]||"px"):value;}
function boxModelAdjustment(elem,dimension,box,isBorderBox,styles,computedVal){var i=dimension==="width"?1:0,extra=0,delta=0,marginDelta=0;if(box===(isBorderBox?"border":"content")){return 0;}
for(;i<4;i+=2){if(box==="margin"){marginDelta+=_jQuery2.css(elem,box+cssExpand[i],true,styles);}
if(!isBorderBox){delta+=_jQuery2.css(elem,"padding"+cssExpand[i],true,styles);if(box!=="padding"){delta+=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",true,styles);}else{extra+=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}else{if(box==="content"){delta-=_jQuery2.css(elem,"padding"+cssExpand[i],true,styles);}
if(box!=="margin"){delta-=_jQuery2.css(elem,"border"+cssExpand[i]+"Width",true,styles);}}}
if(!isBorderBox&&computedVal>=0){delta+=Math.max(0,Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-computedVal-delta-extra-0.5))||0;}
return delta+marginDelta;}
function getWidthOrHeight(elem,dimension,extra){var styles=getStyles(elem),boxSizingNeeded=!support.boxSizingReliable()||extra,isBorderBox=boxSizingNeeded&&_jQuery2.css(elem,"boxSizing",false,styles)==="border-box",valueIsBorderBox=isBorderBox,val=curCSS(elem,dimension,styles),offsetProp="offset"+dimension[0].toUpperCase()+dimension.slice(1);if(rnumnonpx.test(val)){if(!extra){return val;}
val="auto";}
if((!support.boxSizingReliable()&&isBorderBox||!support.reliableTrDimensions()&&nodeName(elem,"tr")||val==="auto"||!parseFloat(val)&&_jQuery2.css(elem,"display",false,styles)==="inline")&&elem.getClientRects().length){isBorderBox=_jQuery2.css(elem,"boxSizing",false,styles)==="border-box";valueIsBorderBox=offsetProp in elem;if(valueIsBorderBox){val=elem[offsetProp];}}
val=parseFloat(val)||0;return val+boxModelAdjustment(elem,dimension,extra||(isBorderBox?"border":"content"),valueIsBorderBox,styles,val)+"px";}
_jQuery2.extend({cssHooks:{opacity:{get:function get(elem,computed){if(computed){var ret=curCSS(elem,"opacity");return ret===""?"1":ret;}}}},cssNumber:{animationIterationCount:true,aspectRatio:true,borderImageSlice:true,columnCount:true,flexGrow:true,flexShrink:true,fontWeight:true,gridArea:true,gridColumn:true,gridColumnEnd:true,gridColumnStart:true,gridRow:true,gridRowEnd:true,gridRowStart:true,lineHeight:true,opacity:true,order:true,orphans:true,scale:true,widows:true,zIndex:true,zoom:true,fillOpacity:true,floodOpacity:true,stopOpacity:true,strokeMiterlimit:true,strokeOpacity:true},cssProps:{},style:function style(elem,name,value,extra){if(!elem||elem.nodeType===3||elem.nodeType===8||!elem.style){return;}
var ret,type,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name),style=elem.style;if(!isCustomProp){name=finalPropName(origName);}
hooks=_jQuery2.cssHooks[name]||_jQuery2.cssHooks[origName];if(value!==undefined){type=_typeof(value);if(type==="string"&&(ret=rcssNum.exec(value))&&ret[1]){value=adjustCSS(elem,name,ret);type="number";}
if(value==null||value!==value){return;}
if(type==="number"&&!isCustomProp){value+=ret&&ret[3]||(_jQuery2.cssNumber[origName]?"":"px");}
if(!support.clearCloneStyle&&value===""&&name.indexOf("background")===0){style[name]="inherit";}
if(!hooks||!("set" in hooks)||(value=hooks.set(elem,value,extra))!==undefined){if(isCustomProp){style.setProperty(name,value);}else{style[name]=value;}}}else{if(hooks&&"get" in hooks&&(ret=hooks.get(elem,false,extra))!==undefined){return ret;}
return style[name];}},css:function css(elem,name,extra,styles){var val,num,hooks,origName=camelCase(name),isCustomProp=rcustomProp.test(name);if(!isCustomProp){name=finalPropName(origName);}
hooks=_jQuery2.cssHooks[name]||_jQuery2.cssHooks[origName];if(hooks&&"get" in hooks){val=hooks.get(elem,true,extra);}
if(val===undefined){val=curCSS(elem,name,styles);}
if(val==="normal"&&name in cssNormalTransform){val=cssNormalTransform[name];}
if(extra===""||extra){num=parseFloat(val);return extra===true||isFinite(num)?num||0:val;}
return val;}});_jQuery2.each(["height","width"],function(_i,dimension){_jQuery2.cssHooks[dimension]={get:function get(elem,computed,extra){if(computed){return rdisplayswap.test(_jQuery2.css(elem,"display"))&&(!elem.getClientRects().length||!elem.getBoundingClientRect().width)?swap(elem,cssShow,function(){return getWidthOrHeight(elem,dimension,extra);}):getWidthOrHeight(elem,dimension,extra);}},set:function set(elem,value,extra){var matches,styles=getStyles(elem),scrollboxSizeBuggy=!support.scrollboxSize()&&styles.position==="absolute",boxSizingNeeded=scrollboxSizeBuggy||extra,isBorderBox=boxSizingNeeded&&_jQuery2.css(elem,"boxSizing",false,styles)==="border-box",subtract=extra?boxModelAdjustment(elem,dimension,extra,isBorderBox,styles):0;if(isBorderBox&&scrollboxSizeBuggy){subtract-=Math.ceil(elem["offset"+dimension[0].toUpperCase()+dimension.slice(1)]-parseFloat(styles[dimension])-boxModelAdjustment(elem,dimension,"border",false,styles)-0.5);}
if(subtract&&(matches=rcssNum.exec(value))&&(matches[3]||"px")!=="px"){elem.style[dimension]=value;value=_jQuery2.css(elem,dimension);}
return setPositiveNumber(elem,value,subtract);}};});_jQuery2.cssHooks.marginLeft=addGetHookIf(support.reliableMarginLeft,function(elem,computed){if(computed){return(parseFloat(curCSS(elem,"marginLeft"))||elem.getBoundingClientRect().left-swap(elem,{marginLeft:0},function(){return elem.getBoundingClientRect().left;}))+"px";}});_jQuery2.each({margin:"",padding:"",border:"Width"},function(prefix,suffix){_jQuery2.cssHooks[prefix+suffix]={expand:function expand(value){var i=0,expanded={},parts=typeof value==="string"?value.split(" "):[value];for(;i<4;i++){expanded[prefix+cssExpand[i]+suffix]=parts[i]||parts[i-2]||parts[0];}
return expanded;}};if(prefix!=="margin"){_jQuery2.cssHooks[prefix+suffix].set=setPositiveNumber;}});_jQuery2.fn.extend({css:function css(name,value){return _access(this,function(elem,name,value){var styles,len,map={},i=0;if(Array.isArray(name)){styles=getStyles(elem);len=name.length;for(;i<len;i++){map[name[i]]=_jQuery2.css(elem,name[i],false,styles);}
return map;}
return value!==undefined?_jQuery2.style(elem,name,value):_jQuery2.css(elem,name);},name,value,arguments.length>1);}});function Tween(elem,options,prop,end,easing){return new Tween.prototype.init(elem,options,prop,end,easing);}
_jQuery2.Tween=Tween;Tween.prototype={constructor:Tween,init:function init(elem,options,prop,end,easing,unit){this.elem=elem;this.prop=prop;this.easing=easing||_jQuery2.easing._default;this.options=options;this.start=this.now=this.cur();this.end=end;this.unit=unit||(_jQuery2.cssNumber[prop]?"":"px");},cur:function cur(){var hooks=Tween.propHooks[this.prop];return hooks&&hooks.get?hooks.get(this):Tween.propHooks._default.get(this);},run:function run(percent){var eased,hooks=Tween.propHooks[this.prop];if(this.options.duration){this.pos=eased=_jQuery2.easing[this.easing](percent,this.options.duration*percent,0,1,this.options.duration);}else{this.pos=eased=percent;}
this.now=(this.end-this.start)*eased+this.start;if(this.options.step){this.options.step.call(this.elem,this.now,this);}
if(hooks&&hooks.set){hooks.set(this);}else{Tween.propHooks._default.set(this);}
return this;}};Tween.prototype.init.prototype=Tween.prototype;Tween.propHooks={_default:{get:function get(tween){var result;if(tween.elem.nodeType!==1||tween.elem[tween.prop]!=null&&tween.elem.style[tween.prop]==null){return tween.elem[tween.prop];}
result=_jQuery2.css(tween.elem,tween.prop,"");return!result||result==="auto"?0:result;},set:function set(tween){if(_jQuery2.fx.step[tween.prop]){_jQuery2.fx.step[tween.prop](tween);}else if(tween.elem.nodeType===1&&(_jQuery2.cssHooks[tween.prop]||tween.elem.style[finalPropName(tween.prop)]!=null)){_jQuery2.style(tween.elem,tween.prop,tween.now+tween.unit);}else{tween.elem[tween.prop]=tween.now;}}}};Tween.propHooks.scrollTop=Tween.propHooks.scrollLeft={set:function set(tween){if(tween.elem.nodeType&&tween.elem.parentNode){tween.elem[tween.prop]=tween.now;}}};_jQuery2.easing={linear:function linear(p){return p;},swing:function swing(p){return 0.5-Math.cos(p*Math.PI)/2;},_default:"swing"};_jQuery2.fx=Tween.prototype.init;_jQuery2.fx.step={};var fxNow,inProgress,rfxtypes=/^(?:toggle|show|hide)$/,rrun=/queueHooks$/;function schedule(){if(inProgress){if(document.hidden===false&&window.requestAnimationFrame){window.requestAnimationFrame(schedule);}else{window.setTimeout(schedule,_jQuery2.fx.interval);}
_jQuery2.fx.tick();}}
function createFxNow(){window.setTimeout(function(){fxNow=undefined;});return fxNow=Date.now();}
function genFx(type,includeWidth){var which,i=0,attrs={height:type};includeWidth=includeWidth?1:0;for(;i<4;i+=2-includeWidth){which=cssExpand[i];attrs["margin"+which]=attrs["padding"+which]=type;}
if(includeWidth){attrs.opacity=attrs.width=type;}
return attrs;}
function createTween(value,prop,animation){var tween,collection=(Animation.tweeners[prop]||[]).concat(Animation.tweeners["*"]),index=0,length=collection.length;for(;index<length;index++){if(tween=collection[index].call(animation,prop,value)){return tween;}}}
function defaultPrefilter(elem,props,opts){var prop,value,toggle,hooks,oldfire,propTween,restoreDisplay,display,isBox="width" in props||"height" in props,anim=this,orig={},style=elem.style,hidden=elem.nodeType&&isHiddenWithinTree(elem),dataShow=dataPriv.get(elem,"fxshow");if(!opts.queue){hooks=_jQuery2._queueHooks(elem,"fx");if(hooks.unqueued==null){hooks.unqueued=0;oldfire=hooks.empty.fire;hooks.empty.fire=function(){if(!hooks.unqueued){oldfire();}};}
hooks.unqueued++;anim.always(function(){anim.always(function(){hooks.unqueued--;if(!_jQuery2.queue(elem,"fx").length){hooks.empty.fire();}});});}
for(prop in props){value=props[prop];if(rfxtypes.test(value)){delete props[prop];toggle=toggle||value==="toggle";if(value===(hidden?"hide":"show")){if(value==="show"&&dataShow&&dataShow[prop]!==undefined){hidden=true;}else{continue;}}
orig[prop]=dataShow&&dataShow[prop]||_jQuery2.style(elem,prop);}}
propTween=!_jQuery2.isEmptyObject(props);if(!propTween&&_jQuery2.isEmptyObject(orig)){return;}
if(isBox&&elem.nodeType===1){opts.overflow=[style.overflow,style.overflowX,style.overflowY];restoreDisplay=dataShow&&dataShow.display;if(restoreDisplay==null){restoreDisplay=dataPriv.get(elem,"display");}
display=_jQuery2.css(elem,"display");if(display==="none"){if(restoreDisplay){display=restoreDisplay;}else{showHide([elem],true);restoreDisplay=elem.style.display||restoreDisplay;display=_jQuery2.css(elem,"display");showHide([elem]);}}
if(display==="inline"||display==="inline-block"&&restoreDisplay!=null){if(_jQuery2.css(elem,"float")==="none"){if(!propTween){anim.done(function(){style.display=restoreDisplay;});if(restoreDisplay==null){display=style.display;restoreDisplay=display==="none"?"":display;}}
style.display="inline-block";}}}
if(opts.overflow){style.overflow="hidden";anim.always(function(){style.overflow=opts.overflow[0];style.overflowX=opts.overflow[1];style.overflowY=opts.overflow[2];});}
propTween=false;for(prop in orig){if(!propTween){if(dataShow){if("hidden" in dataShow){hidden=dataShow.hidden;}}else{dataShow=dataPriv.access(elem,"fxshow",{display:restoreDisplay});}
if(toggle){dataShow.hidden=!hidden;}
if(hidden){showHide([elem],true);}
anim.done(function(){if(!hidden){showHide([elem]);}
dataPriv.remove(elem,"fxshow");for(prop in orig){_jQuery2.style(elem,prop,orig[prop]);}});}
propTween=createTween(hidden?dataShow[prop]:0,prop,anim);if(!(prop in dataShow)){dataShow[prop]=propTween.start;if(hidden){propTween.end=propTween.start;propTween.start=0;}}}}
function propFilter(props,specialEasing){var index,name,easing,value,hooks;for(index in props){name=camelCase(index);easing=specialEasing[name];value=props[index];if(Array.isArray(value)){easing=value[1];value=props[index]=value[0];}
if(index!==name){props[name]=value;delete props[index];}
hooks=_jQuery2.cssHooks[name];if(hooks&&"expand" in hooks){value=hooks.expand(value);delete props[name];for(index in value){if(!(index in props)){props[index]=value[index];specialEasing[index]=easing;}}}else{specialEasing[name]=easing;}}}
function Animation(elem,properties,options){var result,stopped,index=0,length=Animation.prefilters.length,deferred=_jQuery2.Deferred().always(function(){delete tick.elem;}),tick=function tick(){if(stopped){return false;}
var currentTime=fxNow||createFxNow(),remaining=Math.max(0,animation.startTime+animation.duration-currentTime),temp=remaining/animation.duration||0,percent=1-temp,index=0,length=animation.tweens.length;for(;index<length;index++){animation.tweens[index].run(percent);}
deferred.notifyWith(elem,[animation,percent,remaining]);if(percent<1&&length){return remaining;}
if(!length){deferred.notifyWith(elem,[animation,1,0]);}
deferred.resolveWith(elem,[animation]);return false;},animation=deferred.promise({elem:elem,props:_jQuery2.extend({},properties),opts:_jQuery2.extend(true,{specialEasing:{},easing:_jQuery2.easing._default},options),originalProperties:properties,originalOptions:options,startTime:fxNow||createFxNow(),duration:options.duration,tweens:[],createTween:function createTween(prop,end){var tween=_jQuery2.Tween(elem,animation.opts,prop,end,animation.opts.specialEasing[prop]||animation.opts.easing);animation.tweens.push(tween);return tween;},stop:function stop(gotoEnd){var index=0,length=gotoEnd?animation.tweens.length:0;if(stopped){return this;}
stopped=true;for(;index<length;index++){animation.tweens[index].run(1);}
if(gotoEnd){deferred.notifyWith(elem,[animation,1,0]);deferred.resolveWith(elem,[animation,gotoEnd]);}else{deferred.rejectWith(elem,[animation,gotoEnd]);}
return this;}}),props=animation.props;propFilter(props,animation.opts.specialEasing);for(;index<length;index++){result=Animation.prefilters[index].call(animation,elem,props,animation.opts);if(result){if(isFunction(result.stop)){_jQuery2._queueHooks(animation.elem,animation.opts.queue).stop=result.stop.bind(result);}
return result;}}
_jQuery2.map(props,createTween,animation);if(isFunction(animation.opts.start)){animation.opts.start.call(elem,animation);}
animation.progress(animation.opts.progress).done(animation.opts.done,animation.opts.complete).fail(animation.opts.fail).always(animation.opts.always);_jQuery2.fx.timer(_jQuery2.extend(tick,{elem:elem,anim:animation,queue:animation.opts.queue}));return animation;}
_jQuery2.Animation=_jQuery2.extend(Animation,{tweeners:{"*":[function(prop,value){var tween=this.createTween(prop,value);adjustCSS(tween.elem,prop,rcssNum.exec(value),tween);return tween;}]},tweener:function tweener(props,callback){if(isFunction(props)){callback=props;props=["*"];}else{props=props.match(rnothtmlwhite);}
var prop,index=0,length=props.length;for(;index<length;index++){prop=props[index];Animation.tweeners[prop]=Animation.tweeners[prop]||[];Animation.tweeners[prop].unshift(callback);}},prefilters:[defaultPrefilter],prefilter:function prefilter(callback,prepend){if(prepend){Animation.prefilters.unshift(callback);}else{Animation.prefilters.push(callback);}}});_jQuery2.speed=function(speed,easing,fn){var opt=speed&&_typeof(speed)==="object"?_jQuery2.extend({},speed):{complete:fn||!fn&&easing||isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&!isFunction(easing)&&easing};if(_jQuery2.fx.off){opt.duration=0;}else{if(typeof opt.duration!=="number"){if(opt.duration in _jQuery2.fx.speeds){opt.duration=_jQuery2.fx.speeds[opt.duration];}else{opt.duration=_jQuery2.fx.speeds._default;}}}
if(opt.queue==null||opt.queue===true){opt.queue="fx";}
opt.old=opt.complete;opt.complete=function(){if(isFunction(opt.old)){opt.old.call(this);}
if(opt.queue){_jQuery2.dequeue(this,opt.queue);}};return opt;};_jQuery2.fn.extend({fadeTo:function fadeTo(speed,to,easing,callback){return this.filter(isHiddenWithinTree).css("opacity",0).show().end().animate({opacity:to},speed,easing,callback);},animate:function animate(prop,speed,easing,callback){var empty=_jQuery2.isEmptyObject(prop),optall=_jQuery2.speed(speed,easing,callback),doAnimation=function doAnimation(){var anim=Animation(this,_jQuery2.extend({},prop),optall);if(empty||dataPriv.get(this,"finish")){anim.stop(true);}};doAnimation.finish=doAnimation;return empty||optall.queue===false?this.each(doAnimation):this.queue(optall.queue,doAnimation);},stop:function stop(type,clearQueue,gotoEnd){var stopQueue=function stopQueue(hooks){var stop=hooks.stop;delete hooks.stop;stop(gotoEnd);};if(typeof type!=="string"){gotoEnd=clearQueue;clearQueue=type;type=undefined;}
if(clearQueue){this.queue(type||"fx",[]);}
return this.each(function(){var dequeue=true,index=type!=null&&type+"queueHooks",timers=_jQuery2.timers,data=dataPriv.get(this);if(index){if(data[index]&&data[index].stop){stopQueue(data[index]);}}else{for(index in data){if(data[index]&&data[index].stop&&rrun.test(index)){stopQueue(data[index]);}}}
for(index=timers.length;index--;){if(timers[index].elem===this&&(type==null||timers[index].queue===type)){timers[index].anim.stop(gotoEnd);dequeue=false;timers.splice(index,1);}}
if(dequeue||!gotoEnd){_jQuery2.dequeue(this,type);}});},finish:function finish(type){if(type!==false){type=type||"fx";}
return this.each(function(){var index,data=dataPriv.get(this),queue=data[type+"queue"],hooks=data[type+"queueHooks"],timers=_jQuery2.timers,length=queue?queue.length:0;data.finish=true;_jQuery2.queue(this,type,[]);if(hooks&&hooks.stop){hooks.stop.call(this,true);}
for(index=timers.length;index--;){if(timers[index].elem===this&&timers[index].queue===type){timers[index].anim.stop(true);timers.splice(index,1);}}
for(index=0;index<length;index++){if(queue[index]&&queue[index].finish){queue[index].finish.call(this);}}
delete data.finish;});}});_jQuery2.each(["toggle","show","hide"],function(_i,name){var cssFn=_jQuery2.fn[name];_jQuery2.fn[name]=function(speed,easing,callback){return speed==null||typeof speed==="boolean"?cssFn.apply(this,arguments):this.animate(genFx(name,true),speed,easing,callback);};});_jQuery2.each({slideDown:genFx("show"),slideUp:genFx("hide"),slideToggle:genFx("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(name,props){_jQuery2.fn[name]=function(speed,easing,callback){return this.animate(props,speed,easing,callback);};});_jQuery2.timers=[];_jQuery2.fx.tick=function(){var timer,i=0,timers=_jQuery2.timers;fxNow=Date.now();for(;i<timers.length;i++){timer=timers[i];if(!timer()&&timers[i]===timer){timers.splice(i--,1);}}
if(!timers.length){_jQuery2.fx.stop();}
fxNow=undefined;};_jQuery2.fx.timer=function(timer){_jQuery2.timers.push(timer);_jQuery2.fx.start();};_jQuery2.fx.interval=13;_jQuery2.fx.start=function(){if(inProgress){return;}
inProgress=true;schedule();};_jQuery2.fx.stop=function(){inProgress=null;};_jQuery2.fx.speeds={slow:600,fast:200,_default:400};_jQuery2.fn.delay=function(time,type){time=_jQuery2.fx?_jQuery2.fx.speeds[time]||time:time;type=type||"fx";return this.queue(type,function(next,hooks){var timeout=window.setTimeout(next,time);hooks.stop=function(){window.clearTimeout(timeout);};});};(function(){var input=document.createElement("input"),select=document.createElement("select"),opt=select.appendChild(document.createElement("option"));input.type="checkbox";support.checkOn=input.value!=="";support.optSelected=opt.selected;input=document.createElement("input");input.value="t";input.type="radio";support.radioValue=input.value==="t";})();var boolHook,attrHandle=_jQuery2.expr.attrHandle;_jQuery2.fn.extend({attr:function attr(name,value){return _access(this,_jQuery2.attr,name,value,arguments.length>1);},removeAttr:function removeAttr(name){return this.each(function(){_jQuery2.removeAttr(this,name);});}});_jQuery2.extend({attr:function attr(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}
if(typeof elem.getAttribute==="undefined"){return _jQuery2.prop(elem,name,value);}
if(nType!==1||!_jQuery2.isXMLDoc(elem)){hooks=_jQuery2.attrHooks[name.toLowerCase()]||(_jQuery2.expr.match.bool.test(name)?boolHook:undefined);}
if(value!==undefined){if(value===null){_jQuery2.removeAttr(elem,name);return;}
if(hooks&&"set" in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}
elem.setAttribute(name,value+"");return value;}
if(hooks&&"get" in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}
ret=_jQuery2.find.attr(elem,name);return ret==null?undefined:ret;},attrHooks:{type:{set:function set(elem,value){if(!support.radioValue&&value==="radio"&&nodeName(elem,"input")){var val=elem.value;elem.setAttribute("type",value);if(val){elem.value=val;}
return value;}}}},removeAttr:function removeAttr(elem,value){var name,i=0,attrNames=value&&value.match(rnothtmlwhite);if(attrNames&&elem.nodeType===1){while(name=attrNames[i++]){elem.removeAttribute(name);}}}});boolHook={set:function set(elem,value,name){if(value===false){_jQuery2.removeAttr(elem,name);}else{elem.setAttribute(name,name);}
return name;}};_jQuery2.each(_jQuery2.expr.match.bool.source.match(/\w+/g),function(_i,name){var getter=attrHandle[name]||_jQuery2.find.attr;attrHandle[name]=function(elem,name,isXML){var ret,handle,lowercaseName=name.toLowerCase();if(!isXML){handle=attrHandle[lowercaseName];attrHandle[lowercaseName]=ret;ret=getter(elem,name,isXML)!=null?lowercaseName:null;attrHandle[lowercaseName]=handle;}
return ret;};});var rfocusable=/^(?:input|select|textarea|button)$/i,rclickable=/^(?:a|area)$/i;_jQuery2.fn.extend({prop:function prop(name,value){return _access(this,_jQuery2.prop,name,value,arguments.length>1);},removeProp:function removeProp(name){return this.each(function(){delete this[_jQuery2.propFix[name]||name];});}});_jQuery2.extend({prop:function prop(elem,name,value){var ret,hooks,nType=elem.nodeType;if(nType===3||nType===8||nType===2){return;}
if(nType!==1||!_jQuery2.isXMLDoc(elem)){name=_jQuery2.propFix[name]||name;hooks=_jQuery2.propHooks[name];}
if(value!==undefined){if(hooks&&"set" in hooks&&(ret=hooks.set(elem,value,name))!==undefined){return ret;}
return elem[name]=value;}
if(hooks&&"get" in hooks&&(ret=hooks.get(elem,name))!==null){return ret;}
return elem[name];},propHooks:{tabIndex:{get:function get(elem){var tabindex=_jQuery2.find.attr(elem,"tabindex");if(tabindex){return parseInt(tabindex,10);}
if(rfocusable.test(elem.nodeName)||rclickable.test(elem.nodeName)&&elem.href){return 0;}
return-1;}}},propFix:{"for":"htmlFor","class":"className"}});if(!support.optSelected){_jQuery2.propHooks.selected={get:function get(elem){var parent=elem.parentNode;if(parent&&parent.parentNode){parent.parentNode.selectedIndex;}
return null;},set:function set(elem){var parent=elem.parentNode;if(parent){parent.selectedIndex;if(parent.parentNode){parent.parentNode.selectedIndex;}}}};}
_jQuery2.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){_jQuery2.propFix[this.toLowerCase()]=this;});function stripAndCollapse(value){var tokens=value.match(rnothtmlwhite)||[];return tokens.join(" ");}
function getClass(elem){return elem.getAttribute&&elem.getAttribute("class")||"";}
function classesToArray(value){if(Array.isArray(value)){return value;}
if(typeof value==="string"){return value.match(rnothtmlwhite)||[];}
return[];}
_jQuery2.fn.extend({addClass:function addClass(value){var classNames,cur,curValue,className,i,finalValue;if(isFunction(value)){return this.each(function(j){_jQuery2(this).addClass(value.call(this,j,getClass(this)));});}
classNames=classesToArray(value);if(classNames.length){return this.each(function(){curValue=getClass(this);cur=this.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){for(i=0;i<classNames.length;i++){className=classNames[i];if(cur.indexOf(" "+className+" ")<0){cur+=className+" ";}}
finalValue=stripAndCollapse(cur);if(curValue!==finalValue){this.setAttribute("class",finalValue);}}});}
return this;},removeClass:function removeClass(value){var classNames,cur,curValue,className,i,finalValue;if(isFunction(value)){return this.each(function(j){_jQuery2(this).removeClass(value.call(this,j,getClass(this)));});}
if(!arguments.length){return this.attr("class","");}
classNames=classesToArray(value);if(classNames.length){return this.each(function(){curValue=getClass(this);cur=this.nodeType===1&&" "+stripAndCollapse(curValue)+" ";if(cur){for(i=0;i<classNames.length;i++){className=classNames[i];while(cur.indexOf(" "+className+" ")>-1){cur=cur.replace(" "+className+" "," ");}}
finalValue=stripAndCollapse(cur);if(curValue!==finalValue){this.setAttribute("class",finalValue);}}});}
return this;},toggleClass:function toggleClass(value,stateVal){var classNames,className,i,self,type=_typeof(value),isValidValue=type==="string"||Array.isArray(value);if(isFunction(value)){return this.each(function(i){_jQuery2(this).toggleClass(value.call(this,i,getClass(this),stateVal),stateVal);});}
if(typeof stateVal==="boolean"&&isValidValue){return stateVal?this.addClass(value):this.removeClass(value);}
classNames=classesToArray(value);return this.each(function(){if(isValidValue){self=_jQuery2(this);for(i=0;i<classNames.length;i++){className=classNames[i];if(self.hasClass(className)){self.removeClass(className);}else{self.addClass(className);}}}else if(value===undefined||type==="boolean"){className=getClass(this);if(className){dataPriv.set(this,"__className__",className);}
if(this.setAttribute){this.setAttribute("class",className||value===false?"":dataPriv.get(this,"__className__")||"");}}});},hasClass:function hasClass(selector){var className,elem,i=0;className=" "+selector+" ";while(elem=this[i++]){if(elem.nodeType===1&&(" "+stripAndCollapse(getClass(elem))+" ").indexOf(className)>-1){return true;}}
return false;}});var rreturn=/\r/g;_jQuery2.fn.extend({val:function val(value){var hooks,ret,valueIsFunction,elem=this[0];if(!arguments.length){if(elem){hooks=_jQuery2.valHooks[elem.type]||_jQuery2.valHooks[elem.nodeName.toLowerCase()];if(hooks&&"get" in hooks&&(ret=hooks.get(elem,"value"))!==undefined){return ret;}
ret=elem.value;if(typeof ret==="string"){return ret.replace(rreturn,"");}
return ret==null?"":ret;}
return;}
valueIsFunction=isFunction(value);return this.each(function(i){var val;if(this.nodeType!==1){return;}
if(valueIsFunction){val=value.call(this,i,_jQuery2(this).val());}else{val=value;}
if(val==null){val="";}else if(typeof val==="number"){val+="";}else if(Array.isArray(val)){val=_jQuery2.map(val,function(value){return value==null?"":value+"";});}
hooks=_jQuery2.valHooks[this.type]||_jQuery2.valHooks[this.nodeName.toLowerCase()];if(!hooks||!("set" in hooks)||hooks.set(this,val,"value")===undefined){this.value=val;}});}});_jQuery2.extend({valHooks:{option:{get:function get(elem){var val=_jQuery2.find.attr(elem,"value");return val!=null?val:stripAndCollapse(_jQuery2.text(elem));}},select:{get:function get(elem){var value,option,i,options=elem.options,index=elem.selectedIndex,one=elem.type==="select-one",values=one?null:[],max=one?index+1:options.length;if(index<0){i=max;}else{i=one?index:0;}
for(;i<max;i++){option=options[i];if((option.selected||i===index)&&!option.disabled&&(!option.parentNode.disabled||!nodeName(option.parentNode,"optgroup"))){value=_jQuery2(option).val();if(one){return value;}
values.push(value);}}
return values;},set:function set(elem,value){var optionSet,option,options=elem.options,values=_jQuery2.makeArray(value),i=options.length;while(i--){option=options[i];if(option.selected=_jQuery2.inArray(_jQuery2.valHooks.option.get(option),values)>-1){optionSet=true;}}
if(!optionSet){elem.selectedIndex=-1;}
return values;}}}});_jQuery2.each(["radio","checkbox"],function(){_jQuery2.valHooks[this]={set:function set(elem,value){if(Array.isArray(value)){return elem.checked=_jQuery2.inArray(_jQuery2(elem).val(),value)>-1;}}};if(!support.checkOn){_jQuery2.valHooks[this].get=function(elem){return elem.getAttribute("value")===null?"on":elem.value;};}});var location=window.location;var nonce={guid:Date.now()};var rquery=/\?/;_jQuery2.parseXML=function(data){var xml,parserErrorElem;if(!data||typeof data!=="string"){return null;}
try{xml=new window.DOMParser().parseFromString(data,"text/xml");}catch(e){}
parserErrorElem=xml&&xml.getElementsByTagName("parsererror")[0];if(!xml||parserErrorElem){_jQuery2.error("Invalid XML: "+(parserErrorElem?_jQuery2.map(parserErrorElem.childNodes,function(el){return el.textContent;}).join("\n"):data));}
return xml;};var rfocusMorph=/^(?:focusinfocus|focusoutblur)$/,stopPropagationCallback=function stopPropagationCallback(e){e.stopPropagation();};_jQuery2.extend(_jQuery2.event,{trigger:function trigger(event,data,elem,onlyHandlers){var i,cur,tmp,bubbleType,ontype,handle,special,lastElement,eventPath=[elem||document],type=hasOwn.call(event,"type")?event.type:event,namespaces=hasOwn.call(event,"namespace")?event.namespace.split("."):[];cur=lastElement=tmp=elem=elem||document;if(elem.nodeType===3||elem.nodeType===8){return;}
if(rfocusMorph.test(type+_jQuery2.event.triggered)){return;}
if(type.indexOf(".")>-1){namespaces=type.split(".");type=namespaces.shift();namespaces.sort();}
ontype=type.indexOf(":")<0&&"on"+type;event=event[_jQuery2.expando]?event:new _jQuery2.Event(type,_typeof(event)==="object"&&event);event.isTrigger=onlyHandlers?2:3;event.namespace=namespaces.join(".");event.rnamespace=event.namespace?new RegExp("(^|\\.)"+namespaces.join("\\.(?:.*\\.|)")+"(\\.|$)"):null;event.result=undefined;if(!event.target){event.target=elem;}
data=data==null?[event]:_jQuery2.makeArray(data,[event]);special=_jQuery2.event.special[type]||{};if(!onlyHandlers&&special.trigger&&special.trigger.apply(elem,data)===false){return;}
if(!onlyHandlers&&!special.noBubble&&!isWindow(elem)){bubbleType=special.delegateType||type;if(!rfocusMorph.test(bubbleType+type)){cur=cur.parentNode;}
for(;cur;cur=cur.parentNode){eventPath.push(cur);tmp=cur;}
if(tmp===(elem.ownerDocument||document)){eventPath.push(tmp.defaultView||tmp.parentWindow||window);}}
i=0;while((cur=eventPath[i++])&&!event.isPropagationStopped()){lastElement=cur;event.type=i>1?bubbleType:special.bindType||type;handle=(dataPriv.get(cur,"events")||Object.create(null))[event.type]&&dataPriv.get(cur,"handle");if(handle){handle.apply(cur,data);}
handle=ontype&&cur[ontype];if(handle&&handle.apply&&acceptData(cur)){event.result=handle.apply(cur,data);if(event.result===false){event.preventDefault();}}}
event.type=type;if(!onlyHandlers&&!event.isDefaultPrevented()){if((!special._default||special._default.apply(eventPath.pop(),data)===false)&&acceptData(elem)){if(ontype&&isFunction(elem[type])&&!isWindow(elem)){tmp=elem[ontype];if(tmp){elem[ontype]=null;}
_jQuery2.event.triggered=type;if(event.isPropagationStopped()){lastElement.addEventListener(type,stopPropagationCallback);}
elem[type]();if(event.isPropagationStopped()){lastElement.removeEventListener(type,stopPropagationCallback);}
_jQuery2.event.triggered=undefined;if(tmp){elem[ontype]=tmp;}}}}
return event.result;},simulate:function simulate(type,elem,event){var e=_jQuery2.extend(new _jQuery2.Event(),event,{type:type,isSimulated:true});_jQuery2.event.trigger(e,null,elem);}});_jQuery2.fn.extend({trigger:function trigger(type,data){return this.each(function(){_jQuery2.event.trigger(type,data,this);});},triggerHandler:function triggerHandler(type,data){var elem=this[0];if(elem){return _jQuery2.event.trigger(type,data,elem,true);}}});var rbracket=/\[\]$/,rCRLF=/\r?\n/g,rsubmitterTypes=/^(?:submit|button|image|reset|file)$/i,rsubmittable=/^(?:input|select|textarea|keygen)/i;function buildParams(prefix,obj,traditional,add){var name;if(Array.isArray(obj)){_jQuery2.each(obj,function(i,v){if(traditional||rbracket.test(prefix)){add(prefix,v);}else{buildParams(prefix+"["+(_typeof(v)==="object"&&v!=null?i:"")+"]",v,traditional,add);}});}else if(!traditional&&toType(obj)==="object"){for(name in obj){buildParams(prefix+"["+name+"]",obj[name],traditional,add);}}else{add(prefix,obj);}}
_jQuery2.param=function(a,traditional){var prefix,s=[],add=function add(key,valueOrFunction){var value=isFunction(valueOrFunction)?valueOrFunction():valueOrFunction;s[s.length]=encodeURIComponent(key)+"="+encodeURIComponent(value==null?"":value);};if(a==null){return"";}
if(Array.isArray(a)||a.jquery&&!_jQuery2.isPlainObject(a)){_jQuery2.each(a,function(){add(this.name,this.value);});}else{for(prefix in a){buildParams(prefix,a[prefix],traditional,add);}}
return s.join("&");};_jQuery2.fn.extend({serialize:function serialize(){return _jQuery2.param(this.serializeArray());},serializeArray:function serializeArray(){return this.map(function(){var elements=_jQuery2.prop(this,"elements");return elements?_jQuery2.makeArray(elements):this;}).filter(function(){var type=this.type;return this.name&&!_jQuery2(this).is(":disabled")&&rsubmittable.test(this.nodeName)&&!rsubmitterTypes.test(type)&&(this.checked||!rcheckableType.test(type));}).map(function(_i,elem){var val=_jQuery2(this).val();if(val==null){return null;}
if(Array.isArray(val)){return _jQuery2.map(val,function(val){return{name:elem.name,value:val.replace(rCRLF,"\r\n")};});}
return{name:elem.name,value:val.replace(rCRLF,"\r\n")};}).get();}});var r20=/%20/g,rhash=/#.*$/,rantiCache=/([?&])_=[^&]*/,rheaders=/^(.*?):[ \t]*([^\r\n]*)$/mg,rlocalProtocol=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,rnoContent=/^(?:GET|HEAD)$/,rprotocol=/^\/\//,prefilters={},transports={},allTypes="*/".concat("*"),originAnchor=document.createElement("a");originAnchor.href=location.href;function addToPrefiltersOrTransports(structure){return function(dataTypeExpression,func){if(typeof dataTypeExpression!=="string"){func=dataTypeExpression;dataTypeExpression="*";}
var dataType,i=0,dataTypes=dataTypeExpression.toLowerCase().match(rnothtmlwhite)||[];if(isFunction(func)){while(dataType=dataTypes[i++]){if(dataType[0]==="+"){dataType=dataType.slice(1)||"*";(structure[dataType]=structure[dataType]||[]).unshift(func);}else{(structure[dataType]=structure[dataType]||[]).push(func);}}}};}
function inspectPrefiltersOrTransports(structure,options,originalOptions,jqXHR){var inspected={},seekingTransport=structure===transports;function inspect(dataType){var selected;inspected[dataType]=true;_jQuery2.each(structure[dataType]||[],function(_,prefilterOrFactory){var dataTypeOrTransport=prefilterOrFactory(options,originalOptions,jqXHR);if(typeof dataTypeOrTransport==="string"&&!seekingTransport&&!inspected[dataTypeOrTransport]){options.dataTypes.unshift(dataTypeOrTransport);inspect(dataTypeOrTransport);return false;}else if(seekingTransport){return!(selected=dataTypeOrTransport);}});return selected;}
return inspect(options.dataTypes[0])||!inspected["*"]&&inspect("*");}
function ajaxExtend(target,src){var key,deep,flatOptions=_jQuery2.ajaxSettings.flatOptions||{};for(key in src){if(src[key]!==undefined){(flatOptions[key]?target:deep||(deep={}))[key]=src[key];}}
if(deep){_jQuery2.extend(true,target,deep);}
return target;}
function ajaxHandleResponses(s,jqXHR,responses){var ct,type,finalDataType,firstDataType,contents=s.contents,dataTypes=s.dataTypes;while(dataTypes[0]==="*"){dataTypes.shift();if(ct===undefined){ct=s.mimeType||jqXHR.getResponseHeader("Content-Type");}}
if(ct){for(type in contents){if(contents[type]&&contents[type].test(ct)){dataTypes.unshift(type);break;}}}
if(dataTypes[0]in responses){finalDataType=dataTypes[0];}else{for(type in responses){if(!dataTypes[0]||s.converters[type+" "+dataTypes[0]]){finalDataType=type;break;}
if(!firstDataType){firstDataType=type;}}
finalDataType=finalDataType||firstDataType;}
if(finalDataType){if(finalDataType!==dataTypes[0]){dataTypes.unshift(finalDataType);}
return responses[finalDataType];}}
function ajaxConvert(s,response,jqXHR,isSuccess){var conv2,current,conv,tmp,prev,converters={},dataTypes=s.dataTypes.slice();if(dataTypes[1]){for(conv in s.converters){converters[conv.toLowerCase()]=s.converters[conv];}}
current=dataTypes.shift();while(current){if(s.responseFields[current]){jqXHR[s.responseFields[current]]=response;}
if(!prev&&isSuccess&&s.dataFilter){response=s.dataFilter(response,s.dataType);}
prev=current;current=dataTypes.shift();if(current){if(current==="*"){current=prev;}else if(prev!=="*"&&prev!==current){conv=converters[prev+" "+current]||converters["* "+current];if(!conv){for(conv2 in converters){tmp=conv2.split(" ");if(tmp[1]===current){conv=converters[prev+" "+tmp[0]]||converters["* "+tmp[0]];if(conv){if(conv===true){conv=converters[conv2];}else if(converters[conv2]!==true){current=tmp[0];dataTypes.unshift(tmp[1]);}
break;}}}}
if(conv!==true){if(conv&&s.throws){response=conv(response);}else{try{response=conv(response);}catch(e){return{state:"parsererror",error:conv?e:"No conversion from "+prev+" to "+current};}}}}}}
return{state:"success",data:response};}
_jQuery2.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:location.href,type:"GET",isLocal:rlocalProtocol.test(location.protocol),global:true,processData:true,async:true,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":allTypes,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":true,"text json":JSON.parse,"text xml":_jQuery2.parseXML},flatOptions:{url:true,context:true}},ajaxSetup:function ajaxSetup(target,settings){return settings?ajaxExtend(ajaxExtend(target,_jQuery2.ajaxSettings),settings):ajaxExtend(_jQuery2.ajaxSettings,target);},ajaxPrefilter:addToPrefiltersOrTransports(prefilters),ajaxTransport:addToPrefiltersOrTransports(transports),ajax:function ajax(url,options){if(_typeof(url)==="object"){options=url;url=undefined;}
options=options||{};var transport,cacheURL,responseHeadersString,responseHeaders,timeoutTimer,urlAnchor,completed,fireGlobals,i,uncached,s=_jQuery2.ajaxSetup({},options),callbackContext=s.context||s,globalEventContext=s.context&&(callbackContext.nodeType||callbackContext.jquery)?_jQuery2(callbackContext):_jQuery2.event,deferred=_jQuery2.Deferred(),completeDeferred=_jQuery2.Callbacks("once memory"),_statusCode=s.statusCode||{},requestHeaders={},requestHeadersNames={},strAbort="canceled",jqXHR={readyState:0,getResponseHeader:function getResponseHeader(key){var match;if(completed){if(!responseHeaders){responseHeaders={};while(match=rheaders.exec(responseHeadersString)){responseHeaders[match[1].toLowerCase()+" "]=(responseHeaders[match[1].toLowerCase()+" "]||[]).concat(match[2]);}}
match=responseHeaders[key.toLowerCase()+" "];}
return match==null?null:match.join(", ");},getAllResponseHeaders:function getAllResponseHeaders(){return completed?responseHeadersString:null;},setRequestHeader:function setRequestHeader(name,value){if(completed==null){name=requestHeadersNames[name.toLowerCase()]=requestHeadersNames[name.toLowerCase()]||name;requestHeaders[name]=value;}
return this;},overrideMimeType:function overrideMimeType(type){if(completed==null){s.mimeType=type;}
return this;},statusCode:function statusCode(map){var code;if(map){if(completed){jqXHR.always(map[jqXHR.status]);}else{for(code in map){_statusCode[code]=[_statusCode[code],map[code]];}}}
return this;},abort:function abort(statusText){var finalText=statusText||strAbort;if(transport){transport.abort(finalText);}
done(0,finalText);return this;}};deferred.promise(jqXHR);s.url=((url||s.url||location.href)+"").replace(rprotocol,location.protocol+"//");s.type=options.method||options.type||s.method||s.type;s.dataTypes=(s.dataType||"*").toLowerCase().match(rnothtmlwhite)||[""];if(s.crossDomain==null){urlAnchor=document.createElement("a");try{urlAnchor.href=s.url;urlAnchor.href=urlAnchor.href;s.crossDomain=originAnchor.protocol+"//"+originAnchor.host!==urlAnchor.protocol+"//"+urlAnchor.host;}catch(e){s.crossDomain=true;}}
if(s.data&&s.processData&&typeof s.data!=="string"){s.data=_jQuery2.param(s.data,s.traditional);}
inspectPrefiltersOrTransports(prefilters,s,options,jqXHR);if(completed){return jqXHR;}
fireGlobals=_jQuery2.event&&s.global;if(fireGlobals&&_jQuery2.active++===0){_jQuery2.event.trigger("ajaxStart");}
s.type=s.type.toUpperCase();s.hasContent=!rnoContent.test(s.type);cacheURL=s.url.replace(rhash,"");if(!s.hasContent){uncached=s.url.slice(cacheURL.length);if(s.data&&(s.processData||typeof s.data==="string")){cacheURL+=(rquery.test(cacheURL)?"&":"?")+s.data;delete s.data;}
if(s.cache===false){cacheURL=cacheURL.replace(rantiCache,"$1");uncached=(rquery.test(cacheURL)?"&":"?")+"_="+nonce.guid++ +uncached;}
s.url=cacheURL+uncached;}else if(s.data&&s.processData&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0){s.data=s.data.replace(r20,"+");}
if(s.ifModified){if(_jQuery2.lastModified[cacheURL]){jqXHR.setRequestHeader("If-Modified-Since",_jQuery2.lastModified[cacheURL]);}
if(_jQuery2.etag[cacheURL]){jqXHR.setRequestHeader("If-None-Match",_jQuery2.etag[cacheURL]);}}
if(s.data&&s.hasContent&&s.contentType!==false||options.contentType){jqXHR.setRequestHeader("Content-Type",s.contentType);}
jqXHR.setRequestHeader("Accept",s.dataTypes[0]&&s.accepts[s.dataTypes[0]]?s.accepts[s.dataTypes[0]]+(s.dataTypes[0]!=="*"?", "+allTypes+"; q=0.01":""):s.accepts["*"]);for(i in s.headers){jqXHR.setRequestHeader(i,s.headers[i]);}
if(s.beforeSend&&(s.beforeSend.call(callbackContext,jqXHR,s)===false||completed)){return jqXHR.abort();}
strAbort="abort";completeDeferred.add(s.complete);jqXHR.done(s.success);jqXHR.fail(s.error);transport=inspectPrefiltersOrTransports(transports,s,options,jqXHR);if(!transport){done(-1,"No Transport");}else{jqXHR.readyState=1;if(fireGlobals){globalEventContext.trigger("ajaxSend",[jqXHR,s]);}
if(completed){return jqXHR;}
if(s.async&&s.timeout>0){timeoutTimer=window.setTimeout(function(){jqXHR.abort("timeout");},s.timeout);}
try{completed=false;transport.send(requestHeaders,done);}catch(e){if(completed){throw e;}
done(-1,e);}}
function done(status,nativeStatusText,responses,headers){var isSuccess,success,error,response,modified,statusText=nativeStatusText;if(completed){return;}
completed=true;if(timeoutTimer){window.clearTimeout(timeoutTimer);}
transport=undefined;responseHeadersString=headers||"";jqXHR.readyState=status>0?4:0;isSuccess=status>=200&&status<300||status===304;if(responses){response=ajaxHandleResponses(s,jqXHR,responses);}
if(!isSuccess&&_jQuery2.inArray("script",s.dataTypes)>-1&&_jQuery2.inArray("json",s.dataTypes)<0){s.converters["text script"]=function(){};}
response=ajaxConvert(s,response,jqXHR,isSuccess);if(isSuccess){if(s.ifModified){modified=jqXHR.getResponseHeader("Last-Modified");if(modified){_jQuery2.lastModified[cacheURL]=modified;}
modified=jqXHR.getResponseHeader("etag");if(modified){_jQuery2.etag[cacheURL]=modified;}}
if(status===204||s.type==="HEAD"){statusText="nocontent";}else if(status===304){statusText="notmodified";}else{statusText=response.state;success=response.data;error=response.error;isSuccess=!error;}}else{error=statusText;if(status||!statusText){statusText="error";if(status<0){status=0;}}}
jqXHR.status=status;jqXHR.statusText=(nativeStatusText||statusText)+"";if(isSuccess){deferred.resolveWith(callbackContext,[success,statusText,jqXHR]);}else{deferred.rejectWith(callbackContext,[jqXHR,statusText,error]);}
jqXHR.statusCode(_statusCode);_statusCode=undefined;if(fireGlobals){globalEventContext.trigger(isSuccess?"ajaxSuccess":"ajaxError",[jqXHR,s,isSuccess?success:error]);}
completeDeferred.fireWith(callbackContext,[jqXHR,statusText]);if(fireGlobals){globalEventContext.trigger("ajaxComplete",[jqXHR,s]);if(!--_jQuery2.active){_jQuery2.event.trigger("ajaxStop");}}}
return jqXHR;},getJSON:function getJSON(url,data,callback){return _jQuery2.get(url,data,callback,"json");},getScript:function getScript(url,callback){return _jQuery2.get(url,undefined,callback,"script");}});_jQuery2.each(["get","post"],function(_i,method){_jQuery2[method]=function(url,data,callback,type){if(isFunction(data)){type=type||callback;callback=data;data=undefined;}
return _jQuery2.ajax(_jQuery2.extend({url:url,type:method,dataType:type,data:data,success:callback},_jQuery2.isPlainObject(url)&&url));};});_jQuery2.ajaxPrefilter(function(s){var i;for(i in s.headers){if(i.toLowerCase()==="content-type"){s.contentType=s.headers[i]||"";}}});_jQuery2._evalUrl=function(url,options,doc){return _jQuery2.ajax({url:url,type:"GET",dataType:"script",cache:true,async:false,global:false,converters:{"text script":function text_script(){}},dataFilter:function dataFilter(response){_jQuery2.globalEval(response,options,doc);}});};_jQuery2.fn.extend({wrapAll:function wrapAll(html){var wrap;if(this[0]){if(isFunction(html)){html=html.call(this[0]);}
wrap=_jQuery2(html,this[0].ownerDocument).eq(0).clone(true);if(this[0].parentNode){wrap.insertBefore(this[0]);}
wrap.map(function(){var elem=this;while(elem.firstElementChild){elem=elem.firstElementChild;}
return elem;}).append(this);}
return this;},wrapInner:function wrapInner(html){if(isFunction(html)){return this.each(function(i){_jQuery2(this).wrapInner(html.call(this,i));});}
return this.each(function(){var self=_jQuery2(this),contents=self.contents();if(contents.length){contents.wrapAll(html);}else{self.append(html);}});},wrap:function wrap(html){var htmlIsFunction=isFunction(html);return this.each(function(i){_jQuery2(this).wrapAll(htmlIsFunction?html.call(this,i):html);});},unwrap:function unwrap(selector){this.parent(selector).not("body").each(function(){_jQuery2(this).replaceWith(this.childNodes);});return this;}});_jQuery2.expr.pseudos.hidden=function(elem){return!_jQuery2.expr.pseudos.visible(elem);};_jQuery2.expr.pseudos.visible=function(elem){return!!(elem.offsetWidth||elem.offsetHeight||elem.getClientRects().length);};_jQuery2.ajaxSettings.xhr=function(){try{return new window.XMLHttpRequest();}catch(e){}};var xhrSuccessStatus={0:200,1223:204},xhrSupported=_jQuery2.ajaxSettings.xhr();support.cors=!!xhrSupported&&"withCredentials" in xhrSupported;support.ajax=xhrSupported=!!xhrSupported;_jQuery2.ajaxTransport(function(options){var _callback,errorCallback;if(support.cors||xhrSupported&&!options.crossDomain){return{send:function send(headers,complete){var i,xhr=options.xhr();xhr.open(options.type,options.url,options.async,options.username,options.password);if(options.xhrFields){for(i in options.xhrFields){xhr[i]=options.xhrFields[i];}}
if(options.mimeType&&xhr.overrideMimeType){xhr.overrideMimeType(options.mimeType);}
if(!options.crossDomain&&!headers["X-Requested-With"]){headers["X-Requested-With"]="XMLHttpRequest";}
for(i in headers){xhr.setRequestHeader(i,headers[i]);}
_callback=function callback(type){return function(){if(_callback){_callback=errorCallback=xhr.onload=xhr.onerror=xhr.onabort=xhr.ontimeout=xhr.onreadystatechange=null;if(type==="abort"){xhr.abort();}else if(type==="error"){if(typeof xhr.status!=="number"){complete(0,"error");}else{complete(xhr.status,xhr.statusText);}}else{complete(xhrSuccessStatus[xhr.status]||xhr.status,xhr.statusText,(xhr.responseType||"text")!=="text"||typeof xhr.responseText!=="string"?{binary:xhr.response}:{text:xhr.responseText},xhr.getAllResponseHeaders());}}};};xhr.onload=_callback();errorCallback=xhr.onerror=xhr.ontimeout=_callback("error");if(xhr.onabort!==undefined){xhr.onabort=errorCallback;}else{xhr.onreadystatechange=function(){if(xhr.readyState===4){window.setTimeout(function(){if(_callback){errorCallback();}});}};}
_callback=_callback("abort");try{xhr.send(options.hasContent&&options.data||null);}catch(e){if(_callback){throw e;}}},abort:function abort(){if(_callback){_callback();}}};}});_jQuery2.ajaxPrefilter(function(s){if(s.crossDomain){s.contents.script=false;}});_jQuery2.ajaxSetup({accepts:{script:"text/javascript, application/javascript, "+"application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function text_script(text){_jQuery2.globalEval(text);return text;}}});_jQuery2.ajaxPrefilter("script",function(s){if(s.cache===undefined){s.cache=false;}
if(s.crossDomain){s.type="GET";}});_jQuery2.ajaxTransport("script",function(s){if(s.crossDomain||s.scriptAttrs){var script,_callback2;return{send:function send(_,complete){script=_jQuery2("<script>").attr(s.scriptAttrs||{}).prop({charset:s.scriptCharset,src:s.url}).on("load error",_callback2=function callback(evt){script.remove();_callback2=null;if(evt){complete(evt.type==="error"?404:200,evt.type);}});document.head.appendChild(script[0]);},abort:function abort(){if(_callback2){_callback2();}}};}});var oldCallbacks=[],rjsonp=/(=)\?(?=&|$)|\?\?/;_jQuery2.ajaxSetup({jsonp:"callback",jsonpCallback:function jsonpCallback(){var callback=oldCallbacks.pop()||_jQuery2.expando+"_"+nonce.guid++;this[callback]=true;return callback;}});_jQuery2.ajaxPrefilter("json jsonp",function(s,originalSettings,jqXHR){var callbackName,overwritten,responseContainer,jsonProp=s.jsonp!==false&&(rjsonp.test(s.url)?"url":typeof s.data==="string"&&(s.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&rjsonp.test(s.data)&&"data");if(jsonProp||s.dataTypes[0]==="jsonp"){callbackName=s.jsonpCallback=isFunction(s.jsonpCallback)?s.jsonpCallback():s.jsonpCallback;if(jsonProp){s[jsonProp]=s[jsonProp].replace(rjsonp,"$1"+callbackName);}else if(s.jsonp!==false){s.url+=(rquery.test(s.url)?"&":"?")+s.jsonp+"="+callbackName;}
s.converters["script json"]=function(){if(!responseContainer){_jQuery2.error(callbackName+" was not called");}
return responseContainer[0];};s.dataTypes[0]="json";overwritten=window[callbackName];window[callbackName]=function(){responseContainer=arguments;};jqXHR.always(function(){if(overwritten===undefined){_jQuery2(window).removeProp(callbackName);}else{window[callbackName]=overwritten;}
if(s[callbackName]){s.jsonpCallback=originalSettings.jsonpCallback;oldCallbacks.push(callbackName);}
if(responseContainer&&isFunction(overwritten)){overwritten(responseContainer[0]);}
responseContainer=overwritten=undefined;});return"script";}});support.createHTMLDocument=function(){var body=document.implementation.createHTMLDocument("").body;body.innerHTML="<form></form><form></form>";return body.childNodes.length===2;}();_jQuery2.parseHTML=function(data,context,keepScripts){if(typeof data!=="string"){return[];}
if(typeof context==="boolean"){keepScripts=context;context=false;}
var base,parsed,scripts;if(!context){if(support.createHTMLDocument){context=document.implementation.createHTMLDocument("");base=context.createElement("base");base.href=document.location.href;context.head.appendChild(base);}else{context=document;}}
parsed=rsingleTag.exec(data);scripts=!keepScripts&&[];if(parsed){return[context.createElement(parsed[1])];}
parsed=buildFragment([data],context,scripts);if(scripts&&scripts.length){_jQuery2(scripts).remove();}
return _jQuery2.merge([],parsed.childNodes);};_jQuery2.fn.load=function(url,params,callback){var selector,type,response,self=this,off=url.indexOf(" ");if(off>-1){selector=stripAndCollapse(url.slice(off));url=url.slice(0,off);}
if(isFunction(params)){callback=params;params=undefined;}else if(params&&_typeof(params)==="object"){type="POST";}
if(self.length>0){_jQuery2.ajax({url:url,type:type||"GET",dataType:"html",data:params}).done(function(responseText){response=arguments;self.html(selector?_jQuery2("<div>").append(_jQuery2.parseHTML(responseText)).find(selector):responseText);}).always(callback&&function(jqXHR,status){self.each(function(){callback.apply(this,response||[jqXHR.responseText,status,jqXHR]);});});}
return this;};_jQuery2.expr.pseudos.animated=function(elem){return _jQuery2.grep(_jQuery2.timers,function(fn){return elem===fn.elem;}).length;};_jQuery2.offset={setOffset:function setOffset(elem,options,i){var curPosition,curLeft,curCSSTop,curTop,curOffset,curCSSLeft,calculatePosition,position=_jQuery2.css(elem,"position"),curElem=_jQuery2(elem),props={};if(position==="static"){elem.style.position="relative";}
curOffset=curElem.offset();curCSSTop=_jQuery2.css(elem,"top");curCSSLeft=_jQuery2.css(elem,"left");calculatePosition=(position==="absolute"||position==="fixed")&&(curCSSTop+curCSSLeft).indexOf("auto")>-1;if(calculatePosition){curPosition=curElem.position();curTop=curPosition.top;curLeft=curPosition.left;}else{curTop=parseFloat(curCSSTop)||0;curLeft=parseFloat(curCSSLeft)||0;}
if(isFunction(options)){options=options.call(elem,i,_jQuery2.extend({},curOffset));}
if(options.top!=null){props.top=options.top-curOffset.top+curTop;}
if(options.left!=null){props.left=options.left-curOffset.left+curLeft;}
if("using" in options){options.using.call(elem,props);}else{curElem.css(props);}}};_jQuery2.fn.extend({offset:function offset(options){if(arguments.length){return options===undefined?this:this.each(function(i){_jQuery2.offset.setOffset(this,options,i);});}
var rect,win,elem=this[0];if(!elem){return;}
if(!elem.getClientRects().length){return{top:0,left:0};}
rect=elem.getBoundingClientRect();win=elem.ownerDocument.defaultView;return{top:rect.top+win.pageYOffset,left:rect.left+win.pageXOffset};},position:function position(){if(!this[0]){return;}
var offsetParent,offset,doc,elem=this[0],parentOffset={top:0,left:0};if(_jQuery2.css(elem,"position")==="fixed"){offset=elem.getBoundingClientRect();}else{offset=this.offset();doc=elem.ownerDocument;offsetParent=elem.offsetParent||doc.documentElement;while(offsetParent&&(offsetParent===doc.body||offsetParent===doc.documentElement)&&_jQuery2.css(offsetParent,"position")==="static"){offsetParent=offsetParent.parentNode;}
if(offsetParent&&offsetParent!==elem&&offsetParent.nodeType===1){parentOffset=_jQuery2(offsetParent).offset();parentOffset.top+=_jQuery2.css(offsetParent,"borderTopWidth",true);parentOffset.left+=_jQuery2.css(offsetParent,"borderLeftWidth",true);}}
return{top:offset.top-parentOffset.top-_jQuery2.css(elem,"marginTop",true),left:offset.left-parentOffset.left-_jQuery2.css(elem,"marginLeft",true)};},offsetParent:function offsetParent(){return this.map(function(){var offsetParent=this.offsetParent;while(offsetParent&&_jQuery2.css(offsetParent,"position")==="static"){offsetParent=offsetParent.offsetParent;}
return offsetParent||documentElement;});}});_jQuery2.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(method,prop){var top="pageYOffset"===prop;_jQuery2.fn[method]=function(val){return _access(this,function(elem,method,val){var win;if(isWindow(elem)){win=elem;}else if(elem.nodeType===9){win=elem.defaultView;}
if(val===undefined){return win?win[prop]:elem[method];}
if(win){win.scrollTo(!top?val:win.pageXOffset,top?val:win.pageYOffset);}else{elem[method]=val;}},method,val,arguments.length);};});_jQuery2.each(["top","left"],function(_i,prop){_jQuery2.cssHooks[prop]=addGetHookIf(support.pixelPosition,function(elem,computed){if(computed){computed=curCSS(elem,prop);return rnumnonpx.test(computed)?_jQuery2(elem).position()[prop]+"px":computed;}});});_jQuery2.each({Height:"height",Width:"width"},function(name,type){_jQuery2.each({padding:"inner"+name,content:type,"":"outer"+name},function(defaultExtra,funcName){_jQuery2.fn[funcName]=function(margin,value){var chainable=arguments.length&&(defaultExtra||typeof margin!=="boolean"),extra=defaultExtra||(margin===true||value===true?"margin":"border");return _access(this,function(elem,type,value){var doc;if(isWindow(elem)){return funcName.indexOf("outer")===0?elem["inner"+name]:elem.document.documentElement["client"+name];}
if(elem.nodeType===9){doc=elem.documentElement;return Math.max(elem.body["scroll"+name],doc["scroll"+name],elem.body["offset"+name],doc["offset"+name],doc["client"+name]);}
return value===undefined?_jQuery2.css(elem,type,extra):_jQuery2.style(elem,type,value,extra);},type,chainable?margin:undefined,chainable);};});});_jQuery2.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(_i,type){_jQuery2.fn[type]=function(fn){return this.on(type,fn);};});_jQuery2.fn.extend({bind:function bind(types,data,fn){return this.on(types,null,data,fn);},unbind:function unbind(types,fn){return this.off(types,null,fn);},delegate:function delegate(selector,types,data,fn){return this.on(types,selector,data,fn);},undelegate:function undelegate(selector,types,fn){return arguments.length===1?this.off(selector,"**"):this.off(types,selector||"**",fn);},hover:function hover(fnOver,fnOut){return this.on("mouseenter",fnOver).on("mouseleave",fnOut||fnOver);}});_jQuery2.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(_i,name){_jQuery2.fn[name]=function(data,fn){return arguments.length>0?this.on(name,null,data,fn):this.trigger(name);};});var rtrim=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;_jQuery2.proxy=function(fn,context){var tmp,args,proxy;if(typeof context==="string"){tmp=fn[context];context=fn;fn=tmp;}
if(!isFunction(fn)){return undefined;}
args=_slice.call(arguments,2);proxy=function proxy(){return fn.apply(context||this,args.concat(_slice.call(arguments)));};proxy.guid=fn.guid=fn.guid||_jQuery2.guid++;return proxy;};_jQuery2.holdReady=function(hold){if(hold){_jQuery2.readyWait++;}else{_jQuery2.ready(true);}};_jQuery2.isArray=Array.isArray;_jQuery2.parseJSON=JSON.parse;_jQuery2.nodeName=nodeName;_jQuery2.isFunction=isFunction;_jQuery2.isWindow=isWindow;_jQuery2.camelCase=camelCase;_jQuery2.type=toType;_jQuery2.now=Date.now;_jQuery2.isNumeric=function(obj){var type=_jQuery2.type(obj);return(type==="number"||type==="string")&&!isNaN(obj-parseFloat(obj));};_jQuery2.trim=function(text){return text==null?"":(text+"").replace(rtrim,"$1");};if(typeof define==="function"&&define.amd){define("jquery",[],function(){return _jQuery2;});}
var
_jQuery=window.jQuery,_$=window.$;_jQuery2.noConflict=function(deep){if(window.$===_jQuery2){window.$=_$;}
if(deep&&window.jQuery===_jQuery2){window.jQuery=_jQuery;}
return _jQuery2;};if(typeof noGlobal==="undefined"){window.jQuery=window.$=_jQuery2;}
return _jQuery2;});"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery"],factory);}else if((typeof module==="undefined"?"undefined":_typeof(module))==="object"&&module.exports){module.exports=factory(require("jquery"));}else{factory(jQuery);}})(function($){$.extend($.fn,{validate:function validate(options){if(!this.length){if(options&&options.debug&&window.console){console.warn("Nothing selected, can't validate, returning nothing.");}
return;}
var validator=$.data(this[0],"validator");if(validator){return validator;}
this.attr("novalidate","novalidate");validator=new $.validator(options,this[0]);$.data(this[0],"validator",validator);if(validator.settings.onsubmit){this.on("click.validate",":submit",function(event){validator.submitButton=event.currentTarget;if($(this).hasClass("cancel")){validator.cancelSubmit=true;}
if($(this).attr("formnovalidate")!==undefined){validator.cancelSubmit=true;}});this.on("submit.validate",function(event){if(validator.settings.debug){event.preventDefault();}
function handle(){var hidden,result;if(validator.submitButton&&(validator.settings.submitHandler||validator.formSubmitted)){hidden=$("<input type='hidden'/>").attr("name",validator.submitButton.name).val($(validator.submitButton).val()).appendTo(validator.currentForm);}
if(validator.settings.submitHandler&&!validator.settings.debug){result=validator.settings.submitHandler.call(validator,validator.currentForm,event);if(hidden){hidden.remove();}
if(result!==undefined){return result;}
return false;}
return true;}
if(validator.cancelSubmit){validator.cancelSubmit=false;return handle();}
if(validator.form()){if(validator.pendingRequest){validator.formSubmitted=true;return false;}
return handle();}else{validator.focusInvalid();return false;}});}
return validator;},valid:function valid(){var valid,validator,errorList;if($(this[0]).is("form")){valid=this.validate().form();}else{errorList=[];valid=true;validator=$(this[0].form).validate();this.each(function(){valid=validator.element(this)&&valid;if(!valid){errorList=errorList.concat(validator.errorList);}});validator.errorList=errorList;}
return valid;},rules:function rules(command,argument){var element=this[0],isContentEditable=typeof this.attr("contenteditable")!=="undefined"&&this.attr("contenteditable")!=="false",settings,staticRules,existingRules,data,param,filtered;if(element==null){return;}
if(!element.form&&isContentEditable){element.form=this.closest("form")[0];element.name=this.attr("name");}
if(element.form==null){return;}
if(command){settings=$.data(element.form,"validator").settings;staticRules=settings.rules;existingRules=$.validator.staticRules(element);switch(command){case"add":$.extend(existingRules,$.validator.normalizeRule(argument));delete existingRules.messages;staticRules[element.name]=existingRules;if(argument.messages){settings.messages[element.name]=$.extend(settings.messages[element.name],argument.messages);}
break;case"remove":if(!argument){delete staticRules[element.name];return existingRules;}
filtered={};$.each(argument.split(/\s/),function(index,method){filtered[method]=existingRules[method];delete existingRules[method];});return filtered;}}
data=$.validator.normalizeRules($.extend({},$.validator.classRules(element),$.validator.attributeRules(element),$.validator.dataRules(element),$.validator.staticRules(element)),element);if(data.required){param=data.required;delete data.required;data=$.extend({required:param},data);}
if(data.remote){param=data.remote;delete data.remote;data=$.extend(data,{remote:param});}
return data;}});var trim=function trim(str){return str.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");};$.extend($.expr.pseudos||$.expr[":"],{blank:function blank(a){return!trim(""+$(a).val());},filled:function filled(a){var val=$(a).val();return val!==null&&!!trim(""+val);},unchecked:function unchecked(a){return!$(a).prop("checked");}});$.validator=function(options,form){this.settings=$.extend(true,{},$.validator.defaults,options);this.currentForm=form;this.init();};$.validator.format=function(source,params){if(arguments.length===1){return function(){var args=$.makeArray(arguments);args.unshift(source);return $.validator.format.apply(this,args);};}
if(params===undefined){return source;}
if(arguments.length>2&&params.constructor!==Array){params=$.makeArray(arguments).slice(1);}
if(params.constructor!==Array){params=[params];}
$.each(params,function(i,n){source=source.replace(new RegExp("\\{"+i+"\\}","g"),function(){return n;});});return source;};$.extend($.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:false,focusInvalid:true,errorContainer:$([]),errorLabelContainer:$([]),onsubmit:true,ignore:":hidden",ignoreTitle:false,onfocusin:function onfocusin(element){this.lastActive=element;if(this.settings.focusCleanup){if(this.settings.unhighlight){this.settings.unhighlight.call(this,element,this.settings.errorClass,this.settings.validClass);}
this.hideThese(this.errorsFor(element));}},onfocusout:function onfocusout(element){if(!this.checkable(element)&&(element.name in this.submitted||!this.optional(element))){this.element(element);}},onkeyup:function onkeyup(element,event){var excludedKeys=[16,17,18,20,35,36,37,38,39,40,45,144,225];if(event.which===9&&this.elementValue(element)===""||$.inArray(event.keyCode,excludedKeys)!==-1){return;}else if(element.name in this.submitted||element.name in this.invalid){this.element(element);}},onclick:function onclick(element){if(element.name in this.submitted){this.element(element);}else if(element.parentNode.name in this.submitted){this.element(element.parentNode);}},highlight:function highlight(element,errorClass,validClass){if(element.type==="radio"){this.findByName(element.name).addClass(errorClass).removeClass(validClass);}else{$(element).addClass(errorClass).removeClass(validClass);}},unhighlight:function unhighlight(element,errorClass,validClass){if(element.type==="radio"){this.findByName(element.name).removeClass(errorClass).addClass(validClass);}else{$(element).removeClass(errorClass).addClass(validClass);}}},setDefaults:function setDefaults(settings){$.extend($.validator.defaults,settings);},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:$.validator.format("Please enter no more than {0} characters."),minlength:$.validator.format("Please enter at least {0} characters."),rangelength:$.validator.format("Please enter a value between {0} and {1} characters long."),range:$.validator.format("Please enter a value between {0} and {1}."),max:$.validator.format("Please enter a value less than or equal to {0}."),min:$.validator.format("Please enter a value greater than or equal to {0}."),step:$.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:false,prototype:{init:function init(){this.labelContainer=$(this.settings.errorLabelContainer);this.errorContext=this.labelContainer.length&&this.labelContainer||$(this.currentForm);this.containers=$(this.settings.errorContainer).add(this.settings.errorLabelContainer);this.submitted={};this.valueCache={};this.pendingRequest=0;this.pending={};this.invalid={};this.reset();var currentForm=this.currentForm,groups=this.groups={},rules;$.each(this.settings.groups,function(key,value){if(typeof value==="string"){value=value.split(/\s/);}
$.each(value,function(index,name){groups[name]=key;});});rules=this.settings.rules;$.each(rules,function(key,value){rules[key]=$.validator.normalizeRule(value);});function delegate(event){var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!this.form&&isContentEditable){this.form=$(this).closest("form")[0];this.name=$(this).attr("name");}
if(currentForm!==this.form){return;}
var validator=$.data(this.form,"validator"),eventType="on"+event.type.replace(/^validate/,""),settings=validator.settings;if(settings[eventType]&&!$(this).is(settings.ignore)){settings[eventType].call(validator,this,event);}}
$(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], "+"[type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], "+"[type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], "+"[type='radio'], [type='checkbox'], [contenteditable], [type='button']",delegate).on("click.validate","select, option, [type='radio'], [type='checkbox']",delegate);if(this.settings.invalidHandler){$(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler);}},form:function form(){this.checkForm();$.extend(this.submitted,this.errorMap);this.invalid=$.extend({},this.errorMap);if(!this.valid()){$(this.currentForm).triggerHandler("invalid-form",[this]);}
this.showErrors();return this.valid();},checkForm:function checkForm(){this.prepareForm();for(var i=0,elements=this.currentElements=this.elements();elements[i];i++){this.check(elements[i]);}
return this.valid();},element:function element(_element){var cleanElement=this.clean(_element),checkElement=this.validationTargetFor(cleanElement),v=this,result=true,rs,group;if(checkElement===undefined){delete this.invalid[cleanElement.name];}else{this.prepareElement(checkElement);this.currentElements=$(checkElement);group=this.groups[checkElement.name];if(group){$.each(this.groups,function(name,testgroup){if(testgroup===group&&name!==checkElement.name){cleanElement=v.validationTargetFor(v.clean(v.findByName(name)));if(cleanElement&&cleanElement.name in v.invalid){v.currentElements.push(cleanElement);result=v.check(cleanElement)&&result;}}});}
rs=this.check(checkElement)!==false;result=result&&rs;if(rs){this.invalid[checkElement.name]=false;}else{this.invalid[checkElement.name]=true;}
if(!this.numberOfInvalids()){this.toHide=this.toHide.add(this.containers);}
this.showErrors();$(_element).attr("aria-invalid",!rs);}
return result;},showErrors:function showErrors(errors){if(errors){var validator=this;$.extend(this.errorMap,errors);this.errorList=$.map(this.errorMap,function(message,name){return{message:message,element:validator.findByName(name)[0]};});this.successList=$.grep(this.successList,function(element){return!(element.name in errors);});}
if(this.settings.showErrors){this.settings.showErrors.call(this,this.errorMap,this.errorList);}else{this.defaultShowErrors();}},resetForm:function resetForm(){if($.fn.resetForm){$(this.currentForm).resetForm();}
this.invalid={};this.submitted={};this.prepareForm();this.hideErrors();var elements=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(elements);},resetElements:function resetElements(elements){var i;if(this.settings.unhighlight){for(i=0;elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,"");this.findByName(elements[i].name).removeClass(this.settings.validClass);}}else{elements.removeClass(this.settings.errorClass).removeClass(this.settings.validClass);}},numberOfInvalids:function numberOfInvalids(){return this.objectLength(this.invalid);},objectLength:function objectLength(obj){var count=0,i;for(i in obj){if(obj[i]!==undefined&&obj[i]!==null&&obj[i]!==false){count++;}}
return count;},hideErrors:function hideErrors(){this.hideThese(this.toHide);},hideThese:function hideThese(errors){errors.not(this.containers).text("");this.addWrapper(errors).hide();},valid:function valid(){return this.size()===0;},size:function size(){return this.errorList.length;},focusInvalid:function focusInvalid(){if(this.settings.focusInvalid){try{$(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin");}catch(e){}}},findLastActive:function findLastActive(){var lastActive=this.lastActive;return lastActive&&$.grep(this.errorList,function(n){return n.element.name===lastActive.name;}).length===1&&lastActive;},elements:function elements(){var validator=this,rulesCache={};return $(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter(function(){var name=this.name||$(this).attr("name");var isContentEditable=typeof $(this).attr("contenteditable")!=="undefined"&&$(this).attr("contenteditable")!=="false";if(!name&&validator.settings.debug&&window.console){console.error("%o has no name assigned",this);}
if(isContentEditable){this.form=$(this).closest("form")[0];this.name=name;}
if(this.form!==validator.currentForm){return false;}
if(name in rulesCache||!validator.objectLength($(this).rules())){return false;}
rulesCache[name]=true;return true;});},clean:function clean(selector){return $(selector)[0];},errors:function errors(){var errorClass=this.settings.errorClass.split(" ").join(".");return $(this.settings.errorElement+"."+errorClass,this.errorContext);},resetInternals:function resetInternals(){this.successList=[];this.errorList=[];this.errorMap={};this.toShow=$([]);this.toHide=$([]);},reset:function reset(){this.resetInternals();this.currentElements=$([]);},prepareForm:function prepareForm(){this.reset();this.toHide=this.errors().add(this.containers);},prepareElement:function prepareElement(element){this.reset();this.toHide=this.errorsFor(element);},elementValue:function elementValue(element){var $element=$(element),type=element.type,isContentEditable=typeof $element.attr("contenteditable")!=="undefined"&&$element.attr("contenteditable")!=="false",val,idx;if(type==="radio"||type==="checkbox"){return this.findByName(element.name).filter(":checked").val();}else if(type==="number"&&typeof element.validity!=="undefined"){return element.validity.badInput?"NaN":$element.val();}
if(isContentEditable){val=$element.text();}else{val=$element.val();}
if(type==="file"){if(val.substr(0,12)==="C:\\fakepath\\"){return val.substr(12);}
idx=val.lastIndexOf("/");if(idx>=0){return val.substr(idx+1);}
idx=val.lastIndexOf("\\");if(idx>=0){return val.substr(idx+1);}
return val;}
if(typeof val==="string"){return val.replace(/\r/g,"");}
return val;},check:function check(element){element=this.validationTargetFor(this.clean(element));var rules=$(element).rules(),rulesCount=$.map(rules,function(n,i){return i;}).length,dependencyMismatch=false,val=this.elementValue(element),result,method,rule,normalizer;this.abortRequest(element);if(typeof rules.normalizer==="function"){normalizer=rules.normalizer;}else if(typeof this.settings.normalizer==="function"){normalizer=this.settings.normalizer;}
if(normalizer){val=normalizer.call(element,val);delete rules.normalizer;}
for(method in rules){rule={method:method,parameters:rules[method]};try{result=$.validator.methods[method].call(this,val,element,rule.parameters);if(result==="dependency-mismatch"&&rulesCount===1){dependencyMismatch=true;continue;}
dependencyMismatch=false;if(result==="pending"){this.toHide=this.toHide.not(this.errorsFor(element));return;}
if(!result){this.formatAndAdd(element,rule);return false;}}catch(e){if(this.settings.debug&&window.console){console.log("Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.",e);}
if(e instanceof TypeError){e.message+=".  Exception occurred when checking element "+element.id+", check the '"+rule.method+"' method.";}
throw e;}}
if(dependencyMismatch){return;}
if(this.objectLength(rules)){this.successList.push(element);}
return true;},customDataMessage:function customDataMessage(element,method){return $(element).data("msg"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase())||$(element).data("msg");},customMessage:function customMessage(name,method){var m=this.settings.messages[name];return m&&(m.constructor===String?m:m[method]);},findDefined:function findDefined(){for(var i=0;i<arguments.length;i++){if(arguments[i]!==undefined){return arguments[i];}}
return undefined;},defaultMessage:function defaultMessage(element,rule){if(typeof rule==="string"){rule={method:rule};}
var message=this.findDefined(this.customMessage(element.name,rule.method),this.customDataMessage(element,rule.method),!this.settings.ignoreTitle&&element.title||undefined,$.validator.messages[rule.method],"<strong>Warning: No message defined for "+element.name+"</strong>"),theregex=/\$?\{(\d+)\}/g;if(typeof message==="function"){message=message.call(this,rule.parameters,element);}else if(theregex.test(message)){message=$.validator.format(message.replace(theregex,"{$1}"),rule.parameters);}
return message;},formatAndAdd:function formatAndAdd(element,rule){var message=this.defaultMessage(element,rule);this.errorList.push({message:message,element:element,method:rule.method});this.errorMap[element.name]=message;this.submitted[element.name]=message;},addWrapper:function addWrapper(toToggle){if(this.settings.wrapper){toToggle=toToggle.add(toToggle.parent(this.settings.wrapper));}
return toToggle;},defaultShowErrors:function defaultShowErrors(){var i,elements,error;for(i=0;this.errorList[i];i++){error=this.errorList[i];if(this.settings.highlight){this.settings.highlight.call(this,error.element,this.settings.errorClass,this.settings.validClass);}
this.showLabel(error.element,error.message);}
if(this.errorList.length){this.toShow=this.toShow.add(this.containers);}
if(this.settings.success){for(i=0;this.successList[i];i++){this.showLabel(this.successList[i]);}}
if(this.settings.unhighlight){for(i=0,elements=this.validElements();elements[i];i++){this.settings.unhighlight.call(this,elements[i],this.settings.errorClass,this.settings.validClass);}}
this.toHide=this.toHide.not(this.toShow);this.hideErrors();this.addWrapper(this.toShow).show();},validElements:function validElements(){return this.currentElements.not(this.invalidElements());},invalidElements:function invalidElements(){return $(this.errorList).map(function(){return this.element;});},showLabel:function showLabel(element,message){var place,group,errorID,v,error=this.errorsFor(element),elementID=this.idOrName(element),describedBy=$(element).attr("aria-describedby");if(error.length){error.removeClass(this.settings.validClass).addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml){error.text(message||"");}else{error.html(message||"");}}else{error=$("<"+this.settings.errorElement+">").attr("id",elementID+"-error").addClass(this.settings.errorClass);if(this.settings&&this.settings.escapeHtml){error.text(message||"");}else{error.html(message||"");}
place=error;if(this.settings.wrapper){place=error.hide().show().wrap("<"+this.settings.wrapper+"/>").parent();}
if(this.labelContainer.length){this.labelContainer.append(place);}else if(this.settings.errorPlacement){this.settings.errorPlacement.call(this,place,$(element));}else{place.insertAfter(element);}
if(error.is("label")){error.attr("for",elementID);}else if(error.parents("label[for='"+this.escapeCssMeta(elementID)+"']").length===0){errorID=error.attr("id");if(!describedBy){describedBy=errorID;}else if(!describedBy.match(new RegExp("\\b"+this.escapeCssMeta(errorID)+"\\b"))){describedBy+=" "+errorID;}
$(element).attr("aria-describedby",describedBy);group=this.groups[element.name];if(group){v=this;$.each(v.groups,function(name,testgroup){if(testgroup===group){$("[name='"+v.escapeCssMeta(name)+"']",v.currentForm).attr("aria-describedby",error.attr("id"));}});}}}
if(!message&&this.settings.success){error.text("");if(typeof this.settings.success==="string"){error.addClass(this.settings.success);}else{this.settings.success(error,element);}}
this.toShow=this.toShow.add(error);},errorsFor:function errorsFor(element){var name=this.escapeCssMeta(this.idOrName(element)),describer=$(element).attr("aria-describedby"),selector="label[for='"+name+"'], label[for='"+name+"'] *";if(describer){selector=selector+", #"+this.escapeCssMeta(describer).replace(/\s+/g,", #");}
return this.errors().filter(selector);},escapeCssMeta:function escapeCssMeta(string){if(string===undefined){return"";}
return string.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1");},idOrName:function idOrName(element){return this.groups[element.name]||(this.checkable(element)?element.name:element.id||element.name);},validationTargetFor:function validationTargetFor(element){if(this.checkable(element)){element=this.findByName(element.name);}
return $(element).not(this.settings.ignore)[0];},checkable:function checkable(element){return /radio|checkbox/i.test(element.type);},findByName:function findByName(name){return $(this.currentForm).find("[name='"+this.escapeCssMeta(name)+"']");},getLength:function getLength(value,element){switch(element.nodeName.toLowerCase()){case"select":return $("option:selected",element).length;case"input":if(this.checkable(element)){return this.findByName(element.name).filter(":checked").length;}}
return value.length;},depend:function depend(param,element){return this.dependTypes[_typeof(param)]?this.dependTypes[_typeof(param)](param,element):true;},dependTypes:{"boolean":function boolean(param){return param;},"string":function string(param,element){return!!$(param,element.form).length;},"function":function _function(param,element){return param(element);}},optional:function optional(element){var val=this.elementValue(element);return!$.validator.methods.required.call(this,val,element)&&"dependency-mismatch";},elementAjaxPort:function elementAjaxPort(element){return"validate"+element.name;},startRequest:function startRequest(element){if(!this.pending[element.name]){this.pendingRequest++;$(element).addClass(this.settings.pendingClass);this.pending[element.name]=true;}},stopRequest:function stopRequest(element,valid){this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0;}
delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);if(valid&&this.pendingRequest===0&&this.formSubmitted&&this.form()&&this.pendingRequest===0){$(this.currentForm).trigger("submit");if(this.submitButton){$("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove();}
this.formSubmitted=false;}else if(!valid&&this.pendingRequest===0&&this.formSubmitted){$(this.currentForm).triggerHandler("invalid-form",[this]);this.formSubmitted=false;}},abortRequest:function abortRequest(element){var port;if(this.pending[element.name]){port=this.elementAjaxPort(element);$.ajaxAbort(port);this.pendingRequest--;if(this.pendingRequest<0){this.pendingRequest=0;}
delete this.pending[element.name];$(element).removeClass(this.settings.pendingClass);}},previousValue:function previousValue(element,method){method=typeof method==="string"&&method||"remote";return $.data(element,"previousValue")||$.data(element,"previousValue",{old:null,valid:true,message:this.defaultMessage(element,{method:method})});},destroy:function destroy(){this.resetForm();$(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("validate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur");}},classRuleSettings:{required:{required:true},email:{email:true},url:{url:true},date:{date:true},dateISO:{dateISO:true},number:{number:true},digits:{digits:true},creditcard:{creditcard:true}},addClassRules:function addClassRules(className,rules){if(className.constructor===String){this.classRuleSettings[className]=rules;}else{$.extend(this.classRuleSettings,className);}},classRules:function classRules(element){var rules={},classes=$(element).attr("class");if(classes){$.each(classes.split(" "),function(){if(this in $.validator.classRuleSettings){$.extend(rules,$.validator.classRuleSettings[this]);}});}
return rules;},normalizeAttributeRule:function normalizeAttributeRule(rules,type,method,value){if(/min|max|step/.test(method)&&(type===null||/number|range|text/.test(type))){value=Number(value);if(isNaN(value)){value=undefined;}}
if(value||value===0){rules[method]=value;}else if(type===method&&type!=="range"){rules[type==="date"?"dateISO":method]=true;}},attributeRules:function attributeRules(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){if(method==="required"){value=element.getAttribute(method);if(value===""){value=true;}
value=!!value;}else{value=$element.attr(method);}
this.normalizeAttributeRule(rules,type,method,value);}
if(rules.maxlength&&/-1|2147483647|524288/.test(rules.maxlength)){delete rules.maxlength;}
return rules;},dataRules:function dataRules(element){var rules={},$element=$(element),type=element.getAttribute("type"),method,value;for(method in $.validator.methods){value=$element.data("rule"+method.charAt(0).toUpperCase()+method.substring(1).toLowerCase());if(value===""){value=true;}
this.normalizeAttributeRule(rules,type,method,value);}
return rules;},staticRules:function staticRules(element){var rules={},validator=$.data(element.form,"validator");if(validator.settings.rules){rules=$.validator.normalizeRule(validator.settings.rules[element.name])||{};}
return rules;},normalizeRules:function normalizeRules(rules,element){$.each(rules,function(prop,val){if(val===false){delete rules[prop];return;}
if(val.param||val.depends){var keepRule=true;switch(_typeof(val.depends)){case"string":keepRule=!!$(val.depends,element.form).length;break;case"function":keepRule=val.depends.call(element,element);break;}
if(keepRule){rules[prop]=val.param!==undefined?val.param:true;}else{$.data(element.form,"validator").resetElements($(element));delete rules[prop];}}});$.each(rules,function(rule,parameter){rules[rule]=typeof parameter==="function"&&rule!=="normalizer"?parameter(element):parameter;});$.each(["minlength","maxlength"],function(){if(rules[this]){rules[this]=Number(rules[this]);}});$.each(["rangelength","range"],function(){var parts;if(rules[this]){if(Array.isArray(rules[this])){rules[this]=[Number(rules[this][0]),Number(rules[this][1])];}else if(typeof rules[this]==="string"){parts=rules[this].replace(/[\[\]]/g,"").split(/[\s,]+/);rules[this]=[Number(parts[0]),Number(parts[1])];}}});if($.validator.autoCreateRanges){if(rules.min!=null&&rules.max!=null){rules.range=[rules.min,rules.max];delete rules.min;delete rules.max;}
if(rules.minlength!=null&&rules.maxlength!=null){rules.rangelength=[rules.minlength,rules.maxlength];delete rules.minlength;delete rules.maxlength;}}
return rules;},normalizeRule:function normalizeRule(data){if(typeof data==="string"){var transformed={};$.each(data.split(/\s/),function(){transformed[this]=true;});data=transformed;}
return data;},addMethod:function addMethod(name,method,message){$.validator.methods[name]=method;$.validator.messages[name]=message!==undefined?message:$.validator.messages[name];if(method.length<3){$.validator.addClassRules(name,$.validator.normalizeRule(name));}},methods:{required:function required(value,element,param){if(!this.depend(param,element)){return"dependency-mismatch";}
if(element.nodeName.toLowerCase()==="select"){var val=$(element).val();return val&&val.length>0;}
if(this.checkable(element)){return this.getLength(value,element)>0;}
return value!==undefined&&value!==null&&value.length>0;},email:function email(value,element){return this.optional(element)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(value);},url:function url(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value);},date:function(){var called=false;return function(value,element){if(!called){called=true;if(this.settings.debug&&window.console){console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\n"+"Please don't use it, since it relies on the Date constructor, which\n"+"behaves very differently across browsers and locales. Use `dateISO`\n"+"instead or one of the locale specific methods in `localizations/`\n"+"and `additional-methods.js`.");}}
return this.optional(element)||!/Invalid|NaN/.test(new Date(value).toString());};}(),dateISO:function dateISO(value,element){return this.optional(element)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(value);},number:function number(value,element){return this.optional(element)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(value);},digits:function digits(value,element){return this.optional(element)||/^\d+$/.test(value);},minlength:function minlength(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param;},maxlength:function maxlength(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length<=param;},rangelength:function rangelength(value,element,param){var length=Array.isArray(value)?value.length:this.getLength(value,element);return this.optional(element)||length>=param[0]&&length<=param[1];},min:function min(value,element,param){return this.optional(element)||value>=param;},max:function max(value,element,param){return this.optional(element)||value<=param;},range:function range(value,element,param){return this.optional(element)||value>=param[0]&&value<=param[1];},step:function step(value,element,param){var type=$(element).attr("type"),errorMessage="Step attribute on input type "+type+" is not supported.",supportedTypes=["text","number","range"],re=new RegExp("\\b"+type+"\\b"),notSupported=type&&!re.test(supportedTypes.join()),decimalPlaces=function decimalPlaces(num){var match=(""+num).match(/(?:\.(\d+))?$/);if(!match){return 0;}
return match[1]?match[1].length:0;},toInt=function toInt(num){return Math.round(num*Math.pow(10,decimals));},valid=true,decimals;if(notSupported){throw new Error(errorMessage);}
decimals=decimalPlaces(param);if(decimalPlaces(value)>decimals||toInt(value)%toInt(param)!==0){valid=false;}
return this.optional(element)||valid;},equalTo:function equalTo(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-equalTo-blur").length){target.addClass("validate-equalTo-blur").on("blur.validate-equalTo",function(){$(element).valid();});}
return value===target.val();},remote:function remote(value,element,param,method){if(this.optional(element)){return"dependency-mismatch";}
method=typeof method==="string"&&method||"remote";var previous=this.previousValue(element,method),validator,data,optionDataString;if(!this.settings.messages[element.name]){this.settings.messages[element.name]={};}
previous.originalMessage=previous.originalMessage||this.settings.messages[element.name][method];this.settings.messages[element.name][method]=previous.message;param=typeof param==="string"&&{url:param}||param;optionDataString=$.param($.extend({data:value},param.data));if(previous.old===optionDataString){return previous.valid;}
previous.old=optionDataString;validator=this;this.startRequest(element);data={};data[element.name]=value;$.ajax($.extend(true,{mode:"abort",port:this.elementAjaxPort(element),dataType:"json",data:data,context:validator.currentForm,success:function success(response){var valid=response===true||response==="true",errors,message,submitted;validator.settings.messages[element.name][method]=previous.originalMessage;if(valid){submitted=validator.formSubmitted;validator.toHide=validator.errorsFor(element);validator.formSubmitted=submitted;validator.successList.push(element);validator.invalid[element.name]=false;validator.showErrors();}else{errors={};message=response||validator.defaultMessage(element,{method:method,parameters:value});errors[element.name]=previous.message=message;validator.invalid[element.name]=true;validator.showErrors(errors);}
previous.valid=valid;validator.stopRequest(element,valid);}},param));return"pending";}}});var pendingRequests={},ajax;if($.ajaxPrefilter){$.ajaxPrefilter(function(settings,_,xhr){var port=settings.port;if(settings.mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=xhr;}});}else{ajax=$.ajax;$.ajax=function(settings){var mode=("mode" in settings?settings:$.ajaxSettings).mode,port=("port" in settings?settings:$.ajaxSettings).port;if(mode==="abort"){$.ajaxAbort(port);pendingRequests[port]=ajax.apply(this,arguments);return pendingRequests[port];}
return ajax.apply(this,arguments);};}
$.ajaxAbort=function(port){if(pendingRequests[port]){pendingRequests[port].abort();delete pendingRequests[port];}};return $;});"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(factory){if(typeof define==='function'&&define.amd){define("jquery.validate.unobtrusive",['jquery-validation'],factory);}else if((typeof module==="undefined"?"undefined":_typeof(module))==='object'&&module.exports){module.exports=factory(require('jquery-validation'));}else{jQuery.validator.unobtrusive=factory(jQuery);}})(function($){var $jQval=$.validator,adapters,data_validation="unobtrusiveValidation";function setValidationValues(options,ruleName,value){options.rules[ruleName]=value;if(options.message){options.messages[ruleName]=options.message;}}
function splitAndTrim(value){return value.replace(/^\s+|\s+$/g,"").split(/\s*,\s*/g);}
function escapeAttributeValue(value){return value.replace(/([!"#$%&'()*+,./:;<=>?@\[\\\]^`{|}~])/g,"\\$1");}
function getModelPrefix(fieldName){return fieldName.substr(0,fieldName.lastIndexOf(".")+1);}
function appendModelPrefix(value,prefix){if(value.indexOf("*.")===0){value=value.replace("*.",prefix);}
return value;}
function onError(error,inputElement){var container=$(this).find("[data-valmsg-for='"+escapeAttributeValue(inputElement[0].name)+"']"),replaceAttrValue=container.attr("data-valmsg-replace"),replace=replaceAttrValue?$.parseJSON(replaceAttrValue)!==false:null;container.removeClass("field-validation-valid").addClass("field-validation-error");error.data("unobtrusiveContainer",container);if(replace){container.empty();error.removeClass("input-validation-error").appendTo(container);}else{error.hide();}}
function onErrors(event,validator){var container=$(this).find("[data-valmsg-summary=true]"),list=container.find("ul");if(list&&list.length&&validator.errorList.length){list.empty();container.addClass("validation-summary-errors").removeClass("validation-summary-valid");$.each(validator.errorList,function(){$("<li />").html(this.message).appendTo(list);});}}
function onSuccess(error){var container=error.data("unobtrusiveContainer");if(container){var replaceAttrValue=container.attr("data-valmsg-replace"),replace=replaceAttrValue?$.parseJSON(replaceAttrValue):null;container.addClass("field-validation-valid").removeClass("field-validation-error");error.removeData("unobtrusiveContainer");if(replace){container.empty();}}}
function onReset(event){var $form=$(this),key='__jquery_unobtrusive_validation_form_reset';if($form.data(key)){return;}
$form.data(key,true);try{$form.data("validator").resetForm();}finally{$form.removeData(key);}
$form.find(".validation-summary-errors").addClass("validation-summary-valid").removeClass("validation-summary-errors");$form.find(".field-validation-error").addClass("field-validation-valid").removeClass("field-validation-error").removeData("unobtrusiveContainer").find(">*").removeData("unobtrusiveContainer");}
function validationInfo(form){var $form=$(form),result=$form.data(data_validation),onResetProxy=$.proxy(onReset,form),defaultOptions=$jQval.unobtrusive.options||{},execInContext=function execInContext(name,args){var func=defaultOptions[name];func&&$.isFunction(func)&&func.apply(form,args);};if(!result){result={options:{errorClass:defaultOptions.errorClass||"input-validation-error",errorElement:defaultOptions.errorElement||"span",errorPlacement:function errorPlacement(){onError.apply(form,arguments);execInContext("errorPlacement",arguments);},invalidHandler:function invalidHandler(){onErrors.apply(form,arguments);execInContext("invalidHandler",arguments);},messages:{},rules:{},success:function success(){onSuccess.apply(form,arguments);execInContext("success",arguments);}},attachValidation:function attachValidation(){$form.off("reset."+data_validation,onResetProxy).on("reset."+data_validation,onResetProxy).validate(this.options);},validate:function validate(){$form.validate();return $form.valid();}};$form.data(data_validation,result);}
return result;}
$jQval.unobtrusive={adapters:[],parseElement:function parseElement(element,skipAttach){var $element=$(element),form=$element.parents("form")[0],valInfo,rules,messages;if(!form){return;}
valInfo=validationInfo(form);valInfo.options.rules[element.name]=rules={};valInfo.options.messages[element.name]=messages={};$.each(this.adapters,function(){var prefix="data-val-"+this.name,message=$element.attr(prefix),paramValues={};if(message!==undefined){prefix+="-";$.each(this.params,function(){paramValues[this]=$element.attr(prefix+this);});this.adapt({element:element,form:form,message:message,params:paramValues,rules:rules,messages:messages});}});$.extend(rules,{"__dummy__":true});if(!skipAttach){valInfo.attachValidation();}},parse:function parse(selector){var $selector=$(selector),$forms=$selector.parents().addBack().filter("form").add($selector.find("form")).has("[data-val=true]");$selector.find("[data-val=true]").each(function(){$jQval.unobtrusive.parseElement(this,true);});$forms.each(function(){var info=validationInfo(this);if(info){info.attachValidation();}});}};adapters=$jQval.unobtrusive.adapters;adapters.add=function(adapterName,params,fn){if(!fn){fn=params;params=[];}
this.push({name:adapterName,params:params,adapt:fn});return this;};adapters.addBool=function(adapterName,ruleName){return this.add(adapterName,function(options){setValidationValues(options,ruleName||adapterName,true);});};adapters.addMinMax=function(adapterName,minRuleName,maxRuleName,minMaxRuleName,minAttribute,maxAttribute){return this.add(adapterName,[minAttribute||"min",maxAttribute||"max"],function(options){var min=options.params.min,max=options.params.max;if(min&&max){setValidationValues(options,minMaxRuleName,[min,max]);}else if(min){setValidationValues(options,minRuleName,min);}else if(max){setValidationValues(options,maxRuleName,max);}});};adapters.addSingleVal=function(adapterName,attribute,ruleName){return this.add(adapterName,[attribute||"val"],function(options){setValidationValues(options,ruleName||adapterName,options.params[attribute]);});};$jQval.addMethod("__dummy__",function(value,element,params){return true;});$jQval.addMethod("regex",function(value,element,params){var match;if(this.optional(element)){return true;}
match=new RegExp(params).exec(value);return match&&match.index===0&&match[0].length===value.length;});$jQval.addMethod("nonalphamin",function(value,element,nonalphamin){var match;if(nonalphamin){match=value.match(/\W/g);match=match&&match.length>=nonalphamin;}
return match;});if($jQval.methods.extension){adapters.addSingleVal("accept","mimtype");adapters.addSingleVal("extension","extension");}else{adapters.addSingleVal("extension","extension","accept");}
adapters.addSingleVal("regex","pattern");adapters.addBool("creditcard").addBool("date").addBool("digits").addBool("email").addBool("number").addBool("url");adapters.addMinMax("length","minlength","maxlength","rangelength").addMinMax("range","min","max","range");adapters.addMinMax("minlength","minlength").addMinMax("maxlength","minlength","maxlength");adapters.add("equalto",["other"],function(options){var prefix=getModelPrefix(options.element.name),other=options.params.other,fullOtherName=appendModelPrefix(other,prefix),element=$(options.form).find(":input").filter("[name='"+escapeAttributeValue(fullOtherName)+"']")[0];setValidationValues(options,"equalTo",element);});adapters.add("required",function(options){if(options.element.tagName.toUpperCase()!=="INPUT"||options.element.type.toUpperCase()!=="CHECKBOX"){setValidationValues(options,"required",true);}});adapters.add("remote",["url","type","additionalfields"],function(options){var value={url:options.params.url,type:options.params.type||"GET",data:{}},prefix=getModelPrefix(options.element.name);$.each(splitAndTrim(options.params.additionalfields||options.element.name),function(i,fieldName){var paramName=appendModelPrefix(fieldName,prefix);value.data[paramName]=function(){var field=$(options.form).find(":input").filter("[name='"+escapeAttributeValue(paramName)+"']");if(field.is(":checkbox")){return field.filter(":checked").val()||field.filter(":hidden").val()||'';}else if(field.is(":radio")){return field.filter(":checked").val()||'';}
return field.val();};});setValidationValues(options,"remote",value);});adapters.add("password",["min","nonalphamin","regex"],function(options){if(options.params.min){setValidationValues(options,"minlength",options.params.min);}
if(options.params.nonalphamin){setValidationValues(options,"nonalphamin",options.params.nonalphamin);}
if(options.params.regex){setValidationValues(options,"regex",options.params.regex);}});adapters.add("fileextensions",["extensions"],function(options){setValidationValues(options,"extension",options.params.extensions);});$(function(){$jQval.unobtrusive.parse(document);});return $jQval.unobtrusive;});"use strict";function _superPropGet(t,o,e,r){var p=_get(_getPrototypeOf(1&r?t.prototype:t),o,e);return 2&r&&"function"==typeof p?function(t){return p.apply(e,t);}:p;}
function _get(){return _get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var p=_superPropBase(e,t);if(p){var n=Object.getOwnPropertyDescriptor(p,t);return n.get?n.get.call(arguments.length<3?e:r):n.value;}},_get.apply(null,arguments);}
function _superPropBase(t,o){for(;!{}.hasOwnProperty.call(t,o)&&null!==(t=_getPrototypeOf(t)););return t;}
function _callSuper(t,o,e){return o=_getPrototypeOf(o),_possibleConstructorReturn(t,_isNativeReflectConstruct()?Reflect.construct(o,e||[],_getPrototypeOf(t).constructor):o.apply(t,e));}
function _possibleConstructorReturn(t,e){if(e&&("object"==_typeof(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(t);}
function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e;}
function _isNativeReflectConstruct(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));}catch(t){}return(_isNativeReflectConstruct=function _isNativeReflectConstruct(){return!!t;})();}
function _getPrototypeOf(t){return _getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t);},_getPrototypeOf(t);}
function _inherits(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}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&_setPrototypeOf(t,e);}
function _setPrototypeOf(t,e){return _setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t;},_setPrototypeOf(t,e);}
function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}
function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}
function _defineProperty(e,r,t){return(r=_toPropertyKey(r))in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e;}
function _classCallCheck(a,n){if(!(a instanceof n))throw new TypeError("Cannot call a class as a function");}
function _defineProperties(e,r){for(var t=0;t<r.length;t++){var o=r[t];o.enumerable=o.enumerable||!1,o.configurable=!0,"value" in o&&(o.writable=!0),Object.defineProperty(e,_toPropertyKey(o.key),o);}}
function _createClass(e,r,t){return r&&_defineProperties(e.prototype,r),t&&_defineProperties(e,t),Object.defineProperty(e,"prototype",{writable:!1}),e;}
function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:i+"";}
function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}
function _slicedToArray(r,e){return _arrayWithHoles(r)||_iterableToArrayLimit(r,e)||_unsupportedIterableToArray(r,e)||_nonIterableRest();}
function _nonIterableRest(){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 _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}
function _arrayWithHoles(r){if(Array.isArray(r))return r;}
function _createForOfIteratorHelper(r,e){var t="undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(!t){if(Array.isArray(r)||(t=_unsupportedIterableToArray(r))||e&&r&&"number"==typeof r.length){t&&(r=t);var _n=0,F=function F(){};return{s:F,n:function n(){return _n>=r.length?{done:!0}:{done:!1,value:r[_n++]};},e:function e(r){throw r;},f:F};}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 o,a=!0,u=!1;return{s:function s(){t=t.call(r);},n:function n(){var r=t.next();return a=r.done,r;},e:function e(r){u=!0,o=r;},f:function f(){try{a||null==t.return||t.return();}finally{if(u)throw o;}}};}
function _toConsumableArray(r){return _arrayWithoutHoles(r)||_iterableToArray(r)||_unsupportedIterableToArray(r)||_nonIterableSpread();}
function _nonIterableSpread(){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 _unsupportedIterableToArray(r,a){if(r){if("string"==typeof r)return _arrayLikeToArray(r,a);var t={}.toString.call(r).slice(8,-1);return"Object"===t&&r.constructor&&(t=r.constructor.name),"Map"===t||"Set"===t?Array.from(r):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?_arrayLikeToArray(r,a):void 0;}}
function _iterableToArray(r){if("undefined"!=typeof Symbol&&null!=r[Symbol.iterator]||null!=r["@@iterator"])return Array.from(r);}
function _arrayWithoutHoles(r){if(Array.isArray(r))return _arrayLikeToArray(r);}
function _arrayLikeToArray(r,a){(null==a||a>r.length)&&(a=r.length);for(var e=0,n=Array(a);e<a;e++)n[e]=r[e];return n;}
function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(global,factory){(typeof exports==="undefined"?"undefined":_typeof(exports))==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.bootstrap=factory());})(void 0,function(){'use strict';var elementMap=new Map();var Data={set:function set(element,key,instance){if(!elementMap.has(element)){elementMap.set(element,new Map());}
var instanceMap=elementMap.get(element);if(!instanceMap.has(key)&&instanceMap.size!==0){console.error("Bootstrap doesn't allow more than one instance per element. Bound instance: ".concat(Array.from(instanceMap.keys())[0],"."));return;}
instanceMap.set(key,instance);},get:function get(element,key){if(elementMap.has(element)){return elementMap.get(element).get(key)||null;}
return null;},remove:function remove(element,key){if(!elementMap.has(element)){return;}
var instanceMap=elementMap.get(element);instanceMap.delete(key);if(instanceMap.size===0){elementMap.delete(element);}}};var MAX_UID=1000000;var MILLISECONDS_MULTIPLIER=1000;var TRANSITION_END='transitionend';var parseSelector=function parseSelector(selector){if(selector&&window.CSS&&window.CSS.escape){selector=selector.replace(/#([^\s"#']+)/g,function(match,id){return"#".concat(CSS.escape(id));});}
return selector;};var toType=function toType(object){if(object===null||object===undefined){return"".concat(object);}
return Object.prototype.toString.call(object).match(/\s([a-z]+)/i)[1].toLowerCase();};var getUID=function getUID(prefix){do{prefix+=Math.floor(Math.random()*MAX_UID);}while(document.getElementById(prefix));return prefix;};var getTransitionDurationFromElement=function getTransitionDurationFromElement(element){if(!element){return 0;}
var _window$getComputedSt=window.getComputedStyle(element),transitionDuration=_window$getComputedSt.transitionDuration,transitionDelay=_window$getComputedSt.transitionDelay;var floatTransitionDuration=Number.parseFloat(transitionDuration);var floatTransitionDelay=Number.parseFloat(transitionDelay);if(!floatTransitionDuration&&!floatTransitionDelay){return 0;}
transitionDuration=transitionDuration.split(',')[0];transitionDelay=transitionDelay.split(',')[0];return(Number.parseFloat(transitionDuration)+Number.parseFloat(transitionDelay))*MILLISECONDS_MULTIPLIER;};var triggerTransitionEnd=function triggerTransitionEnd(element){element.dispatchEvent(new Event(TRANSITION_END));};var isElement$1=function isElement$1(object){if(!object||_typeof(object)!=='object'){return false;}
if(typeof object.jquery!=='undefined'){object=object[0];}
return typeof object.nodeType!=='undefined';};var getElement=function getElement(object){if(isElement$1(object)){return object.jquery?object[0]:object;}
if(typeof object==='string'&&object.length>0){return document.querySelector(parseSelector(object));}
return null;};var isVisible=function isVisible(element){if(!isElement$1(element)||element.getClientRects().length===0){return false;}
var elementIsVisible=getComputedStyle(element).getPropertyValue('visibility')==='visible';var closedDetails=element.closest('details:not([open])');if(!closedDetails){return elementIsVisible;}
if(closedDetails!==element){var summary=element.closest('summary');if(summary&&summary.parentNode!==closedDetails){return false;}
if(summary===null){return false;}}
return elementIsVisible;};var isDisabled=function isDisabled(element){if(!element||element.nodeType!==Node.ELEMENT_NODE){return true;}
if(element.classList.contains('disabled')){return true;}
if(typeof element.disabled!=='undefined'){return element.disabled;}
return element.hasAttribute('disabled')&&element.getAttribute('disabled')!=='false';};var _findShadowRoot=function findShadowRoot(element){if(!document.documentElement.attachShadow){return null;}
if(typeof element.getRootNode==='function'){var root=element.getRootNode();return root instanceof ShadowRoot?root:null;}
if(element instanceof ShadowRoot){return element;}
if(!element.parentNode){return null;}
return _findShadowRoot(element.parentNode);};var noop=function noop(){};var reflow=function reflow(element){element.offsetHeight;};var getjQuery=function getjQuery(){if(window.jQuery&&!document.body.hasAttribute('data-bs-no-jquery')){return window.jQuery;}
return null;};var DOMContentLoadedCallbacks=[];var onDOMContentLoaded=function onDOMContentLoaded(callback){if(document.readyState==='loading'){if(!DOMContentLoadedCallbacks.length){document.addEventListener('DOMContentLoaded',function(){for(var _i2=0,_DOMContentLoadedCall=DOMContentLoadedCallbacks;_i2<_DOMContentLoadedCall.length;_i2++){var _callback=_DOMContentLoadedCall[_i2];_callback();}});}
DOMContentLoadedCallbacks.push(callback);}else{callback();}};var isRTL=function isRTL(){return document.documentElement.dir==='rtl';};var defineJQueryPlugin=function defineJQueryPlugin(plugin){onDOMContentLoaded(function(){var $=getjQuery();if($){var name=plugin.NAME;var JQUERY_NO_CONFLICT=$.fn[name];$.fn[name]=plugin.jQueryInterface;$.fn[name].Constructor=plugin;$.fn[name].noConflict=function(){$.fn[name]=JQUERY_NO_CONFLICT;return plugin.jQueryInterface;};}});};var execute=function execute(possibleCallback){var args=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var defaultValue=arguments.length>2&&arguments[2]!==undefined?arguments[2]:possibleCallback;return typeof possibleCallback==='function'?possibleCallback.apply(void 0,_toConsumableArray(args)):defaultValue;};var executeAfterTransition=function executeAfterTransition(callback,transitionElement){var waitForTransition=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;if(!waitForTransition){execute(callback);return;}
var durationPadding=5;var emulatedDuration=getTransitionDurationFromElement(transitionElement)+durationPadding;var called=false;var _handler=function handler(_ref6){var target=_ref6.target;if(target!==transitionElement){return;}
called=true;transitionElement.removeEventListener(TRANSITION_END,_handler);execute(callback);};transitionElement.addEventListener(TRANSITION_END,_handler);setTimeout(function(){if(!called){triggerTransitionEnd(transitionElement);}},emulatedDuration);};var getNextActiveElement=function getNextActiveElement(list,activeElement,shouldGetNext,isCycleAllowed){var listLength=list.length;var index=list.indexOf(activeElement);if(index===-1){return!shouldGetNext&&isCycleAllowed?list[listLength-1]:list[0];}
index+=shouldGetNext?1:-1;if(isCycleAllowed){index=(index+listLength)%listLength;}
return list[Math.max(0,Math.min(index,listLength-1))];};var namespaceRegex=/[^.]*(?=\..*)\.|.*/;var stripNameRegex=/\..*/;var stripUidRegex=/::\d+$/;var eventRegistry={};var uidEvent=1;var customEvents={mouseenter:'mouseover',mouseleave:'mouseout'};var nativeEvents=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 makeEventUid(element,uid){return uid&&"".concat(uid,"::").concat(uidEvent++)||element.uidEvent||uidEvent++;}
function getElementEvents(element){var uid=makeEventUid(element);element.uidEvent=uid;eventRegistry[uid]=eventRegistry[uid]||{};return eventRegistry[uid];}
function bootstrapHandler(element,fn){return function handler(event){hydrateObj(event,{delegateTarget:element});if(handler.oneOff){EventHandler.off(element,event.type,fn);}
return fn.apply(element,[event]);};}
function bootstrapDelegationHandler(element,selector,fn){return function handler(event){var domElements=element.querySelectorAll(selector);for(var target=event.target;target&&target!==this;target=target.parentNode){var _iterator=_createForOfIteratorHelper(domElements),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var domElement=_step.value;if(domElement!==target){continue;}
hydrateObj(event,{delegateTarget:target});if(handler.oneOff){EventHandler.off(element,event.type,selector,fn);}
return fn.apply(target,[event]);}}catch(err){_iterator.e(err);}finally{_iterator.f();}}};}
function findHandler(events,callable){var delegationSelector=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;return Object.values(events).find(function(event){return event.callable===callable&&event.delegationSelector===delegationSelector;});}
function normalizeParameters(originalTypeEvent,handler,delegationFunction){var isDelegated=typeof handler==='string';var callable=isDelegated?delegationFunction:handler||delegationFunction;var typeEvent=getTypeEvent(originalTypeEvent);if(!nativeEvents.has(typeEvent)){typeEvent=originalTypeEvent;}
return[isDelegated,callable,typeEvent];}
function addHandler(element,originalTypeEvent,handler,delegationFunction,oneOff){if(typeof originalTypeEvent!=='string'||!element){return;}
var _normalizeParameters=normalizeParameters(originalTypeEvent,handler,delegationFunction),_normalizeParameters2=_slicedToArray(_normalizeParameters,3),isDelegated=_normalizeParameters2[0],callable=_normalizeParameters2[1],typeEvent=_normalizeParameters2[2];if(originalTypeEvent in customEvents){var wrapFunction=function wrapFunction(fn){return function(event){if(!event.relatedTarget||event.relatedTarget!==event.delegateTarget&&!event.delegateTarget.contains(event.relatedTarget)){return fn.call(this,event);}};};callable=wrapFunction(callable);}
var events=getElementEvents(element);var handlers=events[typeEvent]||(events[typeEvent]={});var previousFunction=findHandler(handlers,callable,isDelegated?handler:null);if(previousFunction){previousFunction.oneOff=previousFunction.oneOff&&oneOff;return;}
var uid=makeEventUid(callable,originalTypeEvent.replace(namespaceRegex,''));var fn=isDelegated?bootstrapDelegationHandler(element,handler,callable):bootstrapHandler(element,callable);fn.delegationSelector=isDelegated?handler:null;fn.callable=callable;fn.oneOff=oneOff;fn.uidEvent=uid;handlers[uid]=fn;element.addEventListener(typeEvent,fn,isDelegated);}
function removeHandler(element,events,typeEvent,handler,delegationSelector){var fn=findHandler(events[typeEvent],handler,delegationSelector);if(!fn){return;}
element.removeEventListener(typeEvent,fn,Boolean(delegationSelector));delete events[typeEvent][fn.uidEvent];}
function removeNamespacedHandlers(element,events,typeEvent,namespace){var storeElementEvent=events[typeEvent]||{};for(var _i3=0,_Object$entries=Object.entries(storeElementEvent);_i3<_Object$entries.length;_i3++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i3],2),handlerKey=_Object$entries$_i[0],event=_Object$entries$_i[1];if(handlerKey.includes(namespace)){removeHandler(element,events,typeEvent,event.callable,event.delegationSelector);}}}
function getTypeEvent(event){event=event.replace(stripNameRegex,'');return customEvents[event]||event;}
var EventHandler={on:function on(element,event,handler,delegationFunction){addHandler(element,event,handler,delegationFunction,false);},one:function one(element,event,handler,delegationFunction){addHandler(element,event,handler,delegationFunction,true);},off:function off(element,originalTypeEvent,handler,delegationFunction){if(typeof originalTypeEvent!=='string'||!element){return;}
var _normalizeParameters3=normalizeParameters(originalTypeEvent,handler,delegationFunction),_normalizeParameters4=_slicedToArray(_normalizeParameters3,3),isDelegated=_normalizeParameters4[0],callable=_normalizeParameters4[1],typeEvent=_normalizeParameters4[2];var inNamespace=typeEvent!==originalTypeEvent;var events=getElementEvents(element);var storeElementEvent=events[typeEvent]||{};var isNamespace=originalTypeEvent.startsWith('.');if(typeof callable!=='undefined'){if(!Object.keys(storeElementEvent).length){return;}
removeHandler(element,events,typeEvent,callable,isDelegated?handler:null);return;}
if(isNamespace){for(var _i4=0,_Object$keys=Object.keys(events);_i4<_Object$keys.length;_i4++){var elementEvent=_Object$keys[_i4];removeNamespacedHandlers(element,events,elementEvent,originalTypeEvent.slice(1));}}
for(var _i5=0,_Object$entries2=Object.entries(storeElementEvent);_i5<_Object$entries2.length;_i5++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i5],2),keyHandlers=_Object$entries2$_i[0],event=_Object$entries2$_i[1];var handlerKey=keyHandlers.replace(stripUidRegex,'');if(!inNamespace||originalTypeEvent.includes(handlerKey)){removeHandler(element,events,typeEvent,event.callable,event.delegationSelector);}}},trigger:function trigger(element,event,args){if(typeof event!=='string'||!element){return null;}
var $=getjQuery();var typeEvent=getTypeEvent(event);var inNamespace=event!==typeEvent;var jQueryEvent=null;var bubbles=true;var nativeDispatch=true;var defaultPrevented=false;if(inNamespace&&$){jQueryEvent=$.Event(event,args);$(element).trigger(jQueryEvent);bubbles=!jQueryEvent.isPropagationStopped();nativeDispatch=!jQueryEvent.isImmediatePropagationStopped();defaultPrevented=jQueryEvent.isDefaultPrevented();}
var evt=hydrateObj(new Event(event,{bubbles:bubbles,cancelable:true}),args);if(defaultPrevented){evt.preventDefault();}
if(nativeDispatch){element.dispatchEvent(evt);}
if(evt.defaultPrevented&&jQueryEvent){jQueryEvent.preventDefault();}
return evt;}};function hydrateObj(obj){var meta=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var _loop2=function _loop2(){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i6],2),key=_Object$entries3$_i[0],value=_Object$entries3$_i[1];try{obj[key]=value;}catch(_unused){Object.defineProperty(obj,key,{configurable:true,get:function get(){return value;}});}};for(var _i6=0,_Object$entries3=Object.entries(meta);_i6<_Object$entries3.length;_i6++){_loop2();}
return obj;}
function normalizeData(value){if(value==='true'){return true;}
if(value==='false'){return false;}
if(value===Number(value).toString()){return Number(value);}
if(value===''||value==='null'){return null;}
if(typeof value!=='string'){return value;}
try{return JSON.parse(decodeURIComponent(value));}catch(_unused){return value;}}
function normalizeDataKey(key){return key.replace(/[A-Z]/g,function(chr){return"-".concat(chr.toLowerCase());});}
var Manipulator={setDataAttribute:function setDataAttribute(element,key,value){element.setAttribute("data-bs-".concat(normalizeDataKey(key)),value);},removeDataAttribute:function removeDataAttribute(element,key){element.removeAttribute("data-bs-".concat(normalizeDataKey(key)));},getDataAttributes:function getDataAttributes(element){if(!element){return{};}
var attributes={};var bsKeys=Object.keys(element.dataset).filter(function(key){return key.startsWith('bs')&&!key.startsWith('bsConfig');});var _iterator2=_createForOfIteratorHelper(bsKeys),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var key=_step2.value;var pureKey=key.replace(/^bs/,'');pureKey=pureKey.charAt(0).toLowerCase()+pureKey.slice(1,pureKey.length);attributes[pureKey]=normalizeData(element.dataset[key]);}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}
return attributes;},getDataAttribute:function getDataAttribute(element,key){return normalizeData(element.getAttribute("data-bs-".concat(normalizeDataKey(key))));}};var Config=function(){function Config(){_classCallCheck(this,Config);}
return _createClass(Config,[{key:"_getConfig",value:function _getConfig(config){config=this._mergeConfigObj(config);config=this._configAfterMerge(config);this._typeCheckConfig(config);return config;}},{key:"_configAfterMerge",value:function _configAfterMerge(config){return config;}},{key:"_mergeConfigObj",value:function _mergeConfigObj(config,element){var jsonConfig=isElement$1(element)?Manipulator.getDataAttribute(element,'config'):{};return _objectSpread(_objectSpread(_objectSpread(_objectSpread({},this.constructor.Default),_typeof(jsonConfig)==='object'?jsonConfig:{}),isElement$1(element)?Manipulator.getDataAttributes(element):{}),_typeof(config)==='object'?config:{});}},{key:"_typeCheckConfig",value:function _typeCheckConfig(config){var configTypes=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.constructor.DefaultType;for(var _i7=0,_Object$entries4=Object.entries(configTypes);_i7<_Object$entries4.length;_i7++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i7],2),property=_Object$entries4$_i[0],expectedTypes=_Object$entries4$_i[1];var value=config[property];var valueType=isElement$1(value)?'element':toType(value);if(!new RegExp(expectedTypes).test(valueType)){throw new TypeError("".concat(this.constructor.NAME.toUpperCase(),": Option \"").concat(property,"\" provided type \"").concat(valueType,"\" but expected type \"").concat(expectedTypes,"\"."));}}}}],[{key:"Default",get:function get(){return{};}},{key:"DefaultType",get:function get(){return{};}},{key:"NAME",get:function get(){throw new Error('You have to implement the static method "NAME", for each component!');}}]);}();var VERSION='5.3.2';var BaseComponent=function(_Config){function BaseComponent(element,config){var _this;_classCallCheck(this,BaseComponent);_this=_callSuper(this,BaseComponent);element=getElement(element);if(!element){return _possibleConstructorReturn(_this);}
_this._element=element;_this._config=_this._getConfig(config);Data.set(_this._element,_this.constructor.DATA_KEY,_this);return _this;}
_inherits(BaseComponent,_Config);return _createClass(BaseComponent,[{key:"dispose",value:function dispose(){Data.remove(this._element,this.constructor.DATA_KEY);EventHandler.off(this._element,this.constructor.EVENT_KEY);var _iterator3=_createForOfIteratorHelper(Object.getOwnPropertyNames(this)),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var propertyName=_step3.value;this[propertyName]=null;}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}},{key:"_queueCallback",value:function _queueCallback(callback,element){var isAnimated=arguments.length>2&&arguments[2]!==undefined?arguments[2]:true;executeAfterTransition(callback,element,isAnimated);}},{key:"_getConfig",value:function _getConfig(config){config=this._mergeConfigObj(config,this._element);config=this._configAfterMerge(config);this._typeCheckConfig(config);return config;}}],[{key:"getInstance",value:function getInstance(element){return Data.get(getElement(element),this.DATA_KEY);}},{key:"getOrCreateInstance",value:function getOrCreateInstance(element){var config=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return this.getInstance(element)||new this(element,_typeof(config)==='object'?config:null);}},{key:"VERSION",get:function get(){return VERSION;}},{key:"DATA_KEY",get:function get(){return"bs.".concat(this.NAME);}},{key:"EVENT_KEY",get:function get(){return".".concat(this.DATA_KEY);}},{key:"eventName",value:function eventName(name){return"".concat(name).concat(this.EVENT_KEY);}}]);}(Config);var getSelector=function getSelector(element){var selector=element.getAttribute('data-bs-target');if(!selector||selector==='#'){var hrefAttribute=element.getAttribute('href');if(!hrefAttribute||!hrefAttribute.includes('#')&&!hrefAttribute.startsWith('.')){return null;}
if(hrefAttribute.includes('#')&&!hrefAttribute.startsWith('#')){hrefAttribute="#".concat(hrefAttribute.split('#')[1]);}
selector=hrefAttribute&&hrefAttribute!=='#'?parseSelector(hrefAttribute.trim()):null;}
return selector;};var SelectorEngine={find:function find(selector){var _ref7;var element=arguments.length>1&&arguments[1]!==undefined?arguments[1]:document.documentElement;return(_ref7=[]).concat.apply(_ref7,_toConsumableArray(Element.prototype.querySelectorAll.call(element,selector)));},findOne:function findOne(selector){var element=arguments.length>1&&arguments[1]!==undefined?arguments[1]:document.documentElement;return Element.prototype.querySelector.call(element,selector);},children:function children(element,selector){var _ref8;return(_ref8=[]).concat.apply(_ref8,_toConsumableArray(element.children)).filter(function(child){return child.matches(selector);});},parents:function parents(element,selector){var parents=[];var ancestor=element.parentNode.closest(selector);while(ancestor){parents.push(ancestor);ancestor=ancestor.parentNode.closest(selector);}
return parents;},prev:function prev(element,selector){var previous=element.previousElementSibling;while(previous){if(previous.matches(selector)){return[previous];}
previous=previous.previousElementSibling;}
return[];},next:function next(element,selector){var next=element.nextElementSibling;while(next){if(next.matches(selector)){return[next];}
next=next.nextElementSibling;}
return[];},focusableChildren:function focusableChildren(element){var focusables=['a','button','input','textarea','select','details','[tabindex]','[contenteditable="true"]'].map(function(selector){return"".concat(selector,":not([tabindex^=\"-\"])");}).join(',');return this.find(focusables,element).filter(function(el){return!isDisabled(el)&&isVisible(el);});},getSelectorFromElement:function getSelectorFromElement(element){var selector=getSelector(element);if(selector){return SelectorEngine.findOne(selector)?selector:null;}
return null;},getElementFromSelector:function getElementFromSelector(element){var selector=getSelector(element);return selector?SelectorEngine.findOne(selector):null;},getMultipleElementsFromSelector:function getMultipleElementsFromSelector(element){var selector=getSelector(element);return selector?SelectorEngine.find(selector):[];}};var enableDismissTrigger=function enableDismissTrigger(component){var method=arguments.length>1&&arguments[1]!==undefined?arguments[1]:'hide';var clickEvent="click.dismiss".concat(component.EVENT_KEY);var name=component.NAME;EventHandler.on(document,clickEvent,"[data-bs-dismiss=\"".concat(name,"\"]"),function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
var target=SelectorEngine.getElementFromSelector(this)||this.closest(".".concat(name));var instance=component.getOrCreateInstance(target);instance[method]();});};var NAME$f='alert';var DATA_KEY$a='bs.alert';var EVENT_KEY$b=".".concat(DATA_KEY$a);var EVENT_CLOSE="close".concat(EVENT_KEY$b);var EVENT_CLOSED="closed".concat(EVENT_KEY$b);var CLASS_NAME_FADE$5='fade';var CLASS_NAME_SHOW$8='show';var Alert=function(_BaseComponent){function Alert(){_classCallCheck(this,Alert);return _callSuper(this,Alert,arguments);}
_inherits(Alert,_BaseComponent);return _createClass(Alert,[{key:"close",value:function close(){var _this2=this;var closeEvent=EventHandler.trigger(this._element,EVENT_CLOSE);if(closeEvent.defaultPrevented){return;}
this._element.classList.remove(CLASS_NAME_SHOW$8);var isAnimated=this._element.classList.contains(CLASS_NAME_FADE$5);this._queueCallback(function(){return _this2._destroyElement();},this._element,isAnimated);}},{key:"_destroyElement",value:function _destroyElement(){this._element.remove();EventHandler.trigger(this._element,EVENT_CLOSED);this.dispose();}}],[{key:"NAME",get:function get(){return NAME$f;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Alert.getOrCreateInstance(this);if(typeof config!=='string'){return;}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config](this);});}}]);}(BaseComponent);enableDismissTrigger(Alert,'close');defineJQueryPlugin(Alert);var NAME$e='button';var DATA_KEY$9='bs.button';var EVENT_KEY$a=".".concat(DATA_KEY$9);var DATA_API_KEY$6='.data-api';var CLASS_NAME_ACTIVE$3='active';var SELECTOR_DATA_TOGGLE$5='[data-bs-toggle="button"]';var EVENT_CLICK_DATA_API$6="click".concat(EVENT_KEY$a).concat(DATA_API_KEY$6);var Button=function(_BaseComponent2){function Button(){_classCallCheck(this,Button);return _callSuper(this,Button,arguments);}
_inherits(Button,_BaseComponent2);return _createClass(Button,[{key:"toggle",value:function toggle(){this._element.setAttribute('aria-pressed',this._element.classList.toggle(CLASS_NAME_ACTIVE$3));}}],[{key:"NAME",get:function get(){return NAME$e;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Button.getOrCreateInstance(this);if(config==='toggle'){data[config]();}});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API$6,SELECTOR_DATA_TOGGLE$5,function(event){event.preventDefault();var button=event.target.closest(SELECTOR_DATA_TOGGLE$5);var data=Button.getOrCreateInstance(button);data.toggle();});defineJQueryPlugin(Button);var NAME$d='swipe';var EVENT_KEY$9='.bs.swipe';var EVENT_TOUCHSTART="touchstart".concat(EVENT_KEY$9);var EVENT_TOUCHMOVE="touchmove".concat(EVENT_KEY$9);var EVENT_TOUCHEND="touchend".concat(EVENT_KEY$9);var EVENT_POINTERDOWN="pointerdown".concat(EVENT_KEY$9);var EVENT_POINTERUP="pointerup".concat(EVENT_KEY$9);var POINTER_TYPE_TOUCH='touch';var POINTER_TYPE_PEN='pen';var CLASS_NAME_POINTER_EVENT='pointer-event';var SWIPE_THRESHOLD=40;var Default$c={endCallback:null,leftCallback:null,rightCallback:null};var DefaultType$c={endCallback:'(function|null)',leftCallback:'(function|null)',rightCallback:'(function|null)'};var Swipe=function(_Config2){function Swipe(element,config){var _this3;_classCallCheck(this,Swipe);_this3=_callSuper(this,Swipe);_this3._element=element;if(!element||!Swipe.isSupported()){return _possibleConstructorReturn(_this3);}
_this3._config=_this3._getConfig(config);_this3._deltaX=0;_this3._supportPointerEvents=Boolean(window.PointerEvent);_this3._initEvents();return _this3;}
_inherits(Swipe,_Config2);return _createClass(Swipe,[{key:"dispose",value:function dispose(){EventHandler.off(this._element,EVENT_KEY$9);}},{key:"_start",value:function _start(event){if(!this._supportPointerEvents){this._deltaX=event.touches[0].clientX;return;}
if(this._eventIsPointerPenTouch(event)){this._deltaX=event.clientX;}}},{key:"_end",value:function _end(event){if(this._eventIsPointerPenTouch(event)){this._deltaX=event.clientX-this._deltaX;}
this._handleSwipe();execute(this._config.endCallback);}},{key:"_move",value:function _move(event){this._deltaX=event.touches&&event.touches.length>1?0:event.touches[0].clientX-this._deltaX;}},{key:"_handleSwipe",value:function _handleSwipe(){var absDeltaX=Math.abs(this._deltaX);if(absDeltaX<=SWIPE_THRESHOLD){return;}
var direction=absDeltaX/this._deltaX;this._deltaX=0;if(!direction){return;}
execute(direction>0?this._config.rightCallback:this._config.leftCallback);}},{key:"_initEvents",value:function _initEvents(){var _this4=this;if(this._supportPointerEvents){EventHandler.on(this._element,EVENT_POINTERDOWN,function(event){return _this4._start(event);});EventHandler.on(this._element,EVENT_POINTERUP,function(event){return _this4._end(event);});this._element.classList.add(CLASS_NAME_POINTER_EVENT);}else{EventHandler.on(this._element,EVENT_TOUCHSTART,function(event){return _this4._start(event);});EventHandler.on(this._element,EVENT_TOUCHMOVE,function(event){return _this4._move(event);});EventHandler.on(this._element,EVENT_TOUCHEND,function(event){return _this4._end(event);});}}},{key:"_eventIsPointerPenTouch",value:function _eventIsPointerPenTouch(event){return this._supportPointerEvents&&(event.pointerType===POINTER_TYPE_PEN||event.pointerType===POINTER_TYPE_TOUCH);}}],[{key:"Default",get:function get(){return Default$c;}},{key:"DefaultType",get:function get(){return DefaultType$c;}},{key:"NAME",get:function get(){return NAME$d;}},{key:"isSupported",value:function isSupported(){return'ontouchstart' in document.documentElement||navigator.maxTouchPoints>0;}}]);}(Config);var NAME$c='carousel';var DATA_KEY$8='bs.carousel';var EVENT_KEY$8=".".concat(DATA_KEY$8);var DATA_API_KEY$5='.data-api';var ARROW_LEFT_KEY$1='ArrowLeft';var ARROW_RIGHT_KEY$1='ArrowRight';var TOUCHEVENT_COMPAT_WAIT=500;var ORDER_NEXT='next';var ORDER_PREV='prev';var DIRECTION_LEFT='left';var DIRECTION_RIGHT='right';var EVENT_SLIDE="slide".concat(EVENT_KEY$8);var EVENT_SLID="slid".concat(EVENT_KEY$8);var EVENT_KEYDOWN$1="keydown".concat(EVENT_KEY$8);var EVENT_MOUSEENTER$1="mouseenter".concat(EVENT_KEY$8);var EVENT_MOUSELEAVE$1="mouseleave".concat(EVENT_KEY$8);var EVENT_DRAG_START="dragstart".concat(EVENT_KEY$8);var EVENT_LOAD_DATA_API$3="load".concat(EVENT_KEY$8).concat(DATA_API_KEY$5);var EVENT_CLICK_DATA_API$5="click".concat(EVENT_KEY$8).concat(DATA_API_KEY$5);var CLASS_NAME_CAROUSEL='carousel';var CLASS_NAME_ACTIVE$2='active';var CLASS_NAME_SLIDE='slide';var CLASS_NAME_END='carousel-item-end';var CLASS_NAME_START='carousel-item-start';var CLASS_NAME_NEXT='carousel-item-next';var CLASS_NAME_PREV='carousel-item-prev';var SELECTOR_ACTIVE='.active';var SELECTOR_ITEM='.carousel-item';var SELECTOR_ACTIVE_ITEM=SELECTOR_ACTIVE+SELECTOR_ITEM;var SELECTOR_ITEM_IMG='.carousel-item img';var SELECTOR_INDICATORS='.carousel-indicators';var SELECTOR_DATA_SLIDE='[data-bs-slide], [data-bs-slide-to]';var SELECTOR_DATA_RIDE='[data-bs-ride="carousel"]';var KEY_TO_DIRECTION=_defineProperty(_defineProperty({},ARROW_LEFT_KEY$1,DIRECTION_RIGHT),ARROW_RIGHT_KEY$1,DIRECTION_LEFT);var Default$b={interval:5000,keyboard:true,pause:'hover',ride:false,touch:true,wrap:true};var DefaultType$b={interval:'(number|boolean)',keyboard:'boolean',pause:'(string|boolean)',ride:'(boolean|string)',touch:'boolean',wrap:'boolean'};var Carousel=function(_BaseComponent3){function Carousel(element,config){var _this5;_classCallCheck(this,Carousel);_this5=_callSuper(this,Carousel,[element,config]);_this5._interval=null;_this5._activeElement=null;_this5._isSliding=false;_this5.touchTimeout=null;_this5._swipeHelper=null;_this5._indicatorsElement=SelectorEngine.findOne(SELECTOR_INDICATORS,_this5._element);_this5._addEventListeners();if(_this5._config.ride===CLASS_NAME_CAROUSEL){_this5.cycle();}
return _this5;}
_inherits(Carousel,_BaseComponent3);return _createClass(Carousel,[{key:"next",value:function next(){this._slide(ORDER_NEXT);}},{key:"nextWhenVisible",value:function nextWhenVisible(){if(!document.hidden&&isVisible(this._element)){this.next();}}},{key:"prev",value:function prev(){this._slide(ORDER_PREV);}},{key:"pause",value:function pause(){if(this._isSliding){triggerTransitionEnd(this._element);}
this._clearInterval();}},{key:"cycle",value:function cycle(){var _this6=this;this._clearInterval();this._updateInterval();this._interval=setInterval(function(){return _this6.nextWhenVisible();},this._config.interval);}},{key:"_maybeEnableCycle",value:function _maybeEnableCycle(){var _this7=this;if(!this._config.ride){return;}
if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,function(){return _this7.cycle();});return;}
this.cycle();}},{key:"to",value:function to(index){var _this8=this;var items=this._getItems();if(index>items.length-1||index<0){return;}
if(this._isSliding){EventHandler.one(this._element,EVENT_SLID,function(){return _this8.to(index);});return;}
var activeIndex=this._getItemIndex(this._getActive());if(activeIndex===index){return;}
var order=index>activeIndex?ORDER_NEXT:ORDER_PREV;this._slide(order,items[index]);}},{key:"dispose",value:function dispose(){if(this._swipeHelper){this._swipeHelper.dispose();}
_superPropGet(Carousel,"dispose",this,3)([]);}},{key:"_configAfterMerge",value:function _configAfterMerge(config){config.defaultInterval=config.interval;return config;}},{key:"_addEventListeners",value:function _addEventListeners(){var _this9=this;if(this._config.keyboard){EventHandler.on(this._element,EVENT_KEYDOWN$1,function(event){return _this9._keydown(event);});}
if(this._config.pause==='hover'){EventHandler.on(this._element,EVENT_MOUSEENTER$1,function(){return _this9.pause();});EventHandler.on(this._element,EVENT_MOUSELEAVE$1,function(){return _this9._maybeEnableCycle();});}
if(this._config.touch&&Swipe.isSupported()){this._addTouchEventListeners();}}},{key:"_addTouchEventListeners",value:function _addTouchEventListeners(){var _this10=this;var _iterator4=_createForOfIteratorHelper(SelectorEngine.find(SELECTOR_ITEM_IMG,this._element)),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var img=_step4.value;EventHandler.on(img,EVENT_DRAG_START,function(event){return event.preventDefault();});}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}
var endCallBack=function endCallBack(){if(_this10._config.pause!=='hover'){return;}
_this10.pause();if(_this10.touchTimeout){clearTimeout(_this10.touchTimeout);}
_this10.touchTimeout=setTimeout(function(){return _this10._maybeEnableCycle();},TOUCHEVENT_COMPAT_WAIT+_this10._config.interval);};var swipeConfig={leftCallback:function leftCallback(){return _this10._slide(_this10._directionToOrder(DIRECTION_LEFT));},rightCallback:function rightCallback(){return _this10._slide(_this10._directionToOrder(DIRECTION_RIGHT));},endCallback:endCallBack};this._swipeHelper=new Swipe(this._element,swipeConfig);}},{key:"_keydown",value:function _keydown(event){if(/input|textarea/i.test(event.target.tagName)){return;}
var direction=KEY_TO_DIRECTION[event.key];if(direction){event.preventDefault();this._slide(this._directionToOrder(direction));}}},{key:"_getItemIndex",value:function _getItemIndex(element){return this._getItems().indexOf(element);}},{key:"_setActiveIndicatorElement",value:function _setActiveIndicatorElement(index){if(!this._indicatorsElement){return;}
var activeIndicator=SelectorEngine.findOne(SELECTOR_ACTIVE,this._indicatorsElement);activeIndicator.classList.remove(CLASS_NAME_ACTIVE$2);activeIndicator.removeAttribute('aria-current');var newActiveIndicator=SelectorEngine.findOne("[data-bs-slide-to=\"".concat(index,"\"]"),this._indicatorsElement);if(newActiveIndicator){newActiveIndicator.classList.add(CLASS_NAME_ACTIVE$2);newActiveIndicator.setAttribute('aria-current','true');}}},{key:"_updateInterval",value:function _updateInterval(){var element=this._activeElement||this._getActive();if(!element){return;}
var elementInterval=Number.parseInt(element.getAttribute('data-bs-interval'),10);this._config.interval=elementInterval||this._config.defaultInterval;}},{key:"_slide",value:function _slide(order){var _this11=this;var element=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;if(this._isSliding){return;}
var activeElement=this._getActive();var isNext=order===ORDER_NEXT;var nextElement=element||getNextActiveElement(this._getItems(),activeElement,isNext,this._config.wrap);if(nextElement===activeElement){return;}
var nextElementIndex=this._getItemIndex(nextElement);var triggerEvent=function triggerEvent(eventName){return EventHandler.trigger(_this11._element,eventName,{relatedTarget:nextElement,direction:_this11._orderToDirection(order),from:_this11._getItemIndex(activeElement),to:nextElementIndex});};var slideEvent=triggerEvent(EVENT_SLIDE);if(slideEvent.defaultPrevented){return;}
if(!activeElement||!nextElement){return;}
var isCycling=Boolean(this._interval);this.pause();this._isSliding=true;this._setActiveIndicatorElement(nextElementIndex);this._activeElement=nextElement;var directionalClassName=isNext?CLASS_NAME_START:CLASS_NAME_END;var orderClassName=isNext?CLASS_NAME_NEXT:CLASS_NAME_PREV;nextElement.classList.add(orderClassName);reflow(nextElement);activeElement.classList.add(directionalClassName);nextElement.classList.add(directionalClassName);var completeCallBack=function completeCallBack(){nextElement.classList.remove(directionalClassName,orderClassName);nextElement.classList.add(CLASS_NAME_ACTIVE$2);activeElement.classList.remove(CLASS_NAME_ACTIVE$2,orderClassName,directionalClassName);_this11._isSliding=false;triggerEvent(EVENT_SLID);};this._queueCallback(completeCallBack,activeElement,this._isAnimated());if(isCycling){this.cycle();}}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains(CLASS_NAME_SLIDE);}},{key:"_getActive",value:function _getActive(){return SelectorEngine.findOne(SELECTOR_ACTIVE_ITEM,this._element);}},{key:"_getItems",value:function _getItems(){return SelectorEngine.find(SELECTOR_ITEM,this._element);}},{key:"_clearInterval",value:function _clearInterval(){if(this._interval){clearInterval(this._interval);this._interval=null;}}},{key:"_directionToOrder",value:function _directionToOrder(direction){if(isRTL()){return direction===DIRECTION_LEFT?ORDER_PREV:ORDER_NEXT;}
return direction===DIRECTION_LEFT?ORDER_NEXT:ORDER_PREV;}},{key:"_orderToDirection",value:function _orderToDirection(order){if(isRTL()){return order===ORDER_PREV?DIRECTION_LEFT:DIRECTION_RIGHT;}
return order===ORDER_PREV?DIRECTION_RIGHT:DIRECTION_LEFT;}}],[{key:"Default",get:function get(){return Default$b;}},{key:"DefaultType",get:function get(){return DefaultType$b;}},{key:"NAME",get:function get(){return NAME$c;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Carousel.getOrCreateInstance(this,config);if(typeof config==='number'){data.to(config);return;}
if(typeof config==='string'){if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();}});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API$5,SELECTOR_DATA_SLIDE,function(event){var target=SelectorEngine.getElementFromSelector(this);if(!target||!target.classList.contains(CLASS_NAME_CAROUSEL)){return;}
event.preventDefault();var carousel=Carousel.getOrCreateInstance(target);var slideIndex=this.getAttribute('data-bs-slide-to');if(slideIndex){carousel.to(slideIndex);carousel._maybeEnableCycle();return;}
if(Manipulator.getDataAttribute(this,'slide')==='next'){carousel.next();carousel._maybeEnableCycle();return;}
carousel.prev();carousel._maybeEnableCycle();});EventHandler.on(window,EVENT_LOAD_DATA_API$3,function(){var carousels=SelectorEngine.find(SELECTOR_DATA_RIDE);var _iterator5=_createForOfIteratorHelper(carousels),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var carousel=_step5.value;Carousel.getOrCreateInstance(carousel);}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}});defineJQueryPlugin(Carousel);var NAME$b='collapse';var DATA_KEY$7='bs.collapse';var EVENT_KEY$7=".".concat(DATA_KEY$7);var DATA_API_KEY$4='.data-api';var EVENT_SHOW$6="show".concat(EVENT_KEY$7);var EVENT_SHOWN$6="shown".concat(EVENT_KEY$7);var EVENT_HIDE$6="hide".concat(EVENT_KEY$7);var EVENT_HIDDEN$6="hidden".concat(EVENT_KEY$7);var EVENT_CLICK_DATA_API$4="click".concat(EVENT_KEY$7).concat(DATA_API_KEY$4);var CLASS_NAME_SHOW$7='show';var CLASS_NAME_COLLAPSE='collapse';var CLASS_NAME_COLLAPSING='collapsing';var CLASS_NAME_COLLAPSED='collapsed';var CLASS_NAME_DEEPER_CHILDREN=":scope .".concat(CLASS_NAME_COLLAPSE," .").concat(CLASS_NAME_COLLAPSE);var CLASS_NAME_HORIZONTAL='collapse-horizontal';var WIDTH='width';var HEIGHT='height';var SELECTOR_ACTIVES='.collapse.show, .collapse.collapsing';var SELECTOR_DATA_TOGGLE$4='[data-bs-toggle="collapse"]';var Default$a={parent:null,toggle:true};var DefaultType$a={parent:'(null|element)',toggle:'boolean'};var Collapse=function(_BaseComponent4){function Collapse(element,config){var _this12;_classCallCheck(this,Collapse);_this12=_callSuper(this,Collapse,[element,config]);_this12._isTransitioning=false;_this12._triggerArray=[];var toggleList=SelectorEngine.find(SELECTOR_DATA_TOGGLE$4);var _iterator6=_createForOfIteratorHelper(toggleList),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var elem=_step6.value;var selector=SelectorEngine.getSelectorFromElement(elem);var filterElement=SelectorEngine.find(selector).filter(function(foundElement){return foundElement===_this12._element;});if(selector!==null&&filterElement.length){_this12._triggerArray.push(elem);}}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}
_this12._initializeChildren();if(!_this12._config.parent){_this12._addAriaAndCollapsedClass(_this12._triggerArray,_this12._isShown());}
if(_this12._config.toggle){_this12.toggle();}
return _this12;}
_inherits(Collapse,_BaseComponent4);return _createClass(Collapse,[{key:"toggle",value:function toggle(){if(this._isShown()){this.hide();}else{this.show();}}},{key:"show",value:function show(){var _this13=this;if(this._isTransitioning||this._isShown()){return;}
var activeChildren=[];if(this._config.parent){activeChildren=this._getFirstLevelChildren(SELECTOR_ACTIVES).filter(function(element){return element!==_this13._element;}).map(function(element){return Collapse.getOrCreateInstance(element,{toggle:false});});}
if(activeChildren.length&&activeChildren[0]._isTransitioning){return;}
var startEvent=EventHandler.trigger(this._element,EVENT_SHOW$6);if(startEvent.defaultPrevented){return;}
var _iterator7=_createForOfIteratorHelper(activeChildren),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var activeInstance=_step7.value;activeInstance.hide();}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}
var dimension=this._getDimension();this._element.classList.remove(CLASS_NAME_COLLAPSE);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.style[dimension]=0;this._addAriaAndCollapsedClass(this._triggerArray,true);this._isTransitioning=true;var complete=function complete(){_this13._isTransitioning=false;_this13._element.classList.remove(CLASS_NAME_COLLAPSING);_this13._element.classList.add(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);_this13._element.style[dimension]='';EventHandler.trigger(_this13._element,EVENT_SHOWN$6);};var capitalizedDimension=dimension[0].toUpperCase()+dimension.slice(1);var scrollSize="scroll".concat(capitalizedDimension);this._queueCallback(complete,this._element,true);this._element.style[dimension]="".concat(this._element[scrollSize],"px");}},{key:"hide",value:function hide(){var _this14=this;if(this._isTransitioning||!this._isShown()){return;}
var startEvent=EventHandler.trigger(this._element,EVENT_HIDE$6);if(startEvent.defaultPrevented){return;}
var dimension=this._getDimension();this._element.style[dimension]="".concat(this._element.getBoundingClientRect()[dimension],"px");reflow(this._element);this._element.classList.add(CLASS_NAME_COLLAPSING);this._element.classList.remove(CLASS_NAME_COLLAPSE,CLASS_NAME_SHOW$7);var _iterator8=_createForOfIteratorHelper(this._triggerArray),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var trigger=_step8.value;var element=SelectorEngine.getElementFromSelector(trigger);if(element&&!this._isShown(element)){this._addAriaAndCollapsedClass([trigger],false);}}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}
this._isTransitioning=true;var complete=function complete(){_this14._isTransitioning=false;_this14._element.classList.remove(CLASS_NAME_COLLAPSING);_this14._element.classList.add(CLASS_NAME_COLLAPSE);EventHandler.trigger(_this14._element,EVENT_HIDDEN$6);};this._element.style[dimension]='';this._queueCallback(complete,this._element,true);}},{key:"_isShown",value:function _isShown(){var element=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._element;return element.classList.contains(CLASS_NAME_SHOW$7);}},{key:"_configAfterMerge",value:function _configAfterMerge(config){config.toggle=Boolean(config.toggle);config.parent=getElement(config.parent);return config;}},{key:"_getDimension",value:function _getDimension(){return this._element.classList.contains(CLASS_NAME_HORIZONTAL)?WIDTH:HEIGHT;}},{key:"_initializeChildren",value:function _initializeChildren(){if(!this._config.parent){return;}
var children=this._getFirstLevelChildren(SELECTOR_DATA_TOGGLE$4);var _iterator9=_createForOfIteratorHelper(children),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var element=_step9.value;var selected=SelectorEngine.getElementFromSelector(element);if(selected){this._addAriaAndCollapsedClass([element],this._isShown(selected));}}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}}},{key:"_getFirstLevelChildren",value:function _getFirstLevelChildren(selector){var children=SelectorEngine.find(CLASS_NAME_DEEPER_CHILDREN,this._config.parent);return SelectorEngine.find(selector,this._config.parent).filter(function(element){return!children.includes(element);});}},{key:"_addAriaAndCollapsedClass",value:function _addAriaAndCollapsedClass(triggerArray,isOpen){if(!triggerArray.length){return;}
var _iterator10=_createForOfIteratorHelper(triggerArray),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var element=_step10.value;element.classList.toggle(CLASS_NAME_COLLAPSED,!isOpen);element.setAttribute('aria-expanded',isOpen);}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}}}],[{key:"Default",get:function get(){return Default$a;}},{key:"DefaultType",get:function get(){return DefaultType$a;}},{key:"NAME",get:function get(){return NAME$b;}},{key:"jQueryInterface",value:function jQueryInterface(config){var _config={};if(typeof config==='string'&&/show|hide/.test(config)){_config.toggle=false;}
return this.each(function(){var data=Collapse.getOrCreateInstance(this,_config);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();}});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API$4,SELECTOR_DATA_TOGGLE$4,function(event){if(event.target.tagName==='A'||event.delegateTarget&&event.delegateTarget.tagName==='A'){event.preventDefault();}
var _iterator11=_createForOfIteratorHelper(SelectorEngine.getMultipleElementsFromSelector(this)),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var element=_step11.value;Collapse.getOrCreateInstance(element,{toggle:false}).toggle();}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}});defineJQueryPlugin(Collapse);var top='top';var bottom='bottom';var right='right';var left='left';var auto='auto';var basePlacements=[top,bottom,right,left];var start='start';var end='end';var clippingParents='clippingParents';var viewport='viewport';var popper='popper';var reference='reference';var variationPlacements=basePlacements.reduce(function(acc,placement){return acc.concat([placement+"-"+start,placement+"-"+end]);},[]);var placements=[].concat(basePlacements,[auto]).reduce(function(acc,placement){return acc.concat([placement,placement+"-"+start,placement+"-"+end]);},[]);var beforeRead='beforeRead';var read='read';var afterRead='afterRead';var beforeMain='beforeMain';var main='main';var afterMain='afterMain';var beforeWrite='beforeWrite';var write='write';var afterWrite='afterWrite';var modifierPhases=[beforeRead,read,afterRead,beforeMain,main,afterMain,beforeWrite,write,afterWrite];function getNodeName(element){return element?(element.nodeName||'').toLowerCase():null;}
function getWindow(node){if(node==null){return window;}
if(node.toString()!=='[object Window]'){var ownerDocument=node.ownerDocument;return ownerDocument?ownerDocument.defaultView||window:window;}
return node;}
function isElement(node){var OwnElement=getWindow(node).Element;return node instanceof OwnElement||node instanceof Element;}
function isHTMLElement(node){var OwnElement=getWindow(node).HTMLElement;return node instanceof OwnElement||node instanceof HTMLElement;}
function isShadowRoot(node){if(typeof ShadowRoot==='undefined'){return false;}
var OwnElement=getWindow(node).ShadowRoot;return node instanceof OwnElement||node instanceof ShadowRoot;}
function applyStyles(_ref){var state=_ref.state;Object.keys(state.elements).forEach(function(name){var style=state.styles[name]||{};var attributes=state.attributes[name]||{};var element=state.elements[name];if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(name){var value=attributes[name];if(value===false){element.removeAttribute(name);}else{element.setAttribute(name,value===true?'':value);}});});}
function effect$2(_ref2){var state=_ref2.state;var initialStyles={popper:{position:state.options.strategy,left:'0',top:'0',margin:'0'},arrow:{position:'absolute'},reference:{}};Object.assign(state.elements.popper.style,initialStyles.popper);state.styles=initialStyles;if(state.elements.arrow){Object.assign(state.elements.arrow.style,initialStyles.arrow);}
return function(){Object.keys(state.elements).forEach(function(name){var element=state.elements[name];var attributes=state.attributes[name]||{};var styleProperties=Object.keys(state.styles.hasOwnProperty(name)?state.styles[name]:initialStyles[name]);var style=styleProperties.reduce(function(style,property){style[property]='';return style;},{});if(!isHTMLElement(element)||!getNodeName(element)){return;}
Object.assign(element.style,style);Object.keys(attributes).forEach(function(attribute){element.removeAttribute(attribute);});});};}
var applyStyles$1={name:'applyStyles',enabled:true,phase:'write',fn:applyStyles,effect:effect$2,requires:['computeStyles']};function getBasePlacement(placement){return placement.split('-')[0];}
var max=Math.max;var min=Math.min;var round=Math.round;function getUAString(){var uaData=navigator.userAgentData;if(uaData!=null&&uaData.brands&&Array.isArray(uaData.brands)){return uaData.brands.map(function(item){return item.brand+"/"+item.version;}).join(' ');}
return navigator.userAgent;}
function isLayoutViewport(){return!/^((?!chrome|android).)*safari/i.test(getUAString());}
function getBoundingClientRect(element,includeScale,isFixedStrategy){if(includeScale===void 0){includeScale=false;}
if(isFixedStrategy===void 0){isFixedStrategy=false;}
var clientRect=element.getBoundingClientRect();var scaleX=1;var scaleY=1;if(includeScale&&isHTMLElement(element)){scaleX=element.offsetWidth>0?round(clientRect.width)/element.offsetWidth||1:1;scaleY=element.offsetHeight>0?round(clientRect.height)/element.offsetHeight||1:1;}
var _ref=isElement(element)?getWindow(element):window,visualViewport=_ref.visualViewport;var addVisualOffsets=!isLayoutViewport()&&isFixedStrategy;var x=(clientRect.left+(addVisualOffsets&&visualViewport?visualViewport.offsetLeft:0))/scaleX;var y=(clientRect.top+(addVisualOffsets&&visualViewport?visualViewport.offsetTop:0))/scaleY;var width=clientRect.width/scaleX;var height=clientRect.height/scaleY;return{width:width,height:height,top:y,right:x+width,bottom:y+height,left:x,x:x,y:y};}
function getLayoutRect(element){var clientRect=getBoundingClientRect(element);var width=element.offsetWidth;var height=element.offsetHeight;if(Math.abs(clientRect.width-width)<=1){width=clientRect.width;}
if(Math.abs(clientRect.height-height)<=1){height=clientRect.height;}
return{x:element.offsetLeft,y:element.offsetTop,width:width,height:height};}
function contains(parent,child){var rootNode=child.getRootNode&&child.getRootNode();if(parent.contains(child)){return true;}
else if(rootNode&&isShadowRoot(rootNode)){var next=child;do{if(next&&parent.isSameNode(next)){return true;}
next=next.parentNode||next.host;}while(next);}
return false;}
function getComputedStyle$1(element){return getWindow(element).getComputedStyle(element);}
function isTableElement(element){return['table','td','th'].indexOf(getNodeName(element))>=0;}
function getDocumentElement(element){return((isElement(element)?element.ownerDocument:element.document)||window.document).documentElement;}
function getParentNode(element){if(getNodeName(element)==='html'){return element;}
return(element.assignedSlot||element.parentNode||(isShadowRoot(element)?element.host:null)||getDocumentElement(element));}
function getTrueOffsetParent(element){if(!isHTMLElement(element)||getComputedStyle$1(element).position==='fixed'){return null;}
return element.offsetParent;}
function getContainingBlock(element){var isFirefox=/firefox/i.test(getUAString());var isIE=/Trident/i.test(getUAString());if(isIE&&isHTMLElement(element)){var elementCss=getComputedStyle$1(element);if(elementCss.position==='fixed'){return null;}}
var currentNode=getParentNode(element);if(isShadowRoot(currentNode)){currentNode=currentNode.host;}
while(isHTMLElement(currentNode)&&['html','body'].indexOf(getNodeName(currentNode))<0){var css=getComputedStyle$1(currentNode);if(css.transform!=='none'||css.perspective!=='none'||css.contain==='paint'||['transform','perspective'].indexOf(css.willChange)!==-1||isFirefox&&css.willChange==='filter'||isFirefox&&css.filter&&css.filter!=='none'){return currentNode;}else{currentNode=currentNode.parentNode;}}
return null;}
function getOffsetParent(element){var window=getWindow(element);var offsetParent=getTrueOffsetParent(element);while(offsetParent&&isTableElement(offsetParent)&&getComputedStyle$1(offsetParent).position==='static'){offsetParent=getTrueOffsetParent(offsetParent);}
if(offsetParent&&(getNodeName(offsetParent)==='html'||getNodeName(offsetParent)==='body'&&getComputedStyle$1(offsetParent).position==='static')){return window;}
return offsetParent||getContainingBlock(element)||window;}
function getMainAxisFromPlacement(placement){return['top','bottom'].indexOf(placement)>=0?'x':'y';}
function within(min$1,value,max$1){return max(min$1,min(value,max$1));}
function withinMaxClamp(min,value,max){var v=within(min,value,max);return v>max?max:v;}
function getFreshSideObject(){return{top:0,right:0,bottom:0,left:0};}
function mergePaddingObject(paddingObject){return Object.assign({},getFreshSideObject(),paddingObject);}
function expandToHashMap(value,keys){return keys.reduce(function(hashMap,key){hashMap[key]=value;return hashMap;},{});}
var toPaddingObject=function toPaddingObject(padding,state){padding=typeof padding==='function'?padding(Object.assign({},state.rects,{placement:state.placement})):padding;return mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));};function arrow(_ref){var _state$modifiersData$;var state=_ref.state,name=_ref.name,options=_ref.options;var arrowElement=state.elements.arrow;var popperOffsets=state.modifiersData.popperOffsets;var basePlacement=getBasePlacement(state.placement);var axis=getMainAxisFromPlacement(basePlacement);var isVertical=[left,right].indexOf(basePlacement)>=0;var len=isVertical?'height':'width';if(!arrowElement||!popperOffsets){return;}
var paddingObject=toPaddingObject(options.padding,state);var arrowRect=getLayoutRect(arrowElement);var minProp=axis==='y'?top:left;var maxProp=axis==='y'?bottom:right;var endDiff=state.rects.reference[len]+state.rects.reference[axis]-popperOffsets[axis]-state.rects.popper[len];var startDiff=popperOffsets[axis]-state.rects.reference[axis];var arrowOffsetParent=getOffsetParent(arrowElement);var clientSize=arrowOffsetParent?axis==='y'?arrowOffsetParent.clientHeight||0:arrowOffsetParent.clientWidth||0:0;var centerToReference=endDiff/2-startDiff/2;var min=paddingObject[minProp];var max=clientSize-arrowRect[len]-paddingObject[maxProp];var center=clientSize/2-arrowRect[len]/2+centerToReference;var offset=within(min,center,max);var axisProp=axis;state.modifiersData[name]=(_state$modifiersData$={},_state$modifiersData$[axisProp]=offset,_state$modifiersData$.centerOffset=offset-center,_state$modifiersData$);}
function effect$1(_ref2){var state=_ref2.state,options=_ref2.options;var _options$element=options.element,arrowElement=_options$element===void 0?'[data-popper-arrow]':_options$element;if(arrowElement==null){return;}
if(typeof arrowElement==='string'){arrowElement=state.elements.popper.querySelector(arrowElement);if(!arrowElement){return;}}
if(!contains(state.elements.popper,arrowElement)){return;}
state.elements.arrow=arrowElement;}
var arrow$1={name:'arrow',enabled:true,phase:'main',fn:arrow,effect:effect$1,requires:['popperOffsets'],requiresIfExists:['preventOverflow']};function getVariation(placement){return placement.split('-')[1];}
var unsetSides={top:'auto',right:'auto',bottom:'auto',left:'auto'};function roundOffsetsByDPR(_ref,win){var x=_ref.x,y=_ref.y;var dpr=win.devicePixelRatio||1;return{x:round(x*dpr)/dpr||0,y:round(y*dpr)/dpr||0};}
function mapToStyles(_ref2){var _Object$assign2;var popper=_ref2.popper,popperRect=_ref2.popperRect,placement=_ref2.placement,variation=_ref2.variation,offsets=_ref2.offsets,position=_ref2.position,gpuAcceleration=_ref2.gpuAcceleration,adaptive=_ref2.adaptive,roundOffsets=_ref2.roundOffsets,isFixed=_ref2.isFixed;var _offsets$x=offsets.x,x=_offsets$x===void 0?0:_offsets$x,_offsets$y=offsets.y,y=_offsets$y===void 0?0:_offsets$y;var _ref3=typeof roundOffsets==='function'?roundOffsets({x:x,y:y}):{x:x,y:y};x=_ref3.x;y=_ref3.y;var hasX=offsets.hasOwnProperty('x');var hasY=offsets.hasOwnProperty('y');var sideX=left;var sideY=top;var win=window;if(adaptive){var offsetParent=getOffsetParent(popper);var heightProp='clientHeight';var widthProp='clientWidth';if(offsetParent===getWindow(popper)){offsetParent=getDocumentElement(popper);if(getComputedStyle$1(offsetParent).position!=='static'&&position==='absolute'){heightProp='scrollHeight';widthProp='scrollWidth';}}
offsetParent=offsetParent;if(placement===top||(placement===left||placement===right)&&variation===end){sideY=bottom;var offsetY=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.height:offsetParent[heightProp];y-=offsetY-popperRect.height;y*=gpuAcceleration?1:-1;}
if(placement===left||(placement===top||placement===bottom)&&variation===end){sideX=right;var offsetX=isFixed&&offsetParent===win&&win.visualViewport?win.visualViewport.width:offsetParent[widthProp];x-=offsetX-popperRect.width;x*=gpuAcceleration?1:-1;}}
var commonStyles=Object.assign({position:position},adaptive&&unsetSides);var _ref4=roundOffsets===true?roundOffsetsByDPR({x:x,y:y},getWindow(popper)):{x:x,y:y};x=_ref4.x;y=_ref4.y;if(gpuAcceleration){var _Object$assign;return Object.assign({},commonStyles,(_Object$assign={},_Object$assign[sideY]=hasY?'0':'',_Object$assign[sideX]=hasX?'0':'',_Object$assign.transform=(win.devicePixelRatio||1)<=1?"translate("+x+"px, "+y+"px)":"translate3d("+x+"px, "+y+"px, 0)",_Object$assign));}
return Object.assign({},commonStyles,(_Object$assign2={},_Object$assign2[sideY]=hasY?y+"px":'',_Object$assign2[sideX]=hasX?x+"px":'',_Object$assign2.transform='',_Object$assign2));}
function computeStyles(_ref5){var state=_ref5.state,options=_ref5.options;var _options$gpuAccelerat=options.gpuAcceleration,gpuAcceleration=_options$gpuAccelerat===void 0?true:_options$gpuAccelerat,_options$adaptive=options.adaptive,adaptive=_options$adaptive===void 0?true:_options$adaptive,_options$roundOffsets=options.roundOffsets,roundOffsets=_options$roundOffsets===void 0?true:_options$roundOffsets;var commonStyles={placement:getBasePlacement(state.placement),variation:getVariation(state.placement),popper:state.elements.popper,popperRect:state.rects.popper,gpuAcceleration:gpuAcceleration,isFixed:state.options.strategy==='fixed'};if(state.modifiersData.popperOffsets!=null){state.styles.popper=Object.assign({},state.styles.popper,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.popperOffsets,position:state.options.strategy,adaptive:adaptive,roundOffsets:roundOffsets})));}
if(state.modifiersData.arrow!=null){state.styles.arrow=Object.assign({},state.styles.arrow,mapToStyles(Object.assign({},commonStyles,{offsets:state.modifiersData.arrow,position:'absolute',adaptive:false,roundOffsets:roundOffsets})));}
state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-placement':state.placement});}
var computeStyles$1={name:'computeStyles',enabled:true,phase:'beforeWrite',fn:computeStyles,data:{}};var passive={passive:true};function effect(_ref){var state=_ref.state,instance=_ref.instance,options=_ref.options;var _options$scroll=options.scroll,scroll=_options$scroll===void 0?true:_options$scroll,_options$resize=options.resize,resize=_options$resize===void 0?true:_options$resize;var window=getWindow(state.elements.popper);var scrollParents=[].concat(state.scrollParents.reference,state.scrollParents.popper);if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.addEventListener('scroll',instance.update,passive);});}
if(resize){window.addEventListener('resize',instance.update,passive);}
return function(){if(scroll){scrollParents.forEach(function(scrollParent){scrollParent.removeEventListener('scroll',instance.update,passive);});}
if(resize){window.removeEventListener('resize',instance.update,passive);}};}
var eventListeners={name:'eventListeners',enabled:true,phase:'write',fn:function fn(){},effect:effect,data:{}};var hash$1={left:'right',right:'left',bottom:'top',top:'bottom'};function getOppositePlacement(placement){return placement.replace(/left|right|bottom|top/g,function(matched){return hash$1[matched];});}
var hash={start:'end',end:'start'};function getOppositeVariationPlacement(placement){return placement.replace(/start|end/g,function(matched){return hash[matched];});}
function getWindowScroll(node){var win=getWindow(node);var scrollLeft=win.pageXOffset;var scrollTop=win.pageYOffset;return{scrollLeft:scrollLeft,scrollTop:scrollTop};}
function getWindowScrollBarX(element){return getBoundingClientRect(getDocumentElement(element)).left+getWindowScroll(element).scrollLeft;}
function getViewportRect(element,strategy){var win=getWindow(element);var html=getDocumentElement(element);var visualViewport=win.visualViewport;var width=html.clientWidth;var height=html.clientHeight;var x=0;var y=0;if(visualViewport){width=visualViewport.width;height=visualViewport.height;var layoutViewport=isLayoutViewport();if(layoutViewport||!layoutViewport&&strategy==='fixed'){x=visualViewport.offsetLeft;y=visualViewport.offsetTop;}}
return{width:width,height:height,x:x+getWindowScrollBarX(element),y:y};}
function getDocumentRect(element){var _element$ownerDocumen;var html=getDocumentElement(element);var winScroll=getWindowScroll(element);var body=(_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body;var width=max(html.scrollWidth,html.clientWidth,body?body.scrollWidth:0,body?body.clientWidth:0);var height=max(html.scrollHeight,html.clientHeight,body?body.scrollHeight:0,body?body.clientHeight:0);var x=-winScroll.scrollLeft+getWindowScrollBarX(element);var y=-winScroll.scrollTop;if(getComputedStyle$1(body||html).direction==='rtl'){x+=max(html.clientWidth,body?body.clientWidth:0)-width;}
return{width:width,height:height,x:x,y:y};}
function isScrollParent(element){var _getComputedStyle=getComputedStyle$1(element),overflow=_getComputedStyle.overflow,overflowX=_getComputedStyle.overflowX,overflowY=_getComputedStyle.overflowY;return /auto|scroll|overlay|hidden/.test(overflow+overflowY+overflowX);}
function getScrollParent(node){if(['html','body','#document'].indexOf(getNodeName(node))>=0){return node.ownerDocument.body;}
if(isHTMLElement(node)&&isScrollParent(node)){return node;}
return getScrollParent(getParentNode(node));}
function listScrollParents(element,list){var _element$ownerDocumen;if(list===void 0){list=[];}
var scrollParent=getScrollParent(element);var isBody=scrollParent===((_element$ownerDocumen=element.ownerDocument)==null?void 0:_element$ownerDocumen.body);var win=getWindow(scrollParent);var target=isBody?[win].concat(win.visualViewport||[],isScrollParent(scrollParent)?scrollParent:[]):scrollParent;var updatedList=list.concat(target);return isBody?updatedList:updatedList.concat(listScrollParents(getParentNode(target)));}
function rectToClientRect(rect){return Object.assign({},rect,{left:rect.x,top:rect.y,right:rect.x+rect.width,bottom:rect.y+rect.height});}
function getInnerBoundingClientRect(element,strategy){var rect=getBoundingClientRect(element,false,strategy==='fixed');rect.top=rect.top+element.clientTop;rect.left=rect.left+element.clientLeft;rect.bottom=rect.top+element.clientHeight;rect.right=rect.left+element.clientWidth;rect.width=element.clientWidth;rect.height=element.clientHeight;rect.x=rect.left;rect.y=rect.top;return rect;}
function getClientRectFromMixedType(element,clippingParent,strategy){return clippingParent===viewport?rectToClientRect(getViewportRect(element,strategy)):isElement(clippingParent)?getInnerBoundingClientRect(clippingParent,strategy):rectToClientRect(getDocumentRect(getDocumentElement(element)));}
function getClippingParents(element){var clippingParents=listScrollParents(getParentNode(element));var canEscapeClipping=['absolute','fixed'].indexOf(getComputedStyle$1(element).position)>=0;var clipperElement=canEscapeClipping&&isHTMLElement(element)?getOffsetParent(element):element;if(!isElement(clipperElement)){return[];}
return clippingParents.filter(function(clippingParent){return isElement(clippingParent)&&contains(clippingParent,clipperElement)&&getNodeName(clippingParent)!=='body';});}
function getClippingRect(element,boundary,rootBoundary,strategy){var mainClippingParents=boundary==='clippingParents'?getClippingParents(element):[].concat(boundary);var clippingParents=[].concat(mainClippingParents,[rootBoundary]);var firstClippingParent=clippingParents[0];var clippingRect=clippingParents.reduce(function(accRect,clippingParent){var rect=getClientRectFromMixedType(element,clippingParent,strategy);accRect.top=max(rect.top,accRect.top);accRect.right=min(rect.right,accRect.right);accRect.bottom=min(rect.bottom,accRect.bottom);accRect.left=max(rect.left,accRect.left);return accRect;},getClientRectFromMixedType(element,firstClippingParent,strategy));clippingRect.width=clippingRect.right-clippingRect.left;clippingRect.height=clippingRect.bottom-clippingRect.top;clippingRect.x=clippingRect.left;clippingRect.y=clippingRect.top;return clippingRect;}
function computeOffsets(_ref){var reference=_ref.reference,element=_ref.element,placement=_ref.placement;var basePlacement=placement?getBasePlacement(placement):null;var variation=placement?getVariation(placement):null;var commonX=reference.x+reference.width/2-element.width/2;var commonY=reference.y+reference.height/2-element.height/2;var offsets;switch(basePlacement){case top:offsets={x:commonX,y:reference.y-element.height};break;case bottom:offsets={x:commonX,y:reference.y+reference.height};break;case right:offsets={x:reference.x+reference.width,y:commonY};break;case left:offsets={x:reference.x-element.width,y:commonY};break;default:offsets={x:reference.x,y:reference.y};}
var mainAxis=basePlacement?getMainAxisFromPlacement(basePlacement):null;if(mainAxis!=null){var len=mainAxis==='y'?'height':'width';switch(variation){case start:offsets[mainAxis]=offsets[mainAxis]-(reference[len]/2-element[len]/2);break;case end:offsets[mainAxis]=offsets[mainAxis]+(reference[len]/2-element[len]/2);break;}}
return offsets;}
function detectOverflow(state,options){if(options===void 0){options={};}
var _options=options,_options$placement=_options.placement,placement=_options$placement===void 0?state.placement:_options$placement,_options$strategy=_options.strategy,strategy=_options$strategy===void 0?state.strategy:_options$strategy,_options$boundary=_options.boundary,boundary=_options$boundary===void 0?clippingParents:_options$boundary,_options$rootBoundary=_options.rootBoundary,rootBoundary=_options$rootBoundary===void 0?viewport:_options$rootBoundary,_options$elementConte=_options.elementContext,elementContext=_options$elementConte===void 0?popper:_options$elementConte,_options$altBoundary=_options.altBoundary,altBoundary=_options$altBoundary===void 0?false:_options$altBoundary,_options$padding=_options.padding,padding=_options$padding===void 0?0:_options$padding;var paddingObject=mergePaddingObject(typeof padding!=='number'?padding:expandToHashMap(padding,basePlacements));var altContext=elementContext===popper?reference:popper;var popperRect=state.rects.popper;var element=state.elements[altBoundary?altContext:elementContext];var clippingClientRect=getClippingRect(isElement(element)?element:element.contextElement||getDocumentElement(state.elements.popper),boundary,rootBoundary,strategy);var referenceClientRect=getBoundingClientRect(state.elements.reference);var popperOffsets=computeOffsets({reference:referenceClientRect,element:popperRect,strategy:'absolute',placement:placement});var popperClientRect=rectToClientRect(Object.assign({},popperRect,popperOffsets));var elementClientRect=elementContext===popper?popperClientRect:referenceClientRect;var overflowOffsets={top:clippingClientRect.top-elementClientRect.top+paddingObject.top,bottom:elementClientRect.bottom-clippingClientRect.bottom+paddingObject.bottom,left:clippingClientRect.left-elementClientRect.left+paddingObject.left,right:elementClientRect.right-clippingClientRect.right+paddingObject.right};var offsetData=state.modifiersData.offset;if(elementContext===popper&&offsetData){var offset=offsetData[placement];Object.keys(overflowOffsets).forEach(function(key){var multiply=[right,bottom].indexOf(key)>=0?1:-1;var axis=[top,bottom].indexOf(key)>=0?'y':'x';overflowOffsets[key]+=offset[axis]*multiply;});}
return overflowOffsets;}
function computeAutoPlacement(state,options){if(options===void 0){options={};}
var _options=options,placement=_options.placement,boundary=_options.boundary,rootBoundary=_options.rootBoundary,padding=_options.padding,flipVariations=_options.flipVariations,_options$allowedAutoP=_options.allowedAutoPlacements,allowedAutoPlacements=_options$allowedAutoP===void 0?placements:_options$allowedAutoP;var variation=getVariation(placement);var placements$1=variation?flipVariations?variationPlacements:variationPlacements.filter(function(placement){return getVariation(placement)===variation;}):basePlacements;var allowedPlacements=placements$1.filter(function(placement){return allowedAutoPlacements.indexOf(placement)>=0;});if(allowedPlacements.length===0){allowedPlacements=placements$1;}
var overflows=allowedPlacements.reduce(function(acc,placement){acc[placement]=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding})[getBasePlacement(placement)];return acc;},{});return Object.keys(overflows).sort(function(a,b){return overflows[a]-overflows[b];});}
function getExpandedFallbackPlacements(placement){if(getBasePlacement(placement)===auto){return[];}
var oppositePlacement=getOppositePlacement(placement);return[getOppositeVariationPlacement(placement),oppositePlacement,getOppositeVariationPlacement(oppositePlacement)];}
function flip(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;if(state.modifiersData[name]._skip){return;}
var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?true:_options$altAxis,specifiedFallbackPlacements=options.fallbackPlacements,padding=options.padding,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,_options$flipVariatio=options.flipVariations,flipVariations=_options$flipVariatio===void 0?true:_options$flipVariatio,allowedAutoPlacements=options.allowedAutoPlacements;var preferredPlacement=state.options.placement;var basePlacement=getBasePlacement(preferredPlacement);var isBasePlacement=basePlacement===preferredPlacement;var fallbackPlacements=specifiedFallbackPlacements||(isBasePlacement||!flipVariations?[getOppositePlacement(preferredPlacement)]:getExpandedFallbackPlacements(preferredPlacement));var placements=[preferredPlacement].concat(fallbackPlacements).reduce(function(acc,placement){return acc.concat(getBasePlacement(placement)===auto?computeAutoPlacement(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,padding:padding,flipVariations:flipVariations,allowedAutoPlacements:allowedAutoPlacements}):placement);},[]);var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var checksMap=new Map();var makeFallbackChecks=true;var firstFittingPlacement=placements[0];for(var i=0;i<placements.length;i++){var placement=placements[i];var _basePlacement=getBasePlacement(placement);var isStartVariation=getVariation(placement)===start;var isVertical=[top,bottom].indexOf(_basePlacement)>=0;var len=isVertical?'width':'height';var overflow=detectOverflow(state,{placement:placement,boundary:boundary,rootBoundary:rootBoundary,altBoundary:altBoundary,padding:padding});var mainVariationSide=isVertical?isStartVariation?right:left:isStartVariation?bottom:top;if(referenceRect[len]>popperRect[len]){mainVariationSide=getOppositePlacement(mainVariationSide);}
var altVariationSide=getOppositePlacement(mainVariationSide);var checks=[];if(checkMainAxis){checks.push(overflow[_basePlacement]<=0);}
if(checkAltAxis){checks.push(overflow[mainVariationSide]<=0,overflow[altVariationSide]<=0);}
if(checks.every(function(check){return check;})){firstFittingPlacement=placement;makeFallbackChecks=false;break;}
checksMap.set(placement,checks);}
if(makeFallbackChecks){var numberOfChecks=flipVariations?3:1;var _loop=function _loop(_i){var fittingPlacement=placements.find(function(placement){var checks=checksMap.get(placement);if(checks){return checks.slice(0,_i).every(function(check){return check;});}});if(fittingPlacement){firstFittingPlacement=fittingPlacement;return"break";}};for(var _i=numberOfChecks;_i>0;_i--){var _ret=_loop(_i);if(_ret==="break")break;}}
if(state.placement!==firstFittingPlacement){state.modifiersData[name]._skip=true;state.placement=firstFittingPlacement;state.reset=true;}}
var flip$1={name:'flip',enabled:true,phase:'main',fn:flip,requiresIfExists:['offset'],data:{_skip:false}};function getSideOffsets(overflow,rect,preventedOffsets){if(preventedOffsets===void 0){preventedOffsets={x:0,y:0};}
return{top:overflow.top-rect.height-preventedOffsets.y,right:overflow.right-rect.width+preventedOffsets.x,bottom:overflow.bottom-rect.height+preventedOffsets.y,left:overflow.left-rect.width-preventedOffsets.x};}
function isAnySideFullyClipped(overflow){return[top,right,bottom,left].some(function(side){return overflow[side]>=0;});}
function hide(_ref){var state=_ref.state,name=_ref.name;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var preventedOffsets=state.modifiersData.preventOverflow;var referenceOverflow=detectOverflow(state,{elementContext:'reference'});var popperAltOverflow=detectOverflow(state,{altBoundary:true});var referenceClippingOffsets=getSideOffsets(referenceOverflow,referenceRect);var popperEscapeOffsets=getSideOffsets(popperAltOverflow,popperRect,preventedOffsets);var isReferenceHidden=isAnySideFullyClipped(referenceClippingOffsets);var hasPopperEscaped=isAnySideFullyClipped(popperEscapeOffsets);state.modifiersData[name]={referenceClippingOffsets:referenceClippingOffsets,popperEscapeOffsets:popperEscapeOffsets,isReferenceHidden:isReferenceHidden,hasPopperEscaped:hasPopperEscaped};state.attributes.popper=Object.assign({},state.attributes.popper,{'data-popper-reference-hidden':isReferenceHidden,'data-popper-escaped':hasPopperEscaped});}
var hide$1={name:'hide',enabled:true,phase:'main',requiresIfExists:['preventOverflow'],fn:hide};function distanceAndSkiddingToXY(placement,rects,offset){var basePlacement=getBasePlacement(placement);var invertDistance=[left,top].indexOf(basePlacement)>=0?-1:1;var _ref=typeof offset==='function'?offset(Object.assign({},rects,{placement:placement})):offset,skidding=_ref[0],distance=_ref[1];skidding=skidding||0;distance=(distance||0)*invertDistance;return[left,right].indexOf(basePlacement)>=0?{x:distance,y:skidding}:{x:skidding,y:distance};}
function offset(_ref2){var state=_ref2.state,options=_ref2.options,name=_ref2.name;var _options$offset=options.offset,offset=_options$offset===void 0?[0,0]:_options$offset;var data=placements.reduce(function(acc,placement){acc[placement]=distanceAndSkiddingToXY(placement,state.rects,offset);return acc;},{});var _data$state$placement=data[state.placement],x=_data$state$placement.x,y=_data$state$placement.y;if(state.modifiersData.popperOffsets!=null){state.modifiersData.popperOffsets.x+=x;state.modifiersData.popperOffsets.y+=y;}
state.modifiersData[name]=data;}
var offset$1={name:'offset',enabled:true,phase:'main',requires:['popperOffsets'],fn:offset};function popperOffsets(_ref){var state=_ref.state,name=_ref.name;state.modifiersData[name]=computeOffsets({reference:state.rects.reference,element:state.rects.popper,strategy:'absolute',placement:state.placement});}
var popperOffsets$1={name:'popperOffsets',enabled:true,phase:'read',fn:popperOffsets,data:{}};function getAltAxis(axis){return axis==='x'?'y':'x';}
function preventOverflow(_ref){var state=_ref.state,options=_ref.options,name=_ref.name;var _options$mainAxis=options.mainAxis,checkMainAxis=_options$mainAxis===void 0?true:_options$mainAxis,_options$altAxis=options.altAxis,checkAltAxis=_options$altAxis===void 0?false:_options$altAxis,boundary=options.boundary,rootBoundary=options.rootBoundary,altBoundary=options.altBoundary,padding=options.padding,_options$tether=options.tether,tether=_options$tether===void 0?true:_options$tether,_options$tetherOffset=options.tetherOffset,tetherOffset=_options$tetherOffset===void 0?0:_options$tetherOffset;var overflow=detectOverflow(state,{boundary:boundary,rootBoundary:rootBoundary,padding:padding,altBoundary:altBoundary});var basePlacement=getBasePlacement(state.placement);var variation=getVariation(state.placement);var isBasePlacement=!variation;var mainAxis=getMainAxisFromPlacement(basePlacement);var altAxis=getAltAxis(mainAxis);var popperOffsets=state.modifiersData.popperOffsets;var referenceRect=state.rects.reference;var popperRect=state.rects.popper;var tetherOffsetValue=typeof tetherOffset==='function'?tetherOffset(Object.assign({},state.rects,{placement:state.placement})):tetherOffset;var normalizedTetherOffsetValue=typeof tetherOffsetValue==='number'?{mainAxis:tetherOffsetValue,altAxis:tetherOffsetValue}:Object.assign({mainAxis:0,altAxis:0},tetherOffsetValue);var offsetModifierState=state.modifiersData.offset?state.modifiersData.offset[state.placement]:null;var data={x:0,y:0};if(!popperOffsets){return;}
if(checkMainAxis){var _offsetModifierState$;var mainSide=mainAxis==='y'?top:left;var altSide=mainAxis==='y'?bottom:right;var len=mainAxis==='y'?'height':'width';var offset=popperOffsets[mainAxis];var min$1=offset+overflow[mainSide];var max$1=offset-overflow[altSide];var additive=tether?-popperRect[len]/2:0;var minLen=variation===start?referenceRect[len]:popperRect[len];var maxLen=variation===start?-popperRect[len]:-referenceRect[len];var arrowElement=state.elements.arrow;var arrowRect=tether&&arrowElement?getLayoutRect(arrowElement):{width:0,height:0};var arrowPaddingObject=state.modifiersData['arrow#persistent']?state.modifiersData['arrow#persistent'].padding:getFreshSideObject();var arrowPaddingMin=arrowPaddingObject[mainSide];var arrowPaddingMax=arrowPaddingObject[altSide];var arrowLen=within(0,referenceRect[len],arrowRect[len]);var minOffset=isBasePlacement?referenceRect[len]/2-additive-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis:minLen-arrowLen-arrowPaddingMin-normalizedTetherOffsetValue.mainAxis;var maxOffset=isBasePlacement?-referenceRect[len]/2+additive+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis:maxLen+arrowLen+arrowPaddingMax+normalizedTetherOffsetValue.mainAxis;var arrowOffsetParent=state.elements.arrow&&getOffsetParent(state.elements.arrow);var clientOffset=arrowOffsetParent?mainAxis==='y'?arrowOffsetParent.clientTop||0:arrowOffsetParent.clientLeft||0:0;var offsetModifierValue=(_offsetModifierState$=offsetModifierState==null?void 0:offsetModifierState[mainAxis])!=null?_offsetModifierState$:0;var tetherMin=offset+minOffset-offsetModifierValue-clientOffset;var tetherMax=offset+maxOffset-offsetModifierValue;var preventedOffset=within(tether?min(min$1,tetherMin):min$1,offset,tether?max(max$1,tetherMax):max$1);popperOffsets[mainAxis]=preventedOffset;data[mainAxis]=preventedOffset-offset;}
if(checkAltAxis){var _offsetModifierState$2;var _mainSide=mainAxis==='x'?top:left;var _altSide=mainAxis==='x'?bottom:right;var _offset=popperOffsets[altAxis];var _len=altAxis==='y'?'height':'width';var _min=_offset+overflow[_mainSide];var _max=_offset-overflow[_altSide];var isOriginSide=[top,left].indexOf(basePlacement)!==-1;var _offsetModifierValue=(_offsetModifierState$2=offsetModifierState==null?void 0:offsetModifierState[altAxis])!=null?_offsetModifierState$2:0;var _tetherMin=isOriginSide?_min:_offset-referenceRect[_len]-popperRect[_len]-_offsetModifierValue+normalizedTetherOffsetValue.altAxis;var _tetherMax=isOriginSide?_offset+referenceRect[_len]+popperRect[_len]-_offsetModifierValue-normalizedTetherOffsetValue.altAxis:_max;var _preventedOffset=tether&&isOriginSide?withinMaxClamp(_tetherMin,_offset,_tetherMax):within(tether?_tetherMin:_min,_offset,tether?_tetherMax:_max);popperOffsets[altAxis]=_preventedOffset;data[altAxis]=_preventedOffset-_offset;}
state.modifiersData[name]=data;}
var preventOverflow$1={name:'preventOverflow',enabled:true,phase:'main',fn:preventOverflow,requiresIfExists:['offset']};function getHTMLElementScroll(element){return{scrollLeft:element.scrollLeft,scrollTop:element.scrollTop};}
function getNodeScroll(node){if(node===getWindow(node)||!isHTMLElement(node)){return getWindowScroll(node);}else{return getHTMLElementScroll(node);}}
function isElementScaled(element){var rect=element.getBoundingClientRect();var scaleX=round(rect.width)/element.offsetWidth||1;var scaleY=round(rect.height)/element.offsetHeight||1;return scaleX!==1||scaleY!==1;}
function getCompositeRect(elementOrVirtualElement,offsetParent,isFixed){if(isFixed===void 0){isFixed=false;}
var isOffsetParentAnElement=isHTMLElement(offsetParent);var offsetParentIsScaled=isHTMLElement(offsetParent)&&isElementScaled(offsetParent);var documentElement=getDocumentElement(offsetParent);var rect=getBoundingClientRect(elementOrVirtualElement,offsetParentIsScaled,isFixed);var scroll={scrollLeft:0,scrollTop:0};var offsets={x:0,y:0};if(isOffsetParentAnElement||!isOffsetParentAnElement&&!isFixed){if(getNodeName(offsetParent)!=='body'||isScrollParent(documentElement)){scroll=getNodeScroll(offsetParent);}
if(isHTMLElement(offsetParent)){offsets=getBoundingClientRect(offsetParent,true);offsets.x+=offsetParent.clientLeft;offsets.y+=offsetParent.clientTop;}else if(documentElement){offsets.x=getWindowScrollBarX(documentElement);}}
return{x:rect.left+scroll.scrollLeft-offsets.x,y:rect.top+scroll.scrollTop-offsets.y,width:rect.width,height:rect.height};}
function order(modifiers){var map=new Map();var visited=new Set();var result=[];modifiers.forEach(function(modifier){map.set(modifier.name,modifier);});function sort(modifier){visited.add(modifier.name);var requires=[].concat(modifier.requires||[],modifier.requiresIfExists||[]);requires.forEach(function(dep){if(!visited.has(dep)){var depModifier=map.get(dep);if(depModifier){sort(depModifier);}}});result.push(modifier);}
modifiers.forEach(function(modifier){if(!visited.has(modifier.name)){sort(modifier);}});return result;}
function orderModifiers(modifiers){var orderedModifiers=order(modifiers);return modifierPhases.reduce(function(acc,phase){return acc.concat(orderedModifiers.filter(function(modifier){return modifier.phase===phase;}));},[]);}
function debounce(fn){var pending;return function(){if(!pending){pending=new Promise(function(resolve){Promise.resolve().then(function(){pending=undefined;resolve(fn());});});}
return pending;};}
function mergeByName(modifiers){var merged=modifiers.reduce(function(merged,current){var existing=merged[current.name];merged[current.name]=existing?Object.assign({},existing,current,{options:Object.assign({},existing.options,current.options),data:Object.assign({},existing.data,current.data)}):current;return merged;},{});return Object.keys(merged).map(function(key){return merged[key];});}
var DEFAULT_OPTIONS={placement:'bottom',modifiers:[],strategy:'absolute'};function areValidElements(){for(var _len=arguments.length,args=new Array(_len),_key=0;_key<_len;_key++){args[_key]=arguments[_key];}
return!args.some(function(element){return!(element&&typeof element.getBoundingClientRect==='function');});}
function popperGenerator(generatorOptions){if(generatorOptions===void 0){generatorOptions={};}
var _generatorOptions=generatorOptions,_generatorOptions$def=_generatorOptions.defaultModifiers,defaultModifiers=_generatorOptions$def===void 0?[]:_generatorOptions$def,_generatorOptions$def2=_generatorOptions.defaultOptions,defaultOptions=_generatorOptions$def2===void 0?DEFAULT_OPTIONS:_generatorOptions$def2;return function createPopper(reference,popper,options){if(options===void 0){options=defaultOptions;}
var state={placement:'bottom',orderedModifiers:[],options:Object.assign({},DEFAULT_OPTIONS,defaultOptions),modifiersData:{},elements:{reference:reference,popper:popper},attributes:{},styles:{}};var effectCleanupFns=[];var isDestroyed=false;var instance={state:state,setOptions:function setOptions(setOptionsAction){var options=typeof setOptionsAction==='function'?setOptionsAction(state.options):setOptionsAction;cleanupModifierEffects();state.options=Object.assign({},defaultOptions,state.options,options);state.scrollParents={reference:isElement(reference)?listScrollParents(reference):reference.contextElement?listScrollParents(reference.contextElement):[],popper:listScrollParents(popper)};var orderedModifiers=orderModifiers(mergeByName([].concat(defaultModifiers,state.options.modifiers)));state.orderedModifiers=orderedModifiers.filter(function(m){return m.enabled;});runModifierEffects();return instance.update();},forceUpdate:function forceUpdate(){if(isDestroyed){return;}
var _state$elements=state.elements,reference=_state$elements.reference,popper=_state$elements.popper;if(!areValidElements(reference,popper)){return;}
state.rects={reference:getCompositeRect(reference,getOffsetParent(popper),state.options.strategy==='fixed'),popper:getLayoutRect(popper)};state.reset=false;state.placement=state.options.placement;state.orderedModifiers.forEach(function(modifier){return state.modifiersData[modifier.name]=Object.assign({},modifier.data);});for(var index=0;index<state.orderedModifiers.length;index++){if(state.reset===true){state.reset=false;index=-1;continue;}
var _state$orderedModifie=state.orderedModifiers[index],fn=_state$orderedModifie.fn,_state$orderedModifie2=_state$orderedModifie.options,_options=_state$orderedModifie2===void 0?{}:_state$orderedModifie2,name=_state$orderedModifie.name;if(typeof fn==='function'){state=fn({state:state,options:_options,name:name,instance:instance})||state;}}},update:debounce(function(){return new Promise(function(resolve){instance.forceUpdate();resolve(state);});}),destroy:function destroy(){cleanupModifierEffects();isDestroyed=true;}};if(!areValidElements(reference,popper)){return instance;}
instance.setOptions(options).then(function(state){if(!isDestroyed&&options.onFirstUpdate){options.onFirstUpdate(state);}});function runModifierEffects(){state.orderedModifiers.forEach(function(_ref){var name=_ref.name,_ref$options=_ref.options,options=_ref$options===void 0?{}:_ref$options,effect=_ref.effect;if(typeof effect==='function'){var cleanupFn=effect({state:state,name:name,instance:instance,options:options});var noopFn=function noopFn(){};effectCleanupFns.push(cleanupFn||noopFn);}});}
function cleanupModifierEffects(){effectCleanupFns.forEach(function(fn){return fn();});effectCleanupFns=[];}
return instance;};}
var createPopper$2=popperGenerator();var defaultModifiers$1=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1];var createPopper$1=popperGenerator({defaultModifiers:defaultModifiers$1});var defaultModifiers=[eventListeners,popperOffsets$1,computeStyles$1,applyStyles$1,offset$1,flip$1,preventOverflow$1,arrow$1,hide$1];var createPopper=popperGenerator({defaultModifiers:defaultModifiers});var Popper=Object.freeze(Object.defineProperty({__proto__:null,afterMain:afterMain,afterRead:afterRead,afterWrite:afterWrite,applyStyles:applyStyles$1,arrow:arrow$1,auto:auto,basePlacements:basePlacements,beforeMain:beforeMain,beforeRead:beforeRead,beforeWrite:beforeWrite,bottom:bottom,clippingParents:clippingParents,computeStyles:computeStyles$1,createPopper:createPopper,createPopperBase:createPopper$2,createPopperLite:createPopper$1,detectOverflow:detectOverflow,end:end,eventListeners:eventListeners,flip:flip$1,hide:hide$1,left:left,main:main,modifierPhases:modifierPhases,offset:offset$1,placements:placements,popper:popper,popperGenerator:popperGenerator,popperOffsets:popperOffsets$1,preventOverflow:preventOverflow$1,read:read,reference:reference,right:right,start:start,top:top,variationPlacements:variationPlacements,viewport:viewport,write:write},Symbol.toStringTag,{value:'Module'}));var NAME$a='dropdown';var DATA_KEY$6='bs.dropdown';var EVENT_KEY$6=".".concat(DATA_KEY$6);var DATA_API_KEY$3='.data-api';var ESCAPE_KEY$2='Escape';var TAB_KEY$1='Tab';var ARROW_UP_KEY$1='ArrowUp';var ARROW_DOWN_KEY$1='ArrowDown';var RIGHT_MOUSE_BUTTON=2;var EVENT_HIDE$5="hide".concat(EVENT_KEY$6);var EVENT_HIDDEN$5="hidden".concat(EVENT_KEY$6);var EVENT_SHOW$5="show".concat(EVENT_KEY$6);var EVENT_SHOWN$5="shown".concat(EVENT_KEY$6);var EVENT_CLICK_DATA_API$3="click".concat(EVENT_KEY$6).concat(DATA_API_KEY$3);var EVENT_KEYDOWN_DATA_API="keydown".concat(EVENT_KEY$6).concat(DATA_API_KEY$3);var EVENT_KEYUP_DATA_API="keyup".concat(EVENT_KEY$6).concat(DATA_API_KEY$3);var CLASS_NAME_SHOW$6='show';var CLASS_NAME_DROPUP='dropup';var CLASS_NAME_DROPEND='dropend';var CLASS_NAME_DROPSTART='dropstart';var CLASS_NAME_DROPUP_CENTER='dropup-center';var CLASS_NAME_DROPDOWN_CENTER='dropdown-center';var SELECTOR_DATA_TOGGLE$3='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)';var SELECTOR_DATA_TOGGLE_SHOWN="".concat(SELECTOR_DATA_TOGGLE$3,".").concat(CLASS_NAME_SHOW$6);var SELECTOR_MENU='.dropdown-menu';var SELECTOR_NAVBAR='.navbar';var SELECTOR_NAVBAR_NAV='.navbar-nav';var SELECTOR_VISIBLE_ITEMS='.dropdown-menu .dropdown-item:not(.disabled):not(:disabled)';var PLACEMENT_TOP=isRTL()?'top-end':'top-start';var PLACEMENT_TOPEND=isRTL()?'top-start':'top-end';var PLACEMENT_BOTTOM=isRTL()?'bottom-end':'bottom-start';var PLACEMENT_BOTTOMEND=isRTL()?'bottom-start':'bottom-end';var PLACEMENT_RIGHT=isRTL()?'left-start':'right-start';var PLACEMENT_LEFT=isRTL()?'right-start':'left-start';var PLACEMENT_TOPCENTER='top';var PLACEMENT_BOTTOMCENTER='bottom';var Default$9={autoClose:true,boundary:'clippingParents',display:'dynamic',offset:[0,2],popperConfig:null,reference:'toggle'};var DefaultType$9={autoClose:'(boolean|string)',boundary:'(string|element)',display:'string',offset:'(array|string|function)',popperConfig:'(null|object|function)',reference:'(string|element|object)'};var Dropdown=function(_BaseComponent5){function Dropdown(element,config){var _this15;_classCallCheck(this,Dropdown);_this15=_callSuper(this,Dropdown,[element,config]);_this15._popper=null;_this15._parent=_this15._element.parentNode;_this15._menu=SelectorEngine.next(_this15._element,SELECTOR_MENU)[0]||SelectorEngine.prev(_this15._element,SELECTOR_MENU)[0]||SelectorEngine.findOne(SELECTOR_MENU,_this15._parent);_this15._inNavbar=_this15._detectNavbar();return _this15;}
_inherits(Dropdown,_BaseComponent5);return _createClass(Dropdown,[{key:"toggle",value:function toggle(){return this._isShown()?this.hide():this.show();}},{key:"show",value:function show(){if(isDisabled(this._element)||this._isShown()){return;}
var relatedTarget={relatedTarget:this._element};var showEvent=EventHandler.trigger(this._element,EVENT_SHOW$5,relatedTarget);if(showEvent.defaultPrevented){return;}
this._createPopper();if('ontouchstart' in document.documentElement&&!this._parent.closest(SELECTOR_NAVBAR_NAV)){var _ref9;var _iterator12=_createForOfIteratorHelper((_ref9=[]).concat.apply(_ref9,_toConsumableArray(document.body.children))),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var element=_step12.value;EventHandler.on(element,'mouseover',noop);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}}
this._element.focus();this._element.setAttribute('aria-expanded',true);this._menu.classList.add(CLASS_NAME_SHOW$6);this._element.classList.add(CLASS_NAME_SHOW$6);EventHandler.trigger(this._element,EVENT_SHOWN$5,relatedTarget);}},{key:"hide",value:function hide(){if(isDisabled(this._element)||!this._isShown()){return;}
var relatedTarget={relatedTarget:this._element};this._completeHide(relatedTarget);}},{key:"dispose",value:function dispose(){if(this._popper){this._popper.destroy();}
_superPropGet(Dropdown,"dispose",this,3)([]);}},{key:"update",value:function update(){this._inNavbar=this._detectNavbar();if(this._popper){this._popper.update();}}},{key:"_completeHide",value:function _completeHide(relatedTarget){var hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$5,relatedTarget);if(hideEvent.defaultPrevented){return;}
if('ontouchstart' in document.documentElement){var _ref10;var _iterator13=_createForOfIteratorHelper((_ref10=[]).concat.apply(_ref10,_toConsumableArray(document.body.children))),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var element=_step13.value;EventHandler.off(element,'mouseover',noop);}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}}
if(this._popper){this._popper.destroy();}
this._menu.classList.remove(CLASS_NAME_SHOW$6);this._element.classList.remove(CLASS_NAME_SHOW$6);this._element.setAttribute('aria-expanded','false');Manipulator.removeDataAttribute(this._menu,'popper');EventHandler.trigger(this._element,EVENT_HIDDEN$5,relatedTarget);}},{key:"_getConfig",value:function _getConfig(config){config=_superPropGet(Dropdown,"_getConfig",this,3)([config]);if(_typeof(config.reference)==='object'&&!isElement$1(config.reference)&&typeof config.reference.getBoundingClientRect!=='function'){throw new TypeError("".concat(NAME$a.toUpperCase(),": Option \"reference\" provided type \"object\" without a required \"getBoundingClientRect\" method."));}
return config;}},{key:"_createPopper",value:function _createPopper(){if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s dropdowns require Popper (https://popper.js.org)');}
var referenceElement=this._element;if(this._config.reference==='parent'){referenceElement=this._parent;}else if(isElement$1(this._config.reference)){referenceElement=getElement(this._config.reference);}else if(_typeof(this._config.reference)==='object'){referenceElement=this._config.reference;}
var popperConfig=this._getPopperConfig();this._popper=createPopper(referenceElement,this._menu,popperConfig);}},{key:"_isShown",value:function _isShown(){return this._menu.classList.contains(CLASS_NAME_SHOW$6);}},{key:"_getPlacement",value:function _getPlacement(){var parentDropdown=this._parent;if(parentDropdown.classList.contains(CLASS_NAME_DROPEND)){return PLACEMENT_RIGHT;}
if(parentDropdown.classList.contains(CLASS_NAME_DROPSTART)){return PLACEMENT_LEFT;}
if(parentDropdown.classList.contains(CLASS_NAME_DROPUP_CENTER)){return PLACEMENT_TOPCENTER;}
if(parentDropdown.classList.contains(CLASS_NAME_DROPDOWN_CENTER)){return PLACEMENT_BOTTOMCENTER;}
var isEnd=getComputedStyle(this._menu).getPropertyValue('--bs-position').trim()==='end';if(parentDropdown.classList.contains(CLASS_NAME_DROPUP)){return isEnd?PLACEMENT_TOPEND:PLACEMENT_TOP;}
return isEnd?PLACEMENT_BOTTOMEND:PLACEMENT_BOTTOM;}},{key:"_detectNavbar",value:function _detectNavbar(){return this._element.closest(SELECTOR_NAVBAR)!==null;}},{key:"_getOffset",value:function _getOffset(){var _this16=this;var offset=this._config.offset;if(typeof offset==='string'){return offset.split(',').map(function(value){return Number.parseInt(value,10);});}
if(typeof offset==='function'){return function(popperData){return offset(popperData,_this16._element);};}
return offset;}},{key:"_getPopperConfig",value:function _getPopperConfig(){var defaultBsPopperConfig={placement:this._getPlacement(),modifiers:[{name:'preventOverflow',options:{boundary:this._config.boundary}},{name:'offset',options:{offset:this._getOffset()}}]};if(this._inNavbar||this._config.display==='static'){Manipulator.setDataAttribute(this._menu,'popper','static');defaultBsPopperConfig.modifiers=[{name:'applyStyles',enabled:false}];}
return _objectSpread(_objectSpread({},defaultBsPopperConfig),execute(this._config.popperConfig,[defaultBsPopperConfig]));}},{key:"_selectMenuItem",value:function _selectMenuItem(_ref11){var key=_ref11.key,target=_ref11.target;var items=SelectorEngine.find(SELECTOR_VISIBLE_ITEMS,this._menu).filter(function(element){return isVisible(element);});if(!items.length){return;}
getNextActiveElement(items,target,key===ARROW_DOWN_KEY$1,!items.includes(target)).focus();}}],[{key:"Default",get:function get(){return Default$9;}},{key:"DefaultType",get:function get(){return DefaultType$9;}},{key:"NAME",get:function get(){return NAME$a;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Dropdown.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();});}},{key:"clearMenus",value:function clearMenus(event){if(event.button===RIGHT_MOUSE_BUTTON||event.type==='keyup'&&event.key!==TAB_KEY$1){return;}
var openToggles=SelectorEngine.find(SELECTOR_DATA_TOGGLE_SHOWN);var _iterator14=_createForOfIteratorHelper(openToggles),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var toggle=_step14.value;var context=Dropdown.getInstance(toggle);if(!context||context._config.autoClose===false){continue;}
var composedPath=event.composedPath();var isMenuTarget=composedPath.includes(context._menu);if(composedPath.includes(context._element)||context._config.autoClose==='inside'&&!isMenuTarget||context._config.autoClose==='outside'&&isMenuTarget){continue;}
if(context._menu.contains(event.target)&&(event.type==='keyup'&&event.key===TAB_KEY$1||/input|select|option|textarea|form/i.test(event.target.tagName))){continue;}
var relatedTarget={relatedTarget:context._element};if(event.type==='click'){relatedTarget.clickEvent=event;}
context._completeHide(relatedTarget);}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}}},{key:"dataApiKeydownHandler",value:function dataApiKeydownHandler(event){var isInput=/input|textarea/i.test(event.target.tagName);var isEscapeEvent=event.key===ESCAPE_KEY$2;var isUpOrDownEvent=[ARROW_UP_KEY$1,ARROW_DOWN_KEY$1].includes(event.key);if(!isUpOrDownEvent&&!isEscapeEvent){return;}
if(isInput&&!isEscapeEvent){return;}
event.preventDefault();var getToggleButton=this.matches(SELECTOR_DATA_TOGGLE$3)?this:SelectorEngine.prev(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.next(this,SELECTOR_DATA_TOGGLE$3)[0]||SelectorEngine.findOne(SELECTOR_DATA_TOGGLE$3,event.delegateTarget.parentNode);var instance=Dropdown.getOrCreateInstance(getToggleButton);if(isUpOrDownEvent){event.stopPropagation();instance.show();instance._selectMenuItem(event);return;}
if(instance._isShown()){event.stopPropagation();instance.hide();getToggleButton.focus();}}}]);}(BaseComponent);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_DATA_TOGGLE$3,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_KEYDOWN_DATA_API,SELECTOR_MENU,Dropdown.dataApiKeydownHandler);EventHandler.on(document,EVENT_CLICK_DATA_API$3,Dropdown.clearMenus);EventHandler.on(document,EVENT_KEYUP_DATA_API,Dropdown.clearMenus);EventHandler.on(document,EVENT_CLICK_DATA_API$3,SELECTOR_DATA_TOGGLE$3,function(event){event.preventDefault();Dropdown.getOrCreateInstance(this).toggle();});defineJQueryPlugin(Dropdown);var NAME$9='backdrop';var CLASS_NAME_FADE$4='fade';var CLASS_NAME_SHOW$5='show';var EVENT_MOUSEDOWN="mousedown.bs.".concat(NAME$9);var Default$8={className:'modal-backdrop',clickCallback:null,isAnimated:false,isVisible:true,rootElement:'body'};var DefaultType$8={className:'string',clickCallback:'(function|null)',isAnimated:'boolean',isVisible:'boolean',rootElement:'(element|string)'};var Backdrop=function(_Config3){function Backdrop(config){var _this17;_classCallCheck(this,Backdrop);_this17=_callSuper(this,Backdrop);_this17._config=_this17._getConfig(config);_this17._isAppended=false;_this17._element=null;return _this17;}
_inherits(Backdrop,_Config3);return _createClass(Backdrop,[{key:"show",value:function show(callback){if(!this._config.isVisible){execute(callback);return;}
this._append();var element=this._getElement();if(this._config.isAnimated){reflow(element);}
element.classList.add(CLASS_NAME_SHOW$5);this._emulateAnimation(function(){execute(callback);});}},{key:"hide",value:function hide(callback){var _this18=this;if(!this._config.isVisible){execute(callback);return;}
this._getElement().classList.remove(CLASS_NAME_SHOW$5);this._emulateAnimation(function(){_this18.dispose();execute(callback);});}},{key:"dispose",value:function dispose(){if(!this._isAppended){return;}
EventHandler.off(this._element,EVENT_MOUSEDOWN);this._element.remove();this._isAppended=false;}},{key:"_getElement",value:function _getElement(){if(!this._element){var backdrop=document.createElement('div');backdrop.className=this._config.className;if(this._config.isAnimated){backdrop.classList.add(CLASS_NAME_FADE$4);}
this._element=backdrop;}
return this._element;}},{key:"_configAfterMerge",value:function _configAfterMerge(config){config.rootElement=getElement(config.rootElement);return config;}},{key:"_append",value:function _append(){var _this19=this;if(this._isAppended){return;}
var element=this._getElement();this._config.rootElement.append(element);EventHandler.on(element,EVENT_MOUSEDOWN,function(){execute(_this19._config.clickCallback);});this._isAppended=true;}},{key:"_emulateAnimation",value:function _emulateAnimation(callback){executeAfterTransition(callback,this._getElement(),this._config.isAnimated);}}],[{key:"Default",get:function get(){return Default$8;}},{key:"DefaultType",get:function get(){return DefaultType$8;}},{key:"NAME",get:function get(){return NAME$9;}}]);}(Config);var NAME$8='focustrap';var DATA_KEY$5='bs.focustrap';var EVENT_KEY$5=".".concat(DATA_KEY$5);var EVENT_FOCUSIN$2="focusin".concat(EVENT_KEY$5);var EVENT_KEYDOWN_TAB="keydown.tab".concat(EVENT_KEY$5);var TAB_KEY='Tab';var TAB_NAV_FORWARD='forward';var TAB_NAV_BACKWARD='backward';var Default$7={autofocus:true,trapElement:null};var DefaultType$7={autofocus:'boolean',trapElement:'element'};var FocusTrap=function(_Config4){function FocusTrap(config){var _this20;_classCallCheck(this,FocusTrap);_this20=_callSuper(this,FocusTrap);_this20._config=_this20._getConfig(config);_this20._isActive=false;_this20._lastTabNavDirection=null;return _this20;}
_inherits(FocusTrap,_Config4);return _createClass(FocusTrap,[{key:"activate",value:function activate(){var _this21=this;if(this._isActive){return;}
if(this._config.autofocus){this._config.trapElement.focus();}
EventHandler.off(document,EVENT_KEY$5);EventHandler.on(document,EVENT_FOCUSIN$2,function(event){return _this21._handleFocusin(event);});EventHandler.on(document,EVENT_KEYDOWN_TAB,function(event){return _this21._handleKeydown(event);});this._isActive=true;}},{key:"deactivate",value:function deactivate(){if(!this._isActive){return;}
this._isActive=false;EventHandler.off(document,EVENT_KEY$5);}},{key:"_handleFocusin",value:function _handleFocusin(event){var trapElement=this._config.trapElement;if(event.target===document||event.target===trapElement||trapElement.contains(event.target)){return;}
var elements=SelectorEngine.focusableChildren(trapElement);if(elements.length===0){trapElement.focus();}else if(this._lastTabNavDirection===TAB_NAV_BACKWARD){elements[elements.length-1].focus();}else{elements[0].focus();}}},{key:"_handleKeydown",value:function _handleKeydown(event){if(event.key!==TAB_KEY){return;}
this._lastTabNavDirection=event.shiftKey?TAB_NAV_BACKWARD:TAB_NAV_FORWARD;}}],[{key:"Default",get:function get(){return Default$7;}},{key:"DefaultType",get:function get(){return DefaultType$7;}},{key:"NAME",get:function get(){return NAME$8;}}]);}(Config);var SELECTOR_FIXED_CONTENT='.fixed-top, .fixed-bottom, .is-fixed, .sticky-top';var SELECTOR_STICKY_CONTENT='.sticky-top';var PROPERTY_PADDING='padding-right';var PROPERTY_MARGIN='margin-right';var ScrollBarHelper=function(){function ScrollBarHelper(){_classCallCheck(this,ScrollBarHelper);this._element=document.body;}
return _createClass(ScrollBarHelper,[{key:"getWidth",value:function getWidth(){var documentWidth=document.documentElement.clientWidth;return Math.abs(window.innerWidth-documentWidth);}},{key:"hide",value:function hide(){var width=this.getWidth();this._disableOverFlow();this._setElementAttributes(this._element,PROPERTY_PADDING,function(calculatedValue){return calculatedValue+width;});this._setElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING,function(calculatedValue){return calculatedValue+width;});this._setElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN,function(calculatedValue){return calculatedValue-width;});}},{key:"reset",value:function reset(){this._resetElementAttributes(this._element,'overflow');this._resetElementAttributes(this._element,PROPERTY_PADDING);this._resetElementAttributes(SELECTOR_FIXED_CONTENT,PROPERTY_PADDING);this._resetElementAttributes(SELECTOR_STICKY_CONTENT,PROPERTY_MARGIN);}},{key:"isOverflowing",value:function isOverflowing(){return this.getWidth()>0;}},{key:"_disableOverFlow",value:function _disableOverFlow(){this._saveInitialAttribute(this._element,'overflow');this._element.style.overflow='hidden';}},{key:"_setElementAttributes",value:function _setElementAttributes(selector,styleProperty,callback){var _this22=this;var scrollbarWidth=this.getWidth();var manipulationCallBack=function manipulationCallBack(element){if(element!==_this22._element&&window.innerWidth>element.clientWidth+scrollbarWidth){return;}
_this22._saveInitialAttribute(element,styleProperty);var calculatedValue=window.getComputedStyle(element).getPropertyValue(styleProperty);element.style.setProperty(styleProperty,"".concat(callback(Number.parseFloat(calculatedValue)),"px"));};this._applyManipulationCallback(selector,manipulationCallBack);}},{key:"_saveInitialAttribute",value:function _saveInitialAttribute(element,styleProperty){var actualValue=element.style.getPropertyValue(styleProperty);if(actualValue){Manipulator.setDataAttribute(element,styleProperty,actualValue);}}},{key:"_resetElementAttributes",value:function _resetElementAttributes(selector,styleProperty){var manipulationCallBack=function manipulationCallBack(element){var value=Manipulator.getDataAttribute(element,styleProperty);if(value===null){element.style.removeProperty(styleProperty);return;}
Manipulator.removeDataAttribute(element,styleProperty);element.style.setProperty(styleProperty,value);};this._applyManipulationCallback(selector,manipulationCallBack);}},{key:"_applyManipulationCallback",value:function _applyManipulationCallback(selector,callBack){if(isElement$1(selector)){callBack(selector);return;}
var _iterator15=_createForOfIteratorHelper(SelectorEngine.find(selector,this._element)),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var sel=_step15.value;callBack(sel);}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}}}]);}();var NAME$7='modal';var DATA_KEY$4='bs.modal';var EVENT_KEY$4=".".concat(DATA_KEY$4);var DATA_API_KEY$2='.data-api';var ESCAPE_KEY$1='Escape';var EVENT_HIDE$4="hide".concat(EVENT_KEY$4);var EVENT_HIDE_PREVENTED$1="hidePrevented".concat(EVENT_KEY$4);var EVENT_HIDDEN$4="hidden".concat(EVENT_KEY$4);var EVENT_SHOW$4="show".concat(EVENT_KEY$4);var EVENT_SHOWN$4="shown".concat(EVENT_KEY$4);var EVENT_RESIZE$1="resize".concat(EVENT_KEY$4);var EVENT_CLICK_DISMISS="click.dismiss".concat(EVENT_KEY$4);var EVENT_MOUSEDOWN_DISMISS="mousedown.dismiss".concat(EVENT_KEY$4);var EVENT_KEYDOWN_DISMISS$1="keydown.dismiss".concat(EVENT_KEY$4);var EVENT_CLICK_DATA_API$2="click".concat(EVENT_KEY$4).concat(DATA_API_KEY$2);var CLASS_NAME_OPEN='modal-open';var CLASS_NAME_FADE$3='fade';var CLASS_NAME_SHOW$4='show';var CLASS_NAME_STATIC='modal-static';var OPEN_SELECTOR$1='.modal.show';var SELECTOR_DIALOG='.modal-dialog';var SELECTOR_MODAL_BODY='.modal-body';var SELECTOR_DATA_TOGGLE$2='[data-bs-toggle="modal"]';var Default$6={backdrop:true,focus:true,keyboard:true};var DefaultType$6={backdrop:'(boolean|string)',focus:'boolean',keyboard:'boolean'};var Modal=function(_BaseComponent6){function Modal(element,config){var _this23;_classCallCheck(this,Modal);_this23=_callSuper(this,Modal,[element,config]);_this23._dialog=SelectorEngine.findOne(SELECTOR_DIALOG,_this23._element);_this23._backdrop=_this23._initializeBackDrop();_this23._focustrap=_this23._initializeFocusTrap();_this23._isShown=false;_this23._isTransitioning=false;_this23._scrollBar=new ScrollBarHelper();_this23._addEventListeners();return _this23;}
_inherits(Modal,_BaseComponent6);return _createClass(Modal,[{key:"toggle",value:function toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);}},{key:"show",value:function show(relatedTarget){var _this24=this;if(this._isShown||this._isTransitioning){return;}
var showEvent=EventHandler.trigger(this._element,EVENT_SHOW$4,{relatedTarget:relatedTarget});if(showEvent.defaultPrevented){return;}
this._isShown=true;this._isTransitioning=true;this._scrollBar.hide();document.body.classList.add(CLASS_NAME_OPEN);this._adjustDialog();this._backdrop.show(function(){return _this24._showElement(relatedTarget);});}},{key:"hide",value:function hide(){var _this25=this;if(!this._isShown||this._isTransitioning){return;}
var hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$4);if(hideEvent.defaultPrevented){return;}
this._isShown=false;this._isTransitioning=true;this._focustrap.deactivate();this._element.classList.remove(CLASS_NAME_SHOW$4);this._queueCallback(function(){return _this25._hideModal();},this._element,this._isAnimated());}},{key:"dispose",value:function dispose(){EventHandler.off(window,EVENT_KEY$4);EventHandler.off(this._dialog,EVENT_KEY$4);this._backdrop.dispose();this._focustrap.deactivate();_superPropGet(Modal,"dispose",this,3)([]);}},{key:"handleUpdate",value:function handleUpdate(){this._adjustDialog();}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){return new Backdrop({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()});}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new FocusTrap({trapElement:this._element});}},{key:"_showElement",value:function _showElement(relatedTarget){var _this26=this;if(!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',true);this._element.setAttribute('role','dialog');this._element.scrollTop=0;var modalBody=SelectorEngine.findOne(SELECTOR_MODAL_BODY,this._dialog);if(modalBody){modalBody.scrollTop=0;}
reflow(this._element);this._element.classList.add(CLASS_NAME_SHOW$4);var transitionComplete=function transitionComplete(){if(_this26._config.focus){_this26._focustrap.activate();}
_this26._isTransitioning=false;EventHandler.trigger(_this26._element,EVENT_SHOWN$4,{relatedTarget:relatedTarget});};this._queueCallback(transitionComplete,this._dialog,this._isAnimated());}},{key:"_addEventListeners",value:function _addEventListeners(){var _this27=this;EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS$1,function(event){if(event.key!==ESCAPE_KEY$1){return;}
if(_this27._config.keyboard){_this27.hide();return;}
_this27._triggerBackdropTransition();});EventHandler.on(window,EVENT_RESIZE$1,function(){if(_this27._isShown&&!_this27._isTransitioning){_this27._adjustDialog();}});EventHandler.on(this._element,EVENT_MOUSEDOWN_DISMISS,function(event){EventHandler.one(_this27._element,EVENT_CLICK_DISMISS,function(event2){if(_this27._element!==event.target||_this27._element!==event2.target){return;}
if(_this27._config.backdrop==='static'){_this27._triggerBackdropTransition();return;}
if(_this27._config.backdrop){_this27.hide();}});});}},{key:"_hideModal",value:function _hideModal(){var _this28=this;this._element.style.display='none';this._element.setAttribute('aria-hidden',true);this._element.removeAttribute('aria-modal');this._element.removeAttribute('role');this._isTransitioning=false;this._backdrop.hide(function(){document.body.classList.remove(CLASS_NAME_OPEN);_this28._resetAdjustments();_this28._scrollBar.reset();EventHandler.trigger(_this28._element,EVENT_HIDDEN$4);});}},{key:"_isAnimated",value:function _isAnimated(){return this._element.classList.contains(CLASS_NAME_FADE$3);}},{key:"_triggerBackdropTransition",value:function _triggerBackdropTransition(){var _this29=this;var hideEvent=EventHandler.trigger(this._element,EVENT_HIDE_PREVENTED$1);if(hideEvent.defaultPrevented){return;}
var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;var initialOverflowY=this._element.style.overflowY;if(initialOverflowY==='hidden'||this._element.classList.contains(CLASS_NAME_STATIC)){return;}
if(!isModalOverflowing){this._element.style.overflowY='hidden';}
this._element.classList.add(CLASS_NAME_STATIC);this._queueCallback(function(){_this29._element.classList.remove(CLASS_NAME_STATIC);_this29._queueCallback(function(){_this29._element.style.overflowY=initialOverflowY;},_this29._dialog);},this._dialog);this._element.focus();}},{key:"_adjustDialog",value:function _adjustDialog(){var isModalOverflowing=this._element.scrollHeight>document.documentElement.clientHeight;var scrollbarWidth=this._scrollBar.getWidth();var isBodyOverflowing=scrollbarWidth>0;if(isBodyOverflowing&&!isModalOverflowing){var property=isRTL()?'paddingLeft':'paddingRight';this._element.style[property]="".concat(scrollbarWidth,"px");}
if(!isBodyOverflowing&&isModalOverflowing){var _property=isRTL()?'paddingRight':'paddingLeft';this._element.style[_property]="".concat(scrollbarWidth,"px");}}},{key:"_resetAdjustments",value:function _resetAdjustments(){this._element.style.paddingLeft='';this._element.style.paddingRight='';}}],[{key:"Default",get:function get(){return Default$6;}},{key:"DefaultType",get:function get(){return DefaultType$6;}},{key:"NAME",get:function get(){return NAME$7;}},{key:"jQueryInterface",value:function jQueryInterface(config,relatedTarget){return this.each(function(){var data=Modal.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config](relatedTarget);});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API$2,SELECTOR_DATA_TOGGLE$2,function(event){var _this30=this;var target=SelectorEngine.getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
EventHandler.one(target,EVENT_SHOW$4,function(showEvent){if(showEvent.defaultPrevented){return;}
EventHandler.one(target,EVENT_HIDDEN$4,function(){if(isVisible(_this30)){_this30.focus();}});});var alreadyOpen=SelectorEngine.findOne(OPEN_SELECTOR$1);if(alreadyOpen){Modal.getInstance(alreadyOpen).hide();}
var data=Modal.getOrCreateInstance(target);data.toggle(this);});enableDismissTrigger(Modal);defineJQueryPlugin(Modal);var NAME$6='offcanvas';var DATA_KEY$3='bs.offcanvas';var EVENT_KEY$3=".".concat(DATA_KEY$3);var DATA_API_KEY$1='.data-api';var EVENT_LOAD_DATA_API$2="load".concat(EVENT_KEY$3).concat(DATA_API_KEY$1);var ESCAPE_KEY='Escape';var CLASS_NAME_SHOW$3='show';var CLASS_NAME_SHOWING$1='showing';var CLASS_NAME_HIDING='hiding';var CLASS_NAME_BACKDROP='offcanvas-backdrop';var OPEN_SELECTOR='.offcanvas.show';var EVENT_SHOW$3="show".concat(EVENT_KEY$3);var EVENT_SHOWN$3="shown".concat(EVENT_KEY$3);var EVENT_HIDE$3="hide".concat(EVENT_KEY$3);var EVENT_HIDE_PREVENTED="hidePrevented".concat(EVENT_KEY$3);var EVENT_HIDDEN$3="hidden".concat(EVENT_KEY$3);var EVENT_RESIZE="resize".concat(EVENT_KEY$3);var EVENT_CLICK_DATA_API$1="click".concat(EVENT_KEY$3).concat(DATA_API_KEY$1);var EVENT_KEYDOWN_DISMISS="keydown.dismiss".concat(EVENT_KEY$3);var SELECTOR_DATA_TOGGLE$1='[data-bs-toggle="offcanvas"]';var Default$5={backdrop:true,keyboard:true,scroll:false};var DefaultType$5={backdrop:'(boolean|string)',keyboard:'boolean',scroll:'boolean'};var Offcanvas=function(_BaseComponent7){function Offcanvas(element,config){var _this31;_classCallCheck(this,Offcanvas);_this31=_callSuper(this,Offcanvas,[element,config]);_this31._isShown=false;_this31._backdrop=_this31._initializeBackDrop();_this31._focustrap=_this31._initializeFocusTrap();_this31._addEventListeners();return _this31;}
_inherits(Offcanvas,_BaseComponent7);return _createClass(Offcanvas,[{key:"toggle",value:function toggle(relatedTarget){return this._isShown?this.hide():this.show(relatedTarget);}},{key:"show",value:function show(relatedTarget){var _this32=this;if(this._isShown){return;}
var showEvent=EventHandler.trigger(this._element,EVENT_SHOW$3,{relatedTarget:relatedTarget});if(showEvent.defaultPrevented){return;}
this._isShown=true;this._backdrop.show();if(!this._config.scroll){new ScrollBarHelper().hide();}
this._element.setAttribute('aria-modal',true);this._element.setAttribute('role','dialog');this._element.classList.add(CLASS_NAME_SHOWING$1);var completeCallBack=function completeCallBack(){if(!_this32._config.scroll||_this32._config.backdrop){_this32._focustrap.activate();}
_this32._element.classList.add(CLASS_NAME_SHOW$3);_this32._element.classList.remove(CLASS_NAME_SHOWING$1);EventHandler.trigger(_this32._element,EVENT_SHOWN$3,{relatedTarget:relatedTarget});};this._queueCallback(completeCallBack,this._element,true);}},{key:"hide",value:function hide(){var _this33=this;if(!this._isShown){return;}
var hideEvent=EventHandler.trigger(this._element,EVENT_HIDE$3);if(hideEvent.defaultPrevented){return;}
this._focustrap.deactivate();this._element.blur();this._isShown=false;this._element.classList.add(CLASS_NAME_HIDING);this._backdrop.hide();var completeCallback=function completeCallback(){_this33._element.classList.remove(CLASS_NAME_SHOW$3,CLASS_NAME_HIDING);_this33._element.removeAttribute('aria-modal');_this33._element.removeAttribute('role');if(!_this33._config.scroll){new ScrollBarHelper().reset();}
EventHandler.trigger(_this33._element,EVENT_HIDDEN$3);};this._queueCallback(completeCallback,this._element,true);}},{key:"dispose",value:function dispose(){this._backdrop.dispose();this._focustrap.deactivate();_superPropGet(Offcanvas,"dispose",this,3)([]);}},{key:"_initializeBackDrop",value:function _initializeBackDrop(){var _this34=this;var clickCallback=function clickCallback(){if(_this34._config.backdrop==='static'){EventHandler.trigger(_this34._element,EVENT_HIDE_PREVENTED);return;}
_this34.hide();};var isVisible=Boolean(this._config.backdrop);return new Backdrop({className:CLASS_NAME_BACKDROP,isVisible:isVisible,isAnimated:true,rootElement:this._element.parentNode,clickCallback:isVisible?clickCallback:null});}},{key:"_initializeFocusTrap",value:function _initializeFocusTrap(){return new FocusTrap({trapElement:this._element});}},{key:"_addEventListeners",value:function _addEventListeners(){var _this35=this;EventHandler.on(this._element,EVENT_KEYDOWN_DISMISS,function(event){if(event.key!==ESCAPE_KEY){return;}
if(_this35._config.keyboard){_this35.hide();return;}
EventHandler.trigger(_this35._element,EVENT_HIDE_PREVENTED);});}}],[{key:"Default",get:function get(){return Default$5;}},{key:"DefaultType",get:function get(){return DefaultType$5;}},{key:"NAME",get:function get(){return NAME$6;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Offcanvas.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config](this);});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API$1,SELECTOR_DATA_TOGGLE$1,function(event){var _this36=this;var target=SelectorEngine.getElementFromSelector(this);if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
EventHandler.one(target,EVENT_HIDDEN$3,function(){if(isVisible(_this36)){_this36.focus();}});var alreadyOpen=SelectorEngine.findOne(OPEN_SELECTOR);if(alreadyOpen&&alreadyOpen!==target){Offcanvas.getInstance(alreadyOpen).hide();}
var data=Offcanvas.getOrCreateInstance(target);data.toggle(this);});EventHandler.on(window,EVENT_LOAD_DATA_API$2,function(){var _iterator16=_createForOfIteratorHelper(SelectorEngine.find(OPEN_SELECTOR)),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var selector=_step16.value;Offcanvas.getOrCreateInstance(selector).show();}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}});EventHandler.on(window,EVENT_RESIZE,function(){var _iterator17=_createForOfIteratorHelper(SelectorEngine.find('[aria-modal][class*=show][class*=offcanvas-]')),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var element=_step17.value;if(getComputedStyle(element).position!=='fixed'){Offcanvas.getOrCreateInstance(element).hide();}}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}});enableDismissTrigger(Offcanvas);defineJQueryPlugin(Offcanvas);var ARIA_ATTRIBUTE_PATTERN=/^aria-[\w-]*$/i;var DefaultAllowlist={'*':['class','dir','id','lang','role',ARIA_ATTRIBUTE_PATTERN],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:[]};var uriAttributes=new Set(['background','cite','href','itemtype','longdesc','poster','src','xlink:href']);var SAFE_URL_PATTERN=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i;var allowedAttribute=function allowedAttribute(attribute,allowedAttributeList){var attributeName=attribute.nodeName.toLowerCase();if(allowedAttributeList.includes(attributeName)){if(uriAttributes.has(attributeName)){return Boolean(SAFE_URL_PATTERN.test(attribute.nodeValue));}
return true;}
return allowedAttributeList.filter(function(attributeRegex){return attributeRegex instanceof RegExp;}).some(function(regex){return regex.test(attributeName);});};function sanitizeHtml(unsafeHtml,allowList,sanitizeFunction){var _ref12;if(!unsafeHtml.length){return unsafeHtml;}
if(sanitizeFunction&&typeof sanitizeFunction==='function'){return sanitizeFunction(unsafeHtml);}
var domParser=new window.DOMParser();var createdDocument=domParser.parseFromString(unsafeHtml,'text/html');var elements=(_ref12=[]).concat.apply(_ref12,_toConsumableArray(createdDocument.body.querySelectorAll('*')));var _iterator18=_createForOfIteratorHelper(elements),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _ref13;var element=_step18.value;var elementName=element.nodeName.toLowerCase();if(!Object.keys(allowList).includes(elementName)){element.remove();continue;}
var attributeList=(_ref13=[]).concat.apply(_ref13,_toConsumableArray(element.attributes));var allowedAttributes=[].concat(allowList['*']||[],allowList[elementName]||[]);var _iterator19=_createForOfIteratorHelper(attributeList),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var attribute=_step19.value;if(!allowedAttribute(attribute,allowedAttributes)){element.removeAttribute(attribute.nodeName);}}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}
return createdDocument.body.innerHTML;}
var NAME$5='TemplateFactory';var Default$4={allowList:DefaultAllowlist,content:{},extraClass:'',html:false,sanitize:true,sanitizeFn:null,template:'<div></div>'};var DefaultType$4={allowList:'object',content:'object',extraClass:'(string|function)',html:'boolean',sanitize:'boolean',sanitizeFn:'(null|function)',template:'string'};var DefaultContentType={entry:'(string|element|function|null)',selector:'(string|element)'};var TemplateFactory=function(_Config5){function TemplateFactory(config){var _this37;_classCallCheck(this,TemplateFactory);_this37=_callSuper(this,TemplateFactory);_this37._config=_this37._getConfig(config);return _this37;}
_inherits(TemplateFactory,_Config5);return _createClass(TemplateFactory,[{key:"getContent",value:function getContent(){var _this38=this;return Object.values(this._config.content).map(function(config){return _this38._resolvePossibleFunction(config);}).filter(Boolean);}},{key:"hasContent",value:function hasContent(){return this.getContent().length>0;}},{key:"changeContent",value:function changeContent(content){this._checkContent(content);this._config.content=_objectSpread(_objectSpread({},this._config.content),content);return this;}},{key:"toHtml",value:function toHtml(){var templateWrapper=document.createElement('div');templateWrapper.innerHTML=this._maybeSanitize(this._config.template);for(var _i8=0,_Object$entries5=Object.entries(this._config.content);_i8<_Object$entries5.length;_i8++){var _Object$entries5$_i=_slicedToArray(_Object$entries5[_i8],2),selector=_Object$entries5$_i[0],text=_Object$entries5$_i[1];this._setContent(templateWrapper,text,selector);}
var template=templateWrapper.children[0];var extraClass=this._resolvePossibleFunction(this._config.extraClass);if(extraClass){var _template$classList;(_template$classList=template.classList).add.apply(_template$classList,_toConsumableArray(extraClass.split(' ')));}
return template;}},{key:"_typeCheckConfig",value:function _typeCheckConfig(config){_superPropGet(TemplateFactory,"_typeCheckConfig",this,3)([config]);this._checkContent(config.content);}},{key:"_checkContent",value:function _checkContent(arg){for(var _i9=0,_Object$entries6=Object.entries(arg);_i9<_Object$entries6.length;_i9++){var _Object$entries6$_i=_slicedToArray(_Object$entries6[_i9],2),selector=_Object$entries6$_i[0],content=_Object$entries6$_i[1];_superPropGet(TemplateFactory,"_typeCheckConfig",this,3)([{selector:selector,entry:content},DefaultContentType]);}}},{key:"_setContent",value:function _setContent(template,content,selector){var templateElement=SelectorEngine.findOne(selector,template);if(!templateElement){return;}
content=this._resolvePossibleFunction(content);if(!content){templateElement.remove();return;}
if(isElement$1(content)){this._putElementInTemplate(getElement(content),templateElement);return;}
if(this._config.html){templateElement.innerHTML=this._maybeSanitize(content);return;}
templateElement.textContent=content;}},{key:"_maybeSanitize",value:function _maybeSanitize(arg){return this._config.sanitize?sanitizeHtml(arg,this._config.allowList,this._config.sanitizeFn):arg;}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(arg){return execute(arg,[this]);}},{key:"_putElementInTemplate",value:function _putElementInTemplate(element,templateElement){if(this._config.html){templateElement.innerHTML='';templateElement.append(element);return;}
templateElement.textContent=element.textContent;}}],[{key:"Default",get:function get(){return Default$4;}},{key:"DefaultType",get:function get(){return DefaultType$4;}},{key:"NAME",get:function get(){return NAME$5;}}]);}(Config);var NAME$4='tooltip';var DISALLOWED_ATTRIBUTES=new Set(['sanitize','allowList','sanitizeFn']);var CLASS_NAME_FADE$2='fade';var CLASS_NAME_MODAL='modal';var CLASS_NAME_SHOW$2='show';var SELECTOR_TOOLTIP_INNER='.tooltip-inner';var SELECTOR_MODAL=".".concat(CLASS_NAME_MODAL);var EVENT_MODAL_HIDE='hide.bs.modal';var TRIGGER_HOVER='hover';var TRIGGER_FOCUS='focus';var TRIGGER_CLICK='click';var TRIGGER_MANUAL='manual';var EVENT_HIDE$2='hide';var EVENT_HIDDEN$2='hidden';var EVENT_SHOW$2='show';var EVENT_SHOWN$2='shown';var EVENT_INSERTED='inserted';var EVENT_CLICK$1='click';var EVENT_FOCUSIN$1='focusin';var EVENT_FOCUSOUT$1='focusout';var EVENT_MOUSEENTER='mouseenter';var EVENT_MOUSELEAVE='mouseleave';var AttachmentMap={AUTO:'auto',TOP:'top',RIGHT:isRTL()?'left':'right',BOTTOM:'bottom',LEFT:isRTL()?'right':'left'};var Default$3={allowList:DefaultAllowlist,animation:true,boundary:'clippingParents',container:false,customClass:'',delay:0,fallbackPlacements:['top','right','bottom','left'],html:false,offset:[0,6],placement:'top',popperConfig:null,sanitize:true,sanitizeFn:null,selector:false,template:'<div class="tooltip" role="tooltip">'+'<div class="tooltip-arrow"></div>'+'<div class="tooltip-inner"></div>'+'</div>',title:'',trigger:'hover focus'};var DefaultType$3={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'};var Tooltip=function(_BaseComponent8){function Tooltip(element,config){var _this39;_classCallCheck(this,Tooltip);if(typeof Popper==='undefined'){throw new TypeError('Bootstrap\'s tooltips require Popper (https://popper.js.org)');}
_this39=_callSuper(this,Tooltip,[element,config]);_this39._isEnabled=true;_this39._timeout=0;_this39._isHovered=null;_this39._activeTrigger={};_this39._popper=null;_this39._templateFactory=null;_this39._newContent=null;_this39.tip=null;_this39._setListeners();if(!_this39._config.selector){_this39._fixTitle();}
return _this39;}
_inherits(Tooltip,_BaseComponent8);return _createClass(Tooltip,[{key:"enable",value:function enable(){this._isEnabled=true;}},{key:"disable",value:function disable(){this._isEnabled=false;}},{key:"toggleEnabled",value:function toggleEnabled(){this._isEnabled=!this._isEnabled;}},{key:"toggle",value:function toggle(){if(!this._isEnabled){return;}
this._activeTrigger.click=!this._activeTrigger.click;if(this._isShown()){this._leave();return;}
this._enter();}},{key:"dispose",value:function dispose(){clearTimeout(this._timeout);EventHandler.off(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler);if(this._element.getAttribute('data-bs-original-title')){this._element.setAttribute('title',this._element.getAttribute('data-bs-original-title'));}
this._disposePopper();_superPropGet(Tooltip,"dispose",this,3)([]);}},{key:"show",value:function show(){var _this40=this;if(this._element.style.display==='none'){throw new Error('Please use show on visible elements');}
if(!(this._isWithContent()&&this._isEnabled)){return;}
var showEvent=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_SHOW$2));var shadowRoot=_findShadowRoot(this._element);var isInTheDom=(shadowRoot||this._element.ownerDocument.documentElement).contains(this._element);if(showEvent.defaultPrevented||!isInTheDom){return;}
this._disposePopper();var tip=this._getTipElement();this._element.setAttribute('aria-describedby',tip.getAttribute('id'));var container=this._config.container;if(!this._element.ownerDocument.documentElement.contains(this.tip)){container.append(tip);EventHandler.trigger(this._element,this.constructor.eventName(EVENT_INSERTED));}
this._popper=this._createPopper(tip);tip.classList.add(CLASS_NAME_SHOW$2);if('ontouchstart' in document.documentElement){var _ref14;var _iterator20=_createForOfIteratorHelper((_ref14=[]).concat.apply(_ref14,_toConsumableArray(document.body.children))),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var element=_step20.value;EventHandler.on(element,'mouseover',noop);}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}
var complete=function complete(){EventHandler.trigger(_this40._element,_this40.constructor.eventName(EVENT_SHOWN$2));if(_this40._isHovered===false){_this40._leave();}
_this40._isHovered=false;};this._queueCallback(complete,this.tip,this._isAnimated());}},{key:"hide",value:function hide(){var _this41=this;if(!this._isShown()){return;}
var hideEvent=EventHandler.trigger(this._element,this.constructor.eventName(EVENT_HIDE$2));if(hideEvent.defaultPrevented){return;}
var tip=this._getTipElement();tip.classList.remove(CLASS_NAME_SHOW$2);if('ontouchstart' in document.documentElement){var _ref15;var _iterator21=_createForOfIteratorHelper((_ref15=[]).concat.apply(_ref15,_toConsumableArray(document.body.children))),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var element=_step21.value;EventHandler.off(element,'mouseover',noop);}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}}
this._activeTrigger[TRIGGER_CLICK]=false;this._activeTrigger[TRIGGER_FOCUS]=false;this._activeTrigger[TRIGGER_HOVER]=false;this._isHovered=null;var complete=function complete(){if(_this41._isWithActiveTrigger()){return;}
if(!_this41._isHovered){_this41._disposePopper();}
_this41._element.removeAttribute('aria-describedby');EventHandler.trigger(_this41._element,_this41.constructor.eventName(EVENT_HIDDEN$2));};this._queueCallback(complete,this.tip,this._isAnimated());}},{key:"update",value:function update(){if(this._popper){this._popper.update();}}},{key:"_isWithContent",value:function _isWithContent(){return Boolean(this._getTitle());}},{key:"_getTipElement",value:function _getTipElement(){if(!this.tip){this.tip=this._createTipElement(this._newContent||this._getContentForTemplate());}
return this.tip;}},{key:"_createTipElement",value:function _createTipElement(content){var tip=this._getTemplateFactory(content).toHtml();if(!tip){return null;}
tip.classList.remove(CLASS_NAME_FADE$2,CLASS_NAME_SHOW$2);tip.classList.add("bs-".concat(this.constructor.NAME,"-auto"));var tipId=getUID(this.constructor.NAME).toString();tip.setAttribute('id',tipId);if(this._isAnimated()){tip.classList.add(CLASS_NAME_FADE$2);}
return tip;}},{key:"setContent",value:function setContent(content){this._newContent=content;if(this._isShown()){this._disposePopper();this.show();}}},{key:"_getTemplateFactory",value:function _getTemplateFactory(content){if(this._templateFactory){this._templateFactory.changeContent(content);}else{this._templateFactory=new TemplateFactory(_objectSpread(_objectSpread({},this._config),{},{content:content,extraClass:this._resolvePossibleFunction(this._config.customClass)}));}
return this._templateFactory;}},{key:"_getContentForTemplate",value:function _getContentForTemplate(){return _defineProperty({},SELECTOR_TOOLTIP_INNER,this._getTitle());}},{key:"_getTitle",value:function _getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute('data-bs-original-title');}},{key:"_initializeOnDelegatedTarget",value:function _initializeOnDelegatedTarget(event){return this.constructor.getOrCreateInstance(event.delegateTarget,this._getDelegateConfig());}},{key:"_isAnimated",value:function _isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(CLASS_NAME_FADE$2);}},{key:"_isShown",value:function _isShown(){return this.tip&&this.tip.classList.contains(CLASS_NAME_SHOW$2);}},{key:"_createPopper",value:function _createPopper(tip){var placement=execute(this._config.placement,[this,tip,this._element]);var attachment=AttachmentMap[placement.toUpperCase()];return createPopper(this._element,tip,this._getPopperConfig(attachment));}},{key:"_getOffset",value:function _getOffset(){var _this42=this;var offset=this._config.offset;if(typeof offset==='string'){return offset.split(',').map(function(value){return Number.parseInt(value,10);});}
if(typeof offset==='function'){return function(popperData){return offset(popperData,_this42._element);};}
return offset;}},{key:"_resolvePossibleFunction",value:function _resolvePossibleFunction(arg){return execute(arg,[this._element]);}},{key:"_getPopperConfig",value:function _getPopperConfig(attachment){var _this43=this;var defaultBsPopperConfig={placement:attachment,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:".".concat(this.constructor.NAME,"-arrow")}},{name:'preSetPlacement',enabled:true,phase:'beforeMain',fn:function fn(data){_this43._getTipElement().setAttribute('data-popper-placement',data.state.placement);}}]};return _objectSpread(_objectSpread({},defaultBsPopperConfig),execute(this._config.popperConfig,[defaultBsPopperConfig]));}},{key:"_setListeners",value:function _setListeners(){var _this44=this;var triggers=this._config.trigger.split(' ');var _iterator22=_createForOfIteratorHelper(triggers),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var trigger=_step22.value;if(trigger==='click'){EventHandler.on(this._element,this.constructor.eventName(EVENT_CLICK$1),this._config.selector,function(event){var context=_this44._initializeOnDelegatedTarget(event);context.toggle();});}else if(trigger!==TRIGGER_MANUAL){var eventIn=trigger===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSEENTER):this.constructor.eventName(EVENT_FOCUSIN$1);var eventOut=trigger===TRIGGER_HOVER?this.constructor.eventName(EVENT_MOUSELEAVE):this.constructor.eventName(EVENT_FOCUSOUT$1);EventHandler.on(this._element,eventIn,this._config.selector,function(event){var context=_this44._initializeOnDelegatedTarget(event);context._activeTrigger[event.type==='focusin'?TRIGGER_FOCUS:TRIGGER_HOVER]=true;context._enter();});EventHandler.on(this._element,eventOut,this._config.selector,function(event){var context=_this44._initializeOnDelegatedTarget(event);context._activeTrigger[event.type==='focusout'?TRIGGER_FOCUS:TRIGGER_HOVER]=context._element.contains(event.relatedTarget);context._leave();});}}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}
this._hideModalHandler=function(){if(_this44._element){_this44.hide();}};EventHandler.on(this._element.closest(SELECTOR_MODAL),EVENT_MODAL_HIDE,this._hideModalHandler);}},{key:"_fixTitle",value:function _fixTitle(){var title=this._element.getAttribute('title');if(!title){return;}
if(!this._element.getAttribute('aria-label')&&!this._element.textContent.trim()){this._element.setAttribute('aria-label',title);}
this._element.setAttribute('data-bs-original-title',title);this._element.removeAttribute('title');}},{key:"_enter",value:function _enter(){var _this45=this;if(this._isShown()||this._isHovered){this._isHovered=true;return;}
this._isHovered=true;this._setTimeout(function(){if(_this45._isHovered){_this45.show();}},this._config.delay.show);}},{key:"_leave",value:function _leave(){var _this46=this;if(this._isWithActiveTrigger()){return;}
this._isHovered=false;this._setTimeout(function(){if(!_this46._isHovered){_this46.hide();}},this._config.delay.hide);}},{key:"_setTimeout",value:function _setTimeout(handler,timeout){clearTimeout(this._timeout);this._timeout=setTimeout(handler,timeout);}},{key:"_isWithActiveTrigger",value:function _isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(true);}},{key:"_getConfig",value:function _getConfig(config){var dataAttributes=Manipulator.getDataAttributes(this._element);for(var _i10=0,_Object$keys2=Object.keys(dataAttributes);_i10<_Object$keys2.length;_i10++){var dataAttribute=_Object$keys2[_i10];if(DISALLOWED_ATTRIBUTES.has(dataAttribute)){delete dataAttributes[dataAttribute];}}
config=_objectSpread(_objectSpread({},dataAttributes),_typeof(config)==='object'&&config?config:{});config=this._mergeConfigObj(config);config=this._configAfterMerge(config);this._typeCheckConfig(config);return config;}},{key:"_configAfterMerge",value:function _configAfterMerge(config){config.container=config.container===false?document.body:getElement(config.container);if(typeof config.delay==='number'){config.delay={show:config.delay,hide:config.delay};}
if(typeof config.title==='number'){config.title=config.title.toString();}
if(typeof config.content==='number'){config.content=config.content.toString();}
return config;}},{key:"_getDelegateConfig",value:function _getDelegateConfig(){var config={};for(var _i11=0,_Object$entries7=Object.entries(this._config);_i11<_Object$entries7.length;_i11++){var _Object$entries7$_i=_slicedToArray(_Object$entries7[_i11],2),key=_Object$entries7$_i[0],value=_Object$entries7$_i[1];if(this.constructor.Default[key]!==value){config[key]=value;}}
config.selector=false;config.trigger='manual';return config;}},{key:"_disposePopper",value:function _disposePopper(){if(this._popper){this._popper.destroy();this._popper=null;}
if(this.tip){this.tip.remove();this.tip=null;}}}],[{key:"Default",get:function get(){return Default$3;}},{key:"DefaultType",get:function get(){return DefaultType$3;}},{key:"NAME",get:function get(){return NAME$4;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Tooltip.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();});}}]);}(BaseComponent);defineJQueryPlugin(Tooltip);var NAME$3='popover';var SELECTOR_TITLE='.popover-header';var SELECTOR_CONTENT='.popover-body';var Default$2=_objectSpread(_objectSpread({},Tooltip.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'});var DefaultType$2=_objectSpread(_objectSpread({},Tooltip.DefaultType),{},{content:'(null|string|element|function)'});var Popover=function(_Tooltip){function Popover(){_classCallCheck(this,Popover);return _callSuper(this,Popover,arguments);}
_inherits(Popover,_Tooltip);return _createClass(Popover,[{key:"_isWithContent",value:function _isWithContent(){return this._getTitle()||this._getContent();}},{key:"_getContentForTemplate",value:function _getContentForTemplate(){return _defineProperty(_defineProperty({},SELECTOR_TITLE,this._getTitle()),SELECTOR_CONTENT,this._getContent());}},{key:"_getContent",value:function _getContent(){return this._resolvePossibleFunction(this._config.content);}}],[{key:"Default",get:function get(){return Default$2;}},{key:"DefaultType",get:function get(){return DefaultType$2;}},{key:"NAME",get:function get(){return NAME$3;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Popover.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();});}}]);}(Tooltip);defineJQueryPlugin(Popover);var NAME$2='scrollspy';var DATA_KEY$2='bs.scrollspy';var EVENT_KEY$2=".".concat(DATA_KEY$2);var DATA_API_KEY='.data-api';var EVENT_ACTIVATE="activate".concat(EVENT_KEY$2);var EVENT_CLICK="click".concat(EVENT_KEY$2);var EVENT_LOAD_DATA_API$1="load".concat(EVENT_KEY$2).concat(DATA_API_KEY);var CLASS_NAME_DROPDOWN_ITEM='dropdown-item';var CLASS_NAME_ACTIVE$1='active';var SELECTOR_DATA_SPY='[data-bs-spy="scroll"]';var SELECTOR_TARGET_LINKS='[href]';var SELECTOR_NAV_LIST_GROUP='.nav, .list-group';var SELECTOR_NAV_LINKS='.nav-link';var SELECTOR_NAV_ITEMS='.nav-item';var SELECTOR_LIST_ITEMS='.list-group-item';var SELECTOR_LINK_ITEMS="".concat(SELECTOR_NAV_LINKS,", ").concat(SELECTOR_NAV_ITEMS," > ").concat(SELECTOR_NAV_LINKS,", ").concat(SELECTOR_LIST_ITEMS);var SELECTOR_DROPDOWN='.dropdown';var SELECTOR_DROPDOWN_TOGGLE$1='.dropdown-toggle';var Default$1={offset:null,rootMargin:'0px 0px -25%',smoothScroll:false,target:null,threshold:[0.1,0.5,1]};var DefaultType$1={offset:'(number|null)',rootMargin:'string',smoothScroll:'boolean',target:'element',threshold:'array'};var ScrollSpy=function(_BaseComponent9){function ScrollSpy(element,config){var _this47;_classCallCheck(this,ScrollSpy);_this47=_callSuper(this,ScrollSpy,[element,config]);_this47._targetLinks=new Map();_this47._observableSections=new Map();_this47._rootElement=getComputedStyle(_this47._element).overflowY==='visible'?null:_this47._element;_this47._activeTarget=null;_this47._observer=null;_this47._previousScrollData={visibleEntryTop:0,parentScrollTop:0};_this47.refresh();return _this47;}
_inherits(ScrollSpy,_BaseComponent9);return _createClass(ScrollSpy,[{key:"refresh",value:function refresh(){this._initializeTargetsAndObservables();this._maybeEnableSmoothScroll();if(this._observer){this._observer.disconnect();}else{this._observer=this._getNewObserver();}
var _iterator23=_createForOfIteratorHelper(this._observableSections.values()),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var section=_step23.value;this._observer.observe(section);}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}}},{key:"dispose",value:function dispose(){this._observer.disconnect();_superPropGet(ScrollSpy,"dispose",this,3)([]);}},{key:"_configAfterMerge",value:function _configAfterMerge(config){config.target=getElement(config.target)||document.body;config.rootMargin=config.offset?"".concat(config.offset,"px 0px -30%"):config.rootMargin;if(typeof config.threshold==='string'){config.threshold=config.threshold.split(',').map(function(value){return Number.parseFloat(value);});}
return config;}},{key:"_maybeEnableSmoothScroll",value:function _maybeEnableSmoothScroll(){var _this48=this;if(!this._config.smoothScroll){return;}
EventHandler.off(this._config.target,EVENT_CLICK);EventHandler.on(this._config.target,EVENT_CLICK,SELECTOR_TARGET_LINKS,function(event){var observableSection=_this48._observableSections.get(event.target.hash);if(observableSection){event.preventDefault();var root=_this48._rootElement||window;var height=observableSection.offsetTop-_this48._element.offsetTop;if(root.scrollTo){root.scrollTo({top:height,behavior:'smooth'});return;}
root.scrollTop=height;}});}},{key:"_getNewObserver",value:function _getNewObserver(){var _this49=this;var options={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(function(entries){return _this49._observerCallback(entries);},options);}},{key:"_observerCallback",value:function _observerCallback(entries){var _this50=this;var targetElement=function targetElement(entry){return _this50._targetLinks.get("#".concat(entry.target.id));};var activate=function activate(entry){_this50._previousScrollData.visibleEntryTop=entry.target.offsetTop;_this50._process(targetElement(entry));};var parentScrollTop=(this._rootElement||document.documentElement).scrollTop;var userScrollsDown=parentScrollTop>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=parentScrollTop;var _iterator24=_createForOfIteratorHelper(entries),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var entry=_step24.value;if(!entry.isIntersecting){this._activeTarget=null;this._clearActiveClass(targetElement(entry));continue;}
var entryIsLowerThanPrevious=entry.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(userScrollsDown&&entryIsLowerThanPrevious){activate(entry);if(!parentScrollTop){return;}
continue;}
if(!userScrollsDown&&!entryIsLowerThanPrevious){activate(entry);}}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}}},{key:"_initializeTargetsAndObservables",value:function _initializeTargetsAndObservables(){this._targetLinks=new Map();this._observableSections=new Map();var targetLinks=SelectorEngine.find(SELECTOR_TARGET_LINKS,this._config.target);var _iterator25=_createForOfIteratorHelper(targetLinks),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var anchor=_step25.value;if(!anchor.hash||isDisabled(anchor)){continue;}
var observableSection=SelectorEngine.findOne(decodeURI(anchor.hash),this._element);if(isVisible(observableSection)){this._targetLinks.set(decodeURI(anchor.hash),anchor);this._observableSections.set(anchor.hash,observableSection);}}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}},{key:"_process",value:function _process(target){if(this._activeTarget===target){return;}
this._clearActiveClass(this._config.target);this._activeTarget=target;target.classList.add(CLASS_NAME_ACTIVE$1);this._activateParents(target);EventHandler.trigger(this._element,EVENT_ACTIVATE,{relatedTarget:target});}},{key:"_activateParents",value:function _activateParents(target){if(target.classList.contains(CLASS_NAME_DROPDOWN_ITEM)){SelectorEngine.findOne(SELECTOR_DROPDOWN_TOGGLE$1,target.closest(SELECTOR_DROPDOWN)).classList.add(CLASS_NAME_ACTIVE$1);return;}
var _iterator26=_createForOfIteratorHelper(SelectorEngine.parents(target,SELECTOR_NAV_LIST_GROUP)),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var listGroup=_step26.value;var _iterator27=_createForOfIteratorHelper(SelectorEngine.prev(listGroup,SELECTOR_LINK_ITEMS)),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var item=_step27.value;item.classList.add(CLASS_NAME_ACTIVE$1);}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}}},{key:"_clearActiveClass",value:function _clearActiveClass(parent){parent.classList.remove(CLASS_NAME_ACTIVE$1);var activeNodes=SelectorEngine.find("".concat(SELECTOR_TARGET_LINKS,".").concat(CLASS_NAME_ACTIVE$1),parent);var _iterator28=_createForOfIteratorHelper(activeNodes),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var node=_step28.value;node.classList.remove(CLASS_NAME_ACTIVE$1);}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}}],[{key:"Default",get:function get(){return Default$1;}},{key:"DefaultType",get:function get(){return DefaultType$1;}},{key:"NAME",get:function get(){return NAME$2;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=ScrollSpy.getOrCreateInstance(this,config);if(typeof config!=='string'){return;}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();});}}]);}(BaseComponent);EventHandler.on(window,EVENT_LOAD_DATA_API$1,function(){var _iterator29=_createForOfIteratorHelper(SelectorEngine.find(SELECTOR_DATA_SPY)),_step29;try{for(_iterator29.s();!(_step29=_iterator29.n()).done;){var spy=_step29.value;ScrollSpy.getOrCreateInstance(spy);}}catch(err){_iterator29.e(err);}finally{_iterator29.f();}});defineJQueryPlugin(ScrollSpy);var NAME$1='tab';var DATA_KEY$1='bs.tab';var EVENT_KEY$1=".".concat(DATA_KEY$1);var EVENT_HIDE$1="hide".concat(EVENT_KEY$1);var EVENT_HIDDEN$1="hidden".concat(EVENT_KEY$1);var EVENT_SHOW$1="show".concat(EVENT_KEY$1);var EVENT_SHOWN$1="shown".concat(EVENT_KEY$1);var EVENT_CLICK_DATA_API="click".concat(EVENT_KEY$1);var EVENT_KEYDOWN="keydown".concat(EVENT_KEY$1);var EVENT_LOAD_DATA_API="load".concat(EVENT_KEY$1);var ARROW_LEFT_KEY='ArrowLeft';var ARROW_RIGHT_KEY='ArrowRight';var ARROW_UP_KEY='ArrowUp';var ARROW_DOWN_KEY='ArrowDown';var HOME_KEY='Home';var END_KEY='End';var CLASS_NAME_ACTIVE='active';var CLASS_NAME_FADE$1='fade';var CLASS_NAME_SHOW$1='show';var CLASS_DROPDOWN='dropdown';var SELECTOR_DROPDOWN_TOGGLE='.dropdown-toggle';var SELECTOR_DROPDOWN_MENU='.dropdown-menu';var NOT_SELECTOR_DROPDOWN_TOGGLE=":not(".concat(SELECTOR_DROPDOWN_TOGGLE,")");var SELECTOR_TAB_PANEL='.list-group, .nav, [role="tablist"]';var SELECTOR_OUTER='.nav-item, .list-group-item';var SELECTOR_INNER=".nav-link".concat(NOT_SELECTOR_DROPDOWN_TOGGLE,", .list-group-item").concat(NOT_SELECTOR_DROPDOWN_TOGGLE,", [role=\"tab\"]").concat(NOT_SELECTOR_DROPDOWN_TOGGLE);var SELECTOR_DATA_TOGGLE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]';var SELECTOR_INNER_ELEM="".concat(SELECTOR_INNER,", ").concat(SELECTOR_DATA_TOGGLE);var SELECTOR_DATA_TOGGLE_ACTIVE=".".concat(CLASS_NAME_ACTIVE,"[data-bs-toggle=\"tab\"], .").concat(CLASS_NAME_ACTIVE,"[data-bs-toggle=\"pill\"], .").concat(CLASS_NAME_ACTIVE,"[data-bs-toggle=\"list\"]");var Tab=function(_BaseComponent10){function Tab(element){var _this51;_classCallCheck(this,Tab);_this51=_callSuper(this,Tab,[element]);_this51._parent=_this51._element.closest(SELECTOR_TAB_PANEL);if(!_this51._parent){return _possibleConstructorReturn(_this51);}
_this51._setInitialAttributes(_this51._parent,_this51._getChildren());EventHandler.on(_this51._element,EVENT_KEYDOWN,function(event){return _this51._keydown(event);});return _this51;}
_inherits(Tab,_BaseComponent10);return _createClass(Tab,[{key:"show",value:function show(){var innerElem=this._element;if(this._elemIsActive(innerElem)){return;}
var active=this._getActiveElem();var hideEvent=active?EventHandler.trigger(active,EVENT_HIDE$1,{relatedTarget:innerElem}):null;var showEvent=EventHandler.trigger(innerElem,EVENT_SHOW$1,{relatedTarget:active});if(showEvent.defaultPrevented||hideEvent&&hideEvent.defaultPrevented){return;}
this._deactivate(active,innerElem);this._activate(innerElem,active);}},{key:"_activate",value:function _activate(element,relatedElem){var _this52=this;if(!element){return;}
element.classList.add(CLASS_NAME_ACTIVE);this._activate(SelectorEngine.getElementFromSelector(element));var complete=function complete(){if(element.getAttribute('role')!=='tab'){element.classList.add(CLASS_NAME_SHOW$1);return;}
element.removeAttribute('tabindex');element.setAttribute('aria-selected',true);_this52._toggleDropDown(element,true);EventHandler.trigger(element,EVENT_SHOWN$1,{relatedTarget:relatedElem});};this._queueCallback(complete,element,element.classList.contains(CLASS_NAME_FADE$1));}},{key:"_deactivate",value:function _deactivate(element,relatedElem){var _this53=this;if(!element){return;}
element.classList.remove(CLASS_NAME_ACTIVE);element.blur();this._deactivate(SelectorEngine.getElementFromSelector(element));var complete=function complete(){if(element.getAttribute('role')!=='tab'){element.classList.remove(CLASS_NAME_SHOW$1);return;}
element.setAttribute('aria-selected',false);element.setAttribute('tabindex','-1');_this53._toggleDropDown(element,false);EventHandler.trigger(element,EVENT_HIDDEN$1,{relatedTarget:relatedElem});};this._queueCallback(complete,element,element.classList.contains(CLASS_NAME_FADE$1));}},{key:"_keydown",value:function _keydown(event){if(![ARROW_LEFT_KEY,ARROW_RIGHT_KEY,ARROW_UP_KEY,ARROW_DOWN_KEY,HOME_KEY,END_KEY].includes(event.key)){return;}
event.stopPropagation();event.preventDefault();var children=this._getChildren().filter(function(element){return!isDisabled(element);});var nextActiveElement;if([HOME_KEY,END_KEY].includes(event.key)){nextActiveElement=children[event.key===HOME_KEY?0:children.length-1];}else{var isNext=[ARROW_RIGHT_KEY,ARROW_DOWN_KEY].includes(event.key);nextActiveElement=getNextActiveElement(children,event.target,isNext,true);}
if(nextActiveElement){nextActiveElement.focus({preventScroll:true});Tab.getOrCreateInstance(nextActiveElement).show();}}},{key:"_getChildren",value:function _getChildren(){return SelectorEngine.find(SELECTOR_INNER_ELEM,this._parent);}},{key:"_getActiveElem",value:function _getActiveElem(){var _this54=this;return this._getChildren().find(function(child){return _this54._elemIsActive(child);})||null;}},{key:"_setInitialAttributes",value:function _setInitialAttributes(parent,children){this._setAttributeIfNotExists(parent,'role','tablist');var _iterator30=_createForOfIteratorHelper(children),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var child=_step30.value;this._setInitialAttributesOnChild(child);}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}}},{key:"_setInitialAttributesOnChild",value:function _setInitialAttributesOnChild(child){child=this._getInnerElement(child);var isActive=this._elemIsActive(child);var outerElem=this._getOuterElement(child);child.setAttribute('aria-selected',isActive);if(outerElem!==child){this._setAttributeIfNotExists(outerElem,'role','presentation');}
if(!isActive){child.setAttribute('tabindex','-1');}
this._setAttributeIfNotExists(child,'role','tab');this._setInitialAttributesOnTargetPanel(child);}},{key:"_setInitialAttributesOnTargetPanel",value:function _setInitialAttributesOnTargetPanel(child){var target=SelectorEngine.getElementFromSelector(child);if(!target){return;}
this._setAttributeIfNotExists(target,'role','tabpanel');if(child.id){this._setAttributeIfNotExists(target,'aria-labelledby',"".concat(child.id));}}},{key:"_toggleDropDown",value:function _toggleDropDown(element,open){var outerElem=this._getOuterElement(element);if(!outerElem.classList.contains(CLASS_DROPDOWN)){return;}
var toggle=function toggle(selector,className){var element=SelectorEngine.findOne(selector,outerElem);if(element){element.classList.toggle(className,open);}};toggle(SELECTOR_DROPDOWN_TOGGLE,CLASS_NAME_ACTIVE);toggle(SELECTOR_DROPDOWN_MENU,CLASS_NAME_SHOW$1);outerElem.setAttribute('aria-expanded',open);}},{key:"_setAttributeIfNotExists",value:function _setAttributeIfNotExists(element,attribute,value){if(!element.hasAttribute(attribute)){element.setAttribute(attribute,value);}}},{key:"_elemIsActive",value:function _elemIsActive(elem){return elem.classList.contains(CLASS_NAME_ACTIVE);}},{key:"_getInnerElement",value:function _getInnerElement(elem){return elem.matches(SELECTOR_INNER_ELEM)?elem:SelectorEngine.findOne(SELECTOR_INNER_ELEM,elem);}},{key:"_getOuterElement",value:function _getOuterElement(elem){return elem.closest(SELECTOR_OUTER)||elem;}}],[{key:"NAME",get:function get(){return NAME$1;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Tab.getOrCreateInstance(this);if(typeof config!=='string'){return;}
if(data[config]===undefined||config.startsWith('_')||config==='constructor'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config]();});}}]);}(BaseComponent);EventHandler.on(document,EVENT_CLICK_DATA_API,SELECTOR_DATA_TOGGLE,function(event){if(['A','AREA'].includes(this.tagName)){event.preventDefault();}
if(isDisabled(this)){return;}
Tab.getOrCreateInstance(this).show();});EventHandler.on(window,EVENT_LOAD_DATA_API,function(){var _iterator31=_createForOfIteratorHelper(SelectorEngine.find(SELECTOR_DATA_TOGGLE_ACTIVE)),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var element=_step31.value;Tab.getOrCreateInstance(element);}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}});defineJQueryPlugin(Tab);var NAME='toast';var DATA_KEY='bs.toast';var EVENT_KEY=".".concat(DATA_KEY);var EVENT_MOUSEOVER="mouseover".concat(EVENT_KEY);var EVENT_MOUSEOUT="mouseout".concat(EVENT_KEY);var EVENT_FOCUSIN="focusin".concat(EVENT_KEY);var EVENT_FOCUSOUT="focusout".concat(EVENT_KEY);var EVENT_HIDE="hide".concat(EVENT_KEY);var EVENT_HIDDEN="hidden".concat(EVENT_KEY);var EVENT_SHOW="show".concat(EVENT_KEY);var EVENT_SHOWN="shown".concat(EVENT_KEY);var CLASS_NAME_FADE='fade';var CLASS_NAME_HIDE='hide';var CLASS_NAME_SHOW='show';var CLASS_NAME_SHOWING='showing';var DefaultType={animation:'boolean',autohide:'boolean',delay:'number'};var Default={animation:true,autohide:true,delay:5000};var Toast=function(_BaseComponent11){function Toast(element,config){var _this55;_classCallCheck(this,Toast);_this55=_callSuper(this,Toast,[element,config]);_this55._timeout=null;_this55._hasMouseInteraction=false;_this55._hasKeyboardInteraction=false;_this55._setListeners();return _this55;}
_inherits(Toast,_BaseComponent11);return _createClass(Toast,[{key:"show",value:function show(){var _this56=this;var showEvent=EventHandler.trigger(this._element,EVENT_SHOW);if(showEvent.defaultPrevented){return;}
this._clearTimeout();if(this._config.animation){this._element.classList.add(CLASS_NAME_FADE);}
var complete=function complete(){_this56._element.classList.remove(CLASS_NAME_SHOWING);EventHandler.trigger(_this56._element,EVENT_SHOWN);_this56._maybeScheduleHide();};this._element.classList.remove(CLASS_NAME_HIDE);reflow(this._element);this._element.classList.add(CLASS_NAME_SHOW,CLASS_NAME_SHOWING);this._queueCallback(complete,this._element,this._config.animation);}},{key:"hide",value:function hide(){var _this57=this;if(!this.isShown()){return;}
var hideEvent=EventHandler.trigger(this._element,EVENT_HIDE);if(hideEvent.defaultPrevented){return;}
var complete=function complete(){_this57._element.classList.add(CLASS_NAME_HIDE);_this57._element.classList.remove(CLASS_NAME_SHOWING,CLASS_NAME_SHOW);EventHandler.trigger(_this57._element,EVENT_HIDDEN);};this._element.classList.add(CLASS_NAME_SHOWING);this._queueCallback(complete,this._element,this._config.animation);}},{key:"dispose",value:function dispose(){this._clearTimeout();if(this.isShown()){this._element.classList.remove(CLASS_NAME_SHOW);}
_superPropGet(Toast,"dispose",this,3)([]);}},{key:"isShown",value:function isShown(){return this._element.classList.contains(CLASS_NAME_SHOW);}},{key:"_maybeScheduleHide",value:function _maybeScheduleHide(){var _this58=this;if(!this._config.autohide){return;}
if(this._hasMouseInteraction||this._hasKeyboardInteraction){return;}
this._timeout=setTimeout(function(){_this58.hide();},this._config.delay);}},{key:"_onInteraction",value:function _onInteraction(event,isInteracting){switch(event.type){case'mouseover':case'mouseout':{this._hasMouseInteraction=isInteracting;break;}
case'focusin':case'focusout':{this._hasKeyboardInteraction=isInteracting;break;}}
if(isInteracting){this._clearTimeout();return;}
var nextElement=event.relatedTarget;if(this._element===nextElement||this._element.contains(nextElement)){return;}
this._maybeScheduleHide();}},{key:"_setListeners",value:function _setListeners(){var _this59=this;EventHandler.on(this._element,EVENT_MOUSEOVER,function(event){return _this59._onInteraction(event,true);});EventHandler.on(this._element,EVENT_MOUSEOUT,function(event){return _this59._onInteraction(event,false);});EventHandler.on(this._element,EVENT_FOCUSIN,function(event){return _this59._onInteraction(event,true);});EventHandler.on(this._element,EVENT_FOCUSOUT,function(event){return _this59._onInteraction(event,false);});}},{key:"_clearTimeout",value:function _clearTimeout(){clearTimeout(this._timeout);this._timeout=null;}}],[{key:"Default",get:function get(){return Default;}},{key:"DefaultType",get:function get(){return DefaultType;}},{key:"NAME",get:function get(){return NAME;}},{key:"jQueryInterface",value:function jQueryInterface(config){return this.each(function(){var data=Toast.getOrCreateInstance(this,config);if(typeof config==='string'){if(typeof data[config]==='undefined'){throw new TypeError("No method named \"".concat(config,"\""));}
data[config](this);}});}}]);}(BaseComponent);enableDismissTrigger(Toast);defineJQueryPlugin(Toast);var index_umd={Alert:Alert,Button:Button,Carousel:Carousel,Collapse:Collapse,Dropdown:Dropdown,Modal:Modal,Offcanvas:Offcanvas,Popover:Popover,ScrollSpy:ScrollSpy,Tab:Tab,Toast:Toast,Tooltip:Tooltip};return index_umd;});"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","./jquery.validate"],factory);}else if((typeof module==="undefined"?"undefined":_typeof(module))==="object"&&module.exports){module.exports=factory(require("jquery"));}else{factory(jQuery);}})(function($){(function(){function stripHtml(value){return value.replace(/<.[^<>]*?>/g," ").replace(/&nbsp;|&#160;/gi," ").replace(/[.(),;:!?%#$'\"_+=\/\-“”’]*/g,"");}
$.validator.addMethod("maxWords",function(value,element,params){return this.optional(element)||stripHtml(value).match(/\b\w+\b/g).length<=params;},$.validator.format("Please enter {0} words or less."));$.validator.addMethod("minWords",function(value,element,params){return this.optional(element)||stripHtml(value).match(/\b\w+\b/g).length>=params;},$.validator.format("Please enter at least {0} words."));$.validator.addMethod("rangeWords",function(value,element,params){var valueStripped=stripHtml(value),regex=/\b\w+\b/g;return this.optional(element)||valueStripped.match(regex).length>=params[0]&&valueStripped.match(regex).length<=params[1];},$.validator.format("Please enter between {0} and {1} words."));})();$.validator.addMethod("abaRoutingNumber",function(value){var checksum=0;var tokens=value.split("");var length=tokens.length;if(length!==9){return false;}
for(var i=0;i<length;i+=3){checksum+=parseInt(tokens[i],10)*3+parseInt(tokens[i+1],10)*7+parseInt(tokens[i+2],10);}
if(checksum!==0&&checksum%10===0){return true;}
return false;},"Please enter a valid routing number.");$.validator.addMethod("accept",function(value,element,param){var typeParam=typeof param==="string"?param.replace(/\s/g,""):"image/*",optionalValue=this.optional(element),i,file,regex;if(optionalValue){return optionalValue;}
if($(element).attr("type")==="file"){typeParam=typeParam.replace(/[\-\[\]\/\{\}\(\)\+\?\.\\\^\$\|]/g,"\\$&").replace(/,/g,"|").replace(/\/\*/g,"/.*");if(element.files&&element.files.length){regex=new RegExp(".?("+typeParam+")$","i");for(i=0;i<element.files.length;i++){file=element.files[i];if(!file.type.match(regex)){return false;}}}}
return true;},$.validator.format("Please enter a value with a valid mimetype."));$.validator.addMethod("alphanumeric",function(value,element){return this.optional(element)||/^\w+$/i.test(value);},"Letters, numbers, and underscores only please.");$.validator.addMethod("bankaccountNL",function(value,element){if(this.optional(element)){return true;}
if(!/^[0-9]{9}|([0-9]{2} ){3}[0-9]{3}$/.test(value)){return false;}
var account=value.replace(/ /g,""),sum=0,len=account.length,pos,factor,digit;for(pos=0;pos<len;pos++){factor=len-pos;digit=account.substring(pos,pos+1);sum=sum+factor*digit;}
return sum%11===0;},"Please specify a valid bank account number.");$.validator.addMethod("bankorgiroaccountNL",function(value,element){return this.optional(element)||$.validator.methods.bankaccountNL.call(this,value,element)||$.validator.methods.giroaccountNL.call(this,value,element);},"Please specify a valid bank or giro account number.");$.validator.addMethod("bic",function(value,element){return this.optional(element)||/^([A-Z]{6}[A-Z2-9][A-NP-Z1-9])(X{3}|[A-WY-Z0-9][A-Z0-9]{2})?$/.test(value.toUpperCase());},"Please specify a valid BIC code.");$.validator.addMethod("cifES",function(value,element){"use strict";if(this.optional(element)){return true;}
var cifRegEx=new RegExp(/^([ABCDEFGHJKLMNPQRSUVW])(\d{7})([0-9A-J])$/gi);var letter=value.substring(0,1),number=value.substring(1,8),control=value.substring(8,9),all_sum=0,even_sum=0,odd_sum=0,i,n,control_digit,control_letter;function isOdd(n){return n%2===0;}
if(value.length!==9||!cifRegEx.test(value)){return false;}
for(i=0;i<number.length;i++){n=parseInt(number[i],10);if(isOdd(i)){n*=2;odd_sum+=n<10?n:n-9;}else{even_sum+=n;}}
all_sum=even_sum+odd_sum;control_digit=(10-all_sum.toString().substr(-1)).toString();control_digit=parseInt(control_digit,10)>9?"0":control_digit;control_letter="JABCDEFGHI".substr(control_digit,1).toString();if(letter.match(/[ABEH]/)){return control===control_digit;}else if(letter.match(/[KPQS]/)){return control===control_letter;}
return control===control_digit||control===control_letter;},"Please specify a valid CIF number.");$.validator.addMethod("cnhBR",function(value){value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11){return false;}
var sum=0,dsc=0,firstChar,firstCN,secondCN,i,j,v;firstChar=value.charAt(0);if(new Array(12).join(firstChar)===value){return false;}
for(i=0,j=9,v=0;i<9;++i,--j){sum+=+(value.charAt(i)*j);}
firstCN=sum%11;if(firstCN>=10){firstCN=0;dsc=2;}
sum=0;for(i=0,j=1,v=0;i<9;++i,++j){sum+=+(value.charAt(i)*j);}
secondCN=sum%11;if(secondCN>=10){secondCN=0;}else{secondCN=secondCN-dsc;}
return String(firstCN).concat(secondCN)===value.substr(-2);},"Please specify a valid CNH number.");$.validator.addMethod("cnpjBR",function(value,element){"use strict";if(this.optional(element)){return true;}
value=value.replace(/[^\d]+/g,"");if(value.length!==14){return false;}
if(value==="00000000000000"||value==="11111111111111"||value==="22222222222222"||value==="33333333333333"||value==="44444444444444"||value==="55555555555555"||value==="66666666666666"||value==="77777777777777"||value==="88888888888888"||value==="99999999999999"){return false;}
var tamanho=value.length-2;var numeros=value.substring(0,tamanho);var digitos=value.substring(tamanho);var soma=0;var pos=tamanho-7;for(var i=tamanho;i>=1;i--){soma+=numeros.charAt(tamanho-i)*pos--;if(pos<2){pos=9;}}
var resultado=soma%11<2?0:11-soma%11;if(resultado!==parseInt(digitos.charAt(0),10)){return false;}
tamanho=tamanho+1;numeros=value.substring(0,tamanho);soma=0;pos=tamanho-7;for(var il=tamanho;il>=1;il--){soma+=numeros.charAt(tamanho-il)*pos--;if(pos<2){pos=9;}}
resultado=soma%11<2?0:11-soma%11;if(resultado!==parseInt(digitos.charAt(1),10)){return false;}
return true;},"Please specify a CNPJ value number.");$.validator.addMethod("cpfBR",function(value,element){"use strict";if(this.optional(element)){return true;}
value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11){return false;}
var sum=0,firstCN,secondCN,checkResult,i;firstCN=parseInt(value.substring(9,10),10);secondCN=parseInt(value.substring(10,11),10);checkResult=function checkResult(sum,cn){var result=sum*10%11;if(result===10||result===11){result=0;}
return result===cn;};if(value===""||value==="00000000000"||value==="11111111111"||value==="22222222222"||value==="33333333333"||value==="44444444444"||value==="55555555555"||value==="66666666666"||value==="77777777777"||value==="88888888888"||value==="99999999999"){return false;}
for(i=1;i<=9;i++){sum=sum+parseInt(value.substring(i-1,i),10)*(11-i);}
if(checkResult(sum,firstCN)){sum=0;for(i=1;i<=10;i++){sum=sum+parseInt(value.substring(i-1,i),10)*(12-i);}
return checkResult(sum,secondCN);}
return false;},"Please specify a valid CPF number.");$.validator.addMethod("creditcard",function(value,element){if(this.optional(element)){return"dependency-mismatch";}
if(/[^0-9 \-]+/.test(value)){return false;}
var nCheck=0,nDigit=0,bEven=false,n,cDigit;value=value.replace(/\D/g,"");if(value.length<13||value.length>19){return false;}
for(n=value.length-1;n>=0;n--){cDigit=value.charAt(n);nDigit=parseInt(cDigit,10);if(bEven){if((nDigit*=2)>9){nDigit-=9;}}
nCheck+=nDigit;bEven=!bEven;}
return nCheck%10===0;},"Please enter a valid credit card number.");$.validator.addMethod("creditcardtypes",function(value,element,param){if(/[^0-9\-]+/.test(value)){return false;}
value=value.replace(/\D/g,"");var validTypes=0x0000;if(param.mastercard){validTypes|=0x0001;}
if(param.visa){validTypes|=0x0002;}
if(param.amex){validTypes|=0x0004;}
if(param.dinersclub){validTypes|=0x0008;}
if(param.enroute){validTypes|=0x0010;}
if(param.discover){validTypes|=0x0020;}
if(param.jcb){validTypes|=0x0040;}
if(param.unknown){validTypes|=0x0080;}
if(param.all){validTypes=0x0001|0x0002|0x0004|0x0008|0x0010|0x0020|0x0040|0x0080;}
if(validTypes&0x0001&&(/^(5[12345])/.test(value)||/^(2[234567])/.test(value))){return value.length===16;}
if(validTypes&0x0002&&/^(4)/.test(value)){return value.length===16;}
if(validTypes&0x0004&&/^(3[47])/.test(value)){return value.length===15;}
if(validTypes&0x0008&&/^(3(0[012345]|[68]))/.test(value)){return value.length===14;}
if(validTypes&0x0010&&/^(2(014|149))/.test(value)){return value.length===15;}
if(validTypes&0x0020&&/^(6011)/.test(value)){return value.length===16;}
if(validTypes&0x0040&&/^(3)/.test(value)){return value.length===16;}
if(validTypes&0x0040&&/^(2131|1800)/.test(value)){return value.length===15;}
if(validTypes&0x0080){return true;}
return false;},"Please enter a valid credit card number.");$.validator.addMethod("currency",function(value,element,param){var isParamString=typeof param==="string",symbol=isParamString?param:param[0],soft=isParamString?true:param[1],regex;symbol=symbol.replace(/,/g,"");symbol=soft?symbol+"]":symbol+"]?";regex="^["+symbol+"([1-9]{1}[0-9]{0,2}(\\,[0-9]{3})*(\\.[0-9]{0,2})?|[1-9]{1}[0-9]{0,}(\\.[0-9]{0,2})?|0(\\.[0-9]{0,2})?|(\\.[0-9]{1,2})?)$";regex=new RegExp(regex);return this.optional(element)||regex.test(value);},"Please specify a valid currency.");$.validator.addMethod("dateFA",function(value,element){return this.optional(element)||/^[1-4]\d{3}\/((0?[1-6]\/((3[0-1])|([1-2][0-9])|(0?[1-9])))|((1[0-2]|(0?[7-9]))\/(30|([1-2][0-9])|(0?[1-9]))))$/.test(value);},$.validator.messages.date);$.validator.addMethod("dateITA",function(value,element){var check=false,re=/^\d{1,2}\/\d{1,2}\/\d{4}$/,adata,gg,mm,aaaa,xdata;if(re.test(value)){adata=value.split("/");gg=parseInt(adata[0],10);mm=parseInt(adata[1],10);aaaa=parseInt(adata[2],10);xdata=new Date(Date.UTC(aaaa,mm-1,gg,12,0,0,0));if(xdata.getUTCFullYear()===aaaa&&xdata.getUTCMonth()===mm-1&&xdata.getUTCDate()===gg){check=true;}else{check=false;}}else{check=false;}
return this.optional(element)||check;},$.validator.messages.date);$.validator.addMethod("dateNL",function(value,element){return this.optional(element)||/^(0?[1-9]|[12]\d|3[01])[\.\/\-](0?[1-9]|1[012])[\.\/\-]([12]\d)?(\d\d)$/.test(value);},$.validator.messages.date);$.validator.addMethod("extension",function(value,element,param){param=typeof param==="string"?param.replace(/,/g,"|"):"png|jpe?g|gif";return this.optional(element)||value.match(new RegExp("\\.("+param+")$","i"));},$.validator.format("Please enter a value with a valid extension."));$.validator.addMethod("giroaccountNL",function(value,element){return this.optional(element)||/^[0-9]{1,7}$/.test(value);},"Please specify a valid giro account number.");$.validator.addMethod("greaterThan",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-greaterThan-blur").length){target.addClass("validate-greaterThan-blur").on("blur.validate-greaterThan",function(){$(element).valid();});}
return value>target.val();},"Please enter a greater value.");$.validator.addMethod("greaterThanEqual",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-greaterThanEqual-blur").length){target.addClass("validate-greaterThanEqual-blur").on("blur.validate-greaterThanEqual",function(){$(element).valid();});}
return value>=target.val();},"Please enter a greater value.");$.validator.addMethod("iban",function(value,element){if(this.optional(element)){return true;}
var iban=value.replace(/ /g,"").toUpperCase(),ibancheckdigits="",leadingZeroes=true,cRest="",cOperator="",countrycode,ibancheck,charAt,cChar,bbanpattern,bbancountrypatterns,ibanregexp,i,p;var minimalIBANlength=5;if(iban.length<minimalIBANlength){return false;}
countrycode=iban.substring(0,2);bbancountrypatterns={"AL":"\\d{8}[\\dA-Z]{16}","AD":"\\d{8}[\\dA-Z]{12}","AT":"\\d{16}","AZ":"[\\dA-Z]{4}\\d{20}","BE":"\\d{12}","BH":"[A-Z]{4}[\\dA-Z]{14}","BA":"\\d{16}","BR":"\\d{23}[A-Z][\\dA-Z]","BG":"[A-Z]{4}\\d{6}[\\dA-Z]{8}","CR":"\\d{17}","HR":"\\d{17}","CY":"\\d{8}[\\dA-Z]{16}","CZ":"\\d{20}","DK":"\\d{14}","DO":"[A-Z]{4}\\d{20}","EE":"\\d{16}","FO":"\\d{14}","FI":"\\d{14}","FR":"\\d{10}[\\dA-Z]{11}\\d{2}","GE":"[\\dA-Z]{2}\\d{16}","DE":"\\d{18}","GI":"[A-Z]{4}[\\dA-Z]{15}","GR":"\\d{7}[\\dA-Z]{16}","GL":"\\d{14}","GT":"[\\dA-Z]{4}[\\dA-Z]{20}","HU":"\\d{24}","IS":"\\d{22}","IE":"[\\dA-Z]{4}\\d{14}","IL":"\\d{19}","IT":"[A-Z]\\d{10}[\\dA-Z]{12}","KZ":"\\d{3}[\\dA-Z]{13}","KW":"[A-Z]{4}[\\dA-Z]{22}","LV":"[A-Z]{4}[\\dA-Z]{13}","LB":"\\d{4}[\\dA-Z]{20}","LI":"\\d{5}[\\dA-Z]{12}","LT":"\\d{16}","LU":"\\d{3}[\\dA-Z]{13}","MK":"\\d{3}[\\dA-Z]{10}\\d{2}","MT":"[A-Z]{4}\\d{5}[\\dA-Z]{18}","MR":"\\d{23}","MU":"[A-Z]{4}\\d{19}[A-Z]{3}","MC":"\\d{10}[\\dA-Z]{11}\\d{2}","MD":"[\\dA-Z]{2}\\d{18}","ME":"\\d{18}","NL":"[A-Z]{4}\\d{10}","NO":"\\d{11}","PK":"[\\dA-Z]{4}\\d{16}","PS":"[\\dA-Z]{4}\\d{21}","PL":"\\d{24}","PT":"\\d{21}","RO":"[A-Z]{4}[\\dA-Z]{16}","SM":"[A-Z]\\d{10}[\\dA-Z]{12}","SA":"\\d{2}[\\dA-Z]{18}","RS":"\\d{18}","SK":"\\d{20}","SI":"\\d{15}","ES":"\\d{20}","SE":"\\d{20}","CH":"\\d{5}[\\dA-Z]{12}","TN":"\\d{20}","TR":"\\d{5}[\\dA-Z]{17}","AE":"\\d{3}\\d{16}","GB":"[A-Z]{4}\\d{14}","VG":"[\\dA-Z]{4}\\d{16}"};bbanpattern=bbancountrypatterns[countrycode];if(typeof bbanpattern!=="undefined"){ibanregexp=new RegExp("^[A-Z]{2}\\d{2}"+bbanpattern+"$","");if(!ibanregexp.test(iban)){return false;}}
ibancheck=iban.substring(4,iban.length)+iban.substring(0,4);for(i=0;i<ibancheck.length;i++){charAt=ibancheck.charAt(i);if(charAt!=="0"){leadingZeroes=false;}
if(!leadingZeroes){ibancheckdigits+="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ".indexOf(charAt);}}
for(p=0;p<ibancheckdigits.length;p++){cChar=ibancheckdigits.charAt(p);cOperator=""+cRest+""+cChar;cRest=cOperator%97;}
return cRest===1;},"Please specify a valid IBAN.");$.validator.addMethod("integer",function(value,element){return this.optional(element)||/^-?\d+$/.test(value);},"A positive or negative non-decimal number please.");$.validator.addMethod("ipv4",function(value,element){return this.optional(element)||/^(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)\.(25[0-5]|2[0-4]\d|[01]?\d\d?)$/i.test(value);},"Please enter a valid IP v4 address.");$.validator.addMethod("ipv6",function(value,element){return this.optional(element)||/^((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(([0-9A-Fa-f]{1,4}:){0,5}:((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|(::([0-9A-Fa-f]{1,4}:){0,5}((\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b)\.){3}(\b((25[0-5])|(1\d{2})|(2[0-4]\d)|(\d{1,2}))\b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/i.test(value);},"Please enter a valid IP v6 address.");$.validator.addMethod("lessThan",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-lessThan-blur").length){target.addClass("validate-lessThan-blur").on("blur.validate-lessThan",function(){$(element).valid();});}
return value<target.val();},"Please enter a lesser value.");$.validator.addMethod("lessThanEqual",function(value,element,param){var target=$(param);if(this.settings.onfocusout&&target.not(".validate-lessThanEqual-blur").length){target.addClass("validate-lessThanEqual-blur").on("blur.validate-lessThanEqual",function(){$(element).valid();});}
return value<=target.val();},"Please enter a lesser value.");$.validator.addMethod("lettersonly",function(value,element){return this.optional(element)||/^[a-z]+$/i.test(value);},"Letters only please.");$.validator.addMethod("letterswithbasicpunc",function(value,element){return this.optional(element)||/^[a-z\-.,()'"\s]+$/i.test(value);},"Letters or punctuation only please.");$.validator.addMethod("maxfiles",function(value,element,param){if(this.optional(element)){return true;}
if($(element).attr("type")==="file"){if(element.files&&element.files.length>param){return false;}}
return true;},$.validator.format("Please select no more than {0} files."));$.validator.addMethod("maxsize",function(value,element,param){if(this.optional(element)){return true;}
if($(element).attr("type")==="file"){if(element.files&&element.files.length){for(var i=0;i<element.files.length;i++){if(element.files[i].size>param){return false;}}}}
return true;},$.validator.format("File size must not exceed {0} bytes each."));$.validator.addMethod("maxsizetotal",function(value,element,param){if(this.optional(element)){return true;}
if($(element).attr("type")==="file"){if(element.files&&element.files.length){var totalSize=0;for(var i=0;i<element.files.length;i++){totalSize+=element.files[i].size;if(totalSize>param){return false;}}}}
return true;},$.validator.format("Total size of all files must not exceed {0} bytes."));$.validator.addMethod("mobileNL",function(value,element){return this.optional(element)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)6((\s|\s?\-\s?)?[0-9]){8}$/.test(value);},"Please specify a valid mobile number.");$.validator.addMethod("mobileRU",function(phone_number,element){var ruPhone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||ruPhone_number.length>9&&/^((\+7|7|8)+([0-9]){10})$/.test(ruPhone_number);},"Please specify a valid mobile number.");$.validator.addMethod("mobileUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)7(?:[1345789]\d{2}|624)\s?\d{3}\s?\d{3})$/);},"Please specify a valid mobile number.");$.validator.addMethod("netmask",function(value,element){return this.optional(element)||/^(254|252|248|240|224|192|128)\.0\.0\.0|255\.(254|252|248|240|224|192|128|0)\.0\.0|255\.255\.(254|252|248|240|224|192|128|0)\.0|255\.255\.255\.(254|252|248|240|224|192|128|0)/i.test(value);},"Please enter a valid netmask.");$.validator.addMethod("nieES",function(value,element){"use strict";if(this.optional(element)){return true;}
var nieRegEx=new RegExp(/^[MXYZ]{1}[0-9]{7,8}[TRWAGMYFPDXBNJZSQVHLCKET]{1}$/gi);var validChars="TRWAGMYFPDXBNJZSQVHLCKET",letter=value.substr(value.length-1).toUpperCase(),number;value=value.toString().toUpperCase();if(value.length>10||value.length<9||!nieRegEx.test(value)){return false;}
value=value.replace(/^[X]/,"0").replace(/^[Y]/,"1").replace(/^[Z]/,"2");number=value.length===9?value.substr(0,8):value.substr(0,9);return validChars.charAt(parseInt(number,10)%23)===letter;},"Please specify a valid NIE number.");$.validator.addMethod("nifES",function(value,element){"use strict";if(this.optional(element)){return true;}
value=value.toUpperCase();if(!value.match("((^[A-Z]{1}[0-9]{7}[A-Z0-9]{1}$|^[T]{1}[A-Z0-9]{8}$)|^[0-9]{8}[A-Z]{1}$)")){return false;}
if(/^[0-9]{8}[A-Z]{1}$/.test(value)){return"TRWAGMYFPDXBNJZSQVHLCKE".charAt(value.substring(8,0)%23)===value.charAt(8);}
if(/^[KLM]{1}/.test(value)){return value[8]==="TRWAGMYFPDXBNJZSQVHLCKE".charAt(value.substring(8,1)%23);}
return false;},"Please specify a valid NIF number.");$.validator.addMethod("nipPL",function(value){"use strict";value=value.replace(/[^0-9]/g,"");if(value.length!==10){return false;}
var arrSteps=[6,5,7,2,3,4,5,6,7];var intSum=0;for(var i=0;i<9;i++){intSum+=arrSteps[i]*value[i];}
var int2=intSum%11;var intControlNr=int2===10?0:int2;return intControlNr===parseInt(value[9],10);},"Please specify a valid NIP number.");$.validator.addMethod("nisBR",function(value){var number;var cn;var sum=0;var dv;var count;var multiplier;value=value.replace(/([~!@#$%^&*()_+=`{}\[\]\-|\\:;'<>,.\/? ])+/g,"");if(value.length!==11){return false;}
cn=parseInt(value.substring(10,11),10);number=parseInt(value.substring(0,10),10);for(count=2;count<12;count++){multiplier=count;if(count===10){multiplier=2;}
if(count===11){multiplier=3;}
sum+=number%10*multiplier;number=parseInt(number/10,10);}
dv=sum%11;if(dv>1){dv=11-dv;}else{dv=0;}
if(cn===dv){return true;}else{return false;}},"Please specify a valid NIS/PIS number.");$.validator.addMethod("notEqualTo",function(value,element,param){return this.optional(element)||!$.validator.methods.equalTo.call(this,value,element,param);},"Please enter a different value, values must not be the same.");$.validator.addMethod("nowhitespace",function(value,element){return this.optional(element)||/^\S+$/i.test(value);},"No white space please.");$.validator.addMethod("pattern",function(value,element,param){if(this.optional(element)){return true;}
if(typeof param==="string"){param=new RegExp("^(?:"+param+")$");}
return param.test(value);},"Invalid format.");$.validator.addMethod("phoneNL",function(value,element){return this.optional(element)||/^((\+|00(\s|\s?\-\s?)?)31(\s|\s?\-\s?)?(\(0\)[\-\s]?)?|0)[1-9]((\s|\s?\-\s?)?[0-9]){8}$/.test(value);},"Please specify a valid phone number.");$.validator.addMethod("phonePL",function(phone_number,element){phone_number=phone_number.replace(/\s+/g,"");var regexp=/^(?:(?:(?:\+|00)?48)|(?:\(\+?48\)))?(?:1[2-8]|2[2-69]|3[2-49]|4[1-68]|5[0-9]|6[0-35-9]|[7-8][1-9]|9[145])\d{7}$/;return this.optional(element)||regexp.test(phone_number);},"Please specify a valid phone number.");$.validator.addMethod("phonesUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?|0)(?:1\d{8,9}|[23]\d{9}|7(?:[1345789]\d{8}|624\d{6})))$/);},"Please specify a valid uk phone number.");$.validator.addMethod("phoneUK",function(phone_number,element){phone_number=phone_number.replace(/\(|\)|\s+|-/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(?:(?:(?:00\s?|\+)44\s?)|(?:\(?0))(?:\d{2}\)?\s?\d{4}\s?\d{4}|\d{3}\)?\s?\d{3}\s?\d{3,4}|\d{4}\)?\s?(?:\d{5}|\d{3}\s?\d{3})|\d{5}\)?\s?\d{4,5})$/);},"Please specify a valid phone number.");$.validator.addMethod("phoneUS",function(phone_number,element){phone_number=phone_number.replace(/\s+/g,"");return this.optional(element)||phone_number.length>9&&phone_number.match(/^(\+?1-?)?(\([2-9]([02-9]\d|1[02-9])\)|[2-9]([02-9]\d|1[02-9]))-?[2-9]\d{2}-?\d{4}$/);},"Please specify a valid phone number.");$.validator.addMethod("postalcodeBR",function(cep_value,element){return this.optional(element)||/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(cep_value);},"Informe um CEP válido.");$.validator.addMethod("postalCodeCA",function(value,element){return this.optional(element)||/^[ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ] *\d[ABCEGHJKLMNPRSTVWXYZ]\d$/i.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postalcodeIT",function(value,element){return this.optional(element)||/^\d{5}$/.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postalcodeNL",function(value,element){return this.optional(element)||/^[1-9][0-9]{3}\s?[a-zA-Z]{2}$/.test(value);},"Please specify a valid postal code.");$.validator.addMethod("postcodeUK",function(value,element){return this.optional(element)||/^((([A-PR-UWYZ][0-9])|([A-PR-UWYZ][0-9][0-9])|([A-PR-UWYZ][A-HK-Y][0-9])|([A-PR-UWYZ][A-HK-Y][0-9][0-9])|([A-PR-UWYZ][0-9][A-HJKSTUW])|([A-PR-UWYZ][A-HK-Y][0-9][ABEHMNPRVWXY]))\s?([0-9][ABD-HJLNP-UW-Z]{2})|(GIR)\s?(0AA))$/i.test(value);},"Please specify a valid UK postcode.");$.validator.addMethod("require_from_group",function(value,element,options){var $fields=$(options[1],element.form),$fieldsFirst=$fields.eq(0),validator=$fieldsFirst.data("valid_req_grp")?$fieldsFirst.data("valid_req_grp"):$.extend({},this),isValid=$fields.filter(function(){return validator.elementValue(this);}).length>=options[0];$fieldsFirst.data("valid_req_grp",validator);if(!$(element).data("being_validated")){$fields.data("being_validated",true);$fields.each(function(){validator.element(this);});$fields.data("being_validated",false);}
return isValid;},$.validator.format("Please fill at least {0} of these fields."));$.validator.addMethod("skip_or_fill_minimum",function(value,element,options){var $fields=$(options[1],element.form),$fieldsFirst=$fields.eq(0),validator=$fieldsFirst.data("valid_skip")?$fieldsFirst.data("valid_skip"):$.extend({},this),numberFilled=$fields.filter(function(){return validator.elementValue(this);}).length,isValid=numberFilled===0||numberFilled>=options[0];$fieldsFirst.data("valid_skip",validator);if(!$(element).data("being_validated")){$fields.data("being_validated",true);$fields.each(function(){validator.element(this);});$fields.data("being_validated",false);}
return isValid;},$.validator.format("Please either skip these fields or fill at least {0} of them."));$.validator.addMethod("stateUS",function(value,element,options){var isDefault=typeof options==="undefined",caseSensitive=isDefault||typeof options.caseSensitive==="undefined"?false:options.caseSensitive,includeTerritories=isDefault||typeof options.includeTerritories==="undefined"?false:options.includeTerritories,includeMilitary=isDefault||typeof options.includeMilitary==="undefined"?false:options.includeMilitary,regex;if(!includeTerritories&&!includeMilitary){regex="^(A[KLRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$";}else if(includeTerritories&&includeMilitary){regex="^(A[AEKLPRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$";}else if(includeTerritories){regex="^(A[KLRSZ]|C[AOT]|D[CE]|FL|G[AU]|HI|I[ADLN]|K[SY]|LA|M[ADEINOPST]|N[CDEHJMVY]|O[HKR]|P[AR]|RI|S[CD]|T[NX]|UT|V[AIT]|W[AIVY])$";}else{regex="^(A[AEKLPRZ]|C[AOT]|D[CE]|FL|GA|HI|I[ADLN]|K[SY]|LA|M[ADEINOST]|N[CDEHJMVY]|O[HKR]|PA|RI|S[CD]|T[NX]|UT|V[AT]|W[AIVY])$";}
regex=caseSensitive?new RegExp(regex):new RegExp(regex,"i");return this.optional(element)||regex.test(value);},"Please specify a valid state.");$.validator.addMethod("strippedminlength",function(value,element,param){return $(value).text().length>=param;},$.validator.format("Please enter at least {0} characters."));$.validator.addMethod("time",function(value,element){return this.optional(element)||/^([01]\d|2[0-3]|[0-9])(:[0-5]\d){1,2}$/.test(value);},"Please enter a valid time, between 00:00 and 23:59.");$.validator.addMethod("time12h",function(value,element){return this.optional(element)||/^((0?[1-9]|1[012])(:[0-5]\d){1,2}(\ ?[AP]M))$/i.test(value);},"Please enter a valid time in 12-hour am/pm format.");$.validator.addMethod("url2",function(value,element){return this.optional(element)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})+(?::(?:[^\]\[?\/<~#`!@$^&*()+=}|:";',>{ ]|%[0-9A-Fa-f]{2})*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?)|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff])|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62}\.)))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(value);},$.validator.messages.url);$.validator.addMethod("vinUS",function(v){if(v.length!==17){return false;}
var LL=["A","B","C","D","E","F","G","H","J","K","L","M","N","P","R","S","T","U","V","W","X","Y","Z"],VL=[1,2,3,4,5,6,7,8,1,2,3,4,5,7,9,2,3,4,5,6,7,8,9],FL=[8,7,6,5,4,3,2,10,0,9,8,7,6,5,4,3,2],rs=0,i,n,d,f,cd,cdv;for(i=0;i<17;i++){f=FL[i];d=v.slice(i,i+1);if(isNaN(d)){d=d.toUpperCase();n=VL[LL.indexOf(d)];}else{n=parseInt(d,10);}
if(i===8){cdv=n;if(d==="X"){cdv=10;}}
rs+=n*f;}
cd=rs%11;if(cd===cdv){return true;}
return false;},"The specified vehicle identification number (VIN) is invalid.");$.validator.addMethod("zipcodeUS",function(value,element){return this.optional(element)||/^\d{5}(-\d{4})?$/.test(value);},"The specified US ZIP Code is invalid.");$.validator.addMethod("ziprange",function(value,element){return this.optional(element)||/^90[2-5]\d\{2\}-\d{4}$/.test(value);},"Your ZIP-code must be in the range 902xx-xxxx to 905xx-xxxx.");return $;});"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
(function(root,factory){if(typeof define==='function'&&define.amd){define([],factory);}else if((typeof module==="undefined"?"undefined":_typeof(module))==='object'&&module.exports){module.exports=factory();}else{root.htmx=root.htmx||factory();}})(typeof self!=='undefined'?self:void 0,function(){return function(){'use strict';var htmx={onLoad:onLoadHelper,process:processNode,on:addEventListenerImpl,off:removeEventListenerImpl,trigger:triggerEvent,ajax:ajaxHelper,find:find,findAll:findAll,closest:closest,values:function values(elt,type){var inputValues=getInputValues(elt,type||"post");return inputValues.values;},remove:removeElement,addClass:addClassToElement,removeClass:removeClassFromElement,toggleClass:toggleClassOnElement,takeClass:takeClassForElement,defineExtension:defineExtension,removeExtension:removeExtension,logAll:logAll,logNone:logNone,logger:null,config:{historyEnabled:true,historyCacheSize:10,refreshOnHistoryMiss:false,defaultSwapStyle:'innerHTML',defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:true,indicatorClass:'htmx-indicator',requestClass:'htmx-request',addedClass:'htmx-added',settlingClass:'htmx-settling',swappingClass:'htmx-swapping',allowEval:true,allowScriptTags:true,inlineScriptNonce:'',attributesToSettle:["class","style","width","height"],withCredentials:false,timeout:0,wsReconnectDelay:'full-jitter',wsBinaryType:'blob',disableSelector:"[hx-disable], [data-hx-disable]",useTemplateFragments:false,scrollBehavior:'smooth',defaultFocusScroll:false,getCacheBusterParam:false,globalViewTransitions:false,methodsThatUseUrlParams:["get"],selfRequestsOnly:false,ignoreTitle:false,scrollIntoViewOnBoost:true,triggerSpecsCache:null},parseInterval:parseInterval,_:internalEval,createEventSource:function createEventSource(url){return new EventSource(url,{withCredentials:true});},createWebSocket:function createWebSocket(url){var sock=new WebSocket(url,[]);sock.binaryType=htmx.config.wsBinaryType;return sock;},version:"1.9.10"};var internalAPI={addTriggerHandler:addTriggerHandler,bodyContains:bodyContains,canAccessLocalStorage:canAccessLocalStorage,findThisElement:findThisElement,filterValues:filterValues,hasAttribute:hasAttribute,getAttributeValue:getAttributeValue,getClosestAttributeValue:getClosestAttributeValue,getClosestMatch:getClosestMatch,getExpressionVars:getExpressionVars,getHeaders:getHeaders,getInputValues:getInputValues,getInternalData:getInternalData,getSwapSpecification:getSwapSpecification,getTriggerSpecs:getTriggerSpecs,getTarget:getTarget,makeFragment:makeFragment,mergeObjects:mergeObjects,makeSettleInfo:makeSettleInfo,oobSwap:oobSwap,querySelectorExt:querySelectorExt,selectAndSwap:selectAndSwap,settleImmediately:settleImmediately,shouldCancel:shouldCancel,triggerEvent:triggerEvent,triggerErrorEvent:triggerErrorEvent,withExtensions:withExtensions};var VERBS=['get','post','put','delete','patch'];var VERB_SELECTOR=VERBS.map(function(verb){return"[hx-"+verb+"], [data-hx-"+verb+"]";}).join(", ");var HEAD_TAG_REGEX=makeTagRegEx('head'),TITLE_TAG_REGEX=makeTagRegEx('title'),SVG_TAGS_REGEX=makeTagRegEx('svg',true);function makeTagRegEx(tag){var global=arguments.length>1&&arguments[1]!==undefined?arguments[1]:false;return new RegExp("<".concat(tag,"(\\s[^>]*>|>)([\\s\\S]*?)<\\/").concat(tag,">"),global?'gim':'im');}
function parseInterval(str){if(str==undefined){return undefined;}
var interval=NaN;if(str.slice(-2)=="ms"){interval=parseFloat(str.slice(0,-2));}else if(str.slice(-1)=="s"){interval=parseFloat(str.slice(0,-1))*1000;}else if(str.slice(-1)=="m"){interval=parseFloat(str.slice(0,-1))*1000*60;}else{interval=parseFloat(str);}
return isNaN(interval)?undefined:interval;}
function getRawAttribute(elt,name){return elt.getAttribute&&elt.getAttribute(name);}
function hasAttribute(elt,qualifiedName){return elt.hasAttribute&&(elt.hasAttribute(qualifiedName)||elt.hasAttribute("data-"+qualifiedName));}
function getAttributeValue(elt,qualifiedName){return getRawAttribute(elt,qualifiedName)||getRawAttribute(elt,"data-"+qualifiedName);}
function parentElt(elt){return elt.parentElement;}
function getDocument(){return document;}
function getClosestMatch(elt,condition){while(elt&&!condition(elt)){elt=parentElt(elt);}
return elt?elt:null;}
function getAttributeValueWithDisinheritance(initialElement,ancestor,attributeName){var attributeValue=getAttributeValue(ancestor,attributeName);var disinherit=getAttributeValue(ancestor,"hx-disinherit");if(initialElement!==ancestor&&disinherit&&(disinherit==="*"||disinherit.split(" ").indexOf(attributeName)>=0)){return"unset";}else{return attributeValue;}}
function getClosestAttributeValue(elt,attributeName){var closestAttr=null;getClosestMatch(elt,function(e){return closestAttr=getAttributeValueWithDisinheritance(elt,e,attributeName);});if(closestAttr!=="unset"){return closestAttr;}}
function matches(elt,selector){var matchesFunction=elt.matches||elt.matchesSelector||elt.msMatchesSelector||elt.mozMatchesSelector||elt.webkitMatchesSelector||elt.oMatchesSelector;return matchesFunction&&matchesFunction.call(elt,selector);}
function getStartTag(str){var tagMatcher=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i;var match=tagMatcher.exec(str);if(match){return match[1].toLowerCase();}else{return"";}}
function parseHTML(resp,depth){var parser=new DOMParser();var responseDoc=parser.parseFromString(resp,"text/html");var responseNode=responseDoc.body;while(depth>0){depth--;responseNode=responseNode.firstChild;}
if(responseNode==null){responseNode=getDocument().createDocumentFragment();}
return responseNode;}
function aFullPageResponse(resp){return /<body/.test(resp);}
function makeFragment(response){var partialResponse=!aFullPageResponse(response);var startTag=getStartTag(response);var content=response;if(startTag==='head'){content=content.replace(HEAD_TAG_REGEX,'');}
if(htmx.config.useTemplateFragments&&partialResponse){var documentFragment=parseHTML("<body><template>"+content+"</template></body>",0);return documentFragment.querySelector('template').content;}
switch(startTag){case"thead":case"tbody":case"tfoot":case"colgroup":case"caption":return parseHTML("<table>"+content+"</table>",1);case"col":return parseHTML("<table><colgroup>"+content+"</colgroup></table>",2);case"tr":return parseHTML("<table><tbody>"+content+"</tbody></table>",2);case"td":case"th":return parseHTML("<table><tbody><tr>"+content+"</tr></tbody></table>",3);case"script":case"style":return parseHTML("<div>"+content+"</div>",1);default:return parseHTML(content,0);}}
function maybeCall(func){if(func){func();}}
function isType(o,type){return Object.prototype.toString.call(o)==="[object "+type+"]";}
function isFunction(o){return isType(o,"Function");}
function isRawObject(o){return isType(o,"Object");}
function getInternalData(elt){var dataProp='htmx-internal-data';var data=elt[dataProp];if(!data){data=elt[dataProp]={};}
return data;}
function toArray(arr){var returnArr=[];if(arr){for(var i=0;i<arr.length;i++){returnArr.push(arr[i]);}}
return returnArr;}
function forEach(arr,func){if(arr){for(var i=0;i<arr.length;i++){func(arr[i]);}}}
function isScrolledIntoView(el){var rect=el.getBoundingClientRect();var elemTop=rect.top;var elemBottom=rect.bottom;return elemTop<window.innerHeight&&elemBottom>=0;}
function bodyContains(elt){if(elt.getRootNode&&elt.getRootNode()instanceof window.ShadowRoot){return getDocument().body.contains(elt.getRootNode().host);}else{return getDocument().body.contains(elt);}}
function splitOnWhitespace(trigger){return trigger.trim().split(/\s+/);}
function mergeObjects(obj1,obj2){for(var key in obj2){if(obj2.hasOwnProperty(key)){obj1[key]=obj2[key];}}
return obj1;}
function parseJSON(jString){try{return JSON.parse(jString);}catch(error){logError(error);return null;}}
function canAccessLocalStorage(){var test='htmx:localStorageTest';try{localStorage.setItem(test,test);localStorage.removeItem(test);return true;}catch(e){return false;}}
function normalizePath(path){try{var url=new URL(path);if(url){path=url.pathname+url.search;}
if(!/^\/$/.test(path)){path=path.replace(/\/+$/,'');}
return path;}catch(e){return path;}}
function internalEval(str){return maybeEval(getDocument().body,function(){return eval(str);});}
function onLoadHelper(callback){var value=htmx.on("htmx:load",function(evt){callback(evt.detail.elt);});return value;}
function logAll(){htmx.logger=function(elt,event,data){if(console){console.log(event,elt,data);}};}
function logNone(){htmx.logger=null;}
function find(eltOrSelector,selector){if(selector){return eltOrSelector.querySelector(selector);}else{return find(getDocument(),eltOrSelector);}}
function findAll(eltOrSelector,selector){if(selector){return eltOrSelector.querySelectorAll(selector);}else{return findAll(getDocument(),eltOrSelector);}}
function removeElement(elt,delay){elt=resolveTarget(elt);if(delay){setTimeout(function(){removeElement(elt);elt=null;},delay);}else{elt.parentElement.removeChild(elt);}}
function addClassToElement(elt,clazz,delay){elt=resolveTarget(elt);if(delay){setTimeout(function(){addClassToElement(elt,clazz);elt=null;},delay);}else{elt.classList&&elt.classList.add(clazz);}}
function removeClassFromElement(elt,clazz,delay){elt=resolveTarget(elt);if(delay){setTimeout(function(){removeClassFromElement(elt,clazz);elt=null;},delay);}else{if(elt.classList){elt.classList.remove(clazz);if(elt.classList.length===0){elt.removeAttribute("class");}}}}
function toggleClassOnElement(elt,clazz){elt=resolveTarget(elt);elt.classList.toggle(clazz);}
function takeClassForElement(elt,clazz){elt=resolveTarget(elt);forEach(elt.parentElement.children,function(child){removeClassFromElement(child,clazz);});addClassToElement(elt,clazz);}
function closest(elt,selector){elt=resolveTarget(elt);if(elt.closest){return elt.closest(selector);}else{do{if(elt==null||matches(elt,selector)){return elt;}}while(elt=elt&&parentElt(elt));return null;}}
function startsWith(str,prefix){return str.substring(0,prefix.length)===prefix;}
function endsWith(str,suffix){return str.substring(str.length-suffix.length)===suffix;}
function normalizeSelector(selector){var trimmedSelector=selector.trim();if(startsWith(trimmedSelector,"<")&&endsWith(trimmedSelector,"/>")){return trimmedSelector.substring(1,trimmedSelector.length-2);}else{return trimmedSelector;}}
function querySelectorAllExt(elt,selector){if(selector.indexOf("closest ")===0){return[closest(elt,normalizeSelector(selector.substr(8)))];}else if(selector.indexOf("find ")===0){return[find(elt,normalizeSelector(selector.substr(5)))];}else if(selector==="next"){return[elt.nextElementSibling];}else if(selector.indexOf("next ")===0){return[scanForwardQuery(elt,normalizeSelector(selector.substr(5)))];}else if(selector==="previous"){return[elt.previousElementSibling];}else if(selector.indexOf("previous ")===0){return[scanBackwardsQuery(elt,normalizeSelector(selector.substr(9)))];}else if(selector==='document'){return[document];}else if(selector==='window'){return[window];}else if(selector==='body'){return[document.body];}else{return getDocument().querySelectorAll(normalizeSelector(selector));}}
var scanForwardQuery=function scanForwardQuery(start,match){var results=getDocument().querySelectorAll(match);for(var i=0;i<results.length;i++){var elt=results[i];if(elt.compareDocumentPosition(start)===Node.DOCUMENT_POSITION_PRECEDING){return elt;}}};var scanBackwardsQuery=function scanBackwardsQuery(start,match){var results=getDocument().querySelectorAll(match);for(var i=results.length-1;i>=0;i--){var elt=results[i];if(elt.compareDocumentPosition(start)===Node.DOCUMENT_POSITION_FOLLOWING){return elt;}}};function querySelectorExt(eltOrSelector,selector){if(selector){return querySelectorAllExt(eltOrSelector,selector)[0];}else{return querySelectorAllExt(getDocument().body,eltOrSelector)[0];}}
function resolveTarget(arg2){if(isType(arg2,'String')){return find(arg2);}else{return arg2;}}
function processEventArgs(arg1,arg2,arg3){if(isFunction(arg2)){return{target:getDocument().body,event:arg1,listener:arg2};}else{return{target:resolveTarget(arg1),event:arg2,listener:arg3};}}
function addEventListenerImpl(arg1,arg2,arg3){ready(function(){var eventArgs=processEventArgs(arg1,arg2,arg3);eventArgs.target.addEventListener(eventArgs.event,eventArgs.listener);});var b=isFunction(arg2);return b?arg2:arg3;}
function removeEventListenerImpl(arg1,arg2,arg3){ready(function(){var eventArgs=processEventArgs(arg1,arg2,arg3);eventArgs.target.removeEventListener(eventArgs.event,eventArgs.listener);});return isFunction(arg2)?arg2:arg3;}
var DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(elt,attrName){var attrTarget=getClosestAttributeValue(elt,attrName);if(attrTarget){if(attrTarget==="this"){return[findThisElement(elt,attrName)];}else{var result=querySelectorAllExt(elt,attrTarget);if(result.length===0){logError('The selector "'+attrTarget+'" on '+attrName+" returned no matches!");return[DUMMY_ELT];}else{return result;}}}}
function findThisElement(elt,attribute){return getClosestMatch(elt,function(elt){return getAttributeValue(elt,attribute)!=null;});}
function getTarget(elt){var targetStr=getClosestAttributeValue(elt,"hx-target");if(targetStr){if(targetStr==="this"){return findThisElement(elt,'hx-target');}else{return querySelectorExt(elt,targetStr);}}else{var data=getInternalData(elt);if(data.boosted){return getDocument().body;}else{return elt;}}}
function shouldSettleAttribute(name){var attributesToSettle=htmx.config.attributesToSettle;for(var i=0;i<attributesToSettle.length;i++){if(name===attributesToSettle[i]){return true;}}
return false;}
function cloneAttributes(mergeTo,mergeFrom){forEach(mergeTo.attributes,function(attr){if(!mergeFrom.hasAttribute(attr.name)&&shouldSettleAttribute(attr.name)){mergeTo.removeAttribute(attr.name);}});forEach(mergeFrom.attributes,function(attr){if(shouldSettleAttribute(attr.name)){mergeTo.setAttribute(attr.name,attr.value);}});}
function isInlineSwap(swapStyle,target){var extensions=getExtensions(target);for(var i=0;i<extensions.length;i++){var extension=extensions[i];try{if(extension.isInlineSwap(swapStyle)){return true;}}catch(e){logError(e);}}
return swapStyle==="outerHTML";}
function oobSwap(oobValue,oobElement,settleInfo){var selector="#"+getRawAttribute(oobElement,"id");var swapStyle="outerHTML";if(oobValue==="true"){}else if(oobValue.indexOf(":")>0){swapStyle=oobValue.substr(0,oobValue.indexOf(":"));selector=oobValue.substr(oobValue.indexOf(":")+1,oobValue.length);}else{swapStyle=oobValue;}
var targets=getDocument().querySelectorAll(selector);if(targets){forEach(targets,function(target){var fragment;var oobElementClone=oobElement.cloneNode(true);fragment=getDocument().createDocumentFragment();fragment.appendChild(oobElementClone);if(!isInlineSwap(swapStyle,target)){fragment=oobElementClone;}
var beforeSwapDetails={shouldSwap:true,target:target,fragment:fragment};if(!triggerEvent(target,'htmx:oobBeforeSwap',beforeSwapDetails))return;target=beforeSwapDetails.target;if(beforeSwapDetails['shouldSwap']){swap(swapStyle,target,target,fragment,settleInfo);}
forEach(settleInfo.elts,function(elt){triggerEvent(elt,'htmx:oobAfterSwap',beforeSwapDetails);});});oobElement.parentNode.removeChild(oobElement);}else{oobElement.parentNode.removeChild(oobElement);triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:oobElement});}
return oobValue;}
function handleOutOfBandSwaps(elt,fragment,settleInfo){var oobSelects=getClosestAttributeValue(elt,"hx-select-oob");if(oobSelects){var oobSelectValues=oobSelects.split(",");for(var i=0;i<oobSelectValues.length;i++){var oobSelectValue=oobSelectValues[i].split(":",2);var id=oobSelectValue[0].trim();if(id.indexOf("#")===0){id=id.substring(1);}
var oobValue=oobSelectValue[1]||"true";var oobElement=fragment.querySelector("#"+id);if(oobElement){oobSwap(oobValue,oobElement,settleInfo);}}}
forEach(findAll(fragment,'[hx-swap-oob], [data-hx-swap-oob]'),function(oobElement){var oobValue=getAttributeValue(oobElement,"hx-swap-oob");if(oobValue!=null){oobSwap(oobValue,oobElement,settleInfo);}});}
function handlePreservedElements(fragment){forEach(findAll(fragment,'[hx-preserve], [data-hx-preserve]'),function(preservedElt){var id=getAttributeValue(preservedElt,"id");var oldElt=getDocument().getElementById(id);if(oldElt!=null){preservedElt.parentNode.replaceChild(oldElt,preservedElt);}});}
function handleAttributes(parentNode,fragment,settleInfo){forEach(fragment.querySelectorAll("[id]"),function(newNode){var id=getRawAttribute(newNode,"id");if(id&&id.length>0){var normalizedId=id.replace("'","\\'");var normalizedTag=newNode.tagName.replace(':','\\:');var oldNode=parentNode.querySelector(normalizedTag+"[id='"+normalizedId+"']");if(oldNode&&oldNode!==parentNode){var newAttributes=newNode.cloneNode();cloneAttributes(newNode,oldNode);settleInfo.tasks.push(function(){cloneAttributes(newNode,newAttributes);});}}});}
function makeAjaxLoadTask(child){return function(){removeClassFromElement(child,htmx.config.addedClass);processNode(child);processScripts(child);processFocus(child);triggerEvent(child,'htmx:load');};}
function processFocus(child){var autofocus="[autofocus]";var autoFocusedElt=matches(child,autofocus)?child:child.querySelector(autofocus);if(autoFocusedElt!=null){autoFocusedElt.focus();}}
function insertNodesBefore(parentNode,insertBefore,fragment,settleInfo){handleAttributes(parentNode,fragment,settleInfo);while(fragment.childNodes.length>0){var child=fragment.firstChild;addClassToElement(child,htmx.config.addedClass);parentNode.insertBefore(child,insertBefore);if(child.nodeType!==Node.TEXT_NODE&&child.nodeType!==Node.COMMENT_NODE){settleInfo.tasks.push(makeAjaxLoadTask(child));}}}
function stringHash(string,hash){var char=0;while(char<string.length){hash=(hash<<5)-hash+string.charCodeAt(char++)|0;}
return hash;}
function attributeHash(elt){var hash=0;if(elt.attributes){for(var i=0;i<elt.attributes.length;i++){var attribute=elt.attributes[i];if(attribute.value){hash=stringHash(attribute.name,hash);hash=stringHash(attribute.value,hash);}}}
return hash;}
function deInitOnHandlers(elt){var internalData=getInternalData(elt);if(internalData.onHandlers){for(var i=0;i<internalData.onHandlers.length;i++){var handlerInfo=internalData.onHandlers[i];elt.removeEventListener(handlerInfo.event,handlerInfo.listener);}
delete internalData.onHandlers;}}
function deInitNode(element){var internalData=getInternalData(element);if(internalData.timeout){clearTimeout(internalData.timeout);}
if(internalData.webSocket){internalData.webSocket.close();}
if(internalData.sseEventSource){internalData.sseEventSource.close();}
if(internalData.listenerInfos){forEach(internalData.listenerInfos,function(info){if(info.on){info.on.removeEventListener(info.trigger,info.listener);}});}
deInitOnHandlers(element);forEach(Object.keys(internalData),function(key){delete internalData[key];});}
function cleanUpElement(element){triggerEvent(element,"htmx:beforeCleanupElement");deInitNode(element);if(element.children){forEach(element.children,function(child){cleanUpElement(child);});}}
function swapOuterHTML(target,fragment,settleInfo){if(target.tagName==="BODY"){return swapInnerHTML(target,fragment,settleInfo);}else{var newElt;var eltBeforeNewContent=target.previousSibling;insertNodesBefore(parentElt(target),target,fragment,settleInfo);if(eltBeforeNewContent==null){newElt=parentElt(target).firstChild;}else{newElt=eltBeforeNewContent.nextSibling;}
settleInfo.elts=settleInfo.elts.filter(function(e){return e!=target;});while(newElt&&newElt!==target){if(newElt.nodeType===Node.ELEMENT_NODE){settleInfo.elts.push(newElt);}
newElt=newElt.nextElementSibling;}
cleanUpElement(target);parentElt(target).removeChild(target);}}
function swapAfterBegin(target,fragment,settleInfo){return insertNodesBefore(target,target.firstChild,fragment,settleInfo);}
function swapBeforeBegin(target,fragment,settleInfo){return insertNodesBefore(parentElt(target),target,fragment,settleInfo);}
function swapBeforeEnd(target,fragment,settleInfo){return insertNodesBefore(target,null,fragment,settleInfo);}
function swapAfterEnd(target,fragment,settleInfo){return insertNodesBefore(parentElt(target),target.nextSibling,fragment,settleInfo);}
function swapDelete(target,fragment,settleInfo){cleanUpElement(target);return parentElt(target).removeChild(target);}
function swapInnerHTML(target,fragment,settleInfo){var firstChild=target.firstChild;insertNodesBefore(target,firstChild,fragment,settleInfo);if(firstChild){while(firstChild.nextSibling){cleanUpElement(firstChild.nextSibling);target.removeChild(firstChild.nextSibling);}
cleanUpElement(firstChild);target.removeChild(firstChild);}}
function maybeSelectFromResponse(elt,fragment,selectOverride){var selector=selectOverride||getClosestAttributeValue(elt,"hx-select");if(selector){var newFragment=getDocument().createDocumentFragment();forEach(fragment.querySelectorAll(selector),function(node){newFragment.appendChild(node);});fragment=newFragment;}
return fragment;}
function swap(swapStyle,elt,target,fragment,settleInfo){switch(swapStyle){case"none":return;case"outerHTML":swapOuterHTML(target,fragment,settleInfo);return;case"afterbegin":swapAfterBegin(target,fragment,settleInfo);return;case"beforebegin":swapBeforeBegin(target,fragment,settleInfo);return;case"beforeend":swapBeforeEnd(target,fragment,settleInfo);return;case"afterend":swapAfterEnd(target,fragment,settleInfo);return;case"delete":swapDelete(target,fragment,settleInfo);return;default:var extensions=getExtensions(elt);for(var i=0;i<extensions.length;i++){var ext=extensions[i];try{var newElements=ext.handleSwap(swapStyle,target,fragment,settleInfo);if(newElements){if(typeof newElements.length!=='undefined'){for(var j=0;j<newElements.length;j++){var child=newElements[j];if(child.nodeType!==Node.TEXT_NODE&&child.nodeType!==Node.COMMENT_NODE){settleInfo.tasks.push(makeAjaxLoadTask(child));}}}
return;}}catch(e){logError(e);}}
if(swapStyle==="innerHTML"){swapInnerHTML(target,fragment,settleInfo);}else{swap(htmx.config.defaultSwapStyle,elt,target,fragment,settleInfo);}}}
function findTitle(content){if(content.indexOf('<title')>-1){var contentWithSvgsRemoved=content.replace(SVG_TAGS_REGEX,'');var result=contentWithSvgsRemoved.match(TITLE_TAG_REGEX);if(result){return result[2];}}}
function selectAndSwap(swapStyle,target,elt,responseText,settleInfo,selectOverride){settleInfo.title=findTitle(responseText);var fragment=makeFragment(responseText);if(fragment){handleOutOfBandSwaps(elt,fragment,settleInfo);fragment=maybeSelectFromResponse(elt,fragment,selectOverride);handlePreservedElements(fragment);return swap(swapStyle,elt,target,fragment,settleInfo);}}
function handleTrigger(xhr,header,elt){var triggerBody=xhr.getResponseHeader(header);if(triggerBody.indexOf("{")===0){var triggers=parseJSON(triggerBody);for(var eventName in triggers){if(triggers.hasOwnProperty(eventName)){var detail=triggers[eventName];if(!isRawObject(detail)){detail={"value":detail};}
triggerEvent(elt,eventName,detail);}}}else{var eventNames=triggerBody.split(",");for(var i=0;i<eventNames.length;i++){triggerEvent(elt,eventNames[i].trim(),[]);}}}
var WHITESPACE=/\s/;var WHITESPACE_OR_COMMA=/[\s,]/;var SYMBOL_START=/[_$a-zA-Z]/;var SYMBOL_CONT=/[_$a-zA-Z0-9]/;var STRINGISH_START=['"',"'","/"];var NOT_WHITESPACE=/[^\s]/;var COMBINED_SELECTOR_START=/[{(]/;var COMBINED_SELECTOR_END=/[})]/;function tokenizeString(str){var tokens=[];var position=0;while(position<str.length){if(SYMBOL_START.exec(str.charAt(position))){var startPosition=position;while(SYMBOL_CONT.exec(str.charAt(position+1))){position++;}
tokens.push(str.substr(startPosition,position-startPosition+1));}else if(STRINGISH_START.indexOf(str.charAt(position))!==-1){var startChar=str.charAt(position);var startPosition=position;position++;while(position<str.length&&str.charAt(position)!==startChar){if(str.charAt(position)==="\\"){position++;}
position++;}
tokens.push(str.substr(startPosition,position-startPosition+1));}else{var symbol=str.charAt(position);tokens.push(symbol);}
position++;}
return tokens;}
function isPossibleRelativeReference(token,last,paramName){return SYMBOL_START.exec(token.charAt(0))&&token!=="true"&&token!=="false"&&token!=="this"&&token!==paramName&&last!==".";}
function maybeGenerateConditional(elt,tokens,paramName){if(tokens[0]==='['){tokens.shift();var bracketCount=1;var conditionalSource=" return (function("+paramName+"){ return (";var last=null;while(tokens.length>0){var token=tokens[0];if(token==="]"){bracketCount--;if(bracketCount===0){if(last===null){conditionalSource=conditionalSource+"true";}
tokens.shift();conditionalSource+=")})";try{var conditionFunction=maybeEval(elt,function(){return Function(conditionalSource)();},function(){return true;});conditionFunction.source=conditionalSource;return conditionFunction;}catch(e){triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:e,source:conditionalSource});return null;}}}else if(token==="["){bracketCount++;}
if(isPossibleRelativeReference(token,last,paramName)){conditionalSource+="(("+paramName+"."+token+") ? ("+paramName+"."+token+") : (window."+token+"))";}else{conditionalSource=conditionalSource+token;}
last=tokens.shift();}}}
function consumeUntil(tokens,match){var result="";while(tokens.length>0&&!match.test(tokens[0])){result+=tokens.shift();}
return result;}
function consumeCSSSelector(tokens){var result;if(tokens.length>0&&COMBINED_SELECTOR_START.test(tokens[0])){tokens.shift();result=consumeUntil(tokens,COMBINED_SELECTOR_END).trim();tokens.shift();}else{result=consumeUntil(tokens,WHITESPACE_OR_COMMA);}
return result;}
var INPUT_SELECTOR='input, textarea, select';function parseAndCacheTrigger(elt,explicitTrigger,cache){var triggerSpecs=[];var tokens=tokenizeString(explicitTrigger);do{consumeUntil(tokens,NOT_WHITESPACE);var initialLength=tokens.length;var trigger=consumeUntil(tokens,/[,\[\s]/);if(trigger!==""){if(trigger==="every"){var every={trigger:'every'};consumeUntil(tokens,NOT_WHITESPACE);every.pollInterval=parseInterval(consumeUntil(tokens,/[,\[\s]/));consumeUntil(tokens,NOT_WHITESPACE);var eventFilter=maybeGenerateConditional(elt,tokens,"event");if(eventFilter){every.eventFilter=eventFilter;}
triggerSpecs.push(every);}else if(trigger.indexOf("sse:")===0){triggerSpecs.push({trigger:'sse',sseEvent:trigger.substr(4)});}else{var triggerSpec={trigger:trigger};var eventFilter=maybeGenerateConditional(elt,tokens,"event");if(eventFilter){triggerSpec.eventFilter=eventFilter;}
while(tokens.length>0&&tokens[0]!==","){consumeUntil(tokens,NOT_WHITESPACE);var token=tokens.shift();if(token==="changed"){triggerSpec.changed=true;}else if(token==="once"){triggerSpec.once=true;}else if(token==="consume"){triggerSpec.consume=true;}else if(token==="delay"&&tokens[0]===":"){tokens.shift();triggerSpec.delay=parseInterval(consumeUntil(tokens,WHITESPACE_OR_COMMA));}else if(token==="from"&&tokens[0]===":"){tokens.shift();if(COMBINED_SELECTOR_START.test(tokens[0])){var from_arg=consumeCSSSelector(tokens);}else{var from_arg=consumeUntil(tokens,WHITESPACE_OR_COMMA);if(from_arg==="closest"||from_arg==="find"||from_arg==="next"||from_arg==="previous"){tokens.shift();var selector=consumeCSSSelector(tokens);if(selector.length>0){from_arg+=" "+selector;}}}
triggerSpec.from=from_arg;}else if(token==="target"&&tokens[0]===":"){tokens.shift();triggerSpec.target=consumeCSSSelector(tokens);}else if(token==="throttle"&&tokens[0]===":"){tokens.shift();triggerSpec.throttle=parseInterval(consumeUntil(tokens,WHITESPACE_OR_COMMA));}else if(token==="queue"&&tokens[0]===":"){tokens.shift();triggerSpec.queue=consumeUntil(tokens,WHITESPACE_OR_COMMA);}else if(token==="root"&&tokens[0]===":"){tokens.shift();triggerSpec[token]=consumeCSSSelector(tokens);}else if(token==="threshold"&&tokens[0]===":"){tokens.shift();triggerSpec[token]=consumeUntil(tokens,WHITESPACE_OR_COMMA);}else{triggerErrorEvent(elt,"htmx:syntax:error",{token:tokens.shift()});}}
triggerSpecs.push(triggerSpec);}}
if(tokens.length===initialLength){triggerErrorEvent(elt,"htmx:syntax:error",{token:tokens.shift()});}
consumeUntil(tokens,NOT_WHITESPACE);}while(tokens[0]===","&&tokens.shift());if(cache){cache[explicitTrigger]=triggerSpecs;}
return triggerSpecs;}
function getTriggerSpecs(elt){var explicitTrigger=getAttributeValue(elt,'hx-trigger');var triggerSpecs=[];if(explicitTrigger){var cache=htmx.config.triggerSpecsCache;triggerSpecs=cache&&cache[explicitTrigger]||parseAndCacheTrigger(elt,explicitTrigger,cache);}
if(triggerSpecs.length>0){return triggerSpecs;}else if(matches(elt,'form')){return[{trigger:'submit'}];}else if(matches(elt,'input[type="button"], input[type="submit"]')){return[{trigger:'click'}];}else if(matches(elt,INPUT_SELECTOR)){return[{trigger:'change'}];}else{return[{trigger:'click'}];}}
function cancelPolling(elt){getInternalData(elt).cancelled=true;}
function processPolling(elt,handler,spec){var nodeData=getInternalData(elt);nodeData.timeout=setTimeout(function(){if(bodyContains(elt)&&nodeData.cancelled!==true){if(!maybeFilterEvent(spec,elt,makeEvent('hx:poll:trigger',{triggerSpec:spec,target:elt}))){handler(elt);}
processPolling(elt,handler,spec);}},spec.pollInterval);}
function isLocalLink(elt){return location.hostname===elt.hostname&&getRawAttribute(elt,'href')&&getRawAttribute(elt,'href').indexOf("#")!==0;}
function boostElement(elt,nodeData,triggerSpecs){if(elt.tagName==="A"&&isLocalLink(elt)&&(elt.target===""||elt.target==="_self")||elt.tagName==="FORM"){nodeData.boosted=true;var verb,path;if(elt.tagName==="A"){verb="get";path=getRawAttribute(elt,'href');}else{var rawAttribute=getRawAttribute(elt,"method");verb=rawAttribute?rawAttribute.toLowerCase():"get";if(verb==="get"){}
path=getRawAttribute(elt,'action');}
triggerSpecs.forEach(function(triggerSpec){addEventListener(elt,function(elt,evt){if(closest(elt,htmx.config.disableSelector)){cleanUpElement(elt);return;}
issueAjaxRequest(verb,path,elt,evt);},nodeData,triggerSpec,true);});}}
function shouldCancel(evt,elt){if(evt.type==="submit"||evt.type==="click"){if(elt.tagName==="FORM"){return true;}
if(matches(elt,'input[type="submit"], button')&&closest(elt,'form')!==null){return true;}
if(elt.tagName==="A"&&elt.href&&(elt.getAttribute('href')==='#'||elt.getAttribute('href').indexOf("#")!==0)){return true;}}
return false;}
function ignoreBoostedAnchorCtrlClick(elt,evt){return getInternalData(elt).boosted&&elt.tagName==="A"&&evt.type==="click"&&(evt.ctrlKey||evt.metaKey);}
function maybeFilterEvent(triggerSpec,elt,evt){var eventFilter=triggerSpec.eventFilter;if(eventFilter){try{return eventFilter.call(elt,evt)!==true;}catch(e){triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:e,source:eventFilter.source});return true;}}
return false;}
function addEventListener(elt,handler,nodeData,triggerSpec,explicitCancel){var elementData=getInternalData(elt);var eltsToListenOn;if(triggerSpec.from){eltsToListenOn=querySelectorAllExt(elt,triggerSpec.from);}else{eltsToListenOn=[elt];}
if(triggerSpec.changed){eltsToListenOn.forEach(function(eltToListenOn){var eltToListenOnData=getInternalData(eltToListenOn);eltToListenOnData.lastValue=eltToListenOn.value;});}
forEach(eltsToListenOn,function(eltToListenOn){var _eventListener=function eventListener(evt){if(!bodyContains(elt)){eltToListenOn.removeEventListener(triggerSpec.trigger,_eventListener);return;}
if(ignoreBoostedAnchorCtrlClick(elt,evt)){return;}
if(explicitCancel||shouldCancel(evt,elt)){evt.preventDefault();}
if(maybeFilterEvent(triggerSpec,elt,evt)){return;}
var eventData=getInternalData(evt);eventData.triggerSpec=triggerSpec;if(eventData.handledFor==null){eventData.handledFor=[];}
if(eventData.handledFor.indexOf(elt)<0){eventData.handledFor.push(elt);if(triggerSpec.consume){evt.stopPropagation();}
if(triggerSpec.target&&evt.target){if(!matches(evt.target,triggerSpec.target)){return;}}
if(triggerSpec.once){if(elementData.triggeredOnce){return;}else{elementData.triggeredOnce=true;}}
if(triggerSpec.changed){var eltToListenOnData=getInternalData(eltToListenOn);if(eltToListenOnData.lastValue===eltToListenOn.value){return;}
eltToListenOnData.lastValue=eltToListenOn.value;}
if(elementData.delayed){clearTimeout(elementData.delayed);}
if(elementData.throttle){return;}
if(triggerSpec.throttle>0){if(!elementData.throttle){handler(elt,evt);elementData.throttle=setTimeout(function(){elementData.throttle=null;},triggerSpec.throttle);}}else if(triggerSpec.delay>0){elementData.delayed=setTimeout(function(){handler(elt,evt);},triggerSpec.delay);}else{triggerEvent(elt,'htmx:trigger');handler(elt,evt);}}};if(nodeData.listenerInfos==null){nodeData.listenerInfos=[];}
nodeData.listenerInfos.push({trigger:triggerSpec.trigger,listener:_eventListener,on:eltToListenOn});eltToListenOn.addEventListener(triggerSpec.trigger,_eventListener);});}
var windowIsScrolling=false;var scrollHandler=null;function initScrollHandler(){if(!scrollHandler){scrollHandler=function scrollHandler(){windowIsScrolling=true;};window.addEventListener("scroll",scrollHandler);setInterval(function(){if(windowIsScrolling){windowIsScrolling=false;forEach(getDocument().querySelectorAll("[hx-trigger='revealed'],[data-hx-trigger='revealed']"),function(elt){maybeReveal(elt);});}},200);}}
function maybeReveal(elt){if(!hasAttribute(elt,'data-hx-revealed')&&isScrolledIntoView(elt)){elt.setAttribute('data-hx-revealed','true');var nodeData=getInternalData(elt);if(nodeData.initHash){triggerEvent(elt,'revealed');}else{elt.addEventListener("htmx:afterProcessNode",function(evt){triggerEvent(elt,'revealed');},{once:true});}}}
function processWebSocketInfo(elt,nodeData,info){var values=splitOnWhitespace(info);for(var i=0;i<values.length;i++){var value=values[i].split(/:(.+)/);if(value[0]==="connect"){ensureWebSocket(elt,value[1],0);}
if(value[0]==="send"){processWebSocketSend(elt);}}}
function ensureWebSocket(elt,wssSource,retryCount){if(!bodyContains(elt)){return;}
if(wssSource.indexOf("/")==0){var base_part=location.hostname+(location.port?':'+location.port:'');if(location.protocol=='https:'){wssSource="wss://"+base_part+wssSource;}else if(location.protocol=='http:'){wssSource="ws://"+base_part+wssSource;}}
var socket=htmx.createWebSocket(wssSource);socket.onerror=function(e){triggerErrorEvent(elt,"htmx:wsError",{error:e,socket:socket});maybeCloseWebSocketSource(elt);};socket.onclose=function(e){if([1006,1012,1013].indexOf(e.code)>=0){var delay=getWebSocketReconnectDelay(retryCount);setTimeout(function(){ensureWebSocket(elt,wssSource,retryCount+1);},delay);}};socket.onopen=function(e){retryCount=0;};getInternalData(elt).webSocket=socket;socket.addEventListener('message',function(event){if(maybeCloseWebSocketSource(elt)){return;}
var response=event.data;withExtensions(elt,function(extension){response=extension.transformResponse(response,null,elt);});var settleInfo=makeSettleInfo(elt);var fragment=makeFragment(response);var children=toArray(fragment.children);for(var i=0;i<children.length;i++){var child=children[i];oobSwap(getAttributeValue(child,"hx-swap-oob")||"true",child,settleInfo);}
settleImmediately(settleInfo.tasks);});}
function maybeCloseWebSocketSource(elt){if(!bodyContains(elt)){getInternalData(elt).webSocket.close();return true;}}
function processWebSocketSend(elt){var webSocketSourceElt=getClosestMatch(elt,function(parent){return getInternalData(parent).webSocket!=null;});if(webSocketSourceElt){elt.addEventListener(getTriggerSpecs(elt)[0].trigger,function(evt){var webSocket=getInternalData(webSocketSourceElt).webSocket;var headers=getHeaders(elt,webSocketSourceElt);var results=getInputValues(elt,'post');var errors=results.errors;var rawParameters=results.values;var expressionVars=getExpressionVars(elt);var allParameters=mergeObjects(rawParameters,expressionVars);var filteredParameters=filterValues(allParameters,elt);filteredParameters['HEADERS']=headers;if(errors&&errors.length>0){triggerEvent(elt,'htmx:validation:halted',errors);return;}
webSocket.send(JSON.stringify(filteredParameters));if(shouldCancel(evt,elt)){evt.preventDefault();}});}else{triggerErrorEvent(elt,"htmx:noWebSocketSourceError");}}
function getWebSocketReconnectDelay(retryCount){var delay=htmx.config.wsReconnectDelay;if(typeof delay==='function'){return delay(retryCount);}
if(delay==='full-jitter'){var exp=Math.min(retryCount,6);var maxDelay=1000*Math.pow(2,exp);return maxDelay*Math.random();}
logError('htmx.config.wsReconnectDelay must either be a function or the string "full-jitter"');}
function processSSEInfo(elt,nodeData,info){var values=splitOnWhitespace(info);for(var i=0;i<values.length;i++){var value=values[i].split(/:(.+)/);if(value[0]==="connect"){processSSESource(elt,value[1]);}
if(value[0]==="swap"){processSSESwap(elt,value[1]);}}}
function processSSESource(elt,sseSrc){var source=htmx.createEventSource(sseSrc);source.onerror=function(e){triggerErrorEvent(elt,"htmx:sseError",{error:e,source:source});maybeCloseSSESource(elt);};getInternalData(elt).sseEventSource=source;}
function processSSESwap(elt,sseEventName){var sseSourceElt=getClosestMatch(elt,hasEventSource);if(sseSourceElt){var sseEventSource=getInternalData(sseSourceElt).sseEventSource;var _sseListener=function sseListener(event){if(maybeCloseSSESource(sseSourceElt)){return;}
if(!bodyContains(elt)){sseEventSource.removeEventListener(sseEventName,_sseListener);return;}
var response=event.data;withExtensions(elt,function(extension){response=extension.transformResponse(response,null,elt);});var swapSpec=getSwapSpecification(elt);var target=getTarget(elt);var settleInfo=makeSettleInfo(elt);selectAndSwap(swapSpec.swapStyle,target,elt,response,settleInfo);settleImmediately(settleInfo.tasks);triggerEvent(elt,"htmx:sseMessage",event);};getInternalData(elt).sseListener=_sseListener;sseEventSource.addEventListener(sseEventName,_sseListener);}else{triggerErrorEvent(elt,"htmx:noSSESourceError");}}
function processSSETrigger(elt,handler,sseEventName){var sseSourceElt=getClosestMatch(elt,hasEventSource);if(sseSourceElt){var sseEventSource=getInternalData(sseSourceElt).sseEventSource;var _sseListener2=function sseListener(){if(!maybeCloseSSESource(sseSourceElt)){if(bodyContains(elt)){handler(elt);}else{sseEventSource.removeEventListener(sseEventName,_sseListener2);}}};getInternalData(elt).sseListener=_sseListener2;sseEventSource.addEventListener(sseEventName,_sseListener2);}else{triggerErrorEvent(elt,"htmx:noSSESourceError");}}
function maybeCloseSSESource(elt){if(!bodyContains(elt)){getInternalData(elt).sseEventSource.close();return true;}}
function hasEventSource(node){return getInternalData(node).sseEventSource!=null;}
function loadImmediately(elt,handler,nodeData,delay){var load=function load(){if(!nodeData.loaded){nodeData.loaded=true;handler(elt);}};if(delay>0){setTimeout(load,delay);}else{load();}}
function processVerbs(elt,nodeData,triggerSpecs){var explicitAction=false;forEach(VERBS,function(verb){if(hasAttribute(elt,'hx-'+verb)){var path=getAttributeValue(elt,'hx-'+verb);explicitAction=true;nodeData.path=path;nodeData.verb=verb;triggerSpecs.forEach(function(triggerSpec){addTriggerHandler(elt,triggerSpec,nodeData,function(elt,evt){if(closest(elt,htmx.config.disableSelector)){cleanUpElement(elt);return;}
issueAjaxRequest(verb,path,elt,evt);});});}});return explicitAction;}
function addTriggerHandler(elt,triggerSpec,nodeData,handler){if(triggerSpec.sseEvent){processSSETrigger(elt,handler,triggerSpec.sseEvent);}else if(triggerSpec.trigger==="revealed"){initScrollHandler();addEventListener(elt,handler,nodeData,triggerSpec);maybeReveal(elt);}else if(triggerSpec.trigger==="intersect"){var observerOptions={};if(triggerSpec.root){observerOptions.root=querySelectorExt(elt,triggerSpec.root);}
if(triggerSpec.threshold){observerOptions.threshold=parseFloat(triggerSpec.threshold);}
var observer=new IntersectionObserver(function(entries){for(var i=0;i<entries.length;i++){var entry=entries[i];if(entry.isIntersecting){triggerEvent(elt,"intersect");break;}}},observerOptions);observer.observe(elt);addEventListener(elt,handler,nodeData,triggerSpec);}else if(triggerSpec.trigger==="load"){if(!maybeFilterEvent(triggerSpec,elt,makeEvent("load",{elt:elt}))){loadImmediately(elt,handler,nodeData,triggerSpec.delay);}}else if(triggerSpec.pollInterval>0){nodeData.polling=true;processPolling(elt,handler,triggerSpec);}else{addEventListener(elt,handler,nodeData,triggerSpec);}}
function evalScript(script){if(htmx.config.allowScriptTags&&(script.type==="text/javascript"||script.type==="module"||script.type==="")){var newScript=getDocument().createElement("script");forEach(script.attributes,function(attr){newScript.setAttribute(attr.name,attr.value);});newScript.textContent=script.textContent;newScript.async=false;if(htmx.config.inlineScriptNonce){newScript.nonce=htmx.config.inlineScriptNonce;}
var parent=script.parentElement;try{parent.insertBefore(newScript,script);}catch(e){logError(e);}finally{if(script.parentElement){script.parentElement.removeChild(script);}}}}
function processScripts(elt){if(matches(elt,"script")){evalScript(elt);}
forEach(findAll(elt,"script"),function(script){evalScript(script);});}
function shouldProcessHxOn(elt){var attributes=elt.attributes;for(var j=0;j<attributes.length;j++){var attrName=attributes[j].name;if(startsWith(attrName,"hx-on:")||startsWith(attrName,"data-hx-on:")||startsWith(attrName,"hx-on-")||startsWith(attrName,"data-hx-on-")){return true;}}
return false;}
function findHxOnWildcardElements(elt){var node=null;var elements=[];if(shouldProcessHxOn(elt)){elements.push(elt);}
if(document.evaluate){var iter=document.evaluate('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or'+' starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]',elt);while(node=iter.iterateNext())elements.push(node);}else{var allElements=elt.getElementsByTagName("*");for(var i=0;i<allElements.length;i++){if(shouldProcessHxOn(allElements[i])){elements.push(allElements[i]);}}}
return elements;}
function findElementsToProcess(elt){if(elt.querySelectorAll){var boostedSelector=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]";var results=elt.querySelectorAll(VERB_SELECTOR+boostedSelector+", form, [type='submit'], [hx-sse], [data-hx-sse], [hx-ws],"+" [data-hx-ws], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger], [hx-on], [data-hx-on]");return results;}else{return[];}}
function maybeSetLastButtonClicked(evt){var elt=closest(evt.target,"button, input[type='submit']");var internalData=getRelatedFormData(evt);if(internalData){internalData.lastButtonClicked=elt;}};function maybeUnsetLastButtonClicked(evt){var internalData=getRelatedFormData(evt);if(internalData){internalData.lastButtonClicked=null;}}
function getRelatedFormData(evt){var elt=closest(evt.target,"button, input[type='submit']");if(!elt){return;}
var form=resolveTarget('#'+getRawAttribute(elt,'form'))||closest(elt,'form');if(!form){return;}
return getInternalData(form);}
function initButtonTracking(elt){elt.addEventListener('click',maybeSetLastButtonClicked);elt.addEventListener('focusin',maybeSetLastButtonClicked);elt.addEventListener('focusout',maybeUnsetLastButtonClicked);}
function countCurlies(line){var tokens=tokenizeString(line);var netCurlies=0;for(var i=0;i<tokens.length;i++){var token=tokens[i];if(token==="{"){netCurlies++;}else if(token==="}"){netCurlies--;}}
return netCurlies;}
function addHxOnEventHandler(elt,eventName,code){var nodeData=getInternalData(elt);if(!Array.isArray(nodeData.onHandlers)){nodeData.onHandlers=[];}
var func;var listener=function listener(e){return maybeEval(elt,function(){if(!func){func=new Function("event",code);}
func.call(elt,e);});};elt.addEventListener(eventName,listener);nodeData.onHandlers.push({event:eventName,listener:listener});}
function processHxOn(elt){var hxOnValue=getAttributeValue(elt,'hx-on');if(hxOnValue){var handlers={};var lines=hxOnValue.split("\n");var currentEvent=null;var curlyCount=0;while(lines.length>0){var line=lines.shift();var match=line.match(/^\s*([a-zA-Z:\-\.]+:)(.*)/);if(curlyCount===0&&match){line.split(":");currentEvent=match[1].slice(0,-1);handlers[currentEvent]=match[2];}else{handlers[currentEvent]+=line;}
curlyCount+=countCurlies(line);}
for(var eventName in handlers){addHxOnEventHandler(elt,eventName,handlers[eventName]);}}}
function processHxOnWildcard(elt){deInitOnHandlers(elt);for(var i=0;i<elt.attributes.length;i++){var name=elt.attributes[i].name;var value=elt.attributes[i].value;if(startsWith(name,"hx-on")||startsWith(name,"data-hx-on")){var afterOnPosition=name.indexOf("-on")+3;var nextChar=name.slice(afterOnPosition,afterOnPosition+1);if(nextChar==="-"||nextChar===":"){var eventName=name.slice(afterOnPosition+1);if(startsWith(eventName,":")){eventName="htmx"+eventName;}else if(startsWith(eventName,"-")){eventName="htmx:"+eventName.slice(1);}else if(startsWith(eventName,"htmx-")){eventName="htmx:"+eventName.slice(5);}
addHxOnEventHandler(elt,eventName,value);}}}}
function initNode(elt){if(closest(elt,htmx.config.disableSelector)){cleanUpElement(elt);return;}
var nodeData=getInternalData(elt);if(nodeData.initHash!==attributeHash(elt)){deInitNode(elt);nodeData.initHash=attributeHash(elt);processHxOn(elt);triggerEvent(elt,"htmx:beforeProcessNode");if(elt.value){nodeData.lastValue=elt.value;}
var triggerSpecs=getTriggerSpecs(elt);var hasExplicitHttpAction=processVerbs(elt,nodeData,triggerSpecs);if(!hasExplicitHttpAction){if(getClosestAttributeValue(elt,"hx-boost")==="true"){boostElement(elt,nodeData,triggerSpecs);}else if(hasAttribute(elt,'hx-trigger')){triggerSpecs.forEach(function(triggerSpec){addTriggerHandler(elt,triggerSpec,nodeData,function(){});});}}
if(elt.tagName==="FORM"||getRawAttribute(elt,"type")==="submit"&&hasAttribute(elt,"form")){initButtonTracking(elt);}
var sseInfo=getAttributeValue(elt,'hx-sse');if(sseInfo){processSSEInfo(elt,nodeData,sseInfo);}
var wsInfo=getAttributeValue(elt,'hx-ws');if(wsInfo){processWebSocketInfo(elt,nodeData,wsInfo);}
triggerEvent(elt,"htmx:afterProcessNode");}}
function processNode(elt){elt=resolveTarget(elt);if(closest(elt,htmx.config.disableSelector)){cleanUpElement(elt);return;}
initNode(elt);forEach(findElementsToProcess(elt),function(child){initNode(child);});forEach(findHxOnWildcardElements(elt),processHxOnWildcard);}
function kebabEventName(str){return str.replace(/([a-z0-9])([A-Z])/g,'$1-$2').toLowerCase();}
function makeEvent(eventName,detail){var evt;if(window.CustomEvent&&typeof window.CustomEvent==='function'){evt=new CustomEvent(eventName,{bubbles:true,cancelable:true,detail:detail});}else{evt=getDocument().createEvent('CustomEvent');evt.initCustomEvent(eventName,true,true,detail);}
return evt;}
function triggerErrorEvent(elt,eventName,detail){triggerEvent(elt,eventName,mergeObjects({error:eventName},detail));}
function ignoreEventForLogging(eventName){return eventName==="htmx:afterProcessNode";}
function withExtensions(elt,toDo){forEach(getExtensions(elt),function(extension){try{toDo(extension);}catch(e){logError(e);}});}
function logError(msg){if(console.error){console.error(msg);}else if(console.log){console.log("ERROR: ",msg);}}
function triggerEvent(elt,eventName,detail){elt=resolveTarget(elt);if(detail==null){detail={};}
detail["elt"]=elt;var event=makeEvent(eventName,detail);if(htmx.logger&&!ignoreEventForLogging(eventName)){htmx.logger(elt,eventName,detail);}
if(detail.error){logError(detail.error);triggerEvent(elt,"htmx:error",{errorInfo:detail});}
var eventResult=elt.dispatchEvent(event);var kebabName=kebabEventName(eventName);if(eventResult&&kebabName!==eventName){var kebabedEvent=makeEvent(kebabName,event.detail);eventResult=eventResult&&elt.dispatchEvent(kebabedEvent);}
withExtensions(elt,function(extension){eventResult=eventResult&&extension.onEvent(eventName,event)!==false&&!event.defaultPrevented;});return eventResult;}
var currentPathForHistory=location.pathname+location.search;function getHistoryElement(){var historyElt=getDocument().querySelector('[hx-history-elt],[data-hx-history-elt]');return historyElt||getDocument().body;}
function saveToHistoryCache(url,content,title,scroll){if(!canAccessLocalStorage()){return;}
if(htmx.config.historyCacheSize<=0){localStorage.removeItem("htmx-history-cache");return;}
url=normalizePath(url);var historyCache=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(var i=0;i<historyCache.length;i++){if(historyCache[i].url===url){historyCache.splice(i,1);break;}}
var newHistoryItem={url:url,content:content,title:title,scroll:scroll};triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:newHistoryItem,cache:historyCache});historyCache.push(newHistoryItem);while(historyCache.length>htmx.config.historyCacheSize){historyCache.shift();}
while(historyCache.length>0){try{localStorage.setItem("htmx-history-cache",JSON.stringify(historyCache));break;}catch(e){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:e,cache:historyCache});historyCache.shift();}}}
function getCachedHistory(url){if(!canAccessLocalStorage()){return null;}
url=normalizePath(url);var historyCache=parseJSON(localStorage.getItem("htmx-history-cache"))||[];for(var i=0;i<historyCache.length;i++){if(historyCache[i].url===url){return historyCache[i];}}
return null;}
function cleanInnerHtmlForHistory(elt){var className=htmx.config.requestClass;var clone=elt.cloneNode(true);forEach(findAll(clone,"."+className),function(child){removeClassFromElement(child,className);});return clone.innerHTML;}
function saveCurrentPageToHistory(){var elt=getHistoryElement();var path=currentPathForHistory||location.pathname+location.search;var disableHistoryCache;try{disableHistoryCache=getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]');}catch(e){disableHistoryCache=getDocument().querySelector('[hx-history="false"],[data-hx-history="false"]');}
if(!disableHistoryCache){triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:path,historyElt:elt});saveToHistoryCache(path,cleanInnerHtmlForHistory(elt),getDocument().title,window.scrollY);}
if(htmx.config.historyEnabled)history.replaceState({htmx:true},getDocument().title,window.location.href);}
function pushUrlIntoHistory(path){if(htmx.config.getCacheBusterParam){path=path.replace(/org\.htmx\.cache-buster=[^&]*&?/,'');if(endsWith(path,'&')||endsWith(path,"?")){path=path.slice(0,-1);}}
if(htmx.config.historyEnabled){history.pushState({htmx:true},"",path);}
currentPathForHistory=path;}
function replaceUrlInHistory(path){if(htmx.config.historyEnabled)history.replaceState({htmx:true},"",path);currentPathForHistory=path;}
function settleImmediately(tasks){forEach(tasks,function(task){task.call();});}
function loadHistoryFromServer(path){var request=new XMLHttpRequest();var details={path:path,xhr:request};triggerEvent(getDocument().body,"htmx:historyCacheMiss",details);request.open('GET',path,true);request.setRequestHeader("HX-Request","true");request.setRequestHeader("HX-History-Restore-Request","true");request.setRequestHeader("HX-Current-URL",getDocument().location.href);request.onload=function(){if(this.status>=200&&this.status<400){triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",details);var fragment=makeFragment(this.response);fragment=fragment.querySelector('[hx-history-elt],[data-hx-history-elt]')||fragment;var historyElement=getHistoryElement();var settleInfo=makeSettleInfo(historyElement);var title=findTitle(this.response);if(title){var titleElt=find("title");if(titleElt){titleElt.innerHTML=title;}else{window.document.title=title;}}
swapInnerHTML(historyElement,fragment,settleInfo);settleImmediately(settleInfo.tasks);currentPathForHistory=path;triggerEvent(getDocument().body,"htmx:historyRestore",{path:path,cacheMiss:true,serverResponse:this.response});}else{triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",details);}};request.send();}
function restoreHistory(path){saveCurrentPageToHistory();path=path||location.pathname+location.search;var cached=getCachedHistory(path);if(cached){var fragment=makeFragment(cached.content);var historyElement=getHistoryElement();var settleInfo=makeSettleInfo(historyElement);swapInnerHTML(historyElement,fragment,settleInfo);settleImmediately(settleInfo.tasks);document.title=cached.title;setTimeout(function(){window.scrollTo(0,cached.scroll);},0);currentPathForHistory=path;triggerEvent(getDocument().body,"htmx:historyRestore",{path:path,item:cached});}else{if(htmx.config.refreshOnHistoryMiss){window.location.reload(true);}else{loadHistoryFromServer(path);}}}
function addRequestIndicatorClasses(elt){var indicators=findAttributeTargets(elt,'hx-indicator');if(indicators==null){indicators=[elt];}
forEach(indicators,function(ic){var internalData=getInternalData(ic);internalData.requestCount=(internalData.requestCount||0)+1;ic.classList["add"].call(ic.classList,htmx.config.requestClass);});return indicators;}
function disableElements(elt){var disabledElts=findAttributeTargets(elt,'hx-disabled-elt');if(disabledElts==null){disabledElts=[];}
forEach(disabledElts,function(disabledElement){var internalData=getInternalData(disabledElement);internalData.requestCount=(internalData.requestCount||0)+1;disabledElement.setAttribute("disabled","");});return disabledElts;}
function removeRequestIndicators(indicators,disabled){forEach(indicators,function(ic){var internalData=getInternalData(ic);internalData.requestCount=(internalData.requestCount||0)-1;if(internalData.requestCount===0){ic.classList["remove"].call(ic.classList,htmx.config.requestClass);}});forEach(disabled,function(disabledElement){var internalData=getInternalData(disabledElement);internalData.requestCount=(internalData.requestCount||0)-1;if(internalData.requestCount===0){disabledElement.removeAttribute('disabled');}});}
function haveSeenNode(processed,elt){for(var i=0;i<processed.length;i++){var node=processed[i];if(node.isSameNode(elt)){return true;}}
return false;}
function shouldInclude(elt){if(elt.name===""||elt.name==null||elt.disabled||closest(elt,"fieldset[disabled]")){return false;}
if(elt.type==="button"||elt.type==="submit"||elt.tagName==="image"||elt.tagName==="reset"||elt.tagName==="file"){return false;}
if(elt.type==="checkbox"||elt.type==="radio"){return elt.checked;}
return true;}
function addValueToValues(name,value,values){if(name!=null&&value!=null){var current=values[name];if(current===undefined){values[name]=value;}else if(Array.isArray(current)){if(Array.isArray(value)){values[name]=current.concat(value);}else{current.push(value);}}else{if(Array.isArray(value)){values[name]=[current].concat(value);}else{values[name]=[current,value];}}}}
function processInputValue(processed,values,errors,elt,validate){if(elt==null||haveSeenNode(processed,elt)){return;}else{processed.push(elt);}
if(shouldInclude(elt)){var name=getRawAttribute(elt,"name");var value=elt.value;if(elt.multiple&&elt.tagName==="SELECT"){value=toArray(elt.querySelectorAll("option:checked")).map(function(e){return e.value;});}
if(elt.files){value=toArray(elt.files);}
addValueToValues(name,value,values);if(validate){validateElement(elt,errors);}}
if(matches(elt,'form')){var inputs=elt.elements;forEach(inputs,function(input){processInputValue(processed,values,errors,input,validate);});}}
function validateElement(element,errors){if(element.willValidate){triggerEvent(element,"htmx:validation:validate");if(!element.checkValidity()){errors.push({elt:element,message:element.validationMessage,validity:element.validity});triggerEvent(element,"htmx:validation:failed",{message:element.validationMessage,validity:element.validity});}}}
function getInputValues(elt,verb){var processed=[];var values={};var formValues={};var errors=[];var internalData=getInternalData(elt);if(internalData.lastButtonClicked&&!bodyContains(internalData.lastButtonClicked)){internalData.lastButtonClicked=null;}
var validate=matches(elt,'form')&&elt.noValidate!==true||getAttributeValue(elt,"hx-validate")==="true";if(internalData.lastButtonClicked){validate=validate&&internalData.lastButtonClicked.formNoValidate!==true;}
if(verb!=='get'){processInputValue(processed,formValues,errors,closest(elt,'form'),validate);}
processInputValue(processed,values,errors,elt,validate);if(internalData.lastButtonClicked||elt.tagName==="BUTTON"||elt.tagName==="INPUT"&&getRawAttribute(elt,"type")==="submit"){var button=internalData.lastButtonClicked||elt;var name=getRawAttribute(button,"name");addValueToValues(name,button.value,formValues);}
var includes=findAttributeTargets(elt,"hx-include");forEach(includes,function(node){processInputValue(processed,values,errors,node,validate);if(!matches(node,'form')){forEach(node.querySelectorAll(INPUT_SELECTOR),function(descendant){processInputValue(processed,values,errors,descendant,validate);});}});values=mergeObjects(values,formValues);return{errors:errors,values:values};}
function appendParam(returnStr,name,realValue){if(returnStr!==""){returnStr+="&";}
if(String(realValue)==="[object Object]"){realValue=JSON.stringify(realValue);}
var s=encodeURIComponent(realValue);returnStr+=encodeURIComponent(name)+"="+s;return returnStr;}
function urlEncode(values){var returnStr="";for(var name in values){if(values.hasOwnProperty(name)){var value=values[name];if(Array.isArray(value)){forEach(value,function(v){returnStr=appendParam(returnStr,name,v);});}else{returnStr=appendParam(returnStr,name,value);}}}
return returnStr;}
function makeFormData(values){var formData=new FormData();for(var name in values){if(values.hasOwnProperty(name)){var value=values[name];if(Array.isArray(value)){forEach(value,function(v){formData.append(name,v);});}else{formData.append(name,value);}}}
return formData;}
function getHeaders(elt,target,prompt){var headers={"HX-Request":"true","HX-Trigger":getRawAttribute(elt,"id"),"HX-Trigger-Name":getRawAttribute(elt,"name"),"HX-Target":getAttributeValue(target,"id"),"HX-Current-URL":getDocument().location.href};getValuesForElement(elt,"hx-headers",false,headers);if(prompt!==undefined){headers["HX-Prompt"]=prompt;}
if(getInternalData(elt).boosted){headers["HX-Boosted"]="true";}
return headers;}
function filterValues(inputValues,elt){var paramsValue=getClosestAttributeValue(elt,"hx-params");if(paramsValue){if(paramsValue==="none"){return{};}else if(paramsValue==="*"){return inputValues;}else if(paramsValue.indexOf("not ")===0){forEach(paramsValue.substr(4).split(","),function(name){name=name.trim();delete inputValues[name];});return inputValues;}else{var newValues={};forEach(paramsValue.split(","),function(name){name=name.trim();newValues[name]=inputValues[name];});return newValues;}}else{return inputValues;}}
function isAnchorLink(elt){return getRawAttribute(elt,'href')&&getRawAttribute(elt,'href').indexOf("#")>=0;}
function getSwapSpecification(elt,swapInfoOverride){var swapInfo=swapInfoOverride?swapInfoOverride:getClosestAttributeValue(elt,"hx-swap");var swapSpec={"swapStyle":getInternalData(elt).boosted?'innerHTML':htmx.config.defaultSwapStyle,"swapDelay":htmx.config.defaultSwapDelay,"settleDelay":htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(elt).boosted&&!isAnchorLink(elt)){swapSpec["show"]="top";}
if(swapInfo){var split=splitOnWhitespace(swapInfo);if(split.length>0){for(var i=0;i<split.length;i++){var value=split[i];if(value.indexOf("swap:")===0){swapSpec["swapDelay"]=parseInterval(value.substr(5));}else if(value.indexOf("settle:")===0){swapSpec["settleDelay"]=parseInterval(value.substr(7));}else if(value.indexOf("transition:")===0){swapSpec["transition"]=value.substr(11)==="true";}else if(value.indexOf("ignoreTitle:")===0){swapSpec["ignoreTitle"]=value.substr(12)==="true";}else if(value.indexOf("scroll:")===0){var scrollSpec=value.substr(7);var splitSpec=scrollSpec.split(":");var scrollVal=splitSpec.pop();var selectorVal=splitSpec.length>0?splitSpec.join(":"):null;swapSpec["scroll"]=scrollVal;swapSpec["scrollTarget"]=selectorVal;}else if(value.indexOf("show:")===0){var showSpec=value.substr(5);var splitSpec=showSpec.split(":");var showVal=splitSpec.pop();var selectorVal=splitSpec.length>0?splitSpec.join(":"):null;swapSpec["show"]=showVal;swapSpec["showTarget"]=selectorVal;}else if(value.indexOf("focus-scroll:")===0){var focusScrollVal=value.substr("focus-scroll:".length);swapSpec["focusScroll"]=focusScrollVal=="true";}else if(i==0){swapSpec["swapStyle"]=value;}else{logError('Unknown modifier in hx-swap: '+value);}}}}
return swapSpec;}
function usesFormData(elt){return getClosestAttributeValue(elt,"hx-encoding")==="multipart/form-data"||matches(elt,"form")&&getRawAttribute(elt,'enctype')==="multipart/form-data";}
function encodeParamsForBody(xhr,elt,filteredParameters){var encodedParameters=null;withExtensions(elt,function(extension){if(encodedParameters==null){encodedParameters=extension.encodeParameters(xhr,filteredParameters,elt);}});if(encodedParameters!=null){return encodedParameters;}else{if(usesFormData(elt)){return makeFormData(filteredParameters);}else{return urlEncode(filteredParameters);}}}
function makeSettleInfo(target){return{tasks:[],elts:[target]};}
function updateScrollState(content,swapSpec){var first=content[0];var last=content[content.length-1];if(swapSpec.scroll){var target=null;if(swapSpec.scrollTarget){target=querySelectorExt(first,swapSpec.scrollTarget);}
if(swapSpec.scroll==="top"&&(first||target)){target=target||first;target.scrollTop=0;}
if(swapSpec.scroll==="bottom"&&(last||target)){target=target||last;target.scrollTop=target.scrollHeight;}}
if(swapSpec.show){var target=null;if(swapSpec.showTarget){var targetStr=swapSpec.showTarget;if(swapSpec.showTarget==="window"){targetStr="body";}
target=querySelectorExt(first,targetStr);}
if(swapSpec.show==="top"&&(first||target)){target=target||first;target.scrollIntoView({block:'start',behavior:htmx.config.scrollBehavior});}
if(swapSpec.show==="bottom"&&(last||target)){target=target||last;target.scrollIntoView({block:'end',behavior:htmx.config.scrollBehavior});}}}
function getValuesForElement(elt,attr,evalAsDefault,values){if(values==null){values={};}
if(elt==null){return values;}
var attributeValue=getAttributeValue(elt,attr);if(attributeValue){var str=attributeValue.trim();var evaluateValue=evalAsDefault;if(str==="unset"){return null;}
if(str.indexOf("javascript:")===0){str=str.substr(11);evaluateValue=true;}else if(str.indexOf("js:")===0){str=str.substr(3);evaluateValue=true;}
if(str.indexOf('{')!==0){str="{"+str+"}";}
var varsValues;if(evaluateValue){varsValues=maybeEval(elt,function(){return Function("return ("+str+")")();},{});}else{varsValues=parseJSON(str);}
for(var key in varsValues){if(varsValues.hasOwnProperty(key)){if(values[key]==null){values[key]=varsValues[key];}}}}
return getValuesForElement(parentElt(elt),attr,evalAsDefault,values);}
function maybeEval(elt,toEval,defaultVal){if(htmx.config.allowEval){return toEval();}else{triggerErrorEvent(elt,'htmx:evalDisallowedError');return defaultVal;}}
function getHXVarsForElement(elt,expressionVars){return getValuesForElement(elt,"hx-vars",true,expressionVars);}
function getHXValsForElement(elt,expressionVars){return getValuesForElement(elt,"hx-vals",false,expressionVars);}
function getExpressionVars(elt){return mergeObjects(getHXVarsForElement(elt),getHXValsForElement(elt));}
function safelySetHeaderValue(xhr,header,headerValue){if(headerValue!==null){try{xhr.setRequestHeader(header,headerValue);}catch(e){xhr.setRequestHeader(header,encodeURIComponent(headerValue));xhr.setRequestHeader(header+"-URI-AutoEncoded","true");}}}
function getPathFromResponse(xhr){if(xhr.responseURL&&typeof URL!=="undefined"){try{var url=new URL(xhr.responseURL);return url.pathname+url.search;}catch(e){triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:xhr.responseURL});}}}
function hasHeader(xhr,regexp){return regexp.test(xhr.getAllResponseHeaders());}
function ajaxHelper(verb,path,context){verb=verb.toLowerCase();if(context){if(context instanceof Element||isType(context,'String')){return issueAjaxRequest(verb,path,null,null,{targetOverride:resolveTarget(context),returnPromise:true});}else{return issueAjaxRequest(verb,path,resolveTarget(context.source),context.event,{handler:context.handler,headers:context.headers,values:context.values,targetOverride:resolveTarget(context.target),swapOverride:context.swap,select:context.select,returnPromise:true});}}else{return issueAjaxRequest(verb,path,null,null,{returnPromise:true});}}
function hierarchyForElt(elt){var arr=[];while(elt){arr.push(elt);elt=elt.parentElement;}
return arr;}
function verifyPath(elt,path,requestConfig){var sameHost;var url;if(typeof URL==="function"){url=new URL(path,document.location.href);var origin=document.location.origin;sameHost=origin===url.origin;}else{url=path;sameHost=startsWith(path,document.location.origin);}
if(htmx.config.selfRequestsOnly){if(!sameHost){return false;}}
return triggerEvent(elt,"htmx:validateUrl",mergeObjects({url:url,sameHost:sameHost},requestConfig));}
function issueAjaxRequest(verb,path,elt,event,etc,confirmed){var resolve=null;var reject=null;etc=etc!=null?etc:{};if(etc.returnPromise&&typeof Promise!=="undefined"){var promise=new Promise(function(_resolve,_reject){resolve=_resolve;reject=_reject;});}
if(elt==null){elt=getDocument().body;}
var responseHandler=etc.handler||handleAjaxResponse;var select=etc.select||null;if(!bodyContains(elt)){maybeCall(resolve);return promise;}
var target=etc.targetOverride||getTarget(elt);if(target==null||target==DUMMY_ELT){triggerErrorEvent(elt,'htmx:targetError',{target:getAttributeValue(elt,"hx-target")});maybeCall(reject);return promise;}
var eltData=getInternalData(elt);var submitter=eltData.lastButtonClicked;if(submitter){var buttonPath=getRawAttribute(submitter,"formaction");if(buttonPath!=null){path=buttonPath;}
var buttonVerb=getRawAttribute(submitter,"formmethod");if(buttonVerb!=null){if(buttonVerb.toLowerCase()!=="dialog"){verb=buttonVerb;}}}
var confirmQuestion=getClosestAttributeValue(elt,"hx-confirm");if(confirmed===undefined){var issueRequest=function issueRequest(skipConfirmation){return issueAjaxRequest(verb,path,elt,event,etc,!!skipConfirmation);};var confirmDetails={target:target,elt:elt,path:path,verb:verb,triggeringEvent:event,etc:etc,issueRequest:issueRequest,question:confirmQuestion};if(triggerEvent(elt,'htmx:confirm',confirmDetails)===false){maybeCall(resolve);return promise;}}
var syncElt=elt;var syncStrategy=getClosestAttributeValue(elt,"hx-sync");var queueStrategy=null;var abortable=false;if(syncStrategy){var syncStrings=syncStrategy.split(":");var selector=syncStrings[0].trim();if(selector==="this"){syncElt=findThisElement(elt,'hx-sync');}else{syncElt=querySelectorExt(elt,selector);}
syncStrategy=(syncStrings[1]||'drop').trim();eltData=getInternalData(syncElt);if(syncStrategy==="drop"&&eltData.xhr&&eltData.abortable!==true){maybeCall(resolve);return promise;}else if(syncStrategy==="abort"){if(eltData.xhr){maybeCall(resolve);return promise;}else{abortable=true;}}else if(syncStrategy==="replace"){triggerEvent(syncElt,'htmx:abort');}else if(syncStrategy.indexOf("queue")===0){var queueStrArray=syncStrategy.split(" ");queueStrategy=(queueStrArray[1]||"last").trim();}}
if(eltData.xhr){if(eltData.abortable){triggerEvent(syncElt,'htmx:abort');}else{if(queueStrategy==null){if(event){var eventData=getInternalData(event);if(eventData&&eventData.triggerSpec&&eventData.triggerSpec.queue){queueStrategy=eventData.triggerSpec.queue;}}
if(queueStrategy==null){queueStrategy="last";}}
if(eltData.queuedRequests==null){eltData.queuedRequests=[];}
if(queueStrategy==="first"&&eltData.queuedRequests.length===0){eltData.queuedRequests.push(function(){issueAjaxRequest(verb,path,elt,event,etc);});}else if(queueStrategy==="all"){eltData.queuedRequests.push(function(){issueAjaxRequest(verb,path,elt,event,etc);});}else if(queueStrategy==="last"){eltData.queuedRequests=[];eltData.queuedRequests.push(function(){issueAjaxRequest(verb,path,elt,event,etc);});}
maybeCall(resolve);return promise;}}
var xhr=new XMLHttpRequest();eltData.xhr=xhr;eltData.abortable=abortable;var endRequestLock=function endRequestLock(){eltData.xhr=null;eltData.abortable=false;if(eltData.queuedRequests!=null&&eltData.queuedRequests.length>0){var queuedRequest=eltData.queuedRequests.shift();queuedRequest();}};var promptQuestion=getClosestAttributeValue(elt,"hx-prompt");if(promptQuestion){var promptResponse=prompt(promptQuestion);if(promptResponse===null||!triggerEvent(elt,'htmx:prompt',{prompt:promptResponse,target:target})){maybeCall(resolve);endRequestLock();return promise;}}
if(confirmQuestion&&!confirmed){if(!confirm(confirmQuestion)){maybeCall(resolve);endRequestLock();return promise;}}
var headers=getHeaders(elt,target,promptResponse);if(verb!=='get'&&!usesFormData(elt)){headers['Content-Type']='application/x-www-form-urlencoded';}
if(etc.headers){headers=mergeObjects(headers,etc.headers);}
var results=getInputValues(elt,verb);var errors=results.errors;var rawParameters=results.values;if(etc.values){rawParameters=mergeObjects(rawParameters,etc.values);}
var expressionVars=getExpressionVars(elt);var allParameters=mergeObjects(rawParameters,expressionVars);var filteredParameters=filterValues(allParameters,elt);if(htmx.config.getCacheBusterParam&&verb==='get'){filteredParameters['org.htmx.cache-buster']=getRawAttribute(target,"id")||"true";}
if(path==null||path===""){path=getDocument().location.href;}
var requestAttrValues=getValuesForElement(elt,'hx-request');var eltIsBoosted=getInternalData(elt).boosted;var useUrlParams=htmx.config.methodsThatUseUrlParams.indexOf(verb)>=0;var requestConfig={boosted:eltIsBoosted,useUrlParams:useUrlParams,parameters:filteredParameters,unfilteredParameters:allParameters,headers:headers,target:target,verb:verb,errors:errors,withCredentials:etc.credentials||requestAttrValues.credentials||htmx.config.withCredentials,timeout:etc.timeout||requestAttrValues.timeout||htmx.config.timeout,path:path,triggeringEvent:event};if(!triggerEvent(elt,'htmx:configRequest',requestConfig)){maybeCall(resolve);endRequestLock();return promise;}
path=requestConfig.path;verb=requestConfig.verb;headers=requestConfig.headers;filteredParameters=requestConfig.parameters;errors=requestConfig.errors;useUrlParams=requestConfig.useUrlParams;if(errors&&errors.length>0){triggerEvent(elt,'htmx:validation:halted',requestConfig);maybeCall(resolve);endRequestLock();return promise;}
var splitPath=path.split("#");var pathNoAnchor=splitPath[0];var anchor=splitPath[1];var finalPath=path;if(useUrlParams){finalPath=pathNoAnchor;var values=Object.keys(filteredParameters).length!==0;if(values){if(finalPath.indexOf("?")<0){finalPath+="?";}else{finalPath+="&";}
finalPath+=urlEncode(filteredParameters);if(anchor){finalPath+="#"+anchor;}}}
if(!verifyPath(elt,finalPath,requestConfig)){triggerErrorEvent(elt,'htmx:invalidPath',requestConfig);maybeCall(reject);return promise;};xhr.open(verb.toUpperCase(),finalPath,true);xhr.overrideMimeType("text/html");xhr.withCredentials=requestConfig.withCredentials;xhr.timeout=requestConfig.timeout;if(requestAttrValues.noHeaders){}else{for(var header in headers){if(headers.hasOwnProperty(header)){var headerValue=headers[header];safelySetHeaderValue(xhr,header,headerValue);}}}
var responseInfo={xhr:xhr,target:target,requestConfig:requestConfig,etc:etc,boosted:eltIsBoosted,select:select,pathInfo:{requestPath:path,finalRequestPath:finalPath,anchor:anchor}};xhr.onload=function(){try{var hierarchy=hierarchyForElt(elt);responseInfo.pathInfo.responsePath=getPathFromResponse(xhr);responseHandler(elt,responseInfo);removeRequestIndicators(indicators,disableElts);triggerEvent(elt,'htmx:afterRequest',responseInfo);triggerEvent(elt,'htmx:afterOnLoad',responseInfo);if(!bodyContains(elt)){var secondaryTriggerElt=null;while(hierarchy.length>0&&secondaryTriggerElt==null){var parentEltInHierarchy=hierarchy.shift();if(bodyContains(parentEltInHierarchy)){secondaryTriggerElt=parentEltInHierarchy;}}
if(secondaryTriggerElt){triggerEvent(secondaryTriggerElt,'htmx:afterRequest',responseInfo);triggerEvent(secondaryTriggerElt,'htmx:afterOnLoad',responseInfo);}}
maybeCall(resolve);endRequestLock();}catch(e){triggerErrorEvent(elt,'htmx:onLoadError',mergeObjects({error:e},responseInfo));throw e;}};xhr.onerror=function(){removeRequestIndicators(indicators,disableElts);triggerErrorEvent(elt,'htmx:afterRequest',responseInfo);triggerErrorEvent(elt,'htmx:sendError',responseInfo);maybeCall(reject);endRequestLock();};xhr.onabort=function(){removeRequestIndicators(indicators,disableElts);triggerErrorEvent(elt,'htmx:afterRequest',responseInfo);triggerErrorEvent(elt,'htmx:sendAbort',responseInfo);maybeCall(reject);endRequestLock();};xhr.ontimeout=function(){removeRequestIndicators(indicators,disableElts);triggerErrorEvent(elt,'htmx:afterRequest',responseInfo);triggerErrorEvent(elt,'htmx:timeout',responseInfo);maybeCall(reject);endRequestLock();};if(!triggerEvent(elt,'htmx:beforeRequest',responseInfo)){maybeCall(resolve);endRequestLock();return promise;}
var indicators=addRequestIndicatorClasses(elt);var disableElts=disableElements(elt);forEach(['loadstart','loadend','progress','abort'],function(eventName){forEach([xhr,xhr.upload],function(target){target.addEventListener(eventName,function(event){triggerEvent(elt,"htmx:xhr:"+eventName,{lengthComputable:event.lengthComputable,loaded:event.loaded,total:event.total});});});});triggerEvent(elt,'htmx:beforeSend',responseInfo);var params=useUrlParams?null:encodeParamsForBody(xhr,elt,filteredParameters);xhr.send(params);return promise;}
function determineHistoryUpdates(elt,responseInfo){var xhr=responseInfo.xhr;var pathFromHeaders=null;var typeFromHeaders=null;if(hasHeader(xhr,/HX-Push:/i)){pathFromHeaders=xhr.getResponseHeader("HX-Push");typeFromHeaders="push";}else if(hasHeader(xhr,/HX-Push-Url:/i)){pathFromHeaders=xhr.getResponseHeader("HX-Push-Url");typeFromHeaders="push";}else if(hasHeader(xhr,/HX-Replace-Url:/i)){pathFromHeaders=xhr.getResponseHeader("HX-Replace-Url");typeFromHeaders="replace";}
if(pathFromHeaders){if(pathFromHeaders==="false"){return{};}else{return{type:typeFromHeaders,path:pathFromHeaders};}}
var requestPath=responseInfo.pathInfo.finalRequestPath;var responsePath=responseInfo.pathInfo.responsePath;var pushUrl=getClosestAttributeValue(elt,"hx-push-url");var replaceUrl=getClosestAttributeValue(elt,"hx-replace-url");var elementIsBoosted=getInternalData(elt).boosted;var saveType=null;var path=null;if(pushUrl){saveType="push";path=pushUrl;}else if(replaceUrl){saveType="replace";path=replaceUrl;}else if(elementIsBoosted){saveType="push";path=responsePath||requestPath;}
if(path){if(path==="false"){return{};}
if(path==="true"){path=responsePath||requestPath;}
if(responseInfo.pathInfo.anchor&&path.indexOf("#")===-1){path=path+"#"+responseInfo.pathInfo.anchor;}
return{type:saveType,path:path};}else{return{};}}
function handleAjaxResponse(elt,responseInfo){var xhr=responseInfo.xhr;var target=responseInfo.target;var etc=responseInfo.etc;var requestConfig=responseInfo.requestConfig;var select=responseInfo.select;if(!triggerEvent(elt,'htmx:beforeOnLoad',responseInfo))return;if(hasHeader(xhr,/HX-Trigger:/i)){handleTrigger(xhr,"HX-Trigger",elt);}
if(hasHeader(xhr,/HX-Location:/i)){saveCurrentPageToHistory();var redirectPath=xhr.getResponseHeader("HX-Location");var swapSpec;if(redirectPath.indexOf("{")===0){swapSpec=parseJSON(redirectPath);redirectPath=swapSpec['path'];delete swapSpec['path'];}
ajaxHelper('GET',redirectPath,swapSpec).then(function(){pushUrlIntoHistory(redirectPath);});return;}
var shouldRefresh=hasHeader(xhr,/HX-Refresh:/i)&&"true"===xhr.getResponseHeader("HX-Refresh");if(hasHeader(xhr,/HX-Redirect:/i)){location.href=xhr.getResponseHeader("HX-Redirect");shouldRefresh&&location.reload();return;}
if(shouldRefresh){location.reload();return;}
if(hasHeader(xhr,/HX-Retarget:/i)){if(xhr.getResponseHeader("HX-Retarget")==="this"){responseInfo.target=elt;}else{responseInfo.target=querySelectorExt(elt,xhr.getResponseHeader("HX-Retarget"));}}
var historyUpdate=determineHistoryUpdates(elt,responseInfo);var shouldSwap=xhr.status>=200&&xhr.status<400&&xhr.status!==204;var serverResponse=xhr.response;var isError=xhr.status>=400;var ignoreTitle=htmx.config.ignoreTitle;var beforeSwapDetails=mergeObjects({shouldSwap:shouldSwap,serverResponse:serverResponse,isError:isError,ignoreTitle:ignoreTitle},responseInfo);if(!triggerEvent(target,'htmx:beforeSwap',beforeSwapDetails))return;target=beforeSwapDetails.target;serverResponse=beforeSwapDetails.serverResponse;isError=beforeSwapDetails.isError;ignoreTitle=beforeSwapDetails.ignoreTitle;responseInfo.target=target;responseInfo.failed=isError;responseInfo.successful=!isError;if(beforeSwapDetails.shouldSwap){if(xhr.status===286){cancelPolling(elt);}
withExtensions(elt,function(extension){serverResponse=extension.transformResponse(serverResponse,xhr,elt);});if(historyUpdate.type){saveCurrentPageToHistory();}
var swapOverride=etc.swapOverride;if(hasHeader(xhr,/HX-Reswap:/i)){swapOverride=xhr.getResponseHeader("HX-Reswap");}
var swapSpec=getSwapSpecification(elt,swapOverride);if(swapSpec.hasOwnProperty('ignoreTitle')){ignoreTitle=swapSpec.ignoreTitle;}
target.classList.add(htmx.config.swappingClass);var settleResolve=null;var settleReject=null;var doSwap=function doSwap(){try{var activeElt=document.activeElement;var selectionInfo={};try{selectionInfo={elt:activeElt,start:activeElt?activeElt.selectionStart:null,end:activeElt?activeElt.selectionEnd:null};}catch(e){}
var selectOverride;if(select){selectOverride=select;}
if(hasHeader(xhr,/HX-Reselect:/i)){selectOverride=xhr.getResponseHeader("HX-Reselect");}
if(historyUpdate.type){triggerEvent(getDocument().body,'htmx:beforeHistoryUpdate',mergeObjects({history:historyUpdate},responseInfo));if(historyUpdate.type==="push"){pushUrlIntoHistory(historyUpdate.path);triggerEvent(getDocument().body,'htmx:pushedIntoHistory',{path:historyUpdate.path});}else{replaceUrlInHistory(historyUpdate.path);triggerEvent(getDocument().body,'htmx:replacedInHistory',{path:historyUpdate.path});}}
var settleInfo=makeSettleInfo(target);selectAndSwap(swapSpec.swapStyle,target,elt,serverResponse,settleInfo,selectOverride);if(selectionInfo.elt&&!bodyContains(selectionInfo.elt)&&getRawAttribute(selectionInfo.elt,"id")){var newActiveElt=document.getElementById(getRawAttribute(selectionInfo.elt,"id"));var focusOptions={preventScroll:swapSpec.focusScroll!==undefined?!swapSpec.focusScroll:!htmx.config.defaultFocusScroll};if(newActiveElt){if(selectionInfo.start&&newActiveElt.setSelectionRange){try{newActiveElt.setSelectionRange(selectionInfo.start,selectionInfo.end);}catch(e){}}
newActiveElt.focus(focusOptions);}}
target.classList.remove(htmx.config.swappingClass);forEach(settleInfo.elts,function(elt){if(elt.classList){elt.classList.add(htmx.config.settlingClass);}
triggerEvent(elt,'htmx:afterSwap',responseInfo);});if(hasHeader(xhr,/HX-Trigger-After-Swap:/i)){var finalElt=elt;if(!bodyContains(elt)){finalElt=getDocument().body;}
handleTrigger(xhr,"HX-Trigger-After-Swap",finalElt);}
var doSettle=function doSettle(){forEach(settleInfo.tasks,function(task){task.call();});forEach(settleInfo.elts,function(elt){if(elt.classList){elt.classList.remove(htmx.config.settlingClass);}
triggerEvent(elt,'htmx:afterSettle',responseInfo);});if(responseInfo.pathInfo.anchor){var anchorTarget=getDocument().getElementById(responseInfo.pathInfo.anchor);if(anchorTarget){anchorTarget.scrollIntoView({block:'start',behavior:"auto"});}}
if(settleInfo.title&&!ignoreTitle){var titleElt=find("title");if(titleElt){titleElt.innerHTML=settleInfo.title;}else{window.document.title=settleInfo.title;}}
updateScrollState(settleInfo.elts,swapSpec);if(hasHeader(xhr,/HX-Trigger-After-Settle:/i)){var finalElt=elt;if(!bodyContains(elt)){finalElt=getDocument().body;}
handleTrigger(xhr,"HX-Trigger-After-Settle",finalElt);}
maybeCall(settleResolve);};if(swapSpec.settleDelay>0){setTimeout(doSettle,swapSpec.settleDelay);}else{doSettle();}}catch(e){triggerErrorEvent(elt,'htmx:swapError',responseInfo);maybeCall(settleReject);throw e;}};var shouldTransition=htmx.config.globalViewTransitions;if(swapSpec.hasOwnProperty('transition')){shouldTransition=swapSpec.transition;}
if(shouldTransition&&triggerEvent(elt,'htmx:beforeTransition',responseInfo)&&typeof Promise!=="undefined"&&document.startViewTransition){var settlePromise=new Promise(function(_resolve,_reject){settleResolve=_resolve;settleReject=_reject;});var innerDoSwap=doSwap;doSwap=function doSwap(){document.startViewTransition(function(){innerDoSwap();return settlePromise;});};}
if(swapSpec.swapDelay>0){setTimeout(doSwap,swapSpec.swapDelay);}else{doSwap();}}
if(isError){triggerErrorEvent(elt,'htmx:responseError',mergeObjects({error:"Response Status Error Code "+xhr.status+" from "+responseInfo.pathInfo.requestPath},responseInfo));}}
var extensions={};function extensionBase(){return{init:function init(api){return null;},onEvent:function onEvent(name,evt){return true;},transformResponse:function transformResponse(text,xhr,elt){return text;},isInlineSwap:function isInlineSwap(swapStyle){return false;},handleSwap:function handleSwap(swapStyle,target,fragment,settleInfo){return false;},encodeParameters:function encodeParameters(xhr,parameters,elt){return null;}};}
function defineExtension(name,extension){if(extension.init){extension.init(internalAPI);}
extensions[name]=mergeObjects(extensionBase(),extension);}
function removeExtension(name){delete extensions[name];}
function getExtensions(elt,extensionsToReturn,extensionsToIgnore){if(elt==undefined){return extensionsToReturn;}
if(extensionsToReturn==undefined){extensionsToReturn=[];}
if(extensionsToIgnore==undefined){extensionsToIgnore=[];}
var extensionsForElement=getAttributeValue(elt,"hx-ext");if(extensionsForElement){forEach(extensionsForElement.split(","),function(extensionName){extensionName=extensionName.replace(/ /g,'');if(extensionName.slice(0,7)=="ignore:"){extensionsToIgnore.push(extensionName.slice(7));return;}
if(extensionsToIgnore.indexOf(extensionName)<0){var extension=extensions[extensionName];if(extension&&extensionsToReturn.indexOf(extension)<0){extensionsToReturn.push(extension);}}});}
return getExtensions(parentElt(elt),extensionsToReturn,extensionsToIgnore);}
var isReady=false;getDocument().addEventListener('DOMContentLoaded',function(){isReady=true;});function ready(fn){if(isReady||getDocument().readyState==='complete'){fn();}else{getDocument().addEventListener('DOMContentLoaded',fn);}}
function insertIndicatorStyles(){if(htmx.config.includeIndicatorStyles!==false){getDocument().head.insertAdjacentHTML("beforeend","<style>                      ."+htmx.config.indicatorClass+"{opacity:0}                      ."+htmx.config.requestClass+" ."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                      ."+htmx.config.requestClass+"."+htmx.config.indicatorClass+"{opacity:1; transition: opacity 200ms ease-in;}                    </style>");}}
function getMetaConfig(){var element=getDocument().querySelector('meta[name="htmx-config"]');if(element){return parseJSON(element.content);}else{return null;}}
function mergeMetaConfig(){var metaConfig=getMetaConfig();if(metaConfig){htmx.config=mergeObjects(htmx.config,metaConfig);}}
ready(function(){mergeMetaConfig();insertIndicatorStyles();var body=getDocument().body;processNode(body);var restoredElts=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");body.addEventListener("htmx:abort",function(evt){var target=evt.target;var internalData=getInternalData(target);if(internalData&&internalData.xhr){internalData.xhr.abort();}});var originalPopstate=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(event){if(event.state&&event.state.htmx){restoreHistory();forEach(restoredElts,function(elt){triggerEvent(elt,'htmx:restored',{'document':getDocument(),'triggerEvent':triggerEvent});});}else{if(originalPopstate){originalPopstate(event);}}};setTimeout(function(){triggerEvent(body,'htmx:load',{});body=null;},0);});return htmx;}();});"use strict";var CountUp=function CountUp(target,startVal,endVal,decimals,duration,options){var lastTime=0;var vendors=['webkit','moz','ms','o'];for(var x=0;x<vendors.length&&!window.requestAnimationFrame;++x){window.requestAnimationFrame=window[vendors[x]+'RequestAnimationFrame'];window.cancelAnimationFrame=window[vendors[x]+'CancelAnimationFrame']||window[vendors[x]+'CancelRequestAnimationFrame'];}
if(!window.requestAnimationFrame){window.requestAnimationFrame=function(callback,element){var currTime=new Date().getTime();var timeToCall=Math.max(0,16-(currTime-lastTime));var id=window.setTimeout(function(){callback(currTime+timeToCall);},timeToCall);lastTime=currTime+timeToCall;return id;};}
if(!window.cancelAnimationFrame){window.cancelAnimationFrame=function(id){clearTimeout(id);};}
var self=this;self.options={useEasing:true,useGrouping:true,separator:',',decimal:'.',easingFn:null,formattingFn:null};for(var key in options){if(options.hasOwnProperty(key)){self.options[key]=options[key];}}
if(self.options.separator===''){self.options.useGrouping=false;}
if(!self.options.prefix)self.options.prefix='';if(!self.options.suffix)self.options.suffix='';self.d=typeof target==='string'?document.getElementById(target):target;self.startVal=Number(startVal);self.endVal=Number(endVal);self.countDown=self.startVal>self.endVal;self.frameVal=self.startVal;self.decimals=Math.max(0,decimals||0);self.dec=Math.pow(10,self.decimals);self.duration=Number(duration)*1000||2000;self.formatNumber=function(nStr){nStr=nStr.toFixed(self.decimals);nStr+='';var x,x1,x2,rgx;x=nStr.split('.');x1=x[0];x2=x.length>1?self.options.decimal+x[1]:'';rgx=/(\d+)(\d{3})/;if(self.options.useGrouping){while(rgx.test(x1)){x1=x1.replace(rgx,'$1'+self.options.separator+'$2');}}
return self.options.prefix+x1+x2+self.options.suffix;};self.easeOutExpo=function(t,b,c,d){return c*(-Math.pow(2,-10*t/d)+1)*1024/1023+b;};self.easingFn=self.options.easingFn?self.options.easingFn:self.easeOutExpo;self.formattingFn=self.options.formattingFn?self.options.formattingFn:self.formatNumber;self.version=function(){return'1.7.1';};self.printValue=function(value){var result=self.formattingFn(value);if(self.d.tagName==='INPUT'){this.d.value=result;}else if(self.d.tagName==='text'||self.d.tagName==='tspan'){this.d.textContent=result;}else{this.d.innerHTML=result;}};self.count=function(timestamp){if(!self.startTime){self.startTime=timestamp;}
self.timestamp=timestamp;var progress=timestamp-self.startTime;self.remaining=self.duration-progress;if(self.options.useEasing){if(self.countDown){self.frameVal=self.startVal-self.easingFn(progress,0,self.startVal-self.endVal,self.duration);}else{self.frameVal=self.easingFn(progress,self.startVal,self.endVal-self.startVal,self.duration);}}else{if(self.countDown){self.frameVal=self.startVal-(self.startVal-self.endVal)*(progress/self.duration);}else{self.frameVal=self.startVal+(self.endVal-self.startVal)*(progress/self.duration);}}
if(self.countDown){self.frameVal=self.frameVal<self.endVal?self.endVal:self.frameVal;}else{self.frameVal=self.frameVal>self.endVal?self.endVal:self.frameVal;}
self.frameVal=Math.round(self.frameVal*self.dec)/self.dec;self.printValue(self.frameVal);if(progress<self.duration){self.rAF=requestAnimationFrame(self.count);}else{if(self.callback){self.callback();}}};self.start=function(callback){self.callback=callback;self.rAF=requestAnimationFrame(self.count);return false;};self.pauseResume=function(){if(!self.paused){self.paused=true;cancelAnimationFrame(self.rAF);}else{self.paused=false;delete self.startTime;self.duration=self.remaining;self.startVal=self.frameVal;requestAnimationFrame(self.count);}};self.reset=function(){self.paused=false;delete self.startTime;self.startVal=startVal;cancelAnimationFrame(self.rAF);self.printValue(self.startVal);};self.update=function(newEndVal){cancelAnimationFrame(self.rAF);self.paused=false;delete self.startTime;self.startVal=self.frameVal;self.endVal=Number(newEndVal);self.countDown=self.startVal>self.endVal;self.rAF=requestAnimationFrame(self.count);};self.printValue(self.startVal);};"use strict";function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}
function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value" in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor);}}
function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}
(function(global,factory){(typeof exports==="undefined"?"undefined":_typeof(exports))==='object'&&typeof module!=='undefined'?module.exports=factory():typeof define==='function'&&define.amd?define(factory):(global=typeof globalThis!=='undefined'?globalThis:global||self,global.Splide=factory());})(void 0,function(){'use strict';var MEDIA_PREFERS_REDUCED_MOTION="(prefers-reduced-motion: reduce)";var CREATED=1;var MOUNTED=2;var IDLE=3;var MOVING=4;var SCROLLING=5;var DRAGGING=6;var DESTROYED=7;var STATES={CREATED:CREATED,MOUNTED:MOUNTED,IDLE:IDLE,MOVING:MOVING,SCROLLING:SCROLLING,DRAGGING:DRAGGING,DESTROYED:DESTROYED};function empty(array){array.length=0;}
function slice(arrayLike,start,end){return Array.prototype.slice.call(arrayLike,start,end);}
function apply(func){return func.bind.apply(func,[null].concat(slice(arguments,1)));}
var nextTick=setTimeout;var noop=function noop(){};function raf(func){return requestAnimationFrame(func);}
function typeOf(type,subject){return _typeof(subject)===type;}
function isObject(subject){return!isNull(subject)&&typeOf("object",subject);}
var isArray=Array.isArray;var isFunction=apply(typeOf,"function");var isString=apply(typeOf,"string");var isUndefined=apply(typeOf,"undefined");function isNull(subject){return subject===null;}
function isHTMLElement(subject){try{return subject instanceof(subject.ownerDocument.defaultView||window).HTMLElement;}catch(e){return false;}}
function toArray(value){return isArray(value)?value:[value];}
function forEach(values,iteratee){toArray(values).forEach(iteratee);}
function includes(array,value){return array.indexOf(value)>-1;}
function push(array,items){array.push.apply(array,toArray(items));return array;}
function toggleClass(elm,classes,add){if(elm){forEach(elm,function(thisElm){forEach(classes,function(name){if(name){thisElm.classList[add?"add":"remove"](name);}});});}}
function addClass(elm,classes){forEach(elm,function(thisElm){toggleClass(elm,isString(classes)?classes.split(" "):classes,true);});}
function append(parent,children){forEach(children,parent.appendChild.bind(parent));}
function before(nodes,ref){forEach(nodes,function(node){var parent=(ref||node).parentNode;if(parent){parent.insertBefore(node,ref);}});}
function matches(elm,selector){return isHTMLElement(elm)&&(elm["msMatchesSelector"]||elm.matches).call(elm,selector);}
function children(parent,selector){var children2=parent?slice(parent.children):[];return selector?children2.filter(function(child){return matches(child,selector);}):children2;}
function child(parent,selector){return selector?children(parent,selector)[0]:parent.firstElementChild;}
var ownKeys=Object.keys;function forOwn(object,iteratee,right){if(object){(right?ownKeys(object).reverse():ownKeys(object)).forEach(function(key){key!=="__proto__"&&iteratee(object[key],key);});}
return object;}
function assign(object){slice(arguments,1).forEach(function(source){forOwn(source,function(value,key){object[key]=source[key];});});return object;}
function merge(object){slice(arguments,1).forEach(function(source){forOwn(source,function(value,key){if(isArray(value)){object[key]=value.slice();}else if(isObject(value)){object[key]=merge({},isObject(object[key])?object[key]:{},value);}else{object[key]=value;}});});return object;}
function omit(object,keys){forEach(keys||ownKeys(object),function(key){delete object[key];});}
function removeAttribute(elms,attrs){forEach(elms,function(elm){forEach(attrs,function(attr){elm&&elm.removeAttribute(attr);});});}
function setAttribute(elms,attrs,value){if(isObject(attrs)){forOwn(attrs,function(value2,name){setAttribute(elms,name,value2);});}else{forEach(elms,function(elm){isNull(value)||value===""?removeAttribute(elm,attrs):elm.setAttribute(attrs,String(value));});}}
function create(tag,attrs,parent){var elm=document.createElement(tag);if(attrs){isString(attrs)?addClass(elm,attrs):setAttribute(elm,attrs);}
parent&&append(parent,elm);return elm;}
function style(elm,prop,value){forEach(elm,function(thisElm){styleOne(thisElm,prop,value);});}
function styleOne(elm,prop,value){if(isUndefined(value)){return getComputedStyle(elm)[prop];}
if(!isNull(value)){elm.style[prop]=""+value;}}
function display(elm,display2){style(elm,"display",display2);}
function focus(elm){elm["setActive"]&&elm["setActive"]()||elm.focus({preventScroll:true});}
function getAttribute(elm,attr){return elm.getAttribute(attr);}
function hasClass(elm,className){return elm&&elm.classList.contains(className);}
function rect(target){return target.getBoundingClientRect();}
function remove(nodes){forEach(nodes,function(node){if(node&&node.parentNode){node.parentNode.removeChild(node);}});}
function parseHtml(html){return child(new DOMParser().parseFromString(html,"text/html").body);}
function prevent(e,stopPropagation){e.preventDefault();if(stopPropagation){e.stopPropagation();e.stopImmediatePropagation();}}
function query(parent,selector){return parent&&parent.querySelector(selector);}
function queryAll(parent,selector){return selector?slice(parent.querySelectorAll(selector)):[];}
function removeClass(elm,classes){toggleClass(elm,classes,false);}
function timeOf(e){return e.timeStamp;}
function unit(value){return isString(value)?value:value?value+"px":"";}
var PROJECT_CODE="splide";var DATA_ATTRIBUTE="data-"+PROJECT_CODE;function assert(condition,message){if(!condition){throw new Error("["+PROJECT_CODE+"] "+(message||""));}}
var min=Math.min,max=Math.max,floor=Math.floor,ceil=Math.ceil,abs=Math.abs;function approximatelyEqual(x,y,epsilon){return abs(x-y)<epsilon;}
function between(number,x,y,exclusive){var minimum=min(x,y);var maximum=max(x,y);return exclusive?minimum<number&&number<maximum:minimum<=number&&number<=maximum;}
function clamp(number,x,y){var minimum=min(x,y);var maximum=max(x,y);return min(max(minimum,number),maximum);}
function sign(x){return+(x>0)- +(x<0);}
function format(string,replacements){forEach(replacements,function(replacement){string=string.replace("%s",""+replacement);});return string;}
function pad(number){return number<10?"0"+number:""+number;}
var ids={};function uniqueId(prefix){return""+prefix+pad(ids[prefix]=(ids[prefix]||0)+1);}
function EventBinder(){var listeners=[];function bind(targets,events,callback,options){forEachEvent(targets,events,function(target,event,namespace){var isEventTarget="addEventListener" in target;var remover=isEventTarget?target.removeEventListener.bind(target,event,callback,options):target["removeListener"].bind(target,callback);isEventTarget?target.addEventListener(event,callback,options):target["addListener"](callback);listeners.push([target,event,namespace,callback,remover]);});}
function unbind(targets,events,callback){forEachEvent(targets,events,function(target,event,namespace){listeners=listeners.filter(function(listener){if(listener[0]===target&&listener[1]===event&&listener[2]===namespace&&(!callback||listener[3]===callback)){listener[4]();return false;}
return true;});});}
function dispatch(target,type,detail){var e;var bubbles=true;if(typeof CustomEvent==="function"){e=new CustomEvent(type,{bubbles:bubbles,detail:detail});}else{e=document.createEvent("CustomEvent");e.initCustomEvent(type,bubbles,false,detail);}
target.dispatchEvent(e);return e;}
function forEachEvent(targets,events,iteratee){forEach(targets,function(target){target&&forEach(events,function(events2){events2.split(" ").forEach(function(eventNS){var fragment=eventNS.split(".");iteratee(target,fragment[0],fragment[1]);});});});}
function destroy(){listeners.forEach(function(data){data[4]();});empty(listeners);}
return{bind:bind,unbind:unbind,dispatch:dispatch,destroy:destroy};}
var EVENT_MOUNTED="mounted";var EVENT_READY="ready";var EVENT_MOVE="move";var EVENT_MOVED="moved";var EVENT_CLICK="click";var EVENT_ACTIVE="active";var EVENT_INACTIVE="inactive";var EVENT_VISIBLE="visible";var EVENT_HIDDEN="hidden";var EVENT_REFRESH="refresh";var EVENT_UPDATED="updated";var EVENT_RESIZE="resize";var EVENT_RESIZED="resized";var EVENT_DRAG="drag";var EVENT_DRAGGING="dragging";var EVENT_DRAGGED="dragged";var EVENT_SCROLL="scroll";var EVENT_SCROLLED="scrolled";var EVENT_OVERFLOW="overflow";var EVENT_DESTROY="destroy";var EVENT_ARROWS_MOUNTED="arrows:mounted";var EVENT_ARROWS_UPDATED="arrows:updated";var EVENT_PAGINATION_MOUNTED="pagination:mounted";var EVENT_PAGINATION_UPDATED="pagination:updated";var EVENT_NAVIGATION_MOUNTED="navigation:mounted";var EVENT_AUTOPLAY_PLAY="autoplay:play";var EVENT_AUTOPLAY_PLAYING="autoplay:playing";var EVENT_AUTOPLAY_PAUSE="autoplay:pause";var EVENT_LAZYLOAD_LOADED="lazyload:loaded";var EVENT_SLIDE_KEYDOWN="sk";var EVENT_SHIFTED="sh";var EVENT_END_INDEX_CHANGED="ei";function EventInterface(Splide2){var bus=Splide2?Splide2.event.bus:document.createDocumentFragment();var binder=EventBinder();function on(events,callback){binder.bind(bus,toArray(events).join(" "),function(e){callback.apply(callback,isArray(e.detail)?e.detail:[]);});}
function emit(event){binder.dispatch(bus,event,slice(arguments,1));}
if(Splide2){Splide2.event.on(EVENT_DESTROY,binder.destroy);}
return assign(binder,{bus:bus,on:on,off:apply(binder.unbind,bus),emit:emit});}
function RequestInterval(interval,onInterval,onUpdate,limit){var now=Date.now;var startTime;var rate=0;var id;var paused=true;var count=0;function update(){if(!paused){rate=interval?min((now()-startTime)/interval,1):1;onUpdate&&onUpdate(rate);if(rate>=1){onInterval();startTime=now();if(limit&&++count>=limit){return pause();}}
id=raf(update);}}
function start(resume){resume||cancel();startTime=now()-(resume?rate*interval:0);paused=false;id=raf(update);}
function pause(){paused=true;}
function rewind(){startTime=now();rate=0;if(onUpdate){onUpdate(rate);}}
function cancel(){id&&cancelAnimationFrame(id);rate=0;id=0;paused=true;}
function set(time){interval=time;}
function isPaused(){return paused;}
return{start:start,rewind:rewind,pause:pause,cancel:cancel,set:set,isPaused:isPaused};}
function State(initialState){var state=initialState;function set(value){state=value;}
function is(states){return includes(toArray(states),state);}
return{set:set,is:is};}
function Throttle(func,duration){var interval=RequestInterval(duration||0,func,null,1);return function(){interval.isPaused()&&interval.start();};}
function Media(Splide2,Components2,options){var state=Splide2.state;var breakpoints=options.breakpoints||{};var reducedMotion=options.reducedMotion||{};var binder=EventBinder();var queries=[];function setup(){var isMin=options.mediaQuery==="min";ownKeys(breakpoints).sort(function(n,m){return isMin?+n- +m:+m- +n;}).forEach(function(key){register(breakpoints[key],"("+(isMin?"min":"max")+"-width:"+key+"px)");});register(reducedMotion,MEDIA_PREFERS_REDUCED_MOTION);update();}
function destroy(completely){if(completely){binder.destroy();}}
function register(options2,query){var queryList=matchMedia(query);binder.bind(queryList,"change",update);queries.push([options2,queryList]);}
function update(){var destroyed=state.is(DESTROYED);var direction=options.direction;var merged=queries.reduce(function(merged2,entry){return merge(merged2,entry[1].matches?entry[0]:{});},{});omit(options);set(merged);if(options.destroy){Splide2.destroy(options.destroy==="completely");}else if(destroyed){destroy(true);Splide2.mount();}else{direction!==options.direction&&Splide2.refresh();}}
function reduce(enable){if(matchMedia(MEDIA_PREFERS_REDUCED_MOTION).matches){enable?merge(options,reducedMotion):omit(options,ownKeys(reducedMotion));}}
function set(opts,base,notify){merge(options,opts);base&&merge(Object.getPrototypeOf(options),opts);if(notify||!state.is(CREATED)){Splide2.emit(EVENT_UPDATED,options);}}
return{setup:setup,destroy:destroy,reduce:reduce,set:set};}
var ARROW="Arrow";var ARROW_LEFT=ARROW+"Left";var ARROW_RIGHT=ARROW+"Right";var ARROW_UP=ARROW+"Up";var ARROW_DOWN=ARROW+"Down";var RTL="rtl";var TTB="ttb";var ORIENTATION_MAP={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[ARROW_UP,ARROW_RIGHT],ArrowRight:[ARROW_DOWN,ARROW_LEFT]};function Direction(Splide2,Components2,options){function resolve(prop,axisOnly,direction){direction=direction||options.direction;var index=direction===RTL&&!axisOnly?1:direction===TTB?0:-1;return ORIENTATION_MAP[prop]&&ORIENTATION_MAP[prop][index]||prop.replace(/width|left|right/i,function(match,offset){var replacement=ORIENTATION_MAP[match.toLowerCase()][index]||match;return offset>0?replacement.charAt(0).toUpperCase()+replacement.slice(1):replacement;});}
function orient(value){return value*(options.direction===RTL?1:-1);}
return{resolve:resolve,orient:orient};}
var ROLE="role";var TAB_INDEX="tabindex";var DISABLED="disabled";var ARIA_PREFIX="aria-";var ARIA_CONTROLS=ARIA_PREFIX+"controls";var ARIA_CURRENT=ARIA_PREFIX+"current";var ARIA_SELECTED=ARIA_PREFIX+"selected";var ARIA_LABEL=ARIA_PREFIX+"label";var ARIA_LABELLEDBY=ARIA_PREFIX+"labelledby";var ARIA_HIDDEN=ARIA_PREFIX+"hidden";var ARIA_ORIENTATION=ARIA_PREFIX+"orientation";var ARIA_ROLEDESCRIPTION=ARIA_PREFIX+"roledescription";var ARIA_LIVE=ARIA_PREFIX+"live";var ARIA_BUSY=ARIA_PREFIX+"busy";var ARIA_ATOMIC=ARIA_PREFIX+"atomic";var ALL_ATTRIBUTES=[ROLE,TAB_INDEX,DISABLED,ARIA_CONTROLS,ARIA_CURRENT,ARIA_LABEL,ARIA_LABELLEDBY,ARIA_HIDDEN,ARIA_ORIENTATION,ARIA_ROLEDESCRIPTION];var CLASS_PREFIX=PROJECT_CODE+"__";var STATUS_CLASS_PREFIX="is-";var CLASS_ROOT=PROJECT_CODE;var CLASS_TRACK=CLASS_PREFIX+"track";var CLASS_LIST=CLASS_PREFIX+"list";var CLASS_SLIDE=CLASS_PREFIX+"slide";var CLASS_CLONE=CLASS_SLIDE+"--clone";var CLASS_CONTAINER=CLASS_SLIDE+"__container";var CLASS_ARROWS=CLASS_PREFIX+"arrows";var CLASS_ARROW=CLASS_PREFIX+"arrow";var CLASS_ARROW_PREV=CLASS_ARROW+"--prev";var CLASS_ARROW_NEXT=CLASS_ARROW+"--next";var CLASS_PAGINATION=CLASS_PREFIX+"pagination";var CLASS_PAGINATION_PAGE=CLASS_PAGINATION+"__page";var CLASS_PROGRESS=CLASS_PREFIX+"progress";var CLASS_PROGRESS_BAR=CLASS_PROGRESS+"__bar";var CLASS_TOGGLE=CLASS_PREFIX+"toggle";var CLASS_SPINNER=CLASS_PREFIX+"spinner";var CLASS_SR=CLASS_PREFIX+"sr";var CLASS_INITIALIZED=STATUS_CLASS_PREFIX+"initialized";var CLASS_ACTIVE=STATUS_CLASS_PREFIX+"active";var CLASS_PREV=STATUS_CLASS_PREFIX+"prev";var CLASS_NEXT=STATUS_CLASS_PREFIX+"next";var CLASS_VISIBLE=STATUS_CLASS_PREFIX+"visible";var CLASS_LOADING=STATUS_CLASS_PREFIX+"loading";var CLASS_FOCUS_IN=STATUS_CLASS_PREFIX+"focus-in";var CLASS_OVERFLOW=STATUS_CLASS_PREFIX+"overflow";var STATUS_CLASSES=[CLASS_ACTIVE,CLASS_VISIBLE,CLASS_PREV,CLASS_NEXT,CLASS_LOADING,CLASS_FOCUS_IN,CLASS_OVERFLOW];var CLASSES={slide:CLASS_SLIDE,clone:CLASS_CLONE,arrows:CLASS_ARROWS,arrow:CLASS_ARROW,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,pagination:CLASS_PAGINATION,page:CLASS_PAGINATION_PAGE,spinner:CLASS_SPINNER};function closest(from,selector){if(isFunction(from.closest)){return from.closest(selector);}
var elm=from;while(elm&&elm.nodeType===1){if(matches(elm,selector)){break;}
elm=elm.parentElement;}
return elm;}
var FRICTION=5;var LOG_INTERVAL=200;var POINTER_DOWN_EVENTS="touchstart mousedown";var POINTER_MOVE_EVENTS="touchmove mousemove";var POINTER_UP_EVENTS="touchend touchcancel mouseup click";function Elements(Splide2,Components2,options){var _EventInterface=EventInterface(Splide2),on=_EventInterface.on,bind=_EventInterface.bind;var root=Splide2.root;var i18n=options.i18n;var elements={};var slides=[];var rootClasses=[];var trackClasses=[];var track;var list;var isUsingKey;function setup(){collect();init();update();}
function mount(){on(EVENT_REFRESH,destroy);on(EVENT_REFRESH,setup);on(EVENT_UPDATED,update);bind(document,POINTER_DOWN_EVENTS+" keydown",function(e){isUsingKey=e.type==="keydown";},{capture:true});bind(root,"focusin",function(){toggleClass(root,CLASS_FOCUS_IN,!!isUsingKey);});}
function destroy(completely){var attrs=ALL_ATTRIBUTES.concat("style");empty(slides);removeClass(root,rootClasses);removeClass(track,trackClasses);removeAttribute([track,list],attrs);removeAttribute(root,completely?attrs:["style",ARIA_ROLEDESCRIPTION]);}
function update(){removeClass(root,rootClasses);removeClass(track,trackClasses);rootClasses=getClasses(CLASS_ROOT);trackClasses=getClasses(CLASS_TRACK);addClass(root,rootClasses);addClass(track,trackClasses);setAttribute(root,ARIA_LABEL,options.label);setAttribute(root,ARIA_LABELLEDBY,options.labelledby);}
function collect(){track=find("."+CLASS_TRACK);list=child(track,"."+CLASS_LIST);assert(track&&list,"A track/list element is missing.");push(slides,children(list,"."+CLASS_SLIDE+":not(."+CLASS_CLONE+")"));forOwn({arrows:CLASS_ARROWS,pagination:CLASS_PAGINATION,prev:CLASS_ARROW_PREV,next:CLASS_ARROW_NEXT,bar:CLASS_PROGRESS_BAR,toggle:CLASS_TOGGLE},function(className,key){if(key=='arrows'||key=='prev'||key=='next'){elements[key]=findMulti('.'+className);}else{elements[key]=find("."+className);}});assign(elements,{root:root,track:track,list:list,slides:slides});}
function init(){var id=root.id||uniqueId(PROJECT_CODE);var role=options.role;root.id=id;track.id=track.id||id+"-track";list.id=list.id||id+"-list";if(!getAttribute(root,ROLE)&&root.tagName!=="SECTION"&&role){setAttribute(root,ROLE,role);}
setAttribute(root,ARIA_ROLEDESCRIPTION,i18n.carousel);setAttribute(list,ROLE,"presentation");}
function find(selector){var elm=query(root,selector);return elm&&closest(elm,"."+CLASS_ROOT)===root?elm:void 0;}
function findMulti(selector){var elms=queryAll(root,selector);return elms;}
function getClasses(base){return[base+"--"+options.type,base+"--"+options.direction,options.drag&&base+"--draggable",options.isNavigation&&base+"--nav",base===CLASS_ROOT&&CLASS_ACTIVE];}
return assign(elements,{setup:setup,mount:mount,destroy:destroy});}
var SLIDE="slide";var LOOP="loop";var FADE="fade";function Slide$1(Splide2,index,slideIndex,slide){var event=EventInterface(Splide2);var on=event.on,emit=event.emit,bind=event.bind;var Components=Splide2.Components,root=Splide2.root,options=Splide2.options;var isNavigation=options.isNavigation,updateOnMove=options.updateOnMove,i18n=options.i18n,pagination=options.pagination,slideFocus=options.slideFocus;var resolve=Components.Direction.resolve;var styles=getAttribute(slide,"style");var label=getAttribute(slide,ARIA_LABEL);var isClone=slideIndex>-1;var container=child(slide,"."+CLASS_CONTAINER);var destroyed;function mount(){if(!isClone){slide.id=root.id+"-slide"+pad(index+1);setAttribute(slide,ROLE,pagination?"tabpanel":"group");setAttribute(slide,ARIA_ROLEDESCRIPTION,i18n.slide);setAttribute(slide,ARIA_LABEL,label||format(i18n.slideLabel,[index+1,Splide2.length]));}
listen();}
function listen(){bind(slide,"click",apply(emit,EVENT_CLICK,self));bind(slide,"keydown",apply(emit,EVENT_SLIDE_KEYDOWN,self));on([EVENT_MOVED,EVENT_SHIFTED,EVENT_SCROLLED],update);on(EVENT_NAVIGATION_MOUNTED,initNavigation);if(updateOnMove){on(EVENT_MOVE,onMove);}}
function destroy(){destroyed=true;event.destroy();removeClass(slide,STATUS_CLASSES);removeAttribute(slide,ALL_ATTRIBUTES);setAttribute(slide,"style",styles);setAttribute(slide,ARIA_LABEL,label||"");}
function initNavigation(){var controls=Splide2.splides.map(function(target){var Slide2=target.splide.Components.Slides.getAt(index);return Slide2?Slide2.slide.id:"";}).join(" ");setAttribute(slide,ARIA_LABEL,format(i18n.slideX,(isClone?slideIndex:index)+1));setAttribute(slide,ARIA_CONTROLS,controls);setAttribute(slide,ROLE,slideFocus?"button":"");slideFocus&&removeAttribute(slide,ARIA_ROLEDESCRIPTION);}
function onMove(){if(!destroyed){update();}}
function update(){if(!destroyed){var curr=Splide2.index;updateActivity();updateVisibility();toggleClass(slide,CLASS_PREV,index===curr-1);toggleClass(slide,CLASS_NEXT,index===curr+1);}}
function updateActivity(){var active=isActive();if(active!==hasClass(slide,CLASS_ACTIVE)){toggleClass(slide,CLASS_ACTIVE,active);setAttribute(slide,ARIA_CURRENT,isNavigation&&active||"");emit(active?EVENT_ACTIVE:EVENT_INACTIVE,self);}}
function updateVisibility(){var visible=isVisible();var hidden=!visible&&(!isActive()||isClone);if(!Splide2.state.is([MOVING,SCROLLING])){setAttribute(slide,ARIA_HIDDEN,hidden||"");}
setAttribute(queryAll(slide,options.focusableNodes||""),TAB_INDEX,hidden?-1:"");if(slideFocus){setAttribute(slide,TAB_INDEX,hidden?-1:0);}
if(visible!==hasClass(slide,CLASS_VISIBLE)){toggleClass(slide,CLASS_VISIBLE,visible);emit(visible?EVENT_VISIBLE:EVENT_HIDDEN,self);}
if(!visible&&document.activeElement===slide){var Slide2=Components.Slides.getAt(Splide2.index);Slide2&&focus(Slide2.slide);}}
function style$1(prop,value,useContainer){style(useContainer&&container||slide,prop,value);}
function isActive(){var curr=Splide2.index;return curr===index||options.cloneStatus&&curr===slideIndex;}
function isVisible(){if(Splide2.is(FADE)){return isActive();}
var trackRect=rect(Components.Elements.track);var slideRect=rect(slide);var left=resolve("left",true);var right=resolve("right",true);return floor(trackRect[left])<=ceil(slideRect[left])&&floor(slideRect[right])<=ceil(trackRect[right]);}
function isWithin(from,distance){var diff=abs(from-index);if(!isClone&&(options.rewind||Splide2.is(LOOP))){diff=min(diff,Splide2.length-diff);}
return diff<=distance;}
var self={index:index,slideIndex:slideIndex,slide:slide,container:container,isClone:isClone,mount:mount,destroy:destroy,update:update,style:style$1,isWithin:isWithin};return self;}
function Slides(Splide2,Components2,options){var _EventInterface2=EventInterface(Splide2),on=_EventInterface2.on,emit=_EventInterface2.emit,bind=_EventInterface2.bind;var _Components2$Elements=Components2.Elements,slides=_Components2$Elements.slides,list=_Components2$Elements.list;var Slides2=[];function mount(){init();on(EVENT_REFRESH,destroy);on(EVENT_REFRESH,init);}
function init(){slides.forEach(function(slide,index){register(slide,index,-1);});}
function destroy(){forEach$1(function(Slide2){Slide2.destroy();});empty(Slides2);}
function update(){forEach$1(function(Slide2){Slide2.update();});}
function register(slide,index,slideIndex){var object=Slide$1(Splide2,index,slideIndex,slide);object.mount();Slides2.push(object);Slides2.sort(function(Slide1,Slide2){return Slide1.index-Slide2.index;});}
function get(excludeClones){return excludeClones?filter(function(Slide2){return!Slide2.isClone;}):Slides2;}
function getIn(page){var Controller=Components2.Controller;var index=Controller.toIndex(page);var max=Controller.hasFocus()?1:options.perPage;return filter(function(Slide2){return between(Slide2.index,index,index+max-1);});}
function getAt(index){return filter(index)[0];}
function add(items,index){forEach(items,function(slide){if(isString(slide)){slide=parseHtml(slide);}
if(isHTMLElement(slide)){var ref=slides[index];ref?before(slide,ref):append(list,slide);addClass(slide,options.classes.slide);observeImages(slide,apply(emit,EVENT_RESIZE));}});emit(EVENT_REFRESH);}
function remove$1(matcher){remove(filter(matcher).map(function(Slide2){return Slide2.slide;}));emit(EVENT_REFRESH);}
function forEach$1(iteratee,excludeClones){get(excludeClones).forEach(iteratee);}
function filter(matcher){return Slides2.filter(isFunction(matcher)?matcher:function(Slide2){return isString(matcher)?matches(Slide2.slide,matcher):includes(toArray(matcher),Slide2.index);});}
function style(prop,value,useContainer){forEach$1(function(Slide2){Slide2.style(prop,value,useContainer);});}
function observeImages(elm,callback){var images=queryAll(elm,"img");var length=images.length;if(length){images.forEach(function(img){bind(img,"load error",function(){if(!--length){callback();}});});}else{callback();}}
function getLength(excludeClones){return excludeClones?slides.length:Slides2.length;}
function isEnough(){return Slides2.length>options.perPage;}
return{mount:mount,destroy:destroy,update:update,register:register,get:get,getIn:getIn,getAt:getAt,add:add,remove:remove$1,forEach:forEach$1,filter:filter,style:style,getLength:getLength,isEnough:isEnough};}
function Layout(Splide2,Components2,options){var _EventInterface3=EventInterface(Splide2),on=_EventInterface3.on,bind=_EventInterface3.bind,emit=_EventInterface3.emit;var Slides=Components2.Slides;var resolve=Components2.Direction.resolve;var _Components2$Elements2=Components2.Elements,root=_Components2$Elements2.root,track=_Components2$Elements2.track,list=_Components2$Elements2.list;var getAt=Slides.getAt,styleSlides=Slides.style;var vertical;var rootRect;var overflow;function mount(){init();bind(window,"resize load",Throttle(apply(emit,EVENT_RESIZE)));on([EVENT_UPDATED,EVENT_REFRESH],init);on(EVENT_RESIZE,resize);}
function init(){vertical=options.direction===TTB;style(root,"maxWidth",unit(options.width));style(track,resolve("paddingLeft"),cssPadding(false));style(track,resolve("paddingRight"),cssPadding(true));resize(true);}
function resize(force){var newRect=rect(root);if(force||rootRect.width!==newRect.width||rootRect.height!==newRect.height){style(track,"height",cssTrackHeight());styleSlides(resolve("marginRight"),unit(options.gap));styleSlides("width",cssSlideWidth());styleSlides("height",cssSlideHeight(),true);rootRect=newRect;emit(EVENT_RESIZED);if(overflow!==(overflow=isOverflow())){toggleClass(root,CLASS_OVERFLOW,overflow);emit(EVENT_OVERFLOW,overflow);}}}
function cssPadding(right){var padding=options.padding;var prop=resolve(right?"right":"left");return padding&&unit(padding[prop]||(isObject(padding)?0:padding))||"0px";}
function cssTrackHeight(){var height="";if(vertical){height=cssHeight();assert(height,"height or heightRatio is missing.");height="calc("+height+" - "+cssPadding(false)+" - "+cssPadding(true)+")";}
return height;}
function cssHeight(){return unit(options.height||rect(list).width*options.heightRatio);}
function cssSlideWidth(){return options.autoWidth?null:unit(options.fixedWidth)||(vertical?"":cssSlideSize());}
function cssSlideHeight(){return unit(options.fixedHeight)||(vertical?options.autoHeight?null:cssSlideSize():cssHeight());}
function cssSlideSize(){var gap=unit(options.gap);var perPage=options.perPage||1;var perPageGaps=floor(perPage)-1;var gapSize=gap||'0px';return'calc((100% - ('+perPageGaps+' * '+gapSize+')) / '+perPage+')';}
function listSize(){return rect(list)[resolve("width")];}
function slideSize(index,withoutGap){var Slide=getAt(index||0);return Slide?rect(Slide.slide)[resolve("width")]+(withoutGap?0:getGap()):0;}
function totalSize(index,withoutGap){var Slide=getAt(index);if(Slide){var right=rect(Slide.slide)[resolve("right")];var left=rect(list)[resolve("left")];return abs(right-left)+(withoutGap?0:getGap());}
return 0;}
function sliderSize(withoutGap){return totalSize(Splide2.length-1)-totalSize(0)+slideSize(0,withoutGap);}
function getGap(){return options.gap||0;}
function getPadding(right){return parseFloat(style(track,resolve("padding"+(right?"Right":"Left"))))||0;}
function isOverflow(){return Splide2.is(FADE)||sliderSize(true)>listSize();}
return{mount:mount,resize:resize,listSize:listSize,slideSize:slideSize,sliderSize:sliderSize,totalSize:totalSize,getPadding:getPadding,isOverflow:isOverflow};}
var MULTIPLIER=2;function Clones(Splide2,Components2,options){var event=EventInterface(Splide2);var on=event.on;var Elements=Components2.Elements,Slides=Components2.Slides;var resolve=Components2.Direction.resolve;var clones=[];var cloneCount;function mount(){on(EVENT_REFRESH,remount);on([EVENT_UPDATED,EVENT_RESIZE],observe);if(cloneCount=computeCloneCount()){generate(cloneCount);Components2.Layout.resize(true);}}
function remount(){destroy();mount();}
function destroy(){remove(clones);empty(clones);event.destroy();}
function observe(){var count=computeCloneCount();if(cloneCount!==count){if(cloneCount<count||!count){event.emit(EVENT_REFRESH);}}}
function generate(count){var slides=Slides.get().slice();var length=slides.length;if(length){while(slides.length<count){push(slides,slides);}
push(slides.slice(-count),slides.slice(0,count)).forEach(function(Slide,index){var isHead=index<count;var clone=cloneDeep(Slide.slide,index);isHead?before(clone,slides[0].slide):append(Elements.list,clone);push(clones,clone);Slides.register(clone,index-count+(isHead?0:length),Slide.index);});}}
function cloneDeep(elm,index){var clone=elm.cloneNode(true);addClass(clone,options.classes.clone);clone.id=Splide2.root.id+"-clone"+pad(index+1);return clone;}
function computeCloneCount(){var clones2=options.clones;if(!Splide2.is(LOOP)){clones2=0;}else if(isUndefined(clones2)){var fixedSize=options[resolve("fixedWidth")]&&Components2.Layout.slideSize(0);var fixedCount=fixedSize&&ceil(rect(Elements.track)[resolve("width")]/fixedSize);clones2=fixedCount||options[resolve("autoWidth")]&&Splide2.length||ceil(options.perPage)*MULTIPLIER;}
return clones2;}
return{mount:mount,destroy:destroy};}
function Move(Splide2,Components2,options){var _EventInterface4=EventInterface(Splide2),on=_EventInterface4.on,emit=_EventInterface4.emit;var set=Splide2.state.set;var _Components2$Layout=Components2.Layout,slideSize=_Components2$Layout.slideSize,getPadding=_Components2$Layout.getPadding,totalSize=_Components2$Layout.totalSize,listSize=_Components2$Layout.listSize,sliderSize=_Components2$Layout.sliderSize;var _Components2$Directio=Components2.Direction,resolve=_Components2$Directio.resolve,orient=_Components2$Directio.orient;var _Components2$Elements3=Components2.Elements,list=_Components2$Elements3.list,track=_Components2$Elements3.track;var Transition;function mount(){Transition=Components2.Transition;on([EVENT_MOUNTED,EVENT_RESIZED,EVENT_UPDATED,EVENT_REFRESH],reposition);}
function reposition(){if(!Components2.Controller.isBusy()){Components2.Scroll.cancel();jump(Splide2.index);Components2.Slides.update();}}
function move(dest,index,prev,callback){if(dest!==index&&canShift(dest>prev)){cancel();translate(shift(getPosition(),dest>prev),true);}
set(MOVING);emit(EVENT_MOVE,index,prev,dest);Transition.start(index,function(){set(IDLE);emit(EVENT_MOVED,index,prev,dest);callback&&callback();});}
function jump(index){translate(toPosition(index,true));}
function translate(position,preventLoop){if(!Splide2.is(FADE)){var destination=preventLoop?position:loop(position);style(list,"transform","translate"+resolve("X")+"("+destination+"px)");position!==destination&&emit(EVENT_SHIFTED);}}
function loop(position){if(Splide2.is(LOOP)){var index=toIndex(position);var exceededMax=index>Components2.Controller.getEnd();var exceededMin=index<0;if(exceededMin||exceededMax){position=shift(position,exceededMax);}}
return position;}
function shift(position,backwards){var excess=position-getLimit(backwards);var size=sliderSize();position-=orient(size*(ceil(abs(excess)/size)||1))*(backwards?1:-1);return position;}
function cancel(){translate(getPosition(),true);Transition.cancel();}
function toIndex(position){var Slides=Components2.Slides.get();var index=0;var minDistance=Infinity;for(var i=0;i<Slides.length;i++){var slideIndex=Slides[i].index;var distance=abs(toPosition(slideIndex,true)-position);if(distance<=minDistance){minDistance=distance;index=slideIndex;}else{break;}}
return index;}
function toPosition(index,trimming){var position=orient(totalSize(index-1)-offset(index));return trimming?trim(position):position;}
function getPosition(){var left=resolve("left");return rect(list)[left]-rect(track)[left]+orient(getPadding(false));}
function trim(position){if(options.trimSpace&&Splide2.is(SLIDE)){position=clamp(position,0,orient(sliderSize(true)-listSize()));}
return position;}
function offset(index){var focus=options.focus;return focus==="center"?(listSize()-slideSize(index,true))/2:+focus*slideSize(index)||0;}
function getLimit(max){return toPosition(max?Components2.Controller.getEnd():0,!!options.trimSpace);}
function canShift(backwards){var shifted=orient(shift(getPosition(),backwards));return backwards?shifted>=0:shifted<=list[resolve("scrollWidth")]-rect(track)[resolve("width")];}
function exceededLimit(max,position){position=isUndefined(position)?getPosition():position;var exceededMin=max!==true&&orient(position)<orient(getLimit(false));var exceededMax=max!==false&&orient(position)>orient(getLimit(true));return exceededMin||exceededMax;}
return{mount:mount,move:move,jump:jump,translate:translate,shift:shift,cancel:cancel,toIndex:toIndex,toPosition:toPosition,getPosition:getPosition,getLimit:getLimit,exceededLimit:exceededLimit,reposition:reposition};}
function Controller(Splide2,Components2,options){var _EventInterface5=EventInterface(Splide2),on=_EventInterface5.on,emit=_EventInterface5.emit;var Move=Components2.Move;var getPosition=Move.getPosition,getLimit=Move.getLimit,toPosition=Move.toPosition;var _Components2$Slides=Components2.Slides,isEnough=_Components2$Slides.isEnough,getLength=_Components2$Slides.getLength;var omitEnd=options.omitEnd;var isLoop=Splide2.is(LOOP);var isSlide=Splide2.is(SLIDE);var getNext=apply(getAdjacent,false);var getPrev=apply(getAdjacent,true);var currIndex=options.start||0;var endIndex;var prevIndex=currIndex;var slideCount;var perMove;var perPage;function mount(){init();on([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],init);on(EVENT_RESIZED,onResized);}
function init(){slideCount=getLength(true);perMove=options.perMove;perPage=options.perPage;endIndex=getEnd();var index=clamp(currIndex,0,omitEnd?endIndex:slideCount-1);if(index!==currIndex){currIndex=index;Move.reposition();}}
function onResized(){if(endIndex!==getEnd()){emit(EVENT_END_INDEX_CHANGED);}}
function go(control,allowSameIndex,callback){if(!isBusy()){var dest=parse(control);var index=loop(dest);if(index>-1&&(allowSameIndex||index!==currIndex)){setIndex(index);Move.move(dest,index,prevIndex,callback);}}}
function scroll(destination,duration,snap,callback){Components2.Scroll.scroll(destination,duration,snap,function(){var index=loop(Move.toIndex(getPosition()));setIndex(omitEnd?min(index,endIndex):index);callback&&callback();});}
function parse(control){var index=currIndex;if(isString(control)){var _ref=control.match(/([+\-<>])(\d+)?/)||[],indicator=_ref[1],number=_ref[2];if(indicator==="+"||indicator==="-"){index=computeDestIndex(currIndex+ +(""+indicator+(+number||1)),currIndex);}else if(indicator===">"){index=number?toIndex(+number):getNext(true);}else if(indicator==="<"){index=getPrev(true);}}else{index=isLoop?control:clamp(control,0,endIndex);}
return index;}
function getAdjacent(prev,destination){var number=perMove||(hasFocus()?1:perPage);var dest=computeDestIndex(currIndex+number*(prev?-1:1),currIndex,!(perMove||hasFocus()));if(dest===-1&&isSlide){if(!approximatelyEqual(getPosition(),getLimit(!prev),1)){return prev?0:endIndex;}}
return destination?dest:loop(dest);}
function computeDestIndex(dest,from,snapPage){if(isEnough()||hasFocus()){var index=computeMovableDestIndex(dest);if(index!==dest){from=dest;dest=index;snapPage=false;}
if(dest<0||dest>endIndex){if(!perMove&&(between(0,dest,from,true)||between(endIndex,from,dest,true))){dest=toIndex(toPage(dest));}else{if(isLoop){dest=snapPage?dest<0?-(slideCount%perPage||perPage):slideCount:dest;}else if(options.rewind){dest=dest<0?endIndex:0;}else{dest=-1;}}}else{if(snapPage&&dest!==from){dest=toIndex(toPage(from)+(dest<from?-1:1));}}}else{dest=-1;}
return dest;}
function computeMovableDestIndex(dest){if(isSlide&&options.trimSpace==="move"&&dest!==currIndex){var position=getPosition();while(position===toPosition(dest,true)&&between(dest,0,Splide2.length-1,!options.rewind)){dest<currIndex?--dest:++dest;}}
return dest;}
function loop(index){return isLoop?(index+slideCount)%slideCount||0:index;}
function getEnd(){var end=slideCount-(hasFocus()||isLoop&&perMove?1:perPage);while(omitEnd&&end-->0){if(toPosition(slideCount-1,true)!==toPosition(end,true)){end++;break;}}
return clamp(end,0,slideCount-1);}
function toIndex(page){return clamp(hasFocus()?page:perPage*page,0,endIndex);}
function toPage(index){return hasFocus()?min(index,endIndex):floor((index>=endIndex?slideCount-1:index)/perPage);}
function toDest(destination){var closest=Move.toIndex(destination);return isSlide?clamp(closest,0,endIndex):closest;}
function setIndex(index){if(index!==currIndex){prevIndex=currIndex;currIndex=index;}}
function getIndex(prev){return prev?prevIndex:currIndex;}
function hasFocus(){return!isUndefined(options.focus)||options.isNavigation;}
function isBusy(){return Splide2.state.is([MOVING,SCROLLING])&&!!options.waitForTransition;}
return{mount:mount,go:go,scroll:scroll,getNext:getNext,getPrev:getPrev,getAdjacent:getAdjacent,getEnd:getEnd,setIndex:setIndex,getIndex:getIndex,toIndex:toIndex,toPage:toPage,toDest:toDest,hasFocus:hasFocus,isBusy:isBusy};}
var XML_NAME_SPACE="http://www.w3.org/2000/svg";var PATH="m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z";var SIZE=40;function Arrows(Splide2,Components2,options){var event=EventInterface(Splide2);var on=event.on,bind=event.bind,emit=event.emit;var classes=options.classes,i18n=options.i18n;var Elements=Components2.Elements,Controller=Components2.Controller;var placeholder=Elements.arrows,track=Elements.track;var wrapper=placeholder;var prev=Elements.prev;var next=Elements.next;var created;var wrapperClasses;var arrows={};function mount(){init();on(EVENT_UPDATED,remount);}
function remount(){destroy();mount();}
function init(){var enabled=options.arrows;if(enabled&&!(prev&&next)){createArrows();}
if(prev&&next){assign(arrows,{prev:prev,next:next});display(wrapper,enabled?"":"none");addClass(wrapper,wrapperClasses=CLASS_ARROWS+"--"+options.direction);if(enabled){listen();update();setAttribute(prev,ARIA_CONTROLS,track.id);setAttribute(next,ARIA_CONTROLS,track.id);emit(EVENT_ARROWS_MOUNTED,prev,next);}}}
function destroy(){event.destroy();removeClass(wrapper,wrapperClasses);if(created){if(placeholder){remove(prev);remove(next);}else{remove(wrapper);}
prev=next=null;}else{removeAttribute(prev,ALL_ATTRIBUTES);removeAttribute(next,ALL_ATTRIBUTES);}}
function listen(){on([EVENT_MOUNTED,EVENT_MOVED,EVENT_REFRESH,EVENT_SCROLLED,EVENT_END_INDEX_CHANGED],update);bind(next,"click",apply(go,">"));bind(prev,"click",apply(go,"<"));}
function go(control){Controller.go(control,true);}
function createArrows(){wrapper=placeholder||create("div",classes.arrows);prev=createArrow(true);next=createArrow(false);created=true;append(wrapper,[prev,next]);!placeholder&&before(wrapper,track);}
function createArrow(prev2){var arrow="<button class=\""+classes.arrow+" "+(prev2?classes.prev:classes.next)+"\" type=\"button\"><svg xmlns=\""+XML_NAME_SPACE+"\" viewBox=\"0 0 "+SIZE+" "+SIZE+"\" width=\""+SIZE+"\" height=\""+SIZE+"\" focusable=\"false\"><path d=\""+(options.arrowPath||PATH)+"\" />";return parseHtml(arrow);}
function update(){if(prev&&next){var index=Splide2.index;var prevIndex=Controller.getPrev();var nextIndex=Controller.getNext();var prevLabel=prevIndex>-1&&index<prevIndex?i18n.last:i18n.prev;var nextLabel=nextIndex>-1&&index>nextIndex?i18n.first:i18n.next;prev.disabled=prevIndex<0;next.disabled=nextIndex<0;setAttribute(prev,ARIA_LABEL,prevLabel);setAttribute(next,ARIA_LABEL,nextLabel);emit(EVENT_ARROWS_UPDATED,prev,next,prevIndex,nextIndex);}}
return{arrows:arrows,mount:mount,destroy:destroy,update:update};}
var INTERVAL_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-interval";function Autoplay(Splide2,Components2,options){var _EventInterface6=EventInterface(Splide2),on=_EventInterface6.on,bind=_EventInterface6.bind,emit=_EventInterface6.emit;var interval=RequestInterval(options.interval,Splide2.go.bind(Splide2,">"),onAnimationFrame);var isPaused=interval.isPaused;var Elements=Components2.Elements,_Components2$Elements4=Components2.Elements,root=_Components2$Elements4.root,toggle=_Components2$Elements4.toggle;var autoplay=options.autoplay;var hovered;var focused;var stopped=autoplay==="pause";function mount(){if(autoplay){listen();toggle&&setAttribute(toggle,ARIA_CONTROLS,Elements.track.id);stopped||play();update();}}
function listen(){if(options.pauseOnHover){bind(root,"mouseenter mouseleave",function(e){hovered=e.type==="mouseenter";autoToggle();});}
if(options.pauseOnFocus){bind(root,"focusin focusout",function(e){focused=e.type==="focusin";autoToggle();});}
if(toggle){bind(toggle,"click",function(){stopped?play():pause(true);});}
on([EVENT_MOVE,EVENT_SCROLL,EVENT_REFRESH],interval.rewind);on(EVENT_MOVE,onMove);}
function play(){if(isPaused()&&Components2.Slides.isEnough()){interval.start(!options.resetProgress);focused=hovered=stopped=false;update();emit(EVENT_AUTOPLAY_PLAY);}}
function pause(stop){if(stop===void 0){stop=true;}
stopped=!!stop;update();if(!isPaused()){interval.pause();emit(EVENT_AUTOPLAY_PAUSE);}}
function autoToggle(){if(!stopped){hovered||focused?pause(false):play();}}
function update(){if(toggle){toggleClass(toggle,CLASS_ACTIVE,!stopped);setAttribute(toggle,ARIA_LABEL,options.i18n[stopped?"play":"pause"]);}}
function onAnimationFrame(rate){var bar=Elements.bar;bar&&style(bar,"width",rate*100+"%");emit(EVENT_AUTOPLAY_PLAYING,rate);}
function onMove(index){var Slide=Components2.Slides.getAt(index);interval.set(Slide&&+getAttribute(Slide.slide,INTERVAL_DATA_ATTRIBUTE)||options.interval);}
return{mount:mount,destroy:interval.cancel,play:play,pause:pause,isPaused:isPaused};}
function Cover(Splide2,Components2,options){var _EventInterface7=EventInterface(Splide2),on=_EventInterface7.on;function mount(){if(options.cover){on(EVENT_LAZYLOAD_LOADED,apply(toggle,true));on([EVENT_MOUNTED,EVENT_UPDATED,EVENT_REFRESH],apply(cover,true));}}
function cover(cover2){Components2.Slides.forEach(function(Slide){var img=child(Slide.container||Slide.slide,"img");if(img&&img.src){toggle(cover2,img,Slide);}});}
function toggle(cover2,img,Slide){Slide.style("background",cover2?"center/cover no-repeat url(\""+img.src+"\")":"",true);display(img,cover2?"none":"");}
return{mount:mount,destroy:apply(cover,false)};}
var BOUNCE_DIFF_THRESHOLD=10;var BOUNCE_DURATION=600;var FRICTION_FACTOR=0.6;var BASE_VELOCITY=1.5;var MIN_DURATION=800;function Scroll(Splide2,Components2,options){var _EventInterface8=EventInterface(Splide2),on=_EventInterface8.on,emit=_EventInterface8.emit;var set=Splide2.state.set;var Move=Components2.Move;var getPosition=Move.getPosition,getLimit=Move.getLimit,exceededLimit=Move.exceededLimit,translate=Move.translate;var isSlide=Splide2.is(SLIDE);var interval;var callback;var friction=1;function mount(){on(EVENT_MOVE,clear);on([EVENT_UPDATED,EVENT_REFRESH],cancel);}
function scroll(destination,duration,snap,onScrolled,noConstrain){var from=getPosition();clear();if(snap&&(!isSlide||!exceededLimit())){var size=Components2.Layout.sliderSize();var offset=sign(destination)*size*floor(abs(destination)/size)||0;destination=Move.toPosition(Components2.Controller.toDest(destination%size))+offset;}
var noDistance=approximatelyEqual(from,destination,1);friction=1;duration=noDistance?0:duration||max(abs(destination-from)/BASE_VELOCITY,MIN_DURATION);callback=onScrolled;interval=RequestInterval(duration,onEnd,apply(update,from,destination,noConstrain),1);set(SCROLLING);emit(EVENT_SCROLL);interval.start();}
function onEnd(){set(IDLE);callback&&callback();emit(EVENT_SCROLLED);}
function update(from,to,noConstrain,rate){var position=getPosition();var target=from+(to-from)*easing(rate);var diff=(target-position)*friction;translate(position+diff);if(isSlide&&!noConstrain&&exceededLimit()){friction*=FRICTION_FACTOR;if(abs(diff)<BOUNCE_DIFF_THRESHOLD){scroll(getLimit(exceededLimit(true)),BOUNCE_DURATION,false,callback,true);}}}
function clear(){if(interval){interval.cancel();}}
function cancel(){if(interval&&!interval.isPaused()){clear();onEnd();}}
function easing(t){var easingFunc=options.easingFunc;return easingFunc?easingFunc(t):1-Math.pow(1-t,4);}
return{mount:mount,destroy:clear,scroll:scroll,cancel:cancel};}
var SCROLL_LISTENER_OPTIONS={passive:false,capture:true};function Drag(Splide2,Components2,options){var _EventInterface9=EventInterface(Splide2),on=_EventInterface9.on,emit=_EventInterface9.emit,bind=_EventInterface9.bind,unbind=_EventInterface9.unbind;var state=Splide2.state;var Move=Components2.Move,Scroll=Components2.Scroll,Controller=Components2.Controller,track=Components2.Elements.track,reduce=Components2.Media.reduce;var _Components2$Directio2=Components2.Direction,resolve=_Components2$Directio2.resolve,orient=_Components2$Directio2.orient;var getPosition=Move.getPosition,exceededLimit=Move.exceededLimit;var basePosition;var baseEvent;var prevBaseEvent;var isFree;var dragging;var exceeded=false;var clickPrevented;var disabled;var target;function mount(){bind(track,POINTER_MOVE_EVENTS,noop,SCROLL_LISTENER_OPTIONS);bind(track,POINTER_UP_EVENTS,noop,SCROLL_LISTENER_OPTIONS);bind(track,POINTER_DOWN_EVENTS,onPointerDown,SCROLL_LISTENER_OPTIONS);bind(track,"click",onClick,{capture:true});bind(track,"dragstart",prevent);on([EVENT_MOUNTED,EVENT_UPDATED],init);}
function init(){var drag=options.drag;disable(!drag);isFree=drag==="free";}
function onPointerDown(e){clickPrevented=false;if(!disabled){var isTouch=isTouchEvent(e);if(isDraggable(e.target)&&(isTouch||!e.button)){if(!Controller.isBusy()){target=isTouch?track:window;dragging=state.is([MOVING,SCROLLING]);prevBaseEvent=null;bind(target,POINTER_MOVE_EVENTS,onPointerMove,SCROLL_LISTENER_OPTIONS);bind(target,POINTER_UP_EVENTS,onPointerUp,SCROLL_LISTENER_OPTIONS);Move.cancel();Scroll.cancel();save(e);}else{prevent(e,true);}}}}
function onPointerMove(e){if(!state.is(DRAGGING)){state.set(DRAGGING);emit(EVENT_DRAG);}
if(e.cancelable){if(dragging){Move.translate(basePosition+constrain(diffCoord(e)));var expired=diffTime(e)>LOG_INTERVAL;var hasExceeded=exceeded!==(exceeded=exceededLimit());if(expired||hasExceeded){save(e);}
clickPrevented=true;emit(EVENT_DRAGGING);prevent(e);}else if(isSliderDirection(e)){dragging=shouldStart(e);prevent(e);}}}
function onPointerUp(e){if(state.is(DRAGGING)){state.set(IDLE);emit(EVENT_DRAGGED);}
if(dragging){move(e);prevent(e);}
unbind(target,POINTER_MOVE_EVENTS,onPointerMove);unbind(target,POINTER_UP_EVENTS,onPointerUp);dragging=false;}
function onClick(e){if(!disabled&&clickPrevented){prevent(e,true);}}
function save(e){prevBaseEvent=baseEvent;baseEvent=e;basePosition=getPosition();}
function move(e){var velocity=computeVelocity(e);var destination=computeDestination(velocity);var rewind=options.rewind&&options.rewindByDrag;reduce(false);if(isFree){Controller.scroll(destination,0,options.snap);}else if(Splide2.is(FADE)){Controller.go(orient(sign(velocity))<0?rewind?"<":"-":rewind?">":"+");}else if(Splide2.is(SLIDE)&&exceeded&&rewind){Controller.go(exceededLimit(true)?">":"<");}else{Controller.go(Controller.toDest(destination),true);}
reduce(true);}
function shouldStart(e){var thresholds=options.dragMinThreshold;var isObj=isObject(thresholds);var mouse=isObj&&thresholds.mouse||0;var touch=(isObj?thresholds.touch:+thresholds)||10;return abs(diffCoord(e))>(isTouchEvent(e)?touch:mouse);}
function isSliderDirection(e){return abs(diffCoord(e))>abs(diffCoord(e,true));}
function computeVelocity(e){if(Splide2.is(LOOP)||!exceeded){var time=diffTime(e);if(time&&time<LOG_INTERVAL){return diffCoord(e)/time;}}
return 0;}
function computeDestination(velocity){return getPosition()+sign(velocity)*min(abs(velocity)*(options.flickPower||600),isFree?Infinity:Components2.Layout.listSize()*(options.flickMaxPages||1));}
function diffCoord(e,orthogonal){return coordOf(e,orthogonal)-coordOf(getBaseEvent(e),orthogonal);}
function diffTime(e){return timeOf(e)-timeOf(getBaseEvent(e));}
function getBaseEvent(e){return baseEvent===e&&prevBaseEvent||baseEvent;}
function coordOf(e,orthogonal){return(isTouchEvent(e)?e.changedTouches[0]:e)["page"+resolve(orthogonal?"Y":"X")];}
function constrain(diff){return diff/(exceeded&&Splide2.is(SLIDE)?FRICTION:1);}
function isDraggable(target2){var noDrag=options.noDrag;return!matches(target2,"."+CLASS_PAGINATION_PAGE+", ."+CLASS_ARROW)&&(!noDrag||!matches(target2,noDrag));}
function isTouchEvent(e){return typeof TouchEvent!=="undefined"&&e instanceof TouchEvent;}
function isDragging(){return dragging;}
function disable(value){disabled=value;}
return{mount:mount,disable:disable,isDragging:isDragging};}
var NORMALIZATION_MAP={Spacebar:" ",Right:ARROW_RIGHT,Left:ARROW_LEFT,Up:ARROW_UP,Down:ARROW_DOWN};function normalizeKey(key){key=isString(key)?key:key.key;return NORMALIZATION_MAP[key]||key;}
var KEYBOARD_EVENT="keydown";function Keyboard(Splide2,Components2,options){var _EventInterface10=EventInterface(Splide2),on=_EventInterface10.on,bind=_EventInterface10.bind,unbind=_EventInterface10.unbind;var root=Splide2.root;var resolve=Components2.Direction.resolve;var target;var disabled;function mount(){init();on(EVENT_UPDATED,destroy);on(EVENT_UPDATED,init);on(EVENT_MOVE,onMove);}
function init(){var keyboard=options.keyboard;if(keyboard){target=keyboard==="global"?window:root;bind(target,KEYBOARD_EVENT,onKeydown);}}
function destroy(){unbind(target,KEYBOARD_EVENT);}
function disable(value){disabled=value;}
function onMove(){var _disabled=disabled;disabled=true;nextTick(function(){disabled=_disabled;});}
function onKeydown(e){if(!disabled){var key=normalizeKey(e);if(key===resolve(ARROW_LEFT)){Splide2.go("<");}else if(key===resolve(ARROW_RIGHT)){Splide2.go(">");}}}
return{mount:mount,destroy:destroy,disable:disable};}
var SRC_DATA_ATTRIBUTE=DATA_ATTRIBUTE+"-lazy";var SRCSET_DATA_ATTRIBUTE=SRC_DATA_ATTRIBUTE+"-srcset";var IMAGE_SELECTOR="["+SRC_DATA_ATTRIBUTE+"], ["+SRCSET_DATA_ATTRIBUTE+"]";function LazyLoad(Splide2,Components2,options){var _EventInterface11=EventInterface(Splide2),on=_EventInterface11.on,off=_EventInterface11.off,bind=_EventInterface11.bind,emit=_EventInterface11.emit;var isSequential=options.lazyLoad==="sequential";var events=[EVENT_MOVED,EVENT_SCROLLED];var entries=[];function mount(){if(options.lazyLoad){init();on(EVENT_REFRESH,init);}}
function init(){empty(entries);register();if(isSequential){loadNext();}else{off(events);on(events,check);check();}}
function register(){Components2.Slides.forEach(function(Slide){queryAll(Slide.slide,IMAGE_SELECTOR).forEach(function(img){var src=getAttribute(img,SRC_DATA_ATTRIBUTE);var srcset=getAttribute(img,SRCSET_DATA_ATTRIBUTE);if(src!==img.src||srcset!==img.srcset){var className=options.classes.spinner;var parent=img.parentElement;var spinner=child(parent,"."+className)||create("span",className,parent);entries.push([img,Slide,spinner]);img.src||display(img,"none");}});});}
function check(){entries=entries.filter(function(data){var distance=options.perPage*((options.preloadPages||1)+1)-1;return data[1].isWithin(Splide2.index,distance)?load(data):true;});entries.length||off(events);}
function load(data){var img=data[0];addClass(data[1].slide,CLASS_LOADING);bind(img,"load error",apply(onLoad,data));setAttribute(img,"src",getAttribute(img,SRC_DATA_ATTRIBUTE));setAttribute(img,"srcset",getAttribute(img,SRCSET_DATA_ATTRIBUTE));removeAttribute(img,SRC_DATA_ATTRIBUTE);removeAttribute(img,SRCSET_DATA_ATTRIBUTE);}
function onLoad(data,e){var img=data[0],Slide=data[1];removeClass(Slide.slide,CLASS_LOADING);if(e.type!=="error"){remove(data[2]);display(img,"");emit(EVENT_LAZYLOAD_LOADED,img,Slide);emit(EVENT_RESIZE);}
isSequential&&loadNext();}
function loadNext(){entries.length&&load(entries.shift());}
return{mount:mount,destroy:apply(empty,entries),check:check};}
function Pagination(Splide2,Components2,options){var event=EventInterface(Splide2);var on=event.on,emit=event.emit,bind=event.bind;var Slides=Components2.Slides,Elements=Components2.Elements,Controller=Components2.Controller;var hasFocus=Controller.hasFocus,getIndex=Controller.getIndex,go=Controller.go;var resolve=Components2.Direction.resolve;var placeholder=Elements.pagination;var items=[];var list;var paginationClasses;function mount(){destroy();on([EVENT_UPDATED,EVENT_REFRESH,EVENT_END_INDEX_CHANGED],mount);var enabled=options.pagination;placeholder&&display(placeholder,enabled?"":"none");if(enabled){on([EVENT_MOVE,EVENT_SCROLL,EVENT_SCROLLED],update);createPagination();update();emit(EVENT_PAGINATION_MOUNTED,{list:list,items:items},getAt(Splide2.index));}}
function destroy(){if(list){remove(placeholder?slice(list.children):list);removeClass(list,paginationClasses);empty(items);list=null;}
event.destroy();}
function createPagination(){var length=Splide2.length;var classes=options.classes,i18n=options.i18n,perPage=options.perPage;var max=hasFocus()?Controller.getEnd()+1:ceil(length/perPage);list=placeholder||create("ul",classes.pagination,Elements.track.parentElement);addClass(list,paginationClasses=CLASS_PAGINATION+"--"+getDirection());setAttribute(list,ROLE,"tablist");setAttribute(list,ARIA_LABEL,i18n.select);setAttribute(list,ARIA_ORIENTATION,getDirection()===TTB?"vertical":"");for(var i=0;i<max;i++){var li=create("li",null,list);var button=create("button",{class:classes.page,type:"button"},li);var controls=Slides.getIn(i).map(function(Slide){return Slide.slide.id;});var text=!hasFocus()&&perPage>1?i18n.pageX:i18n.slideX;bind(button,"click",apply(onClick,i));if(options.paginationKeyboard){bind(button,"keydown",apply(onKeydown,i));}
setAttribute(li,ROLE,"presentation");setAttribute(button,ROLE,"tab");setAttribute(button,ARIA_CONTROLS,controls.join(" "));setAttribute(button,ARIA_LABEL,format(text,i+1));setAttribute(button,TAB_INDEX,-1);items.push({li:li,button:button,page:i});}}
function onClick(page){go(">"+page,true);}
function onKeydown(page,e){var length=items.length;var key=normalizeKey(e);var dir=getDirection();var nextPage=-1;if(key===resolve(ARROW_RIGHT,false,dir)){nextPage=++page%length;}else if(key===resolve(ARROW_LEFT,false,dir)){nextPage=(--page+length)%length;}else if(key==="Home"){nextPage=0;}else if(key==="End"){nextPage=length-1;}
var item=items[nextPage];if(item){focus(item.button);go(">"+nextPage);prevent(e,true);}}
function getDirection(){return options.paginationDirection||options.direction;}
function getAt(index){return items[Controller.toPage(index)];}
function update(){var prev=getAt(getIndex(true));var curr=getAt(getIndex());if(prev){var button=prev.button;removeClass(button,CLASS_ACTIVE);removeAttribute(button,ARIA_SELECTED);setAttribute(button,TAB_INDEX,-1);}
if(curr){var _button=curr.button;addClass(_button,CLASS_ACTIVE);setAttribute(_button,ARIA_SELECTED,true);setAttribute(_button,TAB_INDEX,"");}
emit(EVENT_PAGINATION_UPDATED,{list:list,items:items},prev,curr);}
return{items:items,mount:mount,destroy:destroy,getAt:getAt,update:update};}
var TRIGGER_KEYS=[" ","Enter"];function Sync(Splide2,Components2,options){var isNavigation=options.isNavigation,slideFocus=options.slideFocus;var events=[];function mount(){Splide2.splides.forEach(function(target){if(!target.isParent){sync(Splide2,target.splide);sync(target.splide,Splide2);}});if(isNavigation){navigate();}}
function destroy(){events.forEach(function(event){event.destroy();});empty(events);}
function remount(){destroy();mount();}
function sync(splide,target){var event=EventInterface(splide);event.on(EVENT_MOVE,function(index,prev,dest){target.go(target.is(LOOP)?dest:index);});events.push(event);}
function navigate(){var event=EventInterface(Splide2);var on=event.on;on(EVENT_CLICK,onClick);on(EVENT_SLIDE_KEYDOWN,onKeydown);on([EVENT_MOUNTED,EVENT_UPDATED],update);events.push(event);event.emit(EVENT_NAVIGATION_MOUNTED,Splide2.splides);}
function update(){setAttribute(Components2.Elements.list,ARIA_ORIENTATION,options.direction===TTB?"vertical":"");}
function onClick(Slide){Splide2.go(Slide.index);}
function onKeydown(Slide,e){if(includes(TRIGGER_KEYS,normalizeKey(e))){onClick(Slide);prevent(e);}}
return{setup:apply(Components2.Media.set,{slideFocus:isUndefined(slideFocus)?isNavigation:slideFocus},true),mount:mount,destroy:destroy,remount:remount};}
function Wheel(Splide2,Components2,options){var _EventInterface12=EventInterface(Splide2),bind=_EventInterface12.bind;var lastTime=0;function mount(){if(options.wheel){bind(Components2.Elements.track,"wheel",onWheel,SCROLL_LISTENER_OPTIONS);}}
function onWheel(e){if(e.cancelable){var deltaY=e.deltaY;var backwards=deltaY<0;var timeStamp=timeOf(e);var _min=options.wheelMinThreshold||0;var sleep=options.wheelSleep||0;if(abs(deltaY)>_min&&timeStamp-lastTime>sleep){Splide2.go(backwards?"<":">");lastTime=timeStamp;}
shouldPrevent(backwards)&&prevent(e);}}
function shouldPrevent(backwards){return!options.releaseWheel||Splide2.state.is(MOVING)||Components2.Controller.getAdjacent(backwards)!==-1;}
return{mount:mount};}
var SR_REMOVAL_DELAY=90;function Live(Splide2,Components2,options){var _EventInterface13=EventInterface(Splide2),on=_EventInterface13.on;var track=Components2.Elements.track;var enabled=options.live&&!options.isNavigation;var sr=create("span",CLASS_SR);var interval=RequestInterval(SR_REMOVAL_DELAY,apply(toggle,false));function mount(){if(enabled){disable(!Components2.Autoplay.isPaused());setAttribute(track,ARIA_ATOMIC,true);sr.textContent="\u2026";on(EVENT_AUTOPLAY_PLAY,apply(disable,true));on(EVENT_AUTOPLAY_PAUSE,apply(disable,false));on([EVENT_MOVED,EVENT_SCROLLED],apply(toggle,true));}}
function toggle(active){setAttribute(track,ARIA_BUSY,active);if(active){append(track,sr);interval.start();}else{remove(sr);interval.cancel();}}
function destroy(){removeAttribute(track,[ARIA_LIVE,ARIA_ATOMIC,ARIA_BUSY]);remove(sr);}
function disable(disabled){if(enabled){setAttribute(track,ARIA_LIVE,disabled?"off":"polite");}}
return{mount:mount,disable:disable,destroy:destroy};}
var ComponentConstructors=Object.freeze({__proto__:null,Media:Media,Direction:Direction,Elements:Elements,Slides:Slides,Layout:Layout,Clones:Clones,Move:Move,Controller:Controller,Arrows:Arrows,Autoplay:Autoplay,Cover:Cover,Scroll:Scroll,Drag:Drag,Keyboard:Keyboard,LazyLoad:LazyLoad,Pagination:Pagination,Sync:Sync,Wheel:Wheel,Live:Live});var I18N={prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"};var DEFAULTS={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:true,arrows:true,pagination:true,paginationKeyboard:true,interval:5e3,pauseOnHover:true,pauseOnFocus:true,resetProgress:true,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:true,direction:"ltr",trimSpace:true,focusableNodes:"a, button, textarea, input, select, iframe",live:true,classes:CLASSES,i18n:I18N,reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function Fade(Splide2,Components2,options){var Slides=Components2.Slides;function mount(){EventInterface(Splide2).on([EVENT_MOUNTED,EVENT_REFRESH],init);}
function init(){Slides.forEach(function(Slide){Slide.style("transform","translateX(-"+100*Slide.index+"%)");});}
function start(index,done){Slides.style("transition","opacity "+options.speed+"ms "+options.easing);nextTick(done);}
return{mount:mount,start:start,cancel:noop};}
function Slide(Splide2,Components2,options){var Move=Components2.Move,Controller=Components2.Controller,Scroll=Components2.Scroll;var list=Components2.Elements.list;var transition=apply(style,list,"transition");var endCallback;function mount(){EventInterface(Splide2).bind(list,"transitionend",function(e){if(e.target===list&&endCallback){cancel();endCallback();}});}
function start(index,done){var destination=Move.toPosition(index,true);var position=Move.getPosition();var speed=getSpeed(index);if(abs(destination-position)>=1&&speed>=1){if(options.useScroll){Scroll.scroll(destination,speed,false,done);}else{transition("transform "+speed+"ms "+options.easing);Move.translate(destination,true);endCallback=done;}}else{Move.jump(index);done();}}
function cancel(){transition("");Scroll.cancel();}
function getSpeed(index){var rewindSpeed=options.rewindSpeed;if(Splide2.is(SLIDE)&&rewindSpeed){var prev=Controller.getIndex(true);var end=Controller.getEnd();if(prev===0&&index>=end||prev>=end&&index===0){return rewindSpeed;}}
return options.speed;}
return{mount:mount,start:start,cancel:cancel};}
var _Splide=function(){function _Splide(target,options){this.event=EventInterface();this.Components={};this.state=State(CREATED);this.splides=[];this._o={};this._E={};var root=isString(target)?query(document,target):target;assert(root,root+" is invalid.");this.root=root;options=merge({label:getAttribute(root,ARIA_LABEL)||"",labelledby:getAttribute(root,ARIA_LABELLEDBY)||""},DEFAULTS,_Splide.defaults,options||{});try{merge(options,JSON.parse(getAttribute(root,DATA_ATTRIBUTE)));}catch(e){assert(false,"Invalid JSON");}
this._o=Object.create(merge({},options));}
var _proto=_Splide.prototype;_proto.mount=function mount(Extensions,Transition){var _this=this;var state=this.state,Components2=this.Components;assert(state.is([CREATED,DESTROYED]),"Already mounted!");state.set(CREATED);this._C=Components2;this._T=Transition||this._T||(this.is(FADE)?Fade:Slide);this._E=Extensions||this._E;var Constructors=assign({},ComponentConstructors,this._E,{Transition:this._T});forOwn(Constructors,function(Component,key){var component=Component(_this,Components2,_this._o);Components2[key]=component;component.setup&&component.setup();});forOwn(Components2,function(component){component.mount&&component.mount();});this.emit(EVENT_MOUNTED);addClass(this.root,CLASS_INITIALIZED);state.set(IDLE);this.emit(EVENT_READY);return this;};_proto.sync=function sync(splide){this.splides.push({splide:splide});splide.splides.push({splide:this,isParent:true});if(this.state.is(IDLE)){this._C.Sync.remount();splide.Components.Sync.remount();}
return this;};_proto.go=function go(control){this._C.Controller.go(control);return this;};_proto.on=function on(events,callback){this.event.on(events,callback);return this;};_proto.off=function off(events){this.event.off(events);return this;};_proto.emit=function emit(event){var _this$event;(_this$event=this.event).emit.apply(_this$event,[event].concat(slice(arguments,1)));return this;};_proto.add=function add(slides,index){this._C.Slides.add(slides,index);return this;};_proto.remove=function remove(matcher){this._C.Slides.remove(matcher);return this;};_proto.is=function is(type){return this._o.type===type;};_proto.refresh=function refresh(){this.emit(EVENT_REFRESH);return this;};_proto.destroy=function destroy(completely){if(completely===void 0){completely=true;}
var event=this.event,state=this.state;if(state.is(CREATED)){EventInterface(this).on(EVENT_READY,this.destroy.bind(this,completely));}else{forOwn(this._C,function(component){component.destroy&&component.destroy(completely);},true);event.emit(EVENT_DESTROY);event.destroy();completely&&empty(this.splides);state.set(DESTROYED);}
return this;};_createClass(_Splide,[{key:"options",get:function get(){return this._o;},set:function set(options){this._C.Media.set(options,true,true);}},{key:"length",get:function get(){return this._C.Slides.getLength(true);}},{key:"index",get:function get(){return this._C.Controller.getIndex();}}]);return _Splide;}();var Splide=_Splide;Splide.defaults={};Splide.STATES=STATES;return Splide;});"use strict";(function($){var scrollEventTimer=0;function handlePageScroll(){scrollEventTimer=0;var currentTopValue=0;var currentTopValueStickyBannerOnly=0;var scrollTop=$(window).scrollTop();var ameyNav=$('.amey-nav');if(ameyNav.is('.amey-nav--fixed.amey-nav--active')){currentTopValue+=ameyNav.outerHeight();}
var ctaBanners=$('.o-cta-sticky-banner');for(var i=0;i<ctaBanners.length;i++){var thisBanner=$(ctaBanners[i]);var thisBannerOffsetTop=parseInt(thisBanner.attr('data-offset'));if(thisBannerOffsetTop<=scrollTop+currentTopValue){thisBanner.addClass('o-cta-sticky-banner--fixed');thisBanner.css('top',currentTopValue);currentTopValue+=thisBanner.outerHeight();currentTopValueStickyBannerOnly+=thisBanner.outerHeight();}else{thisBanner.removeClass('o-cta-sticky-banner--fixed');thisBanner.css('top','auto');thisBanner.attr('data-offset',thisBanner.offset().top);}}}
function onPageScroll(){if(scrollEventTimer!=0){return;}
scrollEventTimer=window.setTimeout(handlePageScroll,50);}
function initEvents(){$(window).on('scroll.amey-cta-banners',onPageScroll);}
function init(){initEvents();var ctaBanners=$('.o-cta-sticky-banner');for(var i=0;i<ctaBanners.length;i++){var thisBanner=$(ctaBanners[i]);thisBanner.attr('data-offset',thisBanner.offset().top);}}
$(init);})(jQuery);"use strict";(function($,htmx){function openDropdown(buttonElement,dropdownElement){buttonElement.addClass('o-filter-bar__filter-group-btn--open');if($('.o-filter-bar__mobile-dialog').is(':visible')){$('.o-filter-bar__sub-menu-close').css('visibility','visible');$('.o-filter-bar__sub-menu-heading').text(dropdownElement.attr('data-filter-group-title'));dropdownElement.show();}else{dropdownElement.slideDown();}}
function closeDropdown(buttonElement,dropdownElement,isImmediate){buttonElement.removeClass('o-filter-bar__filter-group-btn--open');if(isImmediate||$('.o-filter-bar__mobile-dialog').is(':visible')){$('.o-filter-bar__sub-menu-close').css('visibility','hidden');$('.o-filter-bar__sub-menu-heading').text("Filters");dropdownElement.hide();}else{dropdownElement.slideUp();}}
function closeAllDropdowns(isImmediate){var allDropdowns=$('.o-filter-bar__filter-group-dropdown');var visibleDropdowns=allDropdowns.filter(':visible');for(var i=0;i<visibleDropdowns.length;i++){var dropdownButtonToClose=$('.o-filter-bar__filter-group-btn[data-dropdown-id="'+visibleDropdowns[i].id+'"]');var dropdownToClose=$(visibleDropdowns[i]);closeDropdown(dropdownButtonToClose,dropdownToClose,isImmediate);}}
function openMobileMenu(){var mobileMenuHeader=$('.o-filter-bar__mobile-dialog');var mobileMenuFilterList=$('.o-filter-bar__mobile-group-list');mobileMenuHeader.addClass('o-filter-bar__mobile-dialog--open');mobileMenuFilterList.addClass('o-filter-bar__mobile-group-list--open');}
function closeMobileMenu(){var mobileMenuHeader=$('.o-filter-bar__mobile-dialog');var mobileMenuFilterList=$('.o-filter-bar__mobile-group-list');mobileMenuHeader.removeClass('o-filter-bar__mobile-dialog--open');mobileMenuFilterList.removeClass('o-filter-bar__mobile-group-list--open');closeMobileSearch();closeAllDropdowns(true);}
function onFilterGroupClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);var dropdownId=target.attr('data-dropdown-id');var dropdownElement=$('#'+dropdownId);if(dropdownElement.is(':visible')){$('.o-filter-bar__sub-menu-close').hide();closeDropdown(target,dropdownElement);}else{var allDropdowns=$('.o-filter-bar__filter-group-dropdown');var visibleDropdowns=allDropdowns.filter(':visible');if(visibleDropdowns.length>0){closeAllDropdowns();setTimeout(function(){return openDropdown(target,dropdownElement);},400);}else{openDropdown(target,dropdownElement);}}}
function trimLeadingComma(input){var output=input;if(output[0]==','){output=output.substring(1,output.length);}
return output;}
function addToFilterCollection(newFilter,selectedFiltersString){var selectedFilters=selectedFiltersString.split(',');selectedFilters.push(newFilter);var output=selectedFilters.join(',');output=trimLeadingComma(output);return output;}
function removeFromFilterCollection(newFilter,selectedFiltersString){var selectedFilters=selectedFiltersString.split(',');selectedFilters=selectedFilters.filter(function(val,index,array){return val!=newFilter;});var output=selectedFilters.join(',');output=trimLeadingComma(output);return output;}
function submitFilterForm(doNotUpdateQueryString){$('.o-filter-bar__form .o-filter-bar__form-btn')[0].click();if($('.o-banner-with-sub-copy-hero__podcast-heading').length>0){var filters=$('.o-filter-bar__form input');for(var i=0;i<filters.length;i++){var thisFilter=$(filters[i]);var thisFilterName=thisFilter.attr('name');var thisFilterVal=thisFilter.val();if(thisFilterName=='type'){if(thisFilterVal==4){$('.o-banner-with-sub-copy-hero__heading').hide();$('.o-banner-with-sub-copy-hero__subcopy').hide();$('.o-banner-with-sub-copy-hero__podcast-heading').show();$('.o-banner-with-sub-copy-hero__podcast-subcopy').show();}else{$('.o-banner-with-sub-copy-hero__heading').show();$('.o-banner-with-sub-copy-hero__subcopy').show();$('.o-banner-with-sub-copy-hero__podcast-heading').hide();$('.o-banner-with-sub-copy-hero__podcast-subcopy').hide();}
break;}}}
if(!doNotUpdateQueryString){updateQueryString();}}
function scrollToFilters(){var top=$('.o-filter-bar').offset().top;window.scrollTo({top:top,left:0,behavior:'smooth'});}
function updateNumFiltersSelected(filterGroupTitle,numFilters){var filterGroupBtn=$('.o-filter-bar__filter-group-btn[data-filter-group-name="'+filterGroupTitle+'"]');var htmlToDisplay=filterGroupTitle;if(numFilters>0){htmlToDisplay+=' <span>('+numFilters+')</span>';}
filterGroupBtn.html(htmlToDisplay);var mobFilterGroupBtn=$('.o-filter-bar__mobile-filter-group-btn[data-filter-group-name="'+filterGroupTitle+'"]');var mobHtmlToDisplay='<div><span>'+filterGroupTitle+'</span>';if(numFilters>0){mobHtmlToDisplay+=' <span>('+numFilters+')</span>';}
mobHtmlToDisplay+='</div>';mobFilterGroupBtn.html(mobHtmlToDisplay);}
function updateQueryString(){var filters=$('.o-filter-bar__form input');var url=new URL(location);var state={};for(var i=0;i<filters.length;i++){var thisFilter=$(filters[i]);var thisFilterName=thisFilter.attr('name');var thisFilterVal=thisFilter.val();var defaultValue='';if(thisFilterName=='page'){defaultValue='1';}else if(thisFilterName=='type'){defaultValue='0';}
if(thisFilterVal!=defaultValue){url.searchParams.set(thisFilterName,thisFilterVal);}else{url.searchParams.delete(thisFilterName);}
state[thisFilterName]=thisFilterVal;}
history.pushState(state,'',url);}
function onPopState(event){var newState=event.originalEvent.state;if(!newState){newState=getDefaultState();}
var newStateKeys=newState.keys();for(var i=0;i<newStateKeys;i++){var thisFilterName=newStateKeys[i];var thisFilterVal=newState[thisFilterName];if(thisFilterName=='page'){$('.o-filter-bar__form input[name="page"]').val(thisFilterVal);continue;}
if(thisFilterName=='type'){$('.o-filter-bar__form input[name="type"]').val(thisFilterVal);$('.o-filter-bar__tab').removeClass('o-filter-bar__tab--active');$('.o-filter-bar__tab[data-filter-val="'+thisFilterVal+'"]').addClass('o-filter-bar__tab--active');$('.o-filter-bar__filter-group-dropdown-inner .a-pill').removeClass('a-pill--state-selected').removeClass('a-pill--remove').addClass('a-pill--add');continue;}
if(thisFilterName=='search'){$('.o-filter-bar__form input[name="search"]').val(thisFilterVal);$('.o-filter-bar__search-box .m-search-box__input').val(thisFilterVal);continue;}
$('.o-filter-bar__form input[name="'+thisFilterName+'"]').val(thisFilterVal);var thisFilterTags=$('.o-filter-bar__filter-group-dropdown[data-filter-name="'+thisFilterName+'"] .a-pill');thisFilterTags.each(function(index,element){var tag=$(element);var tagValue=tag.attr('data-filter-val');if(thisFilterVal.indexOf(tagValue)>-1){tag.removeClass('a-pill--add').addClass('a-pill--state-selected').addClass('a-pill--remove');}});}
submitFilterForm(true);}
function getDefaultState(){var filters=$('.o-filter-bar__form input');var state={};for(var i=0;i<filters.length;i++){var thisFilter=$(filters[i]);var thisFilterName=thisFilter.attr('name');var defaultValue='';if(thisFilterName=='page'){defaultValue='1';}else if(thisFilterName=='type'){defaultValue='0';}
state[thisFilterName]=defaultValue;}
return state;}
function onFilterClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);var targetFilterVal=target.attr('data-filter-val');var parentGroup=target.parents('.o-filter-bar__filter-group-dropdown');var filterName=parentGroup.attr('data-filter-name');var filterInput=$('.o-filter-bar__form input[name="'+filterName+'"]');var selectedFilters=filterInput.val();if(target.is('.a-pill--add')){selectedFilters=addToFilterCollection(targetFilterVal,selectedFilters);target.removeClass('a-pill--add').addClass('a-pill--state-selected').addClass('a-pill--remove');}else{selectedFilters=removeFromFilterCollection(targetFilterVal,selectedFilters);target.removeClass('a-pill--state-selected').removeClass('a-pill--remove').addClass('a-pill--add');}
filterInput.val(selectedFilters);var numFilters=selectedFilters==''?0:selectedFilters.split(',').length;var textToDisplay='Apply filters';if(numFilters>0){textToDisplay+=' <span>('+numFilters+')</span>';}
parentGroup.find('.a-button--primary').html(textToDisplay);}
function onTabClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);var targetFilterVal=target.attr('data-filter-val');$('.o-filter-bar__form input[name="page"]').val(1);$('.o-filter-bar__form input[name="type"]').val(targetFilterVal);submitFilterForm();$('.o-filter-bar__tab').removeClass('o-filter-bar__tab--active');target.addClass('o-filter-bar__tab--active');if(target.hasClass('o-filter-bar__podcast')){$('.o-banner-with-sub-copy-hero').addClass('podcast');}else{$('.o-banner-with-sub-copy-hero').removeClass('podcast');}}
function onResetFiltersClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);var parentGroup=target.parents('.o-filter-bar__filter-group-dropdown');var filterGroupTitle=parentGroup.attr('data-filter-group-title');var filterGroupName=parentGroup.attr('data-filter-name');$('.o-filter-bar__form input[name="'+filterGroupName+'"]').val('');parentGroup.find('.o-filter-bar__filter-group-dropdown-inner > .a-pill').removeClass('a-pill--state-selected').removeClass('a-pill--remove').addClass('a-pill--add');$('.o-filter-bar__form input[name="page"]').val(1);submitFilterForm();closeAllDropdowns();updateNumFiltersSelected(filterGroupTitle,0);}
function onApplyFilterClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);var parentGroup=target.parents('.o-filter-bar__filter-group-dropdown');var filterGroupTitle=parentGroup.attr('data-filter-group-title');var filterGroupName=parentGroup.attr('data-filter-name');var filterVal=$('.o-filter-bar__form input[name="'+filterGroupName+'"]').val();var numFilters=filterVal==''?0:filterVal.split(',').length;$('.o-filter-bar__form input[name="page"]').val(1);submitFilterForm();closeAllDropdowns();updateNumFiltersSelected(filterGroupTitle,numFilters);}
function onPillsFilterClick(event){var target=$(event.currentTarget);var parentGroup=target.parent();var filterGroupName=parentGroup.attr('data-filter-name');parentGroup.find('.a-pill').removeClass('a-pill--state-selected');var targetVal=target.attr('data-filter-val');target.addClass('a-pill--state-selected');$('.o-filter-bar__form input[name="'+filterGroupName+'"]').val(targetVal);$('.o-filter-bar__form input[name="page"]').val(1);submitFilterForm();closeAllDropdowns();}
function onSearchKeyPress(event){var target=$(event.currentTarget);var targetVal=target.val();if(target.is('.o-filter-bar:not(.o-filter-bar--search) .m-search-box__input')&&event.keyCode==13){$('.o-filter-bar__form input[name="search"]').val(targetVal);submitFilterForm();}}
function onSearchKeyUp(event){var target=$(event.currentTarget);var targetVal=target.val();if(target.is('.o-filter-bar .o-filter-bar__mobile-search .m-search-box__input')){$('.o-filter-bar .o-filter-bar__search-box .m-search-box__input').val(targetVal);}else{$('.o-filter-bar .o-filter-bar__mobile-search .m-search-box__input').val(targetVal);}}
function onSearchSubmit(event){event.preventDefault();event.stopPropagation();var target=$('.o-filter-bar__search-box .m-search-box__input');var targetVal=target.val();$('.o-filter-bar__form input[name="search"]').val(targetVal);submitFilterForm();}
function onPaginationPrevClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);if(target.is('.m-pagination__button--disabled')){return;}
var pageInput=$('.o-filter-bar__form input[name="page"]');var currentPage=parseInt(pageInput.val());var newPage=currentPage-1;pageInput.val(newPage);submitFilterForm();scrollToFilters();}
function onPaginationNextClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);if(target.is('.m-pagination__button--disabled')){return;}
var pageInput=$('.o-filter-bar__form input[name="page"]');var currentPage=parseInt(pageInput.val());var newPage=currentPage+1;pageInput.val(newPage);submitFilterForm();scrollToFilters();}
function onPaginationNumberClick(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);if(target.is('.m-pagination__number--current')||target.is('.m-pagination__number--ellipses')){return;}
var pageInput=$('.o-filter-bar__form input[name="page"]');var newPage=parseInt(target.text());pageInput.val(newPage);submitFilterForm();scrollToFilters();}
function onContentSwap(){initPaginationEvents();}
function onMobileMenuToggle(){var mobileMenuHeader=$('.o-filter-bar__mobile-dialog');if(mobileMenuHeader.is('.o-filter-bar__mobile-dialog--open')){closeMobileMenu();}else{openMobileMenu();}}
function closeMobileSearch(){$('.o-filter-bar__mobile-bar .o-filter-bar__mobile-search').removeClass('o-filter-bar__mobile-search--open');}
function openMobileSearch(){$('.o-filter-bar__mobile-bar .o-filter-bar__mobile-search').addClass('o-filter-bar__mobile-search--open');}
function onMobileSearchToggle(event){event.preventDefault();event.stopPropagation();var mobileSearch=$('.o-filter-bar__mobile-bar .o-filter-bar__mobile-search');if(mobileSearch.is('.o-filter-bar__mobile-search--open')){closeMobileSearch();}else{openMobileSearch();}}
function onWindowResize(){closeAllDropdowns(true);closeMobileMenu();}
function initFilterBarEvents(){$('.o-filter-bar__filter-group-btn, .o-filter-bar__mobile-filter-group-btn').on('click.amey-filter-bar',onFilterGroupClick);$('.o-filter-bar__filter-group-dropdown-inner .a-pill').on('click.amey-filter-bar',onFilterClick);$('.o-filter-bar__filter-group-dropdown-button-row .o-filter-bar__reset-btn').on('click.amey-filter-bar',onResetFiltersClick);$('.o-filter-bar__filter-group-dropdown-button-row .o-filter-bar__apply-btn').on('click.amey-filter-bar',onApplyFilterClick);$('.o-filter-bar__tab').on('click.amey-filter-bar',onTabClick);$('.o-filter-bar__filter-groups-list>.a-pill, .o-filter-bar__mobile-group-list-inner>.a-pill').on('click.amey-filter-bar',onPillsFilterClick);$('.o-filter-bar .o-filter-bar__search-box .m-search-box__input, .o-filter-bar .o-filter-bar__mobile-search .m-search-box__input').on('keypress.amey-filter-bar',onSearchKeyPress);$('.o-filter-bar .o-filter-bar__search-box .m-search-box__input, .o-filter-bar .o-filter-bar__mobile-search .m-search-box__input').on('keyup.amey-filter-bar',onSearchKeyUp);$('.o-filter-bar:not(.o-filter-bar--search) .o-filter-bar__search-box .m-search-box__arrow').on('click.amey-filter-bar',onSearchSubmit);$('.o-filter-bar__menu-toggle, .o-filter-bar__menu-close').on('click.amey-filter-bar',onMobileMenuToggle);$('.o-filter-bar__mobile-bar .o-filter-bar__search-button').on('click.amey-filter-bar',onMobileSearchToggle);$('.o-filter-bar__sub-menu-close').on('click.amey-filter-bar',closeAllDropdowns);if($(".o-filter-bar__podcast").hasClass("o-filter-bar__tab--active")){$('.o-banner-with-sub-copy-hero').addClass('podcast');}}
function initPaginationEvents(){$('.m-pagination .m-pagination__button--left:not(.m-pagination__button--disabled)').on('click.amey-listing-page',onPaginationPrevClick);$('.m-pagination .m-pagination__button--right:not(.m-pagination__button--disabled)').on('click.amey-listing-page',onPaginationNextClick);$('.m-pagination .m-pagination__number').on('click.amey-listing-page',onPaginationNumberClick);}
function initEvents(){initFilterBarEvents();initPaginationEvents();htmx.on('htmx:afterSwap',onContentSwap);$(window).on('popstate.amey-listing-page',onPopState);$(window).on('resize.amey-listing-page',onWindowResize);}
function init(){initEvents();}
$(init);})(jQuery,htmx);"use strict";(function($,Splide){var slidesPerViewDesktop=4;var slidesPerViewMobile=1.4;var numSlidesMovedDesktop=4;var numSlidesMovedMobile=1;var marketsCarousel;function init(){if($('.markets-carousel-component--splide').length==0){return;}
marketsCarousel=new Splide('.markets-carousel-component--splide',{type:'loop',gap:24,focus:0,padding:0,trimSpaces:true,perPage:slidesPerViewDesktop,perMove:numSlidesMovedDesktop,pagination:false,breakpoints:{768:{perPage:slidesPerViewMobile,perMove:numSlidesMovedMobile}}});marketsCarousel.mount();}
$(init);})(jQuery,Splide);"use strict";(function($,Splide){var slidesPerViewDesktop=1;var slidesPerViewMobile=1;var numSlidesMovedDesktop=1;var numSlidesMovedMobile=1;var testimonialsCarousel;function init(){if($('.testimonials-carousel-component--splide').length==0){return;}
testimonialsCarousel=new Splide('.testimonials-carousel-component--splide',{type:'loop',gap:24,focus:0,padding:0,trimSpaces:true,perPage:slidesPerViewDesktop,perMove:numSlidesMovedDesktop,pagination:false,breakpoints:{768:{perPage:slidesPerViewMobile,perMove:numSlidesMovedMobile}}});var currentSlideEl=document.getElementById('current-slide');var totalSlidesEl=document.getElementById('total-slides');testimonialsCarousel.on('mounted',function(){var totalSlides=testimonialsCarousel.Components.Elements.slides.length;totalSlidesEl.textContent=totalSlides;currentSlideEl.textContent=1;testimonialsCarousel.on('moved',function(newIndex){var currentSlide=newIndex%totalSlides+1;currentSlideEl.textContent=currentSlide;});});testimonialsCarousel.mount();}
$(init);})(jQuery,Splide);"use strict";document.addEventListener('DOMContentLoaded',function(){var swiper=new Swiper('.swiper',{direction:'horizontal',loop:true,speed:600,autoplay:{delay:5000,disableOnInteraction:false},navigation:{nextEl:'.swiper-button-next',prevEl:'.swiper-button-prev'},slidesPerView:1.15,spaceBetween:30,breakpoints:{767:{slidesPerView:2.15,spaceBetween:30},1024:{slidesPerView:2.35,spaceBetween:20}},on:{afterInit:function afterInit(){var currentSwiper=this;var componentEl=$(currentSwiper.el).parents('.swiper-carousel-component');$(componentEl).find('.swiper-prev-button').on('click',function(){currentSwiper.slidePrev();});$(componentEl).find('.swiper-next-button').on('click',function(){currentSwiper.slideNext();});}}});});"use strict";(function($){var lastScrollTop=0;var scrollEventTimer=0;var openSubMenus=[];var searchPreviewTimer=0;var searchPreviewText='';function showSubMenuHeading(){var subMenuClose=$('.amey-nav__sub-menu-close');var subMenuHeading=$('.amey-nav__sub-menu-heading');var ameyImage=$('.navbar-brand');var mobileNavOpen=$('.amey-nav__mobile--open');subMenuClose.addClass('amey-nav__sub-menu-close--visible');subMenuHeading.addClass('amey-nav__sub-menu-heading--visible');ameyImage.addClass('amey-nav__brand--mob-hide');mobileNavOpen.addClass('amey-nav__mobile--open--submenu');}
function hideSubMenuHeading(){var subMenuClose=$('.amey-nav__sub-menu-close');var subMenuHeading=$('.amey-nav__sub-menu-heading');var ameyImage=$('.navbar-brand');var mobileNavOpen=$('.amey-nav__mobile--open');subMenuClose.removeClass('amey-nav__sub-menu-close--visible');subMenuHeading.removeClass('amey-nav__sub-menu-heading--visible');ameyImage.removeClass('amey-nav__brand--mob-hide');mobileNavOpen.removeClass('amey-nav__mobile--open--submenu');}
function updateSubMenuHeading(){var subMenuHeading=$('.amey-nav__sub-menu-heading');if(openSubMenus.length>0){var currentSubMenu=openSubMenus[openSubMenus.length-1];subMenuHeading.text(currentSubMenu);}else{subMenuHeading.text('');}}
function closeMobileSubMenu(){if(openSubMenus.length>1){closeChildNavs();updateSubMenuHeading();}else{hideMenuAdditions();openSubMenus.pop();hideSubMenuHeading();}}
function openDropdownMenu(event){event.preventDefault();event.stopPropagation();var target=$(event.currentTarget);hideDropdowns();closeChildNavs();openSubMenus.push(target.text());showSubMenuHeading();updateSubMenuHeading();target.siblings('.amey-nav__dropdown-menu').show();var mask=$('.amey-nav__dropdown-mask');mask.show();mask.on('click.amey',hideMenuAdditions);}
function openChildNav(event){event.stopPropagation();event.preventDefault();var target=$(event.currentTarget);var rightCol=target.parent().parent().parent().siblings('.amey-nav__dropdown-col--right');var rightColPos=rightCol.position().left;var targetId=target.attr('data-sub-menu-id');var childNavToOpen=$('.amey-nav__sub-nav[data-sub-menu-id="'+targetId+'"]');childNavToOpen.css('left',rightColPos);closeChildNavs();openSubMenus.push(target.text());updateSubMenuHeading();childNavToOpen.show();if(!$('.amey-nav__mobile').is(':visible')){var height=childNavToOpen.outerHeight();var dropdownHeight=height+96;$('.amey-nav__dropdown-menu').css('min-height',dropdownHeight);}}
function closeChildNavs(){$('.amey-nav__sub-nav').hide();$('.amey-nav__dropdown-menu').css('min-height','auto');if(openSubMenus.length>1){openSubMenus.length=1;}}
function handlePageScroll(){scrollEventTimer=0;var navbar=$('.amey-nav');var scrollTop=$(window).scrollTop();var headerHeight=navbar.outerHeight();if(scrollTop>headerHeight){if(!navbar.is('.amey-nav--fixed')){$(document.body).addClass('body--fixed-nav');navbar.addClass('amey-nav--fixed');}}else{$(document.body).removeClass('body--fixed-nav');navbar.removeClass('amey-nav--fixed');}
if(scrollTop<lastScrollTop){if(!navbar.is('.amey-nav--active')){navbar.addClass('amey-nav--active');}}else{navbar.removeClass('amey-nav--active');hideMenuAdditions();}
lastScrollTop=scrollTop;}
function onPageScroll(){if(scrollEventTimer!=0){return;}
scrollEventTimer=window.setTimeout(handlePageScroll,50);}
function onSearchClick(event){event.preventDefault();event.stopPropagation();hideDropdowns();var searchPanel=$('.amey-nav__search');var mask=$('.amey-nav__dropdown-mask');if(searchPanel.is(':visible')){searchPanel.hide();mask.hide();mask.off('click.amey');}else{searchPanel.show();mask.show();mask.on('click.amey',hideMenuAdditions);}}
function onSearchKeyUp(){var searchText=$('.amey-nav__search .m-search-box__input').val();var trendingPanel=$('.amey-nav__search .amey-nav__search-trending');var resultsPanel=$('.amey-nav__search .amey-nav__search-results');if(searchText==''||searchText.length<4){if(searchPreviewTimer>0){clearTimeout(searchPreviewTimer);searchPreviewTimer=0;searchPreviewText='';resultsPanel.hide();trendingPanel.show();return;}}
if(searchText!=searchPreviewText){searchPreviewText=searchText;if(searchPreviewTimer==0){clearTimeout(searchPreviewTimer);searchPreviewTimer=setTimeout(getSearchPreview,250);}}}
function getSearchPreview(){$.ajax({url:'/api/fragments/search/preview?search='+searchPreviewText,success:onSearchPreviewSuccess});}
function onSearchPreviewSuccess(data){var trendingPanel=$('.amey-nav__search .amey-nav__search-trending');var resultsPanel=$('.amey-nav__search .amey-nav__search-results');if(!data){resultsPanel.html('');resultsPanel.hide();trendingPanel.show();}else{resultsPanel.html(data);trendingPanel.hide();resultsPanel.show();}}
function hideMenuAdditions(){$('.amey-nav__search').hide();hideDropdowns();closeChildNavs();var mask=$('.amey-nav__dropdown-mask');mask.hide();mask.off('click.amey');}
function hideDropdowns(){$('.amey-nav__dropdown-menu').hide();openSubMenus=[];}
function toggleMobileNav(){var navigation=$('.amey-nav__menu');var mobileOpenBtn=$('.amey-nav__menu-toggle');var mobileCloseBtn=$('.amey-nav__menu-close');var mobileNavOpen=$('.amey-nav__mobile--open');var mobileNavClosed=$('.amey-nav__mobile--closed');if(navigation.is(':visible')){navigation.removeClass('amey-nav__menu--visible');mobileNavOpen.removeClass('amey-nav__mobile--open--visible');mobileNavClosed.removeClass('amey-nav__mobile--closed--hidden');hideMenuAdditions();hideSubMenuHeading();enableBodyScrolling();mobileOpenBtn.attr('aria-expanded','false');mobileCloseBtn.attr('aria-expanded','false');}else{navigation.addClass('amey-nav__menu--visible');mobileNavOpen.addClass('amey-nav__mobile--open--visible');mobileNavClosed.addClass('amey-nav__mobile--closed--hidden');disableBodyScrolling();mobileOpenBtn.attr('aria-expanded','true');mobileCloseBtn.attr('aria-expanded','true');}}
function onWindowResize(){var navigation=$('.amey-nav__menu');var mobileOpenBtn=$('.amey-nav__menu-toggle');var mobileCloseBtn=$('.amey-nav__menu-close');var mobileNavOpen=$('.amey-nav__mobile--open');var mobileNavClosed=$('.amey-nav__mobile--closed');navigation.removeClass('amey-nav__menu--visible');mobileNavOpen.removeClass('amey-nav__mobile--open--visible');mobileNavClosed.removeClass('amey-nav__mobile--closed--hidden');hideMenuAdditions();hideSubMenuHeading();enableBodyScrolling();mobileOpenBtn.attr('aria-expanded','false');mobileCloseBtn.attr('aria-expanded','false');}
function disableBodyScrolling(){$(document.body).css('overflow','hidden');}
function enableBodyScrolling(){$(document.body).css('overflow','auto');}
function onTabHashUpdate(){var targetId=$(this).attr('id');if(targetId){history.replaceState(null,'','#'+targetId);if(targetId.startsWith('tab-vertical')){var tabVerticalParent=$('#'+targetId).closest('.tabs-vertical-component');$('html, body').animate({scrollTop:$(tabVerticalParent).offset().top},500);}}}
function initEvents(){$('.amey-nav__dropdown-item>.amey-nav__dropdown-toggle').on('click.amey',openDropdownMenu);$('.amey-nav__dropdown-col--centre>.nav>li>.nav-link--children').on('click.amey',openChildNav);$('.amey-nav__dropdown-col--centre>.nav>li>.nav-link:not(.nav-link--children)').on('mouseenter.amey',closeChildNavs);$(window).on('scroll.amey-navigation',onPageScroll);$(window).on('resize.amey-navigation',onWindowResize);$('.amey-nav__search-button').on('click.amey',onSearchClick);$('.amey-nav__search .m-search-box__input').on('keyup.amey',onSearchKeyUp);$('.amey-nav__menu-toggle, .amey-nav__menu-close').on('click.amey',toggleMobileNav);$('.amey-nav__sub-menu-close').on('click.amey',closeMobileSubMenu);$('li[id^="tab-open-"], li[id^="tab-vertical-"]').on('click.amey',onTabHashUpdate);if(location.href.includes('#')){var ancorLink=window.location.hash;if(ancorLink!==""){var targetId=$(ancorLink).closest('.tab-pane').first().attr('id');$(".tabs-horizontal-component__nav-list-item [data-bs-target=\"#".concat(targetId,"\"]")).trigger('click');$(ancorLink).trigger('click');}}}
$(initEvents);})(jQuery);"use strict";(function(){var init=function init(){var url=document.URL;if(url.indexOf('#')!==-1){var urlHash=url.substring(url.indexOf('#')).substring(1);if(urlHash.startsWith('tab-open')){var targetId='#'+urlHash;$(targetId).find(".a-tab-nav-item").each(function(key,val){var idOfTabBtn=$(val).attr('id');var someVarName=document.querySelector('#'+idOfTabBtn);var tab=new bootstrap.Tab(someVarName);tab.show();});}
if(urlHash.startsWith('tab-vertical')){var _targetId='#'+urlHash;$(_targetId).find(".a-tab-nav-item").each(function(key,val){var idOfTabBtn=$(val).attr('id');var someVarName=document.querySelector('#'+idOfTabBtn);var tab=new bootstrap.Tab(someVarName);tab.show();var tabVerticalParent=someVarName.closest('.tabs-vertical-component');$('html, body').animate({scrollTop:$(tabVerticalParent).offset().top},500);});}}};window.addEventListener("load",init);})();"use strict";(function($){var cssClasses={component:'scroll-jacking-component',slide:'scroll-jacking-component__slide',slideFixed:'scroll-jacking-component__slide--fixed',leftCol:'scroll-jacking-component__left-col',leftColFixed:'scroll-jacking-component__left-col--fixed',rightCol:'scroll-jacking-component__right-col',rightColFixed:'scroll-jacking-component__right-col--fixed'};var scrollEventTimer=0;function handlePageScroll(){scrollEventTimer=0;var ctaBannersHeight=getCtaBannersHeight();setMaxHeights(ctaBannersHeight);$('.'+cssClasses.leftCol).css('top',ctaBannersHeight+96);var windowHeight=$(window).height();var scrollPosWindowTop=$(window).scrollTop();var scrollPosWindowBottom=scrollPosWindowTop+windowHeight;var scrollJackingComponents=$('.'+cssClasses.component);for(var compIndex=0;compIndex<scrollJackingComponents.length;compIndex++){var thisComponent=$(scrollJackingComponents[compIndex]);var componentOffsetTop=thisComponent.offset().top;var runningSlideOffsetTop=componentOffsetTop;var scrollJackingSlides=thisComponent.find('.'+cssClasses.slide);for(var i=0;i<scrollJackingSlides.length;i++){var thisSlide=$(scrollJackingSlides[i]);var slideHeight=thisSlide.outerHeight();var slideOffsetTop=runningSlideOffsetTop;if(thisSlide.next().length==0){continue;}
var opacity=1;if(scrollPosWindowBottom>=slideOffsetTop+slideHeight){var unboundOpacity=2-(scrollPosWindowBottom-slideOffsetTop)/slideHeight;opacity=Math.min(unboundOpacity,1);opacity=Math.max(opacity,0);}
thisSlide.css({top:ctaBannersHeight-(slideHeight-windowHeight),opacity:opacity});runningSlideOffsetTop+=slideHeight;}}}
function onPageScroll(){if(scrollEventTimer!=0){return;}
scrollEventTimer=window.setTimeout(handlePageScroll,50);}
function getCtaBannersHeight(){var currentHeight=0;var fixedCtaBanners=$('.o-cta-sticky-banner--fixed');for(var i=0;i<fixedCtaBanners.length;i++){var thisBanner=$(fixedCtaBanners[i]);currentHeight+=thisBanner.outerHeight();}
return currentHeight;}
function setMaxHeights(ctaBannerHeight){$('.'+cssClasses.leftCol).css('height','calc(100vh - '+ctaBannerHeight+'px - (2 * var(--amey-space-96)))');}
function initEvents(){$(window).on('scroll.amey-scroll-jacking',onPageScroll);}
function init(){initEvents();var ctaBannerHeight=getCtaBannersHeight();setMaxHeights(ctaBannerHeight);}
$(init);})(jQuery);"use strict";$(function(){$('.video-play-wrapper').on('click',function(){var videoIframe=$(this).siblings('iframe');$(videoIframe).attr('src',$(videoIframe).data('src'));$(this).remove();});});"use strict";console.log('reporting... 1');"use strict";$(document).ready(function(){var searchParams=new URLSearchParams(window.location.search);var statusParam=searchParams.get('intStatus');if(statusParam=="0"){$('.intStatus0').css("display","block");$('#paymentForm').css("display","none");}
if(statusParam=="1"){$('.intStatus1').css("display","block");$('#paymentForm').css("display","none");}
$("#paymentForm").validate({rules:{email:{required:true,email:true,remote:"/Api/Pay360ValidateEmail/GetIsValid"},amount:{required:true,currency:['£',false]}},messages:{email:{required:"Please enter a valid email address",remote:"Please enter a valid email address."},amount:"Please enter a valid amount"}});});;;
"use strict";console.log('reporting... 2');"use strict";$(function(){var hashValue=window.location.hash.substring(1);if(hashValue){var targetElement=document.getElementById(hashValue);if(targetElement){var accordionItem=targetElement.closest(".accordion-item");if(accordionItem){var accordionButton=accordionItem.querySelector(".accordion-button");if(accordionButton&&accordionButton.classList.contains("collapsed")){accordionButton.click();}}}}
$(".accordion-horizontal .accordion-item").on("click",function(e){e.preventDefault();return;});$('.accordion-horizontal .accordion-item').first().addClass("show").find(".accordion-collapse").removeClass("collapse");$(".accordion-horizontal .accordion-item").on("mouseenter",function(){$(".accordion-horizontal .accordion-item").removeClass("show").find(".accordion-collapse").addClass("collapse");$(this).addClass("show").find(".accordion-collapse").removeClass("collapse");});});;;
