Hash :
394e4175
Author :
Thomas de Grivel
Date :
2024-05-14T22:14:12
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
(()=>{var rc=Object.create;var ws=Object.defineProperty;var sc=Object.getOwnPropertyDescriptor;var oc=Object.getOwnPropertyNames;var ac=Object.getPrototypeOf,lc=Object.prototype.hasOwnProperty;var xs=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),uc=(t,e)=>{for(var i in e)ws(t,i,{get:e[i],enumerable:!0})},cc=(t,e,i,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of oc(e))!lc.call(t,o)&&o!==i&&ws(t,o,{get:()=>e[o],enumerable:!(s=sc(e,o))||s.enumerable});return t};var yn=(t,e,i)=>(i=t!=null?rc(ac(t)):{},cc(e||!t||!t.__esModule?ws(i,"default",{value:t,enumerable:!0}):i,t));var ar=xs((ha,or)=>{(function(t,e){"use strict";typeof or=="object"&&typeof or.exports=="object"?or.exports=t.document?e(t,!0):function(i){if(!i.document)throw new Error("jQuery requires a window with a document");return e(i)}:e(t)})(typeof window<"u"?window:ha,function(t,e){"use strict";var i=[],s=Object.getPrototypeOf,o=i.slice,c=i.flat?function(n){return i.flat.call(n)}:function(n){return i.concat.apply([],n)},d=i.push,g=i.indexOf,v={},C=v.toString,x=v.hasOwnProperty,I=x.toString,D=I.call(Object),S={},N=function(r){return typeof r=="function"&&typeof r.nodeType!="number"&&typeof r.item!="function"},A=function(r){return r!=null&&r===r.window},_=t.document,R={type:!0,src:!0,nonce:!0,noModule:!0};function F(n,r,a){a=a||_;var u,f,h=a.createElement("script");if(h.text=n,r)for(u in R)f=r[u]||r.getAttribute&&r.getAttribute(u),f&&h.setAttribute(u,f);a.head.appendChild(h).parentNode.removeChild(h)}function T(n){return n==null?n+"":typeof n=="object"||typeof n=="function"?v[C.call(n)]||"object":typeof n}var H="3.7.1",K=/HTML$/i,l=function(n,r){return new l.fn.init(n,r)};l.fn=l.prototype={jquery:H,constructor:l,length:0,toArray:function(){return o.call(this)},get:function(n){return n==null?o.call(this):n<0?this[n+this.length]:this[n]},pushStack:function(n){var r=l.merge(this.constructor(),n);return r.prevObject=this,r},each:function(n){return l.each(this,n)},map:function(n){return this.pushStack(l.map(this,function(r,a){return n.call(r,a,r)}))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(l.grep(this,function(n,r){return(r+1)%2}))},odd:function(){return this.pushStack(l.grep(this,function(n,r){return r%2}))},eq:function(n){var r=this.length,a=+n+(n<0?r:0);return this.pushStack(a>=0&&a<r?[this[a]]:[])},end:function(){return this.prevObject||this.constructor()},push:d,sort:i.sort,splice:i.splice},l.extend=l.fn.extend=function(){var n,r,a,u,f,h,p=arguments[0]||{},y=1,b=arguments.length,w=!1;for(typeof p=="boolean"&&(w=p,p=arguments[y]||{},y++),typeof p!="object"&&!N(p)&&(p={}),y===b&&(p=this,y--);y<b;y++)if((n=arguments[y])!=null)for(r in n)u=n[r],!(r==="__proto__"||p===u)&&(w&&u&&(l.isPlainObject(u)||(f=Array.isArray(u)))?(a=p[r],f&&!Array.isArray(a)?h=[]:!f&&!l.isPlainObject(a)?h={}:h=a,f=!1,p[r]=l.extend(w,h,u)):u!==void 0&&(p[r]=u));return p},l.extend({expando:"jQuery"+(H+Math.random()).replace(/\D/g,""),isReady:!0,error:function(n){throw new Error(n)},noop:function(){},isPlainObject:function(n){var r,a;return!n||C.call(n)!=="[object Object]"?!1:(r=s(n),r?(a=x.call(r,"constructor")&&r.constructor,typeof a=="function"&&I.call(a)===D):!0)},isEmptyObject:function(n){var r;for(r in n)return!1;return!0},globalEval:function(n,r,a){F(n,{nonce:r&&r.nonce},a)},each:function(n,r){var a,u=0;if(ee(n))for(a=n.length;u<a&&r.call(n[u],u,n[u])!==!1;u++);else for(u in n)if(r.call(n[u],u,n[u])===!1)break;return n},text:function(n){var r,a="",u=0,f=n.nodeType;if(!f)for(;r=n[u++];)a+=l.text(r);return f===1||f===11?n.textContent:f===9?n.documentElement.textContent:f===3||f===4?n.nodeValue:a},makeArray:function(n,r){var a=r||[];return n!=null&&(ee(Object(n))?l.merge(a,typeof n=="string"?[n]:n):d.call(a,n)),a},inArray:function(n,r,a){return r==null?-1:g.call(r,n,a)},isXMLDoc:function(n){var r=n&&n.namespaceURI,a=n&&(n.ownerDocument||n).documentElement;return!K.test(r||a&&a.nodeName||"HTML")},merge:function(n,r){for(var a=+r.length,u=0,f=n.length;u<a;u++)n[f++]=r[u];return n.length=f,n},grep:function(n,r,a){for(var u,f=[],h=0,p=n.length,y=!a;h<p;h++)u=!r(n[h],h),u!==y&&f.push(n[h]);return f},map:function(n,r,a){var u,f,h=0,p=[];if(ee(n))for(u=n.length;h<u;h++)f=r(n[h],h,a),f!=null&&p.push(f);else for(h in n)f=r(n[h],h,a),f!=null&&p.push(f);return c(p)},guid:1,support:S}),typeof Symbol=="function"&&(l.fn[Symbol.iterator]=i[Symbol.iterator]),l.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),function(n,r){v["[object "+r+"]"]=r.toLowerCase()});function ee(n){var r=!!n&&"length"in n&&n.length,a=T(n);return N(n)||A(n)?!1:a==="array"||r===0||typeof r=="number"&&r>0&&r-1 in n}function G(n,r){return n.nodeName&&n.nodeName.toLowerCase()===r.toLowerCase()}var re=i.pop,me=i.sort,_e=i.splice,se="[\\x20\\t\\r\\n\\f]",ye=new RegExp("^"+se+"+|((?:^|[^\\\\])(?:\\\\.)*)"+se+"+$","g");l.contains=function(n,r){var a=r&&r.parentNode;return n===a||!!(a&&a.nodeType===1&&(n.contains?n.contains(a):n.compareDocumentPosition&&n.compareDocumentPosition(a)&16))};var je=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function Y(n,r){return r?n==="\0"?"\uFFFD":n.slice(0,-1)+"\\"+n.charCodeAt(n.length-1).toString(16)+" ":"\\"+n}l.escapeSelector=function(n){return(n+"").replace(je,Y)};var W=_,X=d;(function(){var n,r,a,u,f,h=X,p,y,b,w,P,M=l.expando,O=0,U=0,ae=ir(),pe=ir(),ue=ir(),He=ir(),Le=function(m,E){return m===E&&(f=!0),0},Tt="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",wt="(?:\\\\[\\da-fA-F]{1,6}"+se+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",he="\\["+se+"*("+wt+")(?:"+se+"*([*^$|!~]?=)"+se+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+wt+"))|)"+se+"*\\]",pi=":("+wt+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+he+")*)|.*)\\)|)",ge=new RegExp(se+"+","g"),xe=new RegExp("^"+se+"*,"+se+"*"),mn=new RegExp("^"+se+"*([>+~]|"+se+")"+se+"*"),vs=new RegExp(se+"|>"),xt=new RegExp(pi),vn=new RegExp("^"+wt+"$"),Ct={ID:new RegExp("^#("+wt+")"),CLASS:new RegExp("^\\.("+wt+")"),TAG:new RegExp("^("+wt+"|[*])"),ATTR:new RegExp("^"+he),PSEUDO:new RegExp("^"+pi),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+se+"*(even|odd|(([+-]|)(\\d*)n|)"+se+"*(?:([+-]|)"+se+"*(\\d+)|))"+se+"*\\)|)","i"),bool:new RegExp("^(?:"+Tt+")$","i"),needsContext:new RegExp("^"+se+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+se+"*((?:-\\d)?\\d*)"+se+"*\\)|)(?=[^-]|$)","i")},Xt=/^(?:input|select|textarea|button)$/i,Yt=/^h\d$/i,ut=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,bs=/[+~]/,$t=new RegExp("\\\\[\\da-fA-F]{1,6}"+se+"?|\\\\([^\\r\\n\\f])","g"),Mt=function(m,E){var k="0x"+m.slice(1)-65536;return E||(k<0?String.fromCharCode(k+65536):String.fromCharCode(k>>10|55296,k&1023|56320))},Ju=function(){Gt()},Qu=rr(function(m){return m.disabled===!0&&G(m,"fieldset")},{dir:"parentNode",next:"legend"});function Zu(){try{return p.activeElement}catch{}}try{h.apply(i=o.call(W.childNodes),W.childNodes),i[W.childNodes.length].nodeType}catch{h={apply:function(E,k){X.apply(E,o.call(k))},call:function(E){X.apply(E,o.call(arguments,1))}}}function ve(m,E,k,L){var $,V,q,Q,z,ce,ne,le=E&&E.ownerDocument,fe=E?E.nodeType:9;if(k=k||[],typeof m!="string"||!m||fe!==1&&fe!==9&&fe!==11)return k;if(!L&&(Gt(E),E=E||p,b)){if(fe!==11&&(z=ut.exec(m)))if($=z[1]){if(fe===9)if(q=E.getElementById($)){if(q.id===$)return h.call(k,q),k}else return k;else if(le&&(q=le.getElementById($))&&ve.contains(E,q)&&q.id===$)return h.call(k,q),k}else{if(z[2])return h.apply(k,E.getElementsByTagName(m)),k;if(($=z[3])&&E.getElementsByClassName)return h.apply(k,E.getElementsByClassName($)),k}if(!He[m+" "]&&(!w||!w.test(m))){if(ne=m,le=E,fe===1&&(vs.test(m)||mn.test(m))){for(le=bs.test(m)&&ys(E.parentNode)||E,(le!=E||!S.scope)&&((Q=E.getAttribute("id"))?Q=l.escapeSelector(Q):E.setAttribute("id",Q=M)),ce=bn(m),V=ce.length;V--;)ce[V]=(Q?"#"+Q:":scope")+" "+nr(ce[V]);ne=ce.join(",")}try{return h.apply(k,le.querySelectorAll(ne)),k}catch{He(m,!0)}finally{Q===M&&E.removeAttribute("id")}}}return fa(m.replace(ye,"$1"),E,k,L)}function ir(){var m=[];function E(k,L){return m.push(k+" ")>r.cacheLength&&delete E[m.shift()],E[k+" "]=L}return E}function bt(m){return m[M]=!0,m}function ji(m){var E=p.createElement("fieldset");try{return!!m(E)}catch{return!1}finally{E.parentNode&&E.parentNode.removeChild(E),E=null}}function ec(m){return function(E){return G(E,"input")&&E.type===m}}function tc(m){return function(E){return(G(E,"input")||G(E,"button"))&&E.type===m}}function ua(m){return function(E){return"form"in E?E.parentNode&&E.disabled===!1?"label"in E?"label"in E.parentNode?E.parentNode.disabled===m:E.disabled===m:E.isDisabled===m||E.isDisabled!==!m&&Qu(E)===m:E.disabled===m:"label"in E?E.disabled===m:!1}}function gi(m){return bt(function(E){return E=+E,bt(function(k,L){for(var $,V=m([],k.length,E),q=V.length;q--;)k[$=V[q]]&&(k[$]=!(L[$]=k[$]))})})}function ys(m){return m&&typeof m.getElementsByTagName<"u"&&m}function Gt(m){var E,k=m?m.ownerDocument||m:W;return k==p||k.nodeType!==9||!k.documentElement||(p=k,y=p.documentElement,b=!l.isXMLDoc(p),P=y.matches||y.webkitMatchesSelector||y.msMatchesSelector,y.msMatchesSelector&&W!=p&&(E=p.defaultView)&&E.top!==E&&E.addEventListener("unload",Ju),S.getById=ji(function(L){return y.appendChild(L).id=l.expando,!p.getElementsByName||!p.getElementsByName(l.expando).length}),S.disconnectedMatch=ji(function(L){return P.call(L,"*")}),S.scope=ji(function(){return p.querySelectorAll(":scope")}),S.cssHas=ji(function(){try{return p.querySelector(":has(*,:jqfake)"),!1}catch{return!0}}),S.getById?(r.filter.ID=function(L){var $=L.replace($t,Mt);return function(V){return V.getAttribute("id")===$}},r.find.ID=function(L,$){if(typeof $.getElementById<"u"&&b){var V=$.getElementById(L);return V?[V]:[]}}):(r.filter.ID=function(L){var $=L.replace($t,Mt);return function(V){var q=typeof V.getAttributeNode<"u"&&V.getAttributeNode("id");return q&&q.value===$}},r.find.ID=function(L,$){if(typeof $.getElementById<"u"&&b){var V,q,Q,z=$.getElementById(L);if(z){if(V=z.getAttributeNode("id"),V&&V.value===L)return[z];for(Q=$.getElementsByName(L),q=0;z=Q[q++];)if(V=z.getAttributeNode("id"),V&&V.value===L)return[z]}return[]}}),r.find.TAG=function(L,$){return typeof $.getElementsByTagName<"u"?$.getElementsByTagName(L):$.querySelectorAll(L)},r.find.CLASS=function(L,$){if(typeof $.getElementsByClassName<"u"&&b)return $.getElementsByClassName(L)},w=[],ji(function(L){var $;y.appendChild(L).innerHTML="<a id='"+M+"' href='' disabled='disabled'></a><select id='"+M+"-\r\\' disabled='disabled'><option selected=''></option></select>",L.querySelectorAll("[selected]").length||w.push("\\["+se+"*(?:value|"+Tt+")"),L.querySelectorAll("[id~="+M+"-]").length||w.push("~="),L.querySelectorAll("a#"+M+"+*").length||w.push(".#.+[+~]"),L.querySelectorAll(":checked").length||w.push(":checked"),$=p.createElement("input"),$.setAttribute("type","hidden"),L.appendChild($).setAttribute("name","D"),y.appendChild(L).disabled=!0,L.querySelectorAll(":disabled").length!==2&&w.push(":enabled",":disabled"),$=p.createElement("input"),$.setAttribute("name",""),L.appendChild($),L.querySelectorAll("[name='']").length||w.push("\\["+se+"*name"+se+"*="+se+`*(?:''|"")`)}),S.cssHas||w.push(":has"),w=w.length&&new RegExp(w.join("|")),Le=function(L,$){if(L===$)return f=!0,0;var V=!L.compareDocumentPosition-!$.compareDocumentPosition;return V||(V=(L.ownerDocument||L)==($.ownerDocument||$)?L.compareDocumentPosition($):1,V&1||!S.sortDetached&&$.compareDocumentPosition(L)===V?L===p||L.ownerDocument==W&&ve.contains(W,L)?-1:$===p||$.ownerDocument==W&&ve.contains(W,$)?1:u?g.call(u,L)-g.call(u,$):0:V&4?-1:1)}),p}ve.matches=function(m,E){return ve(m,null,null,E)},ve.matchesSelector=function(m,E){if(Gt(m),b&&!He[E+" "]&&(!w||!w.test(E)))try{var k=P.call(m,E);if(k||S.disconnectedMatch||m.document&&m.document.nodeType!==11)return k}catch{He(E,!0)}return ve(E,p,null,[m]).length>0},ve.contains=function(m,E){return(m.ownerDocument||m)!=p&&Gt(m),l.contains(m,E)},ve.attr=function(m,E){(m.ownerDocument||m)!=p&&Gt(m);var k=r.attrHandle[E.toLowerCase()],L=k&&x.call(r.attrHandle,E.toLowerCase())?k(m,E,!b):void 0;return L!==void 0?L:m.getAttribute(E)},ve.error=function(m){throw new Error("Syntax error, unrecognized expression: "+m)},l.uniqueSort=function(m){var E,k=[],L=0,$=0;if(f=!S.sortStable,u=!S.sortStable&&o.call(m,0),me.call(m,Le),f){for(;E=m[$++];)E===m[$]&&(L=k.push($));for(;L--;)_e.call(m,k[L],1)}return u=null,m},l.fn.uniqueSort=function(){return this.pushStack(l.uniqueSort(o.apply(this)))},r=l.expr={cacheLength:50,createPseudo:bt,match:Ct,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(m){return m[1]=m[1].replace($t,Mt),m[3]=(m[3]||m[4]||m[5]||"").replace($t,Mt),m[2]==="~="&&(m[3]=" "+m[3]+" "),m.slice(0,4)},CHILD:function(m){return m[1]=m[1].toLowerCase(),m[1].slice(0,3)==="nth"?(m[3]||ve.error(m[0]),m[4]=+(m[4]?m[5]+(m[6]||1):2*(m[3]==="even"||m[3]==="odd")),m[5]=+(m[7]+m[8]||m[3]==="odd")):m[3]&&ve.error(m[0]),m},PSEUDO:function(m){var E,k=!m[6]&&m[2];return Ct.CHILD.test(m[0])?null:(m[3]?m[2]=m[4]||m[5]||"":k&&xt.test(k)&&(E=bn(k,!0))&&(E=k.indexOf(")",k.length-E)-k.length)&&(m[0]=m[0].slice(0,E),m[2]=k.slice(0,E)),m.slice(0,3))}},filter:{TAG:function(m){var E=m.replace($t,Mt).toLowerCase();return m==="*"?function(){return!0}:function(k){return G(k,E)}},CLASS:function(m){var E=ae[m+" "];return E||(E=new RegExp("(^|"+se+")"+m+"("+se+"|$)"))&&ae(m,function(k){return E.test(typeof k.className=="string"&&k.className||typeof k.getAttribute<"u"&&k.getAttribute("class")||"")})},ATTR:function(m,E,k){return function(L){var $=ve.attr(L,m);return $==null?E==="!=":E?($+="",E==="="?$===k:E==="!="?$!==k:E==="^="?k&&$.indexOf(k)===0:E==="*="?k&&$.indexOf(k)>-1:E==="$="?k&&$.slice(-k.length)===k:E==="~="?(" "+$.replace(ge," ")+" ").indexOf(k)>-1:E==="|="?$===k||$.slice(0,k.length+1)===k+"-":!1):!0}},CHILD:function(m,E,k,L,$){var V=m.slice(0,3)!=="nth",q=m.slice(-4)!=="last",Q=E==="of-type";return L===1&&$===0?function(z){return!!z.parentNode}:function(z,ce,ne){var le,fe,ie,be,Ze,Ue=V!==q?"nextSibling":"previousSibling",ct=z.parentNode,St=Q&&z.nodeName.toLowerCase(),Bi=!ne&&!Q,Ke=!1;if(ct){if(V){for(;Ue;){for(ie=z;ie=ie[Ue];)if(Q?G(ie,St):ie.nodeType===1)return!1;Ze=Ue=m==="only"&&!Ze&&"nextSibling"}return!0}if(Ze=[q?ct.firstChild:ct.lastChild],q&&Bi){for(fe=ct[M]||(ct[M]={}),le=fe[m]||[],be=le[0]===O&&le[1],Ke=be&&le[2],ie=be&&ct.childNodes[be];ie=++be&&ie&&ie[Ue]||(Ke=be=0)||Ze.pop();)if(ie.nodeType===1&&++Ke&&ie===z){fe[m]=[O,be,Ke];break}}else if(Bi&&(fe=z[M]||(z[M]={}),le=fe[m]||[],be=le[0]===O&&le[1],Ke=be),Ke===!1)for(;(ie=++be&&ie&&ie[Ue]||(Ke=be=0)||Ze.pop())&&!((Q?G(ie,St):ie.nodeType===1)&&++Ke&&(Bi&&(fe=ie[M]||(ie[M]={}),fe[m]=[O,Ke]),ie===z)););return Ke-=$,Ke===L||Ke%L===0&&Ke/L>=0}}},PSEUDO:function(m,E){var k,L=r.pseudos[m]||r.setFilters[m.toLowerCase()]||ve.error("unsupported pseudo: "+m);return L[M]?L(E):L.length>1?(k=[m,m,"",E],r.setFilters.hasOwnProperty(m.toLowerCase())?bt(function($,V){for(var q,Q=L($,E),z=Q.length;z--;)q=g.call($,Q[z]),$[q]=!(V[q]=Q[z])}):function($){return L($,0,k)}):L}},pseudos:{not:bt(function(m){var E=[],k=[],L=Ts(m.replace(ye,"$1"));return L[M]?bt(function($,V,q,Q){for(var z,ce=L($,null,Q,[]),ne=$.length;ne--;)(z=ce[ne])&&($[ne]=!(V[ne]=z))}):function($,V,q){return E[0]=$,L(E,null,q,k),E[0]=null,!k.pop()}}),has:bt(function(m){return function(E){return ve(m,E).length>0}}),contains:bt(function(m){return m=m.replace($t,Mt),function(E){return(E.textContent||l.text(E)).indexOf(m)>-1}}),lang:bt(function(m){return vn.test(m||"")||ve.error("unsupported lang: "+m),m=m.replace($t,Mt).toLowerCase(),function(E){var k;do if(k=b?E.lang:E.getAttribute("xml:lang")||E.getAttribute("lang"))return k=k.toLowerCase(),k===m||k.indexOf(m+"-")===0;while((E=E.parentNode)&&E.nodeType===1);return!1}}),target:function(m){var E=t.location&&t.location.hash;return E&&E.slice(1)===m.id},root:function(m){return m===y},focus:function(m){return m===Zu()&&p.hasFocus()&&!!(m.type||m.href||~m.tabIndex)},enabled:ua(!1),disabled:ua(!0),checked:function(m){return G(m,"input")&&!!m.checked||G(m,"option")&&!!m.selected},selected:function(m){return m.parentNode&&m.parentNode.selectedIndex,m.selected===!0},empty:function(m){for(m=m.firstChild;m;m=m.nextSibling)if(m.nodeType<6)return!1;return!0},parent:function(m){return!r.pseudos.empty(m)},header:function(m){return Yt.test(m.nodeName)},input:function(m){return Xt.test(m.nodeName)},button:function(m){return G(m,"input")&&m.type==="button"||G(m,"button")},text:function(m){var E;return G(m,"input")&&m.type==="text"&&((E=m.getAttribute("type"))==null||E.toLowerCase()==="text")},first:gi(function(){return[0]}),last:gi(function(m,E){return[E-1]}),eq:gi(function(m,E,k){return[k<0?k+E:k]}),even:gi(function(m,E){for(var k=0;k<E;k+=2)m.push(k);return m}),odd:gi(function(m,E){for(var k=1;k<E;k+=2)m.push(k);return m}),lt:gi(function(m,E,k){var L;for(k<0?L=k+E:k>E?L=E:L=k;--L>=0;)m.push(L);return m}),gt:gi(function(m,E,k){for(var L=k<0?k+E:k;++L<E;)m.push(L);return m})}},r.pseudos.nth=r.pseudos.eq;for(n in{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})r.pseudos[n]=ec(n);for(n in{submit:!0,reset:!0})r.pseudos[n]=tc(n);function ca(){}ca.prototype=r.filters=r.pseudos,r.setFilters=new ca;function bn(m,E){var k,L,$,V,q,Q,z,ce=pe[m+" "];if(ce)return E?0:ce.slice(0);for(q=m,Q=[],z=r.preFilter;q;){(!k||(L=xe.exec(q)))&&(L&&(q=q.slice(L[0].length)||q),Q.push($=[])),k=!1,(L=mn.exec(q))&&(k=L.shift(),$.push({value:k,type:L[0].replace(ye," ")}),q=q.slice(k.length));for(V in r.filter)(L=Ct[V].exec(q))&&(!z[V]||(L=z[V](L)))&&(k=L.shift(),$.push({value:k,type:V,matches:L}),q=q.slice(k.length));if(!k)break}return E?q.length:q?ve.error(m):pe(m,Q).slice(0)}function nr(m){for(var E=0,k=m.length,L="";E<k;E++)L+=m[E].value;return L}function rr(m,E,k){var L=E.dir,$=E.next,V=$||L,q=k&&V==="parentNode",Q=U++;return E.first?function(z,ce,ne){for(;z=z[L];)if(z.nodeType===1||q)return m(z,ce,ne);return!1}:function(z,ce,ne){var le,fe,ie=[O,Q];if(ne){for(;z=z[L];)if((z.nodeType===1||q)&&m(z,ce,ne))return!0}else for(;z=z[L];)if(z.nodeType===1||q)if(fe=z[M]||(z[M]={}),$&&G(z,$))z=z[L]||z;else{if((le=fe[V])&&le[0]===O&&le[1]===Q)return ie[2]=le[2];if(fe[V]=ie,ie[2]=m(z,ce,ne))return!0}return!1}}function _s(m){return m.length>1?function(E,k,L){for(var $=m.length;$--;)if(!m[$](E,k,L))return!1;return!0}:m[0]}function ic(m,E,k){for(var L=0,$=E.length;L<$;L++)ve(m,E[L],k);return k}function sr(m,E,k,L,$){for(var V,q=[],Q=0,z=m.length,ce=E!=null;Q<z;Q++)(V=m[Q])&&(!k||k(V,L,$))&&(q.push(V),ce&&E.push(Q));return q}function Es(m,E,k,L,$,V){return L&&!L[M]&&(L=Es(L)),$&&!$[M]&&($=Es($,V)),bt(function(q,Q,z,ce){var ne,le,fe,ie,be=[],Ze=[],Ue=Q.length,ct=q||ic(E||"*",z.nodeType?[z]:z,[]),St=m&&(q||!E)?sr(ct,be,m,z,ce):ct;if(k?(ie=$||(q?m:Ue||L)?[]:Q,k(St,ie,z,ce)):ie=St,L)for(ne=sr(ie,Ze),L(ne,[],z,ce),le=ne.length;le--;)(fe=ne[le])&&(ie[Ze[le]]=!(St[Ze[le]]=fe));if(q){if($||m){if($){for(ne=[],le=ie.length;le--;)(fe=ie[le])&&ne.push(St[le]=fe);$(null,ie=[],ne,ce)}for(le=ie.length;le--;)(fe=ie[le])&&(ne=$?g.call(q,fe):be[le])>-1&&(q[ne]=!(Q[ne]=fe))}}else ie=sr(ie===Q?ie.splice(Ue,ie.length):ie),$?$(null,Q,ie,ce):h.apply(Q,ie)})}function As(m){for(var E,k,L,$=m.length,V=r.relative[m[0].type],q=V||r.relative[" "],Q=V?1:0,z=rr(function(le){return le===E},q,!0),ce=rr(function(le){return g.call(E,le)>-1},q,!0),ne=[function(le,fe,ie){var be=!V&&(ie||fe!=a)||((E=fe).nodeType?z(le,fe,ie):ce(le,fe,ie));return E=null,be}];Q<$;Q++)if(k=r.relative[m[Q].type])ne=[rr(_s(ne),k)];else{if(k=r.filter[m[Q].type].apply(null,m[Q].matches),k[M]){for(L=++Q;L<$&&!r.relative[m[L].type];L++);return Es(Q>1&&_s(ne),Q>1&&nr(m.slice(0,Q-1).concat({value:m[Q-2].type===" "?"*":""})).replace(ye,"$1"),k,Q<L&&As(m.slice(Q,L)),L<$&&As(m=m.slice(L)),L<$&&nr(m))}ne.push(k)}return _s(ne)}function nc(m,E){var k=E.length>0,L=m.length>0,$=function(V,q,Q,z,ce){var ne,le,fe,ie=0,be="0",Ze=V&&[],Ue=[],ct=a,St=V||L&&r.find.TAG("*",ce),Bi=O+=ct==null?1:Math.random()||.1,Ke=St.length;for(ce&&(a=q==p||q||ce);be!==Ke&&(ne=St[be])!=null;be++){if(L&&ne){for(le=0,!q&&ne.ownerDocument!=p&&(Gt(ne),Q=!b);fe=m[le++];)if(fe(ne,q||p,Q)){h.call(z,ne);break}ce&&(O=Bi)}k&&((ne=!fe&&ne)&&ie--,V&&Ze.push(ne))}if(ie+=be,k&&be!==ie){for(le=0;fe=E[le++];)fe(Ze,Ue,q,Q);if(V){if(ie>0)for(;be--;)Ze[be]||Ue[be]||(Ue[be]=re.call(z));Ue=sr(Ue)}h.apply(z,Ue),ce&&!V&&Ue.length>0&&ie+E.length>1&&l.uniqueSort(z)}return ce&&(O=Bi,a=ct),Ze};return k?bt($):$}function Ts(m,E){var k,L=[],$=[],V=ue[m+" "];if(!V){for(E||(E=bn(m)),k=E.length;k--;)V=As(E[k]),V[M]?L.push(V):$.push(V);V=ue(m,nc($,L)),V.selector=m}return V}function fa(m,E,k,L){var $,V,q,Q,z,ce=typeof m=="function"&&m,ne=!L&&bn(m=ce.selector||m);if(k=k||[],ne.length===1){if(V=ne[0]=ne[0].slice(0),V.length>2&&(q=V[0]).type==="ID"&&E.nodeType===9&&b&&r.relative[V[1].type]){if(E=(r.find.ID(q.matches[0].replace($t,Mt),E)||[])[0],E)ce&&(E=E.parentNode);else return k;m=m.slice(V.shift().value.length)}for($=Ct.needsContext.test(m)?0:V.length;$--&&(q=V[$],!r.relative[Q=q.type]);)if((z=r.find[Q])&&(L=z(q.matches[0].replace($t,Mt),bs.test(V[0].type)&&ys(E.parentNode)||E))){if(V.splice($,1),m=L.length&&nr(V),!m)return h.apply(k,L),k;break}}return(ce||Ts(m,ne))(L,E,!b,k,!E||bs.test(m)&&ys(E.parentNode)||E),k}S.sortStable=M.split("").sort(Le).join("")===M,Gt(),S.sortDetached=ji(function(m){return m.compareDocumentPosition(p.createElement("fieldset"))&1}),l.find=ve,l.expr[":"]=l.expr.pseudos,l.unique=l.uniqueSort,ve.compile=Ts,ve.select=fa,ve.setDocument=Gt,ve.tokenize=bn,ve.escape=l.escapeSelector,ve.getText=l.text,ve.isXML=l.isXMLDoc,ve.selectors=l.expr,ve.support=l.support,ve.uniqueSort=l.uniqueSort})();var oe=function(n,r,a){for(var u=[],f=a!==void 0;(n=n[r])&&n.nodeType!==9;)if(n.nodeType===1){if(f&&l(n).is(a))break;u.push(n)}return u},de=function(n,r){for(var a=[];n;n=n.nextSibling)n.nodeType===1&&n!==r&&a.push(n);return a},Pe=l.expr.match.needsContext,we=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function Oe(n,r,a){return N(r)?l.grep(n,function(u,f){return!!r.call(u,f,u)!==a}):r.nodeType?l.grep(n,function(u){return u===r!==a}):typeof r!="string"?l.grep(n,function(u){return g.call(r,u)>-1!==a}):l.filter(r,n,a)}l.filter=function(n,r,a){var u=r[0];return a&&(n=":not("+n+")"),r.length===1&&u.nodeType===1?l.find.matchesSelector(u,n)?[u]:[]:l.find.matches(n,l.grep(r,function(f){return f.nodeType===1}))},l.fn.extend({find:function(n){var r,a,u=this.length,f=this;if(typeof n!="string")return this.pushStack(l(n).filter(function(){for(r=0;r<u;r++)if(l.contains(f[r],this))return!0}));for(a=this.pushStack([]),r=0;r<u;r++)l.find(n,f[r],a);return u>1?l.uniqueSort(a):a},filter:function(n){return this.pushStack(Oe(this,n||[],!1))},not:function(n){return this.pushStack(Oe(this,n||[],!0))},is:function(n){return!!Oe(this,typeof n=="string"&&Pe.test(n)?l(n):n||[],!1).length}});var Se,Ie=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/,Ae=l.fn.init=function(n,r,a){var u,f;if(!n)return this;if(a=a||Se,typeof n=="string")if(n[0]==="<"&&n[n.length-1]===">"&&n.length>=3?u=[null,n,null]:u=Ie.exec(n),u&&(u[1]||!r))if(u[1]){if(r=r instanceof l?r[0]:r,l.merge(this,l.parseHTML(u[1],r&&r.nodeType?r.ownerDocument||r:_,!0)),we.test(u[1])&&l.isPlainObject(r))for(u in r)N(this[u])?this[u](r[u]):this.attr(u,r[u]);return this}else return f=_.getElementById(u[2]),f&&(this[0]=f,this.length=1),this;else return!r||r.jquery?(r||a).find(n):this.constructor(r).find(n);else{if(n.nodeType)return this[0]=n,this.length=1,this;if(N(n))return a.ready!==void 0?a.ready(n):n(l)}return l.makeArray(n,this)};Ae.prototype=l.fn,Se=l(_);var Ge=/^(?:parents|prev(?:Until|All))/,it={children:!0,contents:!0,next:!0,prev:!0};l.fn.extend({has:function(n){var r=l(n,this),a=r.length;return this.filter(function(){for(var u=0;u<a;u++)if(l.contains(this,r[u]))return!0})},closest:function(n,r){var a,u=0,f=this.length,h=[],p=typeof n!="string"&&l(n);if(!Pe.test(n)){for(;u<f;u++)for(a=this[u];a&&a!==r;a=a.parentNode)if(a.nodeType<11&&(p?p.index(a)>-1:a.nodeType===1&&l.find.matchesSelector(a,n))){h.push(a);break}}return this.pushStack(h.length>1?l.uniqueSort(h):h)},index:function(n){return n?typeof n=="string"?g.call(l(n),this[0]):g.call(this,n.jquery?n[0]:n):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(n,r){return this.pushStack(l.uniqueSort(l.merge(this.get(),l(n,r))))},addBack:function(n){return this.add(n==null?this.prevObject:this.prevObject.filter(n))}});function qe(n,r){for(;(n=n[r])&&n.nodeType!==1;);return n}l.each({parent:function(n){var r=n.parentNode;return r&&r.nodeType!==11?r:null},parents:function(n){return oe(n,"parentNode")},parentsUntil:function(n,r,a){return oe(n,"parentNode",a)},next:function(n){return qe(n,"nextSibling")},prev:function(n){return qe(n,"previousSibling")},nextAll:function(n){return oe(n,"nextSibling")},prevAll:function(n){return oe(n,"previousSibling")},nextUntil:function(n,r,a){return oe(n,"nextSibling",a)},prevUntil:function(n,r,a){return oe(n,"previousSibling",a)},siblings:function(n){return de((n.parentNode||{}).firstChild,n)},children:function(n){return de(n.firstChild)},contents:function(n){return n.contentDocument!=null&&s(n.contentDocument)?n.contentDocument:(G(n,"template")&&(n=n.content||n),l.merge([],n.childNodes))}},function(n,r){l.fn[n]=function(a,u){var f=l.map(this,r,a);return n.slice(-5)!=="Until"&&(u=a),u&&typeof u=="string"&&(f=l.filter(u,f)),this.length>1&&(it[n]||l.uniqueSort(f),Ge.test(n)&&f.reverse()),this.pushStack(f)}});var Be=/[^\x20\t\r\n\f]+/g;function ui(n){var r={};return l.each(n.match(Be)||[],function(a,u){r[u]=!0}),r}l.Callbacks=function(n){n=typeof n=="string"?ui(n):l.extend({},n);var r,a,u,f,h=[],p=[],y=-1,b=function(){for(f=f||n.once,u=r=!0;p.length;y=-1)for(a=p.shift();++y<h.length;)h[y].apply(a[0],a[1])===!1&&n.stopOnFalse&&(y=h.length,a=!1);n.memory||(a=!1),r=!1,f&&(a?h=[]:h="")},w={add:function(){return h&&(a&&!r&&(y=h.length-1,p.push(a)),function P(M){l.each(M,function(O,U){N(U)?(!n.unique||!w.has(U))&&h.push(U):U&&U.length&&T(U)!=="string"&&P(U)})}(arguments),a&&!r&&b()),this},remove:function(){return l.each(arguments,function(P,M){for(var O;(O=l.inArray(M,h,O))>-1;)h.splice(O,1),O<=y&&y--}),this},has:function(P){return P?l.inArray(P,h)>-1:h.length>0},empty:function(){return h&&(h=[]),this},disable:function(){return f=p=[],h=a="",this},disabled:function(){return!h},lock:function(){return f=p=[],!a&&!r&&(h=a=""),this},locked:function(){return!!f},fireWith:function(P,M){return f||(M=M||[],M=[P,M.slice?M.slice():M],p.push(M),r||b()),this},fire:function(){return w.fireWith(this,arguments),this},fired:function(){return!!u}};return w};function At(n){return n}function Pi(n){throw n}function ln(n,r,a,u){var f;try{n&&N(f=n.promise)?f.call(n).done(r).fail(a):n&&N(f=n.then)?f.call(n,r,a):r.apply(void 0,[n].slice(u))}catch(h){a.apply(void 0,[h])}}l.extend({Deferred:function(n){var r=[["notify","progress",l.Callbacks("memory"),l.Callbacks("memory"),2],["resolve","done",l.Callbacks("once memory"),l.Callbacks("once memory"),0,"resolved"],["reject","fail",l.Callbacks("once memory"),l.Callbacks("once memory"),1,"rejected"]],a="pending",u={state:function(){return a},always:function(){return f.done(arguments).fail(arguments),this},catch:function(h){return u.then(null,h)},pipe:function(){var h=arguments;return l.Deferred(function(p){l.each(r,function(y,b){var w=N(h[b[4]])&&h[b[4]];f[b[1]](function(){var P=w&&w.apply(this,arguments);P&&N(P.promise)?P.promise().progress(p.notify).done(p.resolve).fail(p.reject):p[b[0]+"With"](this,w?[P]:arguments)})}),h=null}).promise()},then:function(h,p,y){var b=0;function w(P,M,O,U){return function(){var ae=this,pe=arguments,ue=function(){var Le,Tt;if(!(P<b)){if(Le=O.apply(ae,pe),Le===M.promise())throw new TypeError("Thenable self-resolution");Tt=Le&&(typeof Le=="object"||typeof Le=="function")&&Le.then,N(Tt)?U?Tt.call(Le,w(b,M,At,U),w(b,M,Pi,U)):(b++,Tt.call(Le,w(b,M,At,U),w(b,M,Pi,U),w(b,M,At,M.notifyWith))):(O!==At&&(ae=void 0,pe=[Le]),(U||M.resolveWith)(ae,pe))}},He=U?ue:function(){try{ue()}catch(Le){l.Deferred.exceptionHook&&l.Deferred.exceptionHook(Le,He.error),P+1>=b&&(O!==Pi&&(ae=void 0,pe=[Le]),M.rejectWith(ae,pe))}};P?He():(l.Deferred.getErrorHook?He.error=l.Deferred.getErrorHook():l.Deferred.getStackHook&&(He.error=l.Deferred.getStackHook()),t.setTimeout(He))}}return l.Deferred(function(P){r[0][3].add(w(0,P,N(y)?y:At,P.notifyWith)),r[1][3].add(w(0,P,N(h)?h:At)),r[2][3].add(w(0,P,N(p)?p:Pi))}).promise()},promise:function(h){return h!=null?l.extend(h,u):u}},f={};return l.each(r,function(h,p){var y=p[2],b=p[5];u[p[1]]=y.add,b&&y.add(function(){a=b},r[3-h][2].disable,r[3-h][3].disable,r[0][2].lock,r[0][3].lock),y.add(p[3].fire),f[p[0]]=function(){return f[p[0]+"With"](this===f?void 0:this,arguments),this},f[p[0]+"With"]=y.fireWith}),u.promise(f),n&&n.call(f,f),f},when:function(n){var r=arguments.length,a=r,u=Array(a),f=o.call(arguments),h=l.Deferred(),p=function(y){return function(b){u[y]=this,f[y]=arguments.length>1?o.call(arguments):b,--r||h.resolveWith(u,f)}};if(r<=1&&(ln(n,h.done(p(a)).resolve,h.reject,!r),h.state()==="pending"||N(f[a]&&f[a].then)))return h.then();for(;a--;)ln(f[a],p(a),h.reject);return h.promise()}});var es=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;l.Deferred.exceptionHook=function(n,r){t.console&&t.console.warn&&n&&es.test(n.name)&&t.console.warn("jQuery.Deferred exception: "+n.message,n.stack,r)},l.readyException=function(n){t.setTimeout(function(){throw n})};var un=l.Deferred();l.fn.ready=function(n){return un.then(n).catch(function(r){l.readyException(r)}),this},l.extend({isReady:!1,readyWait:1,ready:function(n){(n===!0?--l.readyWait:l.isReady)||(l.isReady=!0,!(n!==!0&&--l.readyWait>0)&&un.resolveWith(_,[l]))}}),l.ready.then=un.then;function ci(){_.removeEventListener("DOMContentLoaded",ci),t.removeEventListener("load",ci),l.ready()}_.readyState==="complete"||_.readyState!=="loading"&&!_.documentElement.doScroll?t.setTimeout(l.ready):(_.addEventListener("DOMContentLoaded",ci),t.addEventListener("load",ci));var at=function(n,r,a,u,f,h,p){var y=0,b=n.length,w=a==null;if(T(a)==="object"){f=!0;for(y in a)at(n,r,y,a[y],!0,h,p)}else if(u!==void 0&&(f=!0,N(u)||(p=!0),w&&(p?(r.call(n,u),r=null):(w=r,r=function(P,M,O){return w.call(l(P),O)})),r))for(;y<b;y++)r(n[y],a,p?u:u.call(n[y],y,r(n[y],a)));return f?n:w?r.call(n):b?r(n[0],a):h},ts=/^-ms-/,is=/-([a-z])/g;function It(n,r){return r.toUpperCase()}function ze(n){return n.replace(ts,"ms-").replace(is,It)}var zt=function(n){return n.nodeType===1||n.nodeType===9||!+n.nodeType};function Kt(){this.expando=l.expando+Kt.uid++}Kt.uid=1,Kt.prototype={cache:function(n){var r=n[this.expando];return r||(r={},zt(n)&&(n.nodeType?n[this.expando]=r:Object.defineProperty(n,this.expando,{value:r,configurable:!0}))),r},set:function(n,r,a){var u,f=this.cache(n);if(typeof r=="string")f[ze(r)]=a;else for(u in r)f[ze(u)]=r[u];return f},get:function(n,r){return r===void 0?this.cache(n):n[this.expando]&&n[this.expando][ze(r)]},access:function(n,r,a){return r===void 0||r&&typeof r=="string"&&a===void 0?this.get(n,r):(this.set(n,r,a),a!==void 0?a:r)},remove:function(n,r){var a,u=n[this.expando];if(u!==void 0){if(r!==void 0)for(Array.isArray(r)?r=r.map(ze):(r=ze(r),r=r in u?[r]:r.match(Be)||[]),a=r.length;a--;)delete u[r[a]];(r===void 0||l.isEmptyObject(u))&&(n.nodeType?n[this.expando]=void 0:delete n[this.expando])}},hasData:function(n){var r=n[this.expando];return r!==void 0&&!l.isEmptyObject(r)}};var J=new Kt,Me=new Kt,Xn=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Yn=/[A-Z]/g;function Gn(n){return n==="true"?!0:n==="false"?!1:n==="null"?null:n===+n+""?+n:Xn.test(n)?JSON.parse(n):n}function No(n,r,a){var u;if(a===void 0&&n.nodeType===1)if(u="data-"+r.replace(Yn,"-$&").toLowerCase(),a=n.getAttribute(u),typeof a=="string"){try{a=Gn(a)}catch{}Me.set(n,r,a)}else a=void 0;return a}l.extend({hasData:function(n){return Me.hasData(n)||J.hasData(n)},data:function(n,r,a){return Me.access(n,r,a)},removeData:function(n,r){Me.remove(n,r)},_data:function(n,r,a){return J.access(n,r,a)},_removeData:function(n,r){J.remove(n,r)}}),l.fn.extend({data:function(n,r){var a,u,f,h=this[0],p=h&&h.attributes;if(n===void 0){if(this.length&&(f=Me.get(h),h.nodeType===1&&!J.get(h,"hasDataAttrs"))){for(a=p.length;a--;)p[a]&&(u=p[a].name,u.indexOf("data-")===0&&(u=ze(u.slice(5)),No(h,u,f[u])));J.set(h,"hasDataAttrs",!0)}return f}return typeof n=="object"?this.each(function(){Me.set(this,n)}):at(this,function(y){var b;if(h&&y===void 0)return b=Me.get(h,n),b!==void 0||(b=No(h,n),b!==void 0)?b:void 0;this.each(function(){Me.set(this,n,y)})},null,r,arguments.length>1,null,!0)},removeData:function(n){return this.each(function(){Me.remove(this,n)})}}),l.extend({queue:function(n,r,a){var u;if(n)return r=(r||"fx")+"queue",u=J.get(n,r),a&&(!u||Array.isArray(a)?u=J.access(n,r,l.makeArray(a)):u.push(a)),u||[]},dequeue:function(n,r){r=r||"fx";var a=l.queue(n,r),u=a.length,f=a.shift(),h=l._queueHooks(n,r),p=function(){l.dequeue(n,r)};f==="inprogress"&&(f=a.shift(),u--),f&&(r==="fx"&&a.unshift("inprogress"),delete h.stop,f.call(n,p,h)),!u&&h&&h.empty.fire()},_queueHooks:function(n,r){var a=r+"queueHooks";return J.get(n,a)||J.access(n,a,{empty:l.Callbacks("once memory").add(function(){J.remove(n,[r+"queue",a])})})}}),l.fn.extend({queue:function(n,r){var a=2;return typeof n!="string"&&(r=n,n="fx",a--),arguments.length<a?l.queue(this[0],n):r===void 0?this:this.each(function(){var u=l.queue(this,n,r);l._queueHooks(this,n),n==="fx"&&u[0]!=="inprogress"&&l.dequeue(this,n)})},dequeue:function(n){return this.each(function(){l.dequeue(this,n)})},clearQueue:function(n){return this.queue(n||"fx",[])},promise:function(n,r){var a,u=1,f=l.Deferred(),h=this,p=this.length,y=function(){--u||f.resolveWith(h,[h])};for(typeof n!="string"&&(r=n,n=void 0),n=n||"fx";p--;)a=J.get(h[p],n+"queueHooks"),a&&a.empty&&(u++,a.empty.add(y));return y(),f.promise(r)}});var Po=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,cn=new RegExp("^(?:([+-])=|)("+Po+")([a-z%]*)$","i"),Rt=["Top","Right","Bottom","Left"],fi=_.documentElement,Ii=function(n){return l.contains(n.ownerDocument,n)},gu={composed:!0};fi.getRootNode&&(Ii=function(n){return l.contains(n.ownerDocument,n)||n.getRootNode(gu)===n.ownerDocument});var Jn=function(n,r){return n=r||n,n.style.display==="none"||n.style.display===""&&Ii(n)&&l.css(n,"display")==="none"};function Io(n,r,a,u){var f,h,p=20,y=u?function(){return u.cur()}:function(){return l.css(n,r,"")},b=y(),w=a&&a[3]||(l.cssNumber[r]?"":"px"),P=n.nodeType&&(l.cssNumber[r]||w!=="px"&&+b)&&cn.exec(l.css(n,r));if(P&&P[3]!==w){for(b=b/2,w=w||P[3],P=+b||1;p--;)l.style(n,r,P+w),(1-h)*(1-(h=y()/b||.5))<=0&&(p=0),P=P/h;P=P*2,l.style(n,r,P+w),a=a||[]}return a&&(P=+P||+b||0,f=a[1]?P+(a[1]+1)*a[2]:+a[2],u&&(u.unit=w,u.start=P,u.end=f)),f}var Ro={};function mu(n){var r,a=n.ownerDocument,u=n.nodeName,f=Ro[u];return f||(r=a.body.appendChild(a.createElement(u)),f=l.css(r,"display"),r.parentNode.removeChild(r),f==="none"&&(f="block"),Ro[u]=f,f)}function Ri(n,r){for(var a,u,f=[],h=0,p=n.length;h<p;h++)u=n[h],u.style&&(a=u.style.display,r?(a==="none"&&(f[h]=J.get(u,"display")||null,f[h]||(u.style.display="")),u.style.display===""&&Jn(u)&&(f[h]=mu(u))):a!=="none"&&(f[h]="none",J.set(u,"display",a)));for(h=0;h<p;h++)f[h]!=null&&(n[h].style.display=f[h]);return n}l.fn.extend({show:function(){return Ri(this,!0)},hide:function(){return Ri(this)},toggle:function(n){return typeof n=="boolean"?n?this.show():this.hide():this.each(function(){Jn(this)?l(this).show():l(this).hide()})}});var fn=/^(?:checkbox|radio)$/i,$o=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Mo=/^$|^module$|\/(?:java|ecma)script/i;(function(){var n=_.createDocumentFragment(),r=n.appendChild(_.createElement("div")),a=_.createElement("input");a.setAttribute("type","radio"),a.setAttribute("checked","checked"),a.setAttribute("name","t"),r.appendChild(a),S.checkClone=r.cloneNode(!0).cloneNode(!0).lastChild.checked,r.innerHTML="<textarea>x</textarea>",S.noCloneChecked=!!r.cloneNode(!0).lastChild.defaultValue,r.innerHTML="<option></option>",S.option=!!r.lastChild})();var lt={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,"",""]};lt.tbody=lt.tfoot=lt.colgroup=lt.caption=lt.thead,lt.th=lt.td,S.option||(lt.optgroup=lt.option=[1,"<select multiple='multiple'>","</select>"]);function Je(n,r){var a;return typeof n.getElementsByTagName<"u"?a=n.getElementsByTagName(r||"*"):typeof n.querySelectorAll<"u"?a=n.querySelectorAll(r||"*"):a=[],r===void 0||r&&G(n,r)?l.merge([n],a):a}function ns(n,r){for(var a=0,u=n.length;a<u;a++)J.set(n[a],"globalEval",!r||J.get(r[a],"globalEval"))}var vu=/<|&#?\w+;/;function Ho(n,r,a,u,f){for(var h,p,y,b,w,P,M=r.createDocumentFragment(),O=[],U=0,ae=n.length;U<ae;U++)if(h=n[U],h||h===0)if(T(h)==="object")l.merge(O,h.nodeType?[h]:h);else if(!vu.test(h))O.push(r.createTextNode(h));else{for(p=p||M.appendChild(r.createElement("div")),y=($o.exec(h)||["",""])[1].toLowerCase(),b=lt[y]||lt._default,p.innerHTML=b[1]+l.htmlPrefilter(h)+b[2],P=b[0];P--;)p=p.lastChild;l.merge(O,p.childNodes),p=M.firstChild,p.textContent=""}for(M.textContent="",U=0;h=O[U++];){if(u&&l.inArray(h,u)>-1){f&&f.push(h);continue}if(w=Ii(h),p=Je(M.appendChild(h),"script"),w&&ns(p),a)for(P=0;h=p[P++];)Mo.test(h.type||"")&&a.push(h)}return M}var Fo=/^([^.]*)(?:\.(.+)|)/;function $i(){return!0}function Mi(){return!1}function rs(n,r,a,u,f,h){var p,y;if(typeof r=="object"){typeof a!="string"&&(u=u||a,a=void 0);for(y in r)rs(n,y,a,u,r[y],h);return n}if(u==null&&f==null?(f=a,u=a=void 0):f==null&&(typeof a=="string"?(f=u,u=void 0):(f=u,u=a,a=void 0)),f===!1)f=Mi;else if(!f)return n;return h===1&&(p=f,f=function(b){return l().off(b),p.apply(this,arguments)},f.guid=p.guid||(p.guid=l.guid++)),n.each(function(){l.event.add(this,r,f,u,a)})}l.event={global:{},add:function(n,r,a,u,f){var h,p,y,b,w,P,M,O,U,ae,pe,ue=J.get(n);if(zt(n))for(a.handler&&(h=a,a=h.handler,f=h.selector),f&&l.find.matchesSelector(fi,f),a.guid||(a.guid=l.guid++),(b=ue.events)||(b=ue.events=Object.create(null)),(p=ue.handle)||(p=ue.handle=function(He){return typeof l<"u"&&l.event.triggered!==He.type?l.event.dispatch.apply(n,arguments):void 0}),r=(r||"").match(Be)||[""],w=r.length;w--;)y=Fo.exec(r[w])||[],U=pe=y[1],ae=(y[2]||"").split(".").sort(),U&&(M=l.event.special[U]||{},U=(f?M.delegateType:M.bindType)||U,M=l.event.special[U]||{},P=l.extend({type:U,origType:pe,data:u,handler:a,guid:a.guid,selector:f,needsContext:f&&l.expr.match.needsContext.test(f),namespace:ae.join(".")},h),(O=b[U])||(O=b[U]=[],O.delegateCount=0,(!M.setup||M.setup.call(n,u,ae,p)===!1)&&n.addEventListener&&n.addEventListener(U,p)),M.add&&(M.add.call(n,P),P.handler.guid||(P.handler.guid=a.guid)),f?O.splice(O.delegateCount++,0,P):O.push(P),l.event.global[U]=!0)},remove:function(n,r,a,u,f){var h,p,y,b,w,P,M,O,U,ae,pe,ue=J.hasData(n)&&J.get(n);if(!(!ue||!(b=ue.events))){for(r=(r||"").match(Be)||[""],w=r.length;w--;){if(y=Fo.exec(r[w])||[],U=pe=y[1],ae=(y[2]||"").split(".").sort(),!U){for(U in b)l.event.remove(n,U+r[w],a,u,!0);continue}for(M=l.event.special[U]||{},U=(u?M.delegateType:M.bindType)||U,O=b[U]||[],y=y[2]&&new RegExp("(^|\\.)"+ae.join("\\.(?:.*\\.|)")+"(\\.|$)"),p=h=O.length;h--;)P=O[h],(f||pe===P.origType)&&(!a||a.guid===P.guid)&&(!y||y.test(P.namespace))&&(!u||u===P.selector||u==="**"&&P.selector)&&(O.splice(h,1),P.selector&&O.delegateCount--,M.remove&&M.remove.call(n,P));p&&!O.length&&((!M.teardown||M.teardown.call(n,ae,ue.handle)===!1)&&l.removeEvent(n,U,ue.handle),delete b[U])}l.isEmptyObject(b)&&J.remove(n,"handle events")}},dispatch:function(n){var r,a,u,f,h,p,y=new Array(arguments.length),b=l.event.fix(n),w=(J.get(this,"events")||Object.create(null))[b.type]||[],P=l.event.special[b.type]||{};for(y[0]=b,r=1;r<arguments.length;r++)y[r]=arguments[r];if(b.delegateTarget=this,!(P.preDispatch&&P.preDispatch.call(this,b)===!1)){for(p=l.event.handlers.call(this,b,w),r=0;(f=p[r++])&&!b.isPropagationStopped();)for(b.currentTarget=f.elem,a=0;(h=f.handlers[a++])&&!b.isImmediatePropagationStopped();)(!b.rnamespace||h.namespace===!1||b.rnamespace.test(h.namespace))&&(b.handleObj=h,b.data=h.data,u=((l.event.special[h.origType]||{}).handle||h.handler).apply(f.elem,y),u!==void 0&&(b.result=u)===!1&&(b.preventDefault(),b.stopPropagation()));return P.postDispatch&&P.postDispatch.call(this,b),b.result}},handlers:function(n,r){var a,u,f,h,p,y=[],b=r.delegateCount,w=n.target;if(b&&w.nodeType&&!(n.type==="click"&&n.button>=1)){for(;w!==this;w=w.parentNode||this)if(w.nodeType===1&&!(n.type==="click"&&w.disabled===!0)){for(h=[],p={},a=0;a<b;a++)u=r[a],f=u.selector+" ",p[f]===void 0&&(p[f]=u.needsContext?l(f,this).index(w)>-1:l.find(f,this,null,[w]).length),p[f]&&h.push(u);h.length&&y.push({elem:w,handlers:h})}}return w=this,b<r.length&&y.push({elem:w,handlers:r.slice(b)}),y},addProp:function(n,r){Object.defineProperty(l.Event.prototype,n,{enumerable:!0,configurable:!0,get:N(r)?function(){if(this.originalEvent)return r(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[n]},set:function(a){Object.defineProperty(this,n,{enumerable:!0,configurable:!0,writable:!0,value:a})}})},fix:function(n){return n[l.expando]?n:new l.Event(n)},special:{load:{noBubble:!0},click:{setup:function(n){var r=this||n;return fn.test(r.type)&&r.click&&G(r,"input")&&Qn(r,"click",!0),!1},trigger:function(n){var r=this||n;return fn.test(r.type)&&r.click&&G(r,"input")&&Qn(r,"click"),!0},_default:function(n){var r=n.target;return fn.test(r.type)&&r.click&&G(r,"input")&&J.get(r,"click")||G(r,"a")}},beforeunload:{postDispatch:function(n){n.result!==void 0&&n.originalEvent&&(n.originalEvent.returnValue=n.result)}}}};function Qn(n,r,a){if(!a){J.get(n,r)===void 0&&l.event.add(n,r,$i);return}J.set(n,r,!1),l.event.add(n,r,{namespace:!1,handler:function(u){var f,h=J.get(this,r);if(u.isTrigger&1&&this[r]){if(h)(l.event.special[r]||{}).delegateType&&u.stopPropagation();else if(h=o.call(arguments),J.set(this,r,h),this[r](),f=J.get(this,r),J.set(this,r,!1),h!==f)return u.stopImmediatePropagation(),u.preventDefault(),f}else h&&(J.set(this,r,l.event.trigger(h[0],h.slice(1),this)),u.stopPropagation(),u.isImmediatePropagationStopped=$i)}})}l.removeEvent=function(n,r,a){n.removeEventListener&&n.removeEventListener(r,a)},l.Event=function(n,r){if(!(this instanceof l.Event))return new l.Event(n,r);n&&n.type?(this.originalEvent=n,this.type=n.type,this.isDefaultPrevented=n.defaultPrevented||n.defaultPrevented===void 0&&n.returnValue===!1?$i:Mi,this.target=n.target&&n.target.nodeType===3?n.target.parentNode:n.target,this.currentTarget=n.currentTarget,this.relatedTarget=n.relatedTarget):this.type=n,r&&l.extend(this,r),this.timeStamp=n&&n.timeStamp||Date.now(),this[l.expando]=!0},l.Event.prototype={constructor:l.Event,isDefaultPrevented:Mi,isPropagationStopped:Mi,isImmediatePropagationStopped:Mi,isSimulated:!1,preventDefault:function(){var n=this.originalEvent;this.isDefaultPrevented=$i,n&&!this.isSimulated&&n.preventDefault()},stopPropagation:function(){var n=this.originalEvent;this.isPropagationStopped=$i,n&&!this.isSimulated&&n.stopPropagation()},stopImmediatePropagation:function(){var n=this.originalEvent;this.isImmediatePropagationStopped=$i,n&&!this.isSimulated&&n.stopImmediatePropagation(),this.stopPropagation()}},l.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},l.event.addProp),l.each({focus:"focusin",blur:"focusout"},function(n,r){function a(u){if(_.documentMode){var f=J.get(this,"handle"),h=l.event.fix(u);h.type=u.type==="focusin"?"focus":"blur",h.isSimulated=!0,f(u),h.target===h.currentTarget&&f(h)}else l.event.simulate(r,u.target,l.event.fix(u))}l.event.special[n]={setup:function(){var u;if(Qn(this,n,!0),_.documentMode)u=J.get(this,r),u||this.addEventListener(r,a),J.set(this,r,(u||0)+1);else return!1},trigger:function(){return Qn(this,n),!0},teardown:function(){var u;if(_.documentMode)u=J.get(this,r)-1,u?J.set(this,r,u):(this.removeEventListener(r,a),J.remove(this,r));else return!1},_default:function(u){return J.get(u.target,n)},delegateType:r},l.event.special[r]={setup:function(){var u=this.ownerDocument||this.document||this,f=_.documentMode?this:u,h=J.get(f,r);h||(_.documentMode?this.addEventListener(r,a):u.addEventListener(n,a,!0)),J.set(f,r,(h||0)+1)},teardown:function(){var u=this.ownerDocument||this.document||this,f=_.documentMode?this:u,h=J.get(f,r)-1;h?J.set(f,r,h):(_.documentMode?this.removeEventListener(r,a):u.removeEventListener(n,a,!0),J.remove(f,r))}}}),l.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},function(n,r){l.event.special[n]={delegateType:r,bindType:r,handle:function(a){var u,f=this,h=a.relatedTarget,p=a.handleObj;return(!h||h!==f&&!l.contains(f,h))&&(a.type=p.origType,u=p.handler.apply(this,arguments),a.type=r),u}}}),l.fn.extend({on:function(n,r,a,u){return rs(this,n,r,a,u)},one:function(n,r,a,u){return rs(this,n,r,a,u,1)},off:function(n,r,a){var u,f;if(n&&n.preventDefault&&n.handleObj)return u=n.handleObj,l(n.delegateTarget).off(u.namespace?u.origType+"."+u.namespace:u.origType,u.selector,u.handler),this;if(typeof n=="object"){for(f in n)this.off(f,r,n[f]);return this}return(r===!1||typeof r=="function")&&(a=r,r=void 0),a===!1&&(a=Mi),this.each(function(){l.event.remove(this,n,a,r)})}});var bu=/<script|<style|<link/i,yu=/checked\s*(?:[^=]|=\s*.checked.)/i,_u=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function jo(n,r){return G(n,"table")&&G(r.nodeType!==11?r:r.firstChild,"tr")&&l(n).children("tbody")[0]||n}function Eu(n){return n.type=(n.getAttribute("type")!==null)+"/"+n.type,n}function Au(n){return(n.type||"").slice(0,5)==="true/"?n.type=n.type.slice(5):n.removeAttribute("type"),n}function Bo(n,r){var a,u,f,h,p,y,b;if(r.nodeType===1){if(J.hasData(n)&&(h=J.get(n),b=h.events,b)){J.remove(r,"handle events");for(f in b)for(a=0,u=b[f].length;a<u;a++)l.event.add(r,f,b[f][a])}Me.hasData(n)&&(p=Me.access(n),y=l.extend({},p),Me.set(r,y))}}function Tu(n,r){var a=r.nodeName.toLowerCase();a==="input"&&fn.test(n.type)?r.checked=n.checked:(a==="input"||a==="textarea")&&(r.defaultValue=n.defaultValue)}function Hi(n,r,a,u){r=c(r);var f,h,p,y,b,w,P=0,M=n.length,O=M-1,U=r[0],ae=N(U);if(ae||M>1&&typeof U=="string"&&!S.checkClone&&yu.test(U))return n.each(function(pe){var ue=n.eq(pe);ae&&(r[0]=U.call(this,pe,ue.html())),Hi(ue,r,a,u)});if(M&&(f=Ho(r,n[0].ownerDocument,!1,n,u),h=f.firstChild,f.childNodes.length===1&&(f=h),h||u)){for(p=l.map(Je(f,"script"),Eu),y=p.length;P<M;P++)b=f,P!==O&&(b=l.clone(b,!0,!0),y&&l.merge(p,Je(b,"script"))),a.call(n[P],b,P);if(y)for(w=p[p.length-1].ownerDocument,l.map(p,Au),P=0;P<y;P++)b=p[P],Mo.test(b.type||"")&&!J.access(b,"globalEval")&&l.contains(w,b)&&(b.src&&(b.type||"").toLowerCase()!=="module"?l._evalUrl&&!b.noModule&&l._evalUrl(b.src,{nonce:b.nonce||b.getAttribute("nonce")},w):F(b.textContent.replace(_u,""),b,w))}return n}function Uo(n,r,a){for(var u,f=r?l.filter(r,n):n,h=0;(u=f[h])!=null;h++)!a&&u.nodeType===1&&l.cleanData(Je(u)),u.parentNode&&(a&&Ii(u)&&ns(Je(u,"script")),u.parentNode.removeChild(u));return n}l.extend({htmlPrefilter:function(n){return n},clone:function(n,r,a){var u,f,h,p,y=n.cloneNode(!0),b=Ii(n);if(!S.noCloneChecked&&(n.nodeType===1||n.nodeType===11)&&!l.isXMLDoc(n))for(p=Je(y),h=Je(n),u=0,f=h.length;u<f;u++)Tu(h[u],p[u]);if(r)if(a)for(h=h||Je(n),p=p||Je(y),u=0,f=h.length;u<f;u++)Bo(h[u],p[u]);else Bo(n,y);return p=Je(y,"script"),p.length>0&&ns(p,!b&&Je(n,"script")),y},cleanData:function(n){for(var r,a,u,f=l.event.special,h=0;(a=n[h])!==void 0;h++)if(zt(a)){if(r=a[J.expando]){if(r.events)for(u in r.events)f[u]?l.event.remove(a,u):l.removeEvent(a,u,r.handle);a[J.expando]=void 0}a[Me.expando]&&(a[Me.expando]=void 0)}}}),l.fn.extend({detach:function(n){return Uo(this,n,!0)},remove:function(n){return Uo(this,n)},text:function(n){return at(this,function(r){return r===void 0?l.text(this):this.empty().each(function(){(this.nodeType===1||this.nodeType===11||this.nodeType===9)&&(this.textContent=r)})},null,n,arguments.length)},append:function(){return Hi(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var r=jo(this,n);r.appendChild(n)}})},prepend:function(){return Hi(this,arguments,function(n){if(this.nodeType===1||this.nodeType===11||this.nodeType===9){var r=jo(this,n);r.insertBefore(n,r.firstChild)}})},before:function(){return Hi(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this)})},after:function(){return Hi(this,arguments,function(n){this.parentNode&&this.parentNode.insertBefore(n,this.nextSibling)})},empty:function(){for(var n,r=0;(n=this[r])!=null;r++)n.nodeType===1&&(l.cleanData(Je(n,!1)),n.textContent="");return this},clone:function(n,r){return n=n??!1,r=r??n,this.map(function(){return l.clone(this,n,r)})},html:function(n){return at(this,function(r){var a=this[0]||{},u=0,f=this.length;if(r===void 0&&a.nodeType===1)return a.innerHTML;if(typeof r=="string"&&!bu.test(r)&&!lt[($o.exec(r)||["",""])[1].toLowerCase()]){r=l.htmlPrefilter(r);try{for(;u<f;u++)a=this[u]||{},a.nodeType===1&&(l.cleanData(Je(a,!1)),a.innerHTML=r);a=0}catch{}}a&&this.empty().append(r)},null,n,arguments.length)},replaceWith:function(){var n=[];return Hi(this,arguments,function(r){var a=this.parentNode;l.inArray(this,n)<0&&(l.cleanData(Je(this)),a&&a.replaceChild(r,this))},n)}}),l.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(n,r){l.fn[n]=function(a){for(var u,f=[],h=l(a),p=h.length-1,y=0;y<=p;y++)u=y===p?this:this.clone(!0),l(h[y])[r](u),d.apply(f,u.get());return this.pushStack(f)}});var ss=new RegExp("^("+Po+")(?!px)[a-z%]+$","i"),os=/^--/,Zn=function(n){var r=n.ownerDocument.defaultView;return(!r||!r.opener)&&(r=t),r.getComputedStyle(n)},Vo=function(n,r,a){var u,f,h={};for(f in r)h[f]=n.style[f],n.style[f]=r[f];u=a.call(n);for(f in r)n.style[f]=h[f];return u},wu=new RegExp(Rt.join("|"),"i");(function(){function n(){if(w){b.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",w.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",fi.appendChild(b).appendChild(w);var P=t.getComputedStyle(w);a=P.top!=="1%",y=r(P.marginLeft)===12,w.style.right="60%",h=r(P.right)===36,u=r(P.width)===36,w.style.position="absolute",f=r(w.offsetWidth/3)===12,fi.removeChild(b),w=null}}function r(P){return Math.round(parseFloat(P))}var a,u,f,h,p,y,b=_.createElement("div"),w=_.createElement("div");w.style&&(w.style.backgroundClip="content-box",w.cloneNode(!0).style.backgroundClip="",S.clearCloneStyle=w.style.backgroundClip==="content-box",l.extend(S,{boxSizingReliable:function(){return n(),u},pixelBoxStyles:function(){return n(),h},pixelPosition:function(){return n(),a},reliableMarginLeft:function(){return n(),y},scrollboxSize:function(){return n(),f},reliableTrDimensions:function(){var P,M,O,U;return p==null&&(P=_.createElement("table"),M=_.createElement("tr"),O=_.createElement("div"),P.style.cssText="position:absolute;left:-11111px;border-collapse:separate",M.style.cssText="box-sizing:content-box;border:1px solid",M.style.height="1px",O.style.height="9px",O.style.display="block",fi.appendChild(P).appendChild(M).appendChild(O),U=t.getComputedStyle(M),p=parseInt(U.height,10)+parseInt(U.borderTopWidth,10)+parseInt(U.borderBottomWidth,10)===M.offsetHeight,fi.removeChild(P)),p}}))})();function hn(n,r,a){var u,f,h,p,y=os.test(r),b=n.style;return a=a||Zn(n),a&&(p=a.getPropertyValue(r)||a[r],y&&p&&(p=p.replace(ye,"$1")||void 0),p===""&&!Ii(n)&&(p=l.style(n,r)),!S.pixelBoxStyles()&&ss.test(p)&&wu.test(r)&&(u=b.width,f=b.minWidth,h=b.maxWidth,b.minWidth=b.maxWidth=b.width=p,p=a.width,b.width=u,b.minWidth=f,b.maxWidth=h)),p!==void 0?p+"":p}function Wo(n,r){return{get:function(){if(n()){delete this.get;return}return(this.get=r).apply(this,arguments)}}}var qo=["Webkit","Moz","ms"],zo=_.createElement("div").style,Ko={};function xu(n){for(var r=n[0].toUpperCase()+n.slice(1),a=qo.length;a--;)if(n=qo[a]+r,n in zo)return n}function as(n){var r=l.cssProps[n]||Ko[n];return r||(n in zo?n:Ko[n]=xu(n)||n)}var Cu=/^(none|table(?!-c[ea]).+)/,Su={position:"absolute",visibility:"hidden",display:"block"},Xo={letterSpacing:"0",fontWeight:"400"};function Yo(n,r,a){var u=cn.exec(r);return u?Math.max(0,u[2]-(a||0))+(u[3]||"px"):r}function ls(n,r,a,u,f,h){var p=r==="width"?1:0,y=0,b=0,w=0;if(a===(u?"border":"content"))return 0;for(;p<4;p+=2)a==="margin"&&(w+=l.css(n,a+Rt[p],!0,f)),u?(a==="content"&&(b-=l.css(n,"padding"+Rt[p],!0,f)),a!=="margin"&&(b-=l.css(n,"border"+Rt[p]+"Width",!0,f))):(b+=l.css(n,"padding"+Rt[p],!0,f),a!=="padding"?b+=l.css(n,"border"+Rt[p]+"Width",!0,f):y+=l.css(n,"border"+Rt[p]+"Width",!0,f));return!u&&h>=0&&(b+=Math.max(0,Math.ceil(n["offset"+r[0].toUpperCase()+r.slice(1)]-h-b-y-.5))||0),b+w}function Go(n,r,a){var u=Zn(n),f=!S.boxSizingReliable()||a,h=f&&l.css(n,"boxSizing",!1,u)==="border-box",p=h,y=hn(n,r,u),b="offset"+r[0].toUpperCase()+r.slice(1);if(ss.test(y)){if(!a)return y;y="auto"}return(!S.boxSizingReliable()&&h||!S.reliableTrDimensions()&&G(n,"tr")||y==="auto"||!parseFloat(y)&&l.css(n,"display",!1,u)==="inline")&&n.getClientRects().length&&(h=l.css(n,"boxSizing",!1,u)==="border-box",p=b in n,p&&(y=n[b])),y=parseFloat(y)||0,y+ls(n,r,a||(h?"border":"content"),p,u,y)+"px"}l.extend({cssHooks:{opacity:{get:function(n,r){if(r){var a=hn(n,"opacity");return a===""?"1":a}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(n,r,a,u){if(!(!n||n.nodeType===3||n.nodeType===8||!n.style)){var f,h,p,y=ze(r),b=os.test(r),w=n.style;if(b||(r=as(y)),p=l.cssHooks[r]||l.cssHooks[y],a!==void 0){if(h=typeof a,h==="string"&&(f=cn.exec(a))&&f[1]&&(a=Io(n,r,f),h="number"),a==null||a!==a)return;h==="number"&&!b&&(a+=f&&f[3]||(l.cssNumber[y]?"":"px")),!S.clearCloneStyle&&a===""&&r.indexOf("background")===0&&(w[r]="inherit"),(!p||!("set"in p)||(a=p.set(n,a,u))!==void 0)&&(b?w.setProperty(r,a):w[r]=a)}else return p&&"get"in p&&(f=p.get(n,!1,u))!==void 0?f:w[r]}},css:function(n,r,a,u){var f,h,p,y=ze(r),b=os.test(r);return b||(r=as(y)),p=l.cssHooks[r]||l.cssHooks[y],p&&"get"in p&&(f=p.get(n,!0,a)),f===void 0&&(f=hn(n,r,u)),f==="normal"&&r in Xo&&(f=Xo[r]),a===""||a?(h=parseFloat(f),a===!0||isFinite(h)?h||0:f):f}}),l.each(["height","width"],function(n,r){l.cssHooks[r]={get:function(a,u,f){if(u)return Cu.test(l.css(a,"display"))&&(!a.getClientRects().length||!a.getBoundingClientRect().width)?Vo(a,Su,function(){return Go(a,r,f)}):Go(a,r,f)},set:function(a,u,f){var h,p=Zn(a),y=!S.scrollboxSize()&&p.position==="absolute",b=y||f,w=b&&l.css(a,"boxSizing",!1,p)==="border-box",P=f?ls(a,r,f,w,p):0;return w&&y&&(P-=Math.ceil(a["offset"+r[0].toUpperCase()+r.slice(1)]-parseFloat(p[r])-ls(a,r,"border",!1,p)-.5)),P&&(h=cn.exec(u))&&(h[3]||"px")!=="px"&&(a.style[r]=u,u=l.css(a,r)),Yo(a,u,P)}}}),l.cssHooks.marginLeft=Wo(S.reliableMarginLeft,function(n,r){if(r)return(parseFloat(hn(n,"marginLeft"))||n.getBoundingClientRect().left-Vo(n,{marginLeft:0},function(){return n.getBoundingClientRect().left}))+"px"}),l.each({margin:"",padding:"",border:"Width"},function(n,r){l.cssHooks[n+r]={expand:function(a){for(var u=0,f={},h=typeof a=="string"?a.split(" "):[a];u<4;u++)f[n+Rt[u]+r]=h[u]||h[u-2]||h[0];return f}},n!=="margin"&&(l.cssHooks[n+r].set=Yo)}),l.fn.extend({css:function(n,r){return at(this,function(a,u,f){var h,p,y={},b=0;if(Array.isArray(u)){for(h=Zn(a),p=u.length;b<p;b++)y[u[b]]=l.css(a,u[b],!1,h);return y}return f!==void 0?l.style(a,u,f):l.css(a,u)},n,r,arguments.length>1)}});function Qe(n,r,a,u,f){return new Qe.prototype.init(n,r,a,u,f)}l.Tween=Qe,Qe.prototype={constructor:Qe,init:function(n,r,a,u,f,h){this.elem=n,this.prop=a,this.easing=f||l.easing._default,this.options=r,this.start=this.now=this.cur(),this.end=u,this.unit=h||(l.cssNumber[a]?"":"px")},cur:function(){var n=Qe.propHooks[this.prop];return n&&n.get?n.get(this):Qe.propHooks._default.get(this)},run:function(n){var r,a=Qe.propHooks[this.prop];return this.options.duration?this.pos=r=l.easing[this.easing](n,this.options.duration*n,0,1,this.options.duration):this.pos=r=n,this.now=(this.end-this.start)*r+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),a&&a.set?a.set(this):Qe.propHooks._default.set(this),this}},Qe.prototype.init.prototype=Qe.prototype,Qe.propHooks={_default:{get:function(n){var r;return n.elem.nodeType!==1||n.elem[n.prop]!=null&&n.elem.style[n.prop]==null?n.elem[n.prop]:(r=l.css(n.elem,n.prop,""),!r||r==="auto"?0:r)},set:function(n){l.fx.step[n.prop]?l.fx.step[n.prop](n):n.elem.nodeType===1&&(l.cssHooks[n.prop]||n.elem.style[as(n.prop)]!=null)?l.style(n.elem,n.prop,n.now+n.unit):n.elem[n.prop]=n.now}}},Qe.propHooks.scrollTop=Qe.propHooks.scrollLeft={set:function(n){n.elem.nodeType&&n.elem.parentNode&&(n.elem[n.prop]=n.now)}},l.easing={linear:function(n){return n},swing:function(n){return .5-Math.cos(n*Math.PI)/2},_default:"swing"},l.fx=Qe.prototype.init,l.fx.step={};var Fi,er,ku=/^(?:toggle|show|hide)$/,Ou=/queueHooks$/;function us(){er&&(_.hidden===!1&&t.requestAnimationFrame?t.requestAnimationFrame(us):t.setTimeout(us,l.fx.interval),l.fx.tick())}function Jo(){return t.setTimeout(function(){Fi=void 0}),Fi=Date.now()}function tr(n,r){var a,u=0,f={height:n};for(r=r?1:0;u<4;u+=2-r)a=Rt[u],f["margin"+a]=f["padding"+a]=n;return r&&(f.opacity=f.width=n),f}function Qo(n,r,a){for(var u,f=(vt.tweeners[r]||[]).concat(vt.tweeners["*"]),h=0,p=f.length;h<p;h++)if(u=f[h].call(a,r,n))return u}function Du(n,r,a){var u,f,h,p,y,b,w,P,M="width"in r||"height"in r,O=this,U={},ae=n.style,pe=n.nodeType&&Jn(n),ue=J.get(n,"fxshow");a.queue||(p=l._queueHooks(n,"fx"),p.unqueued==null&&(p.unqueued=0,y=p.empty.fire,p.empty.fire=function(){p.unqueued||y()}),p.unqueued++,O.always(function(){O.always(function(){p.unqueued--,l.queue(n,"fx").length||p.empty.fire()})}));for(u in r)if(f=r[u],ku.test(f)){if(delete r[u],h=h||f==="toggle",f===(pe?"hide":"show"))if(f==="show"&&ue&&ue[u]!==void 0)pe=!0;else continue;U[u]=ue&&ue[u]||l.style(n,u)}if(b=!l.isEmptyObject(r),!(!b&&l.isEmptyObject(U))){M&&n.nodeType===1&&(a.overflow=[ae.overflow,ae.overflowX,ae.overflowY],w=ue&&ue.display,w==null&&(w=J.get(n,"display")),P=l.css(n,"display"),P==="none"&&(w?P=w:(Ri([n],!0),w=n.style.display||w,P=l.css(n,"display"),Ri([n]))),(P==="inline"||P==="inline-block"&&w!=null)&&l.css(n,"float")==="none"&&(b||(O.done(function(){ae.display=w}),w==null&&(P=ae.display,w=P==="none"?"":P)),ae.display="inline-block")),a.overflow&&(ae.overflow="hidden",O.always(function(){ae.overflow=a.overflow[0],ae.overflowX=a.overflow[1],ae.overflowY=a.overflow[2]})),b=!1;for(u in U)b||(ue?"hidden"in ue&&(pe=ue.hidden):ue=J.access(n,"fxshow",{display:w}),h&&(ue.hidden=!pe),pe&&Ri([n],!0),O.done(function(){pe||Ri([n]),J.remove(n,"fxshow");for(u in U)l.style(n,u,U[u])})),b=Qo(pe?ue[u]:0,u,O),u in ue||(ue[u]=b.start,pe&&(b.end=b.start,b.start=0))}}function Lu(n,r){var a,u,f,h,p;for(a in n)if(u=ze(a),f=r[u],h=n[a],Array.isArray(h)&&(f=h[1],h=n[a]=h[0]),a!==u&&(n[u]=h,delete n[a]),p=l.cssHooks[u],p&&"expand"in p){h=p.expand(h),delete n[u];for(a in h)a in n||(n[a]=h[a],r[a]=f)}else r[u]=f}function vt(n,r,a){var u,f,h=0,p=vt.prefilters.length,y=l.Deferred().always(function(){delete b.elem}),b=function(){if(f)return!1;for(var M=Fi||Jo(),O=Math.max(0,w.startTime+w.duration-M),U=O/w.duration||0,ae=1-U,pe=0,ue=w.tweens.length;pe<ue;pe++)w.tweens[pe].run(ae);return y.notifyWith(n,[w,ae,O]),ae<1&&ue?O:(ue||y.notifyWith(n,[w,1,0]),y.resolveWith(n,[w]),!1)},w=y.promise({elem:n,props:l.extend({},r),opts:l.extend(!0,{specialEasing:{},easing:l.easing._default},a),originalProperties:r,originalOptions:a,startTime:Fi||Jo(),duration:a.duration,tweens:[],createTween:function(M,O){var U=l.Tween(n,w.opts,M,O,w.opts.specialEasing[M]||w.opts.easing);return w.tweens.push(U),U},stop:function(M){var O=0,U=M?w.tweens.length:0;if(f)return this;for(f=!0;O<U;O++)w.tweens[O].run(1);return M?(y.notifyWith(n,[w,1,0]),y.resolveWith(n,[w,M])):y.rejectWith(n,[w,M]),this}}),P=w.props;for(Lu(P,w.opts.specialEasing);h<p;h++)if(u=vt.prefilters[h].call(w,n,P,w.opts),u)return N(u.stop)&&(l._queueHooks(w.elem,w.opts.queue).stop=u.stop.bind(u)),u;return l.map(P,Qo,w),N(w.opts.start)&&w.opts.start.call(n,w),w.progress(w.opts.progress).done(w.opts.done,w.opts.complete).fail(w.opts.fail).always(w.opts.always),l.fx.timer(l.extend(b,{elem:n,anim:w,queue:w.opts.queue})),w}l.Animation=l.extend(vt,{tweeners:{"*":[function(n,r){var a=this.createTween(n,r);return Io(a.elem,n,cn.exec(r),a),a}]},tweener:function(n,r){N(n)?(r=n,n=["*"]):n=n.match(Be);for(var a,u=0,f=n.length;u<f;u++)a=n[u],vt.tweeners[a]=vt.tweeners[a]||[],vt.tweeners[a].unshift(r)},prefilters:[Du],prefilter:function(n,r){r?vt.prefilters.unshift(n):vt.prefilters.push(n)}}),l.speed=function(n,r,a){var u=n&&typeof n=="object"?l.extend({},n):{complete:a||!a&&r||N(n)&&n,duration:n,easing:a&&r||r&&!N(r)&&r};return l.fx.off?u.duration=0:typeof u.duration!="number"&&(u.duration in l.fx.speeds?u.duration=l.fx.speeds[u.duration]:u.duration=l.fx.speeds._default),(u.queue==null||u.queue===!0)&&(u.queue="fx"),u.old=u.complete,u.complete=function(){N(u.old)&&u.old.call(this),u.queue&&l.dequeue(this,u.queue)},u},l.fn.extend({fadeTo:function(n,r,a,u){return this.filter(Jn).css("opacity",0).show().end().animate({opacity:r},n,a,u)},animate:function(n,r,a,u){var f=l.isEmptyObject(n),h=l.speed(r,a,u),p=function(){var y=vt(this,l.extend({},n),h);(f||J.get(this,"finish"))&&y.stop(!0)};return p.finish=p,f||h.queue===!1?this.each(p):this.queue(h.queue,p)},stop:function(n,r,a){var u=function(f){var h=f.stop;delete f.stop,h(a)};return typeof n!="string"&&(a=r,r=n,n=void 0),r&&this.queue(n||"fx",[]),this.each(function(){var f=!0,h=n!=null&&n+"queueHooks",p=l.timers,y=J.get(this);if(h)y[h]&&y[h].stop&&u(y[h]);else for(h in y)y[h]&&y[h].stop&&Ou.test(h)&&u(y[h]);for(h=p.length;h--;)p[h].elem===this&&(n==null||p[h].queue===n)&&(p[h].anim.stop(a),f=!1,p.splice(h,1));(f||!a)&&l.dequeue(this,n)})},finish:function(n){return n!==!1&&(n=n||"fx"),this.each(function(){var r,a=J.get(this),u=a[n+"queue"],f=a[n+"queueHooks"],h=l.timers,p=u?u.length:0;for(a.finish=!0,l.queue(this,n,[]),f&&f.stop&&f.stop.call(this,!0),r=h.length;r--;)h[r].elem===this&&h[r].queue===n&&(h[r].anim.stop(!0),h.splice(r,1));for(r=0;r<p;r++)u[r]&&u[r].finish&&u[r].finish.call(this);delete a.finish})}}),l.each(["toggle","show","hide"],function(n,r){var a=l.fn[r];l.fn[r]=function(u,f,h){return u==null||typeof u=="boolean"?a.apply(this,arguments):this.animate(tr(r,!0),u,f,h)}}),l.each({slideDown:tr("show"),slideUp:tr("hide"),slideToggle:tr("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},function(n,r){l.fn[n]=function(a,u,f){return this.animate(r,a,u,f)}}),l.timers=[],l.fx.tick=function(){var n,r=0,a=l.timers;for(Fi=Date.now();r<a.length;r++)n=a[r],!n()&&a[r]===n&&a.splice(r--,1);a.length||l.fx.stop(),Fi=void 0},l.fx.timer=function(n){l.timers.push(n),l.fx.start()},l.fx.interval=13,l.fx.start=function(){er||(er=!0,us())},l.fx.stop=function(){er=null},l.fx.speeds={slow:600,fast:200,_default:400},l.fn.delay=function(n,r){return n=l.fx&&l.fx.speeds[n]||n,r=r||"fx",this.queue(r,function(a,u){var f=t.setTimeout(a,n);u.stop=function(){t.clearTimeout(f)}})},function(){var n=_.createElement("input"),r=_.createElement("select"),a=r.appendChild(_.createElement("option"));n.type="checkbox",S.checkOn=n.value!=="",S.optSelected=a.selected,n=_.createElement("input"),n.value="t",n.type="radio",S.radioValue=n.value==="t"}();var Zo,dn=l.expr.attrHandle;l.fn.extend({attr:function(n,r){return at(this,l.attr,n,r,arguments.length>1)},removeAttr:function(n){return this.each(function(){l.removeAttr(this,n)})}}),l.extend({attr:function(n,r,a){var u,f,h=n.nodeType;if(!(h===3||h===8||h===2)){if(typeof n.getAttribute>"u")return l.prop(n,r,a);if((h!==1||!l.isXMLDoc(n))&&(f=l.attrHooks[r.toLowerCase()]||(l.expr.match.bool.test(r)?Zo:void 0)),a!==void 0){if(a===null){l.removeAttr(n,r);return}return f&&"set"in f&&(u=f.set(n,a,r))!==void 0?u:(n.setAttribute(r,a+""),a)}return f&&"get"in f&&(u=f.get(n,r))!==null?u:(u=l.find.attr(n,r),u??void 0)}},attrHooks:{type:{set:function(n,r){if(!S.radioValue&&r==="radio"&&G(n,"input")){var a=n.value;return n.setAttribute("type",r),a&&(n.value=a),r}}}},removeAttr:function(n,r){var a,u=0,f=r&&r.match(Be);if(f&&n.nodeType===1)for(;a=f[u++];)n.removeAttribute(a)}}),Zo={set:function(n,r,a){return r===!1?l.removeAttr(n,a):n.setAttribute(a,a),a}},l.each(l.expr.match.bool.source.match(/\w+/g),function(n,r){var a=dn[r]||l.find.attr;dn[r]=function(u,f,h){var p,y,b=f.toLowerCase();return h||(y=dn[b],dn[b]=p,p=a(u,f,h)!=null?b:null,dn[b]=y),p}});var Nu=/^(?:input|select|textarea|button)$/i,Pu=/^(?:a|area)$/i;l.fn.extend({prop:function(n,r){return at(this,l.prop,n,r,arguments.length>1)},removeProp:function(n){return this.each(function(){delete this[l.propFix[n]||n]})}}),l.extend({prop:function(n,r,a){var u,f,h=n.nodeType;if(!(h===3||h===8||h===2))return(h!==1||!l.isXMLDoc(n))&&(r=l.propFix[r]||r,f=l.propHooks[r]),a!==void 0?f&&"set"in f&&(u=f.set(n,a,r))!==void 0?u:n[r]=a:f&&"get"in f&&(u=f.get(n,r))!==null?u:n[r]},propHooks:{tabIndex:{get:function(n){var r=l.find.attr(n,"tabindex");return r?parseInt(r,10):Nu.test(n.nodeName)||Pu.test(n.nodeName)&&n.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),S.optSelected||(l.propHooks.selected={get:function(n){var r=n.parentNode;return r&&r.parentNode&&r.parentNode.selectedIndex,null},set:function(n){var r=n.parentNode;r&&(r.selectedIndex,r.parentNode&&r.parentNode.selectedIndex)}}),l.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],function(){l.propFix[this.toLowerCase()]=this});function hi(n){var r=n.match(Be)||[];return r.join(" ")}function di(n){return n.getAttribute&&n.getAttribute("class")||""}function cs(n){return Array.isArray(n)?n:typeof n=="string"?n.match(Be)||[]:[]}l.fn.extend({addClass:function(n){var r,a,u,f,h,p;return N(n)?this.each(function(y){l(this).addClass(n.call(this,y,di(this)))}):(r=cs(n),r.length?this.each(function(){if(u=di(this),a=this.nodeType===1&&" "+hi(u)+" ",a){for(h=0;h<r.length;h++)f=r[h],a.indexOf(" "+f+" ")<0&&(a+=f+" ");p=hi(a),u!==p&&this.setAttribute("class",p)}}):this)},removeClass:function(n){var r,a,u,f,h,p;return N(n)?this.each(function(y){l(this).removeClass(n.call(this,y,di(this)))}):arguments.length?(r=cs(n),r.length?this.each(function(){if(u=di(this),a=this.nodeType===1&&" "+hi(u)+" ",a){for(h=0;h<r.length;h++)for(f=r[h];a.indexOf(" "+f+" ")>-1;)a=a.replace(" "+f+" "," ");p=hi(a),u!==p&&this.setAttribute("class",p)}}):this):this.attr("class","")},toggleClass:function(n,r){var a,u,f,h,p=typeof n,y=p==="string"||Array.isArray(n);return N(n)?this.each(function(b){l(this).toggleClass(n.call(this,b,di(this),r),r)}):typeof r=="boolean"&&y?r?this.addClass(n):this.removeClass(n):(a=cs(n),this.each(function(){if(y)for(h=l(this),f=0;f<a.length;f++)u=a[f],h.hasClass(u)?h.removeClass(u):h.addClass(u);else(n===void 0||p==="boolean")&&(u=di(this),u&&J.set(this,"__className__",u),this.setAttribute&&this.setAttribute("class",u||n===!1?"":J.get(this,"__className__")||""))}))},hasClass:function(n){var r,a,u=0;for(r=" "+n+" ";a=this[u++];)if(a.nodeType===1&&(" "+hi(di(a))+" ").indexOf(r)>-1)return!0;return!1}});var Iu=/\r/g;l.fn.extend({val:function(n){var r,a,u,f=this[0];return arguments.length?(u=N(n),this.each(function(h){var p;this.nodeType===1&&(u?p=n.call(this,h,l(this).val()):p=n,p==null?p="":typeof p=="number"?p+="":Array.isArray(p)&&(p=l.map(p,function(y){return y==null?"":y+""})),r=l.valHooks[this.type]||l.valHooks[this.nodeName.toLowerCase()],(!r||!("set"in r)||r.set(this,p,"value")===void 0)&&(this.value=p))})):f?(r=l.valHooks[f.type]||l.valHooks[f.nodeName.toLowerCase()],r&&"get"in r&&(a=r.get(f,"value"))!==void 0?a:(a=f.value,typeof a=="string"?a.replace(Iu,""):a??"")):void 0}}),l.extend({valHooks:{option:{get:function(n){var r=l.find.attr(n,"value");return r??hi(l.text(n))}},select:{get:function(n){var r,a,u,f=n.options,h=n.selectedIndex,p=n.type==="select-one",y=p?null:[],b=p?h+1:f.length;for(h<0?u=b:u=p?h:0;u<b;u++)if(a=f[u],(a.selected||u===h)&&!a.disabled&&(!a.parentNode.disabled||!G(a.parentNode,"optgroup"))){if(r=l(a).val(),p)return r;y.push(r)}return y},set:function(n,r){for(var a,u,f=n.options,h=l.makeArray(r),p=f.length;p--;)u=f[p],(u.selected=l.inArray(l.valHooks.option.get(u),h)>-1)&&(a=!0);return a||(n.selectedIndex=-1),h}}}}),l.each(["radio","checkbox"],function(){l.valHooks[this]={set:function(n,r){if(Array.isArray(r))return n.checked=l.inArray(l(n).val(),r)>-1}},S.checkOn||(l.valHooks[this].get=function(n){return n.getAttribute("value")===null?"on":n.value})});var pn=t.location,ea={guid:Date.now()},fs=/\?/;l.parseXML=function(n){var r,a;if(!n||typeof n!="string")return null;try{r=new t.DOMParser().parseFromString(n,"text/xml")}catch{}return a=r&&r.getElementsByTagName("parsererror")[0],(!r||a)&&l.error("Invalid XML: "+(a?l.map(a.childNodes,function(u){return u.textContent}).join(`
`):n)),r};var ta=/^(?:focusinfocus|focusoutblur)$/,ia=function(n){n.stopPropagation()};l.extend(l.event,{trigger:function(n,r,a,u){var f,h,p,y,b,w,P,M,O=[a||_],U=x.call(n,"type")?n.type:n,ae=x.call(n,"namespace")?n.namespace.split("."):[];if(h=M=p=a=a||_,!(a.nodeType===3||a.nodeType===8)&&!ta.test(U+l.event.triggered)&&(U.indexOf(".")>-1&&(ae=U.split("."),U=ae.shift(),ae.sort()),b=U.indexOf(":")<0&&"on"+U,n=n[l.expando]?n:new l.Event(U,typeof n=="object"&&n),n.isTrigger=u?2:3,n.namespace=ae.join("."),n.rnamespace=n.namespace?new RegExp("(^|\\.)"+ae.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,n.result=void 0,n.target||(n.target=a),r=r==null?[n]:l.makeArray(r,[n]),P=l.event.special[U]||{},!(!u&&P.trigger&&P.trigger.apply(a,r)===!1))){if(!u&&!P.noBubble&&!A(a)){for(y=P.delegateType||U,ta.test(y+U)||(h=h.parentNode);h;h=h.parentNode)O.push(h),p=h;p===(a.ownerDocument||_)&&O.push(p.defaultView||p.parentWindow||t)}for(f=0;(h=O[f++])&&!n.isPropagationStopped();)M=h,n.type=f>1?y:P.bindType||U,w=(J.get(h,"events")||Object.create(null))[n.type]&&J.get(h,"handle"),w&&w.apply(h,r),w=b&&h[b],w&&w.apply&&zt(h)&&(n.result=w.apply(h,r),n.result===!1&&n.preventDefault());return n.type=U,!u&&!n.isDefaultPrevented()&&(!P._default||P._default.apply(O.pop(),r)===!1)&&zt(a)&&b&&N(a[U])&&!A(a)&&(p=a[b],p&&(a[b]=null),l.event.triggered=U,n.isPropagationStopped()&&M.addEventListener(U,ia),a[U](),n.isPropagationStopped()&&M.removeEventListener(U,ia),l.event.triggered=void 0,p&&(a[b]=p)),n.result}},simulate:function(n,r,a){var u=l.extend(new l.Event,a,{type:n,isSimulated:!0});l.event.trigger(u,null,r)}}),l.fn.extend({trigger:function(n,r){return this.each(function(){l.event.trigger(n,r,this)})},triggerHandler:function(n,r){var a=this[0];if(a)return l.event.trigger(n,r,a,!0)}});var Ru=/\[\]$/,na=/\r?\n/g,$u=/^(?:submit|button|image|reset|file)$/i,Mu=/^(?:input|select|textarea|keygen)/i;function hs(n,r,a,u){var f;if(Array.isArray(r))l.each(r,function(h,p){a||Ru.test(n)?u(n,p):hs(n+"["+(typeof p=="object"&&p!=null?h:"")+"]",p,a,u)});else if(!a&&T(r)==="object")for(f in r)hs(n+"["+f+"]",r[f],a,u);else u(n,r)}l.param=function(n,r){var a,u=[],f=function(h,p){var y=N(p)?p():p;u[u.length]=encodeURIComponent(h)+"="+encodeURIComponent(y??"")};if(n==null)return"";if(Array.isArray(n)||n.jquery&&!l.isPlainObject(n))l.each(n,function(){f(this.name,this.value)});else for(a in n)hs(a,n[a],r,f);return u.join("&")},l.fn.extend({serialize:function(){return l.param(this.serializeArray())},serializeArray:function(){return this.map(function(){var n=l.prop(this,"elements");return n?l.makeArray(n):this}).filter(function(){var n=this.type;return this.name&&!l(this).is(":disabled")&&Mu.test(this.nodeName)&&!$u.test(n)&&(this.checked||!fn.test(n))}).map(function(n,r){var a=l(this).val();return a==null?null:Array.isArray(a)?l.map(a,function(u){return{name:r.name,value:u.replace(na,`\r
`)}}):{name:r.name,value:a.replace(na,`\r
`)}}).get()}});var Hu=/%20/g,Fu=/#.*$/,ju=/([?&])_=[^&]*/,Bu=/^(.*?):[ \t]*([^\r\n]*)$/mg,Uu=/^(?:about|app|app-storage|.+-extension|file|res|widget):$/,Vu=/^(?:GET|HEAD)$/,Wu=/^\/\//,ra={},ds={},sa="*/".concat("*"),ps=_.createElement("a");ps.href=pn.href;function oa(n){return function(r,a){typeof r!="string"&&(a=r,r="*");var u,f=0,h=r.toLowerCase().match(Be)||[];if(N(a))for(;u=h[f++];)u[0]==="+"?(u=u.slice(1)||"*",(n[u]=n[u]||[]).unshift(a)):(n[u]=n[u]||[]).push(a)}}function aa(n,r,a,u){var f={},h=n===ds;function p(y){var b;return f[y]=!0,l.each(n[y]||[],function(w,P){var M=P(r,a,u);if(typeof M=="string"&&!h&&!f[M])return r.dataTypes.unshift(M),p(M),!1;if(h)return!(b=M)}),b}return p(r.dataTypes[0])||!f["*"]&&p("*")}function gs(n,r){var a,u,f=l.ajaxSettings.flatOptions||{};for(a in r)r[a]!==void 0&&((f[a]?n:u||(u={}))[a]=r[a]);return u&&l.extend(!0,n,u),n}function qu(n,r,a){for(var u,f,h,p,y=n.contents,b=n.dataTypes;b[0]==="*";)b.shift(),u===void 0&&(u=n.mimeType||r.getResponseHeader("Content-Type"));if(u){for(f in y)if(y[f]&&y[f].test(u)){b.unshift(f);break}}if(b[0]in a)h=b[0];else{for(f in a){if(!b[0]||n.converters[f+" "+b[0]]){h=f;break}p||(p=f)}h=h||p}if(h)return h!==b[0]&&b.unshift(h),a[h]}function zu(n,r,a,u){var f,h,p,y,b,w={},P=n.dataTypes.slice();if(P[1])for(p in n.converters)w[p.toLowerCase()]=n.converters[p];for(h=P.shift();h;)if(n.responseFields[h]&&(a[n.responseFields[h]]=r),!b&&u&&n.dataFilter&&(r=n.dataFilter(r,n.dataType)),b=h,h=P.shift(),h){if(h==="*")h=b;else if(b!=="*"&&b!==h){if(p=w[b+" "+h]||w["* "+h],!p){for(f in w)if(y=f.split(" "),y[1]===h&&(p=w[b+" "+y[0]]||w["* "+y[0]],p)){p===!0?p=w[f]:w[f]!==!0&&(h=y[0],P.unshift(y[1]));break}}if(p!==!0)if(p&&n.throws)r=p(r);else try{r=p(r)}catch(M){return{state:"parsererror",error:p?M:"No conversion from "+b+" to "+h}}}}return{state:"success",data:r}}l.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:pn.href,type:"GET",isLocal:Uu.test(pn.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":sa,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":l.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(n,r){return r?gs(gs(n,l.ajaxSettings),r):gs(l.ajaxSettings,n)},ajaxPrefilter:oa(ra),ajaxTransport:oa(ds),ajax:function(n,r){typeof n=="object"&&(r=n,n=void 0),r=r||{};var a,u,f,h,p,y,b,w,P,M,O=l.ajaxSetup({},r),U=O.context||O,ae=O.context&&(U.nodeType||U.jquery)?l(U):l.event,pe=l.Deferred(),ue=l.Callbacks("once memory"),He=O.statusCode||{},Le={},Tt={},wt="canceled",he={readyState:0,getResponseHeader:function(ge){var xe;if(b){if(!h)for(h={};xe=Bu.exec(f);)h[xe[1].toLowerCase()+" "]=(h[xe[1].toLowerCase()+" "]||[]).concat(xe[2]);xe=h[ge.toLowerCase()+" "]}return xe==null?null:xe.join(", ")},getAllResponseHeaders:function(){return b?f:null},setRequestHeader:function(ge,xe){return b==null&&(ge=Tt[ge.toLowerCase()]=Tt[ge.toLowerCase()]||ge,Le[ge]=xe),this},overrideMimeType:function(ge){return b==null&&(O.mimeType=ge),this},statusCode:function(ge){var xe;if(ge)if(b)he.always(ge[he.status]);else for(xe in ge)He[xe]=[He[xe],ge[xe]];return this},abort:function(ge){var xe=ge||wt;return a&&a.abort(xe),pi(0,xe),this}};if(pe.promise(he),O.url=((n||O.url||pn.href)+"").replace(Wu,pn.protocol+"//"),O.type=r.method||r.type||O.method||O.type,O.dataTypes=(O.dataType||"*").toLowerCase().match(Be)||[""],O.crossDomain==null){y=_.createElement("a");try{y.href=O.url,y.href=y.href,O.crossDomain=ps.protocol+"//"+ps.host!=y.protocol+"//"+y.host}catch{O.crossDomain=!0}}if(O.data&&O.processData&&typeof O.data!="string"&&(O.data=l.param(O.data,O.traditional)),aa(ra,O,r,he),b)return he;w=l.event&&O.global,w&&l.active++===0&&l.event.trigger("ajaxStart"),O.type=O.type.toUpperCase(),O.hasContent=!Vu.test(O.type),u=O.url.replace(Fu,""),O.hasContent?O.data&&O.processData&&(O.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&(O.data=O.data.replace(Hu,"+")):(M=O.url.slice(u.length),O.data&&(O.processData||typeof O.data=="string")&&(u+=(fs.test(u)?"&":"?")+O.data,delete O.data),O.cache===!1&&(u=u.replace(ju,"$1"),M=(fs.test(u)?"&":"?")+"_="+ea.guid+++M),O.url=u+M),O.ifModified&&(l.lastModified[u]&&he.setRequestHeader("If-Modified-Since",l.lastModified[u]),l.etag[u]&&he.setRequestHeader("If-None-Match",l.etag[u])),(O.data&&O.hasContent&&O.contentType!==!1||r.contentType)&&he.setRequestHeader("Content-Type",O.contentType),he.setRequestHeader("Accept",O.dataTypes[0]&&O.accepts[O.dataTypes[0]]?O.accepts[O.dataTypes[0]]+(O.dataTypes[0]!=="*"?", "+sa+"; q=0.01":""):O.accepts["*"]);for(P in O.headers)he.setRequestHeader(P,O.headers[P]);if(O.beforeSend&&(O.beforeSend.call(U,he,O)===!1||b))return he.abort();if(wt="abort",ue.add(O.complete),he.done(O.success),he.fail(O.error),a=aa(ds,O,r,he),!a)pi(-1,"No Transport");else{if(he.readyState=1,w&&ae.trigger("ajaxSend",[he,O]),b)return he;O.async&&O.timeout>0&&(p=t.setTimeout(function(){he.abort("timeout")},O.timeout));try{b=!1,a.send(Le,pi)}catch(ge){if(b)throw ge;pi(-1,ge)}}function pi(ge,xe,mn,vs){var xt,vn,Ct,Xt,Yt,ut=xe;b||(b=!0,p&&t.clearTimeout(p),a=void 0,f=vs||"",he.readyState=ge>0?4:0,xt=ge>=200&&ge<300||ge===304,mn&&(Xt=qu(O,he,mn)),!xt&&l.inArray("script",O.dataTypes)>-1&&l.inArray("json",O.dataTypes)<0&&(O.converters["text script"]=function(){}),Xt=zu(O,Xt,he,xt),xt?(O.ifModified&&(Yt=he.getResponseHeader("Last-Modified"),Yt&&(l.lastModified[u]=Yt),Yt=he.getResponseHeader("etag"),Yt&&(l.etag[u]=Yt)),ge===204||O.type==="HEAD"?ut="nocontent":ge===304?ut="notmodified":(ut=Xt.state,vn=Xt.data,Ct=Xt.error,xt=!Ct)):(Ct=ut,(ge||!ut)&&(ut="error",ge<0&&(ge=0))),he.status=ge,he.statusText=(xe||ut)+"",xt?pe.resolveWith(U,[vn,ut,he]):pe.rejectWith(U,[he,ut,Ct]),he.statusCode(He),He=void 0,w&&ae.trigger(xt?"ajaxSuccess":"ajaxError",[he,O,xt?vn:Ct]),ue.fireWith(U,[he,ut]),w&&(ae.trigger("ajaxComplete",[he,O]),--l.active||l.event.trigger("ajaxStop")))}return he},getJSON:function(n,r,a){return l.get(n,r,a,"json")},getScript:function(n,r){return l.get(n,void 0,r,"script")}}),l.each(["get","post"],function(n,r){l[r]=function(a,u,f,h){return N(u)&&(h=h||f,f=u,u=void 0),l.ajax(l.extend({url:a,type:r,dataType:h,data:u,success:f},l.isPlainObject(a)&&a))}}),l.ajaxPrefilter(function(n){var r;for(r in n.headers)r.toLowerCase()==="content-type"&&(n.contentType=n.headers[r]||"")}),l._evalUrl=function(n,r,a){return l.ajax({url:n,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(u){l.globalEval(u,r,a)}})},l.fn.extend({wrapAll:function(n){var r;return this[0]&&(N(n)&&(n=n.call(this[0])),r=l(n,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&r.insertBefore(this[0]),r.map(function(){for(var a=this;a.firstElementChild;)a=a.firstElementChild;return a}).append(this)),this},wrapInner:function(n){return N(n)?this.each(function(r){l(this).wrapInner(n.call(this,r))}):this.each(function(){var r=l(this),a=r.contents();a.length?a.wrapAll(n):r.append(n)})},wrap:function(n){var r=N(n);return this.each(function(a){l(this).wrapAll(r?n.call(this,a):n)})},unwrap:function(n){return this.parent(n).not("body").each(function(){l(this).replaceWith(this.childNodes)}),this}}),l.expr.pseudos.hidden=function(n){return!l.expr.pseudos.visible(n)},l.expr.pseudos.visible=function(n){return!!(n.offsetWidth||n.offsetHeight||n.getClientRects().length)},l.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch{}};var Ku={0:200,1223:204},gn=l.ajaxSettings.xhr();S.cors=!!gn&&"withCredentials"in gn,S.ajax=gn=!!gn,l.ajaxTransport(function(n){var r,a;if(S.cors||gn&&!n.crossDomain)return{send:function(u,f){var h,p=n.xhr();if(p.open(n.type,n.url,n.async,n.username,n.password),n.xhrFields)for(h in n.xhrFields)p[h]=n.xhrFields[h];n.mimeType&&p.overrideMimeType&&p.overrideMimeType(n.mimeType),!n.crossDomain&&!u["X-Requested-With"]&&(u["X-Requested-With"]="XMLHttpRequest");for(h in u)p.setRequestHeader(h,u[h]);r=function(y){return function(){r&&(r=a=p.onload=p.onerror=p.onabort=p.ontimeout=p.onreadystatechange=null,y==="abort"?p.abort():y==="error"?typeof p.status!="number"?f(0,"error"):f(p.status,p.statusText):f(Ku[p.status]||p.status,p.statusText,(p.responseType||"text")!=="text"||typeof p.responseText!="string"?{binary:p.response}:{text:p.responseText},p.getAllResponseHeaders()))}},p.onload=r(),a=p.onerror=p.ontimeout=r("error"),p.onabort!==void 0?p.onabort=a:p.onreadystatechange=function(){p.readyState===4&&t.setTimeout(function(){r&&a()})},r=r("abort");try{p.send(n.hasContent&&n.data||null)}catch(y){if(r)throw y}},abort:function(){r&&r()}}}),l.ajaxPrefilter(function(n){n.crossDomain&&(n.contents.script=!1)}),l.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(n){return l.globalEval(n),n}}}),l.ajaxPrefilter("script",function(n){n.cache===void 0&&(n.cache=!1),n.crossDomain&&(n.type="GET")}),l.ajaxTransport("script",function(n){if(n.crossDomain||n.scriptAttrs){var r,a;return{send:function(u,f){r=l("<script>").attr(n.scriptAttrs||{}).prop({charset:n.scriptCharset,src:n.url}).on("load error",a=function(h){r.remove(),a=null,h&&f(h.type==="error"?404:200,h.type)}),_.head.appendChild(r[0])},abort:function(){a&&a()}}}});var la=[],ms=/(=)\?(?=&|$)|\?\?/;l.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var n=la.pop()||l.expando+"_"+ea.guid++;return this[n]=!0,n}}),l.ajaxPrefilter("json jsonp",function(n,r,a){var u,f,h,p=n.jsonp!==!1&&(ms.test(n.url)?"url":typeof n.data=="string"&&(n.contentType||"").indexOf("application/x-www-form-urlencoded")===0&&ms.test(n.data)&&"data");if(p||n.dataTypes[0]==="jsonp")return u=n.jsonpCallback=N(n.jsonpCallback)?n.jsonpCallback():n.jsonpCallback,p?n[p]=n[p].replace(ms,"$1"+u):n.jsonp!==!1&&(n.url+=(fs.test(n.url)?"&":"?")+n.jsonp+"="+u),n.converters["script json"]=function(){return h||l.error(u+" was not called"),h[0]},n.dataTypes[0]="json",f=t[u],t[u]=function(){h=arguments},a.always(function(){f===void 0?l(t).removeProp(u):t[u]=f,n[u]&&(n.jsonpCallback=r.jsonpCallback,la.push(u)),h&&N(f)&&f(h[0]),h=f=void 0}),"script"}),S.createHTMLDocument=function(){var n=_.implementation.createHTMLDocument("").body;return n.innerHTML="<form></form><form></form>",n.childNodes.length===2}(),l.parseHTML=function(n,r,a){if(typeof n!="string")return[];typeof r=="boolean"&&(a=r,r=!1);var u,f,h;return r||(S.createHTMLDocument?(r=_.implementation.createHTMLDocument(""),u=r.createElement("base"),u.href=_.location.href,r.head.appendChild(u)):r=_),f=we.exec(n),h=!a&&[],f?[r.createElement(f[1])]:(f=Ho([n],r,h),h&&h.length&&l(h).remove(),l.merge([],f.childNodes))},l.fn.load=function(n,r,a){var u,f,h,p=this,y=n.indexOf(" ");return y>-1&&(u=hi(n.slice(y)),n=n.slice(0,y)),N(r)?(a=r,r=void 0):r&&typeof r=="object"&&(f="POST"),p.length>0&&l.ajax({url:n,type:f||"GET",dataType:"html",data:r}).done(function(b){h=arguments,p.html(u?l("<div>").append(l.parseHTML(b)).find(u):b)}).always(a&&function(b,w){p.each(function(){a.apply(this,h||[b.responseText,w,b])})}),this},l.expr.pseudos.animated=function(n){return l.grep(l.timers,function(r){return n===r.elem}).length},l.offset={setOffset:function(n,r,a){var u,f,h,p,y,b,w,P=l.css(n,"position"),M=l(n),O={};P==="static"&&(n.style.position="relative"),y=M.offset(),h=l.css(n,"top"),b=l.css(n,"left"),w=(P==="absolute"||P==="fixed")&&(h+b).indexOf("auto")>-1,w?(u=M.position(),p=u.top,f=u.left):(p=parseFloat(h)||0,f=parseFloat(b)||0),N(r)&&(r=r.call(n,a,l.extend({},y))),r.top!=null&&(O.top=r.top-y.top+p),r.left!=null&&(O.left=r.left-y.left+f),"using"in r?r.using.call(n,O):M.css(O)}},l.fn.extend({offset:function(n){if(arguments.length)return n===void 0?this:this.each(function(f){l.offset.setOffset(this,n,f)});var r,a,u=this[0];if(u)return u.getClientRects().length?(r=u.getBoundingClientRect(),a=u.ownerDocument.defaultView,{top:r.top+a.pageYOffset,left:r.left+a.pageXOffset}):{top:0,left:0}},position:function(){if(this[0]){var n,r,a,u=this[0],f={top:0,left:0};if(l.css(u,"position")==="fixed")r=u.getBoundingClientRect();else{for(r=this.offset(),a=u.ownerDocument,n=u.offsetParent||a.documentElement;n&&(n===a.body||n===a.documentElement)&&l.css(n,"position")==="static";)n=n.parentNode;n&&n!==u&&n.nodeType===1&&(f=l(n).offset(),f.top+=l.css(n,"borderTopWidth",!0),f.left+=l.css(n,"borderLeftWidth",!0))}return{top:r.top-f.top-l.css(u,"marginTop",!0),left:r.left-f.left-l.css(u,"marginLeft",!0)}}},offsetParent:function(){return this.map(function(){for(var n=this.offsetParent;n&&l.css(n,"position")==="static";)n=n.offsetParent;return n||fi})}}),l.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},function(n,r){var a=r==="pageYOffset";l.fn[n]=function(u){return at(this,function(f,h,p){var y;if(A(f)?y=f:f.nodeType===9&&(y=f.defaultView),p===void 0)return y?y[r]:f[h];y?y.scrollTo(a?y.pageXOffset:p,a?p:y.pageYOffset):f[h]=p},n,u,arguments.length)}}),l.each(["top","left"],function(n,r){l.cssHooks[r]=Wo(S.pixelPosition,function(a,u){if(u)return u=hn(a,r),ss.test(u)?l(a).position()[r]+"px":u})}),l.each({Height:"height",Width:"width"},function(n,r){l.each({padding:"inner"+n,content:r,"":"outer"+n},function(a,u){l.fn[u]=function(f,h){var p=arguments.length&&(a||typeof f!="boolean"),y=a||(f===!0||h===!0?"margin":"border");return at(this,function(b,w,P){var M;return A(b)?u.indexOf("outer")===0?b["inner"+n]:b.document.documentElement["client"+n]:b.nodeType===9?(M=b.documentElement,Math.max(b.body["scroll"+n],M["scroll"+n],b.body["offset"+n],M["offset"+n],M["client"+n])):P===void 0?l.css(b,w,y):l.style(b,w,P,y)},r,p?f:void 0,p)}})}),l.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],function(n,r){l.fn[r]=function(a){return this.on(r,a)}}),l.fn.extend({bind:function(n,r,a){return this.on(n,null,r,a)},unbind:function(n,r){return this.off(n,null,r)},delegate:function(n,r,a,u){return this.on(r,n,a,u)},undelegate:function(n,r,a){return arguments.length===1?this.off(n,"**"):this.off(r,n||"**",a)},hover:function(n,r){return this.on("mouseenter",n).on("mouseleave",r||n)}}),l.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(n,r){l.fn[r]=function(a,u){return arguments.length>0?this.on(r,null,a,u):this.trigger(r)}});var Xu=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;l.proxy=function(n,r){var a,u,f;if(typeof r=="string"&&(a=n[r],r=n,n=a),!!N(n))return u=o.call(arguments,2),f=function(){return n.apply(r||this,u.concat(o.call(arguments)))},f.guid=n.guid=n.guid||l.guid++,f},l.holdReady=function(n){n?l.readyWait++:l.ready(!0)},l.isArray=Array.isArray,l.parseJSON=JSON.parse,l.nodeName=G,l.isFunction=N,l.isWindow=A,l.camelCase=ze,l.type=T,l.now=Date.now,l.isNumeric=function(n){var r=l.type(n);return(r==="number"||r==="string")&&!isNaN(n-parseFloat(n))},l.trim=function(n){return n==null?"":(n+"").replace(Xu,"$1")},typeof define=="function"&&define.amd&&define("jquery",[],function(){return l});var Yu=t.jQuery,Gu=t.$;return l.noConflict=function(n){return t.$===l&&(t.$=Gu),n&&t.jQuery===l&&(t.jQuery=Yu),l},typeof e>"u"&&(t.jQuery=t.$=l),l})});var Pl=xs((u_,Mr)=>{var Gp=typeof window<"u"?window:typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope?self:{};var Z=function(t){var e=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,i=0,s={},o={manual:t.Prism&&t.Prism.manual,disableWorkerMessageHandler:t.Prism&&t.Prism.disableWorkerMessageHandler,util:{encode:function A(_){return _ instanceof c?new c(_.type,A(_.content),_.alias):Array.isArray(_)?_.map(A):_.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(A){return Object.prototype.toString.call(A).slice(8,-1)},objId:function(A){return A.__id||Object.defineProperty(A,"__id",{value:++i}),A.__id},clone:function A(_,R){R=R||{};var F,T;switch(o.util.type(_)){case"Object":if(T=o.util.objId(_),R[T])return R[T];F={},R[T]=F;for(var H in _)_.hasOwnProperty(H)&&(F[H]=A(_[H],R));return F;case"Array":return T=o.util.objId(_),R[T]?R[T]:(F=[],R[T]=F,_.forEach(function(K,l){F[l]=A(K,R)}),F);default:return _}},getLanguage:function(A){for(;A;){var _=e.exec(A.className);if(_)return _[1].toLowerCase();A=A.parentElement}return"none"},setLanguage:function(A,_){A.className=A.className.replace(RegExp(e,"gi"),""),A.classList.add("language-"+_)},currentScript:function(){if(typeof document>"u")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(F){var A=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(F.stack)||[])[1];if(A){var _=document.getElementsByTagName("script");for(var R in _)if(_[R].src==A)return _[R]}return null}},isActive:function(A,_,R){for(var F="no-"+_;A;){var T=A.classList;if(T.contains(_))return!0;if(T.contains(F))return!1;A=A.parentElement}return!!R}},languages:{plain:s,plaintext:s,text:s,txt:s,extend:function(A,_){var R=o.util.clone(o.languages[A]);for(var F in _)R[F]=_[F];return R},insertBefore:function(A,_,R,F){F=F||o.languages;var T=F[A],H={};for(var K in T)if(T.hasOwnProperty(K)){if(K==_)for(var l in R)R.hasOwnProperty(l)&&(H[l]=R[l]);R.hasOwnProperty(K)||(H[K]=T[K])}var ee=F[A];return F[A]=H,o.languages.DFS(o.languages,function(G,re){re===ee&&G!=A&&(this[G]=H)}),H},DFS:function A(_,R,F,T){T=T||{};var H=o.util.objId;for(var K in _)if(_.hasOwnProperty(K)){R.call(_,K,_[K],F||K);var l=_[K],ee=o.util.type(l);ee==="Object"&&!T[H(l)]?(T[H(l)]=!0,A(l,R,null,T)):ee==="Array"&&!T[H(l)]&&(T[H(l)]=!0,A(l,R,K,T))}}},plugins:{},highlightAll:function(A,_){o.highlightAllUnder(document,A,_)},highlightAllUnder:function(A,_,R){var F={callback:R,container:A,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};o.hooks.run("before-highlightall",F),F.elements=Array.prototype.slice.apply(F.container.querySelectorAll(F.selector)),o.hooks.run("before-all-elements-highlight",F);for(var T=0,H;H=F.elements[T++];)o.highlightElement(H,_===!0,F.callback)},highlightElement:function(A,_,R){var F=o.util.getLanguage(A),T=o.languages[F];o.util.setLanguage(A,F);var H=A.parentElement;H&&H.nodeName.toLowerCase()==="pre"&&o.util.setLanguage(H,F);var K=A.textContent,l={element:A,language:F,grammar:T,code:K};function ee(re){l.highlightedCode=re,o.hooks.run("before-insert",l),l.element.innerHTML=l.highlightedCode,o.hooks.run("after-highlight",l),o.hooks.run("complete",l),R&&R.call(l.element)}if(o.hooks.run("before-sanity-check",l),H=l.element.parentElement,H&&H.nodeName.toLowerCase()==="pre"&&!H.hasAttribute("tabindex")&&H.setAttribute("tabindex","0"),!l.code){o.hooks.run("complete",l),R&&R.call(l.element);return}if(o.hooks.run("before-highlight",l),!l.grammar){ee(o.util.encode(l.code));return}if(_&&t.Worker){var G=new Worker(o.filename);G.onmessage=function(re){ee(re.data)},G.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else ee(o.highlight(l.code,l.grammar,l.language))},highlight:function(A,_,R){var F={code:A,grammar:_,language:R};if(o.hooks.run("before-tokenize",F),!F.grammar)throw new Error('The language "'+F.language+'" has no grammar.');return F.tokens=o.tokenize(F.code,F.grammar),o.hooks.run("after-tokenize",F),c.stringify(o.util.encode(F.tokens),F.language)},tokenize:function(A,_){var R=_.rest;if(R){for(var F in R)_[F]=R[F];delete _.rest}var T=new v;return C(T,T.head,A),g(A,T,_,T.head,0),I(T)},hooks:{all:{},add:function(A,_){var R=o.hooks.all;R[A]=R[A]||[],R[A].push(_)},run:function(A,_){var R=o.hooks.all[A];if(!(!R||!R.length))for(var F=0,T;T=R[F++];)T(_)}},Token:c};t.Prism=o;function c(A,_,R,F){this.type=A,this.content=_,this.alias=R,this.length=(F||"").length|0}c.stringify=function A(_,R){if(typeof _=="string")return _;if(Array.isArray(_)){var F="";return _.forEach(function(ee){F+=A(ee,R)}),F}var T={type:_.type,content:A(_.content,R),tag:"span",classes:["token",_.type],attributes:{},language:R},H=_.alias;H&&(Array.isArray(H)?Array.prototype.push.apply(T.classes,H):T.classes.push(H)),o.hooks.run("wrap",T);var K="";for(var l in T.attributes)K+=" "+l+'="'+(T.attributes[l]||"").replace(/"/g,""")+'"';return"<"+T.tag+' class="'+T.classes.join(" ")+'"'+K+">"+T.content+"</"+T.tag+">"};function d(A,_,R,F){A.lastIndex=_;var T=A.exec(R);if(T&&F&&T[1]){var H=T[1].length;T.index+=H,T[0]=T[0].slice(H)}return T}function g(A,_,R,F,T,H){for(var K in R)if(!(!R.hasOwnProperty(K)||!R[K])){var l=R[K];l=Array.isArray(l)?l:[l];for(var ee=0;ee<l.length;++ee){if(H&&H.cause==K+","+ee)return;var G=l[ee],re=G.inside,me=!!G.lookbehind,_e=!!G.greedy,se=G.alias;if(_e&&!G.pattern.global){var ye=G.pattern.toString().match(/[imsuy]*$/)[0];G.pattern=RegExp(G.pattern.source,ye+"g")}for(var je=G.pattern||G,Y=F.next,W=T;Y!==_.tail&&!(H&&W>=H.reach);W+=Y.value.length,Y=Y.next){var X=Y.value;if(_.length>A.length)return;if(!(X instanceof c)){var oe=1,de;if(_e){if(de=d(je,W,A,me),!de||de.index>=A.length)break;var Se=de.index,Pe=de.index+de[0].length,we=W;for(we+=Y.value.length;Se>=we;)Y=Y.next,we+=Y.value.length;if(we-=Y.value.length,W=we,Y.value instanceof c)continue;for(var Oe=Y;Oe!==_.tail&&(we<Pe||typeof Oe.value=="string");Oe=Oe.next)oe++,we+=Oe.value.length;oe--,X=A.slice(W,we),de.index-=W}else if(de=d(je,0,X,me),!de)continue;var Se=de.index,Ie=de[0],Ae=X.slice(0,Se),Ge=X.slice(Se+Ie.length),it=W+X.length;H&&it>H.reach&&(H.reach=it);var qe=Y.prev;Ae&&(qe=C(_,qe,Ae),W+=Ae.length),x(_,qe,oe);var Be=new c(K,re?o.tokenize(Ie,re):Ie,se,Ie);if(Y=C(_,qe,Be),Ge&&C(_,Y,Ge),oe>1){var ui={cause:K+","+ee,reach:it};g(A,_,R,Y.prev,W,ui),H&&ui.reach>H.reach&&(H.reach=ui.reach)}}}}}}function v(){var A={value:null,prev:null,next:null},_={value:null,prev:A,next:null};A.next=_,this.head=A,this.tail=_,this.length=0}function C(A,_,R){var F=_.next,T={value:R,prev:_,next:F};return _.next=T,F.prev=T,A.length++,T}function x(A,_,R){for(var F=_.next,T=0;T<R&&F!==A.tail;T++)F=F.next;_.next=F,F.prev=_,A.length-=T}function I(A){for(var _=[],R=A.head.next;R!==A.tail;)_.push(R.value),R=R.next;return _}if(!t.document)return t.addEventListener&&(o.disableWorkerMessageHandler||t.addEventListener("message",function(A){var _=JSON.parse(A.data),R=_.language,F=_.code,T=_.immediateClose;t.postMessage(o.highlight(F,o.languages[R],R)),T&&t.close()},!1)),o;var D=o.util.currentScript();D&&(o.filename=D.src,D.hasAttribute("data-manual")&&(o.manual=!0));function S(){o.manual||o.highlightAll()}if(!o.manual){var N=document.readyState;N==="loading"||N==="interactive"&&D&&D.defer?document.addEventListener("DOMContentLoaded",S):window.requestAnimationFrame?window.requestAnimationFrame(S):window.setTimeout(S,16)}return o}(Gp);typeof Mr<"u"&&Mr.exports&&(Mr.exports=Z);typeof global<"u"&&(global.Prism=Z);Z.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]};Z.languages.markup.tag.inside["attr-value"].inside.entity=Z.languages.markup.entity;Z.languages.markup.doctype.inside["internal-subset"].inside=Z.languages.markup;Z.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.replace(/&/,"&"))});Object.defineProperty(Z.languages.markup.tag,"addInlined",{value:function(e,i){var s={};s["language-"+i]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Z.languages[i]},s.cdata=/^<!\[CDATA\[|\]\]>$/i;var o={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:s}};o["language-"+i]={pattern:/[\s\S]+/,inside:Z.languages[i]};var c={};c[e]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return e}),"i"),lookbehind:!0,greedy:!0,inside:o},Z.languages.insertBefore("markup","cdata",c)}});Object.defineProperty(Z.languages.markup.tag,"addAttribute",{value:function(t,e){Z.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[e,"language-"+e],inside:Z.languages[e]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}});Z.languages.html=Z.languages.markup;Z.languages.mathml=Z.languages.markup;Z.languages.svg=Z.languages.markup;Z.languages.xml=Z.languages.extend("markup",{});Z.languages.ssml=Z.languages.xml;Z.languages.atom=Z.languages.xml;Z.languages.rss=Z.languages.xml;(function(t){var e=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;t.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:RegExp("@[\\w-](?:"+/[^;{\s"']|\s+(?!\s)/.source+"|"+e.source+")*?"+/(?:;|(?=\s*\{))/.source),inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+e.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+e.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+e.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:e,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},t.languages.css.atrule.inside.rest=t.languages.css;var i=t.languages.markup;i&&(i.tag.addInlined("style","css"),i.tag.addAttribute("style","css"))})(Z);Z.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/};Z.languages.javascript=Z.languages.extend("clike",{"class-name":[Z.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/});Z.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/;Z.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:Z.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:Z.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:Z.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:Z.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/});Z.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:Z.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}});Z.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}});Z.languages.markup&&(Z.languages.markup.tag.addInlined("script","javascript"),Z.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript"));Z.languages.js=Z.languages.javascript;(function(){if(typeof Z>"u"||typeof document>"u")return;Element.prototype.matches||(Element.prototype.matches=Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector);var t="Loading\u2026",e=function(D,S){return"\u2716 Error "+D+" while fetching file: "+S},i="\u2716 Error: File does not exist or is empty",s={js:"javascript",py:"python",rb:"ruby",ps1:"powershell",psm1:"powershell",sh:"bash",bat:"batch",h:"c",tex:"latex"},o="data-src-status",c="loading",d="loaded",g="failed",v="pre[data-src]:not(["+o+'="'+d+'"]):not(['+o+'="'+c+'"])';function C(D,S,N){var A=new XMLHttpRequest;A.open("GET",D,!0),A.onreadystatechange=function(){A.readyState==4&&(A.status<400&&A.responseText?S(A.responseText):A.status>=400?N(e(A.status,A.statusText)):N(i))},A.send(null)}function x(D){var S=/^\s*(\d+)\s*(?:(,)\s*(?:(\d+)\s*)?)?$/.exec(D||"");if(S){var N=Number(S[1]),A=S[2],_=S[3];return A?_?[N,Number(_)]:[N,void 0]:[N,N]}}Z.hooks.add("before-highlightall",function(D){D.selector+=", "+v}),Z.hooks.add("before-sanity-check",function(D){var S=D.element;if(S.matches(v)){D.code="",S.setAttribute(o,c);var N=S.appendChild(document.createElement("CODE"));N.textContent=t;var A=S.getAttribute("data-src"),_=D.language;if(_==="none"){var R=(/\.(\w+)$/.exec(A)||[,"none"])[1];_=s[R]||R}Z.util.setLanguage(N,_),Z.util.setLanguage(S,_);var F=Z.plugins.autoloader;F&&F.loadLanguages(_),C(A,function(T){S.setAttribute(o,d);var H=x(S.getAttribute("data-range"));if(H){var K=T.split(/\r\n?|\n/g),l=H[0],ee=H[1]==null?K.length:H[1];l<0&&(l+=K.length),l=Math.max(0,Math.min(l-1,K.length)),ee<0&&(ee+=K.length),ee=Math.max(0,Math.min(ee,K.length)),T=K.slice(l,ee).join(`
`),S.hasAttribute("data-start")||S.setAttribute("data-start",String(l+1))}N.textContent=T,Z.highlightElement(N)},function(T){S.setAttribute(o,g),N.textContent=T})}}),Z.plugins.fileHighlight={highlight:function(S){for(var N=(S||document).querySelectorAll(v),A=0,_;_=N[A++];)Z.highlightElement(_)}};var I=!1;Z.fileHighlight=function(){I||(console.warn("Prism.fileHighlight is deprecated. Use `Prism.plugins.fileHighlight.highlight` instead."),I=!0),Z.plugins.fileHighlight.highlight.apply(this,arguments)}})()});var du=xs((hu,Qr)=>{(function(t,e){"use strict";(function(){for(var D=0,S=["ms","moz","webkit","o"],N=0;N<S.length&&!t.requestAnimationFrame;++N)t.requestAnimationFrame=t[S[N]+"RequestAnimationFrame"],t.cancelAnimationFrame=t[S[N]+"CancelAnimationFrame"]||t[S[N]+"CancelRequestAnimationFrame"];t.requestAnimationFrame||(t.requestAnimationFrame=function(A,_){var R=new Date().getTime(),F=Math.max(0,16-(R-D)),T=t.setTimeout(function(){A(R+F)},F);return D=R+F,T}),t.cancelAnimationFrame||(t.cancelAnimationFrame=function(A){clearTimeout(A)})})();var i,s,o,c,d,g=function(D,S,N){D.addEventListener?D.addEventListener(S,N,!1):D.attachEvent?D.attachEvent("on"+S,N):D["on"+S]=N},v={autoRun:!0,barThickness:3,barColors:{0:"rgba(26, 188, 156, .9)",".25":"rgba(52, 152, 219, .9)",".50":"rgba(241, 196, 15, .9)",".75":"rgba(230, 126, 34, .9)","1.0":"rgba(211, 84, 0, .9)"},shadowBlur:10,shadowColor:"rgba(0, 0, 0, .6)",className:null},C=function(){i.width=t.innerWidth,i.height=v.barThickness*5;var D=i.getContext("2d");D.shadowBlur=v.shadowBlur,D.shadowColor=v.shadowColor;var S=D.createLinearGradient(0,0,i.width,0);for(var N in v.barColors)S.addColorStop(N,v.barColors[N]);D.lineWidth=v.barThickness,D.beginPath(),D.moveTo(0,v.barThickness/2),D.lineTo(Math.ceil(c*i.width),v.barThickness/2),D.strokeStyle=S,D.stroke()},x=function(){i=e.createElement("canvas");var D=i.style;D.position="fixed",D.top=D.left=D.right=D.margin=D.padding=0,D.zIndex=100001,D.display="none",v.className&&i.classList.add(v.className),e.body.appendChild(i),g(t,"resize",C)},I={config:function(D){for(var S in D)v.hasOwnProperty(S)&&(v[S]=D[S])},show:function(){d||(d=!0,o!==null&&t.cancelAnimationFrame(o),i||x(),i.style.opacity=1,i.style.display="block",I.progress(0),v.autoRun&&function D(){s=t.requestAnimationFrame(D),I.progress("+"+.05*Math.pow(1-Math.sqrt(c),2))}())},progress:function(D){return typeof D>"u"||(typeof D=="string"&&(D=(D.indexOf("+")>=0||D.indexOf("-")>=0?c:0)+parseFloat(D)),c=D>1?1:D,C()),c},hide:function(){d&&(d=!1,s!=null&&(t.cancelAnimationFrame(s),s=null),function D(){if(I.progress("+.1")>=1&&(i.style.opacity-=.05,i.style.opacity<=.05)){i.style.display="none",o=null;return}o=t.requestAnimationFrame(D)}())}};typeof Qr=="object"&&typeof Qr.exports=="object"?Qr.exports=I:typeof define=="function"&&define.amd?define(function(){return I}):this.topbar=I}).call(hu,window,document)});var Lo=yn(ar());var vr={};uc(vr,{afterMain:()=>ba,afterRead:()=>ga,afterWrite:()=>Ea,applyStyles:()=>Vi,arrow:()=>ur,auto:()=>_n,basePlacements:()=>Ht,beforeMain:()=>ma,beforeRead:()=>da,beforeWrite:()=>ya,bottom:()=>De,clippingParents:()=>Cs,computeStyles:()=>qi,createPopper:()=>On,createPopperBase:()=>Da,createPopperLite:()=>La,detectOverflow:()=>Ye,end:()=>Jt,eventListeners:()=>zi,flip:()=>dr,hide:()=>pr,left:()=>Ce,main:()=>va,modifierPhases:()=>ks,offset:()=>gr,placements:()=>An,popper:()=>mi,popperGenerator:()=>wi,popperOffsets:()=>Yi,preventOverflow:()=>mr,read:()=>pa,reference:()=>Ss,right:()=>ke,start:()=>kt,top:()=>Te,variationPlacements:()=>lr,viewport:()=>En,write:()=>_a});var Te="top",De="bottom",ke="right",Ce="left",_n="auto",Ht=[Te,De,ke,Ce],kt="start",Jt="end",Cs="clippingParents",En="viewport",mi="popper",Ss="reference",lr=Ht.reduce(function(t,e){return t.concat([e+"-"+kt,e+"-"+Jt])},[]),An=[].concat(Ht,[_n]).reduce(function(t,e){return t.concat([e,e+"-"+kt,e+"-"+Jt])},[]),da="beforeRead",pa="read",ga="afterRead",ma="beforeMain",va="main",ba="afterMain",ya="beforeWrite",_a="write",Ea="afterWrite",ks=[da,pa,ga,ma,va,ba,ya,_a,Ea];function Re(t){return t?(t.nodeName||"").toLowerCase():null}function Ee(t){if(t==null)return window;if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ft(t){var e=Ee(t).Element;return t instanceof e||t instanceof Element}function Ne(t){var e=Ee(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Ui(t){if(typeof ShadowRoot>"u")return!1;var e=Ee(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function fc(t){var e=t.state;Object.keys(e.elements).forEach(function(i){var s=e.styles[i]||{},o=e.attributes[i]||{},c=e.elements[i];!Ne(c)||!Re(c)||(Object.assign(c.style,s),Object.keys(o).forEach(function(d){var g=o[d];g===!1?c.removeAttribute(d):c.setAttribute(d,g===!0?"":g)}))})}function hc(t){var e=t.state,i={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,i.popper),e.styles=i,e.elements.arrow&&Object.assign(e.elements.arrow.style,i.arrow),function(){Object.keys(e.elements).forEach(function(s){var o=e.elements[s],c=e.attributes[s]||{},d=Object.keys(e.styles.hasOwnProperty(s)?e.styles[s]:i[s]),g=d.reduce(function(v,C){return v[C]="",v},{});!Ne(o)||!Re(o)||(Object.assign(o.style,g),Object.keys(c).forEach(function(v){o.removeAttribute(v)}))})}}var Vi={name:"applyStyles",enabled:!0,phase:"write",fn:fc,effect:hc,requires:["computeStyles"]};function $e(t){return t.split("-")[0]}var yt=Math.max,vi=Math.min,Ft=Math.round;function Wi(){var t=navigator.userAgentData;return t!=null&&t.brands&&Array.isArray(t.brands)?t.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Tn(){return!/^((?!chrome|android).)*safari/i.test(Wi())}function ht(t,e,i){e===void 0&&(e=!1),i===void 0&&(i=!1);var s=t.getBoundingClientRect(),o=1,c=1;e&&Ne(t)&&(o=t.offsetWidth>0&&Ft(s.width)/t.offsetWidth||1,c=t.offsetHeight>0&&Ft(s.height)/t.offsetHeight||1);var d=ft(t)?Ee(t):window,g=d.visualViewport,v=!Tn()&&i,C=(s.left+(v&&g?g.offsetLeft:0))/o,x=(s.top+(v&&g?g.offsetTop:0))/c,I=s.width/o,D=s.height/c;return{width:I,height:D,top:x,right:C+I,bottom:x+D,left:C,x:C,y:x}}function bi(t){var e=ht(t),i=t.offsetWidth,s=t.offsetHeight;return Math.abs(e.width-i)<=1&&(i=e.width),Math.abs(e.height-s)<=1&&(s=e.height),{x:t.offsetLeft,y:t.offsetTop,width:i,height:s}}function wn(t,e){var i=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(i&&Ui(i)){var s=e;do{if(s&&t.isSameNode(s))return!0;s=s.parentNode||s.host}while(s)}return!1}function Xe(t){return Ee(t).getComputedStyle(t)}function Os(t){return["table","td","th"].indexOf(Re(t))>=0}function Fe(t){return((ft(t)?t.ownerDocument:t.document)||window.document).documentElement}function jt(t){return Re(t)==="html"?t:t.assignedSlot||t.parentNode||(Ui(t)?t.host:null)||Fe(t)}function Aa(t){return!Ne(t)||Xe(t).position==="fixed"?null:t.offsetParent}function dc(t){var e=/firefox/i.test(Wi()),i=/Trident/i.test(Wi());if(i&&Ne(t)){var s=Xe(t);if(s.position==="fixed")return null}var o=jt(t);for(Ui(o)&&(o=o.host);Ne(o)&&["html","body"].indexOf(Re(o))<0;){var c=Xe(o);if(c.transform!=="none"||c.perspective!=="none"||c.contain==="paint"||["transform","perspective"].indexOf(c.willChange)!==-1||e&&c.willChange==="filter"||e&&c.filter&&c.filter!=="none")return o;o=o.parentNode}return null}function _t(t){for(var e=Ee(t),i=Aa(t);i&&Os(i)&&Xe(i).position==="static";)i=Aa(i);return i&&(Re(i)==="html"||Re(i)==="body"&&Xe(i).position==="static")?e:i||dc(t)||e}function yi(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function _i(t,e,i){return yt(t,vi(e,i))}function Ta(t,e,i){var s=_i(t,e,i);return s>i?i:s}function xn(){return{top:0,right:0,bottom:0,left:0}}function Cn(t){return Object.assign({},xn(),t)}function Sn(t,e){return e.reduce(function(i,s){return i[s]=t,i},{})}var pc=function(e,i){return e=typeof e=="function"?e(Object.assign({},i.rects,{placement:i.placement})):e,Cn(typeof e!="number"?e:Sn(e,Ht))};function gc(t){var e,i=t.state,s=t.name,o=t.options,c=i.elements.arrow,d=i.modifiersData.popperOffsets,g=$e(i.placement),v=yi(g),C=[Ce,ke].indexOf(g)>=0,x=C?"height":"width";if(!(!c||!d)){var I=pc(o.padding,i),D=bi(c),S=v==="y"?Te:Ce,N=v==="y"?De:ke,A=i.rects.reference[x]+i.rects.reference[v]-d[v]-i.rects.popper[x],_=d[v]-i.rects.reference[v],R=_t(c),F=R?v==="y"?R.clientHeight||0:R.clientWidth||0:0,T=A/2-_/2,H=I[S],K=F-D[x]-I[N],l=F/2-D[x]/2+T,ee=_i(H,l,K),G=v;i.modifiersData[s]=(e={},e[G]=ee,e.centerOffset=ee-l,e)}}function mc(t){var e=t.state,i=t.options,s=i.element,o=s===void 0?"[data-popper-arrow]":s;o!=null&&(typeof o=="string"&&(o=e.elements.popper.querySelector(o),!o)||wn(e.elements.popper,o)&&(e.elements.arrow=o))}var ur={name:"arrow",enabled:!0,phase:"main",fn:gc,effect:mc,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function dt(t){return t.split("-")[1]}var vc={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bc(t,e){var i=t.x,s=t.y,o=e.devicePixelRatio||1;return{x:Ft(i*o)/o||0,y:Ft(s*o)/o||0}}function wa(t){var e,i=t.popper,s=t.popperRect,o=t.placement,c=t.variation,d=t.offsets,g=t.position,v=t.gpuAcceleration,C=t.adaptive,x=t.roundOffsets,I=t.isFixed,D=d.x,S=D===void 0?0:D,N=d.y,A=N===void 0?0:N,_=typeof x=="function"?x({x:S,y:A}):{x:S,y:A};S=_.x,A=_.y;var R=d.hasOwnProperty("x"),F=d.hasOwnProperty("y"),T=Ce,H=Te,K=window;if(C){var l=_t(i),ee="clientHeight",G="clientWidth";if(l===Ee(i)&&(l=Fe(i),Xe(l).position!=="static"&&g==="absolute"&&(ee="scrollHeight",G="scrollWidth")),l=l,o===Te||(o===Ce||o===ke)&&c===Jt){H=De;var re=I&&l===K&&K.visualViewport?K.visualViewport.height:l[ee];A-=re-s.height,A*=v?1:-1}if(o===Ce||(o===Te||o===De)&&c===Jt){T=ke;var me=I&&l===K&&K.visualViewport?K.visualViewport.width:l[G];S-=me-s.width,S*=v?1:-1}}var _e=Object.assign({position:g},C&&vc),se=x===!0?bc({x:S,y:A},Ee(i)):{x:S,y:A};if(S=se.x,A=se.y,v){var ye;return Object.assign({},_e,(ye={},ye[H]=F?"0":"",ye[T]=R?"0":"",ye.transform=(K.devicePixelRatio||1)<=1?"translate("+S+"px, "+A+"px)":"translate3d("+S+"px, "+A+"px, 0)",ye))}return Object.assign({},_e,(e={},e[H]=F?A+"px":"",e[T]=R?S+"px":"",e.transform="",e))}function yc(t){var e=t.state,i=t.options,s=i.gpuAcceleration,o=s===void 0?!0:s,c=i.adaptive,d=c===void 0?!0:c,g=i.roundOffsets,v=g===void 0?!0:g,C={placement:$e(e.placement),variation:dt(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,wa(Object.assign({},C,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:d,roundOffsets:v})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,wa(Object.assign({},C,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:v})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var qi={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:yc,data:{}};var cr={passive:!0};function _c(t){var e=t.state,i=t.instance,s=t.options,o=s.scroll,c=o===void 0?!0:o,d=s.resize,g=d===void 0?!0:d,v=Ee(e.elements.popper),C=[].concat(e.scrollParents.reference,e.scrollParents.popper);return c&&C.forEach(function(x){x.addEventListener("scroll",i.update,cr)}),g&&v.addEventListener("resize",i.update,cr),function(){c&&C.forEach(function(x){x.removeEventListener("scroll",i.update,cr)}),g&&v.removeEventListener("resize",i.update,cr)}}var zi={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:_c,data:{}};var Ec={left:"right",right:"left",bottom:"top",top:"bottom"};function Ki(t){return t.replace(/left|right|bottom|top/g,function(e){return Ec[e]})}var Ac={start:"end",end:"start"};function fr(t){return t.replace(/start|end/g,function(e){return Ac[e]})}function Ei(t){var e=Ee(t),i=e.pageXOffset,s=e.pageYOffset;return{scrollLeft:i,scrollTop:s}}function Ai(t){return ht(Fe(t)).left+Ei(t).scrollLeft}function Ds(t,e){var i=Ee(t),s=Fe(t),o=i.visualViewport,c=s.clientWidth,d=s.clientHeight,g=0,v=0;if(o){c=o.width,d=o.height;var C=Tn();(C||!C&&e==="fixed")&&(g=o.offsetLeft,v=o.offsetTop)}return{width:c,height:d,x:g+Ai(t),y:v}}function Ls(t){var e,i=Fe(t),s=Ei(t),o=(e=t.ownerDocument)==null?void 0:e.body,c=yt(i.scrollWidth,i.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),d=yt(i.scrollHeight,i.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),g=-s.scrollLeft+Ai(t),v=-s.scrollTop;return Xe(o||i).direction==="rtl"&&(g+=yt(i.clientWidth,o?o.clientWidth:0)-c),{width:c,height:d,x:g,y:v}}function Ti(t){var e=Xe(t),i=e.overflow,s=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(i+o+s)}function hr(t){return["html","body","#document"].indexOf(Re(t))>=0?t.ownerDocument.body:Ne(t)&&Ti(t)?t:hr(jt(t))}function Qt(t,e){var i;e===void 0&&(e=[]);var s=hr(t),o=s===((i=t.ownerDocument)==null?void 0:i.body),c=Ee(s),d=o?[c].concat(c.visualViewport||[],Ti(s)?s:[]):s,g=e.concat(d);return o?g:g.concat(Qt(jt(d)))}function Xi(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Tc(t,e){var i=ht(t,!1,e==="fixed");return i.top=i.top+t.clientTop,i.left=i.left+t.clientLeft,i.bottom=i.top+t.clientHeight,i.right=i.left+t.clientWidth,i.width=t.clientWidth,i.height=t.clientHeight,i.x=i.left,i.y=i.top,i}function xa(t,e,i){return e===En?Xi(Ds(t,i)):ft(e)?Tc(e,i):Xi(Ls(Fe(t)))}function wc(t){var e=Qt(jt(t)),i=["absolute","fixed"].indexOf(Xe(t).position)>=0,s=i&&Ne(t)?_t(t):t;return ft(s)?e.filter(function(o){return ft(o)&&wn(o,s)&&Re(o)!=="body"}):[]}function Ns(t,e,i,s){var o=e==="clippingParents"?wc(t):[].concat(e),c=[].concat(o,[i]),d=c[0],g=c.reduce(function(v,C){var x=xa(t,C,s);return v.top=yt(x.top,v.top),v.right=vi(x.right,v.right),v.bottom=vi(x.bottom,v.bottom),v.left=yt(x.left,v.left),v},xa(t,d,s));return g.width=g.right-g.left,g.height=g.bottom-g.top,g.x=g.left,g.y=g.top,g}function kn(t){var e=t.reference,i=t.element,s=t.placement,o=s?$e(s):null,c=s?dt(s):null,d=e.x+e.width/2-i.width/2,g=e.y+e.height/2-i.height/2,v;switch(o){case Te:v={x:d,y:e.y-i.height};break;case De:v={x:d,y:e.y+e.height};break;case ke:v={x:e.x+e.width,y:g};break;case Ce:v={x:e.x-i.width,y:g};break;default:v={x:e.x,y:e.y}}var C=o?yi(o):null;if(C!=null){var x=C==="y"?"height":"width";switch(c){case kt:v[C]=v[C]-(e[x]/2-i[x]/2);break;case Jt:v[C]=v[C]+(e[x]/2-i[x]/2);break;default:}}return v}function Ye(t,e){e===void 0&&(e={});var i=e,s=i.placement,o=s===void 0?t.placement:s,c=i.strategy,d=c===void 0?t.strategy:c,g=i.boundary,v=g===void 0?Cs:g,C=i.rootBoundary,x=C===void 0?En:C,I=i.elementContext,D=I===void 0?mi:I,S=i.altBoundary,N=S===void 0?!1:S,A=i.padding,_=A===void 0?0:A,R=Cn(typeof _!="number"?_:Sn(_,Ht)),F=D===mi?Ss:mi,T=t.rects.popper,H=t.elements[N?F:D],K=Ns(ft(H)?H:H.contextElement||Fe(t.elements.popper),v,x,d),l=ht(t.elements.reference),ee=kn({reference:l,element:T,strategy:"absolute",placement:o}),G=Xi(Object.assign({},T,ee)),re=D===mi?G:l,me={top:K.top-re.top+R.top,bottom:re.bottom-K.bottom+R.bottom,left:K.left-re.left+R.left,right:re.right-K.right+R.right},_e=t.modifiersData.offset;if(D===mi&&_e){var se=_e[o];Object.keys(me).forEach(function(ye){var je=[ke,De].indexOf(ye)>=0?1:-1,Y=[Te,De].indexOf(ye)>=0?"y":"x";me[ye]+=se[Y]*je})}return me}function Ps(t,e){e===void 0&&(e={});var i=e,s=i.placement,o=i.boundary,c=i.rootBoundary,d=i.padding,g=i.flipVariations,v=i.allowedAutoPlacements,C=v===void 0?An:v,x=dt(s),I=x?g?lr:lr.filter(function(N){return dt(N)===x}):Ht,D=I.filter(function(N){return C.indexOf(N)>=0});D.length===0&&(D=I);var S=D.reduce(function(N,A){return N[A]=Ye(t,{placement:A,boundary:o,rootBoundary:c,padding:d})[$e(A)],N},{});return Object.keys(S).sort(function(N,A){return S[N]-S[A]})}function xc(t){if($e(t)===_n)return[];var e=Ki(t);return[fr(t),e,fr(e)]}function Cc(t){var e=t.state,i=t.options,s=t.name;if(!e.modifiersData[s]._skip){for(var o=i.mainAxis,c=o===void 0?!0:o,d=i.altAxis,g=d===void 0?!0:d,v=i.fallbackPlacements,C=i.padding,x=i.boundary,I=i.rootBoundary,D=i.altBoundary,S=i.flipVariations,N=S===void 0?!0:S,A=i.allowedAutoPlacements,_=e.options.placement,R=$e(_),F=R===_,T=v||(F||!N?[Ki(_)]:xc(_)),H=[_].concat(T).reduce(function(Ie,Ae){return Ie.concat($e(Ae)===_n?Ps(e,{placement:Ae,boundary:x,rootBoundary:I,padding:C,flipVariations:N,allowedAutoPlacements:A}):Ae)},[]),K=e.rects.reference,l=e.rects.popper,ee=new Map,G=!0,re=H[0],me=0;me<H.length;me++){var _e=H[me],se=$e(_e),ye=dt(_e)===kt,je=[Te,De].indexOf(se)>=0,Y=je?"width":"height",W=Ye(e,{placement:_e,boundary:x,rootBoundary:I,altBoundary:D,padding:C}),X=je?ye?ke:Ce:ye?De:Te;K[Y]>l[Y]&&(X=Ki(X));var oe=Ki(X),de=[];if(c&&de.push(W[se]<=0),g&&de.push(W[X]<=0,W[oe]<=0),de.every(function(Ie){return Ie})){re=_e,G=!1;break}ee.set(_e,de)}if(G)for(var Pe=N?3:1,we=function(Ae){var Ge=H.find(function(it){var qe=ee.get(it);if(qe)return qe.slice(0,Ae).every(function(Be){return Be})});if(Ge)return re=Ge,"break"},Oe=Pe;Oe>0;Oe--){var Se=we(Oe);if(Se==="break")break}e.placement!==re&&(e.modifiersData[s]._skip=!0,e.placement=re,e.reset=!0)}}var dr={name:"flip",enabled:!0,phase:"main",fn:Cc,requiresIfExists:["offset"],data:{_skip:!1}};function Ca(t,e,i){return i===void 0&&(i={x:0,y:0}),{top:t.top-e.height-i.y,right:t.right-e.width+i.x,bottom:t.bottom-e.height+i.y,left:t.left-e.width-i.x}}function Sa(t){return[Te,ke,De,Ce].some(function(e){return t[e]>=0})}function Sc(t){var e=t.state,i=t.name,s=e.rects.reference,o=e.rects.popper,c=e.modifiersData.preventOverflow,d=Ye(e,{elementContext:"reference"}),g=Ye(e,{altBoundary:!0}),v=Ca(d,s),C=Ca(g,o,c),x=Sa(v),I=Sa(C);e.modifiersData[i]={referenceClippingOffsets:v,popperEscapeOffsets:C,isReferenceHidden:x,hasPopperEscaped:I},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":x,"data-popper-escaped":I})}var pr={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:Sc};function kc(t,e,i){var s=$e(t),o=[Ce,Te].indexOf(s)>=0?-1:1,c=typeof i=="function"?i(Object.assign({},e,{placement:t})):i,d=c[0],g=c[1];return d=d||0,g=(g||0)*o,[Ce,ke].indexOf(s)>=0?{x:g,y:d}:{x:d,y:g}}function Oc(t){var e=t.state,i=t.options,s=t.name,o=i.offset,c=o===void 0?[0,0]:o,d=An.reduce(function(x,I){return x[I]=kc(I,e.rects,c),x},{}),g=d[e.placement],v=g.x,C=g.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=v,e.modifiersData.popperOffsets.y+=C),e.modifiersData[s]=d}var gr={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:Oc};function Dc(t){var e=t.state,i=t.name;e.modifiersData[i]=kn({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var Yi={name:"popperOffsets",enabled:!0,phase:"read",fn:Dc,data:{}};function Is(t){return t==="x"?"y":"x"}function Lc(t){var e=t.state,i=t.options,s=t.name,o=i.mainAxis,c=o===void 0?!0:o,d=i.altAxis,g=d===void 0?!1:d,v=i.boundary,C=i.rootBoundary,x=i.altBoundary,I=i.padding,D=i.tether,S=D===void 0?!0:D,N=i.tetherOffset,A=N===void 0?0:N,_=Ye(e,{boundary:v,rootBoundary:C,padding:I,altBoundary:x}),R=$e(e.placement),F=dt(e.placement),T=!F,H=yi(R),K=Is(H),l=e.modifiersData.popperOffsets,ee=e.rects.reference,G=e.rects.popper,re=typeof A=="function"?A(Object.assign({},e.rects,{placement:e.placement})):A,me=typeof re=="number"?{mainAxis:re,altAxis:re}:Object.assign({mainAxis:0,altAxis:0},re),_e=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,se={x:0,y:0};if(l){if(c){var ye,je=H==="y"?Te:Ce,Y=H==="y"?De:ke,W=H==="y"?"height":"width",X=l[H],oe=X+_[je],de=X-_[Y],Pe=S?-G[W]/2:0,we=F===kt?ee[W]:G[W],Oe=F===kt?-G[W]:-ee[W],Se=e.elements.arrow,Ie=S&&Se?bi(Se):{width:0,height:0},Ae=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:xn(),Ge=Ae[je],it=Ae[Y],qe=_i(0,ee[W],Ie[W]),Be=T?ee[W]/2-Pe-qe-Ge-me.mainAxis:we-qe-Ge-me.mainAxis,ui=T?-ee[W]/2+Pe+qe+it+me.mainAxis:Oe+qe+it+me.mainAxis,At=e.elements.arrow&&_t(e.elements.arrow),Pi=At?H==="y"?At.clientTop||0:At.clientLeft||0:0,ln=(ye=_e?.[H])!=null?ye:0,es=X+Be-ln-Pi,un=X+ui-ln,ci=_i(S?vi(oe,es):oe,X,S?yt(de,un):de);l[H]=ci,se[H]=ci-X}if(g){var at,ts=H==="x"?Te:Ce,is=H==="x"?De:ke,It=l[K],ze=K==="y"?"height":"width",zt=It+_[ts],Kt=It-_[is],J=[Te,Ce].indexOf(R)!==-1,Me=(at=_e?.[K])!=null?at:0,Xn=J?zt:It-ee[ze]-G[ze]-Me+me.altAxis,Yn=J?It+ee[ze]+G[ze]-Me-me.altAxis:Kt,Gn=S&&J?Ta(Xn,It,Yn):_i(S?Xn:zt,It,S?Yn:Kt);l[K]=Gn,se[K]=Gn-It}e.modifiersData[s]=se}}var mr={name:"preventOverflow",enabled:!0,phase:"main",fn:Lc,requiresIfExists:["offset"]};function Rs(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function $s(t){return t===Ee(t)||!Ne(t)?Ei(t):Rs(t)}function Nc(t){var e=t.getBoundingClientRect(),i=Ft(e.width)/t.offsetWidth||1,s=Ft(e.height)/t.offsetHeight||1;return i!==1||s!==1}function Ms(t,e,i){i===void 0&&(i=!1);var s=Ne(e),o=Ne(e)&&Nc(e),c=Fe(e),d=ht(t,o,i),g={scrollLeft:0,scrollTop:0},v={x:0,y:0};return(s||!s&&!i)&&((Re(e)!=="body"||Ti(c))&&(g=$s(e)),Ne(e)?(v=ht(e,!0),v.x+=e.clientLeft,v.y+=e.clientTop):c&&(v.x=Ai(c))),{x:d.left+g.scrollLeft-v.x,y:d.top+g.scrollTop-v.y,width:d.width,height:d.height}}function Pc(t){var e=new Map,i=new Set,s=[];t.forEach(function(c){e.set(c.name,c)});function o(c){i.add(c.name);var d=[].concat(c.requires||[],c.requiresIfExists||[]);d.forEach(function(g){if(!i.has(g)){var v=e.get(g);v&&o(v)}}),s.push(c)}return t.forEach(function(c){i.has(c.name)||o(c)}),s}function Hs(t){var e=Pc(t);return ks.reduce(function(i,s){return i.concat(e.filter(function(o){return o.phase===s}))},[])}function Fs(t){var e;return function(){return e||(e=new Promise(function(i){Promise.resolve().then(function(){e=void 0,i(t())})})),e}}function js(t){var e=t.reduce(function(i,s){var o=i[s.name];return i[s.name]=o?Object.assign({},o,s,{options:Object.assign({},o.options,s.options),data:Object.assign({},o.data,s.data)}):s,i},{});return Object.keys(e).map(function(i){return e[i]})}var ka={placement:"bottom",modifiers:[],strategy:"absolute"};function Oa(){for(var t=arguments.length,e=new Array(t),i=0;i<t;i++)e[i]=arguments[i];return!e.some(function(s){return!(s&&typeof s.getBoundingClientRect=="function")})}function wi(t){t===void 0&&(t={});var e=t,i=e.defaultModifiers,s=i===void 0?[]:i,o=e.defaultOptions,c=o===void 0?ka:o;return function(g,v,C){C===void 0&&(C=c);var x={placement:"bottom",orderedModifiers:[],options:Object.assign({},ka,c),modifiersData:{},elements:{reference:g,popper:v},attributes:{},styles:{}},I=[],D=!1,S={state:x,setOptions:function(R){var F=typeof R=="function"?R(x.options):R;A(),x.options=Object.assign({},c,x.options,F),x.scrollParents={reference:ft(g)?Qt(g):g.contextElement?Qt(g.contextElement):[],popper:Qt(v)};var T=Hs(js([].concat(s,x.options.modifiers)));return x.orderedModifiers=T.filter(function(H){return H.enabled}),N(),S.update()},forceUpdate:function(){if(!D){var R=x.elements,F=R.reference,T=R.popper;if(Oa(F,T)){x.rects={reference:Ms(F,_t(T),x.options.strategy==="fixed"),popper:bi(T)},x.reset=!1,x.placement=x.options.placement,x.orderedModifiers.forEach(function(me){return x.modifiersData[me.name]=Object.assign({},me.data)});for(var H=0;H<x.orderedModifiers.length;H++){if(x.reset===!0){x.reset=!1,H=-1;continue}var K=x.orderedModifiers[H],l=K.fn,ee=K.options,G=ee===void 0?{}:ee,re=K.name;typeof l=="function"&&(x=l({state:x,options:G,name:re,instance:S})||x)}}}},update:Fs(function(){return new Promise(function(_){S.forceUpdate(),_(x)})}),destroy:function(){A(),D=!0}};if(!Oa(g,v))return S;S.setOptions(C).then(function(_){!D&&C.onFirstUpdate&&C.onFirstUpdate(_)});function N(){x.orderedModifiers.forEach(function(_){var R=_.name,F=_.options,T=F===void 0?{}:F,H=_.effect;if(typeof H=="function"){var K=H({state:x,name:R,instance:S,options:T}),l=function(){};I.push(K||l)}})}function A(){I.forEach(function(_){return _()}),I=[]}return S}}var Da=wi();var Ic=[zi,Yi,qi,Vi],La=wi({defaultModifiers:Ic});var Rc=[zi,Yi,qi,Vi,gr,dr,mr,ur,pr],On=wi({defaultModifiers:Rc});var Zt=new Map,Bs={set(t,e,i){Zt.has(t)||Zt.set(t,new Map);let s=Zt.get(t);if(!s.has(e)&&s.size!==0){console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(s.keys())[0]}.`);return}s.set(e,i)},get(t,e){return Zt.has(t)&&Zt.get(t).get(e)||null},remove(t,e){if(!Zt.has(t))return;let i=Zt.get(t);i.delete(e),i.size===0&&Zt.delete(t)}},$c=1e6,Mc=1e3,io="transitionend",ol=t=>(t&&window.CSS&&window.CSS.escape&&(t=t.replace(/#([^\s"#']+)/g,(e,i)=>`#${CSS.escape(i)}`)),t),Hc=t=>t==null?`${t}`:Object.prototype.toString.call(t).match(/\s([a-z]+)/i)[1].toLowerCase(),Fc=t=>{do t+=Math.floor(Math.random()*$c);while(document.getElementById(t));return t},jc=t=>{if(!t)return 0;let{transitionDuration:e,transitionDelay:i}=window.getComputedStyle(t),s=Number.parseFloat(e),o=Number.parseFloat(i);return!s&&!o?0:(e=e.split(",")[0],i=i.split(",")[0],(Number.parseFloat(e)+Number.parseFloat(i))*Mc)},al=t=>{t.dispatchEvent(new Event(io))},Bt=t=>!t||typeof t!="object"?!1:(typeof t.jquery<"u"&&(t=t[0]),typeof t.nodeType<"u"),ei=t=>Bt(t)?t.jquery?t[0]:t:typeof t=="string"&&t.length>0?document.querySelector(ol(t)):null,rn=t=>{if(!Bt(t)||t.getClientRects().length===0)return!1;let e=getComputedStyle(t).getPropertyValue("visibility")==="visible",i=t.closest("details:not([open])");if(!i)return e;if(i!==t){let s=t.closest("summary");if(s&&s.parentNode!==i||s===null)return!1}return e},ti=t=>!t||t.nodeType!==Node.ELEMENT_NODE||t.classList.contains("disabled")?!0:typeof t.disabled<"u"?t.disabled:t.hasAttribute("disabled")&&t.getAttribute("disabled")!=="false",ll=t=>{if(!document.documentElement.attachShadow)return null;if(typeof t.getRootNode=="function"){let e=t.getRootNode();return e instanceof ShadowRoot?e:null}return t instanceof ShadowRoot?t:t.parentNode?ll(t.parentNode):null},Cr=()=>{},Rn=t=>{t.offsetHeight},ul=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Us=[],Bc=t=>{document.readyState==="loading"?(Us.length||document.addEventListener("DOMContentLoaded",()=>{for(let e of Us)e()}),Us.push(t)):t()},pt=()=>document.documentElement.dir==="rtl",mt=t=>{Bc(()=>{let e=ul();if(e){let i=t.NAME,s=e.fn[i];e.fn[i]=t.jQueryInterface,e.fn[i].Constructor=t,e.fn[i].noConflict=()=>(e.fn[i]=s,t.jQueryInterface)}})},et=(t,e=[],i=t)=>typeof t=="function"?t(...e):i,cl=(t,e,i=!0)=>{if(!i){et(t);return}let o=jc(e)+5,c=!1,d=({target:g})=>{g===e&&(c=!0,e.removeEventListener(io,d),et(t))};e.addEventListener(io,d),setTimeout(()=>{c||al(e)},o)},ao=(t,e,i,s)=>{let o=t.length,c=t.indexOf(e);return c===-1?!i&&s?t[o-1]:t[0]:(c+=i?1:-1,s&&(c=(c+o)%o),t[Math.max(0,Math.min(c,o-1))])},Uc=/[^.]*(?=\..*)\.|.*/,Vc=/\..*/,Wc=/::\d+$/,Vs={},Na=1,fl={mouseenter:"mouseover",mouseleave:"mouseout"},qc=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 hl(t,e){return e&&`${e}::${Na++}`||t.uidEvent||Na++}function dl(t){let e=hl(t);return t.uidEvent=e,Vs[e]=Vs[e]||{},Vs[e]}function zc(t,e){return function i(s){return lo(s,{delegateTarget:t}),i.oneOff&&B.off(t,s.type,e),e.apply(t,[s])}}function Kc(t,e,i){return function s(o){let c=t.querySelectorAll(e);for(let{target:d}=o;d&&d!==this;d=d.parentNode)for(let g of c)if(g===d)return lo(o,{delegateTarget:d}),s.oneOff&&B.off(t,o.type,e,i),i.apply(d,[o])}}function pl(t,e,i=null){return Object.values(t).find(s=>s.callable===e&&s.delegationSelector===i)}function gl(t,e,i){let s=typeof e=="string",o=s?i:e||i,c=ml(t);return qc.has(c)||(c=t),[s,o,c]}function Pa(t,e,i,s,o){if(typeof e!="string"||!t)return;let[c,d,g]=gl(e,i,s);e in fl&&(d=(N=>function(A){if(!A.relatedTarget||A.relatedTarget!==A.delegateTarget&&!A.delegateTarget.contains(A.relatedTarget))return N.call(this,A)})(d));let v=dl(t),C=v[g]||(v[g]={}),x=pl(C,d,c?i:null);if(x){x.oneOff=x.oneOff&&o;return}let I=hl(d,e.replace(Uc,"")),D=c?Kc(t,i,d):zc(t,d);D.delegationSelector=c?i:null,D.callable=d,D.oneOff=o,D.uidEvent=I,C[I]=D,t.addEventListener(g,D,c)}function no(t,e,i,s,o){let c=pl(e[i],s,o);c&&(t.removeEventListener(i,c,!!o),delete e[i][c.uidEvent])}function Xc(t,e,i,s){let o=e[i]||{};for(let[c,d]of Object.entries(o))c.includes(s)&&no(t,e,i,d.callable,d.delegationSelector)}function ml(t){return t=t.replace(Vc,""),fl[t]||t}var B={on(t,e,i,s){Pa(t,e,i,s,!1)},one(t,e,i,s){Pa(t,e,i,s,!0)},off(t,e,i,s){if(typeof e!="string"||!t)return;let[o,c,d]=gl(e,i,s),g=d!==e,v=dl(t),C=v[d]||{},x=e.startsWith(".");if(typeof c<"u"){if(!Object.keys(C).length)return;no(t,v,d,c,o?i:null);return}if(x)for(let I of Object.keys(v))Xc(t,v,I,e.slice(1));for(let[I,D]of Object.entries(C)){let S=I.replace(Wc,"");(!g||e.includes(S))&&no(t,v,d,D.callable,D.delegationSelector)}},trigger(t,e,i){if(typeof e!="string"||!t)return null;let s=ul(),o=ml(e),c=e!==o,d=null,g=!0,v=!0,C=!1;c&&s&&(d=s.Event(e,i),s(t).trigger(d),g=!d.isPropagationStopped(),v=!d.isImmediatePropagationStopped(),C=d.isDefaultPrevented());let x=lo(new Event(e,{bubbles:g,cancelable:!0}),i);return C&&x.preventDefault(),v&&t.dispatchEvent(x),x.defaultPrevented&&d&&d.preventDefault(),x}};function lo(t,e={}){for(let[i,s]of Object.entries(e))try{t[i]=s}catch{Object.defineProperty(t,i,{configurable:!0,get(){return s}})}return t}function Ia(t){if(t==="true")return!0;if(t==="false")return!1;if(t===Number(t).toString())return Number(t);if(t===""||t==="null")return null;if(typeof t!="string")return t;try{return JSON.parse(decodeURIComponent(t))}catch{return t}}function Ws(t){return t.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}var Ut={setDataAttribute(t,e,i){t.setAttribute(`data-bs-${Ws(e)}`,i)},removeDataAttribute(t,e){t.removeAttribute(`data-bs-${Ws(e)}`)},getDataAttributes(t){if(!t)return{};let e={},i=Object.keys(t.dataset).filter(s=>s.startsWith("bs")&&!s.startsWith("bsConfig"));for(let s of i){let o=s.replace(/^bs/,"");o=o.charAt(0).toLowerCase()+o.slice(1,o.length),e[o]=Ia(t.dataset[s])}return e},getDataAttribute(t,e){return Ia(t.getAttribute(`data-bs-${Ws(e)}`))}},Si=class{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,i){let s=Bt(i)?Ut.getDataAttribute(i,"config"):{};return{...this.constructor.Default,...typeof s=="object"?s:{},...Bt(i)?Ut.getDataAttributes(i):{},...typeof e=="object"?e:{}}}_typeCheckConfig(e,i=this.constructor.DefaultType){for(let[s,o]of Object.entries(i)){let c=e[s],d=Bt(c)?"element":Hc(c);if(!new RegExp(o).test(d))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${s}" provided type "${d}" but expected type "${o}".`)}}},Yc="5.3.3",nt=class extends Si{constructor(e,i){super(),e=ei(e),e&&(this._element=e,this._config=this._getConfig(i),Bs.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Bs.remove(this._element,this.constructor.DATA_KEY),B.off(this._element,this.constructor.EVENT_KEY);for(let e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,i,s=!0){cl(e,i,s)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Bs.get(ei(e),this.DATA_KEY)}static getOrCreateInstance(e,i={}){return this.getInstance(e)||new this(e,typeof i=="object"?i:null)}static get VERSION(){return Yc}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}},qs=t=>{let e=t.getAttribute("data-bs-target");if(!e||e==="#"){let i=t.getAttribute("href");if(!i||!i.includes("#")&&!i.startsWith("."))return null;i.includes("#")&&!i.startsWith("#")&&(i=`#${i.split("#")[1]}`),e=i&&i!=="#"?i.trim():null}return e?e.split(",").map(i=>ol(i)).join(","):null},te={find(t,e=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(e,t))},findOne(t,e=document.documentElement){return Element.prototype.querySelector.call(e,t)},children(t,e){return[].concat(...t.children).filter(i=>i.matches(e))},parents(t,e){let i=[],s=t.parentNode.closest(e);for(;s;)i.push(s),s=s.parentNode.closest(e);return i},prev(t,e){let i=t.previousElementSibling;for(;i;){if(i.matches(e))return[i];i=i.previousElementSibling}return[]},next(t,e){let i=t.nextElementSibling;for(;i;){if(i.matches(e))return[i];i=i.nextElementSibling}return[]},focusableChildren(t){let e=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(i=>`${i}:not([tabindex^="-"])`).join(",");return this.find(e,t).filter(i=>!ti(i)&&rn(i))},getSelectorFromElement(t){let e=qs(t);return e&&te.findOne(e)?e:null},getElementFromSelector(t){let e=qs(t);return e?te.findOne(e):null},getMultipleElementsFromSelector(t){let e=qs(t);return e?te.find(e):[]}},$r=(t,e="hide")=>{let i=`click.dismiss${t.EVENT_KEY}`,s=t.NAME;B.on(document,i,`[data-bs-dismiss="${s}"]`,function(o){if(["A","AREA"].includes(this.tagName)&&o.preventDefault(),ti(this))return;let c=te.getElementFromSelector(this)||this.closest(`.${s}`);t.getOrCreateInstance(c)[e]()})},Gc="alert",Jc="bs.alert",vl=`.${Jc}`,Qc=`close${vl}`,Zc=`closed${vl}`,ef="fade",tf="show",Sr=class t extends nt{static get NAME(){return Gc}close(){if(B.trigger(this._element,Qc).defaultPrevented)return;this._element.classList.remove(tf);let i=this._element.classList.contains(ef);this._queueCallback(()=>this._destroyElement(),this._element,i)}_destroyElement(){this._element.remove(),B.trigger(this._element,Zc),this.dispose()}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this);if(typeof e=="string"){if(i[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);i[e](this)}})}};$r(Sr,"close");mt(Sr);var nf="button",rf="bs.button",sf=`.${rf}`,of=".data-api",af="active",Ra='[data-bs-toggle="button"]',lf=`click${sf}${of}`,kr=class t extends nt{static get NAME(){return nf}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(af))}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this);e==="toggle"&&i[e]()})}};B.on(document,lf,Ra,t=>{t.preventDefault();let e=t.target.closest(Ra);kr.getOrCreateInstance(e).toggle()});mt(kr);var uf="swipe",sn=".bs.swipe",cf=`touchstart${sn}`,ff=`touchmove${sn}`,hf=`touchend${sn}`,df=`pointerdown${sn}`,pf=`pointerup${sn}`,gf="touch",mf="pen",vf="pointer-event",bf=40,yf={endCallback:null,leftCallback:null,rightCallback:null},_f={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"},Or=class t extends Si{constructor(e,i){super(),this._element=e,!(!e||!t.isSupported())&&(this._config=this._getConfig(i),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return yf}static get DefaultType(){return _f}static get NAME(){return uf}dispose(){B.off(this._element,sn)}_start(e){if(!this._supportPointerEvents){this._deltaX=e.touches[0].clientX;return}this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX)}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),et(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){let e=Math.abs(this._deltaX);if(e<=bf)return;let i=e/this._deltaX;this._deltaX=0,i&&et(i>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(B.on(this._element,df,e=>this._start(e)),B.on(this._element,pf,e=>this._end(e)),this._element.classList.add(vf)):(B.on(this._element,cf,e=>this._start(e)),B.on(this._element,ff,e=>this._move(e)),B.on(this._element,hf,e=>this._end(e)))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&(e.pointerType===mf||e.pointerType===gf)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}},Ef="carousel",Af="bs.carousel",ri=`.${Af}`,bl=".data-api",Tf="ArrowLeft",wf="ArrowRight",xf=500,Dn="next",Gi="prev",Qi="left",wr="right",Cf=`slide${ri}`,zs=`slid${ri}`,Sf=`keydown${ri}`,kf=`mouseenter${ri}`,Of=`mouseleave${ri}`,Df=`dragstart${ri}`,Lf=`load${ri}${bl}`,Nf=`click${ri}${bl}`,yl="carousel",br="active",Pf="slide",If="carousel-item-end",Rf="carousel-item-start",$f="carousel-item-next",Mf="carousel-item-prev",_l=".active",El=".carousel-item",Hf=_l+El,Ff=".carousel-item img",jf=".carousel-indicators",Bf="[data-bs-slide], [data-bs-slide-to]",Uf='[data-bs-ride="carousel"]',Vf={[Tf]:wr,[wf]:Qi},Wf={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},qf={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"},Nn=class t extends nt{constructor(e,i){super(e,i),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=te.findOne(jf,this._element),this._addEventListeners(),this._config.ride===yl&&this.cycle()}static get Default(){return Wf}static get DefaultType(){return qf}static get NAME(){return Ef}next(){this._slide(Dn)}nextWhenVisible(){!document.hidden&&rn(this._element)&&this.next()}prev(){this._slide(Gi)}pause(){this._isSliding&&al(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval(()=>this.nextWhenVisible(),this._config.interval)}_maybeEnableCycle(){if(this._config.ride){if(this._isSliding){B.one(this._element,zs,()=>this.cycle());return}this.cycle()}}to(e){let i=this._getItems();if(e>i.length-1||e<0)return;if(this._isSliding){B.one(this._element,zs,()=>this.to(e));return}let s=this._getItemIndex(this._getActive());if(s===e)return;let o=e>s?Dn:Gi;this._slide(o,i[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&B.on(this._element,Sf,e=>this._keydown(e)),this._config.pause==="hover"&&(B.on(this._element,kf,()=>this.pause()),B.on(this._element,Of,()=>this._maybeEnableCycle())),this._config.touch&&Or.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(let s of te.find(Ff,this._element))B.on(s,Df,o=>o.preventDefault());let i={leftCallback:()=>this._slide(this._directionToOrder(Qi)),rightCallback:()=>this._slide(this._directionToOrder(wr)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),xf+this._config.interval))}};this._swipeHelper=new Or(this._element,i)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;let i=Vf[e.key];i&&(e.preventDefault(),this._slide(this._directionToOrder(i)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;let i=te.findOne(_l,this._indicatorsElement);i.classList.remove(br),i.removeAttribute("aria-current");let s=te.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);s&&(s.classList.add(br),s.setAttribute("aria-current","true"))}_updateInterval(){let e=this._activeElement||this._getActive();if(!e)return;let i=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=i||this._config.defaultInterval}_slide(e,i=null){if(this._isSliding)return;let s=this._getActive(),o=e===Dn,c=i||ao(this._getItems(),s,o,this._config.wrap);if(c===s)return;let d=this._getItemIndex(c),g=S=>B.trigger(this._element,S,{relatedTarget:c,direction:this._orderToDirection(e),from:this._getItemIndex(s),to:d});if(g(Cf).defaultPrevented||!s||!c)return;let C=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(d),this._activeElement=c;let x=o?Rf:If,I=o?$f:Mf;c.classList.add(I),Rn(c),s.classList.add(x),c.classList.add(x);let D=()=>{c.classList.remove(x,I),c.classList.add(br),s.classList.remove(br,I,x),this._isSliding=!1,g(zs)};this._queueCallback(D,s,this._isAnimated()),C&&this.cycle()}_isAnimated(){return this._element.classList.contains(Pf)}_getActive(){return te.findOne(Hf,this._element)}_getItems(){return te.find(El,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return pt()?e===Qi?Gi:Dn:e===Qi?Dn:Gi}_orderToDirection(e){return pt()?e===Gi?Qi:wr:e===Gi?wr:Qi}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="number"){i.to(e);return}if(typeof e=="string"){if(i[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);i[e]()}})}};B.on(document,Nf,Bf,function(t){let e=te.getElementFromSelector(this);if(!e||!e.classList.contains(yl))return;t.preventDefault();let i=Nn.getOrCreateInstance(e),s=this.getAttribute("data-bs-slide-to");if(s){i.to(s),i._maybeEnableCycle();return}if(Ut.getDataAttribute(this,"slide")==="next"){i.next(),i._maybeEnableCycle();return}i.prev(),i._maybeEnableCycle()});B.on(window,Lf,()=>{let t=te.find(Uf);for(let e of t)Nn.getOrCreateInstance(e)});mt(Nn);var zf="collapse",Kf="bs.collapse",$n=`.${Kf}`,Xf=".data-api",Yf=`show${$n}`,Gf=`shown${$n}`,Jf=`hide${$n}`,Qf=`hidden${$n}`,Zf=`click${$n}${Xf}`,Ks="show",en="collapse",yr="collapsing",eh="collapsed",th=`:scope .${en} .${en}`,ih="collapse-horizontal",nh="width",rh="height",sh=".collapse.show, .collapse.collapsing",ro='[data-bs-toggle="collapse"]',oh={parent:null,toggle:!0},ah={parent:"(null|element)",toggle:"boolean"},Dr=class t extends nt{constructor(e,i){super(e,i),this._isTransitioning=!1,this._triggerArray=[];let s=te.find(ro);for(let o of s){let c=te.getSelectorFromElement(o),d=te.find(c).filter(g=>g===this._element);c!==null&&d.length&&this._triggerArray.push(o)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return oh}static get DefaultType(){return ah}static get NAME(){return zf}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(sh).filter(g=>g!==this._element).map(g=>t.getOrCreateInstance(g,{toggle:!1}))),e.length&&e[0]._isTransitioning||B.trigger(this._element,Yf).defaultPrevented)return;for(let g of e)g.hide();let s=this._getDimension();this._element.classList.remove(en),this._element.classList.add(yr),this._element.style[s]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;let o=()=>{this._isTransitioning=!1,this._element.classList.remove(yr),this._element.classList.add(en,Ks),this._element.style[s]="",B.trigger(this._element,Gf)},d=`scroll${s[0].toUpperCase()+s.slice(1)}`;this._queueCallback(o,this._element,!0),this._element.style[s]=`${this._element[d]}px`}hide(){if(this._isTransitioning||!this._isShown()||B.trigger(this._element,Jf).defaultPrevented)return;let i=this._getDimension();this._element.style[i]=`${this._element.getBoundingClientRect()[i]}px`,Rn(this._element),this._element.classList.add(yr),this._element.classList.remove(en,Ks);for(let o of this._triggerArray){let c=te.getElementFromSelector(o);c&&!this._isShown(c)&&this._addAriaAndCollapsedClass([o],!1)}this._isTransitioning=!0;let s=()=>{this._isTransitioning=!1,this._element.classList.remove(yr),this._element.classList.add(en),B.trigger(this._element,Qf)};this._element.style[i]="",this._queueCallback(s,this._element,!0)}_isShown(e=this._element){return e.classList.contains(Ks)}_configAfterMerge(e){return e.toggle=!!e.toggle,e.parent=ei(e.parent),e}_getDimension(){return this._element.classList.contains(ih)?nh:rh}_initializeChildren(){if(!this._config.parent)return;let e=this._getFirstLevelChildren(ro);for(let i of e){let s=te.getElementFromSelector(i);s&&this._addAriaAndCollapsedClass([i],this._isShown(s))}}_getFirstLevelChildren(e){let i=te.find(th,this._config.parent);return te.find(e,this._config.parent).filter(s=>!i.includes(s))}_addAriaAndCollapsedClass(e,i){if(e.length)for(let s of e)s.classList.toggle(eh,!i),s.setAttribute("aria-expanded",i)}static jQueryInterface(e){let i={};return typeof e=="string"&&/show|hide/.test(e)&&(i.toggle=!1),this.each(function(){let s=t.getOrCreateInstance(this,i);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e]()}})}};B.on(document,Zf,ro,function(t){(t.target.tagName==="A"||t.delegateTarget&&t.delegateTarget.tagName==="A")&&t.preventDefault();for(let e of te.getMultipleElementsFromSelector(this))Dr.getOrCreateInstance(e,{toggle:!1}).toggle()});mt(Dr);var $a="dropdown",lh="bs.dropdown",ki=`.${lh}`,uo=".data-api",uh="Escape",Ma="Tab",ch="ArrowUp",Ha="ArrowDown",fh=2,hh=`hide${ki}`,dh=`hidden${ki}`,ph=`show${ki}`,gh=`shown${ki}`,Al=`click${ki}${uo}`,Tl=`keydown${ki}${uo}`,mh=`keyup${ki}${uo}`,Zi="show",vh="dropup",bh="dropend",yh="dropstart",_h="dropup-center",Eh="dropdown-center",xi='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Ah=`${xi}.${Zi}`,xr=".dropdown-menu",Th=".navbar",wh=".navbar-nav",xh=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",Ch=pt()?"top-end":"top-start",Sh=pt()?"top-start":"top-end",kh=pt()?"bottom-end":"bottom-start",Oh=pt()?"bottom-start":"bottom-end",Dh=pt()?"left-start":"right-start",Lh=pt()?"right-start":"left-start",Nh="top",Ph="bottom",Ih={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Rh={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"},ii=class t extends nt{constructor(e,i){super(e,i),this._popper=null,this._parent=this._element.parentNode,this._menu=te.next(this._element,xr)[0]||te.prev(this._element,xr)[0]||te.findOne(xr,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Ih}static get DefaultType(){return Rh}static get NAME(){return $a}toggle(){return this._isShown()?this.hide():this.show()}show(){if(ti(this._element)||this._isShown())return;let e={relatedTarget:this._element};if(!B.trigger(this._element,ph,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(wh))for(let s of[].concat(...document.body.children))B.on(s,"mouseover",Cr);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Zi),this._element.classList.add(Zi),B.trigger(this._element,gh,e)}}hide(){if(ti(this._element)||!this._isShown())return;let e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!B.trigger(this._element,hh,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(let s of[].concat(...document.body.children))B.off(s,"mouseover",Cr);this._popper&&this._popper.destroy(),this._menu.classList.remove(Zi),this._element.classList.remove(Zi),this._element.setAttribute("aria-expanded","false"),Ut.removeDataAttribute(this._menu,"popper"),B.trigger(this._element,dh,e)}}_getConfig(e){if(e=super._getConfig(e),typeof e.reference=="object"&&!Bt(e.reference)&&typeof e.reference.getBoundingClientRect!="function")throw new TypeError(`${$a.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(typeof vr>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;this._config.reference==="parent"?e=this._parent:Bt(this._config.reference)?e=ei(this._config.reference):typeof this._config.reference=="object"&&(e=this._config.reference);let i=this._getPopperConfig();this._popper=On(e,this._menu,i)}_isShown(){return this._menu.classList.contains(Zi)}_getPlacement(){let e=this._parent;if(e.classList.contains(bh))return Dh;if(e.classList.contains(yh))return Lh;if(e.classList.contains(_h))return Nh;if(e.classList.contains(Eh))return Ph;let i=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return e.classList.contains(vh)?i?Sh:Ch:i?Oh:kh}_detectNavbar(){return this._element.closest(Th)!==null}_getOffset(){let{offset:e}=this._config;return typeof e=="string"?e.split(",").map(i=>Number.parseInt(i,10)):typeof e=="function"?i=>e(i,this._element):e}_getPopperConfig(){let e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(Ut.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...et(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:i}){let s=te.find(xh,this._menu).filter(o=>rn(o));s.length&&ao(s,i,e===Ha,!s.includes(i)).focus()}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e]()}})}static clearMenus(e){if(e.button===fh||e.type==="keyup"&&e.key!==Ma)return;let i=te.find(Ah);for(let s of i){let o=t.getInstance(s);if(!o||o._config.autoClose===!1)continue;let c=e.composedPath(),d=c.includes(o._menu);if(c.includes(o._element)||o._config.autoClose==="inside"&&!d||o._config.autoClose==="outside"&&d||o._menu.contains(e.target)&&(e.type==="keyup"&&e.key===Ma||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;let g={relatedTarget:o._element};e.type==="click"&&(g.clickEvent=e),o._completeHide(g)}}static dataApiKeydownHandler(e){let i=/input|textarea/i.test(e.target.tagName),s=e.key===uh,o=[ch,Ha].includes(e.key);if(!o&&!s||i&&!s)return;e.preventDefault();let c=this.matches(xi)?this:te.prev(this,xi)[0]||te.next(this,xi)[0]||te.findOne(xi,e.delegateTarget.parentNode),d=t.getOrCreateInstance(c);if(o){e.stopPropagation(),d.show(),d._selectMenuItem(e);return}d._isShown()&&(e.stopPropagation(),d.hide(),c.focus())}};B.on(document,Tl,xi,ii.dataApiKeydownHandler);B.on(document,Tl,xr,ii.dataApiKeydownHandler);B.on(document,Al,ii.clearMenus);B.on(document,mh,ii.clearMenus);B.on(document,Al,xi,function(t){t.preventDefault(),ii.getOrCreateInstance(this).toggle()});mt(ii);var wl="backdrop",$h="fade",Fa="show",ja=`mousedown.bs.${wl}`,Mh={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Hh={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"},Lr=class extends Si{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Mh}static get DefaultType(){return Hh}static get NAME(){return wl}show(e){if(!this._config.isVisible){et(e);return}this._append();let i=this._getElement();this._config.isAnimated&&Rn(i),i.classList.add(Fa),this._emulateAnimation(()=>{et(e)})}hide(e){if(!this._config.isVisible){et(e);return}this._getElement().classList.remove(Fa),this._emulateAnimation(()=>{this.dispose(),et(e)})}dispose(){this._isAppended&&(B.off(this._element,ja),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){let e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add($h),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=ei(e.rootElement),e}_append(){if(this._isAppended)return;let e=this._getElement();this._config.rootElement.append(e),B.on(e,ja,()=>{et(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(e){cl(e,this._getElement(),this._config.isAnimated)}},Fh="focustrap",jh="bs.focustrap",Nr=`.${jh}`,Bh=`focusin${Nr}`,Uh=`keydown.tab${Nr}`,Vh="Tab",Wh="forward",Ba="backward",qh={autofocus:!0,trapElement:null},zh={autofocus:"boolean",trapElement:"element"},Pr=class extends Si{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return qh}static get DefaultType(){return zh}static get NAME(){return Fh}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),B.off(document,Nr),B.on(document,Bh,e=>this._handleFocusin(e)),B.on(document,Uh,e=>this._handleKeydown(e)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,B.off(document,Nr))}_handleFocusin(e){let{trapElement:i}=this._config;if(e.target===document||e.target===i||i.contains(e.target))return;let s=te.focusableChildren(i);s.length===0?i.focus():this._lastTabNavDirection===Ba?s[s.length-1].focus():s[0].focus()}_handleKeydown(e){e.key===Vh&&(this._lastTabNavDirection=e.shiftKey?Ba:Wh)}},Ua=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Va=".sticky-top",_r="padding-right",Wa="margin-right",Pn=class{constructor(){this._element=document.body}getWidth(){let e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){let e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,_r,i=>i+e),this._setElementAttributes(Ua,_r,i=>i+e),this._setElementAttributes(Va,Wa,i=>i-e)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,_r),this._resetElementAttributes(Ua,_r),this._resetElementAttributes(Va,Wa)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,i,s){let o=this.getWidth(),c=d=>{if(d!==this._element&&window.innerWidth>d.clientWidth+o)return;this._saveInitialAttribute(d,i);let g=window.getComputedStyle(d).getPropertyValue(i);d.style.setProperty(i,`${s(Number.parseFloat(g))}px`)};this._applyManipulationCallback(e,c)}_saveInitialAttribute(e,i){let s=e.style.getPropertyValue(i);s&&Ut.setDataAttribute(e,i,s)}_resetElementAttributes(e,i){let s=o=>{let c=Ut.getDataAttribute(o,i);if(c===null){o.style.removeProperty(i);return}Ut.removeDataAttribute(o,i),o.style.setProperty(i,c)};this._applyManipulationCallback(e,s)}_applyManipulationCallback(e,i){if(Bt(e)){i(e);return}for(let s of te.find(e,this._element))i(s)}},Kh="modal",Xh="bs.modal",gt=`.${Xh}`,Yh=".data-api",Gh="Escape",Jh=`hide${gt}`,Qh=`hidePrevented${gt}`,xl=`hidden${gt}`,Cl=`show${gt}`,Zh=`shown${gt}`,ed=`resize${gt}`,td=`click.dismiss${gt}`,id=`mousedown.dismiss${gt}`,nd=`keydown.dismiss${gt}`,rd=`click${gt}${Yh}`,qa="modal-open",sd="fade",za="show",Xs="modal-static",od=".modal.show",ad=".modal-dialog",ld=".modal-body",ud='[data-bs-toggle="modal"]',cd={backdrop:!0,focus:!0,keyboard:!0},fd={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"},tn=class t extends nt{constructor(e,i){super(e,i),this._dialog=te.findOne(ad,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new Pn,this._addEventListeners()}static get Default(){return cd}static get DefaultType(){return fd}static get NAME(){return Kh}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){this._isShown||this._isTransitioning||B.trigger(this._element,Cl,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(qa),this._adjustDialog(),this._backdrop.show(()=>this._showElement(e)))}hide(){!this._isShown||this._isTransitioning||B.trigger(this._element,Jh).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(za),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){B.off(window,gt),B.off(this._dialog,gt),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Lr({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new Pr({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;let i=te.findOne(ld,this._dialog);i&&(i.scrollTop=0),Rn(this._element),this._element.classList.add(za);let s=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,B.trigger(this._element,Zh,{relatedTarget:e})};this._queueCallback(s,this._dialog,this._isAnimated())}_addEventListeners(){B.on(this._element,nd,e=>{if(e.key===Gh){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),B.on(window,ed,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),B.on(this._element,id,e=>{B.one(this._element,td,i=>{if(!(this._element!==e.target||this._element!==i.target)){if(this._config.backdrop==="static"){this._triggerBackdropTransition();return}this._config.backdrop&&this.hide()}})})}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide(()=>{document.body.classList.remove(qa),this._resetAdjustments(),this._scrollBar.reset(),B.trigger(this._element,xl)})}_isAnimated(){return this._element.classList.contains(sd)}_triggerBackdropTransition(){if(B.trigger(this._element,Qh).defaultPrevented)return;let i=this._element.scrollHeight>document.documentElement.clientHeight,s=this._element.style.overflowY;s==="hidden"||this._element.classList.contains(Xs)||(i||(this._element.style.overflowY="hidden"),this._element.classList.add(Xs),this._queueCallback(()=>{this._element.classList.remove(Xs),this._queueCallback(()=>{this._element.style.overflowY=s},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){let e=this._element.scrollHeight>document.documentElement.clientHeight,i=this._scrollBar.getWidth(),s=i>0;if(s&&!e){let o=pt()?"paddingLeft":"paddingRight";this._element.style[o]=`${i}px`}if(!s&&e){let o=pt()?"paddingRight":"paddingLeft";this._element.style[o]=`${i}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,i){return this.each(function(){let s=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof s[e]>"u")throw new TypeError(`No method named "${e}"`);s[e](i)}})}};B.on(document,rd,ud,function(t){let e=te.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&t.preventDefault(),B.one(e,Cl,o=>{o.defaultPrevented||B.one(e,xl,()=>{rn(this)&&this.focus()})});let i=te.findOne(od);i&&tn.getInstance(i).hide(),tn.getOrCreateInstance(e).toggle(this)});$r(tn);mt(tn);var hd="offcanvas",dd="bs.offcanvas",Vt=`.${dd}`,Sl=".data-api",pd=`load${Vt}${Sl}`,gd="Escape",Ka="show",Xa="showing",Ya="hiding",md="offcanvas-backdrop",kl=".offcanvas.show",vd=`show${Vt}`,bd=`shown${Vt}`,yd=`hide${Vt}`,Ga=`hidePrevented${Vt}`,Ol=`hidden${Vt}`,_d=`resize${Vt}`,Ed=`click${Vt}${Sl}`,Ad=`keydown.dismiss${Vt}`,Td='[data-bs-toggle="offcanvas"]',wd={backdrop:!0,keyboard:!0,scroll:!1},xd={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"},ni=class t extends nt{constructor(e,i){super(e,i),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return wd}static get DefaultType(){return xd}static get NAME(){return hd}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||B.trigger(this._element,vd,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new Pn().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(Xa);let s=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(Ka),this._element.classList.remove(Xa),B.trigger(this._element,bd,{relatedTarget:e})};this._queueCallback(s,this._element,!0)}hide(){if(!this._isShown||B.trigger(this._element,yd).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(Ya),this._backdrop.hide();let i=()=>{this._element.classList.remove(Ka,Ya),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new Pn().reset(),B.trigger(this._element,Ol)};this._queueCallback(i,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){let e=()=>{if(this._config.backdrop==="static"){B.trigger(this._element,Ga);return}this.hide()},i=!!this._config.backdrop;return new Lr({className:md,isVisible:i,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:i?e:null})}_initializeFocusTrap(){return new Pr({trapElement:this._element})}_addEventListeners(){B.on(this._element,Ad,e=>{if(e.key===gd){if(this._config.keyboard){this.hide();return}B.trigger(this._element,Ga)}})}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(i[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);i[e](this)}})}};B.on(document,Ed,Td,function(t){let e=te.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&t.preventDefault(),ti(this))return;B.one(e,Ol,()=>{rn(this)&&this.focus()});let i=te.findOne(kl);i&&i!==e&&ni.getInstance(i).hide(),ni.getOrCreateInstance(e).toggle(this)});B.on(window,pd,()=>{for(let t of te.find(kl))ni.getOrCreateInstance(t).show()});B.on(window,_d,()=>{for(let t of te.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(t).position!=="fixed"&&ni.getOrCreateInstance(t).hide()});$r(ni);mt(ni);var Cd=/^aria-[\w-]*$/i,Dl={"*":["class","dir","id","lang","role",Cd],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],dd:[],div:[],dl:[],dt:[],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:[]},Sd=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),kd=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,Od=(t,e)=>{let i=t.nodeName.toLowerCase();return e.includes(i)?Sd.has(i)?!!kd.test(t.nodeValue):!0:e.filter(s=>s instanceof RegExp).some(s=>s.test(i))};function Dd(t,e,i){if(!t.length)return t;if(i&&typeof i=="function")return i(t);let o=new window.DOMParser().parseFromString(t,"text/html"),c=[].concat(...o.body.querySelectorAll("*"));for(let d of c){let g=d.nodeName.toLowerCase();if(!Object.keys(e).includes(g)){d.remove();continue}let v=[].concat(...d.attributes),C=[].concat(e["*"]||[],e[g]||[]);for(let x of v)Od(x,C)||d.removeAttribute(x.nodeName)}return o.body.innerHTML}var Ld="TemplateFactory",Nd={allowList:Dl,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},Pd={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Id={entry:"(string|element|function|null)",selector:"(string|element)"},so=class extends Si{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return Nd}static get DefaultType(){return Pd}static get NAME(){return Ld}getContent(){return Object.values(this._config.content).map(e=>this._resolvePossibleFunction(e)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){let e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(let[o,c]of Object.entries(this._config.content))this._setContent(e,c,o);let i=e.children[0],s=this._resolvePossibleFunction(this._config.extraClass);return s&&i.classList.add(...s.split(" ")),i}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(let[i,s]of Object.entries(e))super._typeCheckConfig({selector:i,entry:s},Id)}_setContent(e,i,s){let o=te.findOne(s,e);if(o){if(i=this._resolvePossibleFunction(i),!i){o.remove();return}if(Bt(i)){this._putElementInTemplate(ei(i),o);return}if(this._config.html){o.innerHTML=this._maybeSanitize(i);return}o.textContent=i}}_maybeSanitize(e){return this._config.sanitize?Dd(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return et(e,[this])}_putElementInTemplate(e,i){if(this._config.html){i.innerHTML="",i.append(e);return}i.textContent=e.textContent}},Rd="tooltip",$d=new Set(["sanitize","allowList","sanitizeFn"]),Ys="fade",Md="modal",Er="show",Hd=".tooltip-inner",Ja=`.${Md}`,Qa="hide.bs.modal",Ln="hover",Gs="focus",Fd="click",jd="manual",Bd="hide",Ud="hidden",Vd="show",Wd="shown",qd="inserted",zd="click",Kd="focusin",Xd="focusout",Yd="mouseenter",Gd="mouseleave",Jd={AUTO:"auto",TOP:"top",RIGHT:pt()?"left":"right",BOTTOM:"bottom",LEFT:pt()?"right":"left"},Qd={allowList:Dl,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},Zd={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"},nn=class t extends nt{constructor(e,i){if(typeof vr>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,i),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Qd}static get DefaultType(){return Zd}static get NAME(){return Rd}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){if(this._isEnabled){if(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()){this._leave();return}this._enter()}}dispose(){clearTimeout(this._timeout),B.off(this._element.closest(Ja),Qa,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if(this._element.style.display==="none")throw new Error("Please use show on visible elements");if(!(this._isWithContent()&&this._isEnabled))return;let e=B.trigger(this._element,this.constructor.eventName(Vd)),s=(ll(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!s)return;this._disposePopper();let o=this._getTipElement();this._element.setAttribute("aria-describedby",o.getAttribute("id"));let{container:c}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(c.append(o),B.trigger(this._element,this.constructor.eventName(qd))),this._popper=this._createPopper(o),o.classList.add(Er),"ontouchstart"in document.documentElement)for(let g of[].concat(...document.body.children))B.on(g,"mouseover",Cr);let d=()=>{B.trigger(this._element,this.constructor.eventName(Wd)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(d,this.tip,this._isAnimated())}hide(){if(!this._isShown()||B.trigger(this._element,this.constructor.eventName(Bd)).defaultPrevented)return;if(this._getTipElement().classList.remove(Er),"ontouchstart"in document.documentElement)for(let o of[].concat(...document.body.children))B.off(o,"mouseover",Cr);this._activeTrigger[Fd]=!1,this._activeTrigger[Gs]=!1,this._activeTrigger[Ln]=!1,this._isHovered=null;let s=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),B.trigger(this._element,this.constructor.eventName(Ud)))};this._queueCallback(s,this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return!!this._getTitle()}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){let i=this._getTemplateFactory(e).toHtml();if(!i)return null;i.classList.remove(Ys,Er),i.classList.add(`bs-${this.constructor.NAME}-auto`);let s=Fc(this.constructor.NAME).toString();return i.setAttribute("id",s),this._isAnimated()&&i.classList.add(Ys),i}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new so({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Hd]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(Ys)}_isShown(){return this.tip&&this.tip.classList.contains(Er)}_createPopper(e){let i=et(this._config.placement,[this,e,this._element]),s=Jd[i.toUpperCase()];return On(this._element,e,this._getPopperConfig(s))}_getOffset(){let{offset:e}=this._config;return typeof e=="string"?e.split(",").map(i=>Number.parseInt(i,10)):typeof e=="function"?i=>e(i,this._element):e}_resolvePossibleFunction(e){return et(e,[this._element])}_getPopperConfig(e){let i={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:s=>{this._getTipElement().setAttribute("data-popper-placement",s.state.placement)}}]};return{...i,...et(this._config.popperConfig,[i])}}_setListeners(){let e=this._config.trigger.split(" ");for(let i of e)if(i==="click")B.on(this._element,this.constructor.eventName(zd),this._config.selector,s=>{this._initializeOnDelegatedTarget(s).toggle()});else if(i!==jd){let s=i===Ln?this.constructor.eventName(Yd):this.constructor.eventName(Kd),o=i===Ln?this.constructor.eventName(Gd):this.constructor.eventName(Xd);B.on(this._element,s,this._config.selector,c=>{let d=this._initializeOnDelegatedTarget(c);d._activeTrigger[c.type==="focusin"?Gs:Ln]=!0,d._enter()}),B.on(this._element,o,this._config.selector,c=>{let d=this._initializeOnDelegatedTarget(c);d._activeTrigger[c.type==="focusout"?Gs:Ln]=d._element.contains(c.relatedTarget),d._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},B.on(this._element.closest(Ja),Qa,this._hideModalHandler)}_fixTitle(){let e=this._element.getAttribute("title");e&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){if(this._isShown()||this._isHovered){this._isHovered=!0;return}this._isHovered=!0,this._setTimeout(()=>{this._isHovered&&this.show()},this._config.delay.show)}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout(()=>{this._isHovered||this.hide()},this._config.delay.hide))}_setTimeout(e,i){clearTimeout(this._timeout),this._timeout=setTimeout(e,i)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){let i=Ut.getDataAttributes(this._element);for(let s of Object.keys(i))$d.has(s)&&delete i[s];return e={...i,...typeof e=="object"&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=e.container===!1?document.body:ei(e.container),typeof e.delay=="number"&&(e.delay={show:e.delay,hide:e.delay}),typeof e.title=="number"&&(e.title=e.title.toString()),typeof e.content=="number"&&(e.content=e.content.toString()),e}_getDelegateConfig(){let e={};for(let[i,s]of Object.entries(this._config))this.constructor.Default[i]!==s&&(e[i]=s);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e]()}})}};mt(nn);var ep="popover",tp=".popover-header",ip=".popover-body",np={...nn.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"},rp={...nn.DefaultType,content:"(null|string|element|function)"},oo=class t extends nn{static get Default(){return np}static get DefaultType(){return rp}static get NAME(){return ep}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[tp]:this._getTitle(),[ip]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e]()}})}};mt(oo);var sp="scrollspy",op="bs.scrollspy",co=`.${op}`,ap=".data-api",lp=`activate${co}`,Za=`click${co}`,up=`load${co}${ap}`,cp="dropdown-item",Ji="active",fp='[data-bs-spy="scroll"]',Js="[href]",hp=".nav, .list-group",el=".nav-link",dp=".nav-item",pp=".list-group-item",gp=`${el}, ${dp} > ${el}, ${pp}`,mp=".dropdown",vp=".dropdown-toggle",bp={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},yp={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"},Ir=class t extends nt{constructor(e,i){super(e,i),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement=getComputedStyle(this._element).overflowY==="visible"?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return bp}static get DefaultType(){return yp}static get NAME(){return sp}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(let e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=ei(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,typeof e.threshold=="string"&&(e.threshold=e.threshold.split(",").map(i=>Number.parseFloat(i))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(B.off(this._config.target,Za),B.on(this._config.target,Za,Js,e=>{let i=this._observableSections.get(e.target.hash);if(i){e.preventDefault();let s=this._rootElement||window,o=i.offsetTop-this._element.offsetTop;if(s.scrollTo){s.scrollTo({top:o,behavior:"smooth"});return}s.scrollTop=o}}))}_getNewObserver(){let e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(i=>this._observerCallback(i),e)}_observerCallback(e){let i=d=>this._targetLinks.get(`#${d.target.id}`),s=d=>{this._previousScrollData.visibleEntryTop=d.target.offsetTop,this._process(i(d))},o=(this._rootElement||document.documentElement).scrollTop,c=o>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=o;for(let d of e){if(!d.isIntersecting){this._activeTarget=null,this._clearActiveClass(i(d));continue}let g=d.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(c&&g){if(s(d),!o)return;continue}!c&&!g&&s(d)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;let e=te.find(Js,this._config.target);for(let i of e){if(!i.hash||ti(i))continue;let s=te.findOne(decodeURI(i.hash),this._element);rn(s)&&(this._targetLinks.set(decodeURI(i.hash),i),this._observableSections.set(i.hash,s))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(Ji),this._activateParents(e),B.trigger(this._element,lp,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains(cp)){te.findOne(vp,e.closest(mp)).classList.add(Ji);return}for(let i of te.parents(e,hp))for(let s of te.prev(i,gp))s.classList.add(Ji)}_clearActiveClass(e){e.classList.remove(Ji);let i=te.find(`${Js}.${Ji}`,e);for(let s of i)s.classList.remove(Ji)}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(i[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);i[e]()}})}};B.on(window,up,()=>{for(let t of te.find(fp))Ir.getOrCreateInstance(t)});mt(Ir);var _p="tab",Ep="bs.tab",Oi=`.${Ep}`,Ap=`hide${Oi}`,Tp=`hidden${Oi}`,wp=`show${Oi}`,xp=`shown${Oi}`,Cp=`click${Oi}`,Sp=`keydown${Oi}`,kp=`load${Oi}`,Op="ArrowLeft",tl="ArrowRight",Dp="ArrowUp",il="ArrowDown",Qs="Home",nl="End",Ci="active",rl="fade",Zs="show",Lp="dropdown",Ll=".dropdown-toggle",Np=".dropdown-menu",eo=`:not(${Ll})`,Pp='.list-group, .nav, [role="tablist"]',Ip=".nav-item, .list-group-item",Rp=`.nav-link${eo}, .list-group-item${eo}, [role="tab"]${eo}`,Nl='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',to=`${Rp}, ${Nl}`,$p=`.${Ci}[data-bs-toggle="tab"], .${Ci}[data-bs-toggle="pill"], .${Ci}[data-bs-toggle="list"]`,In=class t extends nt{constructor(e){super(e),this._parent=this._element.closest(Pp),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),B.on(this._element,Sp,i=>this._keydown(i)))}static get NAME(){return _p}show(){let e=this._element;if(this._elemIsActive(e))return;let i=this._getActiveElem(),s=i?B.trigger(i,Ap,{relatedTarget:e}):null;B.trigger(e,wp,{relatedTarget:i}).defaultPrevented||s&&s.defaultPrevented||(this._deactivate(i,e),this._activate(e,i))}_activate(e,i){if(!e)return;e.classList.add(Ci),this._activate(te.getElementFromSelector(e));let s=()=>{if(e.getAttribute("role")!=="tab"){e.classList.add(Zs);return}e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),B.trigger(e,xp,{relatedTarget:i})};this._queueCallback(s,e,e.classList.contains(rl))}_deactivate(e,i){if(!e)return;e.classList.remove(Ci),e.blur(),this._deactivate(te.getElementFromSelector(e));let s=()=>{if(e.getAttribute("role")!=="tab"){e.classList.remove(Zs);return}e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),B.trigger(e,Tp,{relatedTarget:i})};this._queueCallback(s,e,e.classList.contains(rl))}_keydown(e){if(![Op,tl,Dp,il,Qs,nl].includes(e.key))return;e.stopPropagation(),e.preventDefault();let i=this._getChildren().filter(o=>!ti(o)),s;if([Qs,nl].includes(e.key))s=i[e.key===Qs?0:i.length-1];else{let o=[tl,il].includes(e.key);s=ao(i,e.target,o,!0)}s&&(s.focus({preventScroll:!0}),t.getOrCreateInstance(s).show())}_getChildren(){return te.find(to,this._parent)}_getActiveElem(){return this._getChildren().find(e=>this._elemIsActive(e))||null}_setInitialAttributes(e,i){this._setAttributeIfNotExists(e,"role","tablist");for(let s of i)this._setInitialAttributesOnChild(s)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);let i=this._elemIsActive(e),s=this._getOuterElement(e);e.setAttribute("aria-selected",i),s!==e&&this._setAttributeIfNotExists(s,"role","presentation"),i||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){let i=te.getElementFromSelector(e);i&&(this._setAttributeIfNotExists(i,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(i,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,i){let s=this._getOuterElement(e);if(!s.classList.contains(Lp))return;let o=(c,d)=>{let g=te.findOne(c,s);g&&g.classList.toggle(d,i)};o(Ll,Ci),o(Np,Zs),s.setAttribute("aria-expanded",i)}_setAttributeIfNotExists(e,i,s){e.hasAttribute(i)||e.setAttribute(i,s)}_elemIsActive(e){return e.classList.contains(Ci)}_getInnerElement(e){return e.matches(to)?e:te.findOne(to,e)}_getOuterElement(e){return e.closest(Ip)||e}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this);if(typeof e=="string"){if(i[e]===void 0||e.startsWith("_")||e==="constructor")throw new TypeError(`No method named "${e}"`);i[e]()}})}};B.on(document,Cp,Nl,function(t){["A","AREA"].includes(this.tagName)&&t.preventDefault(),!ti(this)&&In.getOrCreateInstance(this).show()});B.on(window,kp,()=>{for(let t of te.find($p))In.getOrCreateInstance(t)});mt(In);var Mp="toast",Hp="bs.toast",si=`.${Hp}`,Fp=`mouseover${si}`,jp=`mouseout${si}`,Bp=`focusin${si}`,Up=`focusout${si}`,Vp=`hide${si}`,Wp=`hidden${si}`,qp=`show${si}`,zp=`shown${si}`,Kp="fade",sl="hide",Ar="show",Tr="showing",Xp={animation:"boolean",autohide:"boolean",delay:"number"},Yp={animation:!0,autohide:!0,delay:5e3},Rr=class t extends nt{constructor(e,i){super(e,i),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Yp}static get DefaultType(){return Xp}static get NAME(){return Mp}show(){if(B.trigger(this._element,qp).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Kp);let i=()=>{this._element.classList.remove(Tr),B.trigger(this._element,zp),this._maybeScheduleHide()};this._element.classList.remove(sl),Rn(this._element),this._element.classList.add(Ar,Tr),this._queueCallback(i,this._element,this._config.animation)}hide(){if(!this.isShown()||B.trigger(this._element,Vp).defaultPrevented)return;let i=()=>{this._element.classList.add(sl),this._element.classList.remove(Tr,Ar),B.trigger(this._element,Wp)};this._element.classList.add(Tr),this._queueCallback(i,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(Ar),super.dispose()}isShown(){return this._element.classList.contains(Ar)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(e,i){switch(e.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=i;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=i;break}}if(i){this._clearTimeout();return}let s=e.relatedTarget;this._element===s||this._element.contains(s)||this._maybeScheduleHide()}_setListeners(){B.on(this._element,Fp,e=>this._onInteraction(e,!0)),B.on(this._element,jp,e=>this._onInteraction(e,!1)),B.on(this._element,Bp,e=>this._onInteraction(e,!0)),B.on(this._element,Up,e=>this._onInteraction(e,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each(function(){let i=t.getOrCreateInstance(this,e);if(typeof e=="string"){if(typeof i[e]>"u")throw new TypeError(`No method named "${e}"`);i[e](this)}})}};$r(Rr);mt(Rr);var L_=yn(Pl());var fo=yn(ar());(0,fo.default)(function(){(0,fo.default)("select.tree").change(function(){document.location=this.value})});var Fr=yn(ar());var Jp={"kmx-black":"#1e1f1d","kmx-blue":"#5a60f9","kmx-blue1":"#6f72f9","kmx-blue2":"#9c99fd","kmx-blue3":"#5a60f9","kmx-blue4":"#6f72f9","kmx-blue5":"#9c99fd",index:["kmx-black","kmx-blue","kmx-blue1","kmx-blue2","kmx-blue3","kmx-blue4","kmx-blue5","kmx-cyan","kmx-cyan1","kmx-green","kmx-green1","kmx-orange","kmx-orange1","kmx-orange2","kmx-pink","kmx-white","kmx-white1","kmx-white2","kmx-yellow","kmx-yellow1","kmx-yellow2","kmx-yellow3"],"kmx-cyan":"#d4f3f6","kmx-cyan1":"#d4f3f6","kmx-green":"#c4ed3a","kmx-green1":"#c4ed3a","kmx-orange":"#f8681c","kmx-orange1":"#fa7734","kmx-orange2":"#ffa532","kmx-pink":"#fc9ef9","kmx-white":"#f5f8f4","kmx-white1":"#fff9f2","kmx-white2":"#ffffff","kmx-yellow":"#ecfe49","kmx-yellow1":"#fff43e","kmx-yellow2":"#ecfe49","kmx-yellow3":"#fff43e"},Hr=Jp;function Il(t){return Math.floor(Math.random()*t)}(0,Fr.default)(function(){setInterval(function(){let t=Il(Hr.index.length),e=Hr.index[t],i=Hr[e],s=(Il(99)-48)*.002;(0,Fr.default)("a").css("text-shadow","0 0 0"),(0,Fr.default)("a:hover").css("text-shadow",s+"em 0 0 "+i)},200)});(function(){var t=e();function e(){if(typeof window.CustomEvent=="function")return window.CustomEvent;function o(c,d){d=d||{bubbles:!1,cancelable:!1,detail:void 0};var g=document.createEvent("CustomEvent");return g.initCustomEvent(c,d.bubbles,d.cancelable,d.detail),g}return o.prototype=window.Event.prototype,o}function i(o,c){var d=document.createElement("input");return d.type="hidden",d.name=o,d.value=c,d}function s(o,c){var d=o.getAttribute("data-to"),g=i("_method",o.getAttribute("data-method")),v=i("_csrf_token",o.getAttribute("data-csrf")),C=document.createElement("form"),x=document.createElement("input"),I=o.getAttribute("target");C.method=o.getAttribute("data-method")==="get"?"get":"post",C.action=d,C.style.display="none",I?C.target=I:c&&(C.target="_blank"),C.appendChild(v),C.appendChild(g),document.body.appendChild(C),x.type="submit",C.appendChild(x),x.click()}window.addEventListener("click",function(o){var c=o.target;if(!o.defaultPrevented)for(;c&&c.getAttribute;){var d=new t("phoenix.link.click",{bubbles:!0,cancelable:!0});if(!c.dispatchEvent(d))return o.preventDefault(),o.stopImmediatePropagation(),!1;if(c.getAttribute("data-method"))return s(c,o.metaKey||o.shiftKey),o.preventDefault(),!1;c=c.parentNode}},!1),window.addEventListener("phoenix.link.click",function(o){var c=o.target.getAttribute("data-confirm");c&&!window.confirm(c)&&o.preventDefault()},!1)})();var Hn=t=>typeof t=="function"?t:function(){return t},Qp=typeof self<"u"?self:null,Mn=typeof window<"u"?window:null,Fn=Qp||Mn||Fn,Zp="2.0.0",Ot={connecting:0,open:1,closing:2,closed:3},eg=1e4,tg=1e3,rt={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Wt={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},po={longpoll:"longpoll",websocket:"websocket"},ig={complete:4},jr=class{constructor(t,e,i,s){this.channel=t,this.event=e,this.payload=i||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(t){this.timeout=t,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(t,e){return this.hasReceived(t)&&e(this.receivedResp.response),this.recHooks.push({status:t,callback:e}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:t,response:e,_ref:i}){this.recHooks.filter(s=>s.status===t).forEach(s=>s.callback(e))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,t=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=t,this.matchReceive(t)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(t){return this.receivedResp&&this.receivedResp.status===t}trigger(t,e){this.channel.trigger(this.refEvent,{status:t,response:e})}},Rl=class{constructor(t,e){this.callback=t,this.timerCalc=e,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},ng=class{constructor(t,e,i){this.state=rt.closed,this.topic=t,this.params=Hn(e||{}),this.socket=i,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new jr(this,Wt.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new Rl(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=rt.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=rt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=rt.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=rt.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new jr(this,Wt.leave,Hn({}),this.timeout).send(),this.state=rt.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Wt.reply,(s,o)=>{this.trigger(this.replyEventName(o),s)})}join(t=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=t,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(t){this.on(Wt.close,t)}onError(t){return this.on(Wt.error,e=>t(e))}on(t,e){let i=this.bindingRef++;return this.bindings.push({event:t,ref:i,callback:e}),i}off(t,e){this.bindings=this.bindings.filter(i=>!(i.event===t&&(typeof e>"u"||e===i.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(t,e,i=this.timeout){if(e=e||{},!this.joinedOnce)throw new Error(`tried to push '${t}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new jr(this,t,function(){return e},i);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(t=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=rt.leaving;let e=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Wt.close,"leave")},i=new jr(this,Wt.leave,Hn({}),t);return i.receive("ok",()=>e()).receive("timeout",()=>e()),i.send(),this.canPush()||i.trigger("ok",{}),i}onMessage(t,e,i){return e}isMember(t,e,i,s){return this.topic!==t?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:t,event:e,payload:i,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(t=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=rt.joining,this.joinPush.resend(t))}trigger(t,e,i,s){let o=this.onMessage(t,e,i,s);if(e&&!o)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let c=this.bindings.filter(d=>d.event===t);for(let d=0;d<c.length;d++)c[d].callback(o,i,s||this.joinRef())}replyEventName(t){return`chan_reply_${t}`}isClosed(){return this.state===rt.closed}isErrored(){return this.state===rt.errored}isJoined(){return this.state===rt.joined}isJoining(){return this.state===rt.joining}isLeaving(){return this.state===rt.leaving}},Ur=class{static request(t,e,i,s,o,c,d){if(Fn.XDomainRequest){let g=new Fn.XDomainRequest;return this.xdomainRequest(g,t,e,s,o,c,d)}else{let g=new Fn.XMLHttpRequest;return this.xhrRequest(g,t,e,i,s,o,c,d)}}static xdomainRequest(t,e,i,s,o,c,d){return t.timeout=o,t.open(e,i),t.onload=()=>{let g=this.parseJSON(t.responseText);d&&d(g)},c&&(t.ontimeout=c),t.onprogress=()=>{},t.send(s),t}static xhrRequest(t,e,i,s,o,c,d,g){return t.open(e,i,!0),t.timeout=c,t.setRequestHeader("Content-Type",s),t.onerror=()=>g&&g(null),t.onreadystatechange=()=>{if(t.readyState===ig.complete&&g){let v=this.parseJSON(t.responseText);g(v)}},d&&(t.ontimeout=d),t.send(o),t}static parseJSON(t){if(!t||t==="")return null;try{return JSON.parse(t)}catch{return console&&console.log("failed to parse JSON response",t),null}}static serialize(t,e){let i=[];for(var s in t){if(!Object.prototype.hasOwnProperty.call(t,s))continue;let o=e?`${e}[${s}]`:s,c=t[s];typeof c=="object"?i.push(this.serialize(c,o)):i.push(encodeURIComponent(o)+"="+encodeURIComponent(c))}return i.join("&")}static appendParams(t,e){if(Object.keys(e).length===0)return t;let i=t.match(/\?/)?"&":"?";return`${t}${i}${this.serialize(e)}`}},ho=class{constructor(t){this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(t),this.readyState=Ot.connecting,this.poll()}normalizeEndpoint(t){return t.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+po.websocket),"$1/"+po.longpoll)}endpointURL(){return Ur.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(t,e,i){this.close(t,e,i),this.readyState=Ot.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Ot.open||this.readyState===Ot.connecting}poll(){this.ajax("GET",null,()=>this.ontimeout(),t=>{if(t){var{status:e,token:i,messages:s}=t;this.token=i}else e=0;switch(e){case 200:s.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Ot.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${e}`)}})}send(t){this.ajax("POST",t,()=>this.onerror("timeout"),e=>{(!e||e.status!==200)&&(this.onerror(e&&e.status),this.closeAndRetry(1011,"internal server error",!1))})}close(t,e,i){for(let o of this.reqs)o.abort();this.readyState=Ot.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:t,reason:e,wasClean:i});typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(t,e,i,s){let o,c=()=>{this.reqs.delete(o),i()};o=Ur.request(t,this.endpointURL(),"application/json",e,this.timeout,c,d=>{this.reqs.delete(o),this.isActive()&&s(d)}),this.reqs.add(o)}};var Br={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(t,e){if(t.payload.constructor===ArrayBuffer)return e(this.binaryEncode(t));{let i=[t.join_ref,t.ref,t.topic,t.event,t.payload];return e(JSON.stringify(i))}},decode(t,e){if(t.constructor===ArrayBuffer)return e(this.binaryDecode(t));{let[i,s,o,c,d]=JSON.parse(t);return e({join_ref:i,ref:s,topic:o,event:c,payload:d})}},binaryEncode(t){let{join_ref:e,ref:i,event:s,topic:o,payload:c}=t,d=this.META_LENGTH+e.length+i.length+o.length+s.length,g=new ArrayBuffer(this.HEADER_LENGTH+d),v=new DataView(g),C=0;v.setUint8(C++,this.KINDS.push),v.setUint8(C++,e.length),v.setUint8(C++,i.length),v.setUint8(C++,o.length),v.setUint8(C++,s.length),Array.from(e,I=>v.setUint8(C++,I.charCodeAt(0))),Array.from(i,I=>v.setUint8(C++,I.charCodeAt(0))),Array.from(o,I=>v.setUint8(C++,I.charCodeAt(0))),Array.from(s,I=>v.setUint8(C++,I.charCodeAt(0)));var x=new Uint8Array(g.byteLength+c.byteLength);return x.set(new Uint8Array(g),0),x.set(new Uint8Array(c),g.byteLength),x.buffer},binaryDecode(t){let e=new DataView(t),i=e.getUint8(0),s=new TextDecoder;switch(i){case this.KINDS.push:return this.decodePush(t,e,s);case this.KINDS.reply:return this.decodeReply(t,e,s);case this.KINDS.broadcast:return this.decodeBroadcast(t,e,s)}},decodePush(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),d=this.HEADER_LENGTH+this.META_LENGTH-1,g=i.decode(t.slice(d,d+s));d=d+s;let v=i.decode(t.slice(d,d+o));d=d+o;let C=i.decode(t.slice(d,d+c));d=d+c;let x=t.slice(d,t.byteLength);return{join_ref:g,ref:null,topic:v,event:C,payload:x}},decodeReply(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),c=e.getUint8(3),d=e.getUint8(4),g=this.HEADER_LENGTH+this.META_LENGTH,v=i.decode(t.slice(g,g+s));g=g+s;let C=i.decode(t.slice(g,g+o));g=g+o;let x=i.decode(t.slice(g,g+c));g=g+c;let I=i.decode(t.slice(g,g+d));g=g+d;let D=t.slice(g,t.byteLength),S={status:I,response:D};return{join_ref:v,ref:C,topic:x,event:Wt.reply,payload:S}},decodeBroadcast(t,e,i){let s=e.getUint8(1),o=e.getUint8(2),c=this.HEADER_LENGTH+2,d=i.decode(t.slice(c,c+s));c=c+s;let g=i.decode(t.slice(c,c+o));c=c+o;let v=t.slice(c,t.byteLength);return{join_ref:null,ref:null,topic:d,event:g,payload:v}}},$l=class{constructor(t,e={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=e.timeout||eg,this.transport=e.transport||Fn.WebSocket||ho,this.establishedConnections=0,this.defaultEncoder=Br.encode.bind(Br),this.defaultDecoder=Br.decode.bind(Br),this.closeWasClean=!1,this.binaryType=e.binaryType||"arraybuffer",this.connectClock=1,this.transport!==ho?(this.encode=e.encode||this.defaultEncoder,this.decode=e.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let i=null;Mn&&Mn.addEventListener&&(Mn.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),i=this.connectClock)}),Mn.addEventListener("pageshow",s=>{i===this.connectClock&&(i=null,this.connect())})),this.heartbeatIntervalMs=e.heartbeatIntervalMs||3e4,this.rejoinAfterMs=s=>e.rejoinAfterMs?e.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>e.reconnectAfterMs?e.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=e.logger||null,this.longpollerTimeout=e.longpollerTimeout||2e4,this.params=Hn(e.params||{}),this.endPoint=`${t}/${po.websocket}`,this.vsn=e.vsn||Zp,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new Rl(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs)}getLongPollTransport(){return ho}replaceTransport(t){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.sendBuffer=[],this.conn&&(this.conn.close(),this.conn=null),this.transport=t}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let t=Ur.appendParams(Ur.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return t.charAt(0)!=="/"?t:t.charAt(1)==="/"?`${this.protocol()}:${t}`:`${this.protocol()}://${location.host}${t}`}disconnect(t,e,i){this.connectClock++,this.closeWasClean=!0,this.reconnectTimer.reset(),this.teardown(t,e,i)}connect(t){t&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Hn(t)),!this.conn&&(this.connectClock++,this.closeWasClean=!1,this.conn=new this.transport(this.endPointURL()),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=e=>this.onConnError(e),this.conn.onmessage=e=>this.onConnMessage(e),this.conn.onclose=e=>this.onConnClose(e))}log(t,e,i){this.logger(t,e,i)}hasLogger(){return this.logger!==null}onOpen(t){let e=this.makeRef();return this.stateChangeCallbacks.open.push([e,t]),e}onClose(t){let e=this.makeRef();return this.stateChangeCallbacks.close.push([e,t]),e}onError(t){let e=this.makeRef();return this.stateChangeCallbacks.error.push([e,t]),e}onMessage(t){let e=this.makeRef();return this.stateChangeCallbacks.message.push([e,t]),e}ping(t){if(!this.isConnected())return!1;let e=this.makeRef(),i=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:e});let s=this.onMessage(o=>{o.ref===e&&(this.off([s]),t(Date.now()-i))});return!0}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,t])=>t())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),tg,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(t,e,i){if(!this.conn)return t&&t();this.waitForBufferDone(()=>{this.conn&&(e?this.conn.close(e,i||""):this.conn.close()),this.waitForSocketClosed(()=>{this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),t&&t()})})}waitForBufferDone(t,e=1){if(e===5||!this.conn||!this.conn.bufferedAmount){t();return}setTimeout(()=>{this.waitForBufferDone(t,e+1)},150*e)}waitForSocketClosed(t,e=1){if(e===5||!this.conn||this.conn.readyState===Ot.closed){t();return}setTimeout(()=>{this.waitForSocketClosed(t,e+1)},150*e)}onConnClose(t){let e=t&&t.code;this.hasLogger()&&this.log("transport","close",t),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&e!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,i])=>i(t))}onConnError(t){this.hasLogger()&&this.log("transport",t);let e=this.transport,i=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,s])=>{s(t,e,i)}),(e===this.transport||i>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(t=>{t.isErrored()||t.isLeaving()||t.isClosed()||t.trigger(Wt.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Ot.connecting:return"connecting";case Ot.open:return"open";case Ot.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(t){this.off(t.stateChangeRefs),this.channels=this.channels.filter(e=>e.joinRef()!==t.joinRef())}off(t){for(let e in this.stateChangeCallbacks)this.stateChangeCallbacks[e]=this.stateChangeCallbacks[e].filter(([i])=>t.indexOf(i)===-1)}channel(t,e={}){let i=new ng(t,e,this);return this.channels.push(i),i}push(t){if(this.hasLogger()){let{topic:e,event:i,payload:s,ref:o,join_ref:c}=t;this.log("push",`${e} ${i} (${c}, ${o})`,s)}this.isConnected()?this.encode(t,e=>this.conn.send(e)):this.sendBuffer.push(()=>this.encode(t,e=>this.conn.send(e)))}makeRef(){let t=this.ref+1;return t===this.ref?this.ref=0:this.ref=t,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(t=>t()),this.sendBuffer=[])}onConnMessage(t){this.decode(t.data,e=>{let{topic:i,event:s,payload:o,ref:c,join_ref:d}=e;c&&c===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${o.status||""} ${i} ${s} ${c&&"("+c+")"||""}`,o);for(let g=0;g<this.channels.length;g++){let v=this.channels[g];v.isMember(i,s,o,d)&&v.trigger(s,o,c,d)}for(let g=0;g<this.stateChangeCallbacks.message.length;g++){let[,v]=this.stateChangeCallbacks.message[g];v(e)}})}leaveOpenTopic(t){let e=this.channels.find(i=>i.topic===t&&(i.isJoined()||i.isJoining()));e&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${t}"`),e.leave())}};var nu="consecutive-reloads",rg=10,sg=5e3,og=1e4,ag=3e4,ru=["phx-click-loading","phx-change-loading","phx-submit-loading","phx-keydown-loading","phx-keyup-loading","phx-blur-loading","phx-focus-loading"],ot="data-phx-component",go="data-phx-link",lg="track-static",ug="data-phx-link-state",Pt="data-phx-ref",Li="data-phx-ref-src",su="track-uploads",Ni="data-phx-upload-ref",Oo="data-phx-preflighted-refs",cg="data-phx-done-refs",Ml="drop-target",To="data-phx-active-refs",wo="phx:live-file:updated",xo="data-phx-skip",Hl="data-phx-prune",Fl="page-loading",jl="phx-connected",mo="phx-loading",Bl="phx-no-feedback",Ul="phx-error",on="data-phx-parent-id",Do="data-phx-main",Kn="data-phx-root-id",fg="trigger-action",Co="feedback-for",ou="phx-has-focused",hg=["text","textarea","number","email","password","search","tel","url","date","time","datetime-local","color","range"],au=["checkbox","radio"],lu="phx-has-submitted",li="data-phx-session",an=`[${li}]`,Vl="data-phx-sticky",qn="data-phx-static",vo="data-phx-readonly",Vr="data-phx-disabled",So="disable-with",Wr="data-phx-disable-with-restore",jn="hook",dg="debounce",pg="throttle",ko="update",gg="key",Dt="phxPrivate",Wl="auto-recover",qr="phx:live-socket:debug",bo="phx:live-socket:profiling",yo="phx:live-socket:latency-sim",mg="progress",vg=1,bg=200,yg="phx-",_g=3e4,Bn="debounce-trigger",zr="throttled",ql="debounce-prev-key",Eg={debounce:300,throttle:300},zl="d",Lt="s",st="c",Kl="e",Xl="r",Yl="t",Ag="p",Tg=class{constructor(t,e,i){this.liveSocket=i,this.entry=t,this.offset=0,this.chunkSize=e,this.chunkTimer=null,this.uploadChannel=i.channel(`lvu:${t.ref}`,{token:t.metadata()})}error(t){clearTimeout(this.chunkTimer),this.uploadChannel.leave(),this.entry.error(t)}upload(){this.uploadChannel.onError(t=>this.error(t)),this.uploadChannel.join().receive("ok",t=>this.readNextChunk()).receive("error",t=>this.error(t))}isDone(){return this.offset>=this.entry.file.size}readNextChunk(){let t=new window.FileReader,e=this.entry.file.slice(this.offset,this.chunkSize+this.offset);t.onload=i=>{if(i.target.error===null)this.offset+=i.target.result.byteLength,this.pushChunk(i.target.result);else return We("Read error: "+i.target.error)},t.readAsArrayBuffer(e)}pushChunk(t){this.uploadChannel.isJoined()&&this.uploadChannel.push("chunk",t).receive("ok",()=>{this.entry.progress(this.offset/this.entry.file.size*100),this.isDone()||(this.chunkTimer=setTimeout(()=>this.readNextChunk(),this.liveSocket.getLatencySim()||0))})}},We=(t,e)=>console.error&&console.error(t,e),ai=t=>{let e=typeof t;return e==="number"||e==="string"&&/^(0|[1-9]\d*)$/.test(t)};function wg(){let t=new Set,e=document.querySelectorAll("*[id]");for(let i=0,s=e.length;i<s;i++)t.has(e[i].id)?console.error(`Multiple IDs detected: ${e[i].id}. Ensure unique element ids.`):t.add(e[i].id)}var xg=(t,e,i,s)=>{t.liveSocket.isDebugEnabled()&&console.log(`${t.id} ${e}: ${i} - `,s)},_o=t=>typeof t=="function"?t:function(){return t},Jr=t=>JSON.parse(JSON.stringify(t)),zn=(t,e,i)=>{do{if(t.matches(`[${e}]`))return t;t=t.parentElement||t.parentNode}while(t!==null&&t.nodeType===1&&!(i&&i.isSameNode(t)||t.matches(an)));return null},Un=t=>t!==null&&typeof t=="object"&&!(t instanceof Array),Cg=(t,e)=>JSON.stringify(t)===JSON.stringify(e),Gl=t=>{for(let e in t)return!1;return!0},qt=(t,e)=>t&&e(t),Sg=function(t,e,i,s){t.forEach(o=>{new Tg(o,i.config.chunk_size,s).upload()})},uu={canPushState(){return typeof history.pushState<"u"},dropLocal(t,e,i){return t.removeItem(this.localKey(e,i))},updateLocal(t,e,i,s,o){let c=this.getLocal(t,e,i),d=this.localKey(e,i),g=c===null?s:o(c);return t.setItem(d,JSON.stringify(g)),g},getLocal(t,e,i){return JSON.parse(t.getItem(this.localKey(e,i)))},updateCurrentState(t){this.canPushState()&&history.replaceState(t(history.state||{}),"",window.location.href)},pushState(t,e,i){if(this.canPushState()){if(i!==window.location.href){if(e.type=="redirect"&&e.scroll){let o=history.state||{};o.scroll=e.scroll,history.replaceState(o,"",window.location.href)}delete e.scroll,history[t+"State"](e,"",i||null);let s=this.getHashTargetEl(window.location.hash);s?s.scrollIntoView():e.type==="redirect"&&window.scroll(0,0)}}else this.redirect(i)},setCookie(t,e){document.cookie=`${t}=${e}`},getCookie(t){return document.cookie.replace(new RegExp(`(?:(?:^|.*;s*)${t}s*=s*([^;]*).*$)|^.*$`),"$1")},redirect(t,e){e&&uu.setCookie("__phoenix_flash__",e+"; max-age=60000; path=/"),window.location=t},localKey(t,e){return`${t}-${e}`},getHashTargetEl(t){let e=t.toString().substring(1);if(e!=="")return document.getElementById(e)||document.querySelector(`a[name="${e}"]`)}},oi=uu,Et={byId(t){return document.getElementById(t)||We(`no id found for ${t}`)},removeClass(t,e){t.classList.remove(e),t.classList.length===0&&t.removeAttribute("class")},all(t,e,i){if(!t)return[];let s=Array.from(t.querySelectorAll(e));return i?s.forEach(i):s},childNodeLength(t){let e=document.createElement("template");return e.innerHTML=t,e.content.childElementCount},isUploadInput(t){return t.type==="file"&&t.getAttribute(Ni)!==null},findUploadInputs(t){return this.all(t,`input[type="file"][${Ni}]`)},findComponentNodeList(t,e){return this.filterWithinSameLiveView(this.all(t,`[${ot}="${e}"]`),t)},isPhxDestroyed(t){return!!(t.id&&Et.private(t,"destroyed"))},markPhxChildDestroyed(t){this.isPhxChild(t)&&t.setAttribute(li,""),this.putPrivate(t,"destroyed",!0)},findPhxChildrenInFragment(t,e){let i=document.createElement("template");return i.innerHTML=t,this.findPhxChildren(i.content,e)},isIgnored(t,e){return(t.getAttribute(e)||t.getAttribute("data-phx-update"))==="ignore"},isPhxUpdate(t,e,i){return t.getAttribute&&i.indexOf(t.getAttribute(e))>=0},findPhxSticky(t){return this.all(t,`[${Vl}]`)},findPhxChildren(t,e){return this.all(t,`${an}[${on}="${e}"]`)},findParentCIDs(t,e){let i=new Set(e);return e.reduce((s,o)=>{let c=`[${ot}="${o}"] [${ot}]`;return this.filterWithinSameLiveView(this.all(t,c),t).map(d=>parseInt(d.getAttribute(ot))).forEach(d=>s.delete(d)),s},i)},filterWithinSameLiveView(t,e){return e.querySelector(an)?t.filter(i=>this.withinSameLiveView(i,e)):t},withinSameLiveView(t,e){for(;t=t.parentNode;){if(t.isSameNode(e))return!0;if(t.getAttribute(li)!==null)return!1}},private(t,e){return t[Dt]&&t[Dt][e]},deletePrivate(t,e){t[Dt]&&delete t[Dt][e]},putPrivate(t,e,i){t[Dt]||(t[Dt]={}),t[Dt][e]=i},updatePrivate(t,e,i,s){let o=this.private(t,e);o===void 0?this.putPrivate(t,e,s(i)):this.putPrivate(t,e,s(o))},copyPrivates(t,e){e[Dt]&&(t[Dt]=e[Dt])},putTitle(t){let e=document.querySelector("title"),{prefix:i,suffix:s}=e.dataset;document.title=`${i||""}${t}${s||""}`},debounce(t,e,i,s,o,c,d,g){let v=t.getAttribute(i),C=t.getAttribute(o);v===""&&(v=s),C===""&&(C=c);let x=v||C;switch(x){case null:return g();case"blur":this.once(t,"debounce-blur")&&t.addEventListener("blur",()=>g());return;default:let I=parseInt(x),D=()=>C?this.deletePrivate(t,zr):g(),S=this.incCycle(t,Bn,D);if(isNaN(I))return We(`invalid throttle/debounce value: ${x}`);if(C){let A=!1;if(e.type==="keydown"){let _=this.private(t,ql);this.putPrivate(t,ql,e.key),A=_!==e.key}if(!A&&this.private(t,zr))return!1;g(),this.putPrivate(t,zr,!0),setTimeout(()=>{d()&&this.triggerCycle(t,Bn)},I)}else setTimeout(()=>{d()&&this.triggerCycle(t,Bn,S)},I);let N=t.form;N&&this.once(N,"bind-debounce")&&N.addEventListener("submit",()=>{Array.from(new FormData(N).entries(),([A])=>{let _=N.querySelector(`[name="${A}"]`);this.incCycle(_,Bn),this.deletePrivate(_,zr)})}),this.once(t,"bind-debounce")&&t.addEventListener("blur",()=>this.triggerCycle(t,Bn))}},triggerCycle(t,e,i){let[s,o]=this.private(t,e);i||(i=s),i===s&&(this.incCycle(t,e),o())},once(t,e){return this.private(t,e)===!0?!1:(this.putPrivate(t,e,!0),!0)},incCycle(t,e,i=function(){}){let[s]=this.private(t,e)||[0,i];return s++,this.putPrivate(t,e,[s,i]),s},discardError(t,e,i){let s=e.getAttribute&&e.getAttribute(i),o=s&&t.querySelector(`[id="${s}"], [name="${s}"]`);o&&(this.private(o,ou)||this.private(o.form,lu)||e.classList.add(Bl))},showError(t,e){(t.id||t.name)&&this.all(t.form,`[${e}="${t.id}"], [${e}="${t.name}"]`,i=>{this.removeClass(i,Bl)})},isPhxChild(t){return t.getAttribute&&t.getAttribute(on)},isPhxSticky(t){return t.getAttribute&&t.getAttribute(Vl)!==null},firstPhxChild(t){return this.isPhxChild(t)?t:this.all(t,`[${on}]`)[0]},dispatchEvent(t,e,i={}){let o={bubbles:i.bubbles===void 0?!0:!!i.bubbles,cancelable:!0,detail:i.detail||{}},c=e==="click"?new MouseEvent("click",o):new CustomEvent(e,o);t.dispatchEvent(c)},cloneNode(t,e){if(typeof e>"u")return t.cloneNode(!0);{let i=t.cloneNode(!1);return i.innerHTML=e,i}},mergeAttrs(t,e,i={}){let s=i.exclude||[],o=i.isIgnored,c=e.attributes;for(let g=c.length-1;g>=0;g--){let v=c[g].name;s.indexOf(v)<0&&t.setAttribute(v,e.getAttribute(v))}let d=t.attributes;for(let g=d.length-1;g>=0;g--){let v=d[g].name;o?v.startsWith("data-")&&!e.hasAttribute(v)&&t.removeAttribute(v):e.hasAttribute(v)||t.removeAttribute(v)}},mergeFocusedInput(t,e){t instanceof HTMLSelectElement||Et.mergeAttrs(t,e,{exclude:["value"]}),e.readOnly?t.setAttribute("readonly",!0):t.removeAttribute("readonly")},hasSelectionRange(t){return t.setSelectionRange&&(t.type==="text"||t.type==="textarea")},restoreFocus(t,e,i){if(!Et.isTextualInput(t))return;let s=t.matches(":focus");t.readOnly&&t.blur(),s||t.focus(),this.hasSelectionRange(t)&&t.setSelectionRange(e,i)},isFormInput(t){return/^(?:input|select|textarea)$/i.test(t.tagName)&&t.type!=="button"},syncAttrsToProps(t){t instanceof HTMLInputElement&&au.indexOf(t.type.toLocaleLowerCase())>=0&&(t.checked=t.getAttribute("checked")!==null)},isTextualInput(t){return hg.indexOf(t.type)>=0},isNowTriggerFormExternal(t,e){return t.getAttribute&&t.getAttribute(e)!==null},syncPendingRef(t,e,i){let s=t.getAttribute(Pt);if(s===null)return!0;let o=t.getAttribute(Li);return Et.isFormInput(t)||t.getAttribute(i)!==null?(Et.isUploadInput(t)&&Et.mergeAttrs(t,e,{isIgnored:!0}),Et.putPrivate(t,Pt,e),!1):(ru.forEach(c=>{t.classList.contains(c)&&e.classList.add(c)}),e.setAttribute(Pt,s),e.setAttribute(Li,o),!0)},cleanChildNodes(t,e){if(Et.isPhxUpdate(t,e,["append","prepend"])){let i=[];t.childNodes.forEach(s=>{s.id||(s.nodeType===Node.TEXT_NODE&&s.nodeValue.trim()===""||We(`only HTML element tags with an id are allowed inside containers with phx-update.
removing illegal node: "${(s.outerHTML||s.nodeValue).trim()}"
`),i.push(s))}),i.forEach(s=>s.remove())}},replaceRootContainer(t,e,i){let s=new Set(["id",li,qn,Do,Kn]);if(t.tagName.toLowerCase()===e.toLowerCase())return Array.from(t.attributes).filter(o=>!s.has(o.name.toLowerCase())).forEach(o=>t.removeAttribute(o.name)),Object.keys(i).filter(o=>!s.has(o.toLowerCase())).forEach(o=>t.setAttribute(o,i[o])),t;{let o=document.createElement(e);return Object.keys(i).forEach(c=>o.setAttribute(c,i[c])),s.forEach(c=>o.setAttribute(c,t.getAttribute(c))),o.innerHTML=t.innerHTML,t.replaceWith(o),o}},getSticky(t,e,i){let s=(Et.private(t,"sticky")||[]).find(([o])=>e===o);if(s){let[o,c,d]=s;return d}else return typeof i=="function"?i():i},deleteSticky(t,e){this.updatePrivate(t,"sticky",[],i=>i.filter(([s,o])=>s!==e))},putSticky(t,e,i){let s=i(t);this.updatePrivate(t,"sticky",[],o=>{let c=o.findIndex(([d])=>e===d);return c>=0?o[c]=[e,i,s]:o.push([e,i,s]),o})},applyStickyOperations(t){let e=Et.private(t,"sticky");e&&e.forEach(([i,s,o])=>this.putSticky(t,i,s))}},j=Et,Eo=class{static isActive(t,e){let i=e._phxRef===void 0,o=t.getAttribute(To).split(",").indexOf(Ve.genFileRef(e))>=0;return e.size>0&&(i||o)}static isPreflighted(t,e){return t.getAttribute(Oo).split(",").indexOf(Ve.genFileRef(e))>=0&&this.isActive(t,e)}constructor(t,e,i){this.ref=Ve.genFileRef(e),this.fileEl=t,this.file=e,this.view=i,this.meta=null,this._isCancelled=!1,this._isDone=!1,this._progress=0,this._lastProgressSent=-1,this._onDone=function(){},this._onElUpdated=this.onElUpdated.bind(this),this.fileEl.addEventListener(wo,this._onElUpdated)}metadata(){return this.meta}progress(t){this._progress=Math.floor(t),this._progress>this._lastProgressSent&&(this._progress>=100?(this._progress=100,this._lastProgressSent=100,this._isDone=!0,this.view.pushFileProgress(this.fileEl,this.ref,100,()=>{Ve.untrackFile(this.fileEl,this.file),this._onDone()})):(this._lastProgressSent=this._progress,this.view.pushFileProgress(this.fileEl,this.ref,this._progress)))}cancel(){this._isCancelled=!0,this._isDone=!0,this._onDone()}isDone(){return this._isDone}error(t="failed"){this.view.pushFileProgress(this.fileEl,this.ref,{error:t}),Ve.clearFiles(this.fileEl)}onDone(t){this._onDone=()=>{this.fileEl.removeEventListener(wo,this._onElUpdated),t()}}onElUpdated(){this.fileEl.getAttribute(To).split(",").indexOf(this.ref)===-1&&this.cancel()}toPreflightPayload(){return{last_modified:this.file.lastModified,name:this.file.name,size:this.file.size,type:this.file.type,ref:this.ref}}uploader(t){if(this.meta.uploader){let e=t[this.meta.uploader]||We(`no uploader configured for ${this.meta.uploader}`);return{name:this.meta.uploader,callback:e}}else return{name:"channel",callback:Sg}}zipPostFlight(t){this.meta=t.entries[this.ref],this.meta||We(`no preflight upload response returned with ref ${this.ref}`,{input:this.fileEl,response:t})}},kg=0,Ve=class{static genFileRef(t){let e=t._phxRef;return e!==void 0?e:(t._phxRef=(kg++).toString(),t._phxRef)}static getEntryDataURL(t,e,i){let s=this.activeFiles(t).find(o=>this.genFileRef(o)===e);i(URL.createObjectURL(s))}static hasUploadsInProgress(t){let e=0;return j.findUploadInputs(t).forEach(i=>{i.getAttribute(Oo)!==i.getAttribute(cg)&&e++}),e>0}static serializeUploads(t){let e=this.activeFiles(t),i={};return e.forEach(s=>{let o={path:t.name},c=t.getAttribute(Ni);i[c]=i[c]||[],o.ref=this.genFileRef(s),o.name=s.name||o.ref,o.type=s.type,o.size=s.size,i[c].push(o)}),i}static clearFiles(t){t.value=null,t.removeAttribute(Ni),j.putPrivate(t,"files",[])}static untrackFile(t,e){j.putPrivate(t,"files",j.private(t,"files").filter(i=>!Object.is(i,e)))}static trackFiles(t,e){if(t.getAttribute("multiple")!==null){let i=e.filter(s=>!this.activeFiles(t).find(o=>Object.is(o,s)));j.putPrivate(t,"files",this.activeFiles(t).concat(i)),t.value=null}else j.putPrivate(t,"files",e)}static activeFileInputs(t){let e=j.findUploadInputs(t);return Array.from(e).filter(i=>i.files&&this.activeFiles(i).length>0)}static activeFiles(t){return(j.private(t,"files")||[]).filter(e=>Eo.isActive(t,e))}static inputsAwaitingPreflight(t){let e=j.findUploadInputs(t);return Array.from(e).filter(i=>this.filesAwaitingPreflight(i).length>0)}static filesAwaitingPreflight(t){return this.activeFiles(t).filter(e=>!Eo.isPreflighted(t,e))}constructor(t,e,i){this.view=e,this.onComplete=i,this._entries=Array.from(Ve.filesAwaitingPreflight(t)||[]).map(s=>new Eo(t,s,e)),this.numEntriesInProgress=this._entries.length}entries(){return this._entries}initAdapterUpload(t,e,i){this._entries=this._entries.map(o=>(o.zipPostFlight(t),o.onDone(()=>{this.numEntriesInProgress--,this.numEntriesInProgress===0&&this.onComplete()}),o));let s=this._entries.reduce((o,c)=>{let{name:d,callback:g}=c.uploader(i.uploaders);return o[d]=o[d]||{callback:g,entries:[]},o[d].entries.push(c),o},{});for(let o in s){let{callback:c,entries:d}=s[o];c(d,e,t,i)}}},Og={LiveFileUpload:{activeRefs(){return this.el.getAttribute(To)},preflightedRefs(){return this.el.getAttribute(Oo)},mounted(){this.preflightedWas=this.preflightedRefs()},updated(){let t=this.preflightedRefs();this.preflightedWas!==t&&(this.preflightedWas=t,t===""&&this.__view.cancelSubmit(this.el.form)),this.activeRefs()===""&&(this.el.value=null),this.el.dispatchEvent(new CustomEvent(wo))}},LiveImgPreview:{mounted(){this.ref=this.el.getAttribute("data-phx-entry-ref"),this.inputEl=document.getElementById(this.el.getAttribute(Ni)),Ve.getEntryDataURL(this.inputEl,this.ref,t=>{this.url=t,this.el.src=t})},destroyed(){URL.revokeObjectURL(this.url)}}},Dg=Og,Lg=class{constructor(t,e,i){let s=new Set,o=new Set([...e.children].map(d=>d.id)),c=[];Array.from(t.children).forEach(d=>{if(d.id&&(s.add(d.id),o.has(d.id))){let g=d.previousElementSibling&&d.previousElementSibling.id;c.push({elementId:d.id,previousElementId:g})}}),this.containerId=e.id,this.updateType=i,this.elementsToModify=c,this.elementIdsToAdd=[...o].filter(d=>!s.has(d))}perform(){let t=j.byId(this.containerId);this.elementsToModify.forEach(e=>{e.previousElementId?qt(document.getElementById(e.previousElementId),i=>{qt(document.getElementById(e.elementId),s=>{s.previousElementSibling&&s.previousElementSibling.id==i.id||i.insertAdjacentElement("afterend",s)})}):qt(document.getElementById(e.elementId),i=>{i.previousElementSibling==null||t.insertAdjacentElement("afterbegin",i)})}),this.updateType=="prepend"&&this.elementIdsToAdd.reverse().forEach(e=>{qt(document.getElementById(e),i=>t.insertAdjacentElement("afterbegin",i))})}},Jl=11;function Ng(t,e){var i=e.attributes,s,o,c,d,g;if(!(e.nodeType===Jl||t.nodeType===Jl)){for(var v=i.length-1;v>=0;v--)s=i[v],o=s.name,c=s.namespaceURI,d=s.value,c?(o=s.localName||o,g=t.getAttributeNS(c,o),g!==d&&(s.prefix==="xmlns"&&(o=s.name),t.setAttributeNS(c,o,d))):(g=t.getAttribute(o),g!==d&&t.setAttribute(o,d));for(var C=t.attributes,x=C.length-1;x>=0;x--)s=C[x],o=s.name,c=s.namespaceURI,c?(o=s.localName||o,e.hasAttributeNS(c,o)||t.removeAttributeNS(c,o)):e.hasAttribute(o)||t.removeAttribute(o)}}var Kr,Pg="http://www.w3.org/1999/xhtml",tt=typeof document>"u"?void 0:document,Ig=!!tt&&"content"in tt.createElement("template"),Rg=!!tt&&tt.createRange&&"createContextualFragment"in tt.createRange();function $g(t){var e=tt.createElement("template");return e.innerHTML=t,e.content.childNodes[0]}function Mg(t){Kr||(Kr=tt.createRange(),Kr.selectNode(tt.body));var e=Kr.createContextualFragment(t);return e.childNodes[0]}function Hg(t){var e=tt.createElement("body");return e.innerHTML=t,e.childNodes[0]}function Fg(t){return t=t.trim(),Ig?$g(t):Rg?Mg(t):Hg(t)}function Xr(t,e){var i=t.nodeName,s=e.nodeName,o,c;return i===s?!0:(o=i.charCodeAt(0),c=s.charCodeAt(0),o<=90&&c>=97?i===s.toUpperCase():c<=90&&o>=97?s===i.toUpperCase():!1)}function jg(t,e){return!e||e===Pg?tt.createElement(t):tt.createElementNS(e,t)}function Bg(t,e){for(var i=t.firstChild;i;){var s=i.nextSibling;e.appendChild(i),i=s}return e}function Ao(t,e,i){t[i]!==e[i]&&(t[i]=e[i],t[i]?t.setAttribute(i,""):t.removeAttribute(i))}var Ql={OPTION:function(t,e){var i=t.parentNode;if(i){var s=i.nodeName.toUpperCase();s==="OPTGROUP"&&(i=i.parentNode,s=i&&i.nodeName.toUpperCase()),s==="SELECT"&&!i.hasAttribute("multiple")&&(t.hasAttribute("selected")&&!e.selected&&(t.setAttribute("selected","selected"),t.removeAttribute("selected")),i.selectedIndex=-1)}Ao(t,e,"selected")},INPUT:function(t,e){Ao(t,e,"checked"),Ao(t,e,"disabled"),t.value!==e.value&&(t.value=e.value),e.hasAttribute("value")||t.removeAttribute("value")},TEXTAREA:function(t,e){var i=e.value;t.value!==i&&(t.value=i);var s=t.firstChild;if(s){var o=s.nodeValue;if(o==i||!i&&o==t.placeholder)return;s.nodeValue=i}},SELECT:function(t,e){if(!e.hasAttribute("multiple")){for(var i=-1,s=0,o=t.firstChild,c,d;o;)if(d=o.nodeName&&o.nodeName.toUpperCase(),d==="OPTGROUP")c=o,o=c.firstChild;else{if(d==="OPTION"){if(o.hasAttribute("selected")){i=s;break}s++}o=o.nextSibling,!o&&c&&(o=c.nextSibling,c=null)}t.selectedIndex=i}}},Vn=1,Ug=11,Zl=3,eu=8;function Di(){}function Vg(t){if(t)return t.getAttribute&&t.getAttribute("id")||t.id}function Wg(t){return function(i,s,o){if(o||(o={}),typeof s=="string")if(i.nodeName==="#document"||i.nodeName==="HTML"||i.nodeName==="BODY"){var c=s;s=tt.createElement("html"),s.innerHTML=c}else s=Fg(s);var d=o.getNodeKey||Vg,g=o.onBeforeNodeAdded||Di,v=o.onNodeAdded||Di,C=o.onBeforeElUpdated||Di,x=o.onElUpdated||Di,I=o.onBeforeNodeDiscarded||Di,D=o.onNodeDiscarded||Di,S=o.onBeforeElChildrenUpdated||Di,N=o.childrenOnly===!0,A=Object.create(null),_=[];function R(Y){_.push(Y)}function F(Y,W){if(Y.nodeType===Vn)for(var X=Y.firstChild;X;){var oe=void 0;W&&(oe=d(X))?R(oe):(D(X),X.firstChild&&F(X,W)),X=X.nextSibling}}function T(Y,W,X){I(Y)!==!1&&(W&&W.removeChild(Y),D(Y),F(Y,X))}function H(Y){if(Y.nodeType===Vn||Y.nodeType===Ug)for(var W=Y.firstChild;W;){var X=d(W);X&&(A[X]=W),H(W),W=W.nextSibling}}H(i);function K(Y){v(Y);for(var W=Y.firstChild;W;){var X=W.nextSibling,oe=d(W);if(oe){var de=A[oe];de&&Xr(W,de)?(W.parentNode.replaceChild(de,W),ee(de,W)):K(W)}else K(W);W=X}}function l(Y,W,X){for(;W;){var oe=W.nextSibling;(X=d(W))?R(X):T(W,Y,!0),W=oe}}function ee(Y,W,X){var oe=d(W);oe&&delete A[oe],!(!X&&(C(Y,W)===!1||(t(Y,W),x(Y),S(Y,W)===!1)))&&(Y.nodeName!=="TEXTAREA"?G(Y,W):Ql.TEXTAREA(Y,W))}function G(Y,W){var X=W.firstChild,oe=Y.firstChild,de,Pe,we,Oe,Se;e:for(;X;){for(Oe=X.nextSibling,de=d(X);oe;){if(we=oe.nextSibling,X.isSameNode&&X.isSameNode(oe)){X=Oe,oe=we;continue e}Pe=d(oe);var Ie=oe.nodeType,Ae=void 0;if(Ie===X.nodeType&&(Ie===Vn?(de?de!==Pe&&((Se=A[de])?we===Se?Ae=!1:(Y.insertBefore(Se,oe),Pe?R(Pe):T(oe,Y,!0),oe=Se):Ae=!1):Pe&&(Ae=!1),Ae=Ae!==!1&&Xr(oe,X),Ae&&ee(oe,X)):(Ie===Zl||Ie==eu)&&(Ae=!0,oe.nodeValue!==X.nodeValue&&(oe.nodeValue=X.nodeValue))),Ae){X=Oe,oe=we;continue e}Pe?R(Pe):T(oe,Y,!0),oe=we}if(de&&(Se=A[de])&&Xr(Se,X))Y.appendChild(Se),ee(Se,X);else{var Ge=g(X);Ge!==!1&&(Ge&&(X=Ge),X.actualize&&(X=X.actualize(Y.ownerDocument||tt)),Y.appendChild(X),K(X))}X=Oe,oe=we}l(Y,oe,Pe);var it=Ql[Y.nodeName];it&&it(Y,W)}var re=i,me=re.nodeType,_e=s.nodeType;if(!N){if(me===Vn)_e===Vn?Xr(i,s)||(D(i),re=Bg(i,jg(s.nodeName,s.namespaceURI))):re=s;else if(me===Zl||me===eu){if(_e===me)return re.nodeValue!==s.nodeValue&&(re.nodeValue=s.nodeValue),re;re=s}}if(re===s)D(i);else{if(s.isSameNode&&s.isSameNode(re))return;if(ee(re,s,N),_)for(var se=0,ye=_.length;se<ye;se++){var je=A[_[se]];je&&T(je,je.parentNode,!1)}}return!N&&re!==i&&i.parentNode&&(re.actualize&&(re=re.actualize(i.ownerDocument||tt)),i.parentNode.replaceChild(re,i)),re}}var qg=Wg(Ng),tu=qg,Yr=class{static patchEl(t,e,i){tu(t,e,{childrenOnly:!1,onBeforeElUpdated:(s,o)=>{if(i&&i.isSameNode(s)&&j.isFormInput(s))return j.mergeFocusedInput(s,o),!1}})}constructor(t,e,i,s,o){this.view=t,this.liveSocket=t.liveSocket,this.container=e,this.id=i,this.rootID=t.root.id,this.html=s,this.targetCID=o,this.cidPatch=ai(this.targetCID),this.callbacks={beforeadded:[],beforeupdated:[],beforephxChildAdded:[],afteradded:[],afterupdated:[],afterdiscarded:[],afterphxChildAdded:[],aftertransitionsDiscarded:[]}}before(t,e){this.callbacks[`before${t}`].push(e)}after(t,e){this.callbacks[`after${t}`].push(e)}trackBefore(t,...e){this.callbacks[`before${t}`].forEach(i=>i(...e))}trackAfter(t,...e){this.callbacks[`after${t}`].forEach(i=>i(...e))}markPrunableContentForRemoval(){j.all(this.container,"[phx-update=append] > *, [phx-update=prepend] > *",t=>{t.setAttribute(Hl,"")})}perform(){let{view:t,liveSocket:e,container:i,html:s}=this,o=this.isCIDPatch()?this.targetCIDContainer(s):i;if(this.isCIDPatch()&&!o)return;let c=e.getActiveElement(),{selectionStart:d,selectionEnd:g}=c&&j.hasSelectionRange(c)?c:{},v=e.binding(ko),C=e.binding(Co),x=e.binding(So),I=e.binding(fg),D=e.binding("remove"),S=[],N=[],A=[],_=[],R=null,F=e.time("premorph container prep",()=>this.buildDiffHTML(i,s,v,o));return this.trackBefore("added",i),this.trackBefore("updated",i,i),e.time("morphdom",()=>{tu(o,F,{childrenOnly:o.getAttribute(ot)===null,getNodeKey:T=>j.isPhxDestroyed(T)?null:T.id,onBeforeNodeAdded:T=>(this.trackBefore("added",T),T),onNodeAdded:T=>{T instanceof HTMLImageElement&&T.srcset?T.srcset=T.srcset:T instanceof HTMLVideoElement&&T.autoplay&&T.play(),j.isNowTriggerFormExternal(T,I)&&(R=T),j.discardError(o,T,C),(j.isPhxChild(T)&&t.ownsElement(T)||j.isPhxSticky(T)&&t.ownsElement(T.parentNode))&&this.trackAfter("phxChildAdded",T),S.push(T)},onNodeDiscarded:T=>{(j.isPhxChild(T)||j.isPhxSticky(T))&&e.destroyViewByEl(T),this.trackAfter("discarded",T)},onBeforeNodeDiscarded:T=>T.getAttribute&&T.getAttribute(Hl)!==null?!0:T.parentNode!==null&&j.isPhxUpdate(T.parentNode,v,["append","prepend"])&&T.id?!1:T.getAttribute&&T.getAttribute(D)?(_.push(T),!1):!this.skipCIDSibling(T),onElUpdated:T=>{j.isNowTriggerFormExternal(T,I)&&(R=T),N.push(T)},onBeforeElUpdated:(T,H)=>{if(j.cleanChildNodes(H,v),this.skipCIDSibling(H)||j.isPhxSticky(T))return!1;if(j.isIgnored(T,v))return this.trackBefore("updated",T,H),j.mergeAttrs(T,H,{isIgnored:!0}),N.push(T),j.applyStickyOperations(T),!1;if(T.type==="number"&&T.validity&&T.validity.badInput)return!1;if(!j.syncPendingRef(T,H,x))return j.isUploadInput(T)&&(this.trackBefore("updated",T,H),N.push(T)),j.applyStickyOperations(T),!1;if(j.isPhxChild(H)){let l=T.getAttribute(li);return j.mergeAttrs(T,H,{exclude:[qn]}),l!==""&&T.setAttribute(li,l),T.setAttribute(Kn,this.rootID),j.applyStickyOperations(T),!1}return j.copyPrivates(H,T),j.discardError(o,H,C),c&&T.isSameNode(c)&&j.isFormInput(T)?(this.trackBefore("updated",T,H),j.mergeFocusedInput(T,H),j.syncAttrsToProps(T),N.push(T),j.applyStickyOperations(T),!1):(j.isPhxUpdate(H,v,["append","prepend"])&&A.push(new Lg(T,H,H.getAttribute(v))),j.syncAttrsToProps(H),j.applyStickyOperations(H),this.trackBefore("updated",T,H),!0)}})}),e.isDebugEnabled()&&wg(),A.length>0&&e.time("post-morph append/prepend restoration",()=>{A.forEach(T=>T.perform())}),e.silenceEvents(()=>j.restoreFocus(c,d,g)),j.dispatchEvent(document,"phx:update"),S.forEach(T=>this.trackAfter("added",T)),N.forEach(T=>this.trackAfter("updated",T)),_.length>0&&(e.transitionRemoves(_),e.requestDOMUpdate(()=>{_.forEach(T=>{let H=j.firstPhxChild(T);H&&e.destroyViewByEl(H),T.remove()}),this.trackAfter("transitionsDiscarded",_)})),R&&(e.disconnect(),R.submit()),!0}isCIDPatch(){return this.cidPatch}skipCIDSibling(t){return t.nodeType===Node.ELEMENT_NODE&&t.getAttribute(xo)!==null}targetCIDContainer(t){if(!this.isCIDPatch())return;let[e,...i]=j.findComponentNodeList(this.container,this.targetCID);return i.length===0&&j.childNodeLength(t)===1?e:e&&e.parentNode}buildDiffHTML(t,e,i,s){let o=this.isCIDPatch(),c=o&&s.getAttribute(ot)===this.targetCID.toString();if(!o||c)return e;{let d=null,g=document.createElement("template");d=j.cloneNode(s);let[v,...C]=j.findComponentNodeList(d,this.targetCID);return g.innerHTML=e,C.forEach(x=>x.remove()),Array.from(d.childNodes).forEach(x=>{x.id&&x.nodeType===Node.ELEMENT_NODE&&x.getAttribute(ot)!==this.targetCID.toString()&&(x.setAttribute(xo,""),x.innerHTML="")}),Array.from(g.content.childNodes).forEach(x=>d.insertBefore(x,v)),v.remove(),d.outerHTML}}},iu=class{static extract(t){let{[Xl]:e,[Kl]:i,[Yl]:s}=t;return delete t[Xl],delete t[Kl],delete t[Yl],{diff:t,title:s,reply:e||null,events:i||[]}}constructor(t,e){this.viewId=t,this.rendered={},this.mergeDiff(e)}parentViewId(){return this.viewId}toString(t){return this.recursiveToString(this.rendered,this.rendered[st],t)}recursiveToString(t,e=t[st],i){i=i?new Set(i):null;let s={buffer:"",components:e,onlyCids:i};return this.toOutputBuffer(t,null,s),s.buffer}componentCIDs(t){return Object.keys(t[st]||{}).map(e=>parseInt(e))}isComponentOnlyDiff(t){return t[st]?Object.keys(t).length===1:!1}getComponent(t,e){return t[st][e]}mergeDiff(t){let e=t[st],i={};if(delete t[st],this.rendered=this.mutableMerge(this.rendered,t),this.rendered[st]=this.rendered[st]||{},e){let s=this.rendered[st];for(let o in e)e[o]=this.cachedFindComponent(o,e[o],s,e,i);for(let o in e)s[o]=e[o];t[st]=e}}cachedFindComponent(t,e,i,s,o){if(o[t])return o[t];{let c,d,g=e[Lt];if(ai(g)){let v;g>0?v=this.cachedFindComponent(g,s[g],i,s,o):v=i[-g],d=v[Lt],c=this.cloneMerge(v,e),c[Lt]=d}else c=e[Lt]!==void 0?e:this.cloneMerge(i[t]||{},e);return o[t]=c,c}}mutableMerge(t,e){return e[Lt]!==void 0?e:(this.doMutableMerge(t,e),t)}doMutableMerge(t,e){for(let i in e){let s=e[i],o=t[i];Un(s)&&s[Lt]===void 0&&Un(o)?this.doMutableMerge(o,s):t[i]=s}}cloneMerge(t,e){let i={...t,...e};for(let s in i){let o=e[s],c=t[s];Un(o)&&o[Lt]===void 0&&Un(c)&&(i[s]=this.cloneMerge(c,o))}return i}componentToString(t){return this.recursiveCIDToString(this.rendered[st],t)}pruneCIDs(t){t.forEach(e=>delete this.rendered[st][e])}get(){return this.rendered}isNewFingerprint(t={}){return!!t[Lt]}templateStatic(t,e){return typeof t=="number"?e[t]:t}toOutputBuffer(t,e,i){if(t[zl])return this.comprehensionToBuffer(t,e,i);let{[Lt]:s}=t;s=this.templateStatic(s,e),i.buffer+=s[0];for(let o=1;o<s.length;o++)this.dynamicToBuffer(t[o-1],e,i),i.buffer+=s[o]}comprehensionToBuffer(t,e,i){let{[zl]:s,[Lt]:o}=t;o=this.templateStatic(o,e);let c=e||t[Ag];for(let d=0;d<s.length;d++){let g=s[d];i.buffer+=o[0];for(let v=1;v<o.length;v++)this.dynamicToBuffer(g[v-1],c,i),i.buffer+=o[v]}}dynamicToBuffer(t,e,i){typeof t=="number"?i.buffer+=this.recursiveCIDToString(i.components,t,i.onlyCids):Un(t)?this.toOutputBuffer(t,e,i):i.buffer+=t}recursiveCIDToString(t,e,i){let s=t[e]||We(`no component for CID ${e}`,t),o=document.createElement("template");o.innerHTML=this.recursiveToString(s,t,i);let c=o.content,d=i&&!i.has(e),[g,v]=Array.from(c.childNodes).reduce(([C,x],I,D)=>I.nodeType===Node.ELEMENT_NODE?I.getAttribute(ot)?[C,!0]:(I.setAttribute(ot,e),I.id||(I.id=`${this.parentViewId()}-${e}-${D}`),d&&(I.setAttribute(xo,""),I.innerHTML=""),[!0,x]):I.nodeValue.trim()!==""?(We(`only HTML element tags are allowed at the root of components.
got: "${I.nodeValue.trim()}"
within:
`,o.innerHTML.trim()),I.replaceWith(this.createSpan(I.nodeValue,e)),[!0,x]):(I.remove(),[C,x]),[!1,!1]);return!g&&!v?(We(`expected at least one HTML element tag inside a component, but the component is empty:
`,o.innerHTML.trim()),this.createSpan("",e).outerHTML):(!g&&v&&We("expected at least one HTML element tag directly inside a component, but only subcomponents were found. A component must render at least one HTML tag directly inside itself.",o.innerHTML.trim()),o.innerHTML)}createSpan(t,e){let i=document.createElement("span");return i.innerText=t,i.setAttribute(ot,e),i}},zg=1,Wn=class{static makeID(){return zg++}static elementID(t){return t.phxHookId}constructor(t,e,i){this.__view=t,this.liveSocket=t.liveSocket,this.__callbacks=i,this.__listeners=new Set,this.__isDisconnected=!1,this.el=e,this.el.phxHookId=this.constructor.makeID();for(let s in this.__callbacks)this[s]=this.__callbacks[s]}__mounted(){this.mounted&&this.mounted()}__updated(){this.updated&&this.updated()}__beforeUpdate(){this.beforeUpdate&&this.beforeUpdate()}__destroyed(){this.destroyed&&this.destroyed()}__reconnected(){this.__isDisconnected&&(this.__isDisconnected=!1,this.reconnected&&this.reconnected())}__disconnected(){this.__isDisconnected=!0,this.disconnected&&this.disconnected()}pushEvent(t,e={},i=function(){}){return this.__view.pushHookEvent(null,t,e,i)}pushEventTo(t,e,i={},s=function(){}){return this.__view.withinTargets(t,(o,c)=>o.pushHookEvent(c,e,i,s))}handleEvent(t,e){let i=(s,o)=>o?t:e(s.detail);return window.addEventListener(`phx:${t}`,i),this.__listeners.add(i),i}removeHandleEvent(t){let e=t(null,!0);window.removeEventListener(`phx:${e}`,t),this.__listeners.delete(t)}upload(t,e){return this.__view.dispatchUploads(t,e)}uploadTo(t,e,i){return this.__view.withinTargets(t,s=>s.dispatchUploads(e,i))}__cleanup__(){this.__listeners.forEach(t=>this.removeHandleEvent(t))}},Kg={exec(t,e,i,s,o){let[c,d]=o||[null,{}];(e.charAt(0)==="["?JSON.parse(e):[[c,d]]).forEach(([v,C])=>{v===c&&d.data&&(C.data=Object.assign(C.data||{},d.data)),this.filterToEls(s,C).forEach(x=>{this[`exec_${v}`](t,e,i,s,x,C)})})},isVisible(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length>0)},exec_dispatch(t,e,i,s,o,{to:c,event:d,detail:g,bubbles:v}){g=g||{},g.dispatcher=s,j.dispatchEvent(o,d,{detail:g,bubbles:v})},exec_push(t,e,i,s,o,c){if(!i.isConnected())return;let{event:d,data:g,target:v,page_loading:C,loading:x,value:I,dispatcher:D}=c,S={loading:x,value:I,target:v,page_loading:!!C},N=t==="change"&&D?D:s,A=v||N.getAttribute(i.binding("target"))||N;i.withinTargets(A,(_,R)=>{if(t==="change"){let{newCid:F,_target:T,callback:H}=c;T=T||(s instanceof HTMLInputElement?s.name:void 0),T&&(S._target=T),_.pushInput(s,R,F,d||e,S,H)}else t==="submit"?_.submitForm(s,R,d||e,S):_.pushEvent(t,s,R,d||e,g,S)})},exec_add_class(t,e,i,s,o,{names:c,transition:d,time:g}){this.addOrRemoveClasses(o,c,[],d,g,i)},exec_remove_class(t,e,i,s,o,{names:c,transition:d,time:g}){this.addOrRemoveClasses(o,[],c,d,g,i)},exec_transition(t,e,i,s,o,{time:c,transition:d}){let[g,v,C]=d,x=()=>this.addOrRemoveClasses(o,g.concat(v),[]),I=()=>this.addOrRemoveClasses(o,C,g.concat(v));i.transition(c,x,I)},exec_toggle(t,e,i,s,o,{display:c,ins:d,outs:g,time:v}){this.toggle(t,i,o,c,d,g,v)},exec_show(t,e,i,s,o,{display:c,transition:d,time:g}){this.show(t,i,o,c,d,g)},exec_hide(t,e,i,s,o,{display:c,transition:d,time:g}){this.hide(t,i,o,c,d,g)},exec_set_attr(t,e,i,s,o,{attr:[c,d]}){this.setOrRemoveAttrs(o,[[c,d]],[])},exec_remove_attr(t,e,i,s,o,{attr:c}){this.setOrRemoveAttrs(o,[],[c])},show(t,e,i,s,o,c){this.isVisible(i)||this.toggle(t,e,i,s,o,null,c)},hide(t,e,i,s,o,c){this.isVisible(i)&&this.toggle(t,e,i,s,null,o,c)},toggle(t,e,i,s,o,c,d){let[g,v,C]=o||[[],[],[]],[x,I,D]=c||[[],[],[]];if(g.length>0||x.length>0)if(this.isVisible(i)){let S=()=>{this.addOrRemoveClasses(i,I,g.concat(v).concat(C)),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,x,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,D,I))})};i.dispatchEvent(new Event("phx:hide-start")),e.transition(d,S,()=>{this.addOrRemoveClasses(i,[],x.concat(D)),j.putSticky(i,"toggle",N=>N.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))})}else{if(t==="remove")return;let S=()=>{this.addOrRemoveClasses(i,v,x.concat(I).concat(D)),j.putSticky(i,"toggle",N=>N.style.display=s||"block"),window.requestAnimationFrame(()=>{this.addOrRemoveClasses(i,g,[]),window.requestAnimationFrame(()=>this.addOrRemoveClasses(i,C,v))})};i.dispatchEvent(new Event("phx:show-start")),e.transition(d,S,()=>{this.addOrRemoveClasses(i,[],g.concat(C)),i.dispatchEvent(new Event("phx:show-end"))})}else this.isVisible(i)?window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:hide-start")),j.putSticky(i,"toggle",S=>S.style.display="none"),i.dispatchEvent(new Event("phx:hide-end"))}):window.requestAnimationFrame(()=>{i.dispatchEvent(new Event("phx:show-start")),j.putSticky(i,"toggle",S=>S.style.display=s||"block"),i.dispatchEvent(new Event("phx:show-end"))})},addOrRemoveClasses(t,e,i,s,o,c){let[d,g,v]=s||[[],[],[]];if(d.length>0){let C=()=>this.addOrRemoveClasses(t,g.concat(d),[]),x=()=>this.addOrRemoveClasses(t,e.concat(v),i.concat(d).concat(g));return c.transition(o,C,x)}window.requestAnimationFrame(()=>{let[C,x]=j.getSticky(t,"classes",[[],[]]),I=e.filter(A=>C.indexOf(A)<0&&!t.classList.contains(A)),D=i.filter(A=>x.indexOf(A)<0&&t.classList.contains(A)),S=C.filter(A=>i.indexOf(A)<0).concat(I),N=x.filter(A=>e.indexOf(A)<0).concat(D);j.putSticky(t,"classes",A=>(A.classList.remove(...N),A.classList.add(...S),[S,N]))})},setOrRemoveAttrs(t,e,i){let[s,o]=j.getSticky(t,"attrs",[[],[]]),c=e.map(([v,C])=>v).concat(i),d=s.filter(([v,C])=>!c.includes(v)).concat(e),g=o.filter(v=>!c.includes(v)).concat(i);j.putSticky(t,"attrs",v=>(g.forEach(C=>v.removeAttribute(C)),d.forEach(([C,x])=>v.setAttribute(C,x)),[d,g]))},hasAllClasses(t,e){return e.every(i=>t.classList.contains(i))},isToggledOut(t,e){return!this.isVisible(t)||this.hasAllClasses(t,e)},filterToEls(t,{to:e}){return e?j.all(document,e):[t]}},Nt=Kg,Gr=(t,e,i=[])=>{let s=new FormData(t),o=[];s.forEach((d,g,v)=>{d instanceof File&&o.push(g)}),o.forEach(d=>s.delete(d));let c=new URLSearchParams;for(let[d,g]of s.entries())(i.length===0||i.indexOf(d)>=0)&&c.append(d,g);for(let d in e)c.append(d,e[d]);return c.toString()},cu=class{constructor(t,e,i,s){this.liveSocket=e,this.flash=s,this.parent=i,this.root=i?i.root:this,this.el=t,this.id=this.el.id,this.ref=0,this.childJoins=0,this.loaderTimer=null,this.pendingDiffs=[],this.pruningCIDs=[],this.redirect=!1,this.href=null,this.joinCount=this.parent?this.parent.joinCount-1:0,this.joinPending=!0,this.destroyed=!1,this.joinCallback=function(o){o&&o()},this.stopCallback=function(){},this.pendingJoinOps=this.parent?null:[],this.viewHooks={},this.uploaders={},this.formSubmits=[],this.children=this.parent?null:{},this.root.children[this.id]={},this.channel=this.liveSocket.channel(`lv:${this.id}`,()=>({redirect:this.redirect?this.href:void 0,url:this.redirect?void 0:this.href||void 0,params:this.connectParams(),session:this.getSession(),static:this.getStatic(),flash:this.flash})),this.showLoader(this.liveSocket.loaderTimeout),this.bindChannel()}setHref(t){this.href=t}setRedirect(t){this.redirect=!0,this.href=t}isMain(){return this.el.hasAttribute(Do)}connectParams(){let t=this.liveSocket.params(this.el),e=j.all(document,`[${this.binding(lg)}]`).map(i=>i.src||i.href).filter(i=>typeof i=="string");return e.length>0&&(t._track_static=e),t._mounts=this.joinCount,t}isConnected(){return this.channel.canPush()}getSession(){return this.el.getAttribute(li)}getStatic(){let t=this.el.getAttribute(qn);return t===""?null:t}destroy(t=function(){}){this.destroyAllChildren(),this.destroyed=!0,delete this.root.children[this.id],this.parent&&delete this.root.children[this.parent.id][this.id],clearTimeout(this.loaderTimer);let e=()=>{t();for(let i in this.viewHooks)this.destroyHook(this.viewHooks[i])};j.markPhxChildDestroyed(this.el),this.log("destroyed",()=>["the child has been removed from the parent"]),this.channel.leave().receive("ok",e).receive("error",e).receive("timeout",e)}setContainerClasses(...t){this.el.classList.remove(jl,mo,Ul),this.el.classList.add(...t)}showLoader(t){if(clearTimeout(this.loaderTimer),t)this.loaderTimer=setTimeout(()=>this.showLoader(),t);else{for(let e in this.viewHooks)this.viewHooks[e].__disconnected();this.setContainerClasses(mo)}}hideLoader(){clearTimeout(this.loaderTimer),this.setContainerClasses(jl)}triggerReconnected(){for(let t in this.viewHooks)this.viewHooks[t].__reconnected()}log(t,e){this.liveSocket.log(this,t,e)}transition(t,e,i=function(){}){this.liveSocket.transition(t,e,i)}withinTargets(t,e){if(t instanceof HTMLElement||t instanceof SVGElement)return this.liveSocket.owner(t,i=>e(i,t));if(ai(t))j.findComponentNodeList(this.el,t).length===0?We(`no component found matching phx-target of ${t}`):e(this,parseInt(t));else{let i=Array.from(document.querySelectorAll(t));i.length===0&&We(`nothing found matching the phx-target selector "${t}"`),i.forEach(s=>this.liveSocket.owner(s,o=>e(o,s)))}}applyDiff(t,e,i){this.log(t,()=>["",Jr(e)]);let{diff:s,reply:o,events:c,title:d}=iu.extract(e);return d&&j.putTitle(d),i({diff:s,reply:o,events:c}),o}onJoin(t){let{rendered:e,container:i}=t;if(i){let[s,o]=i;this.el=j.replaceRootContainer(this.el,s,o)}this.childJoins=0,this.joinPending=!0,this.flash=null,oi.dropLocal(this.liveSocket.localStorage,window.location.pathname,nu),this.applyDiff("mount",e,({diff:s,events:o})=>{this.rendered=new iu(this.id,s);let c=this.renderContainer(null,"join");this.dropPendingRefs();let d=this.formsForRecovery(c);this.joinCount++,d.length>0?d.forEach(([g,v,C],x)=>{this.pushFormRecovery(g,C,I=>{x===d.length-1&&this.onJoinComplete(I,c,o)})}):this.onJoinComplete(t,c,o)})}dropPendingRefs(){j.all(document,`[${Li}="${this.id}"][${Pt}]`,t=>{t.removeAttribute(Pt),t.removeAttribute(Li)})}onJoinComplete({live_patch:t},e,i){if(this.joinCount>1||this.parent&&!this.parent.isJoinPending())return this.applyJoinPatch(t,e,i);j.findPhxChildrenInFragment(e,this.id).filter(o=>{let c=o.id&&this.el.querySelector(`[id="${o.id}"]`),d=c&&c.getAttribute(qn);return d&&o.setAttribute(qn,d),this.joinChild(o)}).length===0?this.parent?(this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,e,i)]),this.parent.ackJoin(this)):(this.onAllChildJoinsComplete(),this.applyJoinPatch(t,e,i)):this.root.pendingJoinOps.push([this,()=>this.applyJoinPatch(t,e,i)])}attachTrueDocEl(){this.el=j.byId(this.id),this.el.setAttribute(Kn,this.root.id)}applyJoinPatch(t,e,i){this.attachTrueDocEl();let s=new Yr(this,this.el,this.id,e,null);if(s.markPrunableContentForRemoval(),this.performPatch(s,!1),this.joinNewChildren(),j.all(this.el,`[${this.binding(jn)}], [data-phx-${jn}]`,o=>{let c=this.addHook(o);c&&c.__mounted()}),this.joinPending=!1,this.liveSocket.dispatchEvents(i),this.applyPendingUpdates(),t){let{kind:o,to:c}=t;this.liveSocket.historyPatch(c,o)}this.hideLoader(),this.joinCount>1&&this.triggerReconnected(),this.stopCallback()}triggerBeforeUpdateHook(t,e){this.liveSocket.triggerDOM("onBeforeElUpdated",[t,e]);let i=this.getHook(t),s=i&&j.isIgnored(t,this.binding(ko));if(i&&!t.isEqualNode(e)&&!(s&&Cg(t.dataset,e.dataset)))return i.__beforeUpdate(),i}performPatch(t,e){let i=[],s=!1,o=new Set;return t.after("added",c=>{this.liveSocket.triggerDOM("onNodeAdded",[c]);let d=this.addHook(c);d&&d.__mounted()}),t.after("phxChildAdded",c=>{j.isPhxSticky(c)?this.liveSocket.joinRootViews():s=!0}),t.before("updated",(c,d)=>{this.triggerBeforeUpdateHook(c,d)&&o.add(c.id)}),t.after("updated",c=>{o.has(c.id)&&this.getHook(c).__updated()}),t.after("discarded",c=>{c.nodeType===Node.ELEMENT_NODE&&i.push(c)}),t.after("transitionsDiscarded",c=>this.afterElementsRemoved(c,e)),t.perform(),this.afterElementsRemoved(i,e),s}afterElementsRemoved(t,e){let i=[];t.forEach(s=>{let o=j.all(s,`[${ot}]`),c=j.all(s,`[${this.binding(jn)}]`);o.concat(s).forEach(d=>{let g=this.componentID(d);ai(g)&&i.indexOf(g)===-1&&i.push(g)}),c.concat(s).forEach(d=>{let g=this.getHook(d);g&&this.destroyHook(g)})}),e&&this.maybePushComponentsDestroyed(i)}joinNewChildren(){j.findPhxChildren(this.el,this.id).forEach(t=>this.joinChild(t))}getChildById(t){return this.root.children[this.id][t]}getDescendentByEl(t){return t.id===this.id?this:this.children[t.getAttribute(on)][t.id]}destroyDescendent(t){for(let e in this.root.children)for(let i in this.root.children[e])if(i===t)return this.root.children[e][i].destroy()}joinChild(t){if(!this.getChildById(t.id)){let i=new cu(t,this.liveSocket,this);return this.root.children[this.id][i.id]=i,i.join(),this.childJoins++,!0}}isJoinPending(){return this.joinPending}ackJoin(t){this.childJoins--,this.childJoins===0&&(this.parent?this.parent.ackJoin(this):this.onAllChildJoinsComplete())}onAllChildJoinsComplete(){this.joinCallback(()=>{this.pendingJoinOps.forEach(([t,e])=>{t.isDestroyed()||e()}),this.pendingJoinOps=[]})}update(t,e){if(this.isJoinPending()||this.liveSocket.hasPendingLink()&&!j.isPhxSticky(this.el))return this.pendingDiffs.push({diff:t,events:e});this.rendered.mergeDiff(t);let i=!1;this.rendered.isComponentOnlyDiff(t)?this.liveSocket.time("component patch complete",()=>{j.findParentCIDs(this.el,this.rendered.componentCIDs(t)).forEach(o=>{this.componentPatch(this.rendered.getComponent(t,o),o)&&(i=!0)})}):Gl(t)||this.liveSocket.time("full patch complete",()=>{let s=this.renderContainer(t,"update"),o=new Yr(this,this.el,this.id,s,null);i=this.performPatch(o,!0)}),this.liveSocket.dispatchEvents(e),i&&this.joinNewChildren()}renderContainer(t,e){return this.liveSocket.time(`toString diff (${e})`,()=>{let i=this.el.tagName,s=t?this.rendered.componentCIDs(t).concat(this.pruningCIDs):null,o=this.rendered.toString(s);return`<${i}>${o}</${i}>`})}componentPatch(t,e){if(Gl(t))return!1;let i=this.rendered.componentToString(e),s=new Yr(this,this.el,this.id,i,e);return this.performPatch(s,!0)}getHook(t){return this.viewHooks[Wn.elementID(t)]}addHook(t){if(Wn.elementID(t)||!t.getAttribute)return;let e=t.getAttribute(`data-phx-${jn}`)||t.getAttribute(this.binding(jn));if(e&&!this.ownsElement(t))return;let i=this.liveSocket.getHookCallbacks(e);if(i){t.id||We(`no DOM ID for hook "${e}". Hooks require a unique ID on each element.`,t);let s=new Wn(this,t,i);return this.viewHooks[Wn.elementID(s.el)]=s,s}else e!==null&&We(`unknown hook found for "${e}"`,t)}destroyHook(t){t.__destroyed(),t.__cleanup__(),delete this.viewHooks[Wn.elementID(t.el)]}applyPendingUpdates(){this.pendingDiffs.forEach(({diff:t,events:e})=>this.update(t,e)),this.pendingDiffs=[]}onChannel(t,e){this.liveSocket.onChannel(this.channel,t,i=>{this.isJoinPending()?this.root.pendingJoinOps.push([this,()=>e(i)]):this.liveSocket.requestDOMUpdate(()=>e(i))})}bindChannel(){this.liveSocket.onChannel(this.channel,"diff",t=>{this.liveSocket.requestDOMUpdate(()=>{this.applyDiff("update",t,({diff:e,events:i})=>this.update(e,i))})}),this.onChannel("redirect",({to:t,flash:e})=>this.onRedirect({to:t,flash:e})),this.onChannel("live_patch",t=>this.onLivePatch(t)),this.onChannel("live_redirect",t=>this.onLiveRedirect(t)),this.channel.onError(t=>this.onError(t)),this.channel.onClose(t=>this.onClose(t))}destroyAllChildren(){for(let t in this.root.children[this.id])this.getChildById(t).destroy()}onLiveRedirect(t){let{to:e,kind:i,flash:s}=t,o=this.expandURL(e);this.liveSocket.historyRedirect(o,i,s)}onLivePatch(t){let{to:e,kind:i}=t;this.href=this.expandURL(e),this.liveSocket.historyPatch(e,i)}expandURL(t){return t.startsWith("/")?`${window.location.protocol}//${window.location.host}${t}`:t}onRedirect({to:t,flash:e}){this.liveSocket.redirect(t,e)}isDestroyed(){return this.destroyed}join(t){this.isMain()&&(this.stopCallback=this.liveSocket.withPageLoading({to:this.href,kind:"initial"})),this.joinCallback=e=>{e=e||function(){},t?t(this.joinCount,e):e()},this.liveSocket.wrapPush(this,{timeout:!1},()=>this.channel.join().receive("ok",e=>{this.isDestroyed()||this.liveSocket.requestDOMUpdate(()=>this.onJoin(e))}).receive("error",e=>!this.isDestroyed()&&this.onJoinError(e)).receive("timeout",()=>!this.isDestroyed()&&this.onJoinError({reason:"timeout"})))}onJoinError(t){if(t.reason==="unauthorized"||t.reason==="stale")return this.log("error",()=>["unauthorized live_redirect. Falling back to page request",t]),this.onRedirect({to:this.href});if((t.redirect||t.live_redirect)&&(this.joinPending=!1,this.channel.leave()),t.redirect)return this.onRedirect(t.redirect);if(t.live_redirect)return this.onLiveRedirect(t.live_redirect);this.log("error",()=>["unable to join",t]),this.liveSocket.isConnected()&&this.liveSocket.reloadWithJitter(this)}onClose(t){if(!this.isDestroyed()){if(this.liveSocket.hasPendingLink()&&t!=="leave")return this.liveSocket.reloadWithJitter(this);this.destroyAllChildren(),this.liveSocket.dropActiveElement(this),document.activeElement&&document.activeElement.blur(),this.liveSocket.isUnloaded()&&this.showLoader(bg)}}onError(t){this.onClose(t),this.liveSocket.isConnected()&&this.log("error",()=>["view crashed",t]),this.liveSocket.isUnloaded()||this.displayError()}displayError(){this.isMain()&&j.dispatchEvent(window,"phx:page-loading-start",{detail:{to:this.href,kind:"error"}}),this.showLoader(),this.setContainerClasses(mo,Ul)}pushWithReply(t,e,i,s=function(){}){if(!this.isConnected())return;let[o,[c],d]=t?t():[null,[],{}],g=function(){};return(d.page_loading||c&&c.getAttribute(this.binding(Fl))!==null)&&(g=this.liveSocket.withPageLoading({kind:"element",target:c})),typeof i.cid!="number"&&delete i.cid,this.liveSocket.wrapPush(this,{timeout:!0},()=>this.channel.push(e,i,_g).receive("ok",v=>{o!==null&&this.undoRefs(o);let C=x=>{v.redirect&&this.onRedirect(v.redirect),v.live_patch&&this.onLivePatch(v.live_patch),v.live_redirect&&this.onLiveRedirect(v.live_redirect),g(),s(v,x)};v.diff?this.liveSocket.requestDOMUpdate(()=>{let x=this.applyDiff("update",v.diff,({diff:I,events:D})=>{this.update(I,D)});C(x)}):C(null)}))}undoRefs(t){j.all(document,`[${Li}="${this.id}"][${Pt}="${t}"]`,e=>{let i=e.getAttribute(Vr);e.removeAttribute(Pt),e.removeAttribute(Li),e.getAttribute(vo)!==null&&(e.readOnly=!1,e.removeAttribute(vo)),i!==null&&(e.disabled=i==="true",e.removeAttribute(Vr)),ru.forEach(c=>j.removeClass(e,c));let s=e.getAttribute(Wr);s!==null&&(e.innerText=s,e.removeAttribute(Wr));let o=j.private(e,Pt);if(o){let c=this.triggerBeforeUpdateHook(e,o);Yr.patchEl(e,o,this.liveSocket.getActiveElement()),c&&c.__updated(),j.deletePrivate(e,Pt)}})}putRef(t,e,i={}){let s=this.ref++,o=this.binding(So);return i.loading&&(t=t.concat(j.all(document,i.loading))),t.forEach(c=>{c.classList.add(`phx-${e}-loading`),c.setAttribute(Pt,s),c.setAttribute(Li,this.el.id);let d=c.getAttribute(o);d!==null&&(c.getAttribute(Wr)||c.setAttribute(Wr,c.innerText),d!==""&&(c.innerText=d),c.setAttribute("disabled",""))}),[s,t,i]}componentID(t){let e=t.getAttribute&&t.getAttribute(ot);return e?parseInt(e):null}targetComponentID(t,e,i={}){if(ai(e))return e;let s=t.getAttribute(this.binding("target"));return ai(s)?parseInt(s):e&&(s!==null||i.target)?this.closestComponentID(e):null}closestComponentID(t){return ai(t)?t:t?qt(t.closest(`[${ot}]`),e=>this.ownsElement(e)&&this.componentID(e)):null}pushHookEvent(t,e,i,s){if(!this.isConnected())return this.log("hook",()=>["unable to push hook event. LiveView not connected",e,i]),!1;let[o,c,d]=this.putRef([],"hook");return this.pushWithReply(()=>[o,c,d],"event",{type:"hook",event:e,value:i,cid:this.closestComponentID(t)},(g,v)=>s(v,o)),o}extractMeta(t,e,i){let s=this.binding("value-");for(let o=0;o<t.attributes.length;o++){e||(e={});let c=t.attributes[o].name;c.startsWith(s)&&(e[c.replace(s,"")]=t.getAttribute(c))}if(t.value!==void 0&&(e||(e={}),e.value=t.value,t.tagName==="INPUT"&&au.indexOf(t.type)>=0&&!t.checked&&delete e.value),i){e||(e={});for(let o in i)e[o]=i[o]}return e}pushEvent(t,e,i,s,o,c={}){this.pushWithReply(()=>this.putRef([e],t,c),"event",{type:t,event:s,value:this.extractMeta(e,o,c.value),cid:this.targetComponentID(e,i,c)})}pushFileProgress(t,e,i,s=function(){}){this.liveSocket.withinOwners(t.form,(o,c)=>{o.pushWithReply(null,"progress",{event:t.getAttribute(o.binding(mg)),ref:t.getAttribute(Ni),entry_ref:e,progress:i,cid:o.targetComponentID(t.form,c)},s)})}pushInput(t,e,i,s,o,c){let d,g=ai(i)?i:this.targetComponentID(t.form,e),v=()=>this.putRef([t,t.form],"change",o),C;t.getAttribute(this.binding("change"))?C=Gr(t.form,{_target:o._target},[t.name]):C=Gr(t.form,{_target:o._target}),j.isUploadInput(t)&&t.files&&t.files.length>0&&Ve.trackFiles(t,Array.from(t.files)),d=Ve.serializeUploads(t);let x={type:"form",event:s,value:C,uploads:d,cid:g};this.pushWithReply(v,"event",x,I=>{if(j.showError(t,this.liveSocket.binding(Co)),j.isUploadInput(t)&&t.getAttribute("data-phx-auto-upload")!==null){if(Ve.filesAwaitingPreflight(t).length>0){let[D,S]=v();this.uploadFiles(t.form,e,D,g,N=>{c&&c(I),this.triggerAwaitingSubmit(t.form)})}}else c&&c(I)})}triggerAwaitingSubmit(t){let e=this.getScheduledSubmit(t);if(e){let[i,s,o,c]=e;this.cancelSubmit(t),c()}}getScheduledSubmit(t){return this.formSubmits.find(([e,i,s,o])=>e.isSameNode(t))}scheduleSubmit(t,e,i,s){if(this.getScheduledSubmit(t))return!0;this.formSubmits.push([t,e,i,s])}cancelSubmit(t){this.formSubmits=this.formSubmits.filter(([e,i,s])=>e.isSameNode(t)?(this.undoRefs(i),!1):!0)}pushFormSubmit(t,e,i,s,o){let c=I=>!(zn(I,`${this.binding(ko)}=ignore`,I.form)||zn(I,"data-phx-update=ignore",I.form)),d=I=>I.hasAttribute(this.binding(So)),g=I=>I.tagName=="BUTTON",v=I=>["INPUT","TEXTAREA","SELECT"].includes(I.tagName),C=()=>{let I=Array.from(t.elements),D=I.filter(d),S=I.filter(g).filter(c),N=I.filter(v).filter(c);return S.forEach(A=>{A.setAttribute(Vr,A.disabled),A.disabled=!0}),N.forEach(A=>{A.setAttribute(vo,A.readOnly),A.readOnly=!0,A.files&&(A.setAttribute(Vr,A.disabled),A.disabled=!0)}),t.setAttribute(this.binding(Fl),""),this.putRef([t].concat(D).concat(S).concat(N),"submit",s)},x=this.targetComponentID(t,e);if(Ve.hasUploadsInProgress(t)){let[I,D]=C(),S=()=>this.pushFormSubmit(t,e,i,s,o);return this.scheduleSubmit(t,I,s,S)}else if(Ve.inputsAwaitingPreflight(t).length>0){let[I,D]=C(),S=()=>[I,D,s];this.uploadFiles(t,e,I,x,N=>{let A=Gr(t,{});this.pushWithReply(S,"event",{type:"form",event:i,value:A,cid:x},o)})}else{let I=Gr(t,{});this.pushWithReply(C,"event",{type:"form",event:i,value:I,cid:x},o)}}uploadFiles(t,e,i,s,o){let c=this.joinCount,d=Ve.activeFileInputs(t),g=d.length;d.forEach(v=>{let C=new Ve(v,this,()=>{g--,g===0&&o()});this.uploaders[v]=C;let x=C.entries().map(D=>D.toPreflightPayload()),I={ref:v.getAttribute(Ni),entries:x,cid:this.targetComponentID(v.form,e)};this.log("upload",()=>["sending preflight request",I]),this.pushWithReply(null,"allow_upload",I,D=>{if(this.log("upload",()=>["got preflight response",D]),D.error){this.undoRefs(i);let[S,N]=D.error;this.log("upload",()=>[`error for entry ${S}`,N])}else{let S=N=>{this.channel.onError(()=>{this.joinCount===c&&N()})};C.initAdapterUpload(D,S,this.liveSocket)}})})}dispatchUploads(t,e){let i=j.findUploadInputs(this.el).filter(s=>s.name===t);i.length===0?We(`no live file inputs found matching the name "${t}"`):i.length>1?We(`duplicate live file inputs found matching the name "${t}"`):j.dispatchEvent(i[0],su,{detail:{files:e}})}pushFormRecovery(t,e,i){this.liveSocket.withinOwners(t,(s,o)=>{let c=t.elements[0],d=t.getAttribute(this.binding(Wl))||t.getAttribute(this.binding("change"));Nt.exec("change",d,s,c,["push",{_target:c.name,newCid:e,callback:i}])})}pushLinkPatch(t,e,i){let s=this.liveSocket.setPendingLink(t),o=e?()=>this.putRef([e],"click"):null,c=()=>this.liveSocket.redirect(window.location.href),d=this.pushWithReply(o,"live_patch",{url:t},g=>{this.liveSocket.requestDOMUpdate(()=>{g.link_redirect?this.liveSocket.replaceMain(t,null,i,s):(this.liveSocket.commitPendingLink(s)&&(this.href=t),this.applyPendingUpdates(),i&&i(s))})});d?d.receive("timeout",c):c()}formsForRecovery(t){if(this.joinCount===0)return[];let e=this.binding("change"),i=document.createElement("template");return i.innerHTML=t,j.all(this.el,`form[${e}]`).filter(s=>s.id&&this.ownsElement(s)).filter(s=>s.elements.length>0).filter(s=>s.getAttribute(this.binding(Wl))!=="ignore").map(s=>{let o=i.content.querySelector(`form[id="${s.id}"][${e}="${s.getAttribute(e)}"]`);return o?[s,o,this.targetComponentID(o)]:[s,null,null]}).filter(([s,o,c])=>o)}maybePushComponentsDestroyed(t){let e=t.filter(i=>j.findComponentNodeList(this.el,i).length===0);e.length>0&&(this.pruningCIDs.push(...e),this.pushWithReply(null,"cids_will_destroy",{cids:e},()=>{this.pruningCIDs=this.pruningCIDs.filter(s=>e.indexOf(s)!==-1);let i=e.filter(s=>j.findComponentNodeList(this.el,s).length===0);i.length>0&&this.pushWithReply(null,"cids_destroyed",{cids:i},s=>{this.rendered.pruneCIDs(s.cids)})}))}ownsElement(t){return t.getAttribute(on)===this.id||qt(t.closest(an),e=>e.id)===this.id}submitForm(t,e,i,s={}){j.putPrivate(t,lu,!0);let o=this.liveSocket.binding(Co),c=Array.from(t.elements);this.liveSocket.blurActiveElement(this),this.pushFormSubmit(t,e,i,s,()=>{c.forEach(d=>j.showError(d,o)),this.liveSocket.restorePreviouslyActiveFocus()})}binding(t){return this.liveSocket.binding(t)}},fu=class{constructor(t,e,i={}){if(this.unloaded=!1,!e||e.constructor.name==="Object")throw new Error(`
a phoenix Socket must be provided as the second argument to the LiveSocket constructor. For example:
import {Socket} from "phoenix"
import {LiveSocket} from "phoenix_live_view"
let liveSocket = new LiveSocket("/live", Socket, {...})
`);this.socket=new e(t,i),this.bindingPrefix=i.bindingPrefix||yg,this.opts=i,this.params=_o(i.params||{}),this.viewLogger=i.viewLogger,this.metadataCallbacks=i.metadata||{},this.defaults=Object.assign(Jr(Eg),i.defaults||{}),this.activeElement=null,this.prevActive=null,this.silenced=!1,this.main=null,this.outgoingMainEl=null,this.clickStartedAtTarget=null,this.linkRef=1,this.roots={},this.href=window.location.href,this.pendingLink=null,this.currentLocation=Jr(window.location),this.hooks=i.hooks||{},this.uploaders=i.uploaders||{},this.loaderTimeout=i.loaderTimeout||vg,this.reloadWithJitterTimer=null,this.maxReloads=i.maxReloads||rg,this.reloadJitterMin=i.reloadJitterMin||sg,this.reloadJitterMax=i.reloadJitterMax||og,this.failsafeJitter=i.failsafeJitter||ag,this.localStorage=i.localStorage||window.localStorage,this.sessionStorage=i.sessionStorage||window.sessionStorage,this.boundTopLevelEvents=!1,this.domCallbacks=Object.assign({onNodeAdded:_o(),onBeforeElUpdated:_o()},i.dom||{}),this.transitions=new Xg,window.addEventListener("pagehide",s=>{this.unloaded=!0}),this.socket.onOpen(()=>{this.isUnloaded()&&window.location.reload()})}isProfileEnabled(){return this.sessionStorage.getItem(bo)==="true"}isDebugEnabled(){return this.sessionStorage.getItem(qr)==="true"}isDebugDisabled(){return this.sessionStorage.getItem(qr)==="false"}enableDebug(){this.sessionStorage.setItem(qr,"true")}enableProfiling(){this.sessionStorage.setItem(bo,"true")}disableDebug(){this.sessionStorage.setItem(qr,"false")}disableProfiling(){this.sessionStorage.removeItem(bo)}enableLatencySim(t){this.enableDebug(),console.log("latency simulator enabled for the duration of this browser session. Call disableLatencySim() to disable"),this.sessionStorage.setItem(yo,t)}disableLatencySim(){this.sessionStorage.removeItem(yo)}getLatencySim(){let t=this.sessionStorage.getItem(yo);return t?parseInt(t):null}getSocket(){return this.socket}connect(){window.location.hostname==="localhost"&&!this.isDebugDisabled()&&this.enableDebug();let t=()=>{this.joinRootViews()?(this.bindTopLevelEvents(),this.socket.connect()):this.main&&this.socket.connect()};["complete","loaded","interactive"].indexOf(document.readyState)>=0?t():document.addEventListener("DOMContentLoaded",()=>t())}disconnect(t){clearTimeout(this.reloadWithJitterTimer),this.socket.disconnect(t)}replaceTransport(t){clearTimeout(this.reloadWithJitterTimer),this.socket.replaceTransport(t),this.connect()}execJS(t,e,i=null){this.owner(t,s=>Nt.exec(i,e,s,t))}triggerDOM(t,e){this.domCallbacks[t](...e)}time(t,e){if(!this.isProfileEnabled()||!console.time)return e();console.time(t);let i=e();return console.timeEnd(t),i}log(t,e,i){if(this.viewLogger){let[s,o]=i();this.viewLogger(t,e,s,o)}else if(this.isDebugEnabled()){let[s,o]=i();xg(t,e,s,o)}}requestDOMUpdate(t){this.transitions.after(t)}transition(t,e,i=function(){}){this.transitions.addTransition(t,e,i)}onChannel(t,e,i){t.on(e,s=>{let o=this.getLatencySim();o?(console.log(`simulating ${o}ms of latency from server to client`),setTimeout(()=>i(s),o)):i(s)})}wrapPush(t,e,i){let s=this.getLatencySim(),o=t.joinCount;if(!s)return this.isConnected()&&e.timeout?i().receive("timeout",()=>{t.joinCount===o&&!t.isDestroyed()&&this.reloadWithJitter(t,()=>{this.log(t,"timeout",()=>["received timeout while communicating with server. Falling back to hard refresh for recovery"])})}):i();console.log(`simulating ${s}ms of latency from client to server`);let c={receives:[],receive(d,g){this.receives.push([d,g])}};return setTimeout(()=>{t.isDestroyed()||c.receives.reduce((d,[g,v])=>d.receive(g,v),i())},s),c}reloadWithJitter(t,e){clearTimeout(this.reloadWithJitterTimer),this.disconnect();let i=this.reloadJitterMin,s=this.reloadJitterMax,o=Math.floor(Math.random()*(s-i+1))+i,c=oi.updateLocal(this.localStorage,window.location.pathname,nu,0,d=>d+1);c>this.maxReloads&&(o=this.failsafeJitter),this.reloadWithJitterTimer=setTimeout(()=>{t.isDestroyed()||t.isConnected()||(t.destroy(),e?e():this.log(t,"join",()=>[`encountered ${c} consecutive reloads`]),c>this.maxReloads&&this.log(t,"join",()=>[`exceeded ${this.maxReloads} consecutive reloads. Entering failsafe mode`]),this.hasPendingLink()?window.location=this.pendingLink:window.location.reload())},o)}getHookCallbacks(t){return t&&t.startsWith("Phoenix.")?Dg[t.split(".")[1]]:this.hooks[t]}isUnloaded(){return this.unloaded}isConnected(){return this.socket.isConnected()}getBindingPrefix(){return this.bindingPrefix}binding(t){return`${this.getBindingPrefix()}${t}`}channel(t,e){return this.socket.channel(t,e)}joinRootViews(){let t=!1;return j.all(document,`${an}:not([${on}])`,e=>{if(!this.getRootById(e.id)){let i=this.newRootView(e);i.setHref(this.getHref()),i.join(),e.hasAttribute(Do)&&(this.main=i)}t=!0}),t}redirect(t,e){this.disconnect(),oi.redirect(t,e)}replaceMain(t,e,i=null,s=this.setPendingLink(t)){this.outgoingMainEl=this.outgoingMainEl||this.main.el;let o=j.cloneNode(this.outgoingMainEl,"");this.main.showLoader(this.loaderTimeout),this.main.destroy(),this.main=this.newRootView(o,e),this.main.setRedirect(t),this.transitionRemoves(),this.main.join((c,d)=>{c===1&&this.commitPendingLink(s)&&this.requestDOMUpdate(()=>{j.findPhxSticky(document).forEach(g=>o.appendChild(g)),this.outgoingMainEl.replaceWith(o),this.outgoingMainEl=null,i&&requestAnimationFrame(i),d()})})}transitionRemoves(t){let e=this.binding("remove");t=t||j.all(document,`[${e}]`),t.forEach(i=>{document.body.contains(i)&&this.execJS(i,i.getAttribute(e),"remove")})}isPhxView(t){return t.getAttribute&&t.getAttribute(li)!==null}newRootView(t,e){let i=new cu(t,this,null,e);return this.roots[i.id]=i,i}owner(t,e){let i=qt(t.closest(an),s=>this.getViewByEl(s))||this.main;i&&e(i)}withinOwners(t,e){this.owner(t,i=>e(i,t))}getViewByEl(t){let e=t.getAttribute(Kn);return qt(this.getRootById(e),i=>i.getDescendentByEl(t))}getRootById(t){return this.roots[t]}destroyAllViews(){for(let t in this.roots)this.roots[t].destroy(),delete this.roots[t];this.main=null}destroyViewByEl(t){let e=this.getRootById(t.getAttribute(Kn));e&&e.id===t.id?(e.destroy(),delete this.roots[e.id]):e&&e.destroyDescendent(t.id)}setActiveElement(t){if(this.activeElement===t)return;this.activeElement=t;let e=()=>{t===this.activeElement&&(this.activeElement=null),t.removeEventListener("mouseup",this),t.removeEventListener("touchend",this)};t.addEventListener("mouseup",e),t.addEventListener("touchend",e)}getActiveElement(){return document.activeElement===document.body?this.activeElement||document.activeElement:document.activeElement||document.body}dropActiveElement(t){this.prevActive&&t.ownsElement(this.prevActive)&&(this.prevActive=null)}restorePreviouslyActiveFocus(){this.prevActive&&this.prevActive!==document.body&&this.prevActive.focus()}blurActiveElement(){this.prevActive=this.getActiveElement(),this.prevActive!==document.body&&this.prevActive.blur()}bindTopLevelEvents(){this.boundTopLevelEvents||(this.boundTopLevelEvents=!0,this.socket.onClose(t=>{t&&t.code===1e3&&this.main&&this.reloadWithJitter(this.main)}),document.body.addEventListener("click",function(){}),window.addEventListener("pageshow",t=>{t.persisted&&(this.getSocket().disconnect(),this.withPageLoading({to:window.location.href,kind:"redirect"}),window.location.reload())},!0),this.bindNav(),this.bindClicks(),this.bindForms(),this.bind({keyup:"keyup",keydown:"keydown"},(t,e,i,s,o,c)=>{let d=s.getAttribute(this.binding(gg)),g=t.key&&t.key.toLowerCase();if(d&&d.toLowerCase()!==g)return;let v={key:t.key,...this.eventMeta(e,t,s)};Nt.exec(e,o,i,s,["push",{data:v}])}),this.bind({blur:"focusout",focus:"focusin"},(t,e,i,s,o,c)=>{if(!c){let d={key:t.key,...this.eventMeta(e,t,s)};Nt.exec(e,o,i,s,["push",{data:d}])}}),this.bind({blur:"blur",focus:"focus"},(t,e,i,s,o,c,d)=>{if(d==="window"){let g=this.eventMeta(e,t,s);Nt.exec(e,c,i,s,["push",{data:g}])}}),window.addEventListener("dragover",t=>t.preventDefault()),window.addEventListener("drop",t=>{t.preventDefault();let e=qt(zn(t.target,this.binding(Ml)),o=>o.getAttribute(this.binding(Ml))),i=e&&document.getElementById(e),s=Array.from(t.dataTransfer.files||[]);!i||i.disabled||s.length===0||!(i.files instanceof FileList)||(Ve.trackFiles(i,s),i.dispatchEvent(new Event("input",{bubbles:!0})))}),this.on(su,t=>{let e=t.target;if(!j.isUploadInput(e))return;let i=Array.from(t.detail.files||[]).filter(s=>s instanceof File||s instanceof Blob);Ve.trackFiles(e,i),e.dispatchEvent(new Event("input",{bubbles:!0}))}))}eventMeta(t,e,i){let s=this.metadataCallbacks[t];return s?s(e,i):{}}setPendingLink(t){return this.linkRef++,this.pendingLink=t,this.linkRef}commitPendingLink(t){return this.linkRef!==t?!1:(this.href=this.pendingLink,this.pendingLink=null,!0)}getHref(){return this.href}hasPendingLink(){return!!this.pendingLink}bind(t,e){for(let i in t){let s=t[i];this.on(s,o=>{let c=this.binding(i),d=this.binding(`window-${i}`),g=o.target.getAttribute&&o.target.getAttribute(c);g?this.debounce(o.target,o,s,()=>{this.withinOwners(o.target,v=>{e(o,i,v,o.target,g,null)})}):j.all(document,`[${d}]`,v=>{let C=v.getAttribute(d);this.debounce(v,o,s,()=>{this.withinOwners(v,x=>{e(o,i,x,v,C,"window")})})})})}}bindClicks(){window.addEventListener("mousedown",t=>this.clickStartedAtTarget=t.target),this.bindClick("click","click",!1),this.bindClick("mousedown","capture-click",!0)}bindClick(t,e,i){let s=this.binding(e);window.addEventListener(t,o=>{let c=null;if(i)c=o.target.matches(`[${s}]`)?o.target:o.target.querySelector(`[${s}]`);else{let g=this.clickStartedAtTarget||o.target;c=zn(g,s),this.dispatchClickAway(o,g),this.clickStartedAtTarget=null}let d=c&&c.getAttribute(s);d&&(c.getAttribute("href")==="#"&&o.preventDefault(),this.debounce(c,o,"click",()=>{this.withinOwners(c,g=>{Nt.exec("click",d,g,c,["push",{data:this.eventMeta("click",o,c)}])})}))},i)}dispatchClickAway(t,e){let i=this.binding("click-away");j.all(document,`[${i}]`,s=>{s.isSameNode(e)||s.contains(e)||this.withinOwners(t.target,o=>{let c=s.getAttribute(i);Nt.isVisible(s)&&Nt.exec("click",c,o,s,["push",{data:this.eventMeta("click",t,t.target)}])})})}bindNav(){if(!oi.canPushState())return;history.scrollRestoration&&(history.scrollRestoration="manual");let t=null;window.addEventListener("scroll",e=>{clearTimeout(t),t=setTimeout(()=>{oi.updateCurrentState(i=>Object.assign(i,{scroll:window.scrollY}))},100)}),window.addEventListener("popstate",e=>{if(!this.registerNewLocation(window.location))return;let{type:i,id:s,root:o,scroll:c}=e.state||{},d=window.location.href;this.requestDOMUpdate(()=>{this.main.isConnected()&&i==="patch"&&s===this.main.id?this.main.pushLinkPatch(d,null):this.replaceMain(d,null,()=>{o&&this.replaceRootHistory(),typeof c=="number"&&setTimeout(()=>{window.scrollTo(0,c)},0)})})},!1),window.addEventListener("click",e=>{let i=zn(e.target,go),s=i&&i.getAttribute(go),o=e.metaKey||e.ctrlKey||e.button===1;if(!s||!this.isConnected()||!this.main||o)return;let c=i.href,d=i.getAttribute(ug);e.preventDefault(),e.stopImmediatePropagation(),this.pendingLink!==c&&this.requestDOMUpdate(()=>{if(s==="patch")this.pushHistoryPatch(c,d,i);else if(s==="redirect")this.historyRedirect(c,d);else throw new Error(`expected ${go} to be "patch" or "redirect", got: ${s}`)})},!1)}dispatchEvent(t,e={}){j.dispatchEvent(window,`phx:${t}`,{detail:e})}dispatchEvents(t){t.forEach(([e,i])=>this.dispatchEvent(e,i))}withPageLoading(t,e){j.dispatchEvent(window,"phx:page-loading-start",{detail:t});let i=()=>j.dispatchEvent(window,"phx:page-loading-stop",{detail:t});return e?e(i):i}pushHistoryPatch(t,e,i){this.withPageLoading({to:t,kind:"patch"},s=>{this.main.pushLinkPatch(t,i,o=>{this.historyPatch(t,e,o),s()})})}historyPatch(t,e,i=this.setPendingLink(t)){this.commitPendingLink(i)&&(oi.pushState(e,{type:"patch",id:this.main.id},t),this.registerNewLocation(window.location))}historyRedirect(t,e,i){let s=window.scrollY;this.withPageLoading({to:t,kind:"redirect"},o=>{this.replaceMain(t,i,()=>{oi.pushState(e,{type:"redirect",id:this.main.id,scroll:s},t),this.registerNewLocation(window.location),o()})})}replaceRootHistory(){oi.pushState("replace",{root:!0,type:"patch",id:this.main.id})}registerNewLocation(t){let{pathname:e,search:i}=this.currentLocation;return e+i===t.pathname+t.search?!1:(this.currentLocation=Jr(t),!0)}bindForms(){let t=0;this.on("submit",e=>{let i=e.target.getAttribute(this.binding("submit"));i&&(e.preventDefault(),e.target.disabled=!0,this.withinOwners(e.target,s=>{Nt.exec("submit",i,s,e.target,["push",{}])}))},!1);for(let e of["change","input"])this.on(e,i=>{let s=this.binding("change"),o=i.target,c=o.getAttribute(s),d=o.form&&o.form.getAttribute(s),g=c||d;if(!g||o.type==="number"&&o.validity&&o.validity.badInput)return;let v=c?o:o.form,C=t;t++;let{at:x,type:I}=j.private(o,"prev-iteration")||{};x===C-1&&e!==I||(j.putPrivate(o,"prev-iteration",{at:C,type:e}),this.debounce(o,i,e,()=>{this.withinOwners(v,D=>{j.putPrivate(o,ou,!0),j.isTextualInput(o)||this.setActiveElement(o),Nt.exec("change",g,D,o,["push",{_target:i.target.name,dispatcher:v}])})}))},!1)}debounce(t,e,i,s){if(i==="blur"||i==="focusout")return s();let o=this.binding(dg),c=this.binding(pg),d=this.defaults.debounce.toString(),g=this.defaults.throttle.toString();this.withinOwners(t,v=>{let C=()=>!v.isDestroyed()&&document.body.contains(t);j.debounce(t,e,o,d,c,g,C,()=>{s()})})}silenceEvents(t){this.silenced=!0,t(),this.silenced=!1}on(t,e){window.addEventListener(t,i=>{this.silenced||e(i)})}},Xg=class{constructor(){this.transitions=new Set,this.pendingOps=[],this.reset()}reset(){this.transitions.forEach(t=>{cancelTimeout(t),this.transitions.delete(t)}),this.flushPendingOps()}after(t){this.size()===0?t():this.pushPendingOp(t)}addTransition(t,e,i){e();let s=setTimeout(()=>{this.transitions.delete(s),i(),this.size()===0&&this.flushPendingOps()},t);this.transitions.add(s)}pushPendingOp(t){this.pendingOps.push(t)}size(){return this.transitions.size}flushPendingOps(){this.pendingOps.forEach(t=>t()),this.pendingOps=[]}};var Zr=yn(du());window.$=Lo.default;window.jQuery=Lo.default;var Yg=document.querySelector("meta[name='csrf-token']").getAttribute("content"),pu=new fu("/live",$l,{params:{_csrf_token:Yg}});Zr.default.config({barColors:{0:"#29d"},shadowColor:"rgba(0, 0, 0, .3)"});window.addEventListener("phx:page-loading-start",t=>Zr.default.show());window.addEventListener("phx:page-loading-stop",t=>Zr.default.hide());pu.connect();window.liveSocket=pu;})();
/**
* Prism: Lightweight, robust, elegant syntax highlighting
*
* @license MIT <https://opensource.org/licenses/MIT>
* @author Lea Verou <https://lea.verou.me>
* @namespace
* @public
*/
/**
* @license MIT
* topbar 1.0.0, 2021-01-06
* http://buunguyen.github.io/topbar
* Copyright (c) 2021 Buu Nguyen
*/
/*! Bundled license information:
jquery/dist/jquery.js:
(*!
* jQuery JavaScript Library v3.7.1
* https://jquery.com/
*
* Copyright OpenJS Foundation and other contributors
* Released under the MIT license
* https://jquery.org/license
*
* Date: 2023-08-28T13:37Z
*)
bootstrap/dist/js/bootstrap.esm.js:
(*!
* Bootstrap v5.3.3 (https://getbootstrap.com/)
* Copyright 2011-2024 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
*)
*/
//# sourceMappingURL=app.js.map