diff --git a/assets/index-61bb0355.js b/assets/index-11085a14.js similarity index 78% rename from assets/index-61bb0355.js rename to assets/index-11085a14.js index 48ba7d97c..f500ee59e 100644 --- a/assets/index-61bb0355.js +++ b/assets/index-11085a14.js @@ -4439,22 +4439,22 @@ var Mi=Object.defineProperty;var $i=(n,t,e)=>t in n?Mi(n,t,{enumerable:!0,config -`;var F="top",P="bottom",H="right",B="left",ye="auto",Rt=[F,P,H,B],Et="start",Nt="end",Ao="clippingParents",an="viewport",xt="popper",So="reference",Xe=Rt.reduce(function(n,t){return n.concat([t+"-"+Et,t+"-"+Nt])},[]),rn=[].concat(Rt,[ye]).reduce(function(n,t){return n.concat([t,t+"-"+Et,t+"-"+Nt])},[]),Oo="beforeRead",Co="read",xo="afterRead",To="beforeMain",ko="main",Do="afterMain",No="beforeWrite",Lo="write",Mo="afterWrite",$o=[Oo,Co,xo,To,ko,Do,No,Lo,Mo];function Q(n){return n?(n.nodeName||"").toLowerCase():null}function j(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var t=n.ownerDocument;return t&&t.defaultView||window}return n}function _t(n){var t=j(n).Element;return n instanceof t||n instanceof Element}function V(n){var t=j(n).HTMLElement;return n instanceof t||n instanceof HTMLElement}function pn(n){if(typeof ShadowRoot>"u")return!1;var t=j(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Js(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];!V(s)||!Q(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(l){var a=i[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function Gs(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],s=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:e[o]),a=l.reduce(function(r,d){return r[d]="",r},{});!V(i)||!Q(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(r){i.removeAttribute(r)}))})}}const cn={name:"applyStyles",enabled:!0,phase:"write",fn:Js,effect:Gs,requires:["computeStyles"]};function Y(n){return n.split("-")[0]}var gt=Math.max,fe=Math.min,Lt=Math.round;function Qe(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fo(){return!/^((?!chrome|android).)*safari/i.test(Qe())}function Mt(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var o=n.getBoundingClientRect(),i=1,s=1;t&&V(n)&&(i=n.offsetWidth>0&&Lt(o.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Lt(o.height)/n.offsetHeight||1);var l=_t(n)?j(n):window,a=l.visualViewport,r=!Fo()&&e,d=(o.left+(r&&a?a.offsetLeft:0))/i,p=(o.top+(r&&a?a.offsetTop:0))/s,b=o.width/i,m=o.height/s;return{width:b,height:m,top:p,right:d+b,bottom:p+m,left:d,x:d,y:p}}function un(n){var t=Mt(n),e=n.offsetWidth,o=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:o}}function Bo(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&pn(e)){var o=t;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function et(n){return j(n).getComputedStyle(n)}function Ws(n){return["table","td","th"].indexOf(Q(n))>=0}function rt(n){return((_t(n)?n.ownerDocument:n.document)||window.document).documentElement}function we(n){return Q(n)==="html"?n:n.assignedSlot||n.parentNode||(pn(n)?n.host:null)||rt(n)}function $n(n){return!V(n)||et(n).position==="fixed"?null:n.offsetParent}function Us(n){var t=/firefox/i.test(Qe()),e=/Trident/i.test(Qe());if(e&&V(n)){var o=et(n);if(o.position==="fixed")return null}var i=we(n);for(pn(i)&&(i=i.host);V(i)&&["html","body"].indexOf(Q(i))<0;){var s=et(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Kt(n){for(var t=j(n),e=$n(n);e&&Ws(e)&&et(e).position==="static";)e=$n(e);return e&&(Q(e)==="html"||Q(e)==="body"&&et(e).position==="static")?t:e||Us(n)||t}function dn(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Ut(n,t,e){return gt(n,fe(t,e))}function qs(n,t,e){var o=Ut(n,t,e);return o>e?e:o}function Io(){return{top:0,right:0,bottom:0,left:0}}function Ro(n){return Object.assign({},Io(),n)}function Po(n,t){return t.reduce(function(e,o){return e[o]=n,e},{})}var zs=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ro(typeof t!="number"?t:Po(t,Rt))};function Ks(n){var t,e=n.state,o=n.name,i=n.options,s=e.elements.arrow,l=e.modifiersData.popperOffsets,a=Y(e.placement),r=dn(a),d=[B,H].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var b=zs(i.padding,e),m=un(s),v=r==="y"?F:B,S=r==="y"?P:H,E=e.rects.reference[p]+e.rects.reference[r]-l[r]-e.rects.popper[p],y=l[r]-e.rects.reference[r],O=Kt(s),x=O?r==="y"?O.clientHeight||0:O.clientWidth||0:0,T=E/2-y/2,_=b[v],w=x-m[p]-b[S],A=x/2-m[p]/2+T,C=Ut(_,A,w),L=r;e.modifiersData[o]=(t={},t[L]=C,t.centerOffset=C-A,t)}}function Ys(n){var t=n.state,e=n.options,o=e.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Bo(t.elements.popper,i)&&(t.elements.arrow=i))}const Ho={name:"arrow",enabled:!0,phase:"main",fn:Ks,effect:Ys,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(n){return n.split("-")[1]}var Xs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qs(n,t){var e=n.x,o=n.y,i=t.devicePixelRatio||1;return{x:Lt(e*i)/i||0,y:Lt(o*i)/i||0}}function Fn(n){var t,e=n.popper,o=n.popperRect,i=n.placement,s=n.variation,l=n.offsets,a=n.position,r=n.gpuAcceleration,d=n.adaptive,p=n.roundOffsets,b=n.isFixed,m=l.x,v=m===void 0?0:m,S=l.y,E=S===void 0?0:S,y=typeof p=="function"?p({x:v,y:E}):{x:v,y:E};v=y.x,E=y.y;var O=l.hasOwnProperty("x"),x=l.hasOwnProperty("y"),T=B,_=F,w=window;if(d){var A=Kt(e),C="clientHeight",L="clientWidth";if(A===j(e)&&(A=rt(e),et(A).position!=="static"&&a==="absolute"&&(C="scrollHeight",L="scrollWidth")),A=A,i===F||(i===B||i===H)&&s===Nt){_=P;var D=b&&A===w&&w.visualViewport?w.visualViewport.height:A[C];E-=D-o.height,E*=r?1:-1}if(i===B||(i===F||i===P)&&s===Nt){T=H;var k=b&&A===w&&w.visualViewport?w.visualViewport.width:A[L];v-=k-o.width,v*=r?1:-1}}var M=Object.assign({position:a},d&&Xs),U=p===!0?Qs({x:v,y:E},j(e)):{x:v,y:E};if(v=U.x,E=U.y,r){var $;return Object.assign({},M,($={},$[_]=x?"0":"",$[T]=O?"0":"",$.transform=(w.devicePixelRatio||1)<=1?"translate("+v+"px, "+E+"px)":"translate3d("+v+"px, "+E+"px, 0)",$))}return Object.assign({},M,(t={},t[_]=x?E+"px":"",t[T]=O?v+"px":"",t.transform="",t))}function Zs(n){var t=n.state,e=n.options,o=e.gpuAcceleration,i=o===void 0?!0:o,s=e.adaptive,l=s===void 0?!0:s,a=e.roundOffsets,r=a===void 0?!0:a,d={placement:Y(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:r})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zs,data:{}};var se={passive:!0};function tl(n){var t=n.state,e=n.instance,o=n.options,i=o.scroll,s=i===void 0?!0:i,l=o.resize,a=l===void 0?!0:l,r=j(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",e.update,se)}),a&&r.addEventListener("resize",e.update,se),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",e.update,se)}),a&&r.removeEventListener("resize",e.update,se)}}const mn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tl,data:{}};var el={left:"right",right:"left",bottom:"top",top:"bottom"};function me(n){return n.replace(/left|right|bottom|top/g,function(t){return el[t]})}var nl={start:"end",end:"start"};function Bn(n){return n.replace(/start|end/g,function(t){return nl[t]})}function vn(n){var t=j(n),e=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:e,scrollTop:o}}function bn(n){return Mt(rt(n)).left+vn(n).scrollLeft}function ol(n,t){var e=j(n),o=rt(n),i=e.visualViewport,s=o.clientWidth,l=o.clientHeight,a=0,r=0;if(i){s=i.width,l=i.height;var d=Fo();(d||!d&&t==="fixed")&&(a=i.offsetLeft,r=i.offsetTop)}return{width:s,height:l,x:a+bn(n),y:r}}function il(n){var t,e=rt(n),o=vn(n),i=(t=n.ownerDocument)==null?void 0:t.body,s=gt(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=gt(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+bn(n),r=-o.scrollTop;return et(i||e).direction==="rtl"&&(a+=gt(e.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:a,y:r}}function fn(n){var t=et(n),e=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+o)}function jo(n){return["html","body","#document"].indexOf(Q(n))>=0?n.ownerDocument.body:V(n)&&fn(n)?n:jo(we(n))}function qt(n,t){var e;t===void 0&&(t=[]);var o=jo(n),i=o===((e=n.ownerDocument)==null?void 0:e.body),s=j(o),l=i?[s].concat(s.visualViewport||[],fn(o)?o:[]):o,a=t.concat(l);return i?a:a.concat(qt(we(l)))}function Ze(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function sl(n,t){var e=Mt(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function In(n,t,e){return t===an?Ze(ol(n,e)):_t(t)?sl(t,e):Ze(il(rt(n)))}function ll(n){var t=qt(we(n)),e=["absolute","fixed"].indexOf(et(n).position)>=0,o=e&&V(n)?Kt(n):n;return _t(o)?t.filter(function(i){return _t(i)&&Bo(i,o)&&Q(i)!=="body"}):[]}function al(n,t,e,o){var i=t==="clippingParents"?ll(n):[].concat(t),s=[].concat(i,[e]),l=s[0],a=s.reduce(function(r,d){var p=In(n,d,o);return r.top=gt(p.top,r.top),r.right=fe(p.right,r.right),r.bottom=fe(p.bottom,r.bottom),r.left=gt(p.left,r.left),r},In(n,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vo(n){var t=n.reference,e=n.element,o=n.placement,i=o?Y(o):null,s=o?$t(o):null,l=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,r;switch(i){case F:r={x:l,y:t.y-e.height};break;case P:r={x:l,y:t.y+t.height};break;case H:r={x:t.x+t.width,y:a};break;case B:r={x:t.x-e.width,y:a};break;default:r={x:t.x,y:t.y}}var d=i?dn(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case Et:r[d]=r[d]-(t[p]/2-e[p]/2);break;case Nt:r[d]=r[d]+(t[p]/2-e[p]/2);break}}return r}function Ft(n,t){t===void 0&&(t={});var e=t,o=e.placement,i=o===void 0?n.placement:o,s=e.strategy,l=s===void 0?n.strategy:s,a=e.boundary,r=a===void 0?Ao:a,d=e.rootBoundary,p=d===void 0?an:d,b=e.elementContext,m=b===void 0?xt:b,v=e.altBoundary,S=v===void 0?!1:v,E=e.padding,y=E===void 0?0:E,O=Ro(typeof y!="number"?y:Po(y,Rt)),x=m===xt?So:xt,T=n.rects.popper,_=n.elements[S?x:m],w=al(_t(_)?_:_.contextElement||rt(n.elements.popper),r,p,l),A=Mt(n.elements.reference),C=Vo({reference:A,element:T,strategy:"absolute",placement:i}),L=Ze(Object.assign({},T,C)),D=m===xt?L:A,k={top:w.top-D.top+O.top,bottom:D.bottom-w.bottom+O.bottom,left:w.left-D.left+O.left,right:D.right-w.right+O.right},M=n.modifiersData.offset;if(m===xt&&M){var U=M[i];Object.keys(k).forEach(function($){var ut=[H,P].indexOf($)>=0?1:-1,dt=[F,P].indexOf($)>=0?"y":"x";k[$]+=U[dt]*ut})}return k}function rl(n,t){t===void 0&&(t={});var e=t,o=e.placement,i=e.boundary,s=e.rootBoundary,l=e.padding,a=e.flipVariations,r=e.allowedAutoPlacements,d=r===void 0?rn:r,p=$t(o),b=p?a?Xe:Xe.filter(function(S){return $t(S)===p}):Rt,m=b.filter(function(S){return d.indexOf(S)>=0});m.length===0&&(m=b);var v=m.reduce(function(S,E){return S[E]=Ft(n,{placement:E,boundary:i,rootBoundary:s,padding:l})[Y(E)],S},{});return Object.keys(v).sort(function(S,E){return v[S]-v[E]})}function pl(n){if(Y(n)===ye)return[];var t=me(n);return[Bn(n),t,Bn(t)]}function cl(n){var t=n.state,e=n.options,o=n.name;if(!t.modifiersData[o]._skip){for(var i=e.mainAxis,s=i===void 0?!0:i,l=e.altAxis,a=l===void 0?!0:l,r=e.fallbackPlacements,d=e.padding,p=e.boundary,b=e.rootBoundary,m=e.altBoundary,v=e.flipVariations,S=v===void 0?!0:v,E=e.allowedAutoPlacements,y=t.options.placement,O=Y(y),x=O===y,T=r||(x||!S?[me(y)]:pl(y)),_=[y].concat(T).reduce(function(At,ot){return At.concat(Y(ot)===ye?rl(t,{placement:ot,boundary:p,rootBoundary:b,padding:d,flipVariations:S,allowedAutoPlacements:E}):ot)},[]),w=t.rects.reference,A=t.rects.popper,C=new Map,L=!0,D=_[0],k=0;k<_.length;k++){var M=_[k],U=Y(M),$=$t(M)===Et,ut=[F,P].indexOf(U)>=0,dt=ut?"width":"height",R=Ft(t,{placement:M,boundary:p,rootBoundary:b,altBoundary:m,padding:d}),q=ut?$?H:B:$?P:F;w[dt]>A[dt]&&(q=me(q));var te=me(q),ht=[];if(s&&ht.push(R[U]<=0),a&&ht.push(R[q]<=0,R[te]<=0),ht.every(function(At){return At})){D=M,L=!1;break}C.set(M,ht)}if(L)for(var ee=S?3:1,ke=function(ot){var Jt=_.find(function(oe){var mt=C.get(oe);if(mt)return mt.slice(0,ot).every(function(De){return De})});if(Jt)return D=Jt,"break"},Vt=ee;Vt>0;Vt--){var ne=ke(Vt);if(ne==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const Jo={name:"flip",enabled:!0,phase:"main",fn:cl,requiresIfExists:["offset"],data:{_skip:!1}};function Rn(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Pn(n){return[F,H,P,B].some(function(t){return n[t]>=0})}function ul(n){var t=n.state,e=n.name,o=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=Ft(t,{elementContext:"reference"}),a=Ft(t,{altBoundary:!0}),r=Rn(l,o),d=Rn(a,i,s),p=Pn(r),b=Pn(d);t.modifiersData[e]={referenceClippingOffsets:r,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:b},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":b})}const Go={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ul};function dl(n,t,e){var o=Y(n),i=[B,F].indexOf(o)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,l=s[0],a=s[1];return l=l||0,a=(a||0)*i,[B,H].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function hl(n){var t=n.state,e=n.options,o=n.name,i=e.offset,s=i===void 0?[0,0]:i,l=rn.reduce(function(p,b){return p[b]=dl(b,t.rects,s),p},{}),a=l[t.placement],r=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=r,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=l}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hl};function ml(n){var t=n.state,e=n.name;t.modifiersData[e]=Vo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gn={name:"popperOffsets",enabled:!0,phase:"read",fn:ml,data:{}};function vl(n){return n==="x"?"y":"x"}function bl(n){var t=n.state,e=n.options,o=n.name,i=e.mainAxis,s=i===void 0?!0:i,l=e.altAxis,a=l===void 0?!1:l,r=e.boundary,d=e.rootBoundary,p=e.altBoundary,b=e.padding,m=e.tether,v=m===void 0?!0:m,S=e.tetherOffset,E=S===void 0?0:S,y=Ft(t,{boundary:r,rootBoundary:d,padding:b,altBoundary:p}),O=Y(t.placement),x=$t(t.placement),T=!x,_=dn(O),w=vl(_),A=t.modifiersData.popperOffsets,C=t.rects.reference,L=t.rects.popper,D=typeof E=="function"?E(Object.assign({},t.rects,{placement:t.placement})):E,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(A){if(s){var $,ut=_==="y"?F:B,dt=_==="y"?P:H,R=_==="y"?"height":"width",q=A[_],te=q+y[ut],ht=q-y[dt],ee=v?-L[R]/2:0,ke=x===Et?C[R]:L[R],Vt=x===Et?-L[R]:-C[R],ne=t.elements.arrow,At=v&&ne?un(ne):{width:0,height:0},ot=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Io(),Jt=ot[ut],oe=ot[dt],mt=Ut(0,C[R],At[R]),De=T?C[R]/2-ee-mt-Jt-k.mainAxis:ke-mt-Jt-k.mainAxis,xi=T?-C[R]/2+ee+mt+oe+k.mainAxis:Vt+mt+oe+k.mainAxis,Ne=t.elements.arrow&&Kt(t.elements.arrow),Ti=Ne?_==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,On=($=M==null?void 0:M[_])!=null?$:0,ki=q+De-On-Ti,Di=q+xi-On,Cn=Ut(v?fe(te,ki):te,q,v?gt(ht,Di):ht);A[_]=Cn,U[_]=Cn-q}if(a){var xn,Ni=_==="x"?F:B,Li=_==="x"?P:H,vt=A[w],ie=w==="y"?"height":"width",Tn=vt+y[Ni],kn=vt-y[Li],Le=[F,B].indexOf(O)!==-1,Dn=(xn=M==null?void 0:M[w])!=null?xn:0,Nn=Le?Tn:vt-C[ie]-L[ie]-Dn+k.altAxis,Ln=Le?vt+C[ie]+L[ie]-Dn-k.altAxis:kn,Mn=v&&Le?qs(Nn,vt,Ln):Ut(v?Nn:Tn,vt,v?Ln:kn);A[w]=Mn,U[w]=Mn-vt}t.modifiersData[o]=U}}const Uo={name:"preventOverflow",enabled:!0,phase:"main",fn:bl,requiresIfExists:["offset"]};function fl(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function gl(n){return n===j(n)||!V(n)?vn(n):fl(n)}function El(n){var t=n.getBoundingClientRect(),e=Lt(t.width)/n.offsetWidth||1,o=Lt(t.height)/n.offsetHeight||1;return e!==1||o!==1}function _l(n,t,e){e===void 0&&(e=!1);var o=V(t),i=V(t)&&El(t),s=rt(t),l=Mt(n,i,e),a={scrollLeft:0,scrollTop:0},r={x:0,y:0};return(o||!o&&!e)&&((Q(t)!=="body"||fn(s))&&(a=gl(t)),V(t)?(r=Mt(t,!0),r.x+=t.clientLeft,r.y+=t.clientTop):s&&(r.x=bn(s))),{x:l.left+a.scrollLeft-r.x,y:l.top+a.scrollTop-r.y,width:l.width,height:l.height}}function yl(n){var t=new Map,e=new Set,o=[];n.forEach(function(s){t.set(s.name,s)});function i(s){e.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!e.has(a)){var r=t.get(a);r&&i(r)}}),o.push(s)}return n.forEach(function(s){e.has(s.name)||i(s)}),o}function wl(n){var t=yl(n);return $o.reduce(function(e,o){return e.concat(t.filter(function(i){return i.phase===o}))},[])}function Al(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Sl(n){var t=n.reduce(function(e,o){var i=e[o.name];return e[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,e},{});return Object.keys(t).map(function(e){return t[e]})}var Hn={placement:"bottom",modifiers:[],strategy:"absolute"};function jn(){for(var n=arguments.length,t=new Array(n),e=0;e"u")return!1;var t=j(n).ShadowRoot;return n instanceof t||n instanceof ShadowRoot}function Js(n){var t=n.state;Object.keys(t.elements).forEach(function(e){var o=t.styles[e]||{},i=t.attributes[e]||{},s=t.elements[e];!V(s)||!Q(s)||(Object.assign(s.style,o),Object.keys(i).forEach(function(l){var a=i[l];a===!1?s.removeAttribute(l):s.setAttribute(l,a===!0?"":a)}))})}function Gs(n){var t=n.state,e={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,e.popper),t.styles=e,t.elements.arrow&&Object.assign(t.elements.arrow.style,e.arrow),function(){Object.keys(t.elements).forEach(function(o){var i=t.elements[o],s=t.attributes[o]||{},l=Object.keys(t.styles.hasOwnProperty(o)?t.styles[o]:e[o]),a=l.reduce(function(r,d){return r[d]="",r},{});!V(i)||!Q(i)||(Object.assign(i.style,a),Object.keys(s).forEach(function(r){i.removeAttribute(r)}))})}}const cn={name:"applyStyles",enabled:!0,phase:"write",fn:Js,effect:Gs,requires:["computeStyles"]};function Y(n){return n.split("-")[0]}var gt=Math.max,fe=Math.min,Lt=Math.round;function Qe(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Fo(){return!/^((?!chrome|android).)*safari/i.test(Qe())}function Mt(n,t,e){t===void 0&&(t=!1),e===void 0&&(e=!1);var o=n.getBoundingClientRect(),i=1,s=1;t&&V(n)&&(i=n.offsetWidth>0&&Lt(o.width)/n.offsetWidth||1,s=n.offsetHeight>0&&Lt(o.height)/n.offsetHeight||1);var l=_t(n)?j(n):window,a=l.visualViewport,r=!Fo()&&e,d=(o.left+(r&&a?a.offsetLeft:0))/i,p=(o.top+(r&&a?a.offsetTop:0))/s,v=o.width/i,b=o.height/s;return{width:v,height:b,top:p,right:d+v,bottom:p+b,left:d,x:d,y:p}}function un(n){var t=Mt(n),e=n.offsetWidth,o=n.offsetHeight;return Math.abs(t.width-e)<=1&&(e=t.width),Math.abs(t.height-o)<=1&&(o=t.height),{x:n.offsetLeft,y:n.offsetTop,width:e,height:o}}function Bo(n,t){var e=t.getRootNode&&t.getRootNode();if(n.contains(t))return!0;if(e&&pn(e)){var o=t;do{if(o&&n.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function et(n){return j(n).getComputedStyle(n)}function Ws(n){return["table","td","th"].indexOf(Q(n))>=0}function rt(n){return((_t(n)?n.ownerDocument:n.document)||window.document).documentElement}function we(n){return Q(n)==="html"?n:n.assignedSlot||n.parentNode||(pn(n)?n.host:null)||rt(n)}function $n(n){return!V(n)||et(n).position==="fixed"?null:n.offsetParent}function Us(n){var t=/firefox/i.test(Qe()),e=/Trident/i.test(Qe());if(e&&V(n)){var o=et(n);if(o.position==="fixed")return null}var i=we(n);for(pn(i)&&(i=i.host);V(i)&&["html","body"].indexOf(Q(i))<0;){var s=et(i);if(s.transform!=="none"||s.perspective!=="none"||s.contain==="paint"||["transform","perspective"].indexOf(s.willChange)!==-1||t&&s.willChange==="filter"||t&&s.filter&&s.filter!=="none")return i;i=i.parentNode}return null}function Kt(n){for(var t=j(n),e=$n(n);e&&Ws(e)&&et(e).position==="static";)e=$n(e);return e&&(Q(e)==="html"||Q(e)==="body"&&et(e).position==="static")?t:e||Us(n)||t}function dn(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Ut(n,t,e){return gt(n,fe(t,e))}function qs(n,t,e){var o=Ut(n,t,e);return o>e?e:o}function Io(){return{top:0,right:0,bottom:0,left:0}}function Ro(n){return Object.assign({},Io(),n)}function Po(n,t){return t.reduce(function(e,o){return e[o]=n,e},{})}var zs=function(t,e){return t=typeof t=="function"?t(Object.assign({},e.rects,{placement:e.placement})):t,Ro(typeof t!="number"?t:Po(t,Rt))};function Ks(n){var t,e=n.state,o=n.name,i=n.options,s=e.elements.arrow,l=e.modifiersData.popperOffsets,a=Y(e.placement),r=dn(a),d=[B,H].indexOf(a)>=0,p=d?"height":"width";if(!(!s||!l)){var v=zs(i.padding,e),b=un(s),m=r==="y"?F:B,g=r==="y"?P:H,_=e.rects.reference[p]+e.rects.reference[r]-l[r]-e.rects.popper[p],w=l[r]-e.rects.reference[r],O=Kt(s),x=O?r==="y"?O.clientHeight||0:O.clientWidth||0:0,T=_/2-w/2,y=v[m],A=x-b[p]-v[g],S=x/2-b[p]/2+T,C=Ut(y,S,A),L=r;e.modifiersData[o]=(t={},t[L]=C,t.centerOffset=C-S,t)}}function Ys(n){var t=n.state,e=n.options,o=e.element,i=o===void 0?"[data-popper-arrow]":o;i!=null&&(typeof i=="string"&&(i=t.elements.popper.querySelector(i),!i)||Bo(t.elements.popper,i)&&(t.elements.arrow=i))}const Ho={name:"arrow",enabled:!0,phase:"main",fn:Ks,effect:Ys,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function $t(n){return n.split("-")[1]}var Xs={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Qs(n,t){var e=n.x,o=n.y,i=t.devicePixelRatio||1;return{x:Lt(e*i)/i||0,y:Lt(o*i)/i||0}}function Fn(n){var t,e=n.popper,o=n.popperRect,i=n.placement,s=n.variation,l=n.offsets,a=n.position,r=n.gpuAcceleration,d=n.adaptive,p=n.roundOffsets,v=n.isFixed,b=l.x,m=b===void 0?0:b,g=l.y,_=g===void 0?0:g,w=typeof p=="function"?p({x:m,y:_}):{x:m,y:_};m=w.x,_=w.y;var O=l.hasOwnProperty("x"),x=l.hasOwnProperty("y"),T=B,y=F,A=window;if(d){var S=Kt(e),C="clientHeight",L="clientWidth";if(S===j(e)&&(S=rt(e),et(S).position!=="static"&&a==="absolute"&&(C="scrollHeight",L="scrollWidth")),S=S,i===F||(i===B||i===H)&&s===Nt){y=P;var D=v&&S===A&&A.visualViewport?A.visualViewport.height:S[C];_-=D-o.height,_*=r?1:-1}if(i===B||(i===F||i===P)&&s===Nt){T=H;var k=v&&S===A&&A.visualViewport?A.visualViewport.width:S[L];m-=k-o.width,m*=r?1:-1}}var M=Object.assign({position:a},d&&Xs),U=p===!0?Qs({x:m,y:_},j(e)):{x:m,y:_};if(m=U.x,_=U.y,r){var $;return Object.assign({},M,($={},$[y]=x?"0":"",$[T]=O?"0":"",$.transform=(A.devicePixelRatio||1)<=1?"translate("+m+"px, "+_+"px)":"translate3d("+m+"px, "+_+"px, 0)",$))}return Object.assign({},M,(t={},t[y]=x?_+"px":"",t[T]=O?m+"px":"",t.transform="",t))}function Zs(n){var t=n.state,e=n.options,o=e.gpuAcceleration,i=o===void 0?!0:o,s=e.adaptive,l=s===void 0?!0:s,a=e.roundOffsets,r=a===void 0?!0:a,d={placement:Y(t.placement),variation:$t(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:i,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Fn(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:l,roundOffsets:r})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,Fn(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:r})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const hn={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:Zs,data:{}};var se={passive:!0};function tl(n){var t=n.state,e=n.instance,o=n.options,i=o.scroll,s=i===void 0?!0:i,l=o.resize,a=l===void 0?!0:l,r=j(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return s&&d.forEach(function(p){p.addEventListener("scroll",e.update,se)}),a&&r.addEventListener("resize",e.update,se),function(){s&&d.forEach(function(p){p.removeEventListener("scroll",e.update,se)}),a&&r.removeEventListener("resize",e.update,se)}}const mn={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:tl,data:{}};var el={left:"right",right:"left",bottom:"top",top:"bottom"};function me(n){return n.replace(/left|right|bottom|top/g,function(t){return el[t]})}var nl={start:"end",end:"start"};function Bn(n){return n.replace(/start|end/g,function(t){return nl[t]})}function vn(n){var t=j(n),e=t.pageXOffset,o=t.pageYOffset;return{scrollLeft:e,scrollTop:o}}function bn(n){return Mt(rt(n)).left+vn(n).scrollLeft}function ol(n,t){var e=j(n),o=rt(n),i=e.visualViewport,s=o.clientWidth,l=o.clientHeight,a=0,r=0;if(i){s=i.width,l=i.height;var d=Fo();(d||!d&&t==="fixed")&&(a=i.offsetLeft,r=i.offsetTop)}return{width:s,height:l,x:a+bn(n),y:r}}function il(n){var t,e=rt(n),o=vn(n),i=(t=n.ownerDocument)==null?void 0:t.body,s=gt(e.scrollWidth,e.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),l=gt(e.scrollHeight,e.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),a=-o.scrollLeft+bn(n),r=-o.scrollTop;return et(i||e).direction==="rtl"&&(a+=gt(e.clientWidth,i?i.clientWidth:0)-s),{width:s,height:l,x:a,y:r}}function fn(n){var t=et(n),e=t.overflow,o=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(e+i+o)}function jo(n){return["html","body","#document"].indexOf(Q(n))>=0?n.ownerDocument.body:V(n)&&fn(n)?n:jo(we(n))}function qt(n,t){var e;t===void 0&&(t=[]);var o=jo(n),i=o===((e=n.ownerDocument)==null?void 0:e.body),s=j(o),l=i?[s].concat(s.visualViewport||[],fn(o)?o:[]):o,a=t.concat(l);return i?a:a.concat(qt(we(l)))}function Ze(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function sl(n,t){var e=Mt(n,!1,t==="fixed");return e.top=e.top+n.clientTop,e.left=e.left+n.clientLeft,e.bottom=e.top+n.clientHeight,e.right=e.left+n.clientWidth,e.width=n.clientWidth,e.height=n.clientHeight,e.x=e.left,e.y=e.top,e}function In(n,t,e){return t===an?Ze(ol(n,e)):_t(t)?sl(t,e):Ze(il(rt(n)))}function ll(n){var t=qt(we(n)),e=["absolute","fixed"].indexOf(et(n).position)>=0,o=e&&V(n)?Kt(n):n;return _t(o)?t.filter(function(i){return _t(i)&&Bo(i,o)&&Q(i)!=="body"}):[]}function al(n,t,e,o){var i=t==="clippingParents"?ll(n):[].concat(t),s=[].concat(i,[e]),l=s[0],a=s.reduce(function(r,d){var p=In(n,d,o);return r.top=gt(p.top,r.top),r.right=fe(p.right,r.right),r.bottom=fe(p.bottom,r.bottom),r.left=gt(p.left,r.left),r},In(n,l,o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Vo(n){var t=n.reference,e=n.element,o=n.placement,i=o?Y(o):null,s=o?$t(o):null,l=t.x+t.width/2-e.width/2,a=t.y+t.height/2-e.height/2,r;switch(i){case F:r={x:l,y:t.y-e.height};break;case P:r={x:l,y:t.y+t.height};break;case H:r={x:t.x+t.width,y:a};break;case B:r={x:t.x-e.width,y:a};break;default:r={x:t.x,y:t.y}}var d=i?dn(i):null;if(d!=null){var p=d==="y"?"height":"width";switch(s){case Et:r[d]=r[d]-(t[p]/2-e[p]/2);break;case Nt:r[d]=r[d]+(t[p]/2-e[p]/2);break}}return r}function Ft(n,t){t===void 0&&(t={});var e=t,o=e.placement,i=o===void 0?n.placement:o,s=e.strategy,l=s===void 0?n.strategy:s,a=e.boundary,r=a===void 0?Ao:a,d=e.rootBoundary,p=d===void 0?an:d,v=e.elementContext,b=v===void 0?xt:v,m=e.altBoundary,g=m===void 0?!1:m,_=e.padding,w=_===void 0?0:_,O=Ro(typeof w!="number"?w:Po(w,Rt)),x=b===xt?So:xt,T=n.rects.popper,y=n.elements[g?x:b],A=al(_t(y)?y:y.contextElement||rt(n.elements.popper),r,p,l),S=Mt(n.elements.reference),C=Vo({reference:S,element:T,strategy:"absolute",placement:i}),L=Ze(Object.assign({},T,C)),D=b===xt?L:S,k={top:A.top-D.top+O.top,bottom:D.bottom-A.bottom+O.bottom,left:A.left-D.left+O.left,right:D.right-A.right+O.right},M=n.modifiersData.offset;if(b===xt&&M){var U=M[i];Object.keys(k).forEach(function($){var ut=[H,P].indexOf($)>=0?1:-1,dt=[F,P].indexOf($)>=0?"y":"x";k[$]+=U[dt]*ut})}return k}function rl(n,t){t===void 0&&(t={});var e=t,o=e.placement,i=e.boundary,s=e.rootBoundary,l=e.padding,a=e.flipVariations,r=e.allowedAutoPlacements,d=r===void 0?rn:r,p=$t(o),v=p?a?Xe:Xe.filter(function(g){return $t(g)===p}):Rt,b=v.filter(function(g){return d.indexOf(g)>=0});b.length===0&&(b=v);var m=b.reduce(function(g,_){return g[_]=Ft(n,{placement:_,boundary:i,rootBoundary:s,padding:l})[Y(_)],g},{});return Object.keys(m).sort(function(g,_){return m[g]-m[_]})}function pl(n){if(Y(n)===ye)return[];var t=me(n);return[Bn(n),t,Bn(t)]}function cl(n){var t=n.state,e=n.options,o=n.name;if(!t.modifiersData[o]._skip){for(var i=e.mainAxis,s=i===void 0?!0:i,l=e.altAxis,a=l===void 0?!0:l,r=e.fallbackPlacements,d=e.padding,p=e.boundary,v=e.rootBoundary,b=e.altBoundary,m=e.flipVariations,g=m===void 0?!0:m,_=e.allowedAutoPlacements,w=t.options.placement,O=Y(w),x=O===w,T=r||(x||!g?[me(w)]:pl(w)),y=[w].concat(T).reduce(function(At,ot){return At.concat(Y(ot)===ye?rl(t,{placement:ot,boundary:p,rootBoundary:v,padding:d,flipVariations:g,allowedAutoPlacements:_}):ot)},[]),A=t.rects.reference,S=t.rects.popper,C=new Map,L=!0,D=y[0],k=0;k=0,dt=ut?"width":"height",R=Ft(t,{placement:M,boundary:p,rootBoundary:v,altBoundary:b,padding:d}),q=ut?$?H:B:$?P:F;A[dt]>S[dt]&&(q=me(q));var te=me(q),ht=[];if(s&&ht.push(R[U]<=0),a&&ht.push(R[q]<=0,R[te]<=0),ht.every(function(At){return At})){D=M,L=!1;break}C.set(M,ht)}if(L)for(var ee=g?3:1,ke=function(ot){var Jt=y.find(function(oe){var mt=C.get(oe);if(mt)return mt.slice(0,ot).every(function(De){return De})});if(Jt)return D=Jt,"break"},Vt=ee;Vt>0;Vt--){var ne=ke(Vt);if(ne==="break")break}t.placement!==D&&(t.modifiersData[o]._skip=!0,t.placement=D,t.reset=!0)}}const Jo={name:"flip",enabled:!0,phase:"main",fn:cl,requiresIfExists:["offset"],data:{_skip:!1}};function Rn(n,t,e){return e===void 0&&(e={x:0,y:0}),{top:n.top-t.height-e.y,right:n.right-t.width+e.x,bottom:n.bottom-t.height+e.y,left:n.left-t.width-e.x}}function Pn(n){return[F,H,P,B].some(function(t){return n[t]>=0})}function ul(n){var t=n.state,e=n.name,o=t.rects.reference,i=t.rects.popper,s=t.modifiersData.preventOverflow,l=Ft(t,{elementContext:"reference"}),a=Ft(t,{altBoundary:!0}),r=Rn(l,o),d=Rn(a,i,s),p=Pn(r),v=Pn(d);t.modifiersData[e]={referenceClippingOffsets:r,popperEscapeOffsets:d,isReferenceHidden:p,hasPopperEscaped:v},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":v})}const Go={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:ul};function dl(n,t,e){var o=Y(n),i=[B,F].indexOf(o)>=0?-1:1,s=typeof e=="function"?e(Object.assign({},t,{placement:n})):e,l=s[0],a=s[1];return l=l||0,a=(a||0)*i,[B,H].indexOf(o)>=0?{x:a,y:l}:{x:l,y:a}}function hl(n){var t=n.state,e=n.options,o=n.name,i=e.offset,s=i===void 0?[0,0]:i,l=rn.reduce(function(p,v){return p[v]=dl(v,t.rects,s),p},{}),a=l[t.placement],r=a.x,d=a.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=r,t.modifiersData.popperOffsets.y+=d),t.modifiersData[o]=l}const Wo={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:hl};function ml(n){var t=n.state,e=n.name;t.modifiersData[e]=Vo({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const gn={name:"popperOffsets",enabled:!0,phase:"read",fn:ml,data:{}};function vl(n){return n==="x"?"y":"x"}function bl(n){var t=n.state,e=n.options,o=n.name,i=e.mainAxis,s=i===void 0?!0:i,l=e.altAxis,a=l===void 0?!1:l,r=e.boundary,d=e.rootBoundary,p=e.altBoundary,v=e.padding,b=e.tether,m=b===void 0?!0:b,g=e.tetherOffset,_=g===void 0?0:g,w=Ft(t,{boundary:r,rootBoundary:d,padding:v,altBoundary:p}),O=Y(t.placement),x=$t(t.placement),T=!x,y=dn(O),A=vl(y),S=t.modifiersData.popperOffsets,C=t.rects.reference,L=t.rects.popper,D=typeof _=="function"?_(Object.assign({},t.rects,{placement:t.placement})):_,k=typeof D=="number"?{mainAxis:D,altAxis:D}:Object.assign({mainAxis:0,altAxis:0},D),M=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,U={x:0,y:0};if(S){if(s){var $,ut=y==="y"?F:B,dt=y==="y"?P:H,R=y==="y"?"height":"width",q=S[y],te=q+w[ut],ht=q-w[dt],ee=m?-L[R]/2:0,ke=x===Et?C[R]:L[R],Vt=x===Et?-L[R]:-C[R],ne=t.elements.arrow,At=m&&ne?un(ne):{width:0,height:0},ot=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Io(),Jt=ot[ut],oe=ot[dt],mt=Ut(0,C[R],At[R]),De=T?C[R]/2-ee-mt-Jt-k.mainAxis:ke-mt-Jt-k.mainAxis,xi=T?-C[R]/2+ee+mt+oe+k.mainAxis:Vt+mt+oe+k.mainAxis,Ne=t.elements.arrow&&Kt(t.elements.arrow),Ti=Ne?y==="y"?Ne.clientTop||0:Ne.clientLeft||0:0,On=($=M==null?void 0:M[y])!=null?$:0,ki=q+De-On-Ti,Di=q+xi-On,Cn=Ut(m?fe(te,ki):te,q,m?gt(ht,Di):ht);S[y]=Cn,U[y]=Cn-q}if(a){var xn,Ni=y==="x"?F:B,Li=y==="x"?P:H,vt=S[A],ie=A==="y"?"height":"width",Tn=vt+w[Ni],kn=vt-w[Li],Le=[F,B].indexOf(O)!==-1,Dn=(xn=M==null?void 0:M[A])!=null?xn:0,Nn=Le?Tn:vt-C[ie]-L[ie]-Dn+k.altAxis,Ln=Le?vt+C[ie]+L[ie]-Dn-k.altAxis:kn,Mn=m&&Le?qs(Nn,vt,Ln):Ut(m?Nn:Tn,vt,m?Ln:kn);S[A]=Mn,U[A]=Mn-vt}t.modifiersData[o]=U}}const Uo={name:"preventOverflow",enabled:!0,phase:"main",fn:bl,requiresIfExists:["offset"]};function fl(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function gl(n){return n===j(n)||!V(n)?vn(n):fl(n)}function El(n){var t=n.getBoundingClientRect(),e=Lt(t.width)/n.offsetWidth||1,o=Lt(t.height)/n.offsetHeight||1;return e!==1||o!==1}function _l(n,t,e){e===void 0&&(e=!1);var o=V(t),i=V(t)&&El(t),s=rt(t),l=Mt(n,i,e),a={scrollLeft:0,scrollTop:0},r={x:0,y:0};return(o||!o&&!e)&&((Q(t)!=="body"||fn(s))&&(a=gl(t)),V(t)?(r=Mt(t,!0),r.x+=t.clientLeft,r.y+=t.clientTop):s&&(r.x=bn(s))),{x:l.left+a.scrollLeft-r.x,y:l.top+a.scrollTop-r.y,width:l.width,height:l.height}}function yl(n){var t=new Map,e=new Set,o=[];n.forEach(function(s){t.set(s.name,s)});function i(s){e.add(s.name);var l=[].concat(s.requires||[],s.requiresIfExists||[]);l.forEach(function(a){if(!e.has(a)){var r=t.get(a);r&&i(r)}}),o.push(s)}return n.forEach(function(s){e.has(s.name)||i(s)}),o}function wl(n){var t=yl(n);return $o.reduce(function(e,o){return e.concat(t.filter(function(i){return i.phase===o}))},[])}function Al(n){var t;return function(){return t||(t=new Promise(function(e){Promise.resolve().then(function(){t=void 0,e(n())})})),t}}function Sl(n){var t=n.reduce(function(e,o){var i=e[o.name];return e[o.name]=i?Object.assign({},i,o,{options:Object.assign({},i.options,o.options),data:Object.assign({},i.data,o.data)}):o,e},{});return Object.keys(t).map(function(e){return t[e]})}var Hn={placement:"bottom",modifiers:[],strategy:"absolute"};function jn(){for(var n=arguments.length,t=new Array(n),e=0;e(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),Nl=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),Ll=n=>{do n+=Math.floor(Math.random()*kl);while(document.getElementById(n));return n},Ml=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const o=Number.parseFloat(t),i=Number.parseFloat(e);return!o&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Dl)},Ko=n=>{n.dispatchEvent(new Event(tn))},Z=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),st=n=>Z(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(zo(n)):null,Pt=n=>{if(!Z(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const o=n.closest("summary");if(o&&o.parentNode!==e||o===null)return!1}return t},lt=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Yo=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Yo(n.parentNode):null},ge=()=>{},Yt=n=>{n.offsetHeight},Xo=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$e=[],$l=n=>{document.readyState==="loading"?($e.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of $e)t()}),$e.push(n)):n()},J=()=>document.documentElement.dir==="rtl",W=n=>{$l(()=>{const t=Xo();if(t){const e=n.NAME,o=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=o,n.jQueryInterface)}})},I=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,Qo=(n,t,e=!0)=>{if(!e){I(n);return}const o=5,i=Ml(t)+o;let s=!1;const l=({target:a})=>{a===t&&(s=!0,t.removeEventListener(tn,l),I(n))};t.addEventListener(tn,l),setTimeout(()=>{s||Ko(t)},i)},_n=(n,t,e,o)=>{const i=n.length;let s=n.indexOf(t);return s===-1?!e&&o?n[i-1]:n[0]:(s+=e?1:-1,o&&(s=(s+i)%i),n[Math.max(0,Math.min(s,i-1))])},Fl=/[^.]*(?=\..*)\.|.*/,Bl=/\..*/,Il=/::\d+$/,Fe={};let Vn=1;const Zo={mouseenter:"mouseover",mouseleave:"mouseout"},Rl=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 ti(n,t){return t&&`${t}::${Vn++}`||n.uidEvent||Vn++}function ei(n){const t=ti(n);return n.uidEvent=t,Fe[t]=Fe[t]||{},Fe[t]}function Pl(n,t){return function e(o){return yn(o,{delegateTarget:n}),e.oneOff&&c.off(n,o.type,t),t.apply(n,[o])}}function Hl(n,t,e){return function o(i){const s=n.querySelectorAll(t);for(let{target:l}=i;l&&l!==this;l=l.parentNode)for(const a of s)if(a===l)return yn(i,{delegateTarget:l}),o.oneOff&&c.off(n,i.type,t,e),e.apply(l,[i])}}function ni(n,t,e=null){return Object.values(n).find(o=>o.callable===t&&o.delegationSelector===e)}function oi(n,t,e){const o=typeof t=="string",i=o?e:t||e;let s=ii(n);return Rl.has(s)||(s=n),[o,i,s]}function Jn(n,t,e,o,i){if(typeof t!="string"||!n)return;let[s,l,a]=oi(t,e,o);t in Zo&&(l=(S=>function(E){if(!E.relatedTarget||E.relatedTarget!==E.delegateTarget&&!E.delegateTarget.contains(E.relatedTarget))return S.call(this,E)})(l));const r=ei(n),d=r[a]||(r[a]={}),p=ni(d,l,s?e:null);if(p){p.oneOff=p.oneOff&&i;return}const b=ti(l,t.replace(Fl,"")),m=s?Hl(n,e,l):Pl(n,l);m.delegationSelector=s?e:null,m.callable=l,m.oneOff=i,m.uidEvent=b,d[b]=m,n.addEventListener(a,m,s)}function en(n,t,e,o,i){const s=ni(t[e],o,i);s&&(n.removeEventListener(e,s,!!i),delete t[e][s.uidEvent])}function jl(n,t,e,o){const i=t[e]||{};for(const[s,l]of Object.entries(i))s.includes(o)&&en(n,t,e,l.callable,l.delegationSelector)}function ii(n){return n=n.replace(Bl,""),Zo[n]||n}const c={on(n,t,e,o){Jn(n,t,e,o,!1)},one(n,t,e,o){Jn(n,t,e,o,!0)},off(n,t,e,o){if(typeof t!="string"||!n)return;const[i,s,l]=oi(t,e,o),a=l!==t,r=ei(n),d=r[l]||{},p=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(d).length)return;en(n,r,l,s,i?e:null);return}if(p)for(const b of Object.keys(r))jl(n,r,b,t.slice(1));for(const[b,m]of Object.entries(d)){const v=b.replace(Il,"");(!a||t.includes(v))&&en(n,r,l,m.callable,m.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const o=Xo(),i=ii(t),s=t!==i;let l=null,a=!0,r=!0,d=!1;s&&o&&(l=o.Event(t,e),o(n).trigger(l),a=!l.isPropagationStopped(),r=!l.isImmediatePropagationStopped(),d=l.isDefaultPrevented());const p=yn(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&p.preventDefault(),r&&n.dispatchEvent(p),p.defaultPrevented&&l&&l.preventDefault(),p}};function yn(n,t={}){for(const[e,o]of Object.entries(t))try{n[e]=o}catch{Object.defineProperty(n,e,{configurable:!0,get(){return o}})}return n}function Gn(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Be(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const tt={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Be(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Be(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(const o of e){let i=o.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Gn(n.dataset[o])}return t},getDataAttribute(n,t){return Gn(n.getAttribute(`data-bs-${Be(t)}`))}};class Xt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const o=Z(e)?tt.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...Z(e)?tt.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,i]of Object.entries(e)){const s=t[o],l=Z(s)?"element":Nl(s);if(!new RegExp(i).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${i}".`)}}}const Vl="5.3.2";class K extends Xt{constructor(t,e){super(),t=st(t),t&&(this._element=t,this._config=this._getConfig(e),Me.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Me.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,o=!0){Qo(t,e,o)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Me.get(st(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Vl}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ie=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?zo(e.trim()):null}return t},f={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let o=n.parentNode.closest(t);for(;o;)e.push(o),o=o.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!lt(e)&&Pt(e))},getSelectorFromElement(n){const t=Ie(n);return t&&f.findOne(t)?t:null},getElementFromSelector(n){const t=Ie(n);return t?f.findOne(t):null},getMultipleElementsFromSelector(n){const t=Ie(n);return t?f.find(t):[]}},Se=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,o=n.NAME;c.on(document,e,`[data-bs-dismiss="${o}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),lt(this))return;const s=f.getElementFromSelector(this)||this.closest(`.${o}`);n.getOrCreateInstance(s)[t]()})},Jl="alert",Gl="bs.alert",si=`.${Gl}`,Wl=`close${si}`,Ul=`closed${si}`,ql="fade",zl="show";class Oe extends K{static get NAME(){return Jl}close(){if(c.trigger(this._element,Wl).defaultPrevented)return;this._element.classList.remove(zl);const e=this._element.classList.contains(ql);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,Ul),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Oe.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Se(Oe,"close");W(Oe);const Kl="button",Yl="bs.button",Xl=`.${Yl}`,Ql=".data-api",Zl="active",Wn='[data-bs-toggle="button"]',ta=`click${Xl}${Ql}`;class Ce extends K{static get NAME(){return Kl}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Zl))}static jQueryInterface(t){return this.each(function(){const e=Ce.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}c.on(document,ta,Wn,n=>{n.preventDefault();const t=n.target.closest(Wn);Ce.getOrCreateInstance(t).toggle()});W(Ce);const ea="swipe",Ht=".bs.swipe",na=`touchstart${Ht}`,oa=`touchmove${Ht}`,ia=`touchend${Ht}`,sa=`pointerdown${Ht}`,la=`pointerup${Ht}`,aa="touch",ra="pen",pa="pointer-event",ca=40,ua={endCallback:null,leftCallback:null,rightCallback:null},da={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ee extends Xt{constructor(t,e){super(),this._element=t,!(!t||!Ee.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ua}static get DefaultType(){return da}static get NAME(){return ea}dispose(){c.off(this._element,Ht)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=ca)return;const e=t/this._deltaX;this._deltaX=0,e&&I(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(c.on(this._element,sa,t=>this._start(t)),c.on(this._element,la,t=>this._end(t)),this._element.classList.add(pa)):(c.on(this._element,na,t=>this._start(t)),c.on(this._element,oa,t=>this._move(t)),c.on(this._element,ia,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===ra||t.pointerType===aa)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ha="carousel",ma="bs.carousel",pt=`.${ma}`,li=".data-api",va="ArrowLeft",ba="ArrowRight",fa=500,Gt="next",St="prev",Tt="left",ve="right",ga=`slide${pt}`,Re=`slid${pt}`,Ea=`keydown${pt}`,_a=`mouseenter${pt}`,ya=`mouseleave${pt}`,wa=`dragstart${pt}`,Aa=`load${pt}${li}`,Sa=`click${pt}${li}`,ai="carousel",le="active",Oa="slide",Ca="carousel-item-end",xa="carousel-item-start",Ta="carousel-item-next",ka="carousel-item-prev",ri=".active",pi=".carousel-item",Da=ri+pi,Na=".carousel-item img",La=".carousel-indicators",Ma="[data-bs-slide], [data-bs-slide-to]",$a='[data-bs-ride="carousel"]',Fa={[va]:ve,[ba]:Tt},Ba={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ia={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qt extends K{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(La,this._element),this._addEventListeners(),this._config.ride===ai&&this.cycle()}static get Default(){return Ba}static get DefaultType(){return Ia}static get NAME(){return ha}next(){this._slide(Gt)}nextWhenVisible(){!document.hidden&&Pt(this._element)&&this.next()}prev(){this._slide(St)}pause(){this._isSliding&&Ko(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){c.one(this._element,Re,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){c.one(this._element,Re,()=>this.to(t));return}const o=this._getItemIndex(this._getActive());if(o===t)return;const i=t>o?Gt:St;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&c.on(this._element,Ea,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,_a,()=>this.pause()),c.on(this._element,ya,()=>this._maybeEnableCycle())),this._config.touch&&Ee.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of f.find(Na,this._element))c.on(o,wa,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Tt)),rightCallback:()=>this._slide(this._directionToOrder(ve)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fa+this._config.interval))}};this._swipeHelper=new Ee(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Fa[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=f.findOne(ri,this._indicatorsElement);e.classList.remove(le),e.removeAttribute("aria-current");const o=f.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);o&&(o.classList.add(le),o.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const o=this._getActive(),i=t===Gt,s=e||_n(this._getItems(),o,i,this._config.wrap);if(s===o)return;const l=this._getItemIndex(s),a=v=>c.trigger(this._element,v,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:l});if(a(ga).defaultPrevented||!o||!s)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=s;const p=i?xa:Ca,b=i?Ta:ka;s.classList.add(b),Yt(s),o.classList.add(p),s.classList.add(p);const m=()=>{s.classList.remove(p,b),s.classList.add(le),o.classList.remove(le,b,p),this._isSliding=!1,a(Re)};this._queueCallback(m,o,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Oa)}_getActive(){return f.findOne(Da,this._element)}_getItems(){return f.find(pi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return J()?t===Tt?St:Gt:t===Tt?Gt:St}_orderToDirection(t){return J()?t===St?Tt:ve:t===St?ve:Tt}static jQueryInterface(t){return this.each(function(){const e=Qt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,Sa,Ma,function(n){const t=f.getElementFromSelector(this);if(!t||!t.classList.contains(ai))return;n.preventDefault();const e=Qt.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");if(o){e.to(o),e._maybeEnableCycle();return}if(tt.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});c.on(window,Aa,()=>{const n=f.find($a);for(const t of n)Qt.getOrCreateInstance(t)});W(Qt);const Ra="collapse",Pa="bs.collapse",Zt=`.${Pa}`,Ha=".data-api",ja=`show${Zt}`,Va=`shown${Zt}`,Ja=`hide${Zt}`,Ga=`hidden${Zt}`,Wa=`click${Zt}${Ha}`,Pe="show",Dt="collapse",ae="collapsing",Ua="collapsed",qa=`:scope .${Dt} .${Dt}`,za="collapse-horizontal",Ka="width",Ya="height",Xa=".collapse.show, .collapse.collapsing",nn='[data-bs-toggle="collapse"]',Qa={parent:null,toggle:!0},Za={parent:"(null|element)",toggle:"boolean"};class zt extends K{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const o=f.find(nn);for(const i of o){const s=f.getSelectorFromElement(i),l=f.find(s).filter(a=>a===this._element);s!==null&&l.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Qa}static get DefaultType(){return Za}static get NAME(){return Ra}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Xa).filter(a=>a!==this._element).map(a=>zt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||c.trigger(this._element,ja).defaultPrevented)return;for(const a of t)a.hide();const o=this._getDimension();this._element.classList.remove(Dt),this._element.classList.add(ae),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ae),this._element.classList.add(Dt,Pe),this._element.style[o]="",c.trigger(this._element,Va)},l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,Ja).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yt(this._element),this._element.classList.add(ae),this._element.classList.remove(Dt,Pe);for(const i of this._triggerArray){const s=f.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(ae),this._element.classList.add(Dt),c.trigger(this._element,Ga)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Pe)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=st(t.parent),t}_getDimension(){return this._element.classList.contains(za)?Ka:Ya}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(nn);for(const e of t){const o=f.getElementFromSelector(e);o&&this._addAriaAndCollapsedClass([e],this._isShown(o))}}_getFirstLevelChildren(t){const e=f.find(qa,this._config.parent);return f.find(t,this._config.parent).filter(o=>!e.includes(o))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const o of t)o.classList.toggle(Ua,!e),o.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const o=zt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}}c.on(document,Wa,nn,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of f.getMultipleElementsFromSelector(this))zt.getOrCreateInstance(t,{toggle:!1}).toggle()});W(zt);const Un="dropdown",tr="bs.dropdown",yt=`.${tr}`,wn=".data-api",er="Escape",qn="Tab",nr="ArrowUp",zn="ArrowDown",or=2,ir=`hide${yt}`,sr=`hidden${yt}`,lr=`show${yt}`,ar=`shown${yt}`,ci=`click${yt}${wn}`,ui=`keydown${yt}${wn}`,rr=`keyup${yt}${wn}`,kt="show",pr="dropup",cr="dropend",ur="dropstart",dr="dropup-center",hr="dropdown-center",bt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mr=`${bt}.${kt}`,be=".dropdown-menu",vr=".navbar",br=".navbar-nav",fr=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gr=J()?"top-end":"top-start",Er=J()?"top-start":"top-end",_r=J()?"bottom-end":"bottom-start",yr=J()?"bottom-start":"bottom-end",wr=J()?"left-start":"right-start",Ar=J()?"right-start":"left-start",Sr="top",Or="bottom",Cr={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},xr={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class X extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,be)[0]||f.prev(this._element,be)[0]||f.findOne(be,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Cr}static get DefaultType(){return xr}static get NAME(){return Un}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!c.trigger(this._element,lr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(br))for(const o of[].concat(...document.body.children))c.on(o,"mouseover",ge);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(kt),this._element.classList.add(kt),c.trigger(this._element,ar,t)}}hide(){if(lt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!c.trigger(this._element,ir,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))c.off(o,"mouseover",ge);this._popper&&this._popper.destroy(),this._menu.classList.remove(kt),this._element.classList.remove(kt),this._element.setAttribute("aria-expanded","false"),tt.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,sr,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Z(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Un.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof qo>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Z(this._config.reference)?t=st(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=En(t,this._menu,e)}_isShown(){return this._menu.classList.contains(kt)}_getPlacement(){const t=this._parent;if(t.classList.contains(cr))return wr;if(t.classList.contains(ur))return Ar;if(t.classList.contains(dr))return Sr;if(t.classList.contains(hr))return Or;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(pr)?e?Er:gr:e?yr:_r}_detectNavbar(){return this._element.closest(vr)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(tt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...I(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const o=f.find(fr,this._menu).filter(i=>Pt(i));o.length&&_n(o,e,t===zn,!o.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=X.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===or||t.type==="keyup"&&t.key!==qn)return;const e=f.find(mr);for(const o of e){const i=X.getInstance(o);if(!i||i._config.autoClose===!1)continue;const s=t.composedPath(),l=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!l||i._config.autoClose==="outside"&&l||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===qn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),o=t.key===er,i=[nr,zn].includes(t.key);if(!i&&!o||e&&!o)return;t.preventDefault();const s=this.matches(bt)?this:f.prev(this,bt)[0]||f.next(this,bt)[0]||f.findOne(bt,t.delegateTarget.parentNode),l=X.getOrCreateInstance(s);if(i){t.stopPropagation(),l.show(),l._selectMenuItem(t);return}l._isShown()&&(t.stopPropagation(),l.hide(),s.focus())}}c.on(document,ui,bt,X.dataApiKeydownHandler);c.on(document,ui,be,X.dataApiKeydownHandler);c.on(document,ci,X.clearMenus);c.on(document,rr,X.clearMenus);c.on(document,ci,bt,function(n){n.preventDefault(),X.getOrCreateInstance(this).toggle()});W(X);const di="backdrop",Tr="fade",Kn="show",Yn=`mousedown.bs.${di}`,kr={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Dr={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class hi extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return kr}static get DefaultType(){return Dr}static get NAME(){return di}show(t){if(!this._config.isVisible){I(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Yt(e),e.classList.add(Kn),this._emulateAnimation(()=>{I(t)})}hide(t){if(!this._config.isVisible){I(t);return}this._getElement().classList.remove(Kn),this._emulateAnimation(()=>{this.dispose(),I(t)})}dispose(){this._isAppended&&(c.off(this._element,Yn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Tr),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=st(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),c.on(t,Yn,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Qo(t,this._getElement(),this._config.isAnimated)}}const Nr="focustrap",Lr="bs.focustrap",_e=`.${Lr}`,Mr=`focusin${_e}`,$r=`keydown.tab${_e}`,Fr="Tab",Br="forward",Xn="backward",Ir={autofocus:!0,trapElement:null},Rr={autofocus:"boolean",trapElement:"element"};class mi extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ir}static get DefaultType(){return Rr}static get NAME(){return Nr}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),c.off(document,_e),c.on(document,Mr,t=>this._handleFocusin(t)),c.on(document,$r,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,c.off(document,_e))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const o=f.focusableChildren(e);o.length===0?e.focus():this._lastTabNavDirection===Xn?o[o.length-1].focus():o[0].focus()}_handleKeydown(t){t.key===Fr&&(this._lastTabNavDirection=t.shiftKey?Xn:Br)}}const Qn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Zn=".sticky-top",re="padding-right",to="margin-right";class on{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,re,e=>e+t),this._setElementAttributes(Qn,re,e=>e+t),this._setElementAttributes(Zn,to,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,re),this._resetElementAttributes(Qn,re),this._resetElementAttributes(Zn,to)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,o){const i=this.getWidth(),s=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+i)return;this._saveInitialAttribute(l,e);const a=window.getComputedStyle(l).getPropertyValue(e);l.style.setProperty(e,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,e){const o=t.style.getPropertyValue(e);o&&tt.setDataAttribute(t,e,o)}_resetElementAttributes(t,e){const o=i=>{const s=tt.getDataAttribute(i,e);if(s===null){i.style.removeProperty(e);return}tt.removeDataAttribute(i,e),i.style.setProperty(e,s)};this._applyManipulationCallback(t,o)}_applyManipulationCallback(t,e){if(Z(t)){e(t);return}for(const o of f.find(t,this._element))e(o)}}const Pr="modal",Hr="bs.modal",G=`.${Hr}`,jr=".data-api",Vr="Escape",Jr=`hide${G}`,Gr=`hidePrevented${G}`,vi=`hidden${G}`,bi=`show${G}`,Wr=`shown${G}`,Ur=`resize${G}`,qr=`click.dismiss${G}`,zr=`mousedown.dismiss${G}`,Kr=`keydown.dismiss${G}`,Yr=`click${G}${jr}`,eo="modal-open",Xr="fade",no="show",He="modal-static",Qr=".modal.show",Zr=".modal-dialog",tp=".modal-body",ep='[data-bs-toggle="modal"]',np={backdrop:!0,focus:!0,keyboard:!0},op={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Bt extends K{constructor(t,e){super(t,e),this._dialog=f.findOne(Zr,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new on,this._addEventListeners()}static get Default(){return np}static get DefaultType(){return op}static get NAME(){return Pr}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,bi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(eo),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||c.trigger(this._element,Jr).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(no),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){c.off(window,G),c.off(this._dialog,G),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hi({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=f.findOne(tp,this._dialog);e&&(e.scrollTop=0),Yt(this._element),this._element.classList.add(no);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,Wr,{relatedTarget:t})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){c.on(this._element,Kr,t=>{if(t.key===Vr){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),c.on(window,Ur,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.on(this._element,zr,t=>{c.one(this._element,qr,e=>{if(!(this._element!==t.target||this._element!==e.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(eo),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,vi)})}_isAnimated(){return this._element.classList.contains(Xr)}_triggerBackdropTransition(){if(c.trigger(this._element,Gr).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(He)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(He),this._queueCallback(()=>{this._element.classList.remove(He),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),o=e>0;if(o&&!t){const i=J()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!o&&t){const i=J()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const o=Bt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t](e)}})}}c.on(document,Yr,ep,function(n){const t=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),c.one(t,bi,i=>{i.defaultPrevented||c.one(t,vi,()=>{Pt(this)&&this.focus()})});const e=f.findOne(Qr);e&&Bt.getInstance(e).hide(),Bt.getOrCreateInstance(t).toggle(this)});Se(Bt);W(Bt);const ip="offcanvas",sp="bs.offcanvas",nt=`.${sp}`,fi=".data-api",lp=`load${nt}${fi}`,ap="Escape",oo="show",io="showing",so="hiding",rp="offcanvas-backdrop",gi=".offcanvas.show",pp=`show${nt}`,cp=`shown${nt}`,up=`hide${nt}`,lo=`hidePrevented${nt}`,Ei=`hidden${nt}`,dp=`resize${nt}`,hp=`click${nt}${fi}`,mp=`keydown.dismiss${nt}`,vp='[data-bs-toggle="offcanvas"]',bp={backdrop:!0,keyboard:!0,scroll:!1},fp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class at extends K{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return bp}static get DefaultType(){return fp}static get NAME(){return ip}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,pp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new on().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(io);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(oo),this._element.classList.remove(io),c.trigger(this._element,cp,{relatedTarget:t})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,up).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(so),this._backdrop.hide();const e=()=>{this._element.classList.remove(oo,so),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new on().reset(),c.trigger(this._element,Ei)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){c.trigger(this._element,lo);return}this.hide()},e=!!this._config.backdrop;return new hi({className:rp,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_addEventListeners(){c.on(this._element,mp,t=>{if(t.key===ap){if(this._config.keyboard){this.hide();return}c.trigger(this._element,lo)}})}static jQueryInterface(t){return this.each(function(){const e=at.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}c.on(document,hp,vp,function(n){const t=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),lt(this))return;c.one(t,Ei,()=>{Pt(this)&&this.focus()});const e=f.findOne(gi);e&&e!==t&&at.getInstance(e).hide(),at.getOrCreateInstance(t).toggle(this)});c.on(window,lp,()=>{for(const n of f.find(gi))at.getOrCreateInstance(n).show()});c.on(window,dp,()=>{for(const n of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&at.getOrCreateInstance(n).hide()});Se(at);W(at);const gp=/^aria-[\w-]*$/i,_i={"*":["class","dir","id","lang","role",gp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ep=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),_p=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,yp=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?Ep.has(e)?!!_p.test(n.nodeValue):!0:t.filter(o=>o instanceof RegExp).some(o=>o.test(e))};function wp(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const i=new window.DOMParser().parseFromString(n,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const l of s){const a=l.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){l.remove();continue}const r=[].concat(...l.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const p of r)yp(p,d)||l.removeAttribute(p.nodeName)}return i.body.innerHTML}const Ap="TemplateFactory",Sp={allowList:_i,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
"},Op={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Cp={entry:"(string|element|function|null)",selector:"(string|element)"};class xp extends Xt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Sp}static get DefaultType(){return Op}static get NAME(){return Ap}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(t,s,i);const e=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&e.classList.add(...o.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,o]of Object.entries(t))super._typeCheckConfig({selector:e,entry:o},Cp)}_setContent(t,e,o){const i=f.findOne(o,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(Z(e)){this._putElementInTemplate(st(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?wp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return I(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Tp="tooltip",kp=new Set(["sanitize","allowList","sanitizeFn"]),je="fade",Dp="modal",pe="show",Np=".tooltip-inner",ao=`.${Dp}`,ro="hide.bs.modal",Wt="hover",Ve="focus",Lp="click",Mp="manual",$p="hide",Fp="hidden",Bp="show",Ip="shown",Rp="inserted",Pp="click",Hp="focusin",jp="focusout",Vp="mouseenter",Jp="mouseleave",Gp={AUTO:"auto",TOP:"top",RIGHT:J()?"left":"right",BOTTOM:"bottom",LEFT:J()?"right":"left"},Wp={allowList:_i,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:'',title:"",trigger:"hover focus"},Up={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class jt extends K{constructor(t,e){if(typeof qo>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Wp}static get DefaultType(){return Up}static get NAME(){return Tp}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),c.off(this._element.closest(ao),ro,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;const t=c.trigger(this._element,this.constructor.eventName(Bp)),o=(Yo(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),c.trigger(this._element,this.constructor.eventName(Rp))),this._popper=this._createPopper(i),i.classList.add(pe),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))c.on(a,"mouseover",ge);const l=()=>{c.trigger(this._element,this.constructor.eventName(Ip)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||c.trigger(this._element,this.constructor.eventName($p)).defaultPrevented)return;if(this._getTipElement().classList.remove(pe),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))c.off(i,"mouseover",ge);this._activeTrigger[Lp]=!1,this._activeTrigger[Ve]=!1,this._activeTrigger[Wt]=!1,this._isHovered=null;const o=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.eventName(Fp)))};this._queueCallback(o,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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(je,pe),e.classList.add(`bs-${this.constructor.NAME}-auto`);const o=Ll(this.constructor.NAME).toString();return e.setAttribute("id",o),this._isAnimated()&&e.classList.add(je),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new xp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Np]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(je)}_isShown(){return this.tip&&this.tip.classList.contains(pe)}_createPopper(t){const e=I(this._config.placement,[this,t,this._element]),o=Gp[e.toUpperCase()];return En(this._element,t,this._getPopperConfig(o))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return I(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...e,...I(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")c.on(this._element,this.constructor.eventName(Pp),this._config.selector,o=>{this._initializeOnDelegatedTarget(o).toggle()});else if(e!==Mp){const o=e===Wt?this.constructor.eventName(Vp):this.constructor.eventName(Hp),i=e===Wt?this.constructor.eventName(Jp):this.constructor.eventName(jp);c.on(this._element,o,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusin"?Ve:Wt]=!0,l._enter()}),c.on(this._element,i,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusout"?Ve:Wt]=l._element.contains(s.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(ao),ro,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=tt.getDataAttributes(this._element);for(const o of Object.keys(e))kp.has(o)&&delete e[o];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:st(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,o]of Object.entries(this._config))this.constructor.Default[e]!==o&&(t[e]=o);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=jt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(jt);const qp="popover",zp=".popover-header",Kp=".popover-body",Yp={...jt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Xp={...jt.DefaultType,content:"(null|string|element|function)"};class An extends jt{static get Default(){return Yp}static get DefaultType(){return Xp}static get NAME(){return qp}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[zp]:this._getTitle(),[Kp]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=An.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(An);const Qp="scrollspy",Zp="bs.scrollspy",Sn=`.${Zp}`,tc=".data-api",ec=`activate${Sn}`,po=`click${Sn}`,nc=`load${Sn}${tc}`,oc="dropdown-item",Ot="active",ic='[data-bs-spy="scroll"]',Je="[href]",sc=".nav, .list-group",co=".nav-link",lc=".nav-item",ac=".list-group-item",rc=`${co}, ${lc} > ${co}, ${ac}`,pc=".dropdown",cc=".dropdown-toggle",uc={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},dc={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class xe extends K{constructor(t,e){super(t,e),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 uc}static get DefaultType(){return dc}static get NAME(){return Qp}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=st(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(c.off(this._config.target,po),c.on(this._config.target,po,Je,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const o=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:i,behavior:"smooth"});return}o.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=l=>this._targetLinks.get(`#${l.target.id}`),o=l=>{this._previousScrollData.visibleEntryTop=l.target.offsetTop,this._process(e(l))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const l of t){if(!l.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(l));continue}const a=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(o(l),!i)return;continue}!s&&!a&&o(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=f.find(Je,this._config.target);for(const e of t){if(!e.hash||lt(e))continue;const o=f.findOne(decodeURI(e.hash),this._element);Pt(o)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,o))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ot),this._activateParents(t),c.trigger(this._element,ec,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(oc)){f.findOne(cc,t.closest(pc)).classList.add(Ot);return}for(const e of f.parents(t,sc))for(const o of f.prev(e,rc))o.classList.add(Ot)}_clearActiveClass(t){t.classList.remove(Ot);const e=f.find(`${Je}.${Ot}`,t);for(const o of e)o.classList.remove(Ot)}static jQueryInterface(t){return this.each(function(){const e=xe.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(window,nc,()=>{for(const n of f.find(ic))xe.getOrCreateInstance(n)});W(xe);const hc="tab",mc="bs.tab",wt=`.${mc}`,vc=`hide${wt}`,bc=`hidden${wt}`,fc=`show${wt}`,gc=`shown${wt}`,Ec=`click${wt}`,_c=`keydown${wt}`,yc=`load${wt}`,wc="ArrowLeft",uo="ArrowRight",Ac="ArrowUp",ho="ArrowDown",Ge="Home",mo="End",ft="active",vo="fade",We="show",Sc="dropdown",yi=".dropdown-toggle",Oc=".dropdown-menu",Ue=`:not(${yi})`,Cc='.list-group, .nav, [role="tablist"]',xc=".nav-item, .list-group-item",Tc=`.nav-link${Ue}, .list-group-item${Ue}, [role="tab"]${Ue}`,wi='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qe=`${Tc}, ${wi}`,kc=`.${ft}[data-bs-toggle="tab"], .${ft}[data-bs-toggle="pill"], .${ft}[data-bs-toggle="list"]`;class It extends K{constructor(t){super(t),this._parent=this._element.closest(Cc),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),c.on(this._element,_c,e=>this._keydown(e)))}static get NAME(){return hc}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),o=e?c.trigger(e,vc,{relatedTarget:t}):null;c.trigger(t,fc,{relatedTarget:e}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ft),this._activate(f.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(We);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),c.trigger(t,gc,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(vo))}_deactivate(t,e){if(!t)return;t.classList.remove(ft),t.blur(),this._deactivate(f.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(We);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),c.trigger(t,bc,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(vo))}_keydown(t){if(![wc,uo,Ac,ho,Ge,mo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(i=>!lt(i));let o;if([Ge,mo].includes(t.key))o=e[t.key===Ge?0:e.length-1];else{const i=[uo,ho].includes(t.key);o=_n(e,t.target,i,!0)}o&&(o.focus({preventScroll:!0}),It.getOrCreateInstance(o).show())}_getChildren(){return f.find(qe,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const o of e)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),o=this._getOuterElement(t);t.setAttribute("aria-selected",e),o!==t&&this._setAttributeIfNotExists(o,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=f.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const o=this._getOuterElement(t);if(!o.classList.contains(Sc))return;const i=(s,l)=>{const a=f.findOne(s,o);a&&a.classList.toggle(l,e)};i(yi,ft),i(Oc,We),o.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,o){t.hasAttribute(e)||t.setAttribute(e,o)}_elemIsActive(t){return t.classList.contains(ft)}_getInnerElement(t){return t.matches(qe)?t:f.findOne(qe,t)}_getOuterElement(t){return t.closest(xc)||t}static jQueryInterface(t){return this.each(function(){const e=It.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,Ec,wi,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!lt(this)&&It.getOrCreateInstance(this).show()});c.on(window,yc,()=>{for(const n of f.find(kc))It.getOrCreateInstance(n)});W(It);const Dc="toast",Nc="bs.toast",ct=`.${Nc}`,Lc=`mouseover${ct}`,Mc=`mouseout${ct}`,$c=`focusin${ct}`,Fc=`focusout${ct}`,Bc=`hide${ct}`,Ic=`hidden${ct}`,Rc=`show${ct}`,Pc=`shown${ct}`,Hc="fade",bo="hide",ce="show",ue="showing",jc={animation:"boolean",autohide:"boolean",delay:"number"},Vc={animation:!0,autohide:!0,delay:5e3};class Te extends K{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Vc}static get DefaultType(){return jc}static get NAME(){return Dc}show(){if(c.trigger(this._element,Rc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Hc);const e=()=>{this._element.classList.remove(ue),c.trigger(this._element,Pc),this._maybeScheduleHide()};this._element.classList.remove(bo),Yt(this._element),this._element.classList.add(ce,ue),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||c.trigger(this._element,Bc).defaultPrevented)return;const e=()=>{this._element.classList.add(bo),this._element.classList.remove(ue,ce),c.trigger(this._element,Ic)};this._element.classList.add(ue),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ce),super.dispose()}isShown(){return this._element.classList.contains(ce)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const o=t.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,Lc,t=>this._onInteraction(t,!0)),c.on(this._element,Mc,t=>this._onInteraction(t,!1)),c.on(this._element,$c,t=>this._onInteraction(t,!0)),c.on(this._element,Fc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Te.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Se(Te);W(Te);var Jc=Object.defineProperty,Gc=(n,t,e)=>t in n?Jc(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,g=(n,t,e)=>(Gc(n,typeof t!="symbol"?t+"":t,e),e),Wc=class{constructor(n){g(this,"_distinctEvent"),g(this,"_boundedEvents",[]),this._distinctEvent=(n==null?void 0:n.distinctEvent)??!1}get boundedEvents(){return this._boundedEvents}dispose(){this.unbindAll(),this._boundedEvents=[]}bind(n,t,e,o){let i=Array.isArray(t)?t:[t];if(n!=null&&n.forEach)n==null||n.forEach(s=>{for(let l of i)(!this._distinctEvent||this._distinctEvent&&!this.hasBinding(s,l))&&(s.addEventListener(l,e,o),this._boundedEvents.push({element:s,eventName:l,listener:e}))});else for(let s of i)(!this._distinctEvent||this._distinctEvent&&!this.hasBinding(n,s))&&(n.addEventListener(s,e,o),this._boundedEvents.push({element:n,eventName:s,listener:e}))}hasBinding(n,t){return this._boundedEvents.some(e=>e.element===n&&(!t||e.eventName===t))}unbind(n,t,e){var o;if(n){let i=Array.isArray(n)?n:[n],s=Array.isArray(t)?t||"":[t||""];for(let l of i){e||(e=this._boundedEvents.find(a=>{if(a.element===l&&(!t||a.eventName===t))return a.listener}));for(let a of s)(o=l==null?void 0:l.removeEventListener)==null||o.call(l,a,e)}}}unbindAll(){for(;this._boundedEvents.length>0;){let n=this._boundedEvents.pop(),{element:t,eventName:e,listener:o}=n;this.unbind(t,e,o)}}},Ai=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};Ai.locales={"en-US":{formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(n,t){return`${n} of ${t} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}}};var Si=Ai.locales,Uc=50,qc=4,Oi={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter(n){let{text:t,label:e,search:o}=n;return(e||t||"").includes(o)},showClear:!1,autoAdjustDropHeight:!1,autoAdjustDropPosition:!1,autoAdjustDropWidthByTextSize:!1,adjustedHeightPadding:10,useSelectOptionLabel:!1,useSelectOptionLabelToHtml:!1,styler:()=>!1,textTemplate:n=>n.innerHTML.trim(),labelTemplate:n=>n.label,onOpen:()=>!1,onClose:()=>!1,onCheckAll:()=>!1,onUncheckAll:()=>!1,onFocus:()=>!1,onBlur:()=>!1,onOptgroupClick:()=>!1,onClick:()=>!1,onFilter:()=>!1,onClear:()=>!1,onAfterCreate:()=>!1,onDestroy:()=>!1,onAfterDestroy:()=>!1,onDestroyed:()=>!1},zc=["init","getOptions","refreshOptions","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"];Object.assign(Oi,Si["en-US"]);var Kc={BLOCK_ROWS:Uc,CLUSTER_BLOCKS:qc,DEFAULTS:Oi,METHODS:zc},z=Kc,Yc=class{constructor(n){var e;g(this,"cache"),g(this,"clusterRows"),g(this,"dataStart"),g(this,"dataEnd"),g(this,"rows"),g(this,"scrollEl"),g(this,"blockHeight"),g(this,"clusterHeight"),g(this,"contentEl"),g(this,"parentEl"),g(this,"itemHeight"),g(this,"lastCluster"),g(this,"scrollTop"),g(this,"destroy"),g(this,"callback"),g(this,"sanitizer"),this.rows=n.rows,this.scrollEl=n.scrollEl,this.contentEl=n.contentEl,this.parentEl=(e=n.contentEl)==null?void 0:e.parentElement,this.callback=n.callback,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;let t=()=>{this.lastCluster!==(this.lastCluster=this.getNum())&&(this.initDOM(this.rows),this.callback())};this.scrollEl.addEventListener("scroll",t,!1),this.destroy=()=>{this.contentEl.innerHTML="",this.scrollEl.removeEventListener("scroll",t,!1)}}initDOM(n){if(typeof this.clusterHeight>"u"){this.cache.scrollTop=this.scrollEl.scrollTop;let a=n[0]+n[0]+n[0];this.contentEl.innerHTML=this.sanitizer?this.sanitizer(`${a}`):`${a}`,this.cache.data=a,this.getRowsHeight()}let t=this.initData(n,this.getNum()),e=t.rows.join(""),o=this.checkChanges("data",e),i=this.checkChanges("top",t.topOffset),s=this.checkChanges("bottom",t.bottomOffset),l=[];o&&i?(t.topOffset&&l.push(this.getExtra("top",t.topOffset)),l.push(e),t.bottomOffset&&l.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=this.sanitizer?this.sanitizer(l.join("")):l.join("")):s&&this.contentEl.lastChild&&(this.contentEl.lastChild.style.height=`${t.bottomOffset}px`)}getRowsHeight(){var n;if(typeof this.itemHeight>"u"){let t=((n=this.parentEl)==null?void 0:n.style.display)||"";this.parentEl&&(t===""||t==="none")&&(this.parentEl.style.display="block");let e=this.contentEl.children,o=e[Math.floor(e.length/2)];this.itemHeight=o.offsetHeight,this.parentEl&&(this.parentEl.style.display=t)}this.blockHeight=this.itemHeight*z.BLOCK_ROWS,this.clusterRows=z.BLOCK_ROWS*z.CLUSTER_BLOCKS,this.clusterHeight=this.blockHeight*z.CLUSTER_BLOCKS}getNum(){this.scrollTop=this.scrollEl.scrollTop;let n=(this.clusterHeight||0)-(this.blockHeight||0);return n&&Math.floor(this.scrollTop/n)||0}initData(n,t){if(n.length{let s=t[i];typeof s=="object"?Object.assign(o[i],s):o[i]=t[i]}),e&&e.appendChild&&e.appendChild(o),o}function sn(n){var l;if(!n)return;let t=(l=n==null?void 0:n.getBoundingClientRect)==null?void 0:l.call(n),e=0,o=0,i=0,s=0;return(t==null?void 0:t.top)!==void 0&&t.left!==void 0&&(e=t.top+window.pageYOffset,o=t.left+window.pageXOffset,s=t.right,i=t.bottom),{top:e,left:o,bottom:i,right:s}}function de(n,t,e){let o=parseFloat(n.style[e]);if(!o||isNaN(o)){switch(t){case"outer":o=n[e==="width"?"offsetWidth":"offsetHeight"];break;case"scroll":o=n[e==="width"?"scrollWidth":"scrollHeight"];break;case"inner":default:o=n[e==="width"?"clientWidth":"clientHeight"];break}o=n.getBoundingClientRect()[e]}if(!o||isNaN(o)){let i=n.style.display,s=n.style.position;n.style.display="block",n.style.position="absolute";let l=window.getComputedStyle(n)[e];o=parseFloat(l),isNaN(o)&&(o=0),n.style.display=i,n.style.position=s}return o||0}function fo(n,t){let e=null,o=n==null?void 0:n.parentElement;for(;o;){let[i,s,l,a]=t.match(/^([a-z]*)([#.]{1})([a-z\-]+)$/i)||[];if(l&&a)for(let r of a.replace(l,"").split(" "))o.classList.contains(r)&&(s?(o==null?void 0:o.tagName.toLowerCase())===s&&(e=o):e=o);o=o.parentElement}return e}function Xc(n,t){var e;(e=n.parentNode)==null||e.insertBefore(t,n.nextSibling)}function go(n){let t=typeof n=="string"?n:String(n),e={"&":"&","<":"<",">":">",'"':""","'":"'"};return(t||"").toString().replace(/[&<>"']/g,o=>e[o])}function Eo(n,t){n!=null&&n.style&&(n.style.display=n.style.display==="none"&&t!==!1||t===!0?"block":"none")}function Qc(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}function Zc(n,t,e=!1){let o=Object.keys(n),i=Object.keys(t);if(e&&o.length!==i.length)return!1;for(let s of o)if(i.includes(s)&&n[s]!==t[s])return!1;return!0}function ln(n){let t=()=>{let i={};for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=ln(n[s]));return i},e=()=>n.map(i=>ln(i)),o=Object.prototype.toString.call(n).slice(8,-1).toLowerCase();return o==="object"?t():o==="array"?e():n}function tu(n){let t=0;return n.forEach((e,o)=>{e.type==="optgroup"?(e._key=`group_${o}`,e.visible=typeof e.visible>"u"?!0:e.visible,e.children.forEach((i,s)=>{i&&(i.visible=typeof(i==null?void 0:i.visible)>"u"?!0:i.visible,i.divider||(i._key=`option_${o}_${s}`,t+=1))})):(e.visible=typeof e.visible>"u"?!0:e.visible,e.divider||(e._key=`option_${o}`,t+=1))}),t}function he(n,t,e){if(Array.isArray(n))for(let o of n){if(o[t]===e||o[t]===`${+o[t]}`&&+o[t]===e)return o;if(o.type==="optgroup"){for(let i of o.children)if(i&&(i[t]===e||i[t]===`${+i[t]}`&&+i[t]===e))return i}}}function eu(n){var i;let t=document.createElement("div");t.innerHTML=n;let e=t.getElementsByTagName("script"),o=e.length;for(;o--;)(i=e[o].parentNode)==null||i.removeChild(e[o]);return t.innerHTML}function Ke(n){return Object.keys(n).forEach(t=>n[t]===void 0?delete n[t]:""),n}function Ct(n){return typeof n!="string"?n:n.normalize?n.normalize("NFD").replace(/[\u0300-\u036F]/g,""):[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((t,{letters:e,base:o})=>t.replace(e,o),n)}var nu=class{constructor(n,t){this.elm=n,g(this,"_bindEventService"),g(this,"allSelected",!1),g(this,"fromHtml",!1),g(this,"choiceElm"),g(this,"closeElm"),g(this,"filterText",""),g(this,"updateData",[]),g(this,"data",[]),g(this,"dataTotal"),g(this,"dropElm"),g(this,"okButtonElm"),g(this,"filterParentElm"),g(this,"ulElm"),g(this,"parentElm"),g(this,"labelElm"),g(this,"selectAllParentElm"),g(this,"selectAllElm"),g(this,"searchInputElm"),g(this,"selectGroupElms"),g(this,"selectItemElms"),g(this,"disableItemElms"),g(this,"noResultsElm"),g(this,"options"),g(this,"selectAllName",""),g(this,"selectGroupName",""),g(this,"selectItemName",""),g(this,"tabIndex"),g(this,"updateDataStart"),g(this,"updateDataEnd"),g(this,"virtualScroll"),g(this,"locales",{}),this.options=Object.assign({},z.DEFAULTS,this.elm.dataset,t),this._bindEventService=new Wc({distinctEvent:!0})}init(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}destroy(n=!0){var t,e,o,i,s;this.elm&&this.parentElm&&(this.options.onDestroy({hardDestroy:n}),n&&this.options.onHardDestroy(),this.elm.parentElement&&this.parentElm.parentElement&&this.elm.parentElement.insertBefore(this.elm,this.parentElm.parentElement.firstChild),this.elm.classList.remove("ms-offscreen"),this._bindEventService.unbindAll(),this.tabIndex&&(this.elm.tabIndex=+this.tabIndex),(t=this.virtualScroll)==null||t.destroy(),(e=this.dropElm)==null||e.remove(),(o=this.parentElm.parentNode)==null||o.removeChild(this.parentElm),this.fromHtml&&(delete this.options.data,this.fromHtml=!1),this.options.onAfterDestroy({hardDestroy:n}),n&&((s=(i=this.options).onAfterHardDestroy)==null||s.call(i),Object.keys(this.options).forEach(l=>delete this[l])))}initLocale(){if(this.options.locale){let n=window.multipleSelect.locales,t=this.options.locale.split(/-|_/);if(t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),n[this.options.locale])Object.assign(this.options,n[this.options.locale]);else if(n[t.join("-")])Object.assign(this.options,n[t.join("-")]);else if(n[t[0]])Object.assign(this.options,n[t[0]]);else throw new Error(`[multiple-select-vanilla] invalid locales "${this.options.locale}", make sure to import it before using it`)}}initContainer(){var i;let n=this.elm.getAttribute("name")||this.options.name||"";this.options.classes&&this.elm.classList.add(this.options.classes),this.options.classPrefix&&(this.elm.classList.add(this.options.classPrefix),this.options.size&&this.elm.classList.add(`${this.options.classPrefix}-${this.options.size}`)),this.elm.style.display="none",this.labelElm=this.elm.closest("label"),!this.labelElm&&this.elm.id&&(this.labelElm=document.createElement("label"),this.labelElm.htmlFor=this.elm.id),(i=this.labelElm)!=null&&i.querySelector("input")&&(this.labelElm=null),typeof this.options.single>"u"&&(this.options.single=!this.elm.multiple),this.parentElm=N("div",{className:`ms-parent ${this.elm.className||""} ${this.options.classes}`,dataset:{test:"sel"}});let t=this.elm.getAttribute("title")||"";t&&(this.parentElm.title=t),this.options.placeholder=this.options.placeholder||this.elm.getAttribute("placeholder")||"",this.tabIndex=this.elm.getAttribute("tabindex");let e="";this.tabIndex!==null&&(this.elm.tabIndex=-1,e=this.tabIndex&&`tabindex="${this.tabIndex}"`),this.choiceElm=N("button",{className:"ms-choice",type:"button"},this.parentElm),isNaN(e)&&(this.choiceElm.tabIndex=+e),this.choiceElm.appendChild(N("span",{className:"ms-placeholder",textContent:this.options.placeholder})),this.options.showClear&&this.choiceElm.appendChild(N("div",{className:"icon-close"})),this.choiceElm.appendChild(N("div",{className:"icon-caret"})),this.dropElm=N("div",{className:`ms-drop ${this.options.position}`},this.parentElm),n&&(this.dropElm.dataset.name=n);let o=this.elm.getAttribute("data-test")||this.options.dataTest;o&&(this.parentElm.dataset.test=o,this.dropElm.dataset.test=o),this.closeElm=this.choiceElm.querySelector(".icon-close"),this.options.dropWidth&&(this.dropElm.style.width=typeof this.options.dropWidth=="string"?this.options.dropWidth:`${this.options.dropWidth}px`),Xc(this.elm,this.parentElm),this.elm.disabled&&this.choiceElm.classList.add("disabled"),this.selectAllName=`data-name="selectAll${n}"`,this.selectGroupName=`data-name="selectGroup${n}"`,this.selectItemName=`data-name="selectItem${n}"`,this.options.keepOpen||(this._bindEventService.unbind(document.body,"click"),this._bindEventService.bind(document.body,"click",s=>{s.target===this.choiceElm||fo(s.target,".ms-choice")===this.choiceElm||(s.target===this.dropElm||fo(s.target,".ms-drop")!==this.dropElm&&s.target!==this.elm)&&this.options.isOpen&&this.close()}))}initData(){let n=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map(t=>typeof t=="string"||typeof t=="number"?{text:t,value:t}:t);else if(typeof this.options.data=="object"){for(let[t,e]of Object.entries(this.options.data))n.push({value:t,text:`${e}`});this.data=n}}else this.elm.childNodes.forEach(t=>{this.initRow(t)&&n.push(this.initRow(t))}),this.options.data=n,this.data=n,this.fromHtml=!0;this.dataTotal=tu(this.data||[])}initRow(n,t){var o,i;let e={};return((o=n.tagName)==null?void 0:o.toLowerCase())==="option"?(e.type="option",e.text=this.options.textTemplate(n),e.value=n.value,e.visible=!0,e.selected=!!n.selected,e.disabled=t||n.disabled,e.classes=n.getAttribute("class")||"",e.title=n.getAttribute("title")||"",n.dataset.value&&(e._value=n.dataset.value),Object.keys(n.dataset).length&&(e._data=n.dataset,e._data.divider&&(e.divider=e._data.divider)),e):((i=n.tagName)==null?void 0:i.toLowerCase())==="optgroup"?(e.type="optgroup",e.label=this.options.labelTemplate(n),e.visible=!0,e.selected=!!n.selected,e.disabled=n.disabled,e.children=[],Object.keys(n.dataset).length&&(e._data=n.dataset),n.childNodes.forEach(s=>{e.children.push(this.initRow(s,e.disabled))}),e):null}initDrop(){this.initList(),this.update(!0),this.options.isOpen&&this.open(10),this.options.openOnHover&&this.parentElm&&(this._bindEventService.bind(this.parentElm,"mouseover",()=>this.open(null)),this._bindEventService.bind(this.parentElm,"mouseout",()=>this.close()))}initFilter(){if(this.filterText="",this.options.filter||!this.options.filterByDataLength)return;let n=0;for(let t of this.data||[])t.type==="optgroup"?n+=t.children.length:n+=1;this.options.filter=n>this.options.filterByDataLength}initList(){if(this.options.filter&&(this.filterParentElm=N("div",{className:"ms-search"},this.dropElm),this.filterParentElm.appendChild(N("input",{autocomplete:"off",autocapitalize:"off",spellcheck:!1,type:"text",placeholder:this.options.filterPlaceholder||"🔎︎"}))),this.options.selectAll&&!this.options.single){let n=this.elm.getAttribute("name")||this.options.name||"";this.selectAllParentElm=N("div",{className:"ms-select-all"});let t=document.createElement("label");N("input",{type:"checkbox",checked:this.allSelected,dataset:{name:`selectAll${n}`}},t),t.appendChild(N("span",{textContent:this.formatSelectAll()})),this.selectAllParentElm.appendChild(t),this.dropElm.appendChild(this.selectAllParentElm)}this.ulElm=document.createElement("ul"),this.dropElm.appendChild(this.ulElm),this.options.showOkButton&&!this.options.single&&(this.okButtonElm=N("button",{className:"ms-ok-button",type:"button",textContent:this.formatOkButton()},this.dropElm)),this.initListItems()}initListItems(){var e;let n=this.getListRows(),t=0;if(this.options.selectAll&&!this.options.single&&(t=-1),n.length>z.BLOCK_ROWS*z.CLUSTER_BLOCKS){(e=this.virtualScroll)==null||e.destroy();let o=this.dropElm.style.display!=="none";o||(this.dropElm.style.left="-10000",this.dropElm.style.display="block");let i=()=>{var s,l;this.virtualScroll&&(this.updateDataStart=this.virtualScroll.dataStart+t,this.updateDataEnd=this.virtualScroll.dataEnd+t,this.updateDataStart<0&&(this.updateDataStart=0),this.updateDataEnd>(((s=this.data)==null?void 0:s.length)??0)&&(this.updateDataEnd=((l=this.data)==null?void 0:l.length)??0))};this.ulElm&&(this.virtualScroll=new Yc({rows:n,scrollEl:this.ulElm,contentEl:this.ulElm,sanitizer:this.options.sanitizer,callback:()=>{i(),this.events()}})),i(),o||(this.dropElm.style.left="0",this.dropElm.style.display="none")}else this.ulElm&&(this.ulElm.innerHTML=this.options.sanitizer?this.options.sanitizer(n.join("")):n.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}getListRows(){var t;let n=[];return this.updateData=[],(t=this.data)==null||t.forEach(e=>{n.push(...this.initListItem(e))}),n.push(`
  • ${this.formatNoMatchesFound()}
  • `),n}initListItem(n,t=0){let e=this.options.renderOptionLabelAsHtml||this.options.useSelectOptionLabelToHtml,o=n!=null&&n.title?`title="${n.title}"`:"",i=this.options.multiple?"multiple":"",s=this.options.single?"radio":"checkbox",l="";if(!(n!=null&&n.visible))return[];if(this.updateData.push(n),this.options.single&&!this.options.singleRadio&&(l="hide-radio "),n.selected&&(l+="selected "),n.type==="optgroup"){let d=this.options.styler(n),p=d?`style="${d}"`:"",b=[],m=this.options.hideOptgroupCheckboxes||this.options.single?``:`(n&&window.CSS&&window.CSS.escape&&(n=n.replace(/#([^\s"#']+)/g,(t,e)=>`#${CSS.escape(e)}`)),n),Nl=n=>n==null?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase(),Ll=n=>{do n+=Math.floor(Math.random()*kl);while(document.getElementById(n));return n},Ml=n=>{if(!n)return 0;let{transitionDuration:t,transitionDelay:e}=window.getComputedStyle(n);const o=Number.parseFloat(t),i=Number.parseFloat(e);return!o&&!i?0:(t=t.split(",")[0],e=e.split(",")[0],(Number.parseFloat(t)+Number.parseFloat(e))*Dl)},Ko=n=>{n.dispatchEvent(new Event(tn))},Z=n=>!n||typeof n!="object"?!1:(typeof n.jquery<"u"&&(n=n[0]),typeof n.nodeType<"u"),st=n=>Z(n)?n.jquery?n[0]:n:typeof n=="string"&&n.length>0?document.querySelector(zo(n)):null,Pt=n=>{if(!Z(n)||n.getClientRects().length===0)return!1;const t=getComputedStyle(n).getPropertyValue("visibility")==="visible",e=n.closest("details:not([open])");if(!e)return t;if(e!==n){const o=n.closest("summary");if(o&&o.parentNode!==e||o===null)return!1}return t},lt=n=>!n||n.nodeType!==Node.ELEMENT_NODE||n.classList.contains("disabled")?!0:typeof n.disabled<"u"?n.disabled:n.hasAttribute("disabled")&&n.getAttribute("disabled")!=="false",Yo=n=>{if(!document.documentElement.attachShadow)return null;if(typeof n.getRootNode=="function"){const t=n.getRootNode();return t instanceof ShadowRoot?t:null}return n instanceof ShadowRoot?n:n.parentNode?Yo(n.parentNode):null},ge=()=>{},Yt=n=>{n.offsetHeight},Xo=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,$e=[],$l=n=>{document.readyState==="loading"?($e.length||document.addEventListener("DOMContentLoaded",()=>{for(const t of $e)t()}),$e.push(n)):n()},J=()=>document.documentElement.dir==="rtl",W=n=>{$l(()=>{const t=Xo();if(t){const e=n.NAME,o=t.fn[e];t.fn[e]=n.jQueryInterface,t.fn[e].Constructor=n,t.fn[e].noConflict=()=>(t.fn[e]=o,n.jQueryInterface)}})},I=(n,t=[],e=n)=>typeof n=="function"?n(...t):e,Qo=(n,t,e=!0)=>{if(!e){I(n);return}const o=5,i=Ml(t)+o;let s=!1;const l=({target:a})=>{a===t&&(s=!0,t.removeEventListener(tn,l),I(n))};t.addEventListener(tn,l),setTimeout(()=>{s||Ko(t)},i)},_n=(n,t,e,o)=>{const i=n.length;let s=n.indexOf(t);return s===-1?!e&&o?n[i-1]:n[0]:(s+=e?1:-1,o&&(s=(s+i)%i),n[Math.max(0,Math.min(s,i-1))])},Fl=/[^.]*(?=\..*)\.|.*/,Bl=/\..*/,Il=/::\d+$/,Fe={};let Vn=1;const Zo={mouseenter:"mouseover",mouseleave:"mouseout"},Rl=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 ti(n,t){return t&&`${t}::${Vn++}`||n.uidEvent||Vn++}function ei(n){const t=ti(n);return n.uidEvent=t,Fe[t]=Fe[t]||{},Fe[t]}function Pl(n,t){return function e(o){return yn(o,{delegateTarget:n}),e.oneOff&&c.off(n,o.type,t),t.apply(n,[o])}}function Hl(n,t,e){return function o(i){const s=n.querySelectorAll(t);for(let{target:l}=i;l&&l!==this;l=l.parentNode)for(const a of s)if(a===l)return yn(i,{delegateTarget:l}),o.oneOff&&c.off(n,i.type,t,e),e.apply(l,[i])}}function ni(n,t,e=null){return Object.values(n).find(o=>o.callable===t&&o.delegationSelector===e)}function oi(n,t,e){const o=typeof t=="string",i=o?e:t||e;let s=ii(n);return Rl.has(s)||(s=n),[o,i,s]}function Jn(n,t,e,o,i){if(typeof t!="string"||!n)return;let[s,l,a]=oi(t,e,o);t in Zo&&(l=(g=>function(_){if(!_.relatedTarget||_.relatedTarget!==_.delegateTarget&&!_.delegateTarget.contains(_.relatedTarget))return g.call(this,_)})(l));const r=ei(n),d=r[a]||(r[a]={}),p=ni(d,l,s?e:null);if(p){p.oneOff=p.oneOff&&i;return}const v=ti(l,t.replace(Fl,"")),b=s?Hl(n,e,l):Pl(n,l);b.delegationSelector=s?e:null,b.callable=l,b.oneOff=i,b.uidEvent=v,d[v]=b,n.addEventListener(a,b,s)}function en(n,t,e,o,i){const s=ni(t[e],o,i);s&&(n.removeEventListener(e,s,!!i),delete t[e][s.uidEvent])}function jl(n,t,e,o){const i=t[e]||{};for(const[s,l]of Object.entries(i))s.includes(o)&&en(n,t,e,l.callable,l.delegationSelector)}function ii(n){return n=n.replace(Bl,""),Zo[n]||n}const c={on(n,t,e,o){Jn(n,t,e,o,!1)},one(n,t,e,o){Jn(n,t,e,o,!0)},off(n,t,e,o){if(typeof t!="string"||!n)return;const[i,s,l]=oi(t,e,o),a=l!==t,r=ei(n),d=r[l]||{},p=t.startsWith(".");if(typeof s<"u"){if(!Object.keys(d).length)return;en(n,r,l,s,i?e:null);return}if(p)for(const v of Object.keys(r))jl(n,r,v,t.slice(1));for(const[v,b]of Object.entries(d)){const m=v.replace(Il,"");(!a||t.includes(m))&&en(n,r,l,b.callable,b.delegationSelector)}},trigger(n,t,e){if(typeof t!="string"||!n)return null;const o=Xo(),i=ii(t),s=t!==i;let l=null,a=!0,r=!0,d=!1;s&&o&&(l=o.Event(t,e),o(n).trigger(l),a=!l.isPropagationStopped(),r=!l.isImmediatePropagationStopped(),d=l.isDefaultPrevented());const p=yn(new Event(t,{bubbles:a,cancelable:!0}),e);return d&&p.preventDefault(),r&&n.dispatchEvent(p),p.defaultPrevented&&l&&l.preventDefault(),p}};function yn(n,t={}){for(const[e,o]of Object.entries(t))try{n[e]=o}catch{Object.defineProperty(n,e,{configurable:!0,get(){return o}})}return n}function Gn(n){if(n==="true")return!0;if(n==="false")return!1;if(n===Number(n).toString())return Number(n);if(n===""||n==="null")return null;if(typeof n!="string")return n;try{return JSON.parse(decodeURIComponent(n))}catch{return n}}function Be(n){return n.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}const tt={setDataAttribute(n,t,e){n.setAttribute(`data-bs-${Be(t)}`,e)},removeDataAttribute(n,t){n.removeAttribute(`data-bs-${Be(t)}`)},getDataAttributes(n){if(!n)return{};const t={},e=Object.keys(n.dataset).filter(o=>o.startsWith("bs")&&!o.startsWith("bsConfig"));for(const o of e){let i=o.replace(/^bs/,"");i=i.charAt(0).toLowerCase()+i.slice(1,i.length),t[i]=Gn(n.dataset[o])}return t},getDataAttribute(n,t){return Gn(n.getAttribute(`data-bs-${Be(t)}`))}};class Xt{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(t){return t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t}_mergeConfigObj(t,e){const o=Z(e)?tt.getDataAttribute(e,"config"):{};return{...this.constructor.Default,...typeof o=="object"?o:{},...Z(e)?tt.getDataAttributes(e):{},...typeof t=="object"?t:{}}}_typeCheckConfig(t,e=this.constructor.DefaultType){for(const[o,i]of Object.entries(e)){const s=t[o],l=Z(s)?"element":Nl(s);if(!new RegExp(i).test(l))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${o}" provided type "${l}" but expected type "${i}".`)}}}const Vl="5.3.2";class K extends Xt{constructor(t,e){super(),t=st(t),t&&(this._element=t,this._config=this._getConfig(e),Me.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Me.remove(this._element,this.constructor.DATA_KEY),c.off(this._element,this.constructor.EVENT_KEY);for(const t of Object.getOwnPropertyNames(this))this[t]=null}_queueCallback(t,e,o=!0){Qo(t,e,o)}_getConfig(t){return t=this._mergeConfigObj(t,this._element),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}static getInstance(t){return Me.get(st(t),this.DATA_KEY)}static getOrCreateInstance(t,e={}){return this.getInstance(t)||new this(t,typeof e=="object"?e:null)}static get VERSION(){return Vl}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(t){return`${t}${this.EVENT_KEY}`}}const Ie=n=>{let t=n.getAttribute("data-bs-target");if(!t||t==="#"){let e=n.getAttribute("href");if(!e||!e.includes("#")&&!e.startsWith("."))return null;e.includes("#")&&!e.startsWith("#")&&(e=`#${e.split("#")[1]}`),t=e&&e!=="#"?zo(e.trim()):null}return t},f={find(n,t=document.documentElement){return[].concat(...Element.prototype.querySelectorAll.call(t,n))},findOne(n,t=document.documentElement){return Element.prototype.querySelector.call(t,n)},children(n,t){return[].concat(...n.children).filter(e=>e.matches(t))},parents(n,t){const e=[];let o=n.parentNode.closest(t);for(;o;)e.push(o),o=o.parentNode.closest(t);return e},prev(n,t){let e=n.previousElementSibling;for(;e;){if(e.matches(t))return[e];e=e.previousElementSibling}return[]},next(n,t){let e=n.nextElementSibling;for(;e;){if(e.matches(t))return[e];e=e.nextElementSibling}return[]},focusableChildren(n){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map(e=>`${e}:not([tabindex^="-"])`).join(",");return this.find(t,n).filter(e=>!lt(e)&&Pt(e))},getSelectorFromElement(n){const t=Ie(n);return t&&f.findOne(t)?t:null},getElementFromSelector(n){const t=Ie(n);return t?f.findOne(t):null},getMultipleElementsFromSelector(n){const t=Ie(n);return t?f.find(t):[]}},Se=(n,t="hide")=>{const e=`click.dismiss${n.EVENT_KEY}`,o=n.NAME;c.on(document,e,`[data-bs-dismiss="${o}"]`,function(i){if(["A","AREA"].includes(this.tagName)&&i.preventDefault(),lt(this))return;const s=f.getElementFromSelector(this)||this.closest(`.${o}`);n.getOrCreateInstance(s)[t]()})},Jl="alert",Gl="bs.alert",si=`.${Gl}`,Wl=`close${si}`,Ul=`closed${si}`,ql="fade",zl="show";class Oe extends K{static get NAME(){return Jl}close(){if(c.trigger(this._element,Wl).defaultPrevented)return;this._element.classList.remove(zl);const e=this._element.classList.contains(ql);this._queueCallback(()=>this._destroyElement(),this._element,e)}_destroyElement(){this._element.remove(),c.trigger(this._element,Ul),this.dispose()}static jQueryInterface(t){return this.each(function(){const e=Oe.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Se(Oe,"close");W(Oe);const Kl="button",Yl="bs.button",Xl=`.${Yl}`,Ql=".data-api",Zl="active",Wn='[data-bs-toggle="button"]',ta=`click${Xl}${Ql}`;class Ce extends K{static get NAME(){return Kl}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle(Zl))}static jQueryInterface(t){return this.each(function(){const e=Ce.getOrCreateInstance(this);t==="toggle"&&e[t]()})}}c.on(document,ta,Wn,n=>{n.preventDefault();const t=n.target.closest(Wn);Ce.getOrCreateInstance(t).toggle()});W(Ce);const ea="swipe",Ht=".bs.swipe",na=`touchstart${Ht}`,oa=`touchmove${Ht}`,ia=`touchend${Ht}`,sa=`pointerdown${Ht}`,la=`pointerup${Ht}`,aa="touch",ra="pen",pa="pointer-event",ca=40,ua={endCallback:null,leftCallback:null,rightCallback:null},da={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class Ee extends Xt{constructor(t,e){super(),this._element=t,!(!t||!Ee.isSupported())&&(this._config=this._getConfig(e),this._deltaX=0,this._supportPointerEvents=!!window.PointerEvent,this._initEvents())}static get Default(){return ua}static get DefaultType(){return da}static get NAME(){return ea}dispose(){c.off(this._element,Ht)}_start(t){if(!this._supportPointerEvents){this._deltaX=t.touches[0].clientX;return}this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX)}_end(t){this._eventIsPointerPenTouch(t)&&(this._deltaX=t.clientX-this._deltaX),this._handleSwipe(),I(this._config.endCallback)}_move(t){this._deltaX=t.touches&&t.touches.length>1?0:t.touches[0].clientX-this._deltaX}_handleSwipe(){const t=Math.abs(this._deltaX);if(t<=ca)return;const e=t/this._deltaX;this._deltaX=0,e&&I(e>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(c.on(this._element,sa,t=>this._start(t)),c.on(this._element,la,t=>this._end(t)),this._element.classList.add(pa)):(c.on(this._element,na,t=>this._start(t)),c.on(this._element,oa,t=>this._move(t)),c.on(this._element,ia,t=>this._end(t)))}_eventIsPointerPenTouch(t){return this._supportPointerEvents&&(t.pointerType===ra||t.pointerType===aa)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const ha="carousel",ma="bs.carousel",pt=`.${ma}`,li=".data-api",va="ArrowLeft",ba="ArrowRight",fa=500,Gt="next",St="prev",Tt="left",ve="right",ga=`slide${pt}`,Re=`slid${pt}`,Ea=`keydown${pt}`,_a=`mouseenter${pt}`,ya=`mouseleave${pt}`,wa=`dragstart${pt}`,Aa=`load${pt}${li}`,Sa=`click${pt}${li}`,ai="carousel",le="active",Oa="slide",Ca="carousel-item-end",xa="carousel-item-start",Ta="carousel-item-next",ka="carousel-item-prev",ri=".active",pi=".carousel-item",Da=ri+pi,Na=".carousel-item img",La=".carousel-indicators",Ma="[data-bs-slide], [data-bs-slide-to]",$a='[data-bs-ride="carousel"]',Fa={[va]:ve,[ba]:Tt},Ba={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},Ia={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class Qt extends K{constructor(t,e){super(t,e),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=f.findOne(La,this._element),this._addEventListeners(),this._config.ride===ai&&this.cycle()}static get Default(){return Ba}static get DefaultType(){return Ia}static get NAME(){return ha}next(){this._slide(Gt)}nextWhenVisible(){!document.hidden&&Pt(this._element)&&this.next()}prev(){this._slide(St)}pause(){this._isSliding&&Ko(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){c.one(this._element,Re,()=>this.cycle());return}this.cycle()}}to(t){const e=this._getItems();if(t>e.length-1||t<0)return;if(this._isSliding){c.one(this._element,Re,()=>this.to(t));return}const o=this._getItemIndex(this._getActive());if(o===t)return;const i=t>o?Gt:St;this._slide(i,e[t])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(t){return t.defaultInterval=t.interval,t}_addEventListeners(){this._config.keyboard&&c.on(this._element,Ea,t=>this._keydown(t)),this._config.pause==="hover"&&(c.on(this._element,_a,()=>this.pause()),c.on(this._element,ya,()=>this._maybeEnableCycle())),this._config.touch&&Ee.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const o of f.find(Na,this._element))c.on(o,wa,i=>i.preventDefault());const e={leftCallback:()=>this._slide(this._directionToOrder(Tt)),rightCallback:()=>this._slide(this._directionToOrder(ve)),endCallback:()=>{this._config.pause==="hover"&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout(()=>this._maybeEnableCycle(),fa+this._config.interval))}};this._swipeHelper=new Ee(this._element,e)}_keydown(t){if(/input|textarea/i.test(t.target.tagName))return;const e=Fa[t.key];e&&(t.preventDefault(),this._slide(this._directionToOrder(e)))}_getItemIndex(t){return this._getItems().indexOf(t)}_setActiveIndicatorElement(t){if(!this._indicatorsElement)return;const e=f.findOne(ri,this._indicatorsElement);e.classList.remove(le),e.removeAttribute("aria-current");const o=f.findOne(`[data-bs-slide-to="${t}"]`,this._indicatorsElement);o&&(o.classList.add(le),o.setAttribute("aria-current","true"))}_updateInterval(){const t=this._activeElement||this._getActive();if(!t)return;const e=Number.parseInt(t.getAttribute("data-bs-interval"),10);this._config.interval=e||this._config.defaultInterval}_slide(t,e=null){if(this._isSliding)return;const o=this._getActive(),i=t===Gt,s=e||_n(this._getItems(),o,i,this._config.wrap);if(s===o)return;const l=this._getItemIndex(s),a=m=>c.trigger(this._element,m,{relatedTarget:s,direction:this._orderToDirection(t),from:this._getItemIndex(o),to:l});if(a(ga).defaultPrevented||!o||!s)return;const d=!!this._interval;this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(l),this._activeElement=s;const p=i?xa:Ca,v=i?Ta:ka;s.classList.add(v),Yt(s),o.classList.add(p),s.classList.add(p);const b=()=>{s.classList.remove(p,v),s.classList.add(le),o.classList.remove(le,v,p),this._isSliding=!1,a(Re)};this._queueCallback(b,o,this._isAnimated()),d&&this.cycle()}_isAnimated(){return this._element.classList.contains(Oa)}_getActive(){return f.findOne(Da,this._element)}_getItems(){return f.find(pi,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(t){return J()?t===Tt?St:Gt:t===Tt?Gt:St}_orderToDirection(t){return J()?t===St?Tt:ve:t===St?ve:Tt}static jQueryInterface(t){return this.each(function(){const e=Qt.getOrCreateInstance(this,t);if(typeof t=="number"){e.to(t);return}if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,Sa,Ma,function(n){const t=f.getElementFromSelector(this);if(!t||!t.classList.contains(ai))return;n.preventDefault();const e=Qt.getOrCreateInstance(t),o=this.getAttribute("data-bs-slide-to");if(o){e.to(o),e._maybeEnableCycle();return}if(tt.getDataAttribute(this,"slide")==="next"){e.next(),e._maybeEnableCycle();return}e.prev(),e._maybeEnableCycle()});c.on(window,Aa,()=>{const n=f.find($a);for(const t of n)Qt.getOrCreateInstance(t)});W(Qt);const Ra="collapse",Pa="bs.collapse",Zt=`.${Pa}`,Ha=".data-api",ja=`show${Zt}`,Va=`shown${Zt}`,Ja=`hide${Zt}`,Ga=`hidden${Zt}`,Wa=`click${Zt}${Ha}`,Pe="show",Dt="collapse",ae="collapsing",Ua="collapsed",qa=`:scope .${Dt} .${Dt}`,za="collapse-horizontal",Ka="width",Ya="height",Xa=".collapse.show, .collapse.collapsing",nn='[data-bs-toggle="collapse"]',Qa={parent:null,toggle:!0},Za={parent:"(null|element)",toggle:"boolean"};class zt extends K{constructor(t,e){super(t,e),this._isTransitioning=!1,this._triggerArray=[];const o=f.find(nn);for(const i of o){const s=f.getSelectorFromElement(i),l=f.find(s).filter(a=>a===this._element);s!==null&&l.length&&this._triggerArray.push(i)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return Qa}static get DefaultType(){return Za}static get NAME(){return Ra}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let t=[];if(this._config.parent&&(t=this._getFirstLevelChildren(Xa).filter(a=>a!==this._element).map(a=>zt.getOrCreateInstance(a,{toggle:!1}))),t.length&&t[0]._isTransitioning||c.trigger(this._element,ja).defaultPrevented)return;for(const a of t)a.hide();const o=this._getDimension();this._element.classList.remove(Dt),this._element.classList.add(ae),this._element.style[o]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const i=()=>{this._isTransitioning=!1,this._element.classList.remove(ae),this._element.classList.add(Dt,Pe),this._element.style[o]="",c.trigger(this._element,Va)},l=`scroll${o[0].toUpperCase()+o.slice(1)}`;this._queueCallback(i,this._element,!0),this._element.style[o]=`${this._element[l]}px`}hide(){if(this._isTransitioning||!this._isShown()||c.trigger(this._element,Ja).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Yt(this._element),this._element.classList.add(ae),this._element.classList.remove(Dt,Pe);for(const i of this._triggerArray){const s=f.getElementFromSelector(i);s&&!this._isShown(s)&&this._addAriaAndCollapsedClass([i],!1)}this._isTransitioning=!0;const o=()=>{this._isTransitioning=!1,this._element.classList.remove(ae),this._element.classList.add(Dt),c.trigger(this._element,Ga)};this._element.style[e]="",this._queueCallback(o,this._element,!0)}_isShown(t=this._element){return t.classList.contains(Pe)}_configAfterMerge(t){return t.toggle=!!t.toggle,t.parent=st(t.parent),t}_getDimension(){return this._element.classList.contains(za)?Ka:Ya}_initializeChildren(){if(!this._config.parent)return;const t=this._getFirstLevelChildren(nn);for(const e of t){const o=f.getElementFromSelector(e);o&&this._addAriaAndCollapsedClass([e],this._isShown(o))}}_getFirstLevelChildren(t){const e=f.find(qa,this._config.parent);return f.find(t,this._config.parent).filter(o=>!e.includes(o))}_addAriaAndCollapsedClass(t,e){if(t.length)for(const o of t)o.classList.toggle(Ua,!e),o.setAttribute("aria-expanded",e)}static jQueryInterface(t){const e={};return typeof t=="string"&&/show|hide/.test(t)&&(e.toggle=!1),this.each(function(){const o=zt.getOrCreateInstance(this,e);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t]()}})}}c.on(document,Wa,nn,function(n){(n.target.tagName==="A"||n.delegateTarget&&n.delegateTarget.tagName==="A")&&n.preventDefault();for(const t of f.getMultipleElementsFromSelector(this))zt.getOrCreateInstance(t,{toggle:!1}).toggle()});W(zt);const Un="dropdown",tr="bs.dropdown",yt=`.${tr}`,wn=".data-api",er="Escape",qn="Tab",nr="ArrowUp",zn="ArrowDown",or=2,ir=`hide${yt}`,sr=`hidden${yt}`,lr=`show${yt}`,ar=`shown${yt}`,ci=`click${yt}${wn}`,ui=`keydown${yt}${wn}`,rr=`keyup${yt}${wn}`,kt="show",pr="dropup",cr="dropend",ur="dropstart",dr="dropup-center",hr="dropdown-center",bt='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',mr=`${bt}.${kt}`,be=".dropdown-menu",vr=".navbar",br=".navbar-nav",fr=".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",gr=J()?"top-end":"top-start",Er=J()?"top-start":"top-end",_r=J()?"bottom-end":"bottom-start",yr=J()?"bottom-start":"bottom-end",wr=J()?"left-start":"right-start",Ar=J()?"right-start":"left-start",Sr="top",Or="bottom",Cr={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},xr={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class X extends K{constructor(t,e){super(t,e),this._popper=null,this._parent=this._element.parentNode,this._menu=f.next(this._element,be)[0]||f.prev(this._element,be)[0]||f.findOne(be,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return Cr}static get DefaultType(){return xr}static get NAME(){return Un}toggle(){return this._isShown()?this.hide():this.show()}show(){if(lt(this._element)||this._isShown())return;const t={relatedTarget:this._element};if(!c.trigger(this._element,lr,t).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(br))for(const o of[].concat(...document.body.children))c.on(o,"mouseover",ge);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(kt),this._element.classList.add(kt),c.trigger(this._element,ar,t)}}hide(){if(lt(this._element)||!this._isShown())return;const t={relatedTarget:this._element};this._completeHide(t)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(t){if(!c.trigger(this._element,ir,t).defaultPrevented){if("ontouchstart"in document.documentElement)for(const o of[].concat(...document.body.children))c.off(o,"mouseover",ge);this._popper&&this._popper.destroy(),this._menu.classList.remove(kt),this._element.classList.remove(kt),this._element.setAttribute("aria-expanded","false"),tt.removeDataAttribute(this._menu,"popper"),c.trigger(this._element,sr,t)}}_getConfig(t){if(t=super._getConfig(t),typeof t.reference=="object"&&!Z(t.reference)&&typeof t.reference.getBoundingClientRect!="function")throw new TypeError(`${Un.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return t}_createPopper(){if(typeof qo>"u")throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let t=this._element;this._config.reference==="parent"?t=this._parent:Z(this._config.reference)?t=st(this._config.reference):typeof this._config.reference=="object"&&(t=this._config.reference);const e=this._getPopperConfig();this._popper=En(t,this._menu,e)}_isShown(){return this._menu.classList.contains(kt)}_getPlacement(){const t=this._parent;if(t.classList.contains(cr))return wr;if(t.classList.contains(ur))return Ar;if(t.classList.contains(dr))return Sr;if(t.classList.contains(hr))return Or;const e=getComputedStyle(this._menu).getPropertyValue("--bs-position").trim()==="end";return t.classList.contains(pr)?e?Er:gr:e?yr:_r}_detectNavbar(){return this._element.closest(vr)!==null}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_getPopperConfig(){const t={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||this._config.display==="static")&&(tt.setDataAttribute(this._menu,"popper","static"),t.modifiers=[{name:"applyStyles",enabled:!1}]),{...t,...I(this._config.popperConfig,[t])}}_selectMenuItem({key:t,target:e}){const o=f.find(fr,this._menu).filter(i=>Pt(i));o.length&&_n(o,e,t===zn,!o.includes(e)).focus()}static jQueryInterface(t){return this.each(function(){const e=X.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}static clearMenus(t){if(t.button===or||t.type==="keyup"&&t.key!==qn)return;const e=f.find(mr);for(const o of e){const i=X.getInstance(o);if(!i||i._config.autoClose===!1)continue;const s=t.composedPath(),l=s.includes(i._menu);if(s.includes(i._element)||i._config.autoClose==="inside"&&!l||i._config.autoClose==="outside"&&l||i._menu.contains(t.target)&&(t.type==="keyup"&&t.key===qn||/input|select|option|textarea|form/i.test(t.target.tagName)))continue;const a={relatedTarget:i._element};t.type==="click"&&(a.clickEvent=t),i._completeHide(a)}}static dataApiKeydownHandler(t){const e=/input|textarea/i.test(t.target.tagName),o=t.key===er,i=[nr,zn].includes(t.key);if(!i&&!o||e&&!o)return;t.preventDefault();const s=this.matches(bt)?this:f.prev(this,bt)[0]||f.next(this,bt)[0]||f.findOne(bt,t.delegateTarget.parentNode),l=X.getOrCreateInstance(s);if(i){t.stopPropagation(),l.show(),l._selectMenuItem(t);return}l._isShown()&&(t.stopPropagation(),l.hide(),s.focus())}}c.on(document,ui,bt,X.dataApiKeydownHandler);c.on(document,ui,be,X.dataApiKeydownHandler);c.on(document,ci,X.clearMenus);c.on(document,rr,X.clearMenus);c.on(document,ci,bt,function(n){n.preventDefault(),X.getOrCreateInstance(this).toggle()});W(X);const di="backdrop",Tr="fade",Kn="show",Yn=`mousedown.bs.${di}`,kr={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Dr={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class hi extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isAppended=!1,this._element=null}static get Default(){return kr}static get DefaultType(){return Dr}static get NAME(){return di}show(t){if(!this._config.isVisible){I(t);return}this._append();const e=this._getElement();this._config.isAnimated&&Yt(e),e.classList.add(Kn),this._emulateAnimation(()=>{I(t)})}hide(t){if(!this._config.isVisible){I(t);return}this._getElement().classList.remove(Kn),this._emulateAnimation(()=>{this.dispose(),I(t)})}dispose(){this._isAppended&&(c.off(this._element,Yn),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const t=document.createElement("div");t.className=this._config.className,this._config.isAnimated&&t.classList.add(Tr),this._element=t}return this._element}_configAfterMerge(t){return t.rootElement=st(t.rootElement),t}_append(){if(this._isAppended)return;const t=this._getElement();this._config.rootElement.append(t),c.on(t,Yn,()=>{I(this._config.clickCallback)}),this._isAppended=!0}_emulateAnimation(t){Qo(t,this._getElement(),this._config.isAnimated)}}const Nr="focustrap",Lr="bs.focustrap",_e=`.${Lr}`,Mr=`focusin${_e}`,$r=`keydown.tab${_e}`,Fr="Tab",Br="forward",Xn="backward",Ir={autofocus:!0,trapElement:null},Rr={autofocus:"boolean",trapElement:"element"};class mi extends Xt{constructor(t){super(),this._config=this._getConfig(t),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return Ir}static get DefaultType(){return Rr}static get NAME(){return Nr}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),c.off(document,_e),c.on(document,Mr,t=>this._handleFocusin(t)),c.on(document,$r,t=>this._handleKeydown(t)),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,c.off(document,_e))}_handleFocusin(t){const{trapElement:e}=this._config;if(t.target===document||t.target===e||e.contains(t.target))return;const o=f.focusableChildren(e);o.length===0?e.focus():this._lastTabNavDirection===Xn?o[o.length-1].focus():o[0].focus()}_handleKeydown(t){t.key===Fr&&(this._lastTabNavDirection=t.shiftKey?Xn:Br)}}const Qn=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",Zn=".sticky-top",re="padding-right",to="margin-right";class on{constructor(){this._element=document.body}getWidth(){const t=document.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}hide(){const t=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,re,e=>e+t),this._setElementAttributes(Qn,re,e=>e+t),this._setElementAttributes(Zn,to,e=>e-t)}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,re),this._resetElementAttributes(Qn,re),this._resetElementAttributes(Zn,to)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(t,e,o){const i=this.getWidth(),s=l=>{if(l!==this._element&&window.innerWidth>l.clientWidth+i)return;this._saveInitialAttribute(l,e);const a=window.getComputedStyle(l).getPropertyValue(e);l.style.setProperty(e,`${o(Number.parseFloat(a))}px`)};this._applyManipulationCallback(t,s)}_saveInitialAttribute(t,e){const o=t.style.getPropertyValue(e);o&&tt.setDataAttribute(t,e,o)}_resetElementAttributes(t,e){const o=i=>{const s=tt.getDataAttribute(i,e);if(s===null){i.style.removeProperty(e);return}tt.removeDataAttribute(i,e),i.style.setProperty(e,s)};this._applyManipulationCallback(t,o)}_applyManipulationCallback(t,e){if(Z(t)){e(t);return}for(const o of f.find(t,this._element))e(o)}}const Pr="modal",Hr="bs.modal",G=`.${Hr}`,jr=".data-api",Vr="Escape",Jr=`hide${G}`,Gr=`hidePrevented${G}`,vi=`hidden${G}`,bi=`show${G}`,Wr=`shown${G}`,Ur=`resize${G}`,qr=`click.dismiss${G}`,zr=`mousedown.dismiss${G}`,Kr=`keydown.dismiss${G}`,Yr=`click${G}${jr}`,eo="modal-open",Xr="fade",no="show",He="modal-static",Qr=".modal.show",Zr=".modal-dialog",tp=".modal-body",ep='[data-bs-toggle="modal"]',np={backdrop:!0,focus:!0,keyboard:!0},op={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class Bt extends K{constructor(t,e){super(t,e),this._dialog=f.findOne(Zr,this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new on,this._addEventListeners()}static get Default(){return np}static get DefaultType(){return op}static get NAME(){return Pr}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){this._isShown||this._isTransitioning||c.trigger(this._element,bi,{relatedTarget:t}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(eo),this._adjustDialog(),this._backdrop.show(()=>this._showElement(t)))}hide(){!this._isShown||this._isTransitioning||c.trigger(this._element,Jr).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(no),this._queueCallback(()=>this._hideModal(),this._element,this._isAnimated()))}dispose(){c.off(window,G),c.off(this._dialog,G),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new hi({isVisible:!!this._config.backdrop,isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_showElement(t){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const e=f.findOne(tp,this._dialog);e&&(e.scrollTop=0),Yt(this._element),this._element.classList.add(no);const o=()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,c.trigger(this._element,Wr,{relatedTarget:t})};this._queueCallback(o,this._dialog,this._isAnimated())}_addEventListeners(){c.on(this._element,Kr,t=>{if(t.key===Vr){if(this._config.keyboard){this.hide();return}this._triggerBackdropTransition()}}),c.on(window,Ur,()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()}),c.on(this._element,zr,t=>{c.one(this._element,qr,e=>{if(!(this._element!==t.target||this._element!==e.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(eo),this._resetAdjustments(),this._scrollBar.reset(),c.trigger(this._element,vi)})}_isAnimated(){return this._element.classList.contains(Xr)}_triggerBackdropTransition(){if(c.trigger(this._element,Gr).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,o=this._element.style.overflowY;o==="hidden"||this._element.classList.contains(He)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(He),this._queueCallback(()=>{this._element.classList.remove(He),this._queueCallback(()=>{this._element.style.overflowY=o},this._dialog)},this._dialog),this._element.focus())}_adjustDialog(){const t=this._element.scrollHeight>document.documentElement.clientHeight,e=this._scrollBar.getWidth(),o=e>0;if(o&&!t){const i=J()?"paddingLeft":"paddingRight";this._element.style[i]=`${e}px`}if(!o&&t){const i=J()?"paddingRight":"paddingLeft";this._element.style[i]=`${e}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(t,e){return this.each(function(){const o=Bt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof o[t]>"u")throw new TypeError(`No method named "${t}"`);o[t](e)}})}}c.on(document,Yr,ep,function(n){const t=f.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&n.preventDefault(),c.one(t,bi,i=>{i.defaultPrevented||c.one(t,vi,()=>{Pt(this)&&this.focus()})});const e=f.findOne(Qr);e&&Bt.getInstance(e).hide(),Bt.getOrCreateInstance(t).toggle(this)});Se(Bt);W(Bt);const ip="offcanvas",sp="bs.offcanvas",nt=`.${sp}`,fi=".data-api",lp=`load${nt}${fi}`,ap="Escape",oo="show",io="showing",so="hiding",rp="offcanvas-backdrop",gi=".offcanvas.show",pp=`show${nt}`,cp=`shown${nt}`,up=`hide${nt}`,lo=`hidePrevented${nt}`,Ei=`hidden${nt}`,dp=`resize${nt}`,hp=`click${nt}${fi}`,mp=`keydown.dismiss${nt}`,vp='[data-bs-toggle="offcanvas"]',bp={backdrop:!0,keyboard:!0,scroll:!1},fp={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class at extends K{constructor(t,e){super(t,e),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return bp}static get DefaultType(){return fp}static get NAME(){return ip}toggle(t){return this._isShown?this.hide():this.show(t)}show(t){if(this._isShown||c.trigger(this._element,pp,{relatedTarget:t}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||new on().hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(io);const o=()=>{(!this._config.scroll||this._config.backdrop)&&this._focustrap.activate(),this._element.classList.add(oo),this._element.classList.remove(io),c.trigger(this._element,cp,{relatedTarget:t})};this._queueCallback(o,this._element,!0)}hide(){if(!this._isShown||c.trigger(this._element,up).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(so),this._backdrop.hide();const e=()=>{this._element.classList.remove(oo,so),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||new on().reset(),c.trigger(this._element,Ei)};this._queueCallback(e,this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const t=()=>{if(this._config.backdrop==="static"){c.trigger(this._element,lo);return}this.hide()},e=!!this._config.backdrop;return new hi({className:rp,isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?t:null})}_initializeFocusTrap(){return new mi({trapElement:this._element})}_addEventListeners(){c.on(this._element,mp,t=>{if(t.key===ap){if(this._config.keyboard){this.hide();return}c.trigger(this._element,lo)}})}static jQueryInterface(t){return this.each(function(){const e=at.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}c.on(document,hp,vp,function(n){const t=f.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),lt(this))return;c.one(t,Ei,()=>{Pt(this)&&this.focus()});const e=f.findOne(gi);e&&e!==t&&at.getInstance(e).hide(),at.getOrCreateInstance(t).toggle(this)});c.on(window,lp,()=>{for(const n of f.find(gi))at.getOrCreateInstance(n).show()});c.on(window,dp,()=>{for(const n of f.find("[aria-modal][class*=show][class*=offcanvas-]"))getComputedStyle(n).position!=="fixed"&&at.getOrCreateInstance(n).hide()});Se(at);W(at);const gp=/^aria-[\w-]*$/i,_i={"*":["class","dir","id","lang","role",gp],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},Ep=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),_p=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,yp=(n,t)=>{const e=n.nodeName.toLowerCase();return t.includes(e)?Ep.has(e)?!!_p.test(n.nodeValue):!0:t.filter(o=>o instanceof RegExp).some(o=>o.test(e))};function wp(n,t,e){if(!n.length)return n;if(e&&typeof e=="function")return e(n);const i=new window.DOMParser().parseFromString(n,"text/html"),s=[].concat(...i.body.querySelectorAll("*"));for(const l of s){const a=l.nodeName.toLowerCase();if(!Object.keys(t).includes(a)){l.remove();continue}const r=[].concat(...l.attributes),d=[].concat(t["*"]||[],t[a]||[]);for(const p of r)yp(p,d)||l.removeAttribute(p.nodeName)}return i.body.innerHTML}const Ap="TemplateFactory",Sp={allowList:_i,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"
    "},Op={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},Cp={entry:"(string|element|function|null)",selector:"(string|element)"};class xp extends Xt{constructor(t){super(),this._config=this._getConfig(t)}static get Default(){return Sp}static get DefaultType(){return Op}static get NAME(){return Ap}getContent(){return Object.values(this._config.content).map(t=>this._resolvePossibleFunction(t)).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(t){return this._checkContent(t),this._config.content={...this._config.content,...t},this}toHtml(){const t=document.createElement("div");t.innerHTML=this._maybeSanitize(this._config.template);for(const[i,s]of Object.entries(this._config.content))this._setContent(t,s,i);const e=t.children[0],o=this._resolvePossibleFunction(this._config.extraClass);return o&&e.classList.add(...o.split(" ")),e}_typeCheckConfig(t){super._typeCheckConfig(t),this._checkContent(t.content)}_checkContent(t){for(const[e,o]of Object.entries(t))super._typeCheckConfig({selector:e,entry:o},Cp)}_setContent(t,e,o){const i=f.findOne(o,t);if(i){if(e=this._resolvePossibleFunction(e),!e){i.remove();return}if(Z(e)){this._putElementInTemplate(st(e),i);return}if(this._config.html){i.innerHTML=this._maybeSanitize(e);return}i.textContent=e}}_maybeSanitize(t){return this._config.sanitize?wp(t,this._config.allowList,this._config.sanitizeFn):t}_resolvePossibleFunction(t){return I(t,[this])}_putElementInTemplate(t,e){if(this._config.html){e.innerHTML="",e.append(t);return}e.textContent=t.textContent}}const Tp="tooltip",kp=new Set(["sanitize","allowList","sanitizeFn"]),je="fade",Dp="modal",pe="show",Np=".tooltip-inner",ao=`.${Dp}`,ro="hide.bs.modal",Wt="hover",Ve="focus",Lp="click",Mp="manual",$p="hide",Fp="hidden",Bp="show",Ip="shown",Rp="inserted",Pp="click",Hp="focusin",jp="focusout",Vp="mouseenter",Jp="mouseleave",Gp={AUTO:"auto",TOP:"top",RIGHT:J()?"left":"right",BOTTOM:"bottom",LEFT:J()?"right":"left"},Wp={allowList:_i,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:'',title:"",trigger:"hover focus"},Up={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class jt extends K{constructor(t,e){if(typeof qo>"u")throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(t,e),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return Wp}static get DefaultType(){return Up}static get NAME(){return Tp}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),c.off(this._element.closest(ao),ro,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;const t=c.trigger(this._element,this.constructor.eventName(Bp)),o=(Yo(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(t.defaultPrevented||!o)return;this._disposePopper();const i=this._getTipElement();this._element.setAttribute("aria-describedby",i.getAttribute("id"));const{container:s}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(s.append(i),c.trigger(this._element,this.constructor.eventName(Rp))),this._popper=this._createPopper(i),i.classList.add(pe),"ontouchstart"in document.documentElement)for(const a of[].concat(...document.body.children))c.on(a,"mouseover",ge);const l=()=>{c.trigger(this._element,this.constructor.eventName(Ip)),this._isHovered===!1&&this._leave(),this._isHovered=!1};this._queueCallback(l,this.tip,this._isAnimated())}hide(){if(!this._isShown()||c.trigger(this._element,this.constructor.eventName($p)).defaultPrevented)return;if(this._getTipElement().classList.remove(pe),"ontouchstart"in document.documentElement)for(const i of[].concat(...document.body.children))c.off(i,"mouseover",ge);this._activeTrigger[Lp]=!1,this._activeTrigger[Ve]=!1,this._activeTrigger[Wt]=!1,this._isHovered=null;const o=()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),c.trigger(this._element,this.constructor.eventName(Fp)))};this._queueCallback(o,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(t){const e=this._getTemplateFactory(t).toHtml();if(!e)return null;e.classList.remove(je,pe),e.classList.add(`bs-${this.constructor.NAME}-auto`);const o=Ll(this.constructor.NAME).toString();return e.setAttribute("id",o),this._isAnimated()&&e.classList.add(je),e}setContent(t){this._newContent=t,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(t){return this._templateFactory?this._templateFactory.changeContent(t):this._templateFactory=new xp({...this._config,content:t,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{[Np]:this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(t){return this.constructor.getOrCreateInstance(t.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(je)}_isShown(){return this.tip&&this.tip.classList.contains(pe)}_createPopper(t){const e=I(this._config.placement,[this,t,this._element]),o=Gp[e.toUpperCase()];return En(this._element,t,this._getPopperConfig(o))}_getOffset(){const{offset:t}=this._config;return typeof t=="string"?t.split(",").map(e=>Number.parseInt(e,10)):typeof t=="function"?e=>t(e,this._element):t}_resolvePossibleFunction(t){return I(t,[this._element])}_getPopperConfig(t){const e={placement:t,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:o=>{this._getTipElement().setAttribute("data-popper-placement",o.state.placement)}}]};return{...e,...I(this._config.popperConfig,[e])}}_setListeners(){const t=this._config.trigger.split(" ");for(const e of t)if(e==="click")c.on(this._element,this.constructor.eventName(Pp),this._config.selector,o=>{this._initializeOnDelegatedTarget(o).toggle()});else if(e!==Mp){const o=e===Wt?this.constructor.eventName(Vp):this.constructor.eventName(Hp),i=e===Wt?this.constructor.eventName(Jp):this.constructor.eventName(jp);c.on(this._element,o,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusin"?Ve:Wt]=!0,l._enter()}),c.on(this._element,i,this._config.selector,s=>{const l=this._initializeOnDelegatedTarget(s);l._activeTrigger[s.type==="focusout"?Ve:Wt]=l._element.contains(s.relatedTarget),l._leave()})}this._hideModalHandler=()=>{this._element&&this.hide()},c.on(this._element.closest(ao),ro,this._hideModalHandler)}_fixTitle(){const t=this._element.getAttribute("title");t&&(!this._element.getAttribute("aria-label")&&!this._element.textContent.trim()&&this._element.setAttribute("aria-label",t),this._element.setAttribute("data-bs-original-title",t),this._element.removeAttribute("title"))}_enter(){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(t,e){clearTimeout(this._timeout),this._timeout=setTimeout(t,e)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(t){const e=tt.getDataAttributes(this._element);for(const o of Object.keys(e))kp.has(o)&&delete e[o];return t={...e,...typeof t=="object"&&t?t:{}},t=this._mergeConfigObj(t),t=this._configAfterMerge(t),this._typeCheckConfig(t),t}_configAfterMerge(t){return t.container=t.container===!1?document.body:st(t.container),typeof t.delay=="number"&&(t.delay={show:t.delay,hide:t.delay}),typeof t.title=="number"&&(t.title=t.title.toString()),typeof t.content=="number"&&(t.content=t.content.toString()),t}_getDelegateConfig(){const t={};for(const[e,o]of Object.entries(this._config))this.constructor.Default[e]!==o&&(t[e]=o);return t.selector=!1,t.trigger="manual",t}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(t){return this.each(function(){const e=jt.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(jt);const qp="popover",zp=".popover-header",Kp=".popover-body",Yp={...jt.Default,content:"",offset:[0,8],placement:"right",template:'',trigger:"click"},Xp={...jt.DefaultType,content:"(null|string|element|function)"};class An extends jt{static get Default(){return Yp}static get DefaultType(){return Xp}static get NAME(){return qp}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{[zp]:this._getTitle(),[Kp]:this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(t){return this.each(function(){const e=An.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t]()}})}}W(An);const Qp="scrollspy",Zp="bs.scrollspy",Sn=`.${Zp}`,tc=".data-api",ec=`activate${Sn}`,po=`click${Sn}`,nc=`load${Sn}${tc}`,oc="dropdown-item",Ot="active",ic='[data-bs-spy="scroll"]',Je="[href]",sc=".nav, .list-group",co=".nav-link",lc=".nav-item",ac=".list-group-item",rc=`${co}, ${lc} > ${co}, ${ac}`,pc=".dropdown",cc=".dropdown-toggle",uc={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},dc={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class xe extends K{constructor(t,e){super(t,e),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 uc}static get DefaultType(){return dc}static get NAME(){return Qp}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const t of this._observableSections.values())this._observer.observe(t)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(t){return t.target=st(t.target)||document.body,t.rootMargin=t.offset?`${t.offset}px 0px -30%`:t.rootMargin,typeof t.threshold=="string"&&(t.threshold=t.threshold.split(",").map(e=>Number.parseFloat(e))),t}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(c.off(this._config.target,po),c.on(this._config.target,po,Je,t=>{const e=this._observableSections.get(t.target.hash);if(e){t.preventDefault();const o=this._rootElement||window,i=e.offsetTop-this._element.offsetTop;if(o.scrollTo){o.scrollTo({top:i,behavior:"smooth"});return}o.scrollTop=i}}))}_getNewObserver(){const t={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver(e=>this._observerCallback(e),t)}_observerCallback(t){const e=l=>this._targetLinks.get(`#${l.target.id}`),o=l=>{this._previousScrollData.visibleEntryTop=l.target.offsetTop,this._process(e(l))},i=(this._rootElement||document.documentElement).scrollTop,s=i>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=i;for(const l of t){if(!l.isIntersecting){this._activeTarget=null,this._clearActiveClass(e(l));continue}const a=l.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(s&&a){if(o(l),!i)return;continue}!s&&!a&&o(l)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const t=f.find(Je,this._config.target);for(const e of t){if(!e.hash||lt(e))continue;const o=f.findOne(decodeURI(e.hash),this._element);Pt(o)&&(this._targetLinks.set(decodeURI(e.hash),e),this._observableSections.set(e.hash,o))}}_process(t){this._activeTarget!==t&&(this._clearActiveClass(this._config.target),this._activeTarget=t,t.classList.add(Ot),this._activateParents(t),c.trigger(this._element,ec,{relatedTarget:t}))}_activateParents(t){if(t.classList.contains(oc)){f.findOne(cc,t.closest(pc)).classList.add(Ot);return}for(const e of f.parents(t,sc))for(const o of f.prev(e,rc))o.classList.add(Ot)}_clearActiveClass(t){t.classList.remove(Ot);const e=f.find(`${Je}.${Ot}`,t);for(const o of e)o.classList.remove(Ot)}static jQueryInterface(t){return this.each(function(){const e=xe.getOrCreateInstance(this,t);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(window,nc,()=>{for(const n of f.find(ic))xe.getOrCreateInstance(n)});W(xe);const hc="tab",mc="bs.tab",wt=`.${mc}`,vc=`hide${wt}`,bc=`hidden${wt}`,fc=`show${wt}`,gc=`shown${wt}`,Ec=`click${wt}`,_c=`keydown${wt}`,yc=`load${wt}`,wc="ArrowLeft",uo="ArrowRight",Ac="ArrowUp",ho="ArrowDown",Ge="Home",mo="End",ft="active",vo="fade",We="show",Sc="dropdown",yi=".dropdown-toggle",Oc=".dropdown-menu",Ue=`:not(${yi})`,Cc='.list-group, .nav, [role="tablist"]',xc=".nav-item, .list-group-item",Tc=`.nav-link${Ue}, .list-group-item${Ue}, [role="tab"]${Ue}`,wi='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',qe=`${Tc}, ${wi}`,kc=`.${ft}[data-bs-toggle="tab"], .${ft}[data-bs-toggle="pill"], .${ft}[data-bs-toggle="list"]`;class It extends K{constructor(t){super(t),this._parent=this._element.closest(Cc),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),c.on(this._element,_c,e=>this._keydown(e)))}static get NAME(){return hc}show(){const t=this._element;if(this._elemIsActive(t))return;const e=this._getActiveElem(),o=e?c.trigger(e,vc,{relatedTarget:t}):null;c.trigger(t,fc,{relatedTarget:e}).defaultPrevented||o&&o.defaultPrevented||(this._deactivate(e,t),this._activate(t,e))}_activate(t,e){if(!t)return;t.classList.add(ft),this._activate(f.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.add(We);return}t.removeAttribute("tabindex"),t.setAttribute("aria-selected",!0),this._toggleDropDown(t,!0),c.trigger(t,gc,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(vo))}_deactivate(t,e){if(!t)return;t.classList.remove(ft),t.blur(),this._deactivate(f.getElementFromSelector(t));const o=()=>{if(t.getAttribute("role")!=="tab"){t.classList.remove(We);return}t.setAttribute("aria-selected",!1),t.setAttribute("tabindex","-1"),this._toggleDropDown(t,!1),c.trigger(t,bc,{relatedTarget:e})};this._queueCallback(o,t,t.classList.contains(vo))}_keydown(t){if(![wc,uo,Ac,ho,Ge,mo].includes(t.key))return;t.stopPropagation(),t.preventDefault();const e=this._getChildren().filter(i=>!lt(i));let o;if([Ge,mo].includes(t.key))o=e[t.key===Ge?0:e.length-1];else{const i=[uo,ho].includes(t.key);o=_n(e,t.target,i,!0)}o&&(o.focus({preventScroll:!0}),It.getOrCreateInstance(o).show())}_getChildren(){return f.find(qe,this._parent)}_getActiveElem(){return this._getChildren().find(t=>this._elemIsActive(t))||null}_setInitialAttributes(t,e){this._setAttributeIfNotExists(t,"role","tablist");for(const o of e)this._setInitialAttributesOnChild(o)}_setInitialAttributesOnChild(t){t=this._getInnerElement(t);const e=this._elemIsActive(t),o=this._getOuterElement(t);t.setAttribute("aria-selected",e),o!==t&&this._setAttributeIfNotExists(o,"role","presentation"),e||t.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(t,"role","tab"),this._setInitialAttributesOnTargetPanel(t)}_setInitialAttributesOnTargetPanel(t){const e=f.getElementFromSelector(t);e&&(this._setAttributeIfNotExists(e,"role","tabpanel"),t.id&&this._setAttributeIfNotExists(e,"aria-labelledby",`${t.id}`))}_toggleDropDown(t,e){const o=this._getOuterElement(t);if(!o.classList.contains(Sc))return;const i=(s,l)=>{const a=f.findOne(s,o);a&&a.classList.toggle(l,e)};i(yi,ft),i(Oc,We),o.setAttribute("aria-expanded",e)}_setAttributeIfNotExists(t,e,o){t.hasAttribute(e)||t.setAttribute(e,o)}_elemIsActive(t){return t.classList.contains(ft)}_getInnerElement(t){return t.matches(qe)?t:f.findOne(qe,t)}_getOuterElement(t){return t.closest(xc)||t}static jQueryInterface(t){return this.each(function(){const e=It.getOrCreateInstance(this);if(typeof t=="string"){if(e[t]===void 0||t.startsWith("_")||t==="constructor")throw new TypeError(`No method named "${t}"`);e[t]()}})}}c.on(document,Ec,wi,function(n){["A","AREA"].includes(this.tagName)&&n.preventDefault(),!lt(this)&&It.getOrCreateInstance(this).show()});c.on(window,yc,()=>{for(const n of f.find(kc))It.getOrCreateInstance(n)});W(It);const Dc="toast",Nc="bs.toast",ct=`.${Nc}`,Lc=`mouseover${ct}`,Mc=`mouseout${ct}`,$c=`focusin${ct}`,Fc=`focusout${ct}`,Bc=`hide${ct}`,Ic=`hidden${ct}`,Rc=`show${ct}`,Pc=`shown${ct}`,Hc="fade",bo="hide",ce="show",ue="showing",jc={animation:"boolean",autohide:"boolean",delay:"number"},Vc={animation:!0,autohide:!0,delay:5e3};class Te extends K{constructor(t,e){super(t,e),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return Vc}static get DefaultType(){return jc}static get NAME(){return Dc}show(){if(c.trigger(this._element,Rc).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add(Hc);const e=()=>{this._element.classList.remove(ue),c.trigger(this._element,Pc),this._maybeScheduleHide()};this._element.classList.remove(bo),Yt(this._element),this._element.classList.add(ce,ue),this._queueCallback(e,this._element,this._config.animation)}hide(){if(!this.isShown()||c.trigger(this._element,Bc).defaultPrevented)return;const e=()=>{this._element.classList.add(bo),this._element.classList.remove(ue,ce),c.trigger(this._element,Ic)};this._element.classList.add(ue),this._queueCallback(e,this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(ce),super.dispose()}isShown(){return this._element.classList.contains(ce)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout(()=>{this.hide()},this._config.delay)))}_onInteraction(t,e){switch(t.type){case"mouseover":case"mouseout":{this._hasMouseInteraction=e;break}case"focusin":case"focusout":{this._hasKeyboardInteraction=e;break}}if(e){this._clearTimeout();return}const o=t.relatedTarget;this._element===o||this._element.contains(o)||this._maybeScheduleHide()}_setListeners(){c.on(this._element,Lc,t=>this._onInteraction(t,!0)),c.on(this._element,Mc,t=>this._onInteraction(t,!1)),c.on(this._element,$c,t=>this._onInteraction(t,!0)),c.on(this._element,Fc,t=>this._onInteraction(t,!1))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(t){return this.each(function(){const e=Te.getOrCreateInstance(this,t);if(typeof t=="string"){if(typeof e[t]>"u")throw new TypeError(`No method named "${t}"`);e[t](this)}})}}Se(Te);W(Te);var Jc=Object.defineProperty,Gc=(n,t,e)=>t in n?Jc(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e,E=(n,t,e)=>(Gc(n,typeof t!="symbol"?t+"":t,e),e),Wc=class{constructor(n){E(this,"_distinctEvent"),E(this,"_boundedEvents",[]),this._distinctEvent=(n==null?void 0:n.distinctEvent)??!1}get boundedEvents(){return this._boundedEvents}dispose(){this.unbindAll(),this._boundedEvents=[]}bind(n,t,e,o){let i=Array.isArray(t)?t:[t];if(n!=null&&n.forEach)n==null||n.forEach(s=>{for(let l of i)(!this._distinctEvent||this._distinctEvent&&!this.hasBinding(s,l))&&(s.addEventListener(l,e,o),this._boundedEvents.push({element:s,eventName:l,listener:e}))});else for(let s of i)(!this._distinctEvent||this._distinctEvent&&!this.hasBinding(n,s))&&(n.addEventListener(s,e,o),this._boundedEvents.push({element:n,eventName:s,listener:e}))}hasBinding(n,t){return this._boundedEvents.some(e=>e.element===n&&(!t||e.eventName===t))}unbind(n,t,e){var o;if(n){let i=Array.isArray(n)?n:[n],s=Array.isArray(t)?t||"":[t||""];for(let l of i){e||(e=this._boundedEvents.find(a=>{if(a.element===l&&(!t||a.eventName===t))return a.listener}));for(let a of s)(o=l==null?void 0:l.removeEventListener)==null||o.call(l,a,e)}}}unbindAll(){for(;this._boundedEvents.length>0;){let n=this._boundedEvents.pop(),{element:t,eventName:e,listener:o}=n;this.unbind(t,e,o)}}},Ai=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};Ai.locales={"en-US":{formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(n,t){return`${n} of ${t} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}}};var Si=Ai.locales,Uc=50,qc=4,Oi={name:"",placeholder:"",classes:"",classPrefix:"",data:void 0,locale:void 0,selectAll:!0,single:void 0,singleRadio:!1,multiple:!1,hideOptgroupCheckboxes:!1,multipleWidth:80,width:void 0,dropWidth:void 0,maxHeight:250,maxHeightUnit:"px",position:"bottom",displayValues:!1,displayTitle:!1,displayDelimiter:", ",minimumCountSelected:3,ellipsis:!1,isOpen:!1,keepOpen:!1,openOnHover:!1,container:null,filter:!1,filterGroup:!1,filterPlaceholder:"",filterAcceptOnEnter:!1,filterByDataLength:void 0,customFilter(n){let{text:t,label:e,search:o}=n;return(e||t||"").includes(o)},showClear:!1,autoAdjustDropHeight:!1,autoAdjustDropPosition:!1,autoAdjustDropWidthByTextSize:!1,adjustedHeightPadding:10,useSelectOptionLabel:!1,useSelectOptionLabelToHtml:!1,styler:()=>!1,textTemplate:n=>n.innerHTML.trim(),labelTemplate:n=>n.label,onOpen:()=>!1,onClose:()=>!1,onCheckAll:()=>!1,onUncheckAll:()=>!1,onFocus:()=>!1,onBlur:()=>!1,onOptgroupClick:()=>!1,onBeforeClick:()=>!0,onClick:()=>!1,onFilter:()=>!1,onClear:()=>!1,onAfterCreate:()=>!1,onDestroy:()=>!1,onAfterDestroy:()=>!1,onDestroyed:()=>!1},zc=["init","getOptions","refreshOptions","getSelects","setSelects","enable","disable","open","close","check","uncheck","checkAll","uncheckAll","checkInvert","focus","blur","refresh","destroy"];Object.assign(Oi,Si["en-US"]);var Kc={BLOCK_ROWS:Uc,CLUSTER_BLOCKS:qc,DEFAULTS:Oi,METHODS:zc},z=Kc,Yc=class{constructor(n){var e;E(this,"cache"),E(this,"clusterRows"),E(this,"dataStart"),E(this,"dataEnd"),E(this,"rows"),E(this,"scrollEl"),E(this,"blockHeight"),E(this,"clusterHeight"),E(this,"contentEl"),E(this,"parentEl"),E(this,"itemHeight"),E(this,"lastCluster"),E(this,"scrollTop"),E(this,"destroy"),E(this,"callback"),E(this,"sanitizer"),this.rows=n.rows,this.scrollEl=n.scrollEl,this.contentEl=n.contentEl,this.parentEl=(e=n.contentEl)==null?void 0:e.parentElement,this.callback=n.callback,this.cache={},this.scrollTop=this.scrollEl.scrollTop,this.initDOM(this.rows),this.scrollEl.scrollTop=this.scrollTop,this.lastCluster=0;let t=()=>{this.lastCluster!==(this.lastCluster=this.getNum())&&(this.initDOM(this.rows),this.callback())};this.scrollEl.addEventListener("scroll",t,!1),this.destroy=()=>{this.contentEl.innerHTML="",this.scrollEl.removeEventListener("scroll",t,!1)}}initDOM(n){if(typeof this.clusterHeight>"u"){this.cache.scrollTop=this.scrollEl.scrollTop;let a=n[0]+n[0]+n[0];this.contentEl.innerHTML=this.sanitizer?this.sanitizer(`${a}`):`${a}`,this.cache.data=a,this.getRowsHeight()}let t=this.initData(n,this.getNum()),e=t.rows.join(""),o=this.checkChanges("data",e),i=this.checkChanges("top",t.topOffset),s=this.checkChanges("bottom",t.bottomOffset),l=[];o&&i?(t.topOffset&&l.push(this.getExtra("top",t.topOffset)),l.push(e),t.bottomOffset&&l.push(this.getExtra("bottom",t.bottomOffset)),this.contentEl.innerHTML=this.sanitizer?this.sanitizer(l.join("")):l.join("")):s&&this.contentEl.lastChild&&(this.contentEl.lastChild.style.height=`${t.bottomOffset}px`)}getRowsHeight(){var n;if(typeof this.itemHeight>"u"){let t=((n=this.parentEl)==null?void 0:n.style.display)||"";this.parentEl&&(t===""||t==="none")&&(this.parentEl.style.display="block");let e=this.contentEl.children,o=e[Math.floor(e.length/2)];this.itemHeight=o.offsetHeight,this.parentEl&&(this.parentEl.style.display=t)}this.blockHeight=this.itemHeight*z.BLOCK_ROWS,this.clusterRows=z.BLOCK_ROWS*z.CLUSTER_BLOCKS,this.clusterHeight=this.blockHeight*z.CLUSTER_BLOCKS}getNum(){this.scrollTop=this.scrollEl.scrollTop;let n=(this.clusterHeight||0)-(this.blockHeight||0);return n&&Math.floor(this.scrollTop/n)||0}initData(n,t){if(n.length{let s=t[i];typeof s=="object"?Object.assign(o[i],s):o[i]=t[i]}),e&&e.appendChild&&e.appendChild(o),o}function sn(n){var l;if(!n)return;let t=(l=n==null?void 0:n.getBoundingClientRect)==null?void 0:l.call(n),e=0,o=0,i=0,s=0;return(t==null?void 0:t.top)!==void 0&&t.left!==void 0&&(e=t.top+window.pageYOffset,o=t.left+window.pageXOffset,s=t.right,i=t.bottom),{top:e,left:o,bottom:i,right:s}}function de(n,t,e){let o=parseFloat(n.style[e]);if(!o||isNaN(o)){switch(t){case"outer":o=n[e==="width"?"offsetWidth":"offsetHeight"];break;case"scroll":o=n[e==="width"?"scrollWidth":"scrollHeight"];break;case"inner":default:o=n[e==="width"?"clientWidth":"clientHeight"];break}o=n.getBoundingClientRect()[e]}if(!o||isNaN(o)){let i=n.style.display,s=n.style.position;n.style.display="block",n.style.position="absolute";let l=window.getComputedStyle(n)[e];o=parseFloat(l),isNaN(o)&&(o=0),n.style.display=i,n.style.position=s}return o||0}function fo(n,t){let e=null,o=n==null?void 0:n.parentElement;for(;o;){let[i,s,l,a]=t.match(/^([a-z]*)([#.]{1})([a-z\-]+)$/i)||[];if(l&&a)for(let r of a.replace(l,"").split(" "))o.classList.contains(r)&&(s?(o==null?void 0:o.tagName.toLowerCase())===s&&(e=o):e=o);o=o.parentElement}return e}function Xc(n,t){var e;(e=n.parentNode)==null||e.insertBefore(t,n.nextSibling)}function go(n){let t=typeof n=="string"?n:String(n),e={"&":"&","<":"<",">":">",'"':""","'":"'"};return(t||"").toString().replace(/[&<>"']/g,o=>e[o])}function Eo(n,t){n!=null&&n.style&&(n.style.display=n.style.display==="none"&&t!==!1||t===!0?"block":"none")}function Qc(){return{left:window.pageXOffset||document.documentElement.scrollLeft||0,top:window.pageYOffset||document.documentElement.scrollTop||0}}function Zc(n,t,e=!1){let o=Object.keys(n),i=Object.keys(t);if(e&&o.length!==i.length)return!1;for(let s of o)if(i.includes(s)&&n[s]!==t[s])return!1;return!0}function ln(n){let t=()=>{let i={};for(let s in n)Object.prototype.hasOwnProperty.call(n,s)&&(i[s]=ln(n[s]));return i},e=()=>n.map(i=>ln(i)),o=Object.prototype.toString.call(n).slice(8,-1).toLowerCase();return o==="object"?t():o==="array"?e():n}function tu(n){let t=0;return n.forEach((e,o)=>{e.type==="optgroup"?(e._key=`group_${o}`,e.visible=typeof e.visible>"u"?!0:e.visible,e.children.forEach((i,s)=>{i&&(i.visible=typeof(i==null?void 0:i.visible)>"u"?!0:i.visible,i.divider||(i._key=`option_${o}_${s}`,t+=1))})):(e.visible=typeof e.visible>"u"?!0:e.visible,e.divider||(e._key=`option_${o}`,t+=1))}),t}function he(n,t,e){if(Array.isArray(n))for(let o of n){if(o[t]===e||o[t]===`${+o[t]}`&&+o[t]===e)return o;if(o.type==="optgroup"){for(let i of o.children)if(i&&(i[t]===e||i[t]===`${+i[t]}`&&+i[t]===e))return i}}}function eu(n){var i;let t=document.createElement("div");t.innerHTML=n;let e=t.getElementsByTagName("script"),o=e.length;for(;o--;)(i=e[o].parentNode)==null||i.removeChild(e[o]);return t.innerHTML}function Ke(n){return Object.keys(n).forEach(t=>n[t]===void 0?delete n[t]:""),n}function Ct(n){return typeof n!="string"?n:n.normalize?n.normalize("NFD").replace(/[\u0300-\u036F]/g,""):[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}].reduce((t,{letters:e,base:o})=>t.replace(e,o),n)}var nu=class{constructor(n,t){this.elm=n,E(this,"_bindEventService"),E(this,"allSelected",!1),E(this,"fromHtml",!1),E(this,"choiceElm"),E(this,"closeElm"),E(this,"filterText",""),E(this,"updateData",[]),E(this,"data",[]),E(this,"dataTotal"),E(this,"dropElm"),E(this,"okButtonElm"),E(this,"filterParentElm"),E(this,"ulElm"),E(this,"parentElm"),E(this,"labelElm"),E(this,"selectAllParentElm"),E(this,"selectAllElm"),E(this,"searchInputElm"),E(this,"selectGroupElms"),E(this,"selectItemElms"),E(this,"disableItemElms"),E(this,"noResultsElm"),E(this,"options"),E(this,"selectAllName",""),E(this,"selectGroupName",""),E(this,"selectItemName",""),E(this,"tabIndex"),E(this,"updateDataStart"),E(this,"updateDataEnd"),E(this,"virtualScroll"),E(this,"locales",{}),this.options=Object.assign({},z.DEFAULTS,this.elm.dataset,t),this._bindEventService=new Wc({distinctEvent:!0})}init(){this.initLocale(),this.initContainer(),this.initData(),this.initSelected(!0),this.initFilter(),this.initDrop(),this.initView(),this.options.onAfterCreate()}destroy(n=!0){var t,e,o,i,s;this.elm&&this.parentElm&&(this.options.onDestroy({hardDestroy:n}),n&&this.options.onHardDestroy(),this.elm.parentElement&&this.parentElm.parentElement&&this.elm.parentElement.insertBefore(this.elm,this.parentElm.parentElement.firstChild),this.elm.classList.remove("ms-offscreen"),this._bindEventService.unbindAll(),this.tabIndex&&(this.elm.tabIndex=+this.tabIndex),(t=this.virtualScroll)==null||t.destroy(),(e=this.dropElm)==null||e.remove(),(o=this.parentElm.parentNode)==null||o.removeChild(this.parentElm),this.fromHtml&&(delete this.options.data,this.fromHtml=!1),this.options.onAfterDestroy({hardDestroy:n}),n&&((s=(i=this.options).onAfterHardDestroy)==null||s.call(i),Object.keys(this.options).forEach(l=>delete this[l])))}initLocale(){if(this.options.locale){let n=window.multipleSelect.locales,t=this.options.locale.split(/-|_/);if(t[0]=t[0].toLowerCase(),t[1]&&(t[1]=t[1].toUpperCase()),n[this.options.locale])Object.assign(this.options,n[this.options.locale]);else if(n[t.join("-")])Object.assign(this.options,n[t.join("-")]);else if(n[t[0]])Object.assign(this.options,n[t[0]]);else throw new Error(`[multiple-select-vanilla] invalid locales "${this.options.locale}", make sure to import it before using it`)}}initContainer(){var i;let n=this.elm.getAttribute("name")||this.options.name||"";this.options.classes&&this.elm.classList.add(this.options.classes),this.options.classPrefix&&(this.elm.classList.add(this.options.classPrefix),this.options.size&&this.elm.classList.add(`${this.options.classPrefix}-${this.options.size}`)),this.elm.style.display="none",this.labelElm=this.elm.closest("label"),!this.labelElm&&this.elm.id&&(this.labelElm=document.createElement("label"),this.labelElm.htmlFor=this.elm.id),(i=this.labelElm)!=null&&i.querySelector("input")&&(this.labelElm=null),typeof this.options.single>"u"&&(this.options.single=!this.elm.multiple),this.parentElm=N("div",{className:`ms-parent ${this.elm.className||""} ${this.options.classes}`,dataset:{test:"sel"}});let t=this.elm.getAttribute("title")||"";t&&(this.parentElm.title=t),this.options.placeholder=this.options.placeholder||this.elm.getAttribute("placeholder")||"",this.tabIndex=this.elm.getAttribute("tabindex");let e="";this.tabIndex!==null&&(this.elm.tabIndex=-1,e=this.tabIndex&&`tabindex="${this.tabIndex}"`),this.choiceElm=N("button",{className:"ms-choice",type:"button"},this.parentElm),isNaN(e)&&(this.choiceElm.tabIndex=+e),this.choiceElm.appendChild(N("span",{className:"ms-placeholder",textContent:this.options.placeholder})),this.options.showClear&&this.choiceElm.appendChild(N("div",{className:"icon-close"})),this.choiceElm.appendChild(N("div",{className:"icon-caret"})),this.dropElm=N("div",{className:`ms-drop ${this.options.position}`},this.parentElm),n&&(this.dropElm.dataset.name=n);let o=this.elm.getAttribute("data-test")||this.options.dataTest;o&&(this.parentElm.dataset.test=o,this.dropElm.dataset.test=o),this.closeElm=this.choiceElm.querySelector(".icon-close"),this.options.dropWidth&&(this.dropElm.style.width=typeof this.options.dropWidth=="string"?this.options.dropWidth:`${this.options.dropWidth}px`),Xc(this.elm,this.parentElm),this.elm.disabled&&this.choiceElm.classList.add("disabled"),this.selectAllName=`data-name="selectAll${n}"`,this.selectGroupName=`data-name="selectGroup${n}"`,this.selectItemName=`data-name="selectItem${n}"`,this.options.keepOpen||(this._bindEventService.unbind(document.body,"click"),this._bindEventService.bind(document.body,"click",s=>{s.target===this.choiceElm||fo(s.target,".ms-choice")===this.choiceElm||(s.target===this.dropElm||fo(s.target,".ms-drop")!==this.dropElm&&s.target!==this.elm)&&this.options.isOpen&&this.close()}))}initData(){let n=[];if(this.options.data){if(Array.isArray(this.options.data))this.data=this.options.data.map(t=>typeof t=="string"||typeof t=="number"?{text:t,value:t}:t);else if(typeof this.options.data=="object"){for(let[t,e]of Object.entries(this.options.data))n.push({value:t,text:`${e}`});this.data=n}}else this.elm.childNodes.forEach(t=>{this.initRow(t)&&n.push(this.initRow(t))}),this.options.data=n,this.data=n,this.fromHtml=!0;this.dataTotal=tu(this.data||[])}initRow(n,t){var o,i;let e={};return((o=n.tagName)==null?void 0:o.toLowerCase())==="option"?(e.type="option",e.text=this.options.textTemplate(n),e.value=n.value,e.visible=!0,e.selected=!!n.selected,e.disabled=t||n.disabled,e.classes=n.getAttribute("class")||"",e.title=n.getAttribute("title")||"",n.dataset.value&&(e._value=n.dataset.value),Object.keys(n.dataset).length&&(e._data=n.dataset,e._data.divider&&(e.divider=e._data.divider)),e):((i=n.tagName)==null?void 0:i.toLowerCase())==="optgroup"?(e.type="optgroup",e.label=this.options.labelTemplate(n),e.visible=!0,e.selected=!!n.selected,e.disabled=n.disabled,e.children=[],Object.keys(n.dataset).length&&(e._data=n.dataset),n.childNodes.forEach(s=>{e.children.push(this.initRow(s,e.disabled))}),e):null}initDrop(){this.initList(),this.update(!0),this.options.isOpen&&this.open(10),this.options.openOnHover&&this.parentElm&&(this._bindEventService.bind(this.parentElm,"mouseover",()=>this.open(null)),this._bindEventService.bind(this.parentElm,"mouseout",()=>this.close()))}initFilter(){if(this.filterText="",this.options.filter||!this.options.filterByDataLength)return;let n=0;for(let t of this.data||[])t.type==="optgroup"?n+=t.children.length:n+=1;this.options.filter=n>this.options.filterByDataLength}initList(){if(this.options.filter&&(this.filterParentElm=N("div",{className:"ms-search"},this.dropElm),this.filterParentElm.appendChild(N("input",{autocomplete:"off",autocapitalize:"off",spellcheck:!1,type:"text",placeholder:this.options.filterPlaceholder||"🔎︎"}))),this.options.selectAll&&!this.options.single){let n=this.elm.getAttribute("name")||this.options.name||"";this.selectAllParentElm=N("div",{className:"ms-select-all"});let t=document.createElement("label");N("input",{type:"checkbox",checked:this.allSelected,dataset:{name:`selectAll${n}`}},t),t.appendChild(N("span",{textContent:this.formatSelectAll()})),this.selectAllParentElm.appendChild(t),this.dropElm.appendChild(this.selectAllParentElm)}this.ulElm=document.createElement("ul"),this.dropElm.appendChild(this.ulElm),this.options.showOkButton&&!this.options.single&&(this.okButtonElm=N("button",{className:"ms-ok-button",type:"button",textContent:this.formatOkButton()},this.dropElm)),this.initListItems()}initListItems(){var e;let n=this.getListRows(),t=0;if(this.options.selectAll&&!this.options.single&&(t=-1),n.length>z.BLOCK_ROWS*z.CLUSTER_BLOCKS){(e=this.virtualScroll)==null||e.destroy();let o=this.dropElm.style.display!=="none";o||(this.dropElm.style.left="-10000",this.dropElm.style.display="block");let i=()=>{var s,l;this.virtualScroll&&(this.updateDataStart=this.virtualScroll.dataStart+t,this.updateDataEnd=this.virtualScroll.dataEnd+t,this.updateDataStart<0&&(this.updateDataStart=0),this.updateDataEnd>(((s=this.data)==null?void 0:s.length)??0)&&(this.updateDataEnd=((l=this.data)==null?void 0:l.length)??0))};this.ulElm&&(this.virtualScroll=new Yc({rows:n,scrollEl:this.ulElm,contentEl:this.ulElm,sanitizer:this.options.sanitizer,callback:()=>{i(),this.events()}})),i(),o||(this.dropElm.style.left="0",this.dropElm.style.display="none")}else this.ulElm&&(this.ulElm.innerHTML=this.options.sanitizer?this.options.sanitizer(n.join("")):n.join("")),this.updateDataStart=0,this.updateDataEnd=this.updateData.length,this.virtualScroll=null;this.events()}getListRows(){var t;let n=[];return this.updateData=[],(t=this.data)==null||t.forEach(e=>{n.push(...this.initListItem(e))}),n.push(`
  • ${this.formatNoMatchesFound()}
  • `),n}initListItem(n,t=0){let e=this.options.renderOptionLabelAsHtml||this.options.useSelectOptionLabelToHtml,o=n!=null&&n.title?`title="${n.title}"`:"",i=this.options.multiple?"multiple":"",s=this.options.single?"radio":"checkbox",l="";if(!(n!=null&&n.visible))return[];if(this.updateData.push(n),this.options.single&&!this.options.singleRadio&&(l="hide-radio "),n.selected&&(l+="selected "),n.type==="optgroup"){let d=this.options.styler(n),p=d?`style="${d}"`:"",v=[],b=this.options.hideOptgroupCheckboxes||this.options.single?``:``;return!l.includes("hide-radio")&&(this.options.hideOptgroupCheckboxes||this.options.single)&&(l+="hide-radio "),b.push(` + >`;return!l.includes("hide-radio")&&(this.options.hideOptgroupCheckboxes||this.options.single)&&(l+="hide-radio "),v.push(`
  • - `),n.children.forEach(v=>{b.push(...this.initListItem(v,1))}),b}let a=this.options.styler(n),r=a?`style="${a}"`:"";return l+=n.classes||"",t&&this.options.single&&(l+=`option-level-${t} `),n.divider?'
  • ':[` + `),n.children.forEach(m=>{v.push(...this.initListItem(m,1))}),v}let a=this.options.styler(n),r=a?`style="${a}"`:"";return l+=n.classes||"",t&&this.options.single&&(l+=`option-level-${t} `),n.divider?'
  • ':[`
  • - `]}initSelected(n=!1){var e,o;let t=0;for(let i of this.data||[])if(i.type==="optgroup"){let s=i.children.filter(l=>l&&l.selected&&!l.disabled&&l.visible).length;i.children.length&&(i.selected=!this.options.single&&s&&s===i.children.filter(l=>l&&!l.disabled&&l.visible&&!l.divider).length),t+=s}else t+=i.selected&&!i.disabled&&i.visible?1:0;this.allSelected=((e=this.data)==null?void 0:e.filter(i=>i.selected&&!i.disabled&&i.visible).length)===((o=this.data)==null?void 0:o.filter(i=>!i.disabled&&i.visible&&!i.divider).length),n||(this.allSelected?this.options.onCheckAll():t===0&&this.options.onUncheckAll())}initView(){let n;window.getComputedStyle?(n=window.getComputedStyle(this.elm).width,n==="auto"&&(n=de(this.dropElm,"outer","width")+20)):n=de(this.elm,"outer","width")+20,this.parentElm.style.width=`${this.options.width||n}px`,this.elm.classList.add("ms-offscreen")}events(){this._bindEventService.unbind(this.okButtonElm),this._bindEventService.unbind(this.searchInputElm),this._bindEventService.unbind(this.selectAllElm),this._bindEventService.unbind(this.selectGroupElms),this._bindEventService.unbind(this.selectItemElms),this._bindEventService.unbind(this.disableItemElms),this._bindEventService.unbind(this.noResultsElm),this.searchInputElm=this.dropElm.querySelector(".ms-search input"),this.selectAllElm=this.dropElm.querySelector(`input[${this.selectAllName}]`),this.selectGroupElms=this.dropElm.querySelectorAll(`input[${this.selectGroupName}],span[${this.selectGroupName}]`),this.selectItemElms=this.dropElm.querySelectorAll(`input[${this.selectItemName}]:enabled`),this.disableItemElms=this.dropElm.querySelectorAll(`input[${this.selectItemName}]:disabled`),this.noResultsElm=this.dropElm.querySelector(".ms-no-results");let n=t=>{t.preventDefault(),!t.target.classList.contains("icon-close")&&this[this.options.isOpen?"close":"open"]()};this.labelElm&&this._bindEventService.bind(this.labelElm,"click",t=>{t.target.nodeName.toLowerCase()==="label"&&(n(t),(!this.options.filter||!this.options.isOpen)&&this.focus(),t.stopPropagation())}),this._bindEventService.bind(this.choiceElm,"click",n),this.options.onFocus&&this._bindEventService.bind(this.choiceElm,"focus",this.options.onFocus),this.options.onBlur&&this._bindEventService.bind(this.choiceElm,"blur",this.options.onBlur),this._bindEventService.bind(this.parentElm,"keydown",t=>{t.code==="Escape"&&!this.options.keepOpen&&(this.close(),this.choiceElm.focus())}),this.closeElm&&this._bindEventService.bind(this.closeElm,"click",t=>{t.preventDefault(),this._checkAll(!1,!0),this.initSelected(!1),this.updateSelected(),this.update(),this.options.onClear()}),this.searchInputElm&&(this._bindEventService.bind(this.searchInputElm,"keydown",t=>{t.code==="Tab"&&t.shiftKey&&this.close()}),this._bindEventService.bind(this.searchInputElm,"keyup",t=>{var e,o,i;if(this.options.filterAcceptOnEnter&&["Enter","Space"].includes(t.code)&&((e=this.searchInputElm)!=null&&e.value)){if(this.options.single){let s=[];if((o=this.selectItemElms)==null||o.forEach(l=>{var a;((a=l.closest("li"))==null?void 0:a.style.display)!=="none"&&s.push(l)}),s.length){let[l]=this.selectItemName.split("=");s[0].hasAttribute(l)&&this.setSelects([s[0].value])}}else(i=this.selectAllElm)==null||i.click();this.close(),this.focus();return}this.filter()})),this.selectAllElm&&(this._bindEventService.unbind(this.selectAllElm,"click"),this._bindEventService.bind(this.selectAllElm,"click",t=>{var e;this._checkAll((e=t.currentTarget)==null?void 0:e.checked)})),this.okButtonElm&&(this._bindEventService.unbind(this.okButtonElm,"click"),this._bindEventService.bind(this.okButtonElm,"click",t=>{n(t),t.stopPropagation()})),this._bindEventService.bind(this.selectGroupElms,"click",t=>{let e=t.currentTarget,o=e.checked,i=he(this.data,"_key",e.dataset.key);this._checkGroup(i,o),this.options.onOptgroupClick(Ke({label:i.label,selected:i.selected,data:i._data,children:i.children.map(s=>{if(s)return Ke({text:s.text,value:s.value,selected:s.selected,disabled:s.disabled,data:s._data})})}))}),this._bindEventService.bind(this.selectItemElms,"click",t=>{let e=t.currentTarget,o=e.checked,i=he(this.data,"_key",e.dataset.key);this._check(i,o),this.options.onClick(Ke({text:i.text,value:i.value,selected:i.selected,data:i._data})),this.options.single&&this.options.isOpen&&!this.options.keepOpen&&this.close()})}open(n=0){if(n!==null&&n>=0){let t;clearTimeout(t),t=setTimeout(()=>this.openDrop(),n)}else this.openDrop()}openDrop(){var i,s,l,a,r,d,p;if((i=this.choiceElm)!=null&&i.classList.contains("disabled"))return;if(this.options.isOpen=!0,this.parentElm.classList.add("ms-parent-open"),(l=(s=this.choiceElm)==null?void 0:s.querySelector("div"))==null||l.classList.add("open"),this.dropElm.style.display="block",(a=this.selectAllElm)!=null&&a.parentElement&&(this.selectAllElm.parentElement.style.display="block"),this.noResultsElm&&(this.noResultsElm.style.display="none"),(r=this.data)!=null&&r.length||((d=this.selectAllElm)!=null&&d.parentElement&&(this.selectAllElm.parentElement.style.display="none"),this.noResultsElm&&(this.noResultsElm.style.display="block")),this.options.container){let b=sn(this.dropElm),m;this.options.container instanceof Node?m=this.options.container:typeof this.options.container=="string"&&(m=this.options.container==="body"?document.body:document.querySelector(this.options.container)),m.appendChild(this.dropElm),this.dropElm.style.top=`${(b==null?void 0:b.top)??0}px`,this.dropElm.style.left=`${(b==null?void 0:b.left)??0}px`,this.dropElm.style.minWidth="auto",this.dropElm.style.width=`${de(this.parentElm,"outer","width")}px`}let n=this.options.minHeight,t=this.options.maxHeight;if(this.options.maxHeightUnit==="row"){let b=this.dropElm.querySelector("ul>li");t=de(b,"outer","height")*this.options.maxHeight}let e=this.dropElm.querySelector("ul");e&&(n&&(e.style.minHeight=`${n}px`),e.style.maxHeight=`${t}px`),this.dropElm.querySelectorAll(".multiple").forEach(b=>b.style.width=`${this.options.multipleWidth}px`),(p=this.data)!=null&&p.length&&this.options.filter&&(this.searchInputElm&&(this.searchInputElm.value="",this.searchInputElm.focus()),this.filter(!0)),this.options.autoAdjustDropWidthByTextSize&&this.adjustDropWidthByText();let o=this.options.position;if(this.options.autoAdjustDropHeight){if(this.options.autoAdjustDropPosition){let{bottom:b,top:m}=ze(this.dropElm),v=this.dropElm.getBoundingClientRect().height;o=bb?"top":"bottom"}this.adjustDropHeight(o)}this.options.autoAdjustDropPosition&&this.adjustDropPosition(!0),this.options.onOpen()}close(){var n,t;this.options.isOpen=!1,this.parentElm.classList.remove("ms-parent-open"),(t=(n=this.choiceElm)==null?void 0:n.querySelector("div"))==null||t.classList.remove("open"),this.dropElm.style.display="none",this.options.container&&(this.parentElm.appendChild(this.dropElm),this.dropElm.style.top="auto",this.dropElm.style.left="auto"),this.options.onClose()}update(n=!1){var r;let t=this.getSelects(),e=this.getSelects("text");this.options.displayValues&&(e=t);let o=(r=this.choiceElm)==null?void 0:r.querySelector("span"),i=t.length,s=null,l=()=>{if(this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml){let d=t.join(this.options.displayDelimiter);return this.options.useSelectOptionLabelToHtml?eu(d):d}return e.join(this.options.displayDelimiter)};if(o){if(i===0){let d=this.options.placeholder||"";o.classList.add("ms-placeholder"),o.innerHTML=this.options.sanitizer?this.options.sanitizer(d):d}else ithis.options.minimumCountSelected?s=`${e.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter)}...`:this.formatCountSelected(i,this.dataTotal)&&i>this.options.minimumCountSelected?s=this.formatCountSelected(i,this.dataTotal):s=l();if(s!==null&&(o==null||o.classList.remove("ms-placeholder"),this.options.renderOptionLabelAsHtml||this.options.useSelectOptionLabelToHtml?o.innerHTML=this.options.sanitizer?this.options.sanitizer(s):s:o.textContent=s),this.options.displayTitle||this.options.addTitle){this.options.addTitle&&console.warn("[Multiple-Select-Vanilla] Please note that the `addTitle` option was replaced with `displayTitle`.");let d=this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml?"value":"text";o.title=this.getSelects(d).join(this.options.displayDelimiter)}}let a=this.getSelects();this.options.single?this.elm.value=a.length?a[0]:"":Array.from(this.elm.options).forEach(d=>{d.selected=a.some(p=>p===d.value)}),n||this.elm.dispatchEvent(new Event("change"))}updateSelected(){var t;for(let e=this.updateDataStart;ee.visible).length)===0;this.selectAllElm&&(this.selectAllElm.checked=this.allSelected,Eo(this.selectAllElm.closest("li"),!n)),Eo(this.noResultsElm,n),this.virtualScroll&&(this.virtualScroll.rows=this.getListRows())}getData(){return this.options.data}getOptions(n=!0){let t=Object.assign({},this.options);return delete t.data,n?ln(t):this.options}refreshOptions(n){Zc(this.options,n,!0)||(this.options=Object.assign(this.options,n),this.destroy(!1),this.init())}getDropElement(){return this.dropElm}getParentElement(){return this.parentElm}getSelects(n="value"){let t=[];for(let e of this.data||[])if(e.type==="optgroup"){let o=e.children.filter(i=>i==null?void 0:i.selected);if(!o.length)continue;if(n==="value"||this.options.single)t.push(...o.map(i=>n==="value"&&i._value||i[n]));else{let i=[];i.push("["),i.push(e.label),i.push(`: ${o.map(s=>s[n]).join(", ")}`),i.push("]"),t.push(i.join(""))}}else e.selected&&t.push(n==="value"&&e._value||e[n]);return t}setSelects(n,t="value",e=!1){let o=!1,i=s=>{var l;for(let a of s){let r=!1;if(t==="text"){let d=document.createElement("div");d.innerHTML=a.text,r=n.includes(((l=d.textContent)==null?void 0:l.trim())??"")}else r=n.includes(a._value||a.value),!r&&a.value===`${+a.value}`&&(r=n.includes(+a.value));a.selected!==r&&(o=!0),a.selected=r}};for(let s of this.data||[])s.type==="optgroup"?i(s.children):i([s]);o&&(this.initSelected(e),this.updateSelected(),this.update(e))}enable(){var n;(n=this.choiceElm)==null||n.classList.remove("disabled")}disable(){var n;(n=this.choiceElm)==null||n.classList.add("disabled")}check(n){let t=he(this.data,"value",n);t&&this._check(t,!0)}uncheck(n){let t=he(this.data,"value",n);t&&this._check(t,!1)}_check(n,t){this.options.single&&this._checkAll(!1,!0),n.selected=t,this.initSelected(),this.updateSelected(),this.update()}checkAll(){this._checkAll(!0)}uncheckAll(){this._checkAll(!1)}_checkAll(n,t){for(let e of this.data||[])e.type==="optgroup"?this._checkGroup(e,n,!0):!e.disabled&&!e.divider&&(t||e.visible)&&(e.selected=n);t||(this.initSelected(),this.updateSelected(),this.update())}_checkGroup(n,t,e){n.selected=t,n.children.forEach(o=>{o&&!o.disabled&&!o.divider&&(e||o.visible)&&(o.selected=t)}),e||(this.initSelected(),this.updateSelected(),this.update())}checkInvert(){if(!this.options.single){for(let n of this.data||[])if(n.type==="optgroup")for(let t of n.children)t&&(t.divider||(t.selected=!t.selected));else n&&!n.divider&&(n.selected=!n.selected);this.initSelected(),this.updateSelected(),this.update()}}focus(){var n;(n=this.choiceElm)==null||n.focus(),this.options.onFocus()}blur(){var n;(n=this.choiceElm)==null||n.blur(),this.options.onBlur()}refresh(){this.destroy(!1),this.init()}filter(n){var o;let t=((o=this.searchInputElm)==null?void 0:o.value.trim())??"",e=t.toLowerCase();if(this.filterText!==e){this.filterText=e;for(let i of this.data||[])if(i.type==="optgroup")if(this.options.filterGroup){let s=`${(i==null?void 0:i.label)??""}`;if(i!=null){let l=this.options.customFilter({label:Ct(s.toLowerCase()),search:Ct(e),originalLabel:s,originalSearch:t,row:i});i.visible=l;for(let a of i.children)a&&(a.visible=l)}}else{for(let s of i.children)if(s!=null){let l=`${(s==null?void 0:s.text)??""}`;s.visible=this.options.customFilter({text:Ct(l.toLowerCase()),search:Ct(e),originalText:l,originalSearch:t,row:s,parent:i})}i.visible=i.children.filter(s=>s==null?void 0:s.visible).length>0}else{let s=`${(i==null?void 0:i.text)??""}`;i.visible=this.options.customFilter({text:Ct(s.toLowerCase()),search:Ct(e),originalText:s,originalSearch:t,row:i})}this.initListItems(),this.initSelected(n),this.updateSelected(),n||this.options.onFilter(e)}}adjustDropHeight(n){var d,p,b,m;let t=n!=="top",e=((d=this.filterParentElm)==null?void 0:d.getBoundingClientRect().height)??0,o=((p=this.okButtonElm)==null?void 0:p.getBoundingClientRect().height)??0,i=this.options.single?0:((b=this.selectAllParentElm)==null?void 0:b.getBoundingClientRect().height)??0,s=e+o+i+5,{bottom:l,top:a}=ze(this.parentElm),r=this.options.maxHeight;if(t?r=l-s-this.options.adjustedHeightPadding:r=a-s-this.options.adjustedHeightPadding,!this.options.maxHeight||this.options.maxHeight&&rl)t="bottom";else if(l>e&&o>e){if(this.options.container){let p=i-l;p<0&&(p=0),(p>0||n)&&(t="top",this.dropElm.style.top=`${p<0?0:p}px`)}else t="top",this.dropElm.classList.add(t);this.dropElm.classList.remove("bottom")}if(r-ae.clientHeight?this.getScrollbarWidth():0,l=0;this.dropElm.querySelectorAll("li label").forEach(a=>{a.scrollWidth>l&&(l=a.scrollWidth)}),l+=o+s,lthis.options.maxWidth&&(l=this.options.maxWidth),this.options.minWidth&&ldelete s._multipleSelect,l.onAfterHardDestroyed=()=>o[i]=null,o.push(s._multipleSelect)}catch(l){console.error(l)}}return o.length===1?o[0]:o}h.defaults=z.DEFAULTS;h.locales={...Si};h.methods=z.METHODS;typeof window<"u"&&(window.multipleSelect=h);let ou=class{mount(){h("#select1"),h("#select2",{placeholder:"Here is the placeholder via javascript"})}},Ci=class{constructor(){u(this,"ms",[])}mount(){this.ms=h(".multiple-select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},iu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h(".multiple-select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},su=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{multiple:!0,multipleWidth:60})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},lu=class{constructor(){u(this,"multiMs",[]);u(this,"singleMs")}mount(){this.multiMs=h(".select"),this.singleMs=h(".data",{data:[{value:1,text:"Options 1",selected:!0},{value:2,text:"Options 2"},{value:3,text:"Options 3"}]})}unmount(){var t;this.multiMs.forEach(e=>e.destroy()),this.multiMs=[],(t=this.singleMs)==null||t.destroy(),this.singleMs=void 0}},au=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select")}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ru=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},pu=class{constructor(){u(this,"btnElm");u(this,"ms",[]);u(this,"clickListener",()=>{const t=this.serialize(document.querySelector("form"));alert(t)})}mount(){this.ms=h("select"),this.btnElm=document.querySelector(".submit7"),this.btnElm.addEventListener("click",this.clickListener)}unmount(){this.btnElm.removeEventListener("click",this.clickListener),this.ms.forEach(t=>t.destroy()),this.ms=[]}serialize(t){const e=[];return t.querySelectorAll("[name]").forEach(o=>{const i=Array.from(o.selectedOptions);for(const s of i)e.push(`${o.name}=${s.value}`)}),e.length>0?e.join("&"):!1}},cu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4");u(this,"ms5")}mount(){this.ms1=h("#basic",{dataTest:"select1",data:[{text:"January",value:1},{text:"February",value:2},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}),this.ms2=h("#object",{dataTest:"select2",data:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}),this.ms3=h("#string",{dataTest:"select3",data:["January","February","March"]}),this.ms4=h("#number",{dataTest:"select4",data:[1,2,3]}),this.ms5=h("#group",{dataTest:"select5",data:[{type:"optgroup",label:"Group 1",children:[{text:"January",value:1,selected:!0},{text:"February",value:2,disabled:!0},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6}]},{type:"optgroup",label:"Group 2",children:[{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}]})}unmount(){var t,e,o,i,s;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),(s=this.ms5)==null||s.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0,this.ms5=void 0}};(()=>{var n=window.multipleSelect;n.locales["cz-CS"]={formatSelectAll(){return"[Vybrat vše]"},formatAllSelected(){return"Vše vybráno"},formatCountSelected(m,v){return`${m} z ${v} vybráno`},formatNoMatchesFound(){return"Nebylo nalezeno"},formatOkButton(){return"Zavřít"}},n.locales;var t=window.multipleSelect;t.locales["da-DK"]={formatSelectAll(){return"[Vælg alle]"},formatAllSelected(){return"Alle valgt"},formatCountSelected(m,v){return`${m} af ${v} valgt`},formatNoMatchesFound(){return"Søgning uden resultat"},formatOkButton(){return"Lukke"}},t.locales;var e=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};e.locales={"en-US":{formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(m,v){return`${m} of ${v} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}}},e.locales;var o=window.multipleSelect;o.locales["es-ES"]={formatSelectAll(){return"[Seleccionar todo]"},formatAllSelected(){return"Todos seleccionados"},formatCountSelected(m,v){return`${m} de ${v} seleccionado`},formatNoMatchesFound(){return"No se encontraron coincidencias"},formatOkButton(){return"Cerrar"}},o.locales;var i=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};i.locales["fr-FR"]={formatSelectAll(){return"[Tout sélectionner]"},formatAllSelected(){return"Tous sélectionnés"},formatCountSelected(m,v){return`${m} de ${v} sélectionnés`},formatNoMatchesFound(){return"Aucun résultat"},formatOkButton(){return"Fermer"}},i.locales;var s=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};s.locales["hu-HU"]={formatSelectAll(){return"[Összes kiválasztása]"},formatAllSelected(){return"Összes kiválasztva"},formatCountSelected(m,v){return`${m} / ${v} kiválasztva`},formatNoMatchesFound(){return"Nincs találat"},formatOkButton(){return"Bezár"}},s.locales;var l=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};l.locales["it-IT"]={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(m,v){return`${m} di ${v} selezionati`},formatNoMatchesFound(){return"Nessun risultato"},formatOkButton(){return"Chiudere"}},l.locales;var a=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};a.locales["pt-BR"]={formatSelectAll(){return"[Selecionar todos]"},formatAllSelected(){return"Todos selecionados"},formatCountSelected(m,v){return`${m} de ${v} selecionado(s)`},formatNoMatchesFound(){return"Nenhum resultado encontrado"},formatOkButton(){return"Fechar"}},a.locales;var r=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};r.locales["ru-RU"]={formatSelectAll(){return"[Выбрать все]"},formatAllSelected(){return"Выбрано все"},formatCountSelected(m,v){return`${m} из ${v} выбрано`},formatNoMatchesFound(){return"Совпадений не найдено"},formatOkButton(){return"Закрывать"}},r.locales;var d=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};d.locales["vi-VN"]={formatSelectAll(){return"[Tất cả]"},formatAllSelected(){return"Chọn tất cả"},formatCountSelected(m,v){return`Đã chọn ${m} trong ${v}`},formatNoMatchesFound(){return"Không tìm thấy kết quả."},formatOkButton(){return"Đóng"}},d.locales;var p=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};p.locales["zh-CN"]={formatSelectAll(){return"[全选]"},formatAllSelected(){return"已选择所有记录"},formatCountSelected(m,v){return`已从${v}条记录中选择${m}条`},formatNoMatchesFound(){return"没有找到记录"},formatOkButton(){return"关闭"}},p.locales;var b=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};b.locales["zh-TW"]={formatSelectAll(){return"[全選]"},formatAllSelected(){return"已選擇所有記錄"},formatCountSelected(m,v){return`已從${v}條記錄中選擇${m}條`},formatNoMatchesFound(){return"沒有找到記錄"},formatOkButton(){return"关闭"}},b.locales})();let uu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){const t=document.querySelector("#locale");t.addEventListener("change",e=>{this.updateLocale(e.target.value)}),this.ms1=h(t),this.ms2=h("#select",{filter:!0,showOkButton:!0})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}updateLocale(t){var e,o;(e=this.ms2)==null||e.destroy(),(o=this.ms2)==null||o.refreshOptions({locale:t})}},du=class{constructor(){u(this,"ms1")}mount(){const t=[];for(let e=0;e<1e4;e++)t.push(e);this.ms1=h("#select",{filter:!0,data:t})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}};let hu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}};let mu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#single",{singleRadio:!0}),this.ms2=h("#multiple",{showOkButton:!0})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},vu=class{constructor(){u(this,"createBtnElm");u(this,"destroyBtnElm");u(this,"ms1")}mount(){this.createBtnElm=document.querySelector("#createBtn"),this.destroyBtnElm=document.querySelector("#destroyBtn"),this.createBtnElm.addEventListener("click",this.createMultipleSelect.bind(this)),this.destroyBtnElm.addEventListener("click",this.destroyMultiSelect.bind(this))}createMultipleSelect(){this.ms1=h("#select1",{name:"my-select",single:!1,useSelectOptionLabelToHtml:!0,data:[{text:' January',value:1},{text:"February",value:2},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}),this.ms1.setSelects([1,3,4])}destroyMultiSelect(){var t;console.log("destroy"),(t=this.ms1)==null||t.destroy(),this.ms1=void 0}unmount(){this.destroyMultiSelect(),this.createBtnElm.removeEventListener("click",this.createMultipleSelect.bind(this)),this.destroyBtnElm.removeEventListener("click",this.destroyMultiSelect.bind(this))}},bu=class{constructor(){u(this,"ms1",[]);u(this,"ms2",[])}mount(){this.ms1=h(".select"),this.ms2=h(".data-select",{dataTest:"select1",data:[{value:1,text:"Option 1"},{value:2,text:"Option 2"},{value:3,text:"Option 3"},{divider:!0},{value:4,text:"Option 4"},{value:5,text:"Option 5"},{value:6,text:"Option 6"}]})}unmount(){this.ms1.forEach(t=>t.destroy()),this.ms2.forEach(t=>t.destroy()),this.ms1=[],this.ms2=[]}},fu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#select1"),this.ms2=h("#select2",{placeholder:"Here is the placeholder via javascript"})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},gu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{singleRadio:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Eu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{selectAll:!1})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},_u=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{multiple:!0,hideOptgroupCheckboxes:!0,multipleWidth:60})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},yu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{multiple:!0,width:500,multipleWidth:70,dropWidth:580})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},wu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{maxHeight:140})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Au=class{constructor(){u(this,"ms",[])}mount(){const t=document.querySelector("#number");this.ms=h("select",{maxHeight:+t.value,maxHeightUnit:"row"}),t.addEventListener("change",()=>{this.ms.forEach(e=>{e.refreshOptions({maxHeight:+t.value,maxHeightUnit:"row"})})})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Su=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{position:"top"})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Ou=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayValues:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Cu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayTitle:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},xu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayDelimiter:" | "})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Tu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{minimumCountSelected:8})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ku=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{ellipsis:!0,minimumCountSelected:5})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Du=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{isOpen:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Nu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{keepOpen:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Lu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{openOnHover:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Mu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4")}mount(){this.ms1=h(".select1"),this.ms2=h(".select2"),this.ms3=h(".select3",{container:".my-container"}),this.ms4=h(".select4",{autoAdjustDropPosition:!0,container:"body"})}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0}},$u=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filter:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Fu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,filterGroup:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Bu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,filterPlaceholder:"The filter placeholder"})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Iu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filter:!0,filterAcceptOnEnter:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Ru=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filterByDataLength:10})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Pu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,customFilter:({text:t,search:e,originalText:o,originalSearch:i})=>document.querySelector("input").checked?o.indexOf(i)===0:t.indexOf(e)===0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Hu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{showClear:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},ju=class{constructor(){u(this,"ms",[])}mount(){this.ms.push(h(".select1",{showOkButton:!0})),this.ms.push(h(".select2",{showOkButton:!0})),this.ms.push(h(".select3",{showOkButton:!0,filter:!0})),this.ms.push(h(".select4",{showOkButton:!0}))}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Vu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#basic",{styler:t=>+((t==null?void 0:t.value)??0)==1?"background-color: #ffee00; color: #ff0000;":+((t==null?void 0:t.value)??0)==6?"background-color: #000; color: #fff;":null}),this.ms2=h("#group",{styler:t=>(t==null?void 0:t.type)==="optgroup"?"color: #777; font-weight: normal;":+((t==null?void 0:t.value)??0)==1?"color: blue;":null})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},Ju=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"btnEnableElm");u(this,"btnDisableElm")}mount(){this.ms1=h("#basic",{filter:!0,displayTitle:!0,renderOptionLabelAsHtml:!0,textTemplate:t=>`${t.innerHTML}`,customFilter:({search:t,text:e})=>{var i;const o=document.createElement("div");return o.innerHTML=e,((i=o.textContent)==null?void 0:i.includes(t))??!0}}),this.ms2=h("#from-data",{dataTest:"select1",displayTitle:!0,renderOptionLabelAsHtml:!0,data:[{value:'50"',text:'50"'},{value:"44'",text:"44'"},{value:"33",text:'33'}]}),this.btnEnableElm=document.querySelector("#enableRenderHtml"),this.btnEnableElm.addEventListener("click",()=>this.renderAsHtmlHandler(!0)),this.btnDisableElm=document.querySelector("#disableRenderHtml"),this.btnDisableElm.addEventListener("click",()=>this.renderAsHtmlHandler(!1))}renderAsHtmlHandler(t){var e,o;(e=this.ms1)==null||e.refreshOptions({renderOptionLabelAsHtml:t}),(o=this.ms2)==null||o.refreshOptions({renderOptionLabelAsHtml:t})}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0,(o=this.btnEnableElm)==null||o.removeEventListener("click",()=>this.renderAsHtmlHandler(!0)),(i=this.btnDisableElm)==null||i.removeEventListener("click",()=>this.renderAsHtmlHandler(!1))}},Gu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{renderOptionLabelAsHtml:!0,labelTemplate:t=>`${t.getAttribute("label")}`})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Wu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{autoAdjustDropPosition:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Uu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4")}mount(){this.ms1=h("#select1",{autoAdjustDropWidthByTextSize:!0,autoAdjustDropHeight:!0,position:"top",showOkButton:!0}),this.ms2=h("#select2",{autoAdjustDropHeight:!0,position:"top",showOkButton:!0}),this.ms3=h("#select3",{autoAdjustDropHeight:!0,filter:!0,position:"top"}),this.ms4=h("#select4")}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0}},qu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#select1",{useSelectOptionLabel:!0}),this.ms2=h("#select2",{useSelectOptionLabelToHtml:!0,data:[{text:' January',value:'1',selected:!0},{text:"February",value:"2"},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},zu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("#select1",{placeholder:'Placeholder with cross-site scripting code...',sanitizer:t=>typeof t=="string"?decodeURIComponent(t).replace(/(\b)(on[a-z]+)(\s*)=|javascript:([^>]*)[^>]*|(<\s*)(\/*)script([<>]*).*(<\s*)(\/*)script(>*)|(<)(\/*)(script|script defer)(.*)(>|>">)/gi,""):t})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}};let Ku=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{classes:"form-control",classPrefix:"form-control"})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Yu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#getOptions").addEventListener("click",()=>{alert(JSON.stringify(this.ms1.getOptions(),null,4))})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Xu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#refreshOptions").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.refreshOptions({filter:!1})})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Qu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#setSelectsBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.setSelects([1,3])}),document.querySelector("#getSelectsBtn").addEventListener("click",()=>{var t,e;alert(`Selected values: ${(t=this.ms1)==null?void 0:t.getSelects()}`),alert(`Selected texts: ${(e=this.ms1)==null?void 0:e.getSelects("text")}`)}),document.querySelector("#setSelectsBtn2").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.setSelects(["February","April"],"text")}),document.querySelector("#getSelectsBtn2").addEventListener("click",()=>{var t;alert(`Selected values: ${(t=this.ms1)==null?void 0:t.getSelects("text")}`)})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Zu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#enableBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.enable()}),document.querySelector("#disableBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.disable()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},td=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#openBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.open()}),document.querySelector("#closeBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.close()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ed=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkBtn").addEventListener("click",()=>{for(const t of this.ms)t.check(2)}),document.querySelector("#uncheckBtn").addEventListener("click",()=>{for(const t of this.ms)t.uncheck(2)})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},nd=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkAllBtn").addEventListener("click",()=>{for(const t of this.ms)t.checkAll()}),document.querySelector("#uncheckAllBtn").addEventListener("click",()=>{for(const t of this.ms)t.uncheckAll()})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},od=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkInvert").addEventListener("click",()=>{for(const t of this.ms)t.checkInvert()})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},id=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#focusBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.focus()}),document.querySelector("#blurBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.blur()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},sd=class{constructor(){u(this,"ms1")}mount(){const t=document.querySelector("select");this.ms1=h(t),document.querySelector("#refreshAdd").addEventListener("click",()=>{var a;const e=document.querySelector("#refreshInput"),o=document.querySelector("#refreshSelected"),i=document.querySelector("#refreshDisabled"),s=e.value.trim(),l=document.createElement("option");if(l.value=s,l.text=s,!s){e.focus();return}o.checked&&(l.selected=!0),i.checked&&(l.disabled=!0),e.value="",t.appendChild(l),(a=this.ms1)==null||a.refresh()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ld=class{constructor(){u(this,"buildBtnElm");u(this,"destroyBtnElm");u(this,"ms1")}mount(){this.buildBtnElm=document.querySelector("#buildBtn"),this.destroyBtnElm=document.querySelector("#destroyBtn"),this.destroyBtnElm.addEventListener("click",this.destroyMultiSelect.bind(this)),this.buildBtnElm.addEventListener("click",this.createMultipleSelect.bind(this)),this.ms1=h("select")}createMultipleSelect(){this.ms1=h("select")}destroyMultiSelect(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=null}unmount(){this.destroyMultiSelect(),this.buildBtnElm.removeEventListener("click",this.destroyMultiSelect.bind(this)),this.destroyBtnElm.removeEventListener("click",this.createMultipleSelect.bind(this))}},ad=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#getData").addEventListener("click",()=>{console.log("tt",JSON.stringify(this.ms1.getData())),alert(JSON.stringify(this.ms1.getData(),null,4))})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},rd=class{constructor(){u(this,"logElm");u(this,"ms1")}mount(){this.logElm=document.querySelector("textarea"),this.ms1=h("select",{filter:!0,onOpen:()=>{this.log(`onOpen event fire! + `]}initSelected(n=!1){var e,o;let t=0;for(let i of this.data||[])if(i.type==="optgroup"){let s=i.children.filter(l=>l&&l.selected&&!l.disabled&&l.visible).length;i.children.length&&(i.selected=!this.options.single&&s&&s===i.children.filter(l=>l&&!l.disabled&&l.visible&&!l.divider).length),t+=s}else t+=i.selected&&!i.disabled&&i.visible?1:0;this.allSelected=((e=this.data)==null?void 0:e.filter(i=>i.selected&&!i.disabled&&i.visible).length)===((o=this.data)==null?void 0:o.filter(i=>!i.disabled&&i.visible&&!i.divider).length),n||(this.allSelected?this.options.onCheckAll():t===0&&this.options.onUncheckAll())}initView(){let n;window.getComputedStyle?(n=window.getComputedStyle(this.elm).width,n==="auto"&&(n=de(this.dropElm,"outer","width")+20)):n=de(this.elm,"outer","width")+20,this.parentElm.style.width=`${this.options.width||n}px`,this.elm.classList.add("ms-offscreen")}events(){this._bindEventService.unbind(this.okButtonElm),this._bindEventService.unbind(this.searchInputElm),this._bindEventService.unbind(this.selectAllElm),this._bindEventService.unbind(this.selectGroupElms),this._bindEventService.unbind(this.selectItemElms),this._bindEventService.unbind(this.disableItemElms),this._bindEventService.unbind(this.noResultsElm),this.searchInputElm=this.dropElm.querySelector(".ms-search input"),this.selectAllElm=this.dropElm.querySelector(`input[${this.selectAllName}]`),this.selectGroupElms=this.dropElm.querySelectorAll(`input[${this.selectGroupName}],span[${this.selectGroupName}]`),this.selectItemElms=this.dropElm.querySelectorAll(`input[${this.selectItemName}]:enabled`),this.disableItemElms=this.dropElm.querySelectorAll(`input[${this.selectItemName}]:disabled`),this.noResultsElm=this.dropElm.querySelector(".ms-no-results");let n=t=>{t.preventDefault(),!t.target.classList.contains("icon-close")&&this[this.options.isOpen?"close":"open"]()};this.labelElm&&this._bindEventService.bind(this.labelElm,"click",t=>{t.target.nodeName.toLowerCase()==="label"&&(n(t),(!this.options.filter||!this.options.isOpen)&&this.focus(),t.stopPropagation())}),this._bindEventService.bind(this.choiceElm,"click",n),this.options.onFocus&&this._bindEventService.bind(this.choiceElm,"focus",this.options.onFocus),this.options.onBlur&&this._bindEventService.bind(this.choiceElm,"blur",this.options.onBlur),this._bindEventService.bind(this.parentElm,"keydown",t=>{t.code==="Escape"&&!this.options.keepOpen&&(this.close(),this.choiceElm.focus())}),this.closeElm&&this._bindEventService.bind(this.closeElm,"click",t=>{t.preventDefault(),this._checkAll(!1,!0),this.initSelected(!1),this.updateSelected(),this.update(),this.options.onClear()}),this.searchInputElm&&(this._bindEventService.bind(this.searchInputElm,"keydown",t=>{t.code==="Tab"&&t.shiftKey&&this.close()}),this._bindEventService.bind(this.searchInputElm,"keyup",t=>{var e,o,i;if(this.options.filterAcceptOnEnter&&["Enter","Space"].includes(t.code)&&((e=this.searchInputElm)!=null&&e.value)){if(this.options.single){let s=[];if((o=this.selectItemElms)==null||o.forEach(l=>{var a;((a=l.closest("li"))==null?void 0:a.style.display)!=="none"&&s.push(l)}),s.length){let[l]=this.selectItemName.split("=");s[0].hasAttribute(l)&&this.setSelects([s[0].value])}}else(i=this.selectAllElm)==null||i.click();this.close(),this.focus();return}this.filter()})),this.selectAllElm&&(this._bindEventService.unbind(this.selectAllElm,"click"),this._bindEventService.bind(this.selectAllElm,"click",t=>{var e;this._checkAll((e=t.currentTarget)==null?void 0:e.checked)})),this.okButtonElm&&(this._bindEventService.unbind(this.okButtonElm,"click"),this._bindEventService.bind(this.okButtonElm,"click",t=>{n(t),t.stopPropagation()})),this._bindEventService.bind(this.selectGroupElms,"click",t=>{let e=t.currentTarget,o=e.checked,i=he(this.data,"_key",e.dataset.key);this._checkGroup(i,o),this.options.onOptgroupClick(Ke({label:i.label,selected:i.selected,data:i._data,children:i.children.map(s=>{if(s)return Ke({text:s.text,value:s.value,selected:s.selected,disabled:s.disabled,data:s._data})})}))}),this._bindEventService.bind(this.selectItemElms,"click",t=>{let e=t.currentTarget,o=e.checked,i=he(this.data,"_key",e.dataset.key),s=()=>{this.options.single&&this.options.isOpen&&!this.options.keepOpen&&this.close()};if(this.options.onBeforeClick(i)===!1){s();return}this._check(i,o),this.options.onClick(Ke({text:i.text,value:i.value,selected:i.selected,data:i._data})),s()})}open(n=0){if(n!==null&&n>=0){let t;clearTimeout(t),t=setTimeout(()=>this.openDrop(),n)}else this.openDrop()}openDrop(){var i,s,l,a,r,d,p;if((i=this.choiceElm)!=null&&i.classList.contains("disabled"))return;if(this.options.isOpen=!0,this.parentElm.classList.add("ms-parent-open"),(l=(s=this.choiceElm)==null?void 0:s.querySelector("div"))==null||l.classList.add("open"),this.dropElm.style.display="block",(a=this.selectAllElm)!=null&&a.parentElement&&(this.selectAllElm.parentElement.style.display="block"),this.noResultsElm&&(this.noResultsElm.style.display="none"),(r=this.data)!=null&&r.length||((d=this.selectAllElm)!=null&&d.parentElement&&(this.selectAllElm.parentElement.style.display="none"),this.noResultsElm&&(this.noResultsElm.style.display="block")),this.options.container){let v=sn(this.dropElm),b;this.options.container instanceof Node?b=this.options.container:typeof this.options.container=="string"&&(b=this.options.container==="body"?document.body:document.querySelector(this.options.container)),b.appendChild(this.dropElm),this.dropElm.style.top=`${(v==null?void 0:v.top)??0}px`,this.dropElm.style.left=`${(v==null?void 0:v.left)??0}px`,this.dropElm.style.minWidth="auto",this.dropElm.style.width=`${de(this.parentElm,"outer","width")}px`}let n=this.options.minHeight,t=this.options.maxHeight;if(this.options.maxHeightUnit==="row"){let v=this.dropElm.querySelector("ul>li");t=de(v,"outer","height")*this.options.maxHeight}let e=this.dropElm.querySelector("ul");e&&(n&&(e.style.minHeight=`${n}px`),e.style.maxHeight=`${t}px`),this.dropElm.querySelectorAll(".multiple").forEach(v=>v.style.width=`${this.options.multipleWidth}px`),(p=this.data)!=null&&p.length&&this.options.filter&&(this.searchInputElm&&(this.searchInputElm.value="",this.searchInputElm.focus()),this.filter(!0)),this.options.autoAdjustDropWidthByTextSize&&this.adjustDropWidthByText();let o=this.options.position;if(this.options.autoAdjustDropHeight){if(this.options.autoAdjustDropPosition){let{bottom:v,top:b}=ze(this.dropElm),m=this.dropElm.getBoundingClientRect().height;o=vv?"top":"bottom"}this.adjustDropHeight(o)}this.options.autoAdjustDropPosition&&this.adjustDropPosition(!0),this.options.onOpen()}close(){var n,t;this.options.isOpen=!1,this.parentElm.classList.remove("ms-parent-open"),(t=(n=this.choiceElm)==null?void 0:n.querySelector("div"))==null||t.classList.remove("open"),this.dropElm.style.display="none",this.options.container&&(this.parentElm.appendChild(this.dropElm),this.dropElm.style.top="auto",this.dropElm.style.left="auto"),this.options.onClose()}update(n=!1){var r;let t=this.getSelects(),e=this.getSelects("text");this.options.displayValues&&(e=t);let o=(r=this.choiceElm)==null?void 0:r.querySelector("span"),i=t.length,s=null,l=()=>{if(this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml){let d=t.join(this.options.displayDelimiter);return this.options.useSelectOptionLabelToHtml?eu(d):d}return e.join(this.options.displayDelimiter)};if(o){if(i===0){let d=this.options.placeholder||"";o.classList.add("ms-placeholder"),o.innerHTML=this.options.sanitizer?this.options.sanitizer(d):d}else ithis.options.minimumCountSelected?s=`${e.slice(0,this.options.minimumCountSelected).join(this.options.displayDelimiter)}...`:this.formatCountSelected(i,this.dataTotal)&&i>this.options.minimumCountSelected?s=this.formatCountSelected(i,this.dataTotal):s=l();if(s!==null&&(o==null||o.classList.remove("ms-placeholder"),this.options.renderOptionLabelAsHtml||this.options.useSelectOptionLabelToHtml?o.innerHTML=this.options.sanitizer?this.options.sanitizer(s):s:o.textContent=s),this.options.displayTitle||this.options.addTitle){this.options.addTitle&&console.warn("[Multiple-Select-Vanilla] Please note that the `addTitle` option was replaced with `displayTitle`.");let d=this.options.useSelectOptionLabel||this.options.useSelectOptionLabelToHtml?"value":"text";o.title=this.getSelects(d).join(this.options.displayDelimiter)}}let a=this.getSelects();this.options.single?this.elm.value=a.length?a[0]:"":Array.from(this.elm.options).forEach(d=>{d.selected=a.some(p=>p===d.value)}),n||this.elm.dispatchEvent(new Event("change"))}updateSelected(){var t;for(let e=this.updateDataStart;ee.visible).length)===0;this.selectAllElm&&(this.selectAllElm.checked=this.allSelected,Eo(this.selectAllElm.closest("li"),!n)),Eo(this.noResultsElm,n),this.virtualScroll&&(this.virtualScroll.rows=this.getListRows())}getData(){return this.options.data}getOptions(n=!0){let t=Object.assign({},this.options);return delete t.data,n?ln(t):this.options}refreshOptions(n){Zc(this.options,n,!0)||(this.options=Object.assign(this.options,n),this.destroy(!1),this.init())}getDropElement(){return this.dropElm}getParentElement(){return this.parentElm}getSelects(n="value"){let t=[];for(let e of this.data||[])if(e.type==="optgroup"){let o=e.children.filter(i=>i==null?void 0:i.selected);if(!o.length)continue;if(n==="value"||this.options.single)t.push(...o.map(i=>n==="value"&&i._value||i[n]));else{let i=[];i.push("["),i.push(e.label),i.push(`: ${o.map(s=>s[n]).join(", ")}`),i.push("]"),t.push(i.join(""))}}else e.selected&&t.push(n==="value"&&e._value||e[n]);return t}setSelects(n,t="value",e=!1){let o=!1,i=s=>{var l;for(let a of s){let r=!1;if(t==="text"){let d=document.createElement("div");d.innerHTML=a.text,r=n.includes(((l=d.textContent)==null?void 0:l.trim())??"")}else r=n.includes(a._value||a.value),!r&&a.value===`${+a.value}`&&(r=n.includes(+a.value));a.selected!==r&&(o=!0),a.selected=r}};for(let s of this.data||[])s.type==="optgroup"?i(s.children):i([s]);o&&(this.initSelected(e),this.updateSelected(),this.update(e))}enable(){var n;(n=this.choiceElm)==null||n.classList.remove("disabled")}disable(){var n;(n=this.choiceElm)==null||n.classList.add("disabled")}check(n){let t=he(this.data,"value",n);t&&this._check(t,!0)}uncheck(n){let t=he(this.data,"value",n);t&&this._check(t,!1)}_check(n,t){this.options.single&&this._checkAll(!1,!0),n.selected=t,this.initSelected(),this.updateSelected(),this.update()}checkAll(){this._checkAll(!0)}uncheckAll(){this._checkAll(!1)}_checkAll(n,t){for(let e of this.data||[])e.type==="optgroup"?this._checkGroup(e,n,!0):!e.disabled&&!e.divider&&(t||e.visible)&&(e.selected=n);t||(this.initSelected(),this.updateSelected(),this.update())}_checkGroup(n,t,e){n.selected=t,n.children.forEach(o=>{o&&!o.disabled&&!o.divider&&(e||o.visible)&&(o.selected=t)}),e||(this.initSelected(),this.updateSelected(),this.update())}checkInvert(){if(!this.options.single){for(let n of this.data||[])if(n.type==="optgroup")for(let t of n.children)t&&(t.divider||(t.selected=!t.selected));else n&&!n.divider&&(n.selected=!n.selected);this.initSelected(),this.updateSelected(),this.update()}}focus(){var n;(n=this.choiceElm)==null||n.focus(),this.options.onFocus()}blur(){var n;(n=this.choiceElm)==null||n.blur(),this.options.onBlur()}refresh(){this.destroy(!1),this.init()}filter(n){var o;let t=((o=this.searchInputElm)==null?void 0:o.value.trim())??"",e=t.toLowerCase();if(this.filterText!==e){this.filterText=e;for(let i of this.data||[])if(i.type==="optgroup")if(this.options.filterGroup){let s=`${(i==null?void 0:i.label)??""}`;if(i!=null){let l=this.options.customFilter({label:Ct(s.toLowerCase()),search:Ct(e),originalLabel:s,originalSearch:t,row:i});i.visible=l;for(let a of i.children)a&&(a.visible=l)}}else{for(let s of i.children)if(s!=null){let l=`${(s==null?void 0:s.text)??""}`;s.visible=this.options.customFilter({text:Ct(l.toLowerCase()),search:Ct(e),originalText:l,originalSearch:t,row:s,parent:i})}i.visible=i.children.filter(s=>s==null?void 0:s.visible).length>0}else{let s=`${(i==null?void 0:i.text)??""}`;i.visible=this.options.customFilter({text:Ct(s.toLowerCase()),search:Ct(e),originalText:s,originalSearch:t,row:i})}this.initListItems(),this.initSelected(n),this.updateSelected(),n||this.options.onFilter(t)}}adjustDropHeight(n){var d,p,v,b;let t=n!=="top",e=((d=this.filterParentElm)==null?void 0:d.getBoundingClientRect().height)??0,o=((p=this.okButtonElm)==null?void 0:p.getBoundingClientRect().height)??0,i=this.options.single?0:((v=this.selectAllParentElm)==null?void 0:v.getBoundingClientRect().height)??0,s=e+o+i+5,{bottom:l,top:a}=ze(this.parentElm),r=this.options.maxHeight;if(t?r=l-s-this.options.adjustedHeightPadding:r=a-s-this.options.adjustedHeightPadding,!this.options.maxHeight||this.options.maxHeight&&rl)t="bottom";else if(l>e&&o>e){if(this.options.container){let p=i-l;p<0&&(p=0),(p>0||n)&&(t="top",this.dropElm.style.top=`${p<0?0:p}px`)}else t="top",this.dropElm.classList.add(t);this.dropElm.classList.remove("bottom")}if(r-ae.clientHeight?this.getScrollbarWidth():0,l=0;this.dropElm.querySelectorAll("li label").forEach(a=>{a.scrollWidth>l&&(l=a.scrollWidth)}),l+=o+s,lthis.options.maxWidth&&(l=this.options.maxWidth),this.options.minWidth&&ldelete s._multipleSelect,l.onAfterHardDestroyed=()=>o[i]=null,o.push(s._multipleSelect)}catch(l){console.error(l)}}return o.length===1?o[0]:o}h.defaults=z.DEFAULTS;h.locales={...Si};h.methods=z.METHODS;typeof window<"u"&&(window.multipleSelect=h);let ou=class{mount(){h("#select1"),h("#select2",{placeholder:"Here is the placeholder via javascript"})}},Ci=class{constructor(){u(this,"ms",[])}mount(){this.ms=h(".multiple-select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},iu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h(".multiple-select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},su=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{multiple:!0,multipleWidth:60})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},lu=class{constructor(){u(this,"multiMs",[]);u(this,"singleMs")}mount(){this.multiMs=h(".select"),this.singleMs=h(".data",{data:[{value:1,text:"Options 1",selected:!0},{value:2,text:"Options 2"},{value:3,text:"Options 3"}]})}unmount(){var t;this.multiMs.forEach(e=>e.destroy()),this.multiMs=[],(t=this.singleMs)==null||t.destroy(),this.singleMs=void 0}},au=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select")}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ru=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},pu=class{constructor(){u(this,"btnElm");u(this,"ms",[]);u(this,"clickListener",()=>{const t=this.serialize(document.querySelector("form"));alert(t)})}mount(){this.ms=h("select"),this.btnElm=document.querySelector(".submit7"),this.btnElm.addEventListener("click",this.clickListener)}unmount(){this.btnElm.removeEventListener("click",this.clickListener),this.ms.forEach(t=>t.destroy()),this.ms=[]}serialize(t){const e=[];return t.querySelectorAll("[name]").forEach(o=>{const i=Array.from(o.selectedOptions);for(const s of i)e.push(`${o.name}=${s.value}`)}),e.length>0?e.join("&"):!1}},cu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4");u(this,"ms5")}mount(){this.ms1=h("#basic",{dataTest:"select1",data:[{text:"January",value:1},{text:"February",value:2},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}),this.ms2=h("#object",{dataTest:"select2",data:{1:"January",2:"February",3:"March",4:"April",5:"May",6:"June",7:"July",8:"August",9:"September",10:"October",11:"November",12:"December"}}),this.ms3=h("#string",{dataTest:"select3",data:["January","February","March"]}),this.ms4=h("#number",{dataTest:"select4",data:[1,2,3]}),this.ms5=h("#group",{dataTest:"select5",data:[{type:"optgroup",label:"Group 1",children:[{text:"January",value:1,selected:!0},{text:"February",value:2,disabled:!0},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6}]},{type:"optgroup",label:"Group 2",children:[{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}]})}unmount(){var t,e,o,i,s;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),(s=this.ms5)==null||s.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0,this.ms5=void 0}};(()=>{var n=window.multipleSelect;n.locales["cz-CS"]={formatSelectAll(){return"[Vybrat vše]"},formatAllSelected(){return"Vše vybráno"},formatCountSelected(m,g){return`${m} z ${g} vybráno`},formatNoMatchesFound(){return"Nebylo nalezeno"},formatOkButton(){return"Zavřít"}},n.locales;var t=window.multipleSelect;t.locales["da-DK"]={formatSelectAll(){return"[Vælg alle]"},formatAllSelected(){return"Alle valgt"},formatCountSelected(m,g){return`${m} af ${g} valgt`},formatNoMatchesFound(){return"Søgning uden resultat"},formatOkButton(){return"Lukke"}},t.locales;var e=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};e.locales={"en-US":{formatSelectAll(){return"[Select all]"},formatAllSelected(){return"All selected"},formatCountSelected(m,g){return`${m} of ${g} selected`},formatNoMatchesFound(){return"No matches found"},formatOkButton(){return"OK"}}},e.locales;var o=window.multipleSelect;o.locales["es-ES"]={formatSelectAll(){return"[Seleccionar todo]"},formatAllSelected(){return"Todos seleccionados"},formatCountSelected(m,g){return`${m} de ${g} seleccionado`},formatNoMatchesFound(){return"No se encontraron coincidencias"},formatOkButton(){return"Cerrar"}},o.locales;var i=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};i.locales["fr-FR"]={formatSelectAll(){return"[Tout sélectionner]"},formatAllSelected(){return"Tous sélectionnés"},formatCountSelected(m,g){return`${m} de ${g} sélectionnés`},formatNoMatchesFound(){return"Aucun résultat"},formatOkButton(){return"Fermer"}},i.locales;var s=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};s.locales["hu-HU"]={formatSelectAll(){return"[Összes kiválasztása]"},formatAllSelected(){return"Összes kiválasztva"},formatCountSelected(m,g){return`${m} / ${g} kiválasztva`},formatNoMatchesFound(){return"Nincs találat"},formatOkButton(){return"Bezár"}},s.locales;var l=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};l.locales["it-IT"]={formatSelectAll(){return"[Seleziona tutti]"},formatAllSelected(){return"Tutti selezionati"},formatCountSelected(m,g){return`${m} di ${g} selezionati`},formatNoMatchesFound(){return"Nessun risultato"},formatOkButton(){return"Chiudere"}},l.locales;var a=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};a.locales["ja-JP"]={formatSelectAll(){return"[すべて選択]"},formatAllSelected(){return"すべて選択"},formatCountSelected(m,g){return`${g} 件中 ${m} 件選択`},formatNoMatchesFound(){return"見つかりません"},formatOkButton(){return"閉める"}},a.locales;var r=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};r.locales["pt-BR"]={formatSelectAll(){return"[Selecionar todos]"},formatAllSelected(){return"Todos selecionados"},formatCountSelected(m,g){return`${m} de ${g} selecionado(s)`},formatNoMatchesFound(){return"Nenhum resultado encontrado"},formatOkButton(){return"Fechar"}},r.locales;var d=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};d.locales["ru-RU"]={formatSelectAll(){return"[Выбрать все]"},formatAllSelected(){return"Выбрано все"},formatCountSelected(m,g){return`${m} из ${g} выбрано`},formatNoMatchesFound(){return"Совпадений не найдено"},formatOkButton(){return"Закрывать"}},d.locales;var p=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};p.locales["vi-VN"]={formatSelectAll(){return"[Tất cả]"},formatAllSelected(){return"Chọn tất cả"},formatCountSelected(m,g){return`Đã chọn ${m} trong ${g}`},formatNoMatchesFound(){return"Không tìm thấy kết quả."},formatOkButton(){return"Đóng"}},p.locales;var v=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};v.locales["zh-CN"]={formatSelectAll(){return"[全选]"},formatAllSelected(){return"已选择所有记录"},formatCountSelected(m,g){return`已从${g}条记录中选择${m}条`},formatNoMatchesFound(){return"没有找到记录"},formatOkButton(){return"关闭"}},v.locales;var b=typeof window<"u"&&window.multipleSelect!==void 0?window.multipleSelect:{locales:{}};b.locales["zh-TW"]={formatSelectAll(){return"[全選]"},formatAllSelected(){return"已選擇所有記錄"},formatCountSelected(m,g){return`已從${g}條記錄中選擇${m}條`},formatNoMatchesFound(){return"沒有找到記錄"},formatOkButton(){return"关闭"}},b.locales})();let uu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){const t=document.querySelector("#locale");t.addEventListener("change",e=>{this.updateLocale(e.target.value)}),this.ms1=h(t),this.ms2=h("#select",{filter:!0,showOkButton:!0})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}updateLocale(t){var e,o;(e=this.ms2)==null||e.destroy(),(o=this.ms2)==null||o.refreshOptions({locale:t})}},du=class{constructor(){u(this,"ms1")}mount(){const t=[];for(let e=0;e<1e4;e++)t.push(e);this.ms1=h("#select",{filter:!0,data:t})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}};let hu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select")}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}};let mu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#single",{singleRadio:!0}),this.ms2=h("#multiple",{showOkButton:!0})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},vu=class{constructor(){u(this,"createBtnElm");u(this,"destroyBtnElm");u(this,"ms1")}mount(){this.createBtnElm=document.querySelector("#createBtn"),this.destroyBtnElm=document.querySelector("#destroyBtn"),this.createBtnElm.addEventListener("click",this.createMultipleSelect.bind(this)),this.destroyBtnElm.addEventListener("click",this.destroyMultiSelect.bind(this))}createMultipleSelect(){this.ms1=h("#select1",{name:"my-select",single:!1,useSelectOptionLabelToHtml:!0,data:[{text:' January',value:1},{text:"February",value:2},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]}),this.ms1.setSelects([1,3,4])}destroyMultiSelect(){var t;console.log("destroy"),(t=this.ms1)==null||t.destroy(),this.ms1=void 0}unmount(){this.destroyMultiSelect(),this.createBtnElm.removeEventListener("click",this.createMultipleSelect.bind(this)),this.destroyBtnElm.removeEventListener("click",this.destroyMultiSelect.bind(this))}},bu=class{constructor(){u(this,"ms1",[]);u(this,"ms2",[])}mount(){this.ms1=h(".select"),this.ms2=h(".data-select",{dataTest:"select1",data:[{value:1,text:"Option 1"},{value:2,text:"Option 2"},{value:3,text:"Option 3"},{divider:!0},{value:4,text:"Option 4"},{value:5,text:"Option 5"},{value:6,text:"Option 6"}]})}unmount(){this.ms1.forEach(t=>t.destroy()),this.ms2.forEach(t=>t.destroy()),this.ms1=[],this.ms2=[]}},fu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#select1"),this.ms2=h("#select2",{placeholder:"Here is the placeholder via javascript"})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},gu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{singleRadio:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Eu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{selectAll:!1})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},_u=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{multiple:!0,hideOptgroupCheckboxes:!0,multipleWidth:60})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},yu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{multiple:!0,width:500,multipleWidth:70,dropWidth:580})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},wu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{maxHeight:140})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Au=class{constructor(){u(this,"ms",[])}mount(){const t=document.querySelector("#number");this.ms=h("select",{maxHeight:+t.value,maxHeightUnit:"row"}),t.addEventListener("change",()=>{this.ms.forEach(e=>{e.refreshOptions({maxHeight:+t.value,maxHeightUnit:"row"})})})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Su=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{position:"top"})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Ou=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayValues:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Cu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayTitle:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},xu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{displayDelimiter:" | "})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Tu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{minimumCountSelected:8})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ku=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{ellipsis:!0,minimumCountSelected:5})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Du=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{isOpen:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Nu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{keepOpen:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Lu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{openOnHover:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Mu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4")}mount(){this.ms1=h(".select1"),this.ms2=h(".select2"),this.ms3=h(".select3",{container:".my-container"}),this.ms4=h(".select4",{autoAdjustDropPosition:!0,container:"body"})}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0}},$u=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filter:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Fu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,filterGroup:!0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Bu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,filterPlaceholder:"The filter placeholder"})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Iu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filter:!0,filterAcceptOnEnter:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Ru=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{filterByDataLength:10})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Pu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0,customFilter:({text:t,search:e,originalText:o,originalSearch:i})=>document.querySelector("input").checked?o.indexOf(i)===0:t.indexOf(e)===0})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Hu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{showClear:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},ju=class{constructor(){u(this,"ms",[])}mount(){this.ms.push(h(".select1",{showOkButton:!0})),this.ms.push(h(".select2",{showOkButton:!0})),this.ms.push(h(".select3",{showOkButton:!0,filter:!0})),this.ms.push(h(".select4",{showOkButton:!0}))}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Vu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#basic",{styler:t=>+((t==null?void 0:t.value)??0)==1?"background-color: #ffee00; color: #ff0000;":+((t==null?void 0:t.value)??0)==6?"background-color: #000; color: #fff;":null}),this.ms2=h("#group",{styler:t=>(t==null?void 0:t.type)==="optgroup"?"color: #777; font-weight: normal;":+((t==null?void 0:t.value)??0)==1?"color: blue;":null})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},Ju=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"btnEnableElm");u(this,"btnDisableElm")}mount(){this.ms1=h("#basic",{filter:!0,displayTitle:!0,renderOptionLabelAsHtml:!0,textTemplate:t=>`${t.innerHTML}`,customFilter:({search:t,text:e})=>{var i;const o=document.createElement("div");return o.innerHTML=e,((i=o.textContent)==null?void 0:i.includes(t))??!0}}),this.ms2=h("#from-data",{dataTest:"select1",displayTitle:!0,renderOptionLabelAsHtml:!0,data:[{value:'50"',text:'50"'},{value:"44'",text:"44'"},{value:"33",text:'33'}]}),this.btnEnableElm=document.querySelector("#enableRenderHtml"),this.btnEnableElm.addEventListener("click",()=>this.renderAsHtmlHandler(!0)),this.btnDisableElm=document.querySelector("#disableRenderHtml"),this.btnDisableElm.addEventListener("click",()=>this.renderAsHtmlHandler(!1))}renderAsHtmlHandler(t){var e,o;(e=this.ms1)==null||e.refreshOptions({renderOptionLabelAsHtml:t}),(o=this.ms2)==null||o.refreshOptions({renderOptionLabelAsHtml:t})}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0,(o=this.btnEnableElm)==null||o.removeEventListener("click",()=>this.renderAsHtmlHandler(!0)),(i=this.btnDisableElm)==null||i.removeEventListener("click",()=>this.renderAsHtmlHandler(!1))}},Gu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{renderOptionLabelAsHtml:!0,labelTemplate:t=>`${t.getAttribute("label")}`})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Wu=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{autoAdjustDropPosition:!0})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Uu=class{constructor(){u(this,"ms1");u(this,"ms2");u(this,"ms3");u(this,"ms4")}mount(){this.ms1=h("#select1",{autoAdjustDropWidthByTextSize:!0,autoAdjustDropHeight:!0,position:"top",showOkButton:!0}),this.ms2=h("#select2",{autoAdjustDropHeight:!0,position:"top",showOkButton:!0}),this.ms3=h("#select3",{autoAdjustDropHeight:!0,filter:!0,position:"top"}),this.ms4=h("#select4")}unmount(){var t,e,o,i;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),(o=this.ms3)==null||o.destroy(),(i=this.ms4)==null||i.destroy(),this.ms1=void 0,this.ms2=void 0,this.ms3=void 0,this.ms4=void 0}},qu=class{constructor(){u(this,"ms1");u(this,"ms2")}mount(){this.ms1=h("#select1",{useSelectOptionLabel:!0}),this.ms2=h("#select2",{useSelectOptionLabelToHtml:!0,data:[{text:' January',value:'1',selected:!0},{text:"February",value:"2"},{text:"March",value:3},{text:"April",value:4},{text:"May",value:5},{text:"June",value:6},{text:"July",value:7},{text:"August",value:8},{text:"September",value:9},{text:"October",value:10},{text:"November",value:11},{text:"December",value:12}]})}unmount(){var t,e;(t=this.ms1)==null||t.destroy(),(e=this.ms2)==null||e.destroy(),this.ms1=void 0,this.ms2=void 0}},zu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("#select1",{placeholder:'Placeholder with cross-site scripting code...',sanitizer:t=>typeof t=="string"?decodeURIComponent(t).replace(/(\b)(on[a-z]+)(\s*)=|javascript:([^>]*)[^>]*|(<\s*)(\/*)script([<>]*).*(<\s*)(\/*)script(>*)|(<)(\/*)(script|script defer)(.*)(>|>">)/gi,""):t})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}};let Ku=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select",{classes:"form-control",classPrefix:"form-control"})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},Yu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#getOptions").addEventListener("click",()=>{alert(JSON.stringify(this.ms1.getOptions(),null,4))})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Xu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#refreshOptions").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.refreshOptions({filter:!1})})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Qu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#setSelectsBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.setSelects([1,3])}),document.querySelector("#getSelectsBtn").addEventListener("click",()=>{var t,e;alert(`Selected values: ${(t=this.ms1)==null?void 0:t.getSelects()}`),alert(`Selected texts: ${(e=this.ms1)==null?void 0:e.getSelects("text")}`)}),document.querySelector("#setSelectsBtn2").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.setSelects(["February","April"],"text")}),document.querySelector("#getSelectsBtn2").addEventListener("click",()=>{var t;alert(`Selected values: ${(t=this.ms1)==null?void 0:t.getSelects("text")}`)})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},Zu=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#enableBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.enable()}),document.querySelector("#disableBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.disable()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},td=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#openBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.open()}),document.querySelector("#closeBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.close()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ed=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkBtn").addEventListener("click",()=>{for(const t of this.ms)t.check(2)}),document.querySelector("#uncheckBtn").addEventListener("click",()=>{for(const t of this.ms)t.uncheck(2)})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},nd=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkAllBtn").addEventListener("click",()=>{for(const t of this.ms)t.checkAll()}),document.querySelector("#uncheckAllBtn").addEventListener("click",()=>{for(const t of this.ms)t.uncheckAll()})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},od=class{constructor(){u(this,"ms",[])}mount(){this.ms=h("select"),document.querySelector("#checkInvert").addEventListener("click",()=>{for(const t of this.ms)t.checkInvert()})}unmount(){this.ms.forEach(t=>t.destroy()),this.ms=[]}},id=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select"),document.querySelector("#focusBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.focus()}),document.querySelector("#blurBtn").addEventListener("click",()=>{var t;(t=this.ms1)==null||t.blur()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},sd=class{constructor(){u(this,"ms1")}mount(){const t=document.querySelector("select");this.ms1=h(t),document.querySelector("#refreshAdd").addEventListener("click",()=>{var a;const e=document.querySelector("#refreshInput"),o=document.querySelector("#refreshSelected"),i=document.querySelector("#refreshDisabled"),s=e.value.trim(),l=document.createElement("option");if(l.value=s,l.text=s,!s){e.focus();return}o.checked&&(l.selected=!0),i.checked&&(l.disabled=!0),e.value="",t.appendChild(l),(a=this.ms1)==null||a.refresh()})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},ld=class{constructor(){u(this,"buildBtnElm");u(this,"destroyBtnElm");u(this,"ms1")}mount(){this.buildBtnElm=document.querySelector("#buildBtn"),this.destroyBtnElm=document.querySelector("#destroyBtn"),this.destroyBtnElm.addEventListener("click",this.destroyMultiSelect.bind(this)),this.buildBtnElm.addEventListener("click",this.createMultipleSelect.bind(this)),this.ms1=h("select")}createMultipleSelect(){this.ms1=h("select")}destroyMultiSelect(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=null}unmount(){this.destroyMultiSelect(),this.buildBtnElm.removeEventListener("click",this.destroyMultiSelect.bind(this)),this.destroyBtnElm.removeEventListener("click",this.createMultipleSelect.bind(this))}},ad=class{constructor(){u(this,"ms1")}mount(){this.ms1=h("select",{filter:!0}),document.querySelector("#getData").addEventListener("click",()=>{console.log("tt",JSON.stringify(this.ms1.getData())),alert(JSON.stringify(this.ms1.getData(),null,4))})}unmount(){var t;(t=this.ms1)==null||t.destroy(),this.ms1=void 0}},rd=class{constructor(){u(this,"logElm");u(this,"ms1")}mount(){this.logElm=document.querySelector("textarea"),this.ms1=h("select",{filter:!0,onOpen:()=>{this.log(`onOpen event fire! `)},onClose:()=>{this.log(`onClose event fire! `)},onCheckAll:()=>{this.log(`onCheckAll event fire! `)},onUncheckAll:()=>{this.log(`onUncheckAll event fire! diff --git a/index.html b/index.html index 23a76b448..ca953913c 100644 --- a/index.html +++ b/index.html @@ -5,7 +5,7 @@ Multiple-Select-Vanilla demo with Vite + TS - + diff --git a/playwright-report/data/02a1beeae5ba62051e464049c26cfa2add94a795.zip b/playwright-report/data/02a1beeae5ba62051e464049c26cfa2add94a795.zip deleted file mode 100644 index 75aad97c6..000000000 Binary files a/playwright-report/data/02a1beeae5ba62051e464049c26cfa2add94a795.zip and /dev/null differ diff --git a/playwright-report/data/051bc0b990be1f386bfc1b070a1b9c4bd00d90ce.zip b/playwright-report/data/051bc0b990be1f386bfc1b070a1b9c4bd00d90ce.zip deleted file mode 100644 index 24a6aa37a..000000000 Binary files a/playwright-report/data/051bc0b990be1f386bfc1b070a1b9c4bd00d90ce.zip and /dev/null differ diff --git a/playwright-report/data/0c6a8b0b5386de55119cd77d14056cc87430d20d.zip b/playwright-report/data/0c6a8b0b5386de55119cd77d14056cc87430d20d.zip deleted file mode 100644 index 4c7d51436..000000000 Binary files a/playwright-report/data/0c6a8b0b5386de55119cd77d14056cc87430d20d.zip and /dev/null differ diff --git a/playwright-report/data/1059b80bab48103aee04289c8ab7ed64c2bb2ef8.zip b/playwright-report/data/1059b80bab48103aee04289c8ab7ed64c2bb2ef8.zip deleted file mode 100644 index 330bf6a36..000000000 Binary files a/playwright-report/data/1059b80bab48103aee04289c8ab7ed64c2bb2ef8.zip and /dev/null differ diff --git a/playwright-report/data/132803569b1bd4c403e78e867d29f17bfbedfce0.zip b/playwright-report/data/132803569b1bd4c403e78e867d29f17bfbedfce0.zip deleted file mode 100644 index 916589333..000000000 Binary files a/playwright-report/data/132803569b1bd4c403e78e867d29f17bfbedfce0.zip and /dev/null differ diff --git a/playwright-report/data/13bee4623b70dc2234013010058b471f71c8bc96.zip b/playwright-report/data/13bee4623b70dc2234013010058b471f71c8bc96.zip deleted file mode 100644 index de0945e3d..000000000 Binary files a/playwright-report/data/13bee4623b70dc2234013010058b471f71c8bc96.zip and /dev/null differ diff --git a/playwright-report/data/170d54e8dbbcf2188bea1860949501705ab69bac.zip b/playwright-report/data/170d54e8dbbcf2188bea1860949501705ab69bac.zip deleted file mode 100644 index 5f857d788..000000000 Binary files a/playwright-report/data/170d54e8dbbcf2188bea1860949501705ab69bac.zip and /dev/null differ diff --git a/playwright-report/data/172cca1ee1aad0ac8298c45948979a191459362e.zip b/playwright-report/data/172cca1ee1aad0ac8298c45948979a191459362e.zip deleted file mode 100644 index f79e92496..000000000 Binary files a/playwright-report/data/172cca1ee1aad0ac8298c45948979a191459362e.zip and /dev/null differ diff --git a/playwright-report/data/18b505f1e308d936371f8b38730166e10005d134.zip b/playwright-report/data/18b505f1e308d936371f8b38730166e10005d134.zip deleted file mode 100644 index 2a1ba36a6..000000000 Binary files a/playwright-report/data/18b505f1e308d936371f8b38730166e10005d134.zip and /dev/null differ diff --git a/playwright-report/data/1f37106f2f52f25b93f22a1b0ba349e9725e7106.zip b/playwright-report/data/1f37106f2f52f25b93f22a1b0ba349e9725e7106.zip deleted file mode 100644 index cbfb339e7..000000000 Binary files a/playwright-report/data/1f37106f2f52f25b93f22a1b0ba349e9725e7106.zip and /dev/null differ diff --git a/playwright-report/data/23fdc0dba96a1123532f4715b8f171e0e8ba6a6d.zip b/playwright-report/data/23fdc0dba96a1123532f4715b8f171e0e8ba6a6d.zip deleted file mode 100644 index 0c627acf1..000000000 Binary files a/playwright-report/data/23fdc0dba96a1123532f4715b8f171e0e8ba6a6d.zip and /dev/null differ diff --git a/playwright-report/data/2c73fb5ff9dd08e322009948092b7e072df00e95.zip b/playwright-report/data/2c73fb5ff9dd08e322009948092b7e072df00e95.zip deleted file mode 100644 index ec7d0d3ed..000000000 Binary files a/playwright-report/data/2c73fb5ff9dd08e322009948092b7e072df00e95.zip and /dev/null differ diff --git a/playwright-report/data/2c82d32494c395f71e64d7a46b6e0e5ad03a2bb7.zip b/playwright-report/data/2c82d32494c395f71e64d7a46b6e0e5ad03a2bb7.zip deleted file mode 100644 index 74c5d3e51..000000000 Binary files a/playwright-report/data/2c82d32494c395f71e64d7a46b6e0e5ad03a2bb7.zip and /dev/null differ diff --git a/playwright-report/data/2f4f164d12b6814e0045d346d18b57bfc2a42399.zip b/playwright-report/data/2f4f164d12b6814e0045d346d18b57bfc2a42399.zip deleted file mode 100644 index e4039dfb2..000000000 Binary files a/playwright-report/data/2f4f164d12b6814e0045d346d18b57bfc2a42399.zip and /dev/null differ diff --git a/playwright-report/data/31774883bd572bbba8da20c59a7ff2cad7c4136a.zip b/playwright-report/data/31774883bd572bbba8da20c59a7ff2cad7c4136a.zip deleted file mode 100644 index c69d0da86..000000000 Binary files a/playwright-report/data/31774883bd572bbba8da20c59a7ff2cad7c4136a.zip and /dev/null differ diff --git a/playwright-report/data/3417b25fa096be26fdcfb7cb2f89e9ac0a47c0f0.zip b/playwright-report/data/3417b25fa096be26fdcfb7cb2f89e9ac0a47c0f0.zip deleted file mode 100644 index 6251b2452..000000000 Binary files a/playwright-report/data/3417b25fa096be26fdcfb7cb2f89e9ac0a47c0f0.zip and /dev/null differ diff --git a/playwright-report/data/361ef96ddbef0ca5d05797cf1c2221cb2516f7b0.zip b/playwright-report/data/361ef96ddbef0ca5d05797cf1c2221cb2516f7b0.zip deleted file mode 100644 index 9eec25bdf..000000000 Binary files a/playwright-report/data/361ef96ddbef0ca5d05797cf1c2221cb2516f7b0.zip and /dev/null differ diff --git a/playwright-report/data/36c17b787fdd4404827ceb7338eddbb990600e8e.zip b/playwright-report/data/36c17b787fdd4404827ceb7338eddbb990600e8e.zip deleted file mode 100644 index 9bf7abcbd..000000000 Binary files a/playwright-report/data/36c17b787fdd4404827ceb7338eddbb990600e8e.zip and /dev/null differ diff --git a/playwright-report/data/385ad4b9dc5ef303cafa94b7b8eb7c2839addc7e.zip b/playwright-report/data/385ad4b9dc5ef303cafa94b7b8eb7c2839addc7e.zip deleted file mode 100644 index 5494499b3..000000000 Binary files a/playwright-report/data/385ad4b9dc5ef303cafa94b7b8eb7c2839addc7e.zip and /dev/null differ diff --git a/playwright-report/data/3db14f4b06b9a51c5a9139ba2126f64b36c64553.zip b/playwright-report/data/3db14f4b06b9a51c5a9139ba2126f64b36c64553.zip deleted file mode 100644 index e46c82efb..000000000 Binary files a/playwright-report/data/3db14f4b06b9a51c5a9139ba2126f64b36c64553.zip and /dev/null differ diff --git a/playwright-report/data/469ec4476d8b4cf2206f8b1609c7f578e0fc8816.zip b/playwright-report/data/469ec4476d8b4cf2206f8b1609c7f578e0fc8816.zip deleted file mode 100644 index 4001f4dbf..000000000 Binary files a/playwright-report/data/469ec4476d8b4cf2206f8b1609c7f578e0fc8816.zip and /dev/null differ diff --git a/playwright-report/data/473057f0588cf9831251be95dbfb3c4bac871ae4.zip b/playwright-report/data/473057f0588cf9831251be95dbfb3c4bac871ae4.zip deleted file mode 100644 index 210b8198a..000000000 Binary files a/playwright-report/data/473057f0588cf9831251be95dbfb3c4bac871ae4.zip and /dev/null differ diff --git a/playwright-report/data/479798749247f75a79499fc4d15478427fd7aac0.zip b/playwright-report/data/479798749247f75a79499fc4d15478427fd7aac0.zip deleted file mode 100644 index e5b753cb0..000000000 Binary files a/playwright-report/data/479798749247f75a79499fc4d15478427fd7aac0.zip and /dev/null differ diff --git a/playwright-report/data/4a8832766f5b2b455fdde79705543f79894e7673.zip b/playwright-report/data/4a8832766f5b2b455fdde79705543f79894e7673.zip deleted file mode 100644 index f2b731f3c..000000000 Binary files a/playwright-report/data/4a8832766f5b2b455fdde79705543f79894e7673.zip and /dev/null differ diff --git a/playwright-report/data/5168312356eff66815fa2f69046fe7d94296f964.zip b/playwright-report/data/5168312356eff66815fa2f69046fe7d94296f964.zip deleted file mode 100644 index 9f3215e82..000000000 Binary files a/playwright-report/data/5168312356eff66815fa2f69046fe7d94296f964.zip and /dev/null differ diff --git a/playwright-report/data/57a85f1fc501d0f2816b6393b85c3cf3a31364bd.zip b/playwright-report/data/57a85f1fc501d0f2816b6393b85c3cf3a31364bd.zip deleted file mode 100644 index 2058b0eac..000000000 Binary files a/playwright-report/data/57a85f1fc501d0f2816b6393b85c3cf3a31364bd.zip and /dev/null differ diff --git a/playwright-report/data/5ce65c4834959126c331e7357f78abdbe1455255.zip b/playwright-report/data/5ce65c4834959126c331e7357f78abdbe1455255.zip deleted file mode 100644 index 96725c396..000000000 Binary files a/playwright-report/data/5ce65c4834959126c331e7357f78abdbe1455255.zip and /dev/null differ diff --git a/playwright-report/data/62fd18878eb39ecfbccbb17e0783a28e391131cc.zip b/playwright-report/data/62fd18878eb39ecfbccbb17e0783a28e391131cc.zip deleted file mode 100644 index e4bae47f7..000000000 Binary files a/playwright-report/data/62fd18878eb39ecfbccbb17e0783a28e391131cc.zip and /dev/null differ diff --git a/playwright-report/data/69e0d0a2977e6492738c816f54460967b99b6cff.zip b/playwright-report/data/69e0d0a2977e6492738c816f54460967b99b6cff.zip deleted file mode 100644 index 470aa2633..000000000 Binary files a/playwright-report/data/69e0d0a2977e6492738c816f54460967b99b6cff.zip and /dev/null differ diff --git a/playwright-report/data/6c0814531f467fc354183dfe69b3f6b6df5f789d.zip b/playwright-report/data/6c0814531f467fc354183dfe69b3f6b6df5f789d.zip deleted file mode 100644 index d43e8ba34..000000000 Binary files a/playwright-report/data/6c0814531f467fc354183dfe69b3f6b6df5f789d.zip and /dev/null differ diff --git a/playwright-report/data/700326eb00bc53a9b30e538279d6d95bdc9bf1d4.zip b/playwright-report/data/700326eb00bc53a9b30e538279d6d95bdc9bf1d4.zip deleted file mode 100644 index 80d574c4b..000000000 Binary files a/playwright-report/data/700326eb00bc53a9b30e538279d6d95bdc9bf1d4.zip and /dev/null differ diff --git a/playwright-report/data/71b82fbadfd00e6e3b3671286c84fe2c63eedc83.zip b/playwright-report/data/71b82fbadfd00e6e3b3671286c84fe2c63eedc83.zip deleted file mode 100644 index 7f66ab91e..000000000 Binary files a/playwright-report/data/71b82fbadfd00e6e3b3671286c84fe2c63eedc83.zip and /dev/null differ diff --git a/playwright-report/data/73c60ac8abf07528781e8e27309d1d8c656509e7.zip b/playwright-report/data/73c60ac8abf07528781e8e27309d1d8c656509e7.zip deleted file mode 100644 index bae8c7211..000000000 Binary files a/playwright-report/data/73c60ac8abf07528781e8e27309d1d8c656509e7.zip and /dev/null differ diff --git a/playwright-report/data/74cb3bfb5a9fe485faaf14a629a357902569c164.zip b/playwright-report/data/74cb3bfb5a9fe485faaf14a629a357902569c164.zip deleted file mode 100644 index f689d5881..000000000 Binary files a/playwright-report/data/74cb3bfb5a9fe485faaf14a629a357902569c164.zip and /dev/null differ diff --git a/playwright-report/data/75dfccb3601243200be1e64582fcf99de3baf3be.zip b/playwright-report/data/75dfccb3601243200be1e64582fcf99de3baf3be.zip deleted file mode 100644 index 7ea231330..000000000 Binary files a/playwright-report/data/75dfccb3601243200be1e64582fcf99de3baf3be.zip and /dev/null differ diff --git a/playwright-report/data/76b8903b32e1b861678925fca489b914576f900e.zip b/playwright-report/data/76b8903b32e1b861678925fca489b914576f900e.zip deleted file mode 100644 index 7738c4b51..000000000 Binary files a/playwright-report/data/76b8903b32e1b861678925fca489b914576f900e.zip and /dev/null differ diff --git a/playwright-report/data/807556916d34ba87113bcd29925ede58f48c904f.zip b/playwright-report/data/807556916d34ba87113bcd29925ede58f48c904f.zip deleted file mode 100644 index 4992f62ae..000000000 Binary files a/playwright-report/data/807556916d34ba87113bcd29925ede58f48c904f.zip and /dev/null differ diff --git a/playwright-report/data/816713eeaf4094e7f3f9d29669961794acb24e6d.zip b/playwright-report/data/816713eeaf4094e7f3f9d29669961794acb24e6d.zip deleted file mode 100644 index c55040076..000000000 Binary files a/playwright-report/data/816713eeaf4094e7f3f9d29669961794acb24e6d.zip and /dev/null differ diff --git a/playwright-report/data/81cafafe53cb06754369bcd457586c5954a1589e.zip b/playwright-report/data/81cafafe53cb06754369bcd457586c5954a1589e.zip deleted file mode 100644 index 37a83e37b..000000000 Binary files a/playwright-report/data/81cafafe53cb06754369bcd457586c5954a1589e.zip and /dev/null differ diff --git a/playwright-report/data/861886d06c6ad0d53be420a4d4df682d923acea7.zip b/playwright-report/data/861886d06c6ad0d53be420a4d4df682d923acea7.zip deleted file mode 100644 index ff76f9619..000000000 Binary files a/playwright-report/data/861886d06c6ad0d53be420a4d4df682d923acea7.zip and /dev/null differ diff --git a/playwright-report/data/8c8525d8333817a9b9303465bfde7175a80724c8.zip b/playwright-report/data/8c8525d8333817a9b9303465bfde7175a80724c8.zip deleted file mode 100644 index 7cec17db1..000000000 Binary files a/playwright-report/data/8c8525d8333817a9b9303465bfde7175a80724c8.zip and /dev/null differ diff --git a/playwright-report/data/94310bab52a8db64b04b04bee9a674d58347e007.zip b/playwright-report/data/94310bab52a8db64b04b04bee9a674d58347e007.zip deleted file mode 100644 index 0eae8bb29..000000000 Binary files a/playwright-report/data/94310bab52a8db64b04b04bee9a674d58347e007.zip and /dev/null differ diff --git a/playwright-report/data/97404532bf708f0ef9991e3c0955525bb5912125.zip b/playwright-report/data/97404532bf708f0ef9991e3c0955525bb5912125.zip deleted file mode 100644 index b6bd6471f..000000000 Binary files a/playwright-report/data/97404532bf708f0ef9991e3c0955525bb5912125.zip and /dev/null differ diff --git a/playwright-report/data/99803adbce45adb48cb0ccf7be8b893be8d373b1.zip b/playwright-report/data/99803adbce45adb48cb0ccf7be8b893be8d373b1.zip deleted file mode 100644 index c7a7b6465..000000000 Binary files a/playwright-report/data/99803adbce45adb48cb0ccf7be8b893be8d373b1.zip and /dev/null differ diff --git a/playwright-report/data/99bcde9695d2a55957b3190b6ecbd537caff2383.zip b/playwright-report/data/99bcde9695d2a55957b3190b6ecbd537caff2383.zip deleted file mode 100644 index e94c893a4..000000000 Binary files a/playwright-report/data/99bcde9695d2a55957b3190b6ecbd537caff2383.zip and /dev/null differ diff --git a/playwright-report/data/a1b0e7a74ba5171693398c784c9cb49c9e847516.zip b/playwright-report/data/a1b0e7a74ba5171693398c784c9cb49c9e847516.zip deleted file mode 100644 index 3f2d4d93b..000000000 Binary files a/playwright-report/data/a1b0e7a74ba5171693398c784c9cb49c9e847516.zip and /dev/null differ diff --git a/playwright-report/data/a4901a0ef20169aaf7b24b281885e64ee8c52f93.zip b/playwright-report/data/a4901a0ef20169aaf7b24b281885e64ee8c52f93.zip deleted file mode 100644 index b0c2ab5f2..000000000 Binary files a/playwright-report/data/a4901a0ef20169aaf7b24b281885e64ee8c52f93.zip and /dev/null differ diff --git a/playwright-report/data/ab2e2f780d9587881e9ca1b0a324eb41090b67b5.zip b/playwright-report/data/ab2e2f780d9587881e9ca1b0a324eb41090b67b5.zip deleted file mode 100644 index efdad22ed..000000000 Binary files a/playwright-report/data/ab2e2f780d9587881e9ca1b0a324eb41090b67b5.zip and /dev/null differ diff --git a/playwright-report/data/b057ab0a81b9aa5a19565b3096bc07e4bf8770a0.zip b/playwright-report/data/b057ab0a81b9aa5a19565b3096bc07e4bf8770a0.zip deleted file mode 100644 index 1fa8adcaf..000000000 Binary files a/playwright-report/data/b057ab0a81b9aa5a19565b3096bc07e4bf8770a0.zip and /dev/null differ diff --git a/playwright-report/data/b434364511cd7c31a9add13f50024b4a840e1368.zip b/playwright-report/data/b434364511cd7c31a9add13f50024b4a840e1368.zip deleted file mode 100644 index a7fee1d9d..000000000 Binary files a/playwright-report/data/b434364511cd7c31a9add13f50024b4a840e1368.zip and /dev/null differ diff --git a/playwright-report/data/b5157e0bcdae217d4258bf2b86972515c59c9b4a.zip b/playwright-report/data/b5157e0bcdae217d4258bf2b86972515c59c9b4a.zip deleted file mode 100644 index d56bd5b46..000000000 Binary files a/playwright-report/data/b5157e0bcdae217d4258bf2b86972515c59c9b4a.zip and /dev/null differ diff --git a/playwright-report/data/bcf73b0eab72a55691ca67643beec8d7ca282d25.zip b/playwright-report/data/bcf73b0eab72a55691ca67643beec8d7ca282d25.zip deleted file mode 100644 index cdcf829d7..000000000 Binary files a/playwright-report/data/bcf73b0eab72a55691ca67643beec8d7ca282d25.zip and /dev/null differ diff --git a/playwright-report/data/c48a83a3b47dfeed39898c26e19135bd1ab74d51.zip b/playwright-report/data/c48a83a3b47dfeed39898c26e19135bd1ab74d51.zip deleted file mode 100644 index 8651b6c26..000000000 Binary files a/playwright-report/data/c48a83a3b47dfeed39898c26e19135bd1ab74d51.zip and /dev/null differ diff --git a/playwright-report/data/c53803e7586d8c8a444f7b1abbd811c8d30cf871.zip b/playwright-report/data/c53803e7586d8c8a444f7b1abbd811c8d30cf871.zip deleted file mode 100644 index 889682ef5..000000000 Binary files a/playwright-report/data/c53803e7586d8c8a444f7b1abbd811c8d30cf871.zip and /dev/null differ diff --git a/playwright-report/data/d25c034f38cf4b9613983ec5ff32436f953c209c.zip b/playwright-report/data/d25c034f38cf4b9613983ec5ff32436f953c209c.zip deleted file mode 100644 index 358c03225..000000000 Binary files a/playwright-report/data/d25c034f38cf4b9613983ec5ff32436f953c209c.zip and /dev/null differ diff --git a/playwright-report/data/d845e2004cbc466aafb522f48b2200ef8a2776ca.zip b/playwright-report/data/d845e2004cbc466aafb522f48b2200ef8a2776ca.zip deleted file mode 100644 index b56360bdc..000000000 Binary files a/playwright-report/data/d845e2004cbc466aafb522f48b2200ef8a2776ca.zip and /dev/null differ diff --git a/playwright-report/data/dc85da60acde4d63f69a52a6db5d37b8e2c5e0ac.zip b/playwright-report/data/dc85da60acde4d63f69a52a6db5d37b8e2c5e0ac.zip deleted file mode 100644 index 0106b7973..000000000 Binary files a/playwright-report/data/dc85da60acde4d63f69a52a6db5d37b8e2c5e0ac.zip and /dev/null differ diff --git a/playwright-report/data/df98446a81deb009d932f5f9a49298b59ad884c9.zip b/playwright-report/data/df98446a81deb009d932f5f9a49298b59ad884c9.zip deleted file mode 100644 index 2a11c1916..000000000 Binary files a/playwright-report/data/df98446a81deb009d932f5f9a49298b59ad884c9.zip and /dev/null differ diff --git a/playwright-report/data/e1cd6e6c2e29e82b148d14d52d8a9d67e7181599.zip b/playwright-report/data/e1cd6e6c2e29e82b148d14d52d8a9d67e7181599.zip deleted file mode 100644 index 6d8dadc9e..000000000 Binary files a/playwright-report/data/e1cd6e6c2e29e82b148d14d52d8a9d67e7181599.zip and /dev/null differ diff --git a/playwright-report/data/e2d7fc45013700ee2d26382f20ddf0e388db9d68.zip b/playwright-report/data/e2d7fc45013700ee2d26382f20ddf0e388db9d68.zip deleted file mode 100644 index 774e417e4..000000000 Binary files a/playwright-report/data/e2d7fc45013700ee2d26382f20ddf0e388db9d68.zip and /dev/null differ diff --git a/playwright-report/data/e7d97895b376d533101404613884640e19cd2095.zip b/playwright-report/data/e7d97895b376d533101404613884640e19cd2095.zip deleted file mode 100644 index 260010745..000000000 Binary files a/playwright-report/data/e7d97895b376d533101404613884640e19cd2095.zip and /dev/null differ diff --git a/playwright-report/data/f2f47da2cd57cf84b6ed55074e9d90f3aeff9307.zip b/playwright-report/data/f2f47da2cd57cf84b6ed55074e9d90f3aeff9307.zip deleted file mode 100644 index 811bbf720..000000000 Binary files a/playwright-report/data/f2f47da2cd57cf84b6ed55074e9d90f3aeff9307.zip and /dev/null differ diff --git a/playwright-report/data/f8f07da102dc1efd6c18d37624f55f06f29a3ab4.zip b/playwright-report/data/f8f07da102dc1efd6c18d37624f55f06f29a3ab4.zip deleted file mode 100644 index 9d39d9bf0..000000000 Binary files a/playwright-report/data/f8f07da102dc1efd6c18d37624f55f06f29a3ab4.zip and /dev/null differ diff --git a/playwright-report/data/fb4addf48fb5e40d1b0de0bb4c9b6407eb16133c.zip b/playwright-report/data/fb4addf48fb5e40d1b0de0bb4c9b6407eb16133c.zip deleted file mode 100644 index 9887b039f..000000000 Binary files a/playwright-report/data/fb4addf48fb5e40d1b0de0bb4c9b6407eb16133c.zip and /dev/null differ diff --git a/playwright-report/data/fde490658fd8b955e93253997f1326ddd0eb5166.zip b/playwright-report/data/fde490658fd8b955e93253997f1326ddd0eb5166.zip deleted file mode 100644 index fdd8c5b0f..000000000 Binary files a/playwright-report/data/fde490658fd8b955e93253997f1326ddd0eb5166.zip and /dev/null differ diff --git a/playwright-report/data/fefecda4e415a92bf4c02e975b43395e2fb2ca8f.zip b/playwright-report/data/fefecda4e415a92bf4c02e975b43395e2fb2ca8f.zip deleted file mode 100644 index 48b2ca8b5..000000000 Binary files a/playwright-report/data/fefecda4e415a92bf4c02e975b43395e2fb2ca8f.zip and /dev/null differ diff --git a/playwright-report/index.html b/playwright-report/index.html deleted file mode 100644 index 331610a7d..000000000 --- a/playwright-report/index.html +++ /dev/null @@ -1,62 +0,0 @@ - - - - - - - - - Playwright Test Report - - - - -
    - - - - \ No newline at end of file diff --git a/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js b/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js deleted file mode 100644 index 389494611..000000000 --- a/playwright-report/trace/assets/codeMirrorModule-316e0bb2.js +++ /dev/null @@ -1,24 +0,0 @@ -import{n as vu,o as gu}from"./wsPort-0625ac95.js";var pa={exports:{}};(function(mr,Or){(function(I,Pe){mr.exports=Pe()})(gu,function(){var I=navigator.userAgent,Pe=navigator.platform,we=/gecko\/\d/i.test(I),He=/MSIE \d/.test(I),$e=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(I),Ce=/Edge\/(\d+)/.exec(I),M=He||$e||Ce,j=M&&(He?document.documentMode||6:+(Ce||$e)[1]),W=!Ce&&/WebKit\//.test(I),ee=W&&/Qt\/\d+\.\d+/.test(I),G=!Ce&&/Chrome\/(\d+)/.exec(I),ue=G&&+G[1],ce=/Opera\//.test(I),Ee=/Apple Computer/.test(navigator.vendor),Se=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(I),Ae=/PhantomJS/.test(I),re=Ee&&(/Mobile\/\w+/.test(I)||navigator.maxTouchPoints>2),J=/Android/.test(I),te=re||J||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(I),xe=re||/Mac/.test(Pe),Be=/\bCrOS\b/.test(I),ye=/win/i.test(Pe),Le=ce&&I.match(/Version\/(\d*\.\d*)/);Le&&(Le=Number(Le[1])),Le&&Le>=15&&(ce=!1,W=!0);var Re=xe&&(ee||ce&&(Le==null||Le<12.11)),$=we||M&&j>=9;function X(e){return new RegExp("(^|\\s)"+e+"(?:$|\\s)\\s*")}var me=function(e,t){var n=e.className,r=X(t).exec(n);if(r){var i=n.slice(r.index+r[0].length);e.className=n.slice(0,r.index)+(i?r[1]+i:"")}};function L(e){for(var t=e.childNodes.length;t>0;--t)e.removeChild(e.firstChild);return e}function _(e,t){return L(e).appendChild(t)}function c(e,t,n,r){var i=document.createElement(e);if(n&&(i.className=n),r&&(i.style.cssText=r),typeof t=="string")i.appendChild(document.createTextNode(t));else if(t)for(var o=0;o=t)return l+(t-o);l+=a-o,l+=n-l%n,o=a+1}}var fe=function(){this.id=null,this.f=null,this.time=0,this.handler=We(this.onTimeout,this)};fe.prototype.onTimeout=function(e){e.id=0,e.time<=+new Date?e.f():setTimeout(e.handler,e.time-+new Date)},fe.prototype.set=function(e,t){this.f=t;var n=+new Date+e;(!this.id||n=t)return r+Math.min(l,t-i);if(i+=o-r,i+=n-i%n,r=o+1,i>=t)return r}}var Te=[""];function Ue(e){for(;Te.length<=e;)Te.push(de(Te)+" ");return Te[e]}function de(e){return e[e.length-1]}function st(e,t){for(var n=[],r=0;r"€"&&(e.toUpperCase()!=e.toLowerCase()||A.test(e))}function pe(e,t){return t?t.source.indexOf("\\w")>-1&&T(e)?!0:t.test(e):T(e)}function R(e){for(var t in e)if(e.hasOwnProperty(t)&&e[t])return!1;return!0}var ne=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function q(e){return e.charCodeAt(0)>=768&&ne.test(e)}function be(e,t,n){for(;(n<0?t>0:tn?-1:1;;){if(t==n)return t;var i=(t+n)/2,o=r<0?Math.ceil(i):Math.floor(i);if(o==t)return e(o)?t:n;e(o)?n=o:t=o+r}}function Nt(e,t,n,r){if(!e)return r(t,n,"ltr",0);for(var i=!1,o=0;ot||t==n&&l.to==t)&&(r(Math.max(l.from,t),Math.min(l.to,n),l.level==1?"rtl":"ltr",o),i=!0)}i||r(t,n,"ltr")}var zt=null;function Pt(e,t,n){var r;zt=null;for(var i=0;it)return i;o.to==t&&(o.from!=o.to&&n=="before"?r=i:zt=i),o.from==t&&(o.from!=o.to&&n!="before"?r=i:zt=i)}return r??zt}var vi=function(){var e="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",t="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function n(u){return u<=247?e.charAt(u):1424<=u&&u<=1524?"R":1536<=u&&u<=1785?t.charAt(u-1536):1774<=u&&u<=2220?"r":8192<=u&&u<=8203?"w":u==8204?"b":"L"}var r=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,i=/[stwN]/,o=/[LRr]/,l=/[Lb1n]/,a=/[1n]/;function s(u,d,h){this.level=u,this.from=d,this.to=h}return function(u,d){var h=d=="ltr"?"L":"R";if(u.length==0||d=="ltr"&&!r.test(u))return!1;for(var b=u.length,m=[],C=0;C-1&&(r[t]=i.slice(0,o).concat(i.slice(o+1)))}}}function _e(e,t){var n=en(e,t);if(n.length)for(var r=Array.prototype.slice.call(arguments,2),i=0;i0}function pt(e){e.prototype.on=function(t,n){E(this,t,n)},e.prototype.off=function(t,n){ut(this,t,n)}}function ft(e){e.preventDefault?e.preventDefault():e.returnValue=!1}function br(e){e.stopPropagation?e.stopPropagation():e.cancelBubble=!0}function tn(e){return e.defaultPrevented!=null?e.defaultPrevented:e.returnValue==!1}function Zt(e){ft(e),br(e)}function mt(e){return e.target||e.srcElement}function rn(e){var t=e.which;return t==null&&(e.button&1?t=1:e.button&2?t=3:e.button&4&&(t=2)),xe&&e.ctrlKey&&t==1&&(t=3),t}var gi=function(){if(M&&j<9)return!1;var e=c("div");return"draggable"in e||"dragDrop"in e}(),It;function yi(e){if(It==null){var t=c("span","​");_(e,c("span",[t,document.createTextNode("x")])),e.firstChild.offsetHeight!=0&&(It=t.offsetWidth<=1&&t.offsetHeight>2&&!(M&&j<8))}var n=It?c("span","​"):c("span"," ",null,"display: inline-block; width: 1px; margin-right: -1px");return n.setAttribute("cm-text",""),n}var zr;function In(e){if(zr!=null)return zr;var t=_(e,document.createTextNode("AخA")),n=x(t,0,1).getBoundingClientRect(),r=x(t,1,2).getBoundingClientRect();return L(e),!n||n.left==n.right?!1:zr=r.right-n.right<3}var nn=` - -b`.split(/\n/).length!=3?function(e){for(var t=0,n=[],r=e.length;t<=r;){var i=e.indexOf(` -`,t);i==-1&&(i=e.length);var o=e.slice(t,e.charAt(i-1)=="\r"?i-1:i),l=o.indexOf("\r");l!=-1?(n.push(o.slice(0,l)),t+=l+1):(n.push(o),t=i+1)}return n}:function(e){return e.split(/\r\n?|\n/)},or=window.getSelection?function(e){try{return e.selectionStart!=e.selectionEnd}catch{return!1}}:function(e){var t;try{t=e.ownerDocument.selection.createRange()}catch{}return!t||t.parentElement()!=e?!1:t.compareEndPoints("StartToEnd",t)!=0},Kt=function(){var e=c("div");return"oncopy"in e?!0:(e.setAttribute("oncopy","return;"),typeof e.oncopy=="function")}(),Ut=null;function Fn(e){if(Ut!=null)return Ut;var t=_(e,c("span","x")),n=t.getBoundingClientRect(),r=x(t,0,1).getBoundingClientRect();return Ut=Math.abs(n.left-r.left)>1}var Wt={},lr={};function Wn(e,t){arguments.length>2&&(t.dependencies=Array.prototype.slice.call(arguments,2)),Wt[e]=t}function Pr(e,t){lr[e]=t}function Ct(e){if(typeof e=="string"&&lr.hasOwnProperty(e))e=lr[e];else if(e&&typeof e.name=="string"&&lr.hasOwnProperty(e.name)){var t=lr[e.name];typeof t=="string"&&(t={name:t}),e=k(t,e),e.name=t.name}else{if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(e))return Ct("application/xml");if(typeof e=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(e))return Ct("application/json")}return typeof e=="string"?{name:e}:e||{name:"null"}}function Jt(e,t){t=Ct(t);var n=Wt[t.name];if(!n)return Jt(e,"text/plain");var r=n(e,t);if(ar.hasOwnProperty(t.name)){var i=ar[t.name];for(var o in i)i.hasOwnProperty(o)&&(r.hasOwnProperty(o)&&(r["_"+o]=r[o]),r[o]=i[o])}if(r.name=t.name,t.helperType&&(r.helperType=t.helperType),t.modeProps)for(var l in t.modeProps)r[l]=t.modeProps[l];return r}var ar={};function _n(e,t){var n=ar.hasOwnProperty(e)?ar[e]:ar[e]={};V(t,n)}function Qt(e,t){if(t===!0)return t;if(e.copyState)return e.copyState(t);var n={};for(var r in t){var i=t[r];i instanceof Array&&(i=i.concat([])),n[r]=i}return n}function sr(e,t){for(var n;e.innerMode&&(n=e.innerMode(t),!(!n||n.mode==e));)t=n.state,e=n.mode;return n||{mode:e,state:t}}function on(e,t,n){return e.startState?e.startState(t,n):!0}var Xe=function(e,t,n){this.pos=this.start=0,this.string=e,this.tabSize=t||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=n};Xe.prototype.eol=function(){return this.pos>=this.string.length},Xe.prototype.sol=function(){return this.pos==this.lineStart},Xe.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},Xe.prototype.next=function(){if(this.post},Xe.prototype.eatSpace=function(){for(var e=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>e},Xe.prototype.skipToEnd=function(){this.pos=this.string.length},Xe.prototype.skipTo=function(e){var t=this.string.indexOf(e,this.pos);if(t>-1)return this.pos=t,!0},Xe.prototype.backUp=function(e){this.pos-=e},Xe.prototype.column=function(){return this.lastColumnPos0?null:(o&&t!==!1&&(this.pos+=o[0].length),o)}},Xe.prototype.current=function(){return this.string.slice(this.start,this.pos)},Xe.prototype.hideFirstChars=function(e,t){this.lineStart+=e;try{return t()}finally{this.lineStart-=e}},Xe.prototype.lookAhead=function(e){var t=this.lineOracle;return t&&t.lookAhead(e)},Xe.prototype.baseToken=function(){var e=this.lineOracle;return e&&e.baseToken(this.pos)};function K(e,t){if(t-=e.first,t<0||t>=e.size)throw new Error("There is no line "+(t+e.first)+" in the document.");for(var n=e;!n.lines;)for(var r=0;;++r){var i=n.children[r],o=i.chunkSize();if(t=e.first&&tn?g(n,K(e,n).text.length):ga(t,K(e,t.line).text.length)}function ga(e,t){var n=e.ch;return n==null||n>t?g(e.line,t):n<0?g(e.line,0):e}function fo(e,t){for(var n=[],r=0;rthis.maxLookAhead&&(this.maxLookAhead=e),t},qt.prototype.baseToken=function(e){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=e;)this.baseTokenPos+=2;var t=this.baseTokens[this.baseTokenPos+1];return{type:t&&t.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-e}},qt.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},qt.fromSaved=function(e,t,n){return t instanceof Hn?new qt(e,Qt(e.mode,t.state),n,t.lookAhead):new qt(e,Qt(e.mode,t),n)},qt.prototype.save=function(e){var t=e!==!1?Qt(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Hn(t,this.maxLookAhead):t};function co(e,t,n,r){var i=[e.state.modeGen],o={};mo(e,t.text,e.doc.mode,n,function(u,d){return i.push(u,d)},o,r);for(var l=n.state,a=function(u){n.baseTokens=i;var d=e.state.overlays[u],h=1,b=0;n.state=!0,mo(e,t.text,d.mode,n,function(m,C){for(var N=h;bm&&i.splice(h,1,m,i[h+1],O),h+=2,b=Math.min(m,O)}if(C)if(d.opaque)i.splice(N,h-N,m,"overlay "+C),h=N+2;else for(;Ne.options.maxHighlightLength&&Qt(e.doc.mode,r.state),o=co(e,t,r);i&&(r.state=i),t.stateAfter=r.save(!i),t.styles=o.styles,o.classes?t.styleClasses=o.classes:t.styleClasses&&(t.styleClasses=null),n===e.doc.highlightFrontier&&(e.doc.modeFrontier=Math.max(e.doc.modeFrontier,++e.doc.highlightFrontier))}return t.styles}function ln(e,t,n){var r=e.doc,i=e.display;if(!r.mode.startState)return new qt(r,!0,t);var o=ya(e,t,n),l=o>r.first&&K(r,o-1).stateAfter,a=l?qt.fromSaved(r,l,o):new qt(r,on(r.mode),o);return r.iter(o,t,function(s){mi(e,s.text,a);var u=a.line;s.stateAfter=u==t-1||u%5==0||u>=i.viewFrom&&ut.start)return o}throw new Error("Mode "+e.name+" failed to advance stream.")}var vo=function(e,t,n){this.start=e.start,this.end=e.pos,this.string=e.current(),this.type=t||null,this.state=n};function go(e,t,n,r){var i=e.doc,o=i.mode,l;t=le(i,t);var a=K(i,t.line),s=ln(e,t.line,n),u=new Xe(a.text,e.options.tabSize,s),d;for(r&&(d=[]);(r||u.pose.options.maxHighlightLength?(a=!1,l&&mi(e,t,r,d.pos),d.pos=t.length,h=null):h=yo(bi(n,d,r.state,b),o),b){var m=b[0].name;m&&(h="m-"+(h?m+" "+h:m))}if(!a||u!=h){for(;sl;--a){if(a<=o.first)return o.first;var s=K(o,a-1),u=s.stateAfter;if(u&&(!n||a+(u instanceof Hn?u.lookAhead:0)<=o.modeFrontier))return a;var d=U(s.text,null,e.options.tabSize);(i==null||r>d)&&(i=a-1,r=d)}return i}function ma(e,t){if(e.modeFrontier=Math.min(e.modeFrontier,t),!(e.highlightFrontiern;r--){var i=K(e,r).stateAfter;if(i&&(!(i instanceof Hn)||r+i.lookAhead=t:o.to>t);(r||(r=[])).push(new Bn(l,o.from,s?null:o.to))}}return r}function Ca(e,t,n){var r;if(e)for(var i=0;i=t:o.to>t);if(a||o.from==t&&l.type=="bookmark"&&(!n||o.marker.insertLeft)){var s=o.from==null||(l.inclusiveLeft?o.from<=t:o.from0&&a)for(var H=0;H0)){var d=[s,1],h=S(u.from,a.from),b=S(u.to,a.to);(h<0||!l.inclusiveLeft&&!h)&&d.push({from:u.from,to:a.from}),(b>0||!l.inclusiveRight&&!b)&&d.push({from:a.to,to:u.to}),i.splice.apply(i,d),s+=d.length-3}}return i}function wo(e){var t=e.markedSpans;if(t){for(var n=0;nt)&&(!r||wi(r,o.marker)<0)&&(r=o.marker)}return r}function To(e,t,n,r,i){var o=K(e,t),l=$t&&o.markedSpans;if(l)for(var a=0;a=0&&h<=0||d<=0&&h>=0)&&(d<=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?S(u.to,n)>=0:S(u.to,n)>0)||d>=0&&(s.marker.inclusiveRight&&i.inclusiveLeft?S(u.from,r)<=0:S(u.from,r)<0)))return!0}}}function _t(e){for(var t;t=Co(e);)e=t.find(-1,!0).line;return e}function Ma(e){for(var t;t=Un(e);)e=t.find(1,!0).line;return e}function Na(e){for(var t,n;t=Un(e);)e=t.find(1,!0).line,(n||(n=[])).push(e);return n}function ki(e,t){var n=K(e,t),r=_t(n);return n==r?t:Ne(r)}function Lo(e,t){if(t>e.lastLine())return t;var n=K(e,t),r;if(!ur(e,n))return t;for(;r=Un(n);)n=r.find(1,!0).line;return Ne(n)+1}function ur(e,t){var n=$t&&t.markedSpans;if(n){for(var r=void 0,i=0;it.maxLineLength&&(t.maxLineLength=i,t.maxLine=r)})}var Ir=function(e,t,n){this.text=e,ko(this,t),this.height=n?n(this):1};Ir.prototype.lineNo=function(){return Ne(this)},pt(Ir);function Da(e,t,n,r){e.text=t,e.stateAfter&&(e.stateAfter=null),e.styles&&(e.styles=null),e.order!=null&&(e.order=null),wo(e),ko(e,n);var i=r?r(e):1;i!=e.height&&Ft(e,i)}function Aa(e){e.parent=null,wo(e)}var Oa={},za={};function Mo(e,t){if(!e||/^\s*$/.test(e))return null;var n=t.addModeClass?za:Oa;return n[e]||(n[e]=e.replace(/\S+/g,"cm-$&"))}function No(e,t){var n=w("span",null,null,W?"padding-right: .1px":null),r={pre:w("pre",[n],"CodeMirror-line"),content:n,col:0,pos:0,cm:e,trailingSpace:!1,splitSpaces:e.getOption("lineWrapping")};t.measure={};for(var i=0;i<=(t.rest?t.rest.length:0);i++){var o=i?t.rest[i-1]:t.line,l=void 0;r.pos=0,r.addToken=Ea,In(e.display.measure)&&(l=Et(o,e.doc.direction))&&(r.addToken=Fa(r.addToken,l)),r.map=[];var a=t!=e.display.externalMeasured&&Ne(o);Wa(o,r,ho(e,o,a)),o.styleClasses&&(o.styleClasses.bgClass&&(r.bgClass=B(o.styleClasses.bgClass,r.bgClass||"")),o.styleClasses.textClass&&(r.textClass=B(o.styleClasses.textClass,r.textClass||""))),r.map.length==0&&r.map.push(0,0,r.content.appendChild(yi(e.display.measure))),i==0?(t.measure.map=r.map,t.measure.cache={}):((t.measure.maps||(t.measure.maps=[])).push(r.map),(t.measure.caches||(t.measure.caches=[])).push({}))}if(W){var s=r.content.lastChild;(/\bcm-tab\b/.test(s.className)||s.querySelector&&s.querySelector(".cm-tab"))&&(r.content.className="cm-tab-wrap-hack")}return _e(e,"renderLine",e,t.line,r.pre),r.pre.className&&(r.textClass=B(r.pre.className,r.textClass||"")),r}function Pa(e){var t=c("span","•","cm-invalidchar");return t.title="\\u"+e.charCodeAt(0).toString(16),t.setAttribute("aria-label",t.title),t}function Ea(e,t,n,r,i,o,l){if(t){var a=e.splitSpaces?Ia(t,e.trailingSpace):t,s=e.cm.state.specialChars,u=!1,d;if(!s.test(t))e.col+=t.length,d=document.createTextNode(a),e.map.push(e.pos,e.pos+t.length,d),M&&j<9&&(u=!0),e.pos+=t.length;else{d=document.createDocumentFragment();for(var h=0;;){s.lastIndex=h;var b=s.exec(t),m=b?b.index-h:t.length-h;if(m){var C=document.createTextNode(a.slice(h,h+m));M&&j<9?d.appendChild(c("span",[C])):d.appendChild(C),e.map.push(e.pos,e.pos+m,C),e.col+=m,e.pos+=m}if(!b)break;h+=m+1;var N=void 0;if(b[0]==" "){var O=e.cm.options.tabSize,z=O-e.col%O;N=d.appendChild(c("span",Ue(z),"cm-tab")),N.setAttribute("role","presentation"),N.setAttribute("cm-text"," "),e.col+=z}else b[0]=="\r"||b[0]==` -`?(N=d.appendChild(c("span",b[0]=="\r"?"␍":"␤","cm-invalidchar")),N.setAttribute("cm-text",b[0]),e.col+=1):(N=e.cm.options.specialCharPlaceholder(b[0]),N.setAttribute("cm-text",b[0]),M&&j<9?d.appendChild(c("span",[N])):d.appendChild(N),e.col+=1);e.map.push(e.pos,e.pos+1,N),e.pos++}}if(e.trailingSpace=a.charCodeAt(t.length-1)==32,n||r||i||u||o||l){var F=n||"";r&&(F+=r),i&&(F+=i);var P=c("span",[d],F,o);if(l)for(var H in l)l.hasOwnProperty(H)&&H!="style"&&H!="class"&&P.setAttribute(H,l[H]);return e.content.appendChild(P)}e.content.appendChild(d)}}function Ia(e,t){if(e.length>1&&!/ /.test(e))return e;for(var n=t,r="",i=0;iu&&h.from<=u));b++);if(h.to>=d)return e(n,r,i,o,l,a,s);e(n,r.slice(0,h.to-u),i,o,null,a,s),o=null,r=r.slice(h.to-u),u=h.to}}}function Do(e,t,n,r){var i=!r&&n.widgetNode;i&&e.map.push(e.pos,e.pos+t,i),!r&&e.cm.display.input.needsContentAttribute&&(i||(i=e.content.appendChild(document.createElement("span"))),i.setAttribute("cm-marker",n.id)),i&&(e.cm.display.input.setUneditable(i),e.content.appendChild(i)),e.pos+=t,e.trailingSpace=!1}function Wa(e,t,n){var r=e.markedSpans,i=e.text,o=0;if(!r){for(var l=1;ls||ve.collapsed&&Y.to==s&&Y.from==s)){if(Y.to!=null&&Y.to!=s&&m>Y.to&&(m=Y.to,N=""),ve.className&&(C+=" "+ve.className),ve.css&&(b=(b?b+";":"")+ve.css),ve.startStyle&&Y.from==s&&(O+=" "+ve.startStyle),ve.endStyle&&Y.to==m&&(H||(H=[])).push(ve.endStyle,Y.to),ve.title&&((F||(F={})).title=ve.title),ve.attributes)for(var Fe in ve.attributes)(F||(F={}))[Fe]=ve.attributes[Fe];ve.collapsed&&(!z||wi(z.marker,ve)<0)&&(z=Y)}else Y.from>s&&m>Y.from&&(m=Y.from)}if(H)for(var ot=0;ot=a)break;for(var Lt=Math.min(a,m);;){if(d){var wt=s+d.length;if(!z){var Qe=wt>Lt?d.slice(0,Lt-s):d;t.addToken(t,Qe,h?h+C:C,O,s+Qe.length==m?N:"",b,F)}if(wt>=Lt){d=d.slice(Lt-s),s=Lt;break}s=wt,O=""}d=i.slice(o,o=n[u++]),h=Mo(n[u++],t.cm.options)}}}function Ao(e,t,n){this.line=t,this.rest=Na(t),this.size=this.rest?Ne(de(this.rest))-n+1:1,this.node=this.text=null,this.hidden=ur(e,t)}function qn(e,t,n){for(var r=[],i,o=t;o2&&o.push((s.bottom+u.top)/2-n.top)}}o.push(n.bottom-n.top)}}function Wo(e,t,n){if(e.line==t)return{map:e.measure.map,cache:e.measure.cache};if(e.rest){for(var r=0;rn)return{map:e.measure.maps[i],cache:e.measure.caches[i],before:!0}}}function Ya(e,t){t=_t(t);var n=Ne(t),r=e.display.externalMeasured=new Ao(e.doc,t,n);r.lineN=n;var i=r.built=No(e,r);return r.text=i.pre,_(e.display.lineMeasure,i.pre),r}function _o(e,t,n,r){return Xt(e,Wr(e,t),n,r)}function Ni(e,t){if(t>=e.display.viewFrom&&t=n.lineN&&tt)&&(o=s-a,i=o-1,t>=s&&(l="right")),i!=null){if(r=e[u+2],a==s&&n==(r.insertLeft?"left":"right")&&(l=n),n=="left"&&i==0)for(;u&&e[u-2]==e[u-3]&&e[u-1].insertLeft;)r=e[(u-=3)+2],l="left";if(n=="right"&&i==s-a)for(;u=0&&(n=e[i]).left==n.right;i--);return n}function Ja(e,t,n,r){var i=Bo(t.map,n,r),o=i.node,l=i.start,a=i.end,s=i.collapse,u;if(o.nodeType==3){for(var d=0;d<4;d++){for(;l&&q(t.line.text.charAt(i.coverStart+l));)--l;for(;i.coverStart+a0&&(s=r="right");var h;e.options.lineWrapping&&(h=o.getClientRects()).length>1?u=h[r=="right"?h.length-1:0]:u=o.getBoundingClientRect()}if(M&&j<9&&!l&&(!u||!u.left&&!u.right)){var b=o.parentNode.getClientRects()[0];b?u={left:b.left,right:b.left+Hr(e.display),top:b.top,bottom:b.bottom}:u=Ho}for(var m=u.top-t.rect.top,C=u.bottom-t.rect.top,N=(m+C)/2,O=t.view.measure.heights,z=0;z=r.text.length?(s=r.text.length,u="before"):s<=0&&(s=0,u="after"),!a)return l(u=="before"?s-1:s,u=="before");function d(C,N,O){var z=a[N],F=z.level==1;return l(O?C-1:C,F!=O)}var h=Pt(a,s,u),b=zt,m=d(s,h,u=="before");return b!=null&&(m.other=d(s,b,u!="before")),m}function jo(e,t){var n=0;t=le(e.doc,t),e.options.lineWrapping||(n=Hr(e.display)*t.ch);var r=K(e.doc,t.line),i=er(r)+jn(e.display);return{left:n,right:n,top:i,bottom:i+r.height}}function Ai(e,t,n,r,i){var o=g(e,t,n);return o.xRel=i,r&&(o.outside=r),o}function Oi(e,t,n){var r=e.doc;if(n+=e.display.viewOffset,n<0)return Ai(r.first,0,null,-1,-1);var i=Gt(r,n),o=r.first+r.size-1;if(i>o)return Ai(r.first+r.size-1,K(r,o).text.length,null,1,1);t<0&&(t=0);for(var l=K(r,i);;){var a=Va(e,l,i,t,n),s=La(l,a.ch+(a.xRel>0||a.outside>0?1:0));if(!s)return a;var u=s.find(1);if(u.line==i)return u;l=K(r,i=u.line)}}function Xo(e,t,n,r){r-=Di(t);var i=t.text.length,o=he(function(l){return Xt(e,n,l-1).bottom<=r},i,0);return i=he(function(l){return Xt(e,n,l).top>r},o,i),{begin:o,end:i}}function Yo(e,t,n,r){n||(n=Wr(e,t));var i=Xn(e,t,Xt(e,n,r),"line").top;return Xo(e,t,n,i)}function zi(e,t,n,r){return e.bottom<=n?!1:e.top>n?!0:(r?e.left:e.right)>t}function Va(e,t,n,r,i){i-=er(t);var o=Wr(e,t),l=Di(t),a=0,s=t.text.length,u=!0,d=Et(t,e.doc.direction);if(d){var h=(e.options.lineWrapping?es:$a)(e,t,n,o,d,r,i);u=h.level!=1,a=u?h.from:h.to-1,s=u?h.to:h.from-1}var b=null,m=null,C=he(function(Z){var Y=Xt(e,o,Z);return Y.top+=l,Y.bottom+=l,zi(Y,r,i,!1)?(Y.top<=i&&Y.left<=r&&(b=Z,m=Y),!0):!1},a,s),N,O,z=!1;if(m){var F=r-m.left=H.bottom?1:0}return C=be(t.text,C,1),Ai(n,C,O,z,r-N)}function $a(e,t,n,r,i,o,l){var a=he(function(h){var b=i[h],m=b.level!=1;return zi(Ht(e,g(n,m?b.to:b.from,m?"before":"after"),"line",t,r),o,l,!0)},0,i.length-1),s=i[a];if(a>0){var u=s.level!=1,d=Ht(e,g(n,u?s.from:s.to,u?"after":"before"),"line",t,r);zi(d,o,l,!0)&&d.top>l&&(s=i[a-1])}return s}function es(e,t,n,r,i,o,l){var a=Xo(e,t,r,l),s=a.begin,u=a.end;/\s/.test(t.text.charAt(u-1))&&u--;for(var d=null,h=null,b=0;b=u||m.to<=s)){var C=m.level!=1,N=Xt(e,r,C?Math.min(u,m.to)-1:Math.max(s,m.from)).right,O=NO)&&(d=m,h=O)}}return d||(d=i[i.length-1]),d.fromu&&(d={from:d.from,to:u,level:d.level}),d}var wr;function _r(e){if(e.cachedTextHeight!=null)return e.cachedTextHeight;if(wr==null){wr=c("pre",null,"CodeMirror-line-like");for(var t=0;t<49;++t)wr.appendChild(document.createTextNode("x")),wr.appendChild(c("br"));wr.appendChild(document.createTextNode("x"))}_(e.measure,wr);var n=wr.offsetHeight/50;return n>3&&(e.cachedTextHeight=n),L(e.measure),n||1}function Hr(e){if(e.cachedCharWidth!=null)return e.cachedCharWidth;var t=c("span","xxxxxxxxxx"),n=c("pre",[t],"CodeMirror-line-like");_(e.measure,n);var r=t.getBoundingClientRect(),i=(r.right-r.left)/10;return i>2&&(e.cachedCharWidth=i),i||10}function Pi(e){for(var t=e.display,n={},r={},i=t.gutters.clientLeft,o=t.gutters.firstChild,l=0;o;o=o.nextSibling,++l){var a=e.display.gutterSpecs[l].className;n[a]=o.offsetLeft+o.clientLeft+i,r[a]=o.clientWidth}return{fixedPos:Ei(t),gutterTotalWidth:t.gutters.offsetWidth,gutterLeft:n,gutterWidth:r,wrapperWidth:t.wrapper.clientWidth}}function Ei(e){return e.scroller.getBoundingClientRect().left-e.sizer.getBoundingClientRect().left}function Zo(e){var t=_r(e.display),n=e.options.lineWrapping,r=n&&Math.max(5,e.display.scroller.clientWidth/Hr(e.display)-3);return function(i){if(ur(e.doc,i))return 0;var o=0;if(i.widgets)for(var l=0;l0&&(u=K(e.doc,s.line).text).length==s.ch){var d=U(u,u.length,e.options.tabSize)-u.length;s=g(s.line,Math.max(0,Math.round((o-Fo(e.display).left)/Hr(e.display))-d))}return s}function Sr(e,t){if(t>=e.display.viewTo||(t-=e.display.viewFrom,t<0))return null;for(var n=e.display.view,r=0;rt)&&(i.updateLineNumbers=t),e.curOp.viewChanged=!0,t>=i.viewTo)$t&&ki(e.doc,t)i.viewFrom?cr(e):(i.viewFrom+=r,i.viewTo+=r);else if(t<=i.viewFrom&&n>=i.viewTo)cr(e);else if(t<=i.viewFrom){var o=Zn(e,n,n+r,1);o?(i.view=i.view.slice(o.index),i.viewFrom=o.lineN,i.viewTo+=r):cr(e)}else if(n>=i.viewTo){var l=Zn(e,t,t,-1);l?(i.view=i.view.slice(0,l.index),i.viewTo=l.lineN):cr(e)}else{var a=Zn(e,t,t,-1),s=Zn(e,n,n+r,1);a&&s?(i.view=i.view.slice(0,a.index).concat(qn(e,a.lineN,s.lineN)).concat(i.view.slice(s.index)),i.viewTo+=r):cr(e)}var u=i.externalMeasured;u&&(n=i.lineN&&t=r.viewTo)){var o=r.view[Sr(e,t)];if(o.node!=null){var l=o.changes||(o.changes=[]);se(l,n)==-1&&l.push(n)}}}function cr(e){e.display.viewFrom=e.display.viewTo=e.doc.first,e.display.view=[],e.display.viewOffset=0}function Zn(e,t,n,r){var i=Sr(e,t),o,l=e.display.view;if(!$t||n==e.doc.first+e.doc.size)return{index:i,lineN:n};for(var a=e.display.viewFrom,s=0;s0){if(i==l.length-1)return null;o=a+l[i].size-t,i++}else o=a-t;t+=o,n+=o}for(;ki(e.doc,n)!=n;){if(i==(r<0?0:l.length-1))return null;n+=r*l[i-(r<0?1:0)].size,i+=r}return{index:i,lineN:n}}function ts(e,t,n){var r=e.display,i=r.view;i.length==0||t>=r.viewTo||n<=r.viewFrom?(r.view=qn(e,t,n),r.viewFrom=t):(r.viewFrom>t?r.view=qn(e,t,r.viewFrom).concat(r.view):r.viewFromn&&(r.view=r.view.slice(0,Sr(e,n)))),r.viewTo=n}function Jo(e){for(var t=e.display.view,n=0,r=0;r=e.display.viewTo||s.to().line0?l:e.defaultCharWidth())+"px"}if(r.other){var a=n.appendChild(c("div"," ","CodeMirror-cursor CodeMirror-secondarycursor"));a.style.display="",a.style.left=r.other.left+"px",a.style.top=r.other.top+"px",a.style.height=(r.other.bottom-r.other.top)*.85+"px"}}function Jn(e,t){return e.top-t.top||e.left-t.left}function rs(e,t,n){var r=e.display,i=e.doc,o=document.createDocumentFragment(),l=Fo(e.display),a=l.left,s=Math.max(r.sizerWidth,xr(e)-r.sizer.offsetLeft)-l.right,u=i.direction=="ltr";function d(P,H,Z,Y){H<0&&(H=0),H=Math.round(H),Y=Math.round(Y),o.appendChild(c("div",null,"CodeMirror-selected","position: absolute; left: "+P+`px; - top: `+H+"px; width: "+(Z??s-P)+`px; - height: `+(Y-H)+"px"))}function h(P,H,Z){var Y=K(i,P),ve=Y.text.length,Fe,ot;function Ge(Qe,kt){return Yn(e,g(P,Qe),"div",Y,kt)}function Lt(Qe,kt,at){var tt=Yo(e,Y,null,Qe),Ve=kt=="ltr"==(at=="after")?"left":"right",Ye=at=="after"?tt.begin:tt.end-(/\s/.test(Y.text.charAt(tt.end-1))?2:1);return Ge(Ye,Ve)[Ve]}var wt=Et(Y,i.direction);return Nt(wt,H||0,Z??ve,function(Qe,kt,at,tt){var Ve=at=="ltr",Ye=Ge(Qe,Ve?"left":"right"),St=Ge(kt-1,Ve?"right":"left"),Vr=H==null&&Qe==0,yr=Z==null&&kt==ve,dt=tt==0,Yt=!wt||tt==wt.length-1;if(St.top-Ye.top<=3){var lt=(u?Vr:yr)&&dt,so=(u?yr:Vr)&&Yt,ir=lt?a:(Ve?Ye:St).left,Nr=so?s:(Ve?St:Ye).right;d(ir,Ye.top,Nr-ir,Ye.bottom)}else{var Dr,gt,$r,uo;Ve?(Dr=u&&Vr&&dt?a:Ye.left,gt=u?s:Lt(Qe,at,"before"),$r=u?a:Lt(kt,at,"after"),uo=u&&yr&&Yt?s:St.right):(Dr=u?Lt(Qe,at,"before"):a,gt=!u&&Vr&&dt?s:Ye.right,$r=!u&&yr&&Yt?a:St.left,uo=u?Lt(kt,at,"after"):s),d(Dr,Ye.top,gt-Dr,Ye.bottom),Ye.bottom0?t.blinker=setInterval(function(){e.hasFocus()||Br(e),t.cursorDiv.style.visibility=(n=!n)?"":"hidden"},e.options.cursorBlinkRate):e.options.cursorBlinkRate<0&&(t.cursorDiv.style.visibility="hidden")}}function Vo(e){e.hasFocus()||(e.display.input.focus(),e.state.focused||Hi(e))}function _i(e){e.state.delayingBlurEvent=!0,setTimeout(function(){e.state.delayingBlurEvent&&(e.state.delayingBlurEvent=!1,e.state.focused&&Br(e))},100)}function Hi(e,t){e.state.delayingBlurEvent&&!e.state.draggingText&&(e.state.delayingBlurEvent=!1),e.options.readOnly!="nocursor"&&(e.state.focused||(_e(e,"focus",e,t),e.state.focused=!0,D(e.display.wrapper,"CodeMirror-focused"),!e.curOp&&e.display.selForContextMenu!=e.doc.sel&&(e.display.input.reset(),W&&setTimeout(function(){return e.display.input.reset(!0)},20)),e.display.input.receivedFocus()),Wi(e))}function Br(e,t){e.state.delayingBlurEvent||(e.state.focused&&(_e(e,"blur",e,t),e.state.focused=!1,me(e.display.wrapper,"CodeMirror-focused")),clearInterval(e.display.blinker),setTimeout(function(){e.state.focused||(e.display.shift=!1)},150))}function Qn(e){for(var t=e.display,n=t.lineDiv.offsetTop,r=Math.max(0,t.scroller.getBoundingClientRect().top),i=t.lineDiv.getBoundingClientRect().top,o=0,l=0;l.005||m<-.005)&&(ie.display.sizerWidth){var N=Math.ceil(d/Hr(e.display));N>e.display.maxLineLength&&(e.display.maxLineLength=N,e.display.maxLine=a.line,e.display.maxLineChanged=!0)}}}Math.abs(o)>2&&(t.scroller.scrollTop+=o)}function $o(e){if(e.widgets)for(var t=0;t=l&&(o=Gt(t,er(K(t,s))-e.wrapper.clientHeight),l=s)}return{from:o,to:Math.max(l,o+1)}}function ns(e,t){if(!je(e,"scrollCursorIntoView")){var n=e.display,r=n.sizer.getBoundingClientRect(),i=null,o=n.wrapper.ownerDocument;if(t.top+r.top<0?i=!0:t.bottom+r.top>(o.defaultView.innerHeight||o.documentElement.clientHeight)&&(i=!1),i!=null&&!Ae){var l=c("div","​",null,`position: absolute; - top: `+(t.top-n.viewOffset-jn(e.display))+`px; - height: `+(t.bottom-t.top+jt(e)+n.barHeight)+`px; - left: `+t.left+"px; width: "+Math.max(2,t.right-t.left)+"px;");e.display.lineSpace.appendChild(l),l.scrollIntoView(i),e.display.lineSpace.removeChild(l)}}}function is(e,t,n,r){r==null&&(r=0);var i;!e.options.lineWrapping&&t==n&&(n=t.sticky=="before"?g(t.line,t.ch+1,"before"):t,t=t.ch?g(t.line,t.sticky=="before"?t.ch-1:t.ch,"after"):t);for(var o=0;o<5;o++){var l=!1,a=Ht(e,t),s=!n||n==t?a:Ht(e,n);i={left:Math.min(a.left,s.left),top:Math.min(a.top,s.top)-r,right:Math.max(a.left,s.left),bottom:Math.max(a.bottom,s.bottom)+r};var u=Bi(e,i),d=e.doc.scrollTop,h=e.doc.scrollLeft;if(u.scrollTop!=null&&(pn(e,u.scrollTop),Math.abs(e.doc.scrollTop-d)>1&&(l=!0)),u.scrollLeft!=null&&(Cr(e,u.scrollLeft),Math.abs(e.doc.scrollLeft-h)>1&&(l=!0)),!l)break}return i}function os(e,t){var n=Bi(e,t);n.scrollTop!=null&&pn(e,n.scrollTop),n.scrollLeft!=null&&Cr(e,n.scrollLeft)}function Bi(e,t){var n=e.display,r=_r(e.display);t.top<0&&(t.top=0);var i=e.curOp&&e.curOp.scrollTop!=null?e.curOp.scrollTop:n.scroller.scrollTop,o=Mi(e),l={};t.bottom-t.top>o&&(t.bottom=t.top+o);var a=e.doc.height+Li(n),s=t.topa-r;if(t.topi+o){var d=Math.min(t.top,(u?a:t.bottom)-o);d!=i&&(l.scrollTop=d)}var h=e.options.fixedGutter?0:n.gutters.offsetWidth,b=e.curOp&&e.curOp.scrollLeft!=null?e.curOp.scrollLeft:n.scroller.scrollLeft-h,m=xr(e)-n.gutters.offsetWidth,C=t.right-t.left>m;return C&&(t.right=t.left+m),t.left<10?l.scrollLeft=0:t.leftm+b-3&&(l.scrollLeft=t.right+(C?0:10)-m),l}function Ri(e,t){t!=null&&($n(e),e.curOp.scrollTop=(e.curOp.scrollTop==null?e.doc.scrollTop:e.curOp.scrollTop)+t)}function Rr(e){$n(e);var t=e.getCursor();e.curOp.scrollToPos={from:t,to:t,margin:e.options.cursorScrollMargin}}function hn(e,t,n){(t!=null||n!=null)&&$n(e),t!=null&&(e.curOp.scrollLeft=t),n!=null&&(e.curOp.scrollTop=n)}function ls(e,t){$n(e),e.curOp.scrollToPos=t}function $n(e){var t=e.curOp.scrollToPos;if(t){e.curOp.scrollToPos=null;var n=jo(e,t.from),r=jo(e,t.to);el(e,n,r,t.margin)}}function el(e,t,n,r){var i=Bi(e,{left:Math.min(t.left,n.left),top:Math.min(t.top,n.top)-r,right:Math.max(t.right,n.right),bottom:Math.max(t.bottom,n.bottom)+r});hn(e,i.scrollLeft,i.scrollTop)}function pn(e,t){Math.abs(e.doc.scrollTop-t)<2||(we||Ui(e,{top:t}),tl(e,t,!0),we&&Ui(e),yn(e,100))}function tl(e,t,n){t=Math.max(0,Math.min(e.display.scroller.scrollHeight-e.display.scroller.clientHeight,t)),!(e.display.scroller.scrollTop==t&&!n)&&(e.doc.scrollTop=t,e.display.scrollbars.setScrollTop(t),e.display.scroller.scrollTop!=t&&(e.display.scroller.scrollTop=t))}function Cr(e,t,n,r){t=Math.max(0,Math.min(t,e.display.scroller.scrollWidth-e.display.scroller.clientWidth)),!((n?t==e.doc.scrollLeft:Math.abs(e.doc.scrollLeft-t)<2)&&!r)&&(e.doc.scrollLeft=t,ll(e),e.display.scroller.scrollLeft!=t&&(e.display.scroller.scrollLeft=t),e.display.scrollbars.setScrollLeft(t))}function vn(e){var t=e.display,n=t.gutters.offsetWidth,r=Math.round(e.doc.height+Li(e.display));return{clientHeight:t.scroller.clientHeight,viewHeight:t.wrapper.clientHeight,scrollWidth:t.scroller.scrollWidth,clientWidth:t.scroller.clientWidth,viewWidth:t.wrapper.clientWidth,barLeft:e.options.fixedGutter?n:0,docHeight:r,scrollHeight:r+jt(e)+t.barHeight,nativeBarWidth:t.nativeBarWidth,gutterWidth:n}}var Tr=function(e,t,n){this.cm=n;var r=this.vert=c("div",[c("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),i=this.horiz=c("div",[c("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");r.tabIndex=i.tabIndex=-1,e(r),e(i),E(r,"scroll",function(){r.clientHeight&&t(r.scrollTop,"vertical")}),E(i,"scroll",function(){i.clientWidth&&t(i.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,M&&j<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Tr.prototype.update=function(e){var t=e.scrollWidth>e.clientWidth+1,n=e.scrollHeight>e.clientHeight+1,r=e.nativeBarWidth;if(n){this.vert.style.display="block",this.vert.style.bottom=t?r+"px":"0";var i=e.viewHeight-(t?r:0);this.vert.firstChild.style.height=Math.max(0,e.scrollHeight-e.clientHeight+i)+"px"}else this.vert.scrollTop=0,this.vert.style.display="",this.vert.firstChild.style.height="0";if(t){this.horiz.style.display="block",this.horiz.style.right=n?r+"px":"0",this.horiz.style.left=e.barLeft+"px";var o=e.viewWidth-e.barLeft-(n?r:0);this.horiz.firstChild.style.width=Math.max(0,e.scrollWidth-e.clientWidth+o)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&e.clientHeight>0&&(r==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:n?r:0,bottom:t?r:0}},Tr.prototype.setScrollLeft=function(e){this.horiz.scrollLeft!=e&&(this.horiz.scrollLeft=e),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Tr.prototype.setScrollTop=function(e){this.vert.scrollTop!=e&&(this.vert.scrollTop=e),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Tr.prototype.zeroWidthHack=function(){var e=xe&&!Se?"12px":"18px";this.horiz.style.height=this.vert.style.width=e,this.horiz.style.visibility=this.vert.style.visibility="hidden",this.disableHoriz=new fe,this.disableVert=new fe},Tr.prototype.enableZeroWidthBar=function(e,t,n){e.style.visibility="";function r(){var i=e.getBoundingClientRect(),o=n=="vert"?document.elementFromPoint(i.right-1,(i.top+i.bottom)/2):document.elementFromPoint((i.right+i.left)/2,i.bottom-1);o!=e?e.style.visibility="hidden":t.set(1e3,r)}t.set(1e3,r)},Tr.prototype.clear=function(){var e=this.horiz.parentNode;e.removeChild(this.horiz),e.removeChild(this.vert)};var gn=function(){};gn.prototype.update=function(){return{bottom:0,right:0}},gn.prototype.setScrollLeft=function(){},gn.prototype.setScrollTop=function(){},gn.prototype.clear=function(){};function Kr(e,t){t||(t=vn(e));var n=e.display.barWidth,r=e.display.barHeight;rl(e,t);for(var i=0;i<4&&n!=e.display.barWidth||r!=e.display.barHeight;i++)n!=e.display.barWidth&&e.options.lineWrapping&&Qn(e),rl(e,vn(e)),n=e.display.barWidth,r=e.display.barHeight}function rl(e,t){var n=e.display,r=n.scrollbars.update(t);n.sizer.style.paddingRight=(n.barWidth=r.right)+"px",n.sizer.style.paddingBottom=(n.barHeight=r.bottom)+"px",n.heightForcer.style.borderBottom=r.bottom+"px solid transparent",r.right&&r.bottom?(n.scrollbarFiller.style.display="block",n.scrollbarFiller.style.height=r.bottom+"px",n.scrollbarFiller.style.width=r.right+"px"):n.scrollbarFiller.style.display="",r.bottom&&e.options.coverGutterNextToScrollbar&&e.options.fixedGutter?(n.gutterFiller.style.display="block",n.gutterFiller.style.height=r.bottom+"px",n.gutterFiller.style.width=t.gutterWidth+"px"):n.gutterFiller.style.display=""}var nl={native:Tr,null:gn};function il(e){e.display.scrollbars&&(e.display.scrollbars.clear(),e.display.scrollbars.addClass&&me(e.display.wrapper,e.display.scrollbars.addClass)),e.display.scrollbars=new nl[e.options.scrollbarStyle](function(t){e.display.wrapper.insertBefore(t,e.display.scrollbarFiller),E(t,"mousedown",function(){e.state.focused&&setTimeout(function(){return e.display.input.focus()},0)}),t.setAttribute("cm-not-content","true")},function(t,n){n=="horizontal"?Cr(e,t):pn(e,t)},e),e.display.scrollbars.addClass&&D(e.display.wrapper,e.display.scrollbars.addClass)}var as=0;function Lr(e){e.curOp={cm:e,viewChanged:!1,startHeight:e.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++as,markArrays:null},_a(e.curOp)}function Mr(e){var t=e.curOp;t&&Ba(t,function(n){for(var r=0;r=n.viewTo)||n.maxLineChanged&&t.options.lineWrapping,e.update=e.mustUpdate&&new ei(t,e.mustUpdate&&{top:e.scrollTop,ensure:e.scrollToPos},e.forceUpdate)}function fs(e){e.updatedDisplay=e.mustUpdate&&Ki(e.cm,e.update)}function cs(e){var t=e.cm,n=t.display;e.updatedDisplay&&Qn(t),e.barMeasure=vn(t),n.maxLineChanged&&!t.options.lineWrapping&&(e.adjustWidthTo=_o(t,n.maxLine,n.maxLine.text.length).left+3,t.display.sizerWidth=e.adjustWidthTo,e.barMeasure.scrollWidth=Math.max(n.scroller.clientWidth,n.sizer.offsetLeft+e.adjustWidthTo+jt(t)+t.display.barWidth),e.maxScrollLeft=Math.max(0,n.sizer.offsetLeft+e.adjustWidthTo-xr(t))),(e.updatedDisplay||e.selectionChanged)&&(e.preparedSelection=n.input.prepareSelection())}function ds(e){var t=e.cm;e.adjustWidthTo!=null&&(t.display.sizer.style.minWidth=e.adjustWidthTo+"px",e.maxScrollLeft=e.display.viewTo)){var n=+new Date+e.options.workTime,r=ln(e,t.highlightFrontier),i=[];t.iter(r.line,Math.min(t.first+t.size,e.display.viewTo+500),function(o){if(r.line>=e.display.viewFrom){var l=o.styles,a=o.text.length>e.options.maxHighlightLength?Qt(t.mode,r.state):null,s=co(e,o,r,!0);a&&(r.state=a),o.styles=s.styles;var u=o.styleClasses,d=s.classes;d?o.styleClasses=d:u&&(o.styleClasses=null);for(var h=!l||l.length!=o.styles.length||u!=d&&(!u||!d||u.bgClass!=d.bgClass||u.textClass!=d.textClass),b=0;!h&&bn)return yn(e,e.options.workDelay),!0}),t.highlightFrontier=r.line,t.modeFrontier=Math.max(t.modeFrontier,r.line),i.length&&Tt(e,function(){for(var o=0;o=n.viewFrom&&t.visible.to<=n.viewTo&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo)&&n.renderedView==n.view&&Jo(e)==0)return!1;al(e)&&(cr(e),t.dims=Pi(e));var i=r.first+r.size,o=Math.max(t.visible.from-e.options.viewportMargin,r.first),l=Math.min(i,t.visible.to+e.options.viewportMargin);n.viewFroml&&n.viewTo-l<20&&(l=Math.min(i,n.viewTo)),$t&&(o=ki(e.doc,o),l=Lo(e.doc,l));var a=o!=n.viewFrom||l!=n.viewTo||n.lastWrapHeight!=t.wrapperHeight||n.lastWrapWidth!=t.wrapperWidth;ts(e,o,l),n.viewOffset=er(K(e.doc,n.viewFrom)),e.display.mover.style.top=n.viewOffset+"px";var s=Jo(e);if(!a&&s==0&&!t.force&&n.renderedView==n.view&&(n.updateLineNumbers==null||n.updateLineNumbers>=n.viewTo))return!1;var u=gs(e);return s>4&&(n.lineDiv.style.display="none"),ms(e,n.updateLineNumbers,t.dims),s>4&&(n.lineDiv.style.display=""),n.renderedView=n.view,ys(u),L(n.cursorDiv),L(n.selectionDiv),n.gutters.style.height=n.sizer.style.minHeight=0,a&&(n.lastWrapHeight=t.wrapperHeight,n.lastWrapWidth=t.wrapperWidth,yn(e,400)),n.updateLineNumbers=null,!0}function ol(e,t){for(var n=t.viewport,r=!0;;r=!1){if(!r||!e.options.lineWrapping||t.oldDisplayWidth==xr(e)){if(n&&n.top!=null&&(n={top:Math.min(e.doc.height+Li(e.display)-Mi(e),n.top)}),t.visible=Vn(e.display,e.doc,n),t.visible.from>=e.display.viewFrom&&t.visible.to<=e.display.viewTo)break}else r&&(t.visible=Vn(e.display,e.doc,n));if(!Ki(e,t))break;Qn(e);var i=vn(e);dn(e),Kr(e,i),qi(e,i),t.force=!1}t.signal(e,"update",e),(e.display.viewFrom!=e.display.reportedViewFrom||e.display.viewTo!=e.display.reportedViewTo)&&(t.signal(e,"viewportChange",e,e.display.viewFrom,e.display.viewTo),e.display.reportedViewFrom=e.display.viewFrom,e.display.reportedViewTo=e.display.viewTo)}function Ui(e,t){var n=new ei(e,t);if(Ki(e,n)){Qn(e),ol(e,n);var r=vn(e);dn(e),Kr(e,r),qi(e,r),n.finish()}}function ms(e,t,n){var r=e.display,i=e.options.lineNumbers,o=r.lineDiv,l=o.firstChild;function a(C){var N=C.nextSibling;return W&&xe&&e.display.currentWheelTarget==C?C.style.display="none":C.parentNode.removeChild(C),N}for(var s=r.view,u=r.viewFrom,d=0;d-1&&(m=!1),Oo(e,h,u,n)),m&&(L(h.lineNumber),h.lineNumber.appendChild(document.createTextNode(p(e.options,u)))),l=h.node.nextSibling}u+=h.size}for(;l;)l=a(l)}function Gi(e){var t=e.gutters.offsetWidth;e.sizer.style.marginLeft=t+"px",rt(e,"gutterChanged",e)}function qi(e,t){e.display.sizer.style.minHeight=t.docHeight+"px",e.display.heightForcer.style.top=t.docHeight+"px",e.display.gutters.style.height=t.docHeight+e.display.barHeight+jt(e)+"px"}function ll(e){var t=e.display,n=t.view;if(!(!t.alignWidgets&&(!t.gutters.firstChild||!e.options.fixedGutter))){for(var r=Ei(t)-t.scroller.scrollLeft+e.doc.scrollLeft,i=t.gutters.offsetWidth,o=r+"px",l=0;l=105&&(i.wrapper.style.clipPath="inset(0px)"),i.wrapper.setAttribute("translate","no"),M&&j<8&&(i.gutters.style.zIndex=-1,i.scroller.style.paddingRight=0),!W&&!(we&&te)&&(i.scroller.draggable=!0),e&&(e.appendChild?e.appendChild(i.wrapper):e(i.wrapper)),i.viewFrom=i.viewTo=t.first,i.reportedViewFrom=i.reportedViewTo=t.first,i.view=[],i.renderedView=null,i.externalMeasured=null,i.viewOffset=0,i.lastWrapHeight=i.lastWrapWidth=0,i.updateLineNumbers=null,i.nativeBarWidth=i.barHeight=i.barWidth=0,i.scrollbarsClipped=!1,i.lineNumWidth=i.lineNumInnerWidth=i.lineNumChars=null,i.alignWidgets=!1,i.cachedCharWidth=i.cachedTextHeight=i.cachedPaddingH=null,i.maxLine=null,i.maxLineLength=0,i.maxLineChanged=!1,i.wheelDX=i.wheelDY=i.wheelStartX=i.wheelStartY=null,i.shift=!1,i.selForContextMenu=null,i.activeTouch=null,i.gutterSpecs=ji(r.gutters,r.lineNumbers),sl(i),n.init(i)}var ti=0,rr=null;M?rr=-.53:we?rr=15:G?rr=-.7:Ee&&(rr=-1/3);function ul(e){var t=e.wheelDeltaX,n=e.wheelDeltaY;return t==null&&e.detail&&e.axis==e.HORIZONTAL_AXIS&&(t=e.detail),n==null&&e.detail&&e.axis==e.VERTICAL_AXIS?n=e.detail:n==null&&(n=e.wheelDelta),{x:t,y:n}}function xs(e){var t=ul(e);return t.x*=rr,t.y*=rr,t}function fl(e,t){G&&ue==102&&(e.display.chromeScrollHack==null?e.display.sizer.style.pointerEvents="none":clearTimeout(e.display.chromeScrollHack),e.display.chromeScrollHack=setTimeout(function(){e.display.chromeScrollHack=null,e.display.sizer.style.pointerEvents=""},100));var n=ul(t),r=n.x,i=n.y,o=rr;t.deltaMode===0&&(r=t.deltaX,i=t.deltaY,o=1);var l=e.display,a=l.scroller,s=a.scrollWidth>a.clientWidth,u=a.scrollHeight>a.clientHeight;if(r&&s||i&&u){if(i&&xe&&W){e:for(var d=t.target,h=l.view;d!=a;d=d.parentNode)for(var b=0;b=0&&S(e,r.to())<=0)return n}return-1};var De=function(e,t){this.anchor=e,this.head=t};De.prototype.from=function(){return et(this.anchor,this.head)},De.prototype.to=function(){return Me(this.anchor,this.head)},De.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function Bt(e,t,n){var r=e&&e.options.selectionsMayTouch,i=t[n];t.sort(function(b,m){return S(b.from(),m.from())}),n=se(t,i);for(var o=1;o0:s>=0){var u=et(a.from(),l.from()),d=Me(a.to(),l.to()),h=a.empty()?l.from()==l.head:a.from()==a.head;o<=n&&--n,t.splice(--o,2,new De(h?d:u,h?u:d))}}return new At(t,n)}function dr(e,t){return new At([new De(e,t||e)],0)}function hr(e){return e.text?g(e.from.line+e.text.length-1,de(e.text).length+(e.text.length==1?e.from.ch:0)):e.to}function cl(e,t){if(S(e,t.from)<0)return e;if(S(e,t.to)<=0)return hr(t);var n=e.line+t.text.length-(t.to.line-t.from.line)-1,r=e.ch;return e.line==t.to.line&&(r+=hr(t).ch-t.to.ch),g(n,r)}function Xi(e,t){for(var n=[],r=0;r1&&e.remove(a.line+1,C-1),e.insert(a.line+1,z)}rt(e,"change",e,t)}function pr(e,t,n){function r(i,o,l){if(i.linked)for(var a=0;a1&&!e.done[e.done.length-2].ranges)return e.done.pop(),de(e.done)}function yl(e,t,n,r){var i=e.history;i.undone.length=0;var o=+new Date,l,a;if((i.lastOp==r||i.lastOrigin==t.origin&&t.origin&&(t.origin.charAt(0)=="+"&&i.lastModTime>o-(e.cm?e.cm.options.historyEventDelay:500)||t.origin.charAt(0)=="*"))&&(l=Ss(i,i.lastOp==r)))a=de(l.changes),S(t.from,t.to)==0&&S(t.from,a.to)==0?a.to=hr(t):l.changes.push(Ji(e,t));else{var s=de(i.done);for((!s||!s.ranges)&&ni(e.sel,i.done),l={changes:[Ji(e,t)],generation:i.generation},i.done.push(l);i.done.length>i.undoDepth;)i.done.shift(),i.done[0].ranges||i.done.shift()}i.done.push(n),i.generation=++i.maxGeneration,i.lastModTime=i.lastSelTime=o,i.lastOp=i.lastSelOp=r,i.lastOrigin=i.lastSelOrigin=t.origin,a||_e(e,"historyAdded")}function Cs(e,t,n,r){var i=t.charAt(0);return i=="*"||i=="+"&&n.ranges.length==r.ranges.length&&n.somethingSelected()==r.somethingSelected()&&new Date-e.history.lastSelTime<=(e.cm?e.cm.options.historyEventDelay:500)}function Ts(e,t,n,r){var i=e.history,o=r&&r.origin;n==i.lastSelOp||o&&i.lastSelOrigin==o&&(i.lastModTime==i.lastSelTime&&i.lastOrigin==o||Cs(e,o,de(i.done),t))?i.done[i.done.length-1]=t:ni(t,i.done),i.lastSelTime=+new Date,i.lastSelOrigin=o,i.lastSelOp=n,r&&r.clearRedo!==!1&&gl(i.undone)}function ni(e,t){var n=de(t);n&&n.ranges&&n.equals(e)||t.push(e)}function ml(e,t,n,r){var i=t["spans_"+e.id],o=0;e.iter(Math.max(e.first,n),Math.min(e.first+e.size,r),function(l){l.markedSpans&&((i||(i=t["spans_"+e.id]={}))[o]=l.markedSpans),++o})}function Ls(e){if(!e)return null;for(var t,n=0;n-1&&(de(a)[h]=u[h],delete u[h])}}return r}function Qi(e,t,n,r){if(r){var i=e.anchor;if(n){var o=S(t,i)<0;o!=S(n,i)<0?(i=t,t=n):o!=S(t,n)<0&&(t=n)}return new De(i,t)}else return new De(n||t,t)}function ii(e,t,n,r,i){i==null&&(i=e.cm&&(e.cm.display.shift||e.extend)),ct(e,new At([Qi(e.sel.primary(),t,n,i)],0),r)}function xl(e,t,n){for(var r=[],i=e.cm&&(e.cm.display.shift||e.extend),o=0;o=t.ch:a.to>t.ch))){if(i&&(_e(s,"beforeCursorEnter"),s.explicitlyCleared))if(o.markedSpans){--l;continue}else break;if(!s.atomic)continue;if(n){var h=s.find(r<0?1:-1),b=void 0;if((r<0?d:u)&&(h=Ll(e,h,-r,h&&h.line==t.line?o:null)),h&&h.line==t.line&&(b=S(h,n))&&(r<0?b<0:b>0))return Gr(e,h,t,r,i)}var m=s.find(r<0?-1:1);return(r<0?u:d)&&(m=Ll(e,m,r,m.line==t.line?o:null)),m?Gr(e,m,t,r,i):null}}return t}function li(e,t,n,r,i){var o=r||1,l=Gr(e,t,n,o,i)||!i&&Gr(e,t,n,o,!0)||Gr(e,t,n,-o,i)||!i&&Gr(e,t,n,-o,!0);return l||(e.cantEdit=!0,g(e.first,0))}function Ll(e,t,n,r){return n<0&&t.ch==0?t.line>e.first?le(e,g(t.line-1)):null:n>0&&t.ch==(r||K(e,t.line)).text.length?t.line=0;--i)Dl(e,{from:r[i].from,to:r[i].to,text:i?[""]:t.text,origin:t.origin});else Dl(e,t)}}function Dl(e,t){if(!(t.text.length==1&&t.text[0]==""&&S(t.from,t.to)==0)){var n=Xi(e,t);yl(e,t,n,e.cm?e.cm.curOp.id:NaN),xn(e,t,n,xi(e,t));var r=[];pr(e,function(i,o){!o&&se(r,i.history)==-1&&(Pl(i.history,t),r.push(i.history)),xn(i,t,null,xi(i,t))})}}function ai(e,t,n){var r=e.cm&&e.cm.state.suppressEdits;if(!(r&&!n)){for(var i=e.history,o,l=e.sel,a=t=="undo"?i.done:i.undone,s=t=="undo"?i.undone:i.done,u=0;u=0;--m){var C=b(m);if(C)return C.v}}}}function Al(e,t){if(t!=0&&(e.first+=t,e.sel=new At(st(e.sel.ranges,function(i){return new De(g(i.anchor.line+t,i.anchor.ch),g(i.head.line+t,i.head.ch))}),e.sel.primIndex),e.cm)){bt(e.cm,e.first,e.first-t,t);for(var n=e.cm.display,r=n.viewFrom;re.lastLine())){if(t.from.lineo&&(t={from:t.from,to:g(o,K(e,o).text.length),text:[t.text[0]],origin:t.origin}),t.removed=Vt(e,t.from,t.to),n||(n=Xi(e,t)),e.cm?Ds(e.cm,t,r):Zi(e,t,r),oi(e,n,Ie),e.cantEdit&&li(e,g(e.firstLine(),0))&&(e.cantEdit=!1)}}function Ds(e,t,n){var r=e.doc,i=e.display,o=t.from,l=t.to,a=!1,s=o.line;e.options.lineWrapping||(s=Ne(_t(K(r,o.line))),r.iter(s,l.line+1,function(m){if(m==i.maxLine)return a=!0,!0})),r.sel.contains(t.from,t.to)>-1&&En(e),Zi(r,t,n,Zo(e)),e.options.lineWrapping||(r.iter(s,o.line+t.text.length,function(m){var C=Gn(m);C>i.maxLineLength&&(i.maxLine=m,i.maxLineLength=C,i.maxLineChanged=!0,a=!1)}),a&&(e.curOp.updateMaxLine=!0)),ma(r,o.line),yn(e,400);var u=t.text.length-(l.line-o.line)-1;t.full?bt(e):o.line==l.line&&t.text.length==1&&!hl(e.doc,t)?fr(e,o.line,"text"):bt(e,o.line,l.line+1,u);var d=ht(e,"changes"),h=ht(e,"change");if(h||d){var b={from:o,to:l,text:t.text,removed:t.removed,origin:t.origin};h&&rt(e,"change",e,b),d&&(e.curOp.changeObjs||(e.curOp.changeObjs=[])).push(b)}e.display.selForContextMenu=null}function jr(e,t,n,r,i){var o;r||(r=n),S(r,n)<0&&(o=[r,n],n=o[0],r=o[1]),typeof t=="string"&&(t=e.splitLines(t)),qr(e,{from:n,to:r,text:t,origin:i})}function Ol(e,t,n,r){n1||!(this.children[0]instanceof kn))){var a=[];this.collapse(a),this.children=[new kn(a)],this.children[0].parent=this}},collapse:function(e){for(var t=0;t50){for(var l=i.lines.length%25+25,a=l;a10);e.parent.maybeSpill()}},iterN:function(e,t,n){for(var r=0;re.display.maxLineLength&&(e.display.maxLine=u,e.display.maxLineLength=d,e.display.maxLineChanged=!0)}r!=null&&e&&this.collapsed&&bt(e,r,i+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,e&&Cl(e.doc)),e&&rt(e,"markerCleared",e,this,r,i),t&&Mr(e),this.parent&&this.parent.clear()}},vr.prototype.find=function(e,t){e==null&&this.type=="bookmark"&&(e=1);for(var n,r,i=0;i0||l==0&&o.clearWhenEmpty!==!1)return o;if(o.replacedWith&&(o.collapsed=!0,o.widgetNode=w("span",[o.replacedWith],"CodeMirror-widget"),r.handleMouseEvents||o.widgetNode.setAttribute("cm-ignore-events","true"),r.insertLeft&&(o.widgetNode.insertLeft=!0)),o.collapsed){if(To(e,t.line,t,n,o)||t.line!=n.line&&To(e,n.line,t,n,o))throw new Error("Inserting collapsed marker partially overlapping an existing one");xa()}o.addToHistory&&yl(e,{from:t,to:n,origin:"markText"},e.sel,NaN);var a=t.line,s=e.cm,u;if(e.iter(a,n.line+1,function(h){s&&o.collapsed&&!s.options.lineWrapping&&_t(h)==s.display.maxLine&&(u=!0),o.collapsed&&a!=t.line&&Ft(h,0),ka(h,new Bn(o,a==t.line?t.ch:null,a==n.line?n.ch:null),e.cm&&e.cm.curOp),++a}),o.collapsed&&e.iter(t.line,n.line+1,function(h){ur(e,h)&&Ft(h,0)}),o.clearOnEnter&&E(o,"beforeCursorEnter",function(){return o.clear()}),o.readOnly&&(ba(),(e.history.done.length||e.history.undone.length)&&e.clearHistory()),o.collapsed&&(o.id=++Il,o.atomic=!0),s){if(u&&(s.curOp.updateMaxLine=!0),o.collapsed)bt(s,t.line,n.line+1);else if(o.className||o.startStyle||o.endStyle||o.css||o.attributes||o.title)for(var d=t.line;d<=n.line;d++)fr(s,d,"text");o.atomic&&Cl(s.doc),rt(s,"markerAdded",s,o)}return o}var Tn=function(e,t){this.markers=e,this.primary=t;for(var n=0;n=0;s--)qr(this,r[s]);a?kl(this,a):this.cm&&Rr(this.cm)}),undo:it(function(){ai(this,"undo")}),redo:it(function(){ai(this,"redo")}),undoSelection:it(function(){ai(this,"undo",!0)}),redoSelection:it(function(){ai(this,"redo",!0)}),setExtending:function(e){this.extend=e},getExtending:function(){return this.extend},historySize:function(){for(var e=this.history,t=0,n=0,r=0;r=e.ch)&&t.push(i.marker.parent||i.marker)}return t},findMarks:function(e,t,n){e=le(this,e),t=le(this,t);var r=[],i=e.line;return this.iter(e.line,t.line+1,function(o){var l=o.markedSpans;if(l)for(var a=0;a=s.to||s.from==null&&i!=e.line||s.from!=null&&i==t.line&&s.from>=t.ch)&&(!n||n(s.marker))&&r.push(s.marker.parent||s.marker)}++i}),r},getAllMarks:function(){var e=[];return this.iter(function(t){var n=t.markedSpans;if(n)for(var r=0;re)return t=e,!0;e-=o,++n}),le(this,g(n,t))},indexFromPos:function(e){e=le(this,e);var t=e.ch;if(e.linet&&(t=e.from),e.to!=null&&e.to-1){t.state.draggingText(e),setTimeout(function(){return t.display.input.focus()},20);return}try{var d=e.dataTransfer.getData("Text");if(d){var h;if(t.state.draggingText&&!t.state.draggingText.copy&&(h=t.listSelections()),oi(t.doc,dr(n,n)),h)for(var b=0;b=0;a--)jr(e.doc,"",r[a].from,r[a].to,"+delete");Rr(e)})}function $i(e,t,n){var r=be(e.text,t+n,n);return r<0||r>e.text.length?null:r}function eo(e,t,n){var r=$i(e,t.ch,n);return r==null?null:new g(t.line,r,n<0?"after":"before")}function to(e,t,n,r,i){if(e){t.doc.direction=="rtl"&&(i=-i);var o=Et(n,t.doc.direction);if(o){var l=i<0?de(o):o[0],a=i<0==(l.level==1),s=a?"after":"before",u;if(l.level>0||t.doc.direction=="rtl"){var d=Wr(t,n);u=i<0?n.text.length-1:0;var h=Xt(t,d,u).top;u=he(function(b){return Xt(t,d,b).top==h},i<0==(l.level==1)?l.from:l.to-1,u),s=="before"&&(u=$i(n,u,1))}else u=i<0?l.to:l.from;return new g(r,u,s)}}return new g(r,i<0?n.text.length:0,i<0?"before":"after")}function Us(e,t,n,r){var i=Et(t,e.doc.direction);if(!i)return eo(t,n,r);n.ch>=t.text.length?(n.ch=t.text.length,n.sticky="before"):n.ch<=0&&(n.ch=0,n.sticky="after");var o=Pt(i,n.ch,n.sticky),l=i[o];if(e.doc.direction=="ltr"&&l.level%2==0&&(r>0?l.to>n.ch:l.from=l.from&&b>=d.begin)){var m=h?"before":"after";return new g(n.line,b,m)}}var C=function(z,F,P){for(var H=function(Fe,ot){return ot?new g(n.line,a(Fe,1),"before"):new g(n.line,Fe,"after")};z>=0&&z0==(Z.level!=1),ve=Y?P.begin:a(P.end,-1);if(Z.from<=ve&&ve0?d.end:a(d.begin,-1);return O!=null&&!(r>0&&O==t.text.length)&&(N=C(r>0?0:i.length-1,r,u(O)),N)?N:null}var Nn={selectAll:Ml,singleSelection:function(e){return e.setSelection(e.getCursor("anchor"),e.getCursor("head"),Ie)},killLine:function(e){return Zr(e,function(t){if(t.empty()){var n=K(e.doc,t.head.line).text.length;return t.head.ch==n&&t.head.line0)i=new g(i.line,i.ch+1),e.replaceRange(o.charAt(i.ch-1)+o.charAt(i.ch-2),g(i.line,i.ch-2),i,"+transpose");else if(i.line>e.doc.first){var l=K(e.doc,i.line-1).text;l&&(i=new g(i.line,1),e.replaceRange(o.charAt(0)+e.doc.lineSeparator()+l.charAt(l.length-1),g(i.line-1,l.length-1),i,"+transpose"))}}n.push(new De(i,i))}e.setSelections(n)})},newlineAndIndent:function(e){return Tt(e,function(){for(var t=e.listSelections(),n=t.length-1;n>=0;n--)e.replaceRange(e.doc.lineSeparator(),t[n].anchor,t[n].head,"+input");t=e.listSelections();for(var r=0;re&&S(t,this.pos)==0&&n==this.button};var An,On;function Js(e,t){var n=+new Date;return On&&On.compare(n,e,t)?(An=On=null,"triple"):An&&An.compare(n,e,t)?(On=new no(n,e,t),An=null,"double"):(An=new no(n,e,t),On=null,"single")}function Ql(e){var t=this,n=t.display;if(!(je(t,e)||n.activeTouch&&n.input.supportsTouch())){if(n.input.ensurePolled(),n.shift=e.shiftKey,tr(n,e)){W||(n.scroller.draggable=!1,setTimeout(function(){return n.scroller.draggable=!0},100));return}if(!io(t,e)){var r=kr(t,e),i=rn(e),o=r?Js(r,i):"single";Ze(t).focus(),i==1&&t.state.selectingText&&t.state.selectingText(e),!(r&&Qs(t,i,r,o,e))&&(i==1?r?$s(t,r,o,e):mt(e)==n.scroller&&ft(e):i==2?(r&&ii(t.doc,r),setTimeout(function(){return n.input.focus()},20)):i==3&&($?t.display.input.onContextMenu(e):_i(t)))}}}function Qs(e,t,n,r,i){var o="Click";return r=="double"?o="Double"+o:r=="triple"&&(o="Triple"+o),o=(t==1?"Left":t==2?"Middle":"Right")+o,Dn(e,Kl(o,i),i,function(l){if(typeof l=="string"&&(l=Nn[l]),!l)return!1;var a=!1;try{e.isReadOnly()&&(e.state.suppressEdits=!0),a=l(e,n)!=ie}finally{e.state.suppressEdits=!1}return a})}function Vs(e,t,n){var r=e.getOption("configureMouse"),i=r?r(e,t,n):{};if(i.unit==null){var o=Be?n.shiftKey&&n.metaKey:n.altKey;i.unit=o?"rectangle":t=="single"?"char":t=="double"?"word":"line"}return(i.extend==null||e.doc.extend)&&(i.extend=e.doc.extend||n.shiftKey),i.addNew==null&&(i.addNew=xe?n.metaKey:n.ctrlKey),i.moveOnDrag==null&&(i.moveOnDrag=!(xe?n.altKey:n.ctrlKey)),i}function $s(e,t,n,r){M?setTimeout(We(Vo,e),0):e.curOp.focus=y(ae(e));var i=Vs(e,n,r),o=e.doc.sel,l;e.options.dragDrop&&gi&&!e.isReadOnly()&&n=="single"&&(l=o.contains(t))>-1&&(S((l=o.ranges[l]).from(),t)<0||t.xRel>0)&&(S(l.to(),t)>0||t.xRel<0)?eu(e,r,t,i):tu(e,r,t,i)}function eu(e,t,n,r){var i=e.display,o=!1,l=nt(e,function(u){W&&(i.scroller.draggable=!1),e.state.draggingText=!1,e.state.delayingBlurEvent&&(e.hasFocus()?e.state.delayingBlurEvent=!1:_i(e)),ut(i.wrapper.ownerDocument,"mouseup",l),ut(i.wrapper.ownerDocument,"mousemove",a),ut(i.scroller,"dragstart",s),ut(i.scroller,"drop",l),o||(ft(u),r.addNew||ii(e.doc,n,null,null,r.extend),W&&!Ee||M&&j==9?setTimeout(function(){i.wrapper.ownerDocument.body.focus({preventScroll:!0}),i.input.focus()},20):i.input.focus())}),a=function(u){o=o||Math.abs(t.clientX-u.clientX)+Math.abs(t.clientY-u.clientY)>=10},s=function(){return o=!0};W&&(i.scroller.draggable=!0),e.state.draggingText=l,l.copy=!r.moveOnDrag,E(i.wrapper.ownerDocument,"mouseup",l),E(i.wrapper.ownerDocument,"mousemove",a),E(i.scroller,"dragstart",s),E(i.scroller,"drop",l),e.state.delayingBlurEvent=!0,setTimeout(function(){return i.input.focus()},20),i.scroller.dragDrop&&i.scroller.dragDrop()}function Vl(e,t,n){if(n=="char")return new De(t,t);if(n=="word")return e.findWordAt(t);if(n=="line")return new De(g(t.line,0),le(e.doc,g(t.line+1,0)));var r=n(e,t);return new De(r.from,r.to)}function tu(e,t,n,r){M&&_i(e);var i=e.display,o=e.doc;ft(t);var l,a,s=o.sel,u=s.ranges;if(r.addNew&&!r.extend?(a=o.sel.contains(n),a>-1?l=u[a]:l=new De(n,n)):(l=o.sel.primary(),a=o.sel.primIndex),r.unit=="rectangle")r.addNew||(l=new De(n,n)),n=kr(e,t,!0,!0),a=-1;else{var d=Vl(e,n,r.unit);r.extend?l=Qi(l,d.anchor,d.head,r.extend):l=d}r.addNew?a==-1?(a=u.length,ct(o,Bt(e,u.concat([l]),a),{scroll:!1,origin:"*mouse"})):u.length>1&&u[a].empty()&&r.unit=="char"&&!r.extend?(ct(o,Bt(e,u.slice(0,a).concat(u.slice(a+1)),0),{scroll:!1,origin:"*mouse"}),s=o.sel):Vi(o,a,l,Mt):(a=0,ct(o,new At([l],0),Mt),s=o.sel);var h=n;function b(P){if(S(h,P)!=0)if(h=P,r.unit=="rectangle"){for(var H=[],Z=e.options.tabSize,Y=U(K(o,n.line).text,n.ch,Z),ve=U(K(o,P.line).text,P.ch,Z),Fe=Math.min(Y,ve),ot=Math.max(Y,ve),Ge=Math.min(n.line,P.line),Lt=Math.min(e.lastLine(),Math.max(n.line,P.line));Ge<=Lt;Ge++){var wt=K(o,Ge).text,Qe=yt(wt,Fe,Z);Fe==ot?H.push(new De(g(Ge,Qe),g(Ge,Qe))):wt.length>Qe&&H.push(new De(g(Ge,Qe),g(Ge,yt(wt,ot,Z))))}H.length||H.push(new De(n,n)),ct(o,Bt(e,s.ranges.slice(0,a).concat(H),a),{origin:"*mouse",scroll:!1}),e.scrollIntoView(P)}else{var kt=l,at=Vl(e,P,r.unit),tt=kt.anchor,Ve;S(at.anchor,tt)>0?(Ve=at.head,tt=et(kt.from(),at.anchor)):(Ve=at.anchor,tt=Me(kt.to(),at.head));var Ye=s.ranges.slice(0);Ye[a]=ru(e,new De(le(o,tt),Ve)),ct(o,Bt(e,Ye,a),Mt)}}var m=i.wrapper.getBoundingClientRect(),C=0;function N(P){var H=++C,Z=kr(e,P,!0,r.unit=="rectangle");if(Z)if(S(Z,h)!=0){e.curOp.focus=y(ae(e)),b(Z);var Y=Vn(i,o);(Z.line>=Y.to||Z.linem.bottom?20:0;ve&&setTimeout(nt(e,function(){C==H&&(i.scroller.scrollTop+=ve,N(P))}),50)}}function O(P){e.state.selectingText=!1,C=1/0,P&&(ft(P),i.input.focus()),ut(i.wrapper.ownerDocument,"mousemove",z),ut(i.wrapper.ownerDocument,"mouseup",F),o.history.lastSelOrigin=null}var z=nt(e,function(P){P.buttons===0||!rn(P)?O(P):N(P)}),F=nt(e,O);e.state.selectingText=F,E(i.wrapper.ownerDocument,"mousemove",z),E(i.wrapper.ownerDocument,"mouseup",F)}function ru(e,t){var n=t.anchor,r=t.head,i=K(e.doc,n.line);if(S(n,r)==0&&n.sticky==r.sticky)return t;var o=Et(i);if(!o)return t;var l=Pt(o,n.ch,n.sticky),a=o[l];if(a.from!=n.ch&&a.to!=n.ch)return t;var s=l+(a.from==n.ch==(a.level!=1)?0:1);if(s==0||s==o.length)return t;var u;if(r.line!=n.line)u=(r.line-n.line)*(e.doc.direction=="ltr"?1:-1)>0;else{var d=Pt(o,r.ch,r.sticky),h=d-l||(r.ch-n.ch)*(a.level==1?-1:1);d==s-1||d==s?u=h<0:u=h>0}var b=o[s+(u?-1:0)],m=u==(b.level==1),C=m?b.from:b.to,N=m?"after":"before";return n.ch==C&&n.sticky==N?t:new De(new g(n.line,C,N),r)}function $l(e,t,n,r){var i,o;if(t.touches)i=t.touches[0].clientX,o=t.touches[0].clientY;else try{i=t.clientX,o=t.clientY}catch{return!1}if(i>=Math.floor(e.display.gutters.getBoundingClientRect().right))return!1;r&&ft(t);var l=e.display,a=l.lineDiv.getBoundingClientRect();if(o>a.bottom||!ht(e,n))return tn(t);o-=a.top-l.viewOffset;for(var s=0;s=i){var d=Gt(e.doc,o),h=e.display.gutterSpecs[s];return _e(e,n,e,d,h.className,t),tn(t)}}}function io(e,t){return $l(e,t,"gutterClick",!0)}function ea(e,t){tr(e.display,t)||nu(e,t)||je(e,t,"contextmenu")||$||e.display.input.onContextMenu(t)}function nu(e,t){return ht(e,"gutterContextMenu")?$l(e,t,"gutterContextMenu",!1):!1}function ta(e){e.display.wrapper.className=e.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+e.options.theme.replace(/(^|\s)\s*/g," cm-s-"),cn(e)}var Jr={toString:function(){return"CodeMirror.Init"}},ra={},ci={};function iu(e){var t=e.optionHandlers;function n(r,i,o,l){e.defaults[r]=i,o&&(t[r]=l?function(a,s,u){u!=Jr&&o(a,s,u)}:o)}e.defineOption=n,e.Init=Jr,n("value","",function(r,i){return r.setValue(i)},!0),n("mode",null,function(r,i){r.doc.modeOption=i,Yi(r)},!0),n("indentUnit",2,Yi,!0),n("indentWithTabs",!1),n("smartIndent",!0),n("tabSize",4,function(r){bn(r),cn(r),bt(r)},!0),n("lineSeparator",null,function(r,i){if(r.doc.lineSep=i,!!i){var o=[],l=r.doc.first;r.doc.iter(function(s){for(var u=0;;){var d=s.text.indexOf(i,u);if(d==-1)break;u=d+i.length,o.push(g(l,d))}l++});for(var a=o.length-1;a>=0;a--)jr(r.doc,i,o[a],g(o[a].line,o[a].ch+i.length))}}),n("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b\u200e\u200f\u2028\u2029\u202d\u202e\u2066\u2067\u2069\ufeff\ufff9-\ufffc]/g,function(r,i,o){r.state.specialChars=new RegExp(i.source+(i.test(" ")?"":"| "),"g"),o!=Jr&&r.refresh()}),n("specialCharPlaceholder",Pa,function(r){return r.refresh()},!0),n("electricChars",!0),n("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),n("spellcheck",!1,function(r,i){return r.getInputField().spellcheck=i},!0),n("autocorrect",!1,function(r,i){return r.getInputField().autocorrect=i},!0),n("autocapitalize",!1,function(r,i){return r.getInputField().autocapitalize=i},!0),n("rtlMoveVisually",!ye),n("wholeLineUpdateBefore",!0),n("theme","default",function(r){ta(r),mn(r)},!0),n("keyMap","default",function(r,i,o){var l=ui(i),a=o!=Jr&&ui(o);a&&a.detach&&a.detach(r,l),l.attach&&l.attach(r,a||null)}),n("extraKeys",null),n("configureMouse",null),n("lineWrapping",!1,lu,!0),n("gutters",[],function(r,i){r.display.gutterSpecs=ji(i,r.options.lineNumbers),mn(r)},!0),n("fixedGutter",!0,function(r,i){r.display.gutters.style.left=i?Ei(r.display)+"px":"0",r.refresh()},!0),n("coverGutterNextToScrollbar",!1,function(r){return Kr(r)},!0),n("scrollbarStyle","native",function(r){il(r),Kr(r),r.display.scrollbars.setScrollTop(r.doc.scrollTop),r.display.scrollbars.setScrollLeft(r.doc.scrollLeft)},!0),n("lineNumbers",!1,function(r,i){r.display.gutterSpecs=ji(r.options.gutters,i),mn(r)},!0),n("firstLineNumber",1,mn,!0),n("lineNumberFormatter",function(r){return r},mn,!0),n("showCursorWhenSelecting",!1,dn,!0),n("resetSelectionOnContextMenu",!0),n("lineWiseCopyCut",!0),n("pasteLinesPerSelection",!0),n("selectionsMayTouch",!1),n("readOnly",!1,function(r,i){i=="nocursor"&&(Br(r),r.display.input.blur()),r.display.input.readOnlyChanged(i)}),n("screenReaderLabel",null,function(r,i){i=i===""?null:i,r.display.input.screenReaderLabelChanged(i)}),n("disableInput",!1,function(r,i){i||r.display.input.reset()},!0),n("dragDrop",!0,ou),n("allowDropFileTypes",null),n("cursorBlinkRate",530),n("cursorScrollMargin",0),n("cursorHeight",1,dn,!0),n("singleCursorHeightPerLine",!0,dn,!0),n("workTime",100),n("workDelay",100),n("flattenSpans",!0,bn,!0),n("addModeClass",!1,bn,!0),n("pollInterval",100),n("undoDepth",200,function(r,i){return r.doc.history.undoDepth=i}),n("historyEventDelay",1250),n("viewportMargin",10,function(r){return r.refresh()},!0),n("maxHighlightLength",1e4,bn,!0),n("moveInputWithCursor",!0,function(r,i){i||r.display.input.resetPosition()}),n("tabindex",null,function(r,i){return r.display.input.getField().tabIndex=i||""}),n("autofocus",null),n("direction","ltr",function(r,i){return r.doc.setDirection(i)},!0),n("phrases",null)}function ou(e,t,n){var r=n&&n!=Jr;if(!t!=!r){var i=e.display.dragFunctions,o=t?E:ut;o(e.display.scroller,"dragstart",i.start),o(e.display.scroller,"dragenter",i.enter),o(e.display.scroller,"dragover",i.over),o(e.display.scroller,"dragleave",i.leave),o(e.display.scroller,"drop",i.drop)}}function lu(e){e.options.lineWrapping?(D(e.display.wrapper,"CodeMirror-wrap"),e.display.sizer.style.minWidth="",e.display.sizerWidth=null):(me(e.display.wrapper,"CodeMirror-wrap"),Ci(e)),Ii(e),bt(e),cn(e),setTimeout(function(){return Kr(e)},100)}function Ke(e,t){var n=this;if(!(this instanceof Ke))return new Ke(e,t);this.options=t=t?V(t):{},V(ra,t,!1);var r=t.value;typeof r=="string"?r=new xt(r,t.mode,null,t.lineSeparator,t.direction):t.mode&&(r.modeOption=t.mode),this.doc=r;var i=new Ke.inputStyles[t.inputStyle](this),o=this.display=new bs(e,r,i,t);o.wrapper.CodeMirror=this,ta(this),t.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),il(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new fe,keySeq:null,specialChars:null},t.autofocus&&!te&&o.input.focus(),M&&j<11&&setTimeout(function(){return n.display.input.reset(!0)},20),au(this),_s(),Lr(this),this.curOp.forceUpdate=!0,pl(this,r),t.autofocus&&!te||this.hasFocus()?setTimeout(function(){n.hasFocus()&&!n.state.focused&&Hi(n)},20):Br(this);for(var l in ci)ci.hasOwnProperty(l)&&ci[l](this,t[l],Jr);al(this),t.finishInit&&t.finishInit(this);for(var a=0;a20*20}E(t.scroller,"touchstart",function(s){if(!je(e,s)&&!o(s)&&!io(e,s)){t.input.ensurePolled(),clearTimeout(n);var u=+new Date;t.activeTouch={start:u,moved:!1,prev:u-r.end<=300?r:null},s.touches.length==1&&(t.activeTouch.left=s.touches[0].pageX,t.activeTouch.top=s.touches[0].pageY)}}),E(t.scroller,"touchmove",function(){t.activeTouch&&(t.activeTouch.moved=!0)}),E(t.scroller,"touchend",function(s){var u=t.activeTouch;if(u&&!tr(t,s)&&u.left!=null&&!u.moved&&new Date-u.start<300){var d=e.coordsChar(t.activeTouch,"page"),h;!u.prev||l(u,u.prev)?h=new De(d,d):!u.prev.prev||l(u,u.prev.prev)?h=e.findWordAt(d):h=new De(g(d.line,0),le(e.doc,g(d.line+1,0))),e.setSelection(h.anchor,h.head),e.focus(),ft(s)}i()}),E(t.scroller,"touchcancel",i),E(t.scroller,"scroll",function(){t.scroller.clientHeight&&(pn(e,t.scroller.scrollTop),Cr(e,t.scroller.scrollLeft,!0),_e(e,"scroll",e))}),E(t.scroller,"mousewheel",function(s){return fl(e,s)}),E(t.scroller,"DOMMouseScroll",function(s){return fl(e,s)}),E(t.wrapper,"scroll",function(){return t.wrapper.scrollTop=t.wrapper.scrollLeft=0}),t.dragFunctions={enter:function(s){je(e,s)||Zt(s)},over:function(s){je(e,s)||(Ws(e,s),Zt(s))},start:function(s){return Fs(e,s)},drop:nt(e,Is),leave:function(s){je(e,s)||_l(e)}};var a=t.input.getField();E(a,"keyup",function(s){return Zl.call(e,s)}),E(a,"keydown",nt(e,Yl)),E(a,"keypress",nt(e,Jl)),E(a,"focus",function(s){return Hi(e,s)}),E(a,"blur",function(s){return Br(e,s)})}var oo=[];Ke.defineInitHook=function(e){return oo.push(e)};function zn(e,t,n,r){var i=e.doc,o;n==null&&(n="add"),n=="smart"&&(i.mode.indent?o=ln(e,t).state:n="prev");var l=e.options.tabSize,a=K(i,t),s=U(a.text,null,l);a.stateAfter&&(a.stateAfter=null);var u=a.text.match(/^\s*/)[0],d;if(!r&&!/\S/.test(a.text))d=0,n="not";else if(n=="smart"&&(d=i.mode.indent(o,a.text.slice(u.length),a.text),d==ie||d>150)){if(!r)return;n="prev"}n=="prev"?t>i.first?d=U(K(i,t-1).text,null,l):d=0:n=="add"?d=s+e.options.indentUnit:n=="subtract"?d=s-e.options.indentUnit:typeof n=="number"&&(d=s+n),d=Math.max(0,d);var h="",b=0;if(e.options.indentWithTabs)for(var m=Math.floor(d/l);m;--m)b+=l,h+=" ";if(bl,s=nn(t),u=null;if(a&&r.ranges.length>1)if(Rt&&Rt.text.join(` -`)==t){if(r.ranges.length%Rt.text.length==0){u=[];for(var d=0;d=0;b--){var m=r.ranges[b],C=m.from(),N=m.to();m.empty()&&(n&&n>0?C=g(C.line,C.ch-n):e.state.overwrite&&!a?N=g(N.line,Math.min(K(o,N.line).text.length,N.ch+de(s).length)):a&&Rt&&Rt.lineWise&&Rt.text.join(` -`)==s.join(` -`)&&(C=N=g(C.line,0)));var O={from:C,to:N,text:u?u[b%u.length]:s,origin:i||(a?"paste":e.state.cutIncoming>l?"cut":"+input")};qr(e.doc,O),rt(e,"inputRead",e,O)}t&&!a&&ia(e,t),Rr(e),e.curOp.updateInput<2&&(e.curOp.updateInput=h),e.curOp.typing=!0,e.state.pasteIncoming=e.state.cutIncoming=-1}function na(e,t){var n=e.clipboardData&&e.clipboardData.getData("Text");if(n)return e.preventDefault(),!t.isReadOnly()&&!t.options.disableInput&&t.hasFocus()&&Tt(t,function(){return lo(t,n,0,null,"paste")}),!0}function ia(e,t){if(!(!e.options.electricChars||!e.options.smartIndent))for(var n=e.doc.sel,r=n.ranges.length-1;r>=0;r--){var i=n.ranges[r];if(!(i.head.ch>100||r&&n.ranges[r-1].head.line==i.head.line)){var o=e.getModeAt(i.head),l=!1;if(o.electricChars){for(var a=0;a-1){l=zn(e,i.head.line,"smart");break}}else o.electricInput&&o.electricInput.test(K(e.doc,i.head.line).text.slice(0,i.head.ch))&&(l=zn(e,i.head.line,"smart"));l&&rt(e,"electricInput",e,i.head.line)}}}function oa(e){for(var t=[],n=[],r=0;ro&&(zn(this,a.head.line,r,!0),o=a.head.line,l==this.doc.sel.primIndex&&Rr(this));else{var s=a.from(),u=a.to(),d=Math.max(o,s.line);o=Math.min(this.lastLine(),u.line-(u.ch?0:1))+1;for(var h=d;h0&&Vi(this.doc,l,new De(s,b[l].to()),Ie)}}}),getTokenAt:function(r,i){return go(this,r,i)},getLineTokens:function(r,i){return go(this,g(r),i,!0)},getTokenTypeAt:function(r){r=le(this.doc,r);var i=ho(this,K(this.doc,r.line)),o=0,l=(i.length-1)/2,a=r.ch,s;if(a==0)s=i[2];else for(;;){var u=o+l>>1;if((u?i[u*2-1]:0)>=a)l=u;else if(i[u*2+1]s&&(r=s,l=!0),a=K(this.doc,r)}else a=r;return Xn(this,a,{top:0,left:0},i||"page",o||l).top+(l?this.doc.height-er(a):0)},defaultTextHeight:function(){return _r(this.display)},defaultCharWidth:function(){return Hr(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(r,i,o,l,a){var s=this.display;r=Ht(this,le(this.doc,r));var u=r.bottom,d=r.left;if(i.style.position="absolute",i.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(i),s.sizer.appendChild(i),l=="over")u=r.top;else if(l=="above"||l=="near"){var h=Math.max(s.wrapper.clientHeight,this.doc.height),b=Math.max(s.sizer.clientWidth,s.lineSpace.clientWidth);(l=="above"||r.bottom+i.offsetHeight>h)&&r.top>i.offsetHeight?u=r.top-i.offsetHeight:r.bottom+i.offsetHeight<=h&&(u=r.bottom),d+i.offsetWidth>b&&(d=b-i.offsetWidth)}i.style.top=u+"px",i.style.left=i.style.right="",a=="right"?(d=s.sizer.clientWidth-i.offsetWidth,i.style.right="0px"):(a=="left"?d=0:a=="middle"&&(d=(s.sizer.clientWidth-i.offsetWidth)/2),i.style.left=d+"px"),o&&os(this,{left:d,top:u,right:d+i.offsetWidth,bottom:u+i.offsetHeight})},triggerOnKeyDown:vt(Yl),triggerOnKeyPress:vt(Jl),triggerOnKeyUp:Zl,triggerOnMouseDown:vt(Ql),execCommand:function(r){if(Nn.hasOwnProperty(r))return Nn[r].call(null,this)},triggerElectric:vt(function(r){ia(this,r)}),findPosH:function(r,i,o,l){var a=1;i<0&&(a=-1,i=-i);for(var s=le(this.doc,r),u=0;u0&&d(o.charAt(l-1));)--l;for(;a.5||this.options.lineWrapping)&&Ii(this),_e(this,"refresh",this)}),swapDoc:vt(function(r){var i=this.doc;return i.cm=null,this.state.selectingText&&this.state.selectingText(),pl(this,r),cn(this),this.display.input.reset(),hn(this,r.scrollLeft,r.scrollTop),this.curOp.forceScroll=!0,rt(this,"swapDoc",this,i),i}),phrase:function(r){var i=this.options.phrases;return i&&Object.prototype.hasOwnProperty.call(i,r)?i[r]:r},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},pt(e),e.registerHelper=function(r,i,o){n.hasOwnProperty(r)||(n[r]=e[r]={_global:[]}),n[r][i]=o},e.registerGlobalHelper=function(r,i,o,l){e.registerHelper(r,i,l),n[r]._global.push({pred:o,val:l})}}function ao(e,t,n,r,i){var o=t,l=n,a=K(e,t.line),s=i&&e.direction=="rtl"?-n:n;function u(){var F=t.line+s;return F=e.first+e.size?!1:(t=new g(F,t.ch,t.sticky),a=K(e,F))}function d(F){var P;if(r=="codepoint"){var H=a.text.charCodeAt(t.ch+(n>0?0:-1));if(isNaN(H))P=null;else{var Z=n>0?H>=55296&&H<56320:H>=56320&&H<57343;P=new g(t.line,Math.max(0,Math.min(a.text.length,t.ch+n*(Z?2:1))),-n)}}else i?P=Us(e.cm,a,t,n):P=eo(a,t,n);if(P==null)if(!F&&u())t=to(i,e.cm,a,t.line,s);else return!1;else t=P;return!0}if(r=="char"||r=="codepoint")d();else if(r=="column")d(!0);else if(r=="word"||r=="group")for(var h=null,b=r=="group",m=e.cm&&e.cm.getHelper(t,"wordChars"),C=!0;!(n<0&&!d(!C));C=!1){var N=a.text.charAt(t.ch)||` -`,O=pe(N,m)?"w":b&&N==` -`?"n":!b||/\s/.test(N)?null:"p";if(b&&!C&&!O&&(O="s"),h&&h!=O){n<0&&(n=1,d(),t.sticky="after");break}if(O&&(h=O),n>0&&!d(!C))break}var z=li(e,t,o,l,!0);return oe(o,z)&&(z.hitSide=!0),z}function sa(e,t,n,r){var i=e.doc,o=t.left,l;if(r=="page"){var a=Math.min(e.display.wrapper.clientHeight,Ze(e).innerHeight||i(e).documentElement.clientHeight),s=Math.max(a-.5*_r(e.display),3);l=(n>0?t.bottom:t.top)+n*s}else r=="line"&&(l=n>0?t.bottom+3:t.top-3);for(var u;u=Oi(e,o,l),!!u.outside;){if(n<0?l<=0:l>=i.height){u.hitSide=!0;break}l+=n*5}return u}var ze=function(e){this.cm=e,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new fe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};ze.prototype.init=function(e){var t=this,n=this,r=n.cm,i=n.div=e.lineDiv;i.contentEditable=!0,la(i,r.options.spellcheck,r.options.autocorrect,r.options.autocapitalize);function o(a){for(var s=a.target;s;s=s.parentNode){if(s==i)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(s.className))break}return!1}E(i,"paste",function(a){!o(a)||je(r,a)||na(a,r)||j<=11&&setTimeout(nt(r,function(){return t.updateFromDOM()}),20)}),E(i,"compositionstart",function(a){t.composing={data:a.data,done:!1}}),E(i,"compositionupdate",function(a){t.composing||(t.composing={data:a.data,done:!1})}),E(i,"compositionend",function(a){t.composing&&(a.data!=t.composing.data&&t.readFromDOMSoon(),t.composing.done=!0)}),E(i,"touchstart",function(){return n.forceCompositionEnd()}),E(i,"input",function(){t.composing||t.readFromDOMSoon()});function l(a){if(!(!o(a)||je(r,a))){if(r.somethingSelected())di({lineWise:!1,text:r.getSelections()}),a.type=="cut"&&r.replaceSelection("",null,"cut");else if(r.options.lineWiseCopyCut){var s=oa(r);di({lineWise:!0,text:s.text}),a.type=="cut"&&r.operation(function(){r.setSelections(s.ranges,0,Ie),r.replaceSelection("",null,"cut")})}else return;if(a.clipboardData){a.clipboardData.clearData();var u=Rt.text.join(` -`);if(a.clipboardData.setData("Text",u),a.clipboardData.getData("Text")==u){a.preventDefault();return}}var d=aa(),h=d.firstChild;r.display.lineSpace.insertBefore(d,r.display.lineSpace.firstChild),h.value=Rt.text.join(` -`);var b=y(i.ownerDocument);Q(h),setTimeout(function(){r.display.lineSpace.removeChild(d),b.focus(),b==i&&n.showPrimarySelection()},50)}}E(i,"copy",l),E(i,"cut",l)},ze.prototype.screenReaderLabelChanged=function(e){e?this.div.setAttribute("aria-label",e):this.div.removeAttribute("aria-label")},ze.prototype.prepareSelection=function(){var e=Qo(this.cm,!1);return e.focus=y(this.div.ownerDocument)==this.div,e},ze.prototype.showSelection=function(e,t){!e||!this.cm.display.view.length||((e.focus||t)&&this.showPrimarySelection(),this.showMultipleSelections(e))},ze.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},ze.prototype.showPrimarySelection=function(){var e=this.getSelection(),t=this.cm,n=t.doc.sel.primary(),r=n.from(),i=n.to();if(t.display.viewTo==t.display.viewFrom||r.line>=t.display.viewTo||i.line=t.display.viewFrom&&ua(t,r)||{node:a[0].measure.map[2],offset:0},u=i.linee.firstLine()&&(r=g(r.line-1,K(e.doc,r.line-1).length)),i.ch==K(e.doc,i.line).text.length&&i.linet.viewTo-1)return!1;var o,l,a;r.line==t.viewFrom||(o=Sr(e,r.line))==0?(l=Ne(t.view[0].line),a=t.view[0].node):(l=Ne(t.view[o].line),a=t.view[o-1].node.nextSibling);var s=Sr(e,i.line),u,d;if(s==t.view.length-1?(u=t.viewTo-1,d=t.lineDiv.lastChild):(u=Ne(t.view[s+1].line)-1,d=t.view[s+1].node.previousSibling),!a)return!1;for(var h=e.doc.splitLines(fu(e,a,d,l,u)),b=Vt(e.doc,g(l,0),g(u,K(e.doc,u).text.length));h.length>1&&b.length>1;)if(de(h)==de(b))h.pop(),b.pop(),u--;else if(h[0]==b[0])h.shift(),b.shift(),l++;else break;for(var m=0,C=0,N=h[0],O=b[0],z=Math.min(N.length,O.length);mr.ch&&F.charCodeAt(F.length-C-1)==P.charCodeAt(P.length-C-1);)m--,C++;h[h.length-1]=F.slice(0,F.length-C).replace(/^\u200b+/,""),h[0]=h[0].slice(m).replace(/\u200b+$/,"");var Z=g(l,m),Y=g(u,b.length?de(b).length-C:0);if(h.length>1||h[0]||S(Z,Y))return jr(e.doc,h,Z,Y,"+input"),!0},ze.prototype.ensurePolled=function(){this.forceCompositionEnd()},ze.prototype.reset=function(){this.forceCompositionEnd()},ze.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},ze.prototype.readFromDOMSoon=function(){var e=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(e.readDOMTimeout=null,e.composing)if(e.composing.done)e.composing=null;else return;e.updateFromDOM()},80))},ze.prototype.updateFromDOM=function(){var e=this;(this.cm.isReadOnly()||!this.pollContent())&&Tt(this.cm,function(){return bt(e.cm)})},ze.prototype.setUneditable=function(e){e.contentEditable="false"},ze.prototype.onKeyPress=function(e){e.charCode==0||this.composing||(e.preventDefault(),this.cm.isReadOnly()||nt(this.cm,lo)(this.cm,String.fromCharCode(e.charCode==null?e.keyCode:e.charCode),0))},ze.prototype.readOnlyChanged=function(e){this.div.contentEditable=String(e!="nocursor")},ze.prototype.onContextMenu=function(){},ze.prototype.resetPosition=function(){},ze.prototype.needsContentAttribute=!0;function ua(e,t){var n=Ni(e,t.line);if(!n||n.hidden)return null;var r=K(e.doc,t.line),i=Wo(n,r,t.line),o=Et(r,e.doc.direction),l="left";if(o){var a=Pt(o,t.ch);l=a%2?"right":"left"}var s=Bo(i.map,t.ch,l);return s.offset=s.collapse=="right"?s.end:s.start,s}function uu(e){for(var t=e;t;t=t.parentNode)if(/CodeMirror-gutter-wrapper/.test(t.className))return!0;return!1}function Qr(e,t){return t&&(e.bad=!0),e}function fu(e,t,n,r,i){var o="",l=!1,a=e.doc.lineSeparator(),s=!1;function u(m){return function(C){return C.id==m}}function d(){l&&(o+=a,s&&(o+=a),l=s=!1)}function h(m){m&&(d(),o+=m)}function b(m){if(m.nodeType==1){var C=m.getAttribute("cm-text");if(C){h(C);return}var N=m.getAttribute("cm-marker"),O;if(N){var z=e.findMarks(g(r,0),g(i+1,0),u(+N));z.length&&(O=z[0].find(0))&&h(Vt(e.doc,O.from,O.to).join(a));return}if(m.getAttribute("contenteditable")=="false")return;var F=/^(pre|div|p|li|table|br)$/i.test(m.nodeName);if(!/^br$/i.test(m.nodeName)&&m.textContent.length==0)return;F&&d();for(var P=0;P=9&&t.hasSelection&&(t.hasSelection=null),n.poll()}),E(i,"paste",function(l){je(r,l)||na(l,r)||(r.state.pasteIncoming=+new Date,n.fastPoll())});function o(l){if(!je(r,l)){if(r.somethingSelected())di({lineWise:!1,text:r.getSelections()});else if(r.options.lineWiseCopyCut){var a=oa(r);di({lineWise:!0,text:a.text}),l.type=="cut"?r.setSelections(a.ranges,null,Ie):(n.prevInput="",i.value=a.text.join(` -`),Q(i))}else return;l.type=="cut"&&(r.state.cutIncoming=+new Date)}}E(i,"cut",o),E(i,"copy",o),E(e.scroller,"paste",function(l){if(!(tr(e,l)||je(r,l))){if(!i.dispatchEvent){r.state.pasteIncoming=+new Date,n.focus();return}var a=new Event("paste");a.clipboardData=l.clipboardData,i.dispatchEvent(a)}}),E(e.lineSpace,"selectstart",function(l){tr(e,l)||ft(l)}),E(i,"compositionstart",function(){var l=r.getCursor("from");n.composing&&n.composing.range.clear(),n.composing={start:l,range:r.markText(l,r.getCursor("to"),{className:"CodeMirror-composing"})}}),E(i,"compositionend",function(){n.composing&&(n.poll(),n.composing.range.clear(),n.composing=null)})},Je.prototype.createField=function(e){this.wrapper=aa(),this.textarea=this.wrapper.firstChild},Je.prototype.screenReaderLabelChanged=function(e){e?this.textarea.setAttribute("aria-label",e):this.textarea.removeAttribute("aria-label")},Je.prototype.prepareSelection=function(){var e=this.cm,t=e.display,n=e.doc,r=Qo(e);if(e.options.moveInputWithCursor){var i=Ht(e,n.sel.primary().head,"div"),o=t.wrapper.getBoundingClientRect(),l=t.lineDiv.getBoundingClientRect();r.teTop=Math.max(0,Math.min(t.wrapper.clientHeight-10,i.top+l.top-o.top)),r.teLeft=Math.max(0,Math.min(t.wrapper.clientWidth-10,i.left+l.left-o.left))}return r},Je.prototype.showSelection=function(e){var t=this.cm,n=t.display;_(n.cursorDiv,e.cursors),_(n.selectionDiv,e.selection),e.teTop!=null&&(this.wrapper.style.top=e.teTop+"px",this.wrapper.style.left=e.teLeft+"px")},Je.prototype.reset=function(e){if(!(this.contextMenuPending||this.composing&&e)){var t=this.cm;if(this.resetting=!0,t.somethingSelected()){this.prevInput="";var n=t.getSelection();this.textarea.value=n,t.state.focused&&Q(this.textarea),M&&j>=9&&(this.hasSelection=n)}else e||(this.prevInput=this.textarea.value="",M&&j>=9&&(this.hasSelection=null));this.resetting=!1}},Je.prototype.getField=function(){return this.textarea},Je.prototype.supportsTouch=function(){return!1},Je.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||y(this.textarea.ownerDocument)!=this.textarea))try{this.textarea.focus()}catch{}},Je.prototype.blur=function(){this.textarea.blur()},Je.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Je.prototype.receivedFocus=function(){this.slowPoll()},Je.prototype.slowPoll=function(){var e=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){e.poll(),e.cm.state.focused&&e.slowPoll()})},Je.prototype.fastPoll=function(){var e=!1,t=this;t.pollingFast=!0;function n(){var r=t.poll();!r&&!e?(e=!0,t.polling.set(60,n)):(t.pollingFast=!1,t.slowPoll())}t.polling.set(20,n)},Je.prototype.poll=function(){var e=this,t=this.cm,n=this.textarea,r=this.prevInput;if(this.contextMenuPending||this.resetting||!t.state.focused||or(n)&&!r&&!this.composing||t.isReadOnly()||t.options.disableInput||t.state.keySeq)return!1;var i=n.value;if(i==r&&!t.somethingSelected())return!1;if(M&&j>=9&&this.hasSelection===i||xe&&/[\uf700-\uf7ff]/.test(i))return t.display.input.reset(),!1;if(t.doc.sel==t.display.selForContextMenu){var o=i.charCodeAt(0);if(o==8203&&!r&&(r="​"),o==8666)return this.reset(),this.cm.execCommand("undo")}for(var l=0,a=Math.min(r.length,i.length);l1e3||i.indexOf(` -`)>-1?n.value=e.prevInput="":e.prevInput=i,e.composing&&(e.composing.range.clear(),e.composing.range=t.markText(e.composing.start,t.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Je.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Je.prototype.onKeyPress=function(){M&&j>=9&&(this.hasSelection=null),this.fastPoll()},Je.prototype.onContextMenu=function(e){var t=this,n=t.cm,r=n.display,i=t.textarea;t.contextMenuPending&&t.contextMenuPending();var o=kr(n,e),l=r.scroller.scrollTop;if(!o||ce)return;var a=n.options.resetSelectionOnContextMenu;a&&n.doc.sel.contains(o)==-1&&nt(n,ct)(n.doc,dr(o),Ie);var s=i.style.cssText,u=t.wrapper.style.cssText,d=t.wrapper.offsetParent.getBoundingClientRect();t.wrapper.style.cssText="position: static",i.style.cssText=`position: absolute; width: 30px; height: 30px; - top: `+(e.clientY-d.top-5)+"px; left: "+(e.clientX-d.left-5)+`px; - z-index: 1000; background: `+(M?"rgba(255, 255, 255, .05)":"transparent")+`; - outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var h;W&&(h=i.ownerDocument.defaultView.scrollY),r.input.focus(),W&&i.ownerDocument.defaultView.scrollTo(null,h),r.input.reset(),n.somethingSelected()||(i.value=t.prevInput=" "),t.contextMenuPending=m,r.selForContextMenu=n.doc.sel,clearTimeout(r.detectingSelectAll);function b(){if(i.selectionStart!=null){var N=n.somethingSelected(),O="​"+(N?i.value:"");i.value="⇚",i.value=O,t.prevInput=N?"":"​",i.selectionStart=1,i.selectionEnd=O.length,r.selForContextMenu=n.doc.sel}}function m(){if(t.contextMenuPending==m&&(t.contextMenuPending=!1,t.wrapper.style.cssText=u,i.style.cssText=s,M&&j<9&&r.scrollbars.setScrollTop(r.scroller.scrollTop=l),i.selectionStart!=null)){(!M||M&&j<9)&&b();var N=0,O=function(){r.selForContextMenu==n.doc.sel&&i.selectionStart==0&&i.selectionEnd>0&&t.prevInput=="​"?nt(n,Ml)(n):N++<10?r.detectingSelectAll=setTimeout(O,500):(r.selForContextMenu=null,r.input.reset())};r.detectingSelectAll=setTimeout(O,200)}}if(M&&j>=9&&b(),$){Zt(e);var C=function(){ut(window,"mouseup",C),setTimeout(m,20)};E(window,"mouseup",C)}else setTimeout(m,50)},Je.prototype.readOnlyChanged=function(e){e||this.reset(),this.textarea.disabled=e=="nocursor",this.textarea.readOnly=!!e},Je.prototype.setUneditable=function(){},Je.prototype.needsContentAttribute=!1;function du(e,t){if(t=t?V(t):{},t.value=e.value,!t.tabindex&&e.tabIndex&&(t.tabindex=e.tabIndex),!t.placeholder&&e.placeholder&&(t.placeholder=e.placeholder),t.autofocus==null){var n=y(e.ownerDocument);t.autofocus=n==e||e.getAttribute("autofocus")!=null&&n==document.body}function r(){e.value=a.getValue()}var i;if(e.form&&(E(e.form,"submit",r),!t.leaveSubmitMethodAlone)){var o=e.form;i=o.submit;try{var l=o.submit=function(){r(),o.submit=i,o.submit(),o.submit=l}}catch{}}t.finishInit=function(s){s.save=r,s.getTextArea=function(){return e},s.toTextArea=function(){s.toTextArea=isNaN,r(),e.parentNode.removeChild(s.getWrapperElement()),e.style.display="",e.form&&(ut(e.form,"submit",r),!t.leaveSubmitMethodAlone&&typeof e.form.submit=="function"&&(e.form.submit=i))}},e.style.display="none";var a=Ke(function(s){return e.parentNode.insertBefore(s,e.nextSibling)},t);return a}function hu(e){e.off=ut,e.on=E,e.wheelEventPixels=xs,e.Doc=xt,e.splitLines=nn,e.countColumn=U,e.findColumn=yt,e.isWordChar=T,e.Pass=ie,e.signal=_e,e.Line=Ir,e.changeEnd=hr,e.scrollbarModel=nl,e.Pos=g,e.cmpPos=S,e.modes=Wt,e.mimeModes=lr,e.resolveMode=Ct,e.getMode=Jt,e.modeExtensions=ar,e.extendMode=_n,e.copyState=Qt,e.startState=on,e.innerMode=sr,e.commands=Nn,e.keyMap=nr,e.keyName=Ul,e.isModifierKey=Rl,e.lookupKey=Yr,e.normalizeKeyMap=Ks,e.StringStream=Xe,e.SharedTextMarker=Tn,e.TextMarker=vr,e.LineWidget=Cn,e.e_preventDefault=ft,e.e_stopPropagation=br,e.e_stop=Zt,e.addClass=D,e.contains=v,e.rmClass=me,e.keyNames=gr}iu(Ke),su(Ke);var pu="iter insert remove copy getEditor constructor".split(" ");for(var pi in xt.prototype)xt.prototype.hasOwnProperty(pi)&&se(pu,pi)<0&&(Ke.prototype[pi]=function(e){return function(){return e.apply(this.doc,arguments)}}(xt.prototype[pi]));return pt(xt),Ke.inputStyles={textarea:Je,contenteditable:ze},Ke.defineMode=function(e){!Ke.defaults.mode&&e!="null"&&(Ke.defaults.mode=e),Wn.apply(this,arguments)},Ke.defineMIME=Pr,Ke.defineMode("null",function(){return{token:function(e){return e.skipToEnd()}}}),Ke.defineMIME("text/plain","null"),Ke.defineExtension=function(e,t){Ke.prototype[e]=t},Ke.defineDocExtension=function(e,t){xt.prototype[e]=t},Ke.fromTextArea=du,hu(Ke),Ke.version="5.65.9",Ke})})(pa);var Ar=pa.exports;const wu=vu(Ar);var yu={exports:{}};(function(mr,Or){(function(I){I(Ar)})(function(I){I.defineMode("css",function($,X){var me=X.inline;X.propertyKeywords||(X=I.resolveMode("text/css"));var L=$.indentUnit,_=X.tokenHooks,c=X.documentTypes||{},w=X.mediaTypes||{},x=X.mediaFeatures||{},v=X.mediaValueKeywords||{},y=X.propertyKeywords||{},D=X.nonStandardPropertyKeywords||{},B=X.fontProperties||{},Q=X.counterDescriptors||{},ae=X.colorKeywords||{},Ze=X.valueKeywords||{},We=X.allowNested,V=X.lineComment,U=X.supportsAtComponent===!0,fe=$.highlightNonStandardPropertyKeywords!==!1,se,ge;function ie(k,A){return se=A,k}function Ie(k,A){var T=k.next();if(_[T]){var pe=_[T](k,A);if(pe!==!1)return pe}if(T=="@")return k.eatWhile(/[\w\\\-]/),ie("def",k.current());if(T=="="||(T=="~"||T=="|")&&k.eat("="))return ie(null,"compare");if(T=='"'||T=="'")return A.tokenize=Mt(T),A.tokenize(k,A);if(T=="#")return k.eatWhile(/[\w\\\-]/),ie("atom","hash");if(T=="!")return k.match(/^\s*\w*/),ie("keyword","important");if(/\d/.test(T)||T=="."&&k.eat(/\d/))return k.eatWhile(/[\w.%]/),ie("number","unit");if(T==="-"){if(/[\d.]/.test(k.peek()))return k.eatWhile(/[\w.%]/),ie("number","unit");if(k.match(/^-[\w\\\-]*/))return k.eatWhile(/[\w\\\-]/),k.match(/^\s*:/,!1)?ie("variable-2","variable-definition"):ie("variable-2","variable");if(k.match(/^\w+-/))return ie("meta","meta")}else return/[,+>*\/]/.test(T)?ie(null,"select-op"):T=="."&&k.match(/^-?[_a-z][_a-z0-9-]*/i)?ie("qualifier","qualifier"):/[:;{}\[\]\(\)]/.test(T)?ie(null,T):k.match(/^[\w-.]+(?=\()/)?(/^(url(-prefix)?|domain|regexp)$/i.test(k.current())&&(A.tokenize=Ot),ie("variable callee","variable")):/[\w\\\-]/.test(T)?(k.eatWhile(/[\w\\\-]/),ie("property","word")):ie(null,null)}function Mt(k){return function(A,T){for(var pe=!1,R;(R=A.next())!=null;){if(R==k&&!pe){k==")"&&A.backUp(1);break}pe=!pe&&R=="\\"}return(R==k||!pe&&k!=")")&&(T.tokenize=null),ie("string","string")}}function Ot(k,A){return k.next(),k.match(/^\s*[\"\')]/,!1)?A.tokenize=null:A.tokenize=Mt(")"),ie(null,"(")}function yt(k,A,T){this.type=k,this.indent=A,this.prev=T}function Te(k,A,T,pe){return k.context=new yt(T,A.indentation()+(pe===!1?0:L),k.context),T}function Ue(k){return k.context.prev&&(k.context=k.context.prev),k.context.type}function de(k,A,T){return Oe[T.context.type](k,A,T)}function st(k,A,T,pe){for(var R=pe||1;R>0;R--)T.context=T.context.prev;return de(k,A,T)}function qe(k){var A=k.current().toLowerCase();Ze.hasOwnProperty(A)?ge="atom":ae.hasOwnProperty(A)?ge="keyword":ge="variable"}var Oe={};return Oe.top=function(k,A,T){if(k=="{")return Te(T,A,"block");if(k=="}"&&T.context.prev)return Ue(T);if(U&&/@component/i.test(k))return Te(T,A,"atComponentBlock");if(/^@(-moz-)?document$/i.test(k))return Te(T,A,"documentTypes");if(/^@(media|supports|(-moz-)?document|import)$/i.test(k))return Te(T,A,"atBlock");if(/^@(font-face|counter-style)/i.test(k))return T.stateArg=k,"restricted_atBlock_before";if(/^@(-(moz|ms|o|webkit)-)?keyframes$/i.test(k))return"keyframes";if(k&&k.charAt(0)=="@")return Te(T,A,"at");if(k=="hash")ge="builtin";else if(k=="word")ge="tag";else{if(k=="variable-definition")return"maybeprop";if(k=="interpolation")return Te(T,A,"interpolation");if(k==":")return"pseudo";if(We&&k=="(")return Te(T,A,"parens")}return T.context.type},Oe.block=function(k,A,T){if(k=="word"){var pe=A.current().toLowerCase();return y.hasOwnProperty(pe)?(ge="property","maybeprop"):D.hasOwnProperty(pe)?(ge=fe?"string-2":"property","maybeprop"):We?(ge=A.match(/^\s*:(?:\s|$)/,!1)?"property":"tag","block"):(ge+=" error","maybeprop")}else return k=="meta"?"block":!We&&(k=="hash"||k=="qualifier")?(ge="error","block"):Oe.top(k,A,T)},Oe.maybeprop=function(k,A,T){return k==":"?Te(T,A,"prop"):de(k,A,T)},Oe.prop=function(k,A,T){if(k==";")return Ue(T);if(k=="{"&&We)return Te(T,A,"propBlock");if(k=="}"||k=="{")return st(k,A,T);if(k=="(")return Te(T,A,"parens");if(k=="hash"&&!/^#([0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/.test(A.current()))ge+=" error";else if(k=="word")qe(A);else if(k=="interpolation")return Te(T,A,"interpolation");return"prop"},Oe.propBlock=function(k,A,T){return k=="}"?Ue(T):k=="word"?(ge="property","maybeprop"):T.context.type},Oe.parens=function(k,A,T){return k=="{"||k=="}"?st(k,A,T):k==")"?Ue(T):k=="("?Te(T,A,"parens"):k=="interpolation"?Te(T,A,"interpolation"):(k=="word"&&qe(A),"parens")},Oe.pseudo=function(k,A,T){return k=="meta"?"pseudo":k=="word"?(ge="variable-3",T.context.type):de(k,A,T)},Oe.documentTypes=function(k,A,T){return k=="word"&&c.hasOwnProperty(A.current())?(ge="tag",T.context.type):Oe.atBlock(k,A,T)},Oe.atBlock=function(k,A,T){if(k=="(")return Te(T,A,"atBlock_parens");if(k=="}"||k==";")return st(k,A,T);if(k=="{")return Ue(T)&&Te(T,A,We?"block":"top");if(k=="interpolation")return Te(T,A,"interpolation");if(k=="word"){var pe=A.current().toLowerCase();pe=="only"||pe=="not"||pe=="and"||pe=="or"?ge="keyword":w.hasOwnProperty(pe)?ge="attribute":x.hasOwnProperty(pe)?ge="property":v.hasOwnProperty(pe)?ge="keyword":y.hasOwnProperty(pe)?ge="property":D.hasOwnProperty(pe)?ge=fe?"string-2":"property":Ze.hasOwnProperty(pe)?ge="atom":ae.hasOwnProperty(pe)?ge="keyword":ge="error"}return T.context.type},Oe.atComponentBlock=function(k,A,T){return k=="}"?st(k,A,T):k=="{"?Ue(T)&&Te(T,A,We?"block":"top",!1):(k=="word"&&(ge="error"),T.context.type)},Oe.atBlock_parens=function(k,A,T){return k==")"?Ue(T):k=="{"||k=="}"?st(k,A,T,2):Oe.atBlock(k,A,T)},Oe.restricted_atBlock_before=function(k,A,T){return k=="{"?Te(T,A,"restricted_atBlock"):k=="word"&&T.stateArg=="@counter-style"?(ge="variable","restricted_atBlock_before"):de(k,A,T)},Oe.restricted_atBlock=function(k,A,T){return k=="}"?(T.stateArg=null,Ue(T)):k=="word"?(T.stateArg=="@font-face"&&!B.hasOwnProperty(A.current().toLowerCase())||T.stateArg=="@counter-style"&&!Q.hasOwnProperty(A.current().toLowerCase())?ge="error":ge="property","maybeprop"):"restricted_atBlock"},Oe.keyframes=function(k,A,T){return k=="word"?(ge="variable","keyframes"):k=="{"?Te(T,A,"top"):de(k,A,T)},Oe.at=function(k,A,T){return k==";"?Ue(T):k=="{"||k=="}"?st(k,A,T):(k=="word"?ge="tag":k=="hash"&&(ge="builtin"),"at")},Oe.interpolation=function(k,A,T){return k=="}"?Ue(T):k=="{"||k==";"?st(k,A,T):(k=="word"?ge="variable":k!="variable"&&k!="("&&k!=")"&&(ge="error"),"interpolation")},{startState:function(k){return{tokenize:null,state:me?"block":"top",stateArg:null,context:new yt(me?"block":"top",k||0,null)}},token:function(k,A){if(!A.tokenize&&k.eatSpace())return null;var T=(A.tokenize||Ie)(k,A);return T&&typeof T=="object"&&(se=T[1],T=T[0]),ge=T,se!="comment"&&(A.state=Oe[A.state](se,k,A)),ge},indent:function(k,A){var T=k.context,pe=A&&A.charAt(0),R=T.indent;return T.type=="prop"&&(pe=="}"||pe==")")&&(T=T.prev),T.prev&&(pe=="}"&&(T.type=="block"||T.type=="top"||T.type=="interpolation"||T.type=="restricted_atBlock")?(T=T.prev,R=T.indent):(pe==")"&&(T.type=="parens"||T.type=="atBlock_parens")||pe=="{"&&(T.type=="at"||T.type=="atBlock"))&&(R=Math.max(0,T.indent-L))),R},electricChars:"}",blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:V,fold:"brace"}});function Pe($){for(var X={},me=0;me<$.length;++me)X[$[me].toLowerCase()]=!0;return X}var we=["domain","regexp","url","url-prefix"],He=Pe(we),$e=["all","aural","braille","handheld","print","projection","screen","tty","tv","embossed"],Ce=Pe($e),M=["width","min-width","max-width","height","min-height","max-height","device-width","min-device-width","max-device-width","device-height","min-device-height","max-device-height","aspect-ratio","min-aspect-ratio","max-aspect-ratio","device-aspect-ratio","min-device-aspect-ratio","max-device-aspect-ratio","color","min-color","max-color","color-index","min-color-index","max-color-index","monochrome","min-monochrome","max-monochrome","resolution","min-resolution","max-resolution","scan","grid","orientation","device-pixel-ratio","min-device-pixel-ratio","max-device-pixel-ratio","pointer","any-pointer","hover","any-hover","prefers-color-scheme","dynamic-range","video-dynamic-range"],j=Pe(M),W=["landscape","portrait","none","coarse","fine","on-demand","hover","interlace","progressive","dark","light","standard","high"],ee=Pe(W),G=["align-content","align-items","align-self","alignment-adjust","alignment-baseline","all","anchor-point","animation","animation-delay","animation-direction","animation-duration","animation-fill-mode","animation-iteration-count","animation-name","animation-play-state","animation-timing-function","appearance","azimuth","backdrop-filter","backface-visibility","background","background-attachment","background-blend-mode","background-clip","background-color","background-image","background-origin","background-position","background-position-x","background-position-y","background-repeat","background-size","baseline-shift","binding","bleed","block-size","bookmark-label","bookmark-level","bookmark-state","bookmark-target","border","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-style","border-bottom-width","border-collapse","border-color","border-image","border-image-outset","border-image-repeat","border-image-slice","border-image-source","border-image-width","border-left","border-left-color","border-left-style","border-left-width","border-radius","border-right","border-right-color","border-right-style","border-right-width","border-spacing","border-style","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-style","border-top-width","border-width","bottom","box-decoration-break","box-shadow","box-sizing","break-after","break-before","break-inside","caption-side","caret-color","clear","clip","color","color-profile","column-count","column-fill","column-gap","column-rule","column-rule-color","column-rule-style","column-rule-width","column-span","column-width","columns","contain","content","counter-increment","counter-reset","crop","cue","cue-after","cue-before","cursor","direction","display","dominant-baseline","drop-initial-after-adjust","drop-initial-after-align","drop-initial-before-adjust","drop-initial-before-align","drop-initial-size","drop-initial-value","elevation","empty-cells","fit","fit-content","fit-position","flex","flex-basis","flex-direction","flex-flow","flex-grow","flex-shrink","flex-wrap","float","float-offset","flow-from","flow-into","font","font-family","font-feature-settings","font-kerning","font-language-override","font-optical-sizing","font-size","font-size-adjust","font-stretch","font-style","font-synthesis","font-variant","font-variant-alternates","font-variant-caps","font-variant-east-asian","font-variant-ligatures","font-variant-numeric","font-variant-position","font-variation-settings","font-weight","gap","grid","grid-area","grid-auto-columns","grid-auto-flow","grid-auto-rows","grid-column","grid-column-end","grid-column-gap","grid-column-start","grid-gap","grid-row","grid-row-end","grid-row-gap","grid-row-start","grid-template","grid-template-areas","grid-template-columns","grid-template-rows","hanging-punctuation","height","hyphens","icon","image-orientation","image-rendering","image-resolution","inline-box-align","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","isolation","justify-content","justify-items","justify-self","left","letter-spacing","line-break","line-height","line-height-step","line-stacking","line-stacking-ruby","line-stacking-shift","line-stacking-strategy","list-style","list-style-image","list-style-position","list-style-type","margin","margin-bottom","margin-left","margin-right","margin-top","marks","marquee-direction","marquee-loop","marquee-play-count","marquee-speed","marquee-style","mask-clip","mask-composite","mask-image","mask-mode","mask-origin","mask-position","mask-repeat","mask-size","mask-type","max-block-size","max-height","max-inline-size","max-width","min-block-size","min-height","min-inline-size","min-width","mix-blend-mode","move-to","nav-down","nav-index","nav-left","nav-right","nav-up","object-fit","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","orphans","outline","outline-color","outline-offset","outline-style","outline-width","overflow","overflow-style","overflow-wrap","overflow-x","overflow-y","padding","padding-bottom","padding-left","padding-right","padding-top","page","page-break-after","page-break-before","page-break-inside","page-policy","pause","pause-after","pause-before","perspective","perspective-origin","pitch","pitch-range","place-content","place-items","place-self","play-during","position","presentation-level","punctuation-trim","quotes","region-break-after","region-break-before","region-break-inside","region-fragment","rendering-intent","resize","rest","rest-after","rest-before","richness","right","rotate","rotation","rotation-point","row-gap","ruby-align","ruby-overhang","ruby-position","ruby-span","scale","scroll-behavior","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-align","scroll-snap-type","shape-image-threshold","shape-inside","shape-margin","shape-outside","size","speak","speak-as","speak-header","speak-numeral","speak-punctuation","speech-rate","stress","string-set","tab-size","table-layout","target","target-name","target-new","target-position","text-align","text-align-last","text-combine-upright","text-decoration","text-decoration-color","text-decoration-line","text-decoration-skip","text-decoration-skip-ink","text-decoration-style","text-emphasis","text-emphasis-color","text-emphasis-position","text-emphasis-style","text-height","text-indent","text-justify","text-orientation","text-outline","text-overflow","text-rendering","text-shadow","text-size-adjust","text-space-collapse","text-transform","text-underline-position","text-wrap","top","touch-action","transform","transform-origin","transform-style","transition","transition-delay","transition-duration","transition-property","transition-timing-function","translate","unicode-bidi","user-select","vertical-align","visibility","voice-balance","voice-duration","voice-family","voice-pitch","voice-range","voice-rate","voice-stress","voice-volume","volume","white-space","widows","width","will-change","word-break","word-spacing","word-wrap","writing-mode","z-index","clip-path","clip-rule","mask","enable-background","filter","flood-color","flood-opacity","lighting-color","stop-color","stop-opacity","pointer-events","color-interpolation","color-interpolation-filters","color-rendering","fill","fill-opacity","fill-rule","image-rendering","marker","marker-end","marker-mid","marker-start","paint-order","shape-rendering","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-rendering","baseline-shift","dominant-baseline","glyph-orientation-horizontal","glyph-orientation-vertical","text-anchor","writing-mode"],ue=Pe(G),ce=["accent-color","aspect-ratio","border-block","border-block-color","border-block-end","border-block-end-color","border-block-end-style","border-block-end-width","border-block-start","border-block-start-color","border-block-start-style","border-block-start-width","border-block-style","border-block-width","border-inline","border-inline-color","border-inline-end","border-inline-end-color","border-inline-end-style","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-style","border-inline-start-width","border-inline-style","border-inline-width","content-visibility","margin-block","margin-block-end","margin-block-start","margin-inline","margin-inline-end","margin-inline-start","overflow-anchor","overscroll-behavior","padding-block","padding-block-end","padding-block-start","padding-inline","padding-inline-end","padding-inline-start","scroll-snap-stop","scrollbar-3d-light-color","scrollbar-arrow-color","scrollbar-base-color","scrollbar-dark-shadow-color","scrollbar-face-color","scrollbar-highlight-color","scrollbar-shadow-color","scrollbar-track-color","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","shape-inside","zoom"],Ee=Pe(ce),Se=["font-display","font-family","src","unicode-range","font-variant","font-feature-settings","font-stretch","font-weight","font-style"],Ae=Pe(Se),re=["additive-symbols","fallback","negative","pad","prefix","range","speak-as","suffix","symbols","system"],J=Pe(re),te=["aliceblue","antiquewhite","aqua","aquamarine","azure","beige","bisque","black","blanchedalmond","blue","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","fuchsia","gainsboro","ghostwhite","gold","goldenrod","gray","grey","green","greenyellow","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","lime","limegreen","linen","magenta","maroon","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","navy","oldlace","olive","olivedrab","orange","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","purple","rebeccapurple","red","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","silver","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","teal","thistle","tomato","turquoise","violet","wheat","white","whitesmoke","yellow","yellowgreen"],xe=Pe(te),Be=["above","absolute","activeborder","additive","activecaption","afar","after-white-space","ahead","alias","all","all-scroll","alphabetic","alternate","always","amharic","amharic-abegede","antialiased","appworkspace","arabic-indic","armenian","asterisks","attr","auto","auto-flow","avoid","avoid-column","avoid-page","avoid-region","axis-pan","background","backwards","baseline","below","bidi-override","binary","bengali","blink","block","block-axis","blur","bold","bolder","border","border-box","both","bottom","break","break-all","break-word","brightness","bullets","button","buttonface","buttonhighlight","buttonshadow","buttontext","calc","cambodian","capitalize","caps-lock-indicator","caption","captiontext","caret","cell","center","checkbox","circle","cjk-decimal","cjk-earthly-branch","cjk-heavenly-stem","cjk-ideographic","clear","clip","close-quote","col-resize","collapse","color","color-burn","color-dodge","column","column-reverse","compact","condensed","conic-gradient","contain","content","contents","content-box","context-menu","continuous","contrast","copy","counter","counters","cover","crop","cross","crosshair","cubic-bezier","currentcolor","cursive","cyclic","darken","dashed","decimal","decimal-leading-zero","default","default-button","dense","destination-atop","destination-in","destination-out","destination-over","devanagari","difference","disc","discard","disclosure-closed","disclosure-open","document","dot-dash","dot-dot-dash","dotted","double","down","drop-shadow","e-resize","ease","ease-in","ease-in-out","ease-out","element","ellipse","ellipsis","embed","end","ethiopic","ethiopic-abegede","ethiopic-abegede-am-et","ethiopic-abegede-gez","ethiopic-abegede-ti-er","ethiopic-abegede-ti-et","ethiopic-halehame-aa-er","ethiopic-halehame-aa-et","ethiopic-halehame-am-et","ethiopic-halehame-gez","ethiopic-halehame-om-et","ethiopic-halehame-sid-et","ethiopic-halehame-so-et","ethiopic-halehame-ti-er","ethiopic-halehame-ti-et","ethiopic-halehame-tig","ethiopic-numeric","ew-resize","exclusion","expanded","extends","extra-condensed","extra-expanded","fantasy","fast","fill","fill-box","fixed","flat","flex","flex-end","flex-start","footnotes","forwards","from","geometricPrecision","georgian","grayscale","graytext","grid","groove","gujarati","gurmukhi","hand","hangul","hangul-consonant","hard-light","hebrew","help","hidden","hide","higher","highlight","highlighttext","hiragana","hiragana-iroha","horizontal","hsl","hsla","hue","hue-rotate","icon","ignore","inactiveborder","inactivecaption","inactivecaptiontext","infinite","infobackground","infotext","inherit","initial","inline","inline-axis","inline-block","inline-flex","inline-grid","inline-table","inset","inside","intrinsic","invert","italic","japanese-formal","japanese-informal","justify","kannada","katakana","katakana-iroha","keep-all","khmer","korean-hangul-formal","korean-hanja-formal","korean-hanja-informal","landscape","lao","large","larger","left","level","lighter","lighten","line-through","linear","linear-gradient","lines","list-item","listbox","listitem","local","logical","loud","lower","lower-alpha","lower-armenian","lower-greek","lower-hexadecimal","lower-latin","lower-norwegian","lower-roman","lowercase","ltr","luminosity","malayalam","manipulation","match","matrix","matrix3d","media-play-button","media-slider","media-sliderthumb","media-volume-slider","media-volume-sliderthumb","medium","menu","menulist","menulist-button","menutext","message-box","middle","min-intrinsic","mix","mongolian","monospace","move","multiple","multiple_mask_images","multiply","myanmar","n-resize","narrower","ne-resize","nesw-resize","no-close-quote","no-drop","no-open-quote","no-repeat","none","normal","not-allowed","nowrap","ns-resize","numbers","numeric","nw-resize","nwse-resize","oblique","octal","opacity","open-quote","optimizeLegibility","optimizeSpeed","oriya","oromo","outset","outside","outside-shape","overlay","overline","padding","padding-box","painted","page","paused","persian","perspective","pinch-zoom","plus-darker","plus-lighter","pointer","polygon","portrait","pre","pre-line","pre-wrap","preserve-3d","progress","push-button","radial-gradient","radio","read-only","read-write","read-write-plaintext-only","rectangle","region","relative","repeat","repeating-linear-gradient","repeating-radial-gradient","repeating-conic-gradient","repeat-x","repeat-y","reset","reverse","rgb","rgba","ridge","right","rotate","rotate3d","rotateX","rotateY","rotateZ","round","row","row-resize","row-reverse","rtl","run-in","running","s-resize","sans-serif","saturate","saturation","scale","scale3d","scaleX","scaleY","scaleZ","screen","scroll","scrollbar","scroll-position","se-resize","searchfield","searchfield-cancel-button","searchfield-decoration","searchfield-results-button","searchfield-results-decoration","self-start","self-end","semi-condensed","semi-expanded","separate","sepia","serif","show","sidama","simp-chinese-formal","simp-chinese-informal","single","skew","skewX","skewY","skip-white-space","slide","slider-horizontal","slider-vertical","sliderthumb-horizontal","sliderthumb-vertical","slow","small","small-caps","small-caption","smaller","soft-light","solid","somali","source-atop","source-in","source-out","source-over","space","space-around","space-between","space-evenly","spell-out","square","square-button","start","static","status-bar","stretch","stroke","stroke-box","sub","subpixel-antialiased","svg_masks","super","sw-resize","symbolic","symbols","system-ui","table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row","table-row-group","tamil","telugu","text","text-bottom","text-top","textarea","textfield","thai","thick","thin","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","tibetan","tigre","tigrinya-er","tigrinya-er-abegede","tigrinya-et","tigrinya-et-abegede","to","top","trad-chinese-formal","trad-chinese-informal","transform","translate","translate3d","translateX","translateY","translateZ","transparent","ultra-condensed","ultra-expanded","underline","unidirectional-pan","unset","up","upper-alpha","upper-armenian","upper-greek","upper-hexadecimal","upper-latin","upper-norwegian","upper-roman","uppercase","urdu","url","var","vertical","vertical-text","view-box","visible","visibleFill","visiblePainted","visibleStroke","visual","w-resize","wait","wave","wider","window","windowframe","windowtext","words","wrap","wrap-reverse","x-large","x-small","xor","xx-large","xx-small"],ye=Pe(Be),Le=we.concat($e).concat(M).concat(W).concat(G).concat(ce).concat(te).concat(Be);I.registerHelper("hintWords","css",Le);function Re($,X){for(var me=!1,L;(L=$.next())!=null;){if(me&&L=="/"){X.tokenize=null;break}me=L=="*"}return["comment","comment"]}I.defineMIME("text/css",{documentTypes:He,mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,fontProperties:Ae,counterDescriptors:J,colorKeywords:xe,valueKeywords:ye,tokenHooks:{"/":function($,X){return $.eat("*")?(X.tokenize=Re,Re($,X)):!1}},name:"css"}),I.defineMIME("text/x-scss",{mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,colorKeywords:xe,valueKeywords:ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($,X){return $.eat("/")?($.skipToEnd(),["comment","comment"]):$.eat("*")?(X.tokenize=Re,Re($,X)):["operator","operator"]},":":function($){return $.match(/^\s*\{/,!1)?[null,null]:!1},$:function($){return $.match(/^[\w-]+/),$.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"]},"#":function($){return $.eat("{")?[null,"interpolation"]:!1}},name:"css",helperType:"scss"}),I.defineMIME("text/x-less",{mediaTypes:Ce,mediaFeatures:j,mediaValueKeywords:ee,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,colorKeywords:xe,valueKeywords:ye,fontProperties:Ae,allowNested:!0,lineComment:"//",tokenHooks:{"/":function($,X){return $.eat("/")?($.skipToEnd(),["comment","comment"]):$.eat("*")?(X.tokenize=Re,Re($,X)):["operator","operator"]},"@":function($){return $.eat("{")?[null,"interpolation"]:$.match(/^(charset|document|font-face|import|(-(moz|ms|o|webkit)-)?keyframes|media|namespace|page|supports)\b/i,!1)?!1:($.eatWhile(/[\w\\\-]/),$.match(/^\s*:/,!1)?["variable-2","variable-definition"]:["variable-2","variable"])},"&":function(){return["atom","atom"]}},name:"css",helperType:"less"}),I.defineMIME("text/x-gss",{documentTypes:He,mediaTypes:Ce,mediaFeatures:j,propertyKeywords:ue,nonStandardPropertyKeywords:Ee,fontProperties:Ae,counterDescriptors:J,colorKeywords:xe,valueKeywords:ye,supportsAtComponent:!0,tokenHooks:{"/":function($,X){return $.eat("*")?(X.tokenize=Re,Re($,X)):!1}},name:"css",helperType:"gss"})})})();var mu=yu.exports,fa={exports:{}},ca;function bu(){return ca||(ca=1,function(mr,Or){(function(I){I(Ar)})(function(I){var Pe={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},we={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};I.defineMode("xml",function(He,$e){var Ce=He.indentUnit,M={},j=$e.htmlMode?Pe:we;for(var W in j)M[W]=j[W];for(var W in $e)M[W]=$e[W];var ee,G;function ue(c,w){function x(D){return w.tokenize=D,D(c,w)}var v=c.next();if(v=="<")return c.eat("!")?c.eat("[")?c.match("CDATA[")?x(Se("atom","]]>")):null:c.match("--")?x(Se("comment","-->")):c.match("DOCTYPE",!0,!0)?(c.eatWhile(/[\w\._\-]/),x(Ae(1))):null:c.eat("?")?(c.eatWhile(/[\w\._\-]/),w.tokenize=Se("meta","?>"),"meta"):(ee=c.eat("/")?"closeTag":"openTag",w.tokenize=ce,"tag bracket");if(v=="&"){var y;return c.eat("#")?c.eat("x")?y=c.eatWhile(/[a-fA-F\d]/)&&c.eat(";"):y=c.eatWhile(/[\d]/)&&c.eat(";"):y=c.eatWhile(/[\w\.\-:]/)&&c.eat(";"),y?"atom":"error"}else return c.eatWhile(/[^&<]/),null}ue.isInText=!0;function ce(c,w){var x=c.next();if(x==">"||x=="/"&&c.eat(">"))return w.tokenize=ue,ee=x==">"?"endTag":"selfcloseTag","tag bracket";if(x=="=")return ee="equals",null;if(x=="<"){w.tokenize=ue,w.state=Be,w.tagName=w.tagStart=null;var v=w.tokenize(c,w);return v?v+" tag error":"tag error"}else return/[\'\"]/.test(x)?(w.tokenize=Ee(x),w.stringStartCol=c.column(),w.tokenize(c,w)):(c.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ee(c){var w=function(x,v){for(;!x.eol();)if(x.next()==c){v.tokenize=ce;break}return"string"};return w.isInAttribute=!0,w}function Se(c,w){return function(x,v){for(;!x.eol();){if(x.match(w)){v.tokenize=ue;break}x.next()}return c}}function Ae(c){return function(w,x){for(var v;(v=w.next())!=null;){if(v=="<")return x.tokenize=Ae(c+1),x.tokenize(w,x);if(v==">")if(c==1){x.tokenize=ue;break}else return x.tokenize=Ae(c-1),x.tokenize(w,x)}return"meta"}}function re(c){return c&&c.toLowerCase()}function J(c,w,x){this.prev=c.context,this.tagName=w||"",this.indent=c.indented,this.startOfLine=x,(M.doNotIndent.hasOwnProperty(w)||c.context&&c.context.noIndent)&&(this.noIndent=!0)}function te(c){c.context&&(c.context=c.context.prev)}function xe(c,w){for(var x;;){if(!c.context||(x=c.context.tagName,!M.contextGrabbers.hasOwnProperty(re(x))||!M.contextGrabbers[re(x)].hasOwnProperty(re(w))))return;te(c)}}function Be(c,w,x){return c=="openTag"?(x.tagStart=w.column(),ye):c=="closeTag"?Le:Be}function ye(c,w,x){return c=="word"?(x.tagName=w.current(),G="tag",X):M.allowMissingTagName&&c=="endTag"?(G="tag bracket",X(c,w,x)):(G="error",ye)}function Le(c,w,x){if(c=="word"){var v=w.current();return x.context&&x.context.tagName!=v&&M.implicitlyClosed.hasOwnProperty(re(x.context.tagName))&&te(x),x.context&&x.context.tagName==v||M.matchClosing===!1?(G="tag",Re):(G="tag error",$)}else return M.allowMissingTagName&&c=="endTag"?(G="tag bracket",Re(c,w,x)):(G="error",$)}function Re(c,w,x){return c!="endTag"?(G="error",Re):(te(x),Be)}function $(c,w,x){return G="error",Re(c,w,x)}function X(c,w,x){if(c=="word")return G="attribute",me;if(c=="endTag"||c=="selfcloseTag"){var v=x.tagName,y=x.tagStart;return x.tagName=x.tagStart=null,c=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty(re(v))?xe(x,v):(xe(x,v),x.context=new J(x,v,y==x.indented)),Be}return G="error",X}function me(c,w,x){return c=="equals"?L:(M.allowMissing||(G="error"),X(c,w,x))}function L(c,w,x){return c=="string"?_:c=="word"&&M.allowUnquoted?(G="string",X):(G="error",X(c,w,x))}function _(c,w,x){return c=="string"?_:X(c,w,x)}return{startState:function(c){var w={tokenize:ue,state:Be,indented:c||0,tagName:null,tagStart:null,context:null};return c!=null&&(w.baseIndent=c),w},token:function(c,w){if(!w.tagName&&c.sol()&&(w.indented=c.indentation()),c.eatSpace())return null;ee=null;var x=w.tokenize(c,w);return(x||ee)&&x!="comment"&&(G=null,w.state=w.state(ee||x,c,w),G&&(x=G=="error"?x+" error":G)),x},indent:function(c,w,x){var v=c.context;if(c.tokenize.isInAttribute)return c.tagStart==c.indented?c.stringStartCol+1:c.indented+Ce;if(v&&v.noIndent)return I.Pass;if(c.tokenize!=ce&&c.tokenize!=ue)return x?x.match(/^(\s*)/)[0].length:0;if(c.tagName)return M.multilineTagIndentPastTag!==!1?c.tagStart+c.tagName.length+2:c.tagStart+Ce*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/$/,blockCommentStart:"",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(c){c.state==L&&(c.state=X)},xmlCurrentTag:function(c){return c.tagName?{name:c.tagName,close:c.type=="closeTag"}:null},xmlCurrentContext:function(c){for(var w=[],x=c.context;x;x=x.prev)w.push(x.tagName);return w.reverse()}}}),I.defineMIME("text/xml","xml"),I.defineMIME("application/xml","xml"),I.mimeModes.hasOwnProperty("text/html")||I.defineMIME("text/html",{name:"xml",htmlMode:!0})})}()),fa.exports}var da={exports:{}},ha;function va(){return ha||(ha=1,function(mr,Or){(function(I){I(Ar)})(function(I){I.defineMode("javascript",function(Pe,we){var He=Pe.indentUnit,$e=we.statementIndent,Ce=we.jsonld,M=we.json||Ce,j=we.trackScope!==!1,W=we.typescript,ee=we.wordCharacters||/[\w$\xa1-\uffff]/,G=function(){function f(et){return{type:et,style:"keyword"}}var p=f("keyword a"),g=f("keyword b"),S=f("keyword c"),oe=f("keyword d"),ke=f("operator"),Me={type:"atom",style:"atom"};return{if:f("if"),while:p,with:p,else:g,do:g,try:g,finally:g,return:oe,break:oe,continue:oe,new:f("new"),delete:S,void:S,throw:S,debugger:f("debugger"),var:f("var"),const:f("var"),let:f("var"),function:f("function"),catch:f("catch"),for:f("for"),switch:f("switch"),case:f("case"),default:f("default"),in:ke,typeof:ke,instanceof:ke,true:Me,false:Me,null:Me,undefined:Me,NaN:Me,Infinity:Me,this:f("this"),class:f("class"),super:f("atom"),yield:S,export:f("export"),import:f("import"),extends:S,await:S}}(),ue=/[+\-*&%=<>!?|~^@]/,ce=/^@(context|id|value|language|type|container|list|set|reverse|index|base|vocab|graph)"/;function Ee(f){for(var p=!1,g,S=!1;(g=f.next())!=null;){if(!p){if(g=="/"&&!S)return;g=="["?S=!0:S&&g=="]"&&(S=!1)}p=!p&&g=="\\"}}var Se,Ae;function re(f,p,g){return Se=f,Ae=g,p}function J(f,p){var g=f.next();if(g=='"'||g=="'")return p.tokenize=te(g),p.tokenize(f,p);if(g=="."&&f.match(/^\d[\d_]*(?:[eE][+\-]?[\d_]+)?/))return re("number","number");if(g=="."&&f.match(".."))return re("spread","meta");if(/[\[\]{}\(\),;\:\.]/.test(g))return re(g);if(g=="="&&f.eat(">"))return re("=>","operator");if(g=="0"&&f.match(/^(?:x[\dA-Fa-f_]+|o[0-7_]+|b[01_]+)n?/))return re("number","number");if(/\d/.test(g))return f.match(/^[\d_]*(?:n|(?:\.[\d_]*)?(?:[eE][+\-]?[\d_]+)?)?/),re("number","number");if(g=="/")return f.eat("*")?(p.tokenize=xe,xe(f,p)):f.eat("/")?(f.skipToEnd(),re("comment","comment")):Gt(f,p,1)?(Ee(f),f.match(/^\b(([gimyus])(?![gimyus]*\2))+\b/),re("regexp","string-2")):(f.eat("="),re("operator","operator",f.current()));if(g=="`")return p.tokenize=Be,Be(f,p);if(g=="#"&&f.peek()=="!")return f.skipToEnd(),re("meta","meta");if(g=="#"&&f.eatWhile(ee))return re("variable","property");if(g=="<"&&f.match("!--")||g=="-"&&f.match("->")&&!/\S/.test(f.string.slice(0,f.start)))return f.skipToEnd(),re("comment","comment");if(ue.test(g))return(g!=">"||!p.lexical||p.lexical.type!=">")&&(f.eat("=")?(g=="!"||g=="=")&&f.eat("="):/[<>*+\-|&?]/.test(g)&&(f.eat(g),g==">"&&f.eat(g))),g=="?"&&f.eat(".")?re("."):re("operator","operator",f.current());if(ee.test(g)){f.eatWhile(ee);var S=f.current();if(p.lastType!="."){if(G.propertyIsEnumerable(S)){var oe=G[S];return re(oe.type,oe.style,S)}if(S=="async"&&f.match(/^(\s|\/\*([^*]|\*(?!\/))*?\*\/)*[\[\(\w]/,!1))return re("async","keyword",S)}return re("variable","variable",S)}}function te(f){return function(p,g){var S=!1,oe;if(Ce&&p.peek()=="@"&&p.match(ce))return g.tokenize=J,re("jsonld-keyword","meta");for(;(oe=p.next())!=null&&!(oe==f&&!S);)S=!S&&oe=="\\";return S||(g.tokenize=J),re("string","string")}}function xe(f,p){for(var g=!1,S;S=f.next();){if(S=="/"&&g){p.tokenize=J;break}g=S=="*"}return re("comment","comment")}function Be(f,p){for(var g=!1,S;(S=f.next())!=null;){if(!g&&(S=="`"||S=="$"&&f.eat("{"))){p.tokenize=J;break}g=!g&&S=="\\"}return re("quasi","string-2",f.current())}var ye="([{}])";function Le(f,p){p.fatArrowAt&&(p.fatArrowAt=null);var g=f.string.indexOf("=>",f.start);if(!(g<0)){if(W){var S=/:\s*(?:\w+(?:<[^>]*>|\[\])?|\{[^}]*\})\s*$/.exec(f.string.slice(f.start,g));S&&(g=S.index)}for(var oe=0,ke=!1,Me=g-1;Me>=0;--Me){var et=f.string.charAt(Me),Dt=ye.indexOf(et);if(Dt>=0&&Dt<3){if(!oe){++Me;break}if(--oe==0){et=="("&&(ke=!0);break}}else if(Dt>=3&&Dt<6)++oe;else if(ee.test(et))ke=!0;else if(/["'\/`]/.test(et))for(;;--Me){if(Me==0)return;var le=f.string.charAt(Me-1);if(le==et&&f.string.charAt(Me-2)!="\\"){Me--;break}}else if(ke&&!oe){++Me;break}}ke&&!oe&&(p.fatArrowAt=Me)}}var Re={atom:!0,number:!0,variable:!0,string:!0,regexp:!0,this:!0,import:!0,"jsonld-keyword":!0};function $(f,p,g,S,oe,ke){this.indented=f,this.column=p,this.type=g,this.prev=oe,this.info=ke,S!=null&&(this.align=S)}function X(f,p){if(!j)return!1;for(var g=f.localVars;g;g=g.next)if(g.name==p)return!0;for(var S=f.context;S;S=S.prev)for(var g=S.vars;g;g=g.next)if(g.name==p)return!0}function me(f,p,g,S,oe){var ke=f.cc;for(L.state=f,L.stream=oe,L.marked=null,L.cc=ke,L.style=p,f.lexical.hasOwnProperty("align")||(f.lexical.align=!0);;){var Me=ke.length?ke.pop():M?ie:se;if(Me(g,S)){for(;ke.length&&ke[ke.length-1].lex;)ke.pop()();return L.marked?L.marked:g=="variable"&&X(f,S)?"variable-2":p}}}var L={state:null,column:null,marked:null,cc:null};function _(){for(var f=arguments.length-1;f>=0;f--)L.cc.push(arguments[f])}function c(){return _.apply(null,arguments),!0}function w(f,p){for(var g=p;g;g=g.next)if(g.name==f)return!0;return!1}function x(f){var p=L.state;if(L.marked="def",!!j){if(p.context){if(p.lexical.info=="var"&&p.context&&p.context.block){var g=v(f,p.context);if(g!=null){p.context=g;return}}else if(!w(f,p.localVars)){p.localVars=new B(f,p.localVars);return}}we.globalVars&&!w(f,p.globalVars)&&(p.globalVars=new B(f,p.globalVars))}}function v(f,p){if(p)if(p.block){var g=v(f,p.prev);return g?g==p.prev?p:new D(g,p.vars,!0):null}else return w(f,p.vars)?p:new D(p.prev,new B(f,p.vars),!1);else return null}function y(f){return f=="public"||f=="private"||f=="protected"||f=="abstract"||f=="readonly"}function D(f,p,g){this.prev=f,this.vars=p,this.block=g}function B(f,p){this.name=f,this.next=p}var Q=new B("this",new B("arguments",null));function ae(){L.state.context=new D(L.state.context,L.state.localVars,!1),L.state.localVars=Q}function Ze(){L.state.context=new D(L.state.context,L.state.localVars,!0),L.state.localVars=null}ae.lex=Ze.lex=!0;function We(){L.state.localVars=L.state.context.vars,L.state.context=L.state.context.prev}We.lex=!0;function V(f,p){var g=function(){var S=L.state,oe=S.indented;if(S.lexical.type=="stat")oe=S.lexical.indented;else for(var ke=S.lexical;ke&&ke.type==")"&&ke.align;ke=ke.prev)oe=ke.indented;S.lexical=new $(oe,L.stream.column(),f,null,S.lexical,p)};return g.lex=!0,g}function U(){var f=L.state;f.lexical.prev&&(f.lexical.type==")"&&(f.indented=f.lexical.indented),f.lexical=f.lexical.prev)}U.lex=!0;function fe(f){function p(g){return g==f?c():f==";"||g=="}"||g==")"||g=="]"?_():c(p)}return p}function se(f,p){return f=="var"?c(V("vardef",p),Zt,fe(";"),U):f=="keyword a"?c(V("form"),Mt,se,U):f=="keyword b"?c(V("form"),se,U):f=="keyword d"?L.stream.match(/^\s*$/,!1)?c():c(V("stat"),yt,fe(";"),U):f=="debugger"?c(fe(";")):f=="{"?c(V("}"),Ze,zt,U,We):f==";"?c():f=="if"?(L.state.lexical.info=="else"&&L.state.cc[L.state.cc.length-1]==U&&L.state.cc.pop()(),c(V("form"),Mt,se,U,zr)):f=="function"?c(Kt):f=="for"?c(V("form"),Ze,In,se,We,U):f=="class"||W&&p=="interface"?(L.marked="keyword",c(V("form",f=="class"?f:p),Wn,U)):f=="variable"?W&&p=="declare"?(L.marked="keyword",c(se)):W&&(p=="module"||p=="enum"||p=="type")&&L.stream.match(/^\s*\w/,!1)?(L.marked="keyword",p=="enum"?c(Er):p=="type"?c(Fn,fe("operator"),E,fe(";")):c(V("form"),mt,fe("{"),V("}"),zt,U,U)):W&&p=="namespace"?(L.marked="keyword",c(V("form"),ie,se,U)):W&&p=="abstract"?(L.marked="keyword",c(se)):c(V("stat"),pe):f=="switch"?c(V("form"),Mt,fe("{"),V("}","switch"),Ze,zt,U,U,We):f=="case"?c(ie,fe(":")):f=="default"?c(fe(":")):f=="catch"?c(V("form"),ae,ge,se,U,We):f=="export"?c(V("stat"),ar,U):f=="import"?c(V("stat"),Qt,U):f=="async"?c(se):p=="@"?c(ie,se):_(V("stat"),ie,fe(";"),U)}function ge(f){if(f=="(")return c(Wt,fe(")"))}function ie(f,p){return Ot(f,p,!1)}function Ie(f,p){return Ot(f,p,!0)}function Mt(f){return f!="("?_():c(V(")"),yt,fe(")"),U)}function Ot(f,p,g){if(L.state.fatArrowAt==L.stream.start){var S=g?Oe:qe;if(f=="(")return c(ae,V(")"),he(Wt,")"),U,fe("=>"),S,We);if(f=="variable")return _(ae,mt,fe("=>"),S,We)}var oe=g?Ue:Te;return Re.hasOwnProperty(f)?c(oe):f=="function"?c(Kt,oe):f=="class"||W&&p=="interface"?(L.marked="keyword",c(V("form"),lr,U)):f=="keyword c"||f=="async"?c(g?Ie:ie):f=="("?c(V(")"),yt,fe(")"),U,oe):f=="operator"||f=="spread"?c(g?Ie:ie):f=="["?c(V("]"),Vt,U,oe):f=="{"?Nt(ne,"}",null,oe):f=="quasi"?_(de,oe):f=="new"?c(k(g)):c()}function yt(f){return f.match(/[;\}\)\],]/)?_():_(ie)}function Te(f,p){return f==","?c(yt):Ue(f,p,!1)}function Ue(f,p,g){var S=g==!1?Te:Ue,oe=g==!1?ie:Ie;if(f=="=>")return c(ae,g?Oe:qe,We);if(f=="operator")return/\+\+|--/.test(p)||W&&p=="!"?c(S):W&&p=="<"&&L.stream.match(/^([^<>]|<[^<>]*>)*>\s*\(/,!1)?c(V(">"),he(E,">"),U,S):p=="?"?c(ie,fe(":"),oe):c(oe);if(f=="quasi")return _(de,S);if(f!=";"){if(f=="(")return Nt(Ie,")","call",S);if(f==".")return c(R,S);if(f=="[")return c(V("]"),yt,fe("]"),U,S);if(W&&p=="as")return L.marked="keyword",c(E,S);if(f=="regexp")return L.state.lastType=L.marked="operator",L.stream.backUp(L.stream.pos-L.stream.start-1),c(oe)}}function de(f,p){return f!="quasi"?_():p.slice(p.length-2)!="${"?c(de):c(yt,st)}function st(f){if(f=="}")return L.marked="string-2",L.state.tokenize=Be,c(de)}function qe(f){return Le(L.stream,L.state),_(f=="{"?se:ie)}function Oe(f){return Le(L.stream,L.state),_(f=="{"?se:Ie)}function k(f){return function(p){return p=="."?c(f?T:A):p=="variable"&&W?c(ft,f?Ue:Te):_(f?Ie:ie)}}function A(f,p){if(p=="target")return L.marked="keyword",c(Te)}function T(f,p){if(p=="target")return L.marked="keyword",c(Ue)}function pe(f){return f==":"?c(U,se):_(Te,fe(";"),U)}function R(f){if(f=="variable")return L.marked="property",c()}function ne(f,p){if(f=="async")return L.marked="property",c(ne);if(f=="variable"||L.style=="keyword"){if(L.marked="property",p=="get"||p=="set")return c(q);var g;return W&&L.state.fatArrowAt==L.stream.start&&(g=L.stream.match(/^\s*:\s*/,!1))&&(L.state.fatArrowAt=L.stream.pos+g[0].length),c(be)}else{if(f=="number"||f=="string")return L.marked=Ce?"property":L.style+" property",c(be);if(f=="jsonld-keyword")return c(be);if(W&&y(p))return L.marked="keyword",c(ne);if(f=="[")return c(ie,Pt,fe("]"),be);if(f=="spread")return c(Ie,be);if(p=="*")return L.marked="keyword",c(ne);if(f==":")return _(be)}}function q(f){return f!="variable"?_(be):(L.marked="property",c(Kt))}function be(f){if(f==":")return c(Ie);if(f=="(")return _(Kt)}function he(f,p,g){function S(oe,ke){if(g?g.indexOf(oe)>-1:oe==","){var Me=L.state.lexical;return Me.info=="call"&&(Me.pos=(Me.pos||0)+1),c(function(et,Dt){return et==p||Dt==p?_():_(f)},S)}return oe==p||ke==p?c():g&&g.indexOf(";")>-1?_(f):c(fe(p))}return function(oe,ke){return oe==p||ke==p?c():_(f,S)}}function Nt(f,p,g){for(var S=3;S"),E);if(f=="quasi")return _(je,pt)}function en(f){if(f=="=>")return c(E)}function ut(f){return f.match(/[\}\)\]]/)?c():f==","||f==";"?c(ut):_(_e,ut)}function _e(f,p){if(f=="variable"||L.style=="keyword")return L.marked="property",c(_e);if(p=="?"||f=="number"||f=="string")return c(_e);if(f==":")return c(E);if(f=="[")return c(fe("variable"),vi,fe("]"),_e);if(f=="(")return _(Ut,_e);if(!f.match(/[;\}\)\],]/))return c()}function je(f,p){return f!="quasi"?_():p.slice(p.length-2)!="${"?c(je):c(E,En)}function En(f){if(f=="}")return L.marked="string-2",L.state.tokenize=Be,c(je)}function ht(f,p){return f=="variable"&&L.stream.match(/^\s*[?:]/,!1)||p=="?"?c(ht):f==":"?c(E):f=="spread"?c(ht):_(E)}function pt(f,p){if(p=="<")return c(V(">"),he(E,">"),U,pt);if(p=="|"||f=="."||p=="&")return c(E);if(f=="[")return c(E,fe("]"),pt);if(p=="extends"||p=="implements")return L.marked="keyword",c(E);if(p=="?")return c(E,fe(":"),E)}function ft(f,p){if(p=="<")return c(V(">"),he(E,">"),U,pt)}function br(){return _(E,tn)}function tn(f,p){if(p=="=")return c(E)}function Zt(f,p){return p=="enum"?(L.marked="keyword",c(Er)):_(mt,Pt,It,yi)}function mt(f,p){if(W&&y(p))return L.marked="keyword",c(mt);if(f=="variable")return x(p),c();if(f=="spread")return c(mt);if(f=="[")return Nt(gi,"]");if(f=="{")return Nt(rn,"}")}function rn(f,p){return f=="variable"&&!L.stream.match(/^\s*:/,!1)?(x(p),c(It)):(f=="variable"&&(L.marked="property"),f=="spread"?c(mt):f=="}"?_():f=="["?c(ie,fe("]"),fe(":"),rn):c(fe(":"),mt,It))}function gi(){return _(mt,It)}function It(f,p){if(p=="=")return c(Ie)}function yi(f){if(f==",")return c(Zt)}function zr(f,p){if(f=="keyword b"&&p=="else")return c(V("form","else"),se,U)}function In(f,p){if(p=="await")return c(In);if(f=="(")return c(V(")"),nn,U)}function nn(f){return f=="var"?c(Zt,or):f=="variable"?c(or):_(or)}function or(f,p){return f==")"?c():f==";"?c(or):p=="in"||p=="of"?(L.marked="keyword",c(ie,or)):_(ie,or)}function Kt(f,p){if(p=="*")return L.marked="keyword",c(Kt);if(f=="variable")return x(p),c(Kt);if(f=="(")return c(ae,V(")"),he(Wt,")"),U,Et,se,We);if(W&&p=="<")return c(V(">"),he(br,">"),U,Kt)}function Ut(f,p){if(p=="*")return L.marked="keyword",c(Ut);if(f=="variable")return x(p),c(Ut);if(f=="(")return c(ae,V(")"),he(Wt,")"),U,Et,We);if(W&&p=="<")return c(V(">"),he(br,">"),U,Ut)}function Fn(f,p){if(f=="keyword"||f=="variable")return L.marked="type",c(Fn);if(p=="<")return c(V(">"),he(br,">"),U)}function Wt(f,p){return p=="@"&&c(ie,Wt),f=="spread"?c(Wt):W&&y(p)?(L.marked="keyword",c(Wt)):W&&f=="this"?c(Pt,It):_(mt,Pt,It)}function lr(f,p){return f=="variable"?Wn(f,p):Pr(f,p)}function Wn(f,p){if(f=="variable")return x(p),c(Pr)}function Pr(f,p){if(p=="<")return c(V(">"),he(br,">"),U,Pr);if(p=="extends"||p=="implements"||W&&f==",")return p=="implements"&&(L.marked="keyword"),c(W?E:ie,Pr);if(f=="{")return c(V("}"),Ct,U)}function Ct(f,p){if(f=="async"||f=="variable"&&(p=="static"||p=="get"||p=="set"||W&&y(p))&&L.stream.match(/^\s+[\w$\xa1-\uffff]/,!1))return L.marked="keyword",c(Ct);if(f=="variable"||L.style=="keyword")return L.marked="property",c(Jt,Ct);if(f=="number"||f=="string")return c(Jt,Ct);if(f=="[")return c(ie,Pt,fe("]"),Jt,Ct);if(p=="*")return L.marked="keyword",c(Ct);if(W&&f=="(")return _(Ut,Ct);if(f==";"||f==",")return c(Ct);if(f=="}")return c();if(p=="@")return c(ie,Ct)}function Jt(f,p){if(p=="!"||p=="?")return c(Jt);if(f==":")return c(E,It);if(p=="=")return c(Ie);var g=L.state.lexical.prev,S=g&&g.info=="interface";return _(S?Ut:Kt)}function ar(f,p){return p=="*"?(L.marked="keyword",c(K,fe(";"))):p=="default"?(L.marked="keyword",c(ie,fe(";"))):f=="{"?c(he(_n,"}"),K,fe(";")):_(se)}function _n(f,p){if(p=="as")return L.marked="keyword",c(fe("variable"));if(f=="variable")return _(Ie,_n)}function Qt(f){return f=="string"?c():f=="("?_(ie):f=="."?_(Te):_(sr,on,K)}function sr(f,p){return f=="{"?Nt(sr,"}"):(f=="variable"&&x(p),p=="*"&&(L.marked="keyword"),c(Xe))}function on(f){if(f==",")return c(sr,on)}function Xe(f,p){if(p=="as")return L.marked="keyword",c(sr)}function K(f,p){if(p=="from")return L.marked="keyword",c(ie)}function Vt(f){return f=="]"?c():_(he(Ie,"]"))}function Er(){return _(V("form"),mt,fe("{"),V("}"),he(Ft,"}"),U,U)}function Ft(){return _(mt,It)}function Ne(f,p){return f.lastType=="operator"||f.lastType==","||ue.test(p.charAt(0))||/[,.]/.test(p.charAt(0))}function Gt(f,p,g){return p.tokenize==J&&/^(?:operator|sof|keyword [bcd]|case|new|export|default|spread|[\[{}\(,;:]|=>)$/.test(p.lastType)||p.lastType=="quasi"&&/\{\s*$/.test(f.string.slice(0,f.pos-(g||0)))}return{startState:function(f){var p={tokenize:J,lastType:"sof",cc:[],lexical:new $((f||0)-He,0,"block",!1),localVars:we.localVars,context:we.localVars&&new D(null,null,!1),indented:f||0};return we.globalVars&&typeof we.globalVars=="object"&&(p.globalVars=we.globalVars),p},token:function(f,p){if(f.sol()&&(p.lexical.hasOwnProperty("align")||(p.lexical.align=!1),p.indented=f.indentation(),Le(f,p)),p.tokenize!=xe&&f.eatSpace())return null;var g=p.tokenize(f,p);return Se=="comment"?g:(p.lastType=Se=="operator"&&(Ae=="++"||Ae=="--")?"incdec":Se,me(p,g,Se,Ae,f))},indent:function(f,p){if(f.tokenize==xe||f.tokenize==Be)return I.Pass;if(f.tokenize!=J)return 0;var g=p&&p.charAt(0),S=f.lexical,oe;if(!/^\s*else\b/.test(p))for(var ke=f.cc.length-1;ke>=0;--ke){var Me=f.cc[ke];if(Me==U)S=S.prev;else if(Me!=zr&&Me!=We)break}for(;(S.type=="stat"||S.type=="form")&&(g=="}"||(oe=f.cc[f.cc.length-1])&&(oe==Te||oe==Ue)&&!/^[,\.=+\-*:?[\(]/.test(p));)S=S.prev;$e&&S.type==")"&&S.prev.type=="stat"&&(S=S.prev);var et=S.type,Dt=g==et;return et=="vardef"?S.indented+(f.lastType=="operator"||f.lastType==","?S.info.length+1:0):et=="form"&&g=="{"?S.indented:et=="form"?S.indented+He:et=="stat"?S.indented+(Ne(f,p)?$e||He:0):S.info=="switch"&&!Dt&&we.doubleIndentSwitch!=!1?S.indented+(/^(?:case|default)\b/.test(p)?He:2*He):S.align?S.column+(Dt?0:1):S.indented+(Dt?0:He)},electricInput:/^\s*(?:case .*?:|default:|\{|\})$/,blockCommentStart:M?null:"/*",blockCommentEnd:M?null:"*/",blockCommentContinue:M?null:" * ",lineComment:M?null:"//",fold:"brace",closeBrackets:"()[]{}''\"\"``",helperType:M?"json":"javascript",jsonldMode:Ce,jsonMode:M,expressionAllowed:Gt,skipExpression:function(f){me(f,"atom","atom","true",new I.StringStream("",2,null))}}}),I.registerHelper("wordChars","javascript",/[\w$]/),I.defineMIME("text/javascript","javascript"),I.defineMIME("text/ecmascript","javascript"),I.defineMIME("application/javascript","javascript"),I.defineMIME("application/x-javascript","javascript"),I.defineMIME("application/ecmascript","javascript"),I.defineMIME("application/json",{name:"javascript",json:!0}),I.defineMIME("application/x-json",{name:"javascript",json:!0}),I.defineMIME("application/manifest+json",{name:"javascript",json:!0}),I.defineMIME("application/ld+json",{name:"javascript",jsonld:!0}),I.defineMIME("text/typescript",{name:"javascript",typescript:!0}),I.defineMIME("application/typescript",{name:"javascript",typescript:!0})})}()),da.exports}(function(mr,Or){(function(I){I(Ar,bu(),va(),mu)})(function(I){var Pe={script:[["lang",/(javascript|babel)/i,"javascript"],["type",/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i,"javascript"],["type",/./,"text/plain"],[null,null,"javascript"]],style:[["lang",/^css$/i,"css"],["type",/^(text\/)?(x-)?(stylesheet|css)$/i,"css"],["type",/./,"text/plain"],[null,null,"css"]]};function we(ee,G,ue){var ce=ee.current(),Ee=ce.search(G);return Ee>-1?ee.backUp(ce.length-Ee):ce.match(/<\/?$/)&&(ee.backUp(ce.length),ee.match(G,!1)||ee.match(ce)),ue}var He={};function $e(ee){var G=He[ee];return G||(He[ee]=new RegExp("\\s+"+ee+`\\s*=\\s*('|")?([^'"]+)('|")?\\s*`))}function Ce(ee,G){var ue=ee.match($e(G));return ue?/^\s*(.*?)\s*$/.exec(ue[2])[1]:""}function M(ee,G){return new RegExp((G?"^":"")+"","i")}function j(ee,G){for(var ue in ee)for(var ce=G[ue]||(G[ue]=[]),Ee=ee[ue],Se=Ee.length-1;Se>=0;Se--)ce.unshift(Ee[Se])}function W(ee,G){for(var ue=0;ue=0;Ae--)ce.script.unshift(["type",Se[Ae].matches,Se[Ae].mode]);function re(J,te){var xe=ue.token(J,te.htmlState),Be=/\btag\b/.test(xe),ye;if(Be&&!/[<>\s\/]/.test(J.current())&&(ye=te.htmlState.tagName&&te.htmlState.tagName.toLowerCase())&&ce.hasOwnProperty(ye))te.inTag=ye+" ";else if(te.inTag&&Be&&/>$/.test(J.current())){var Le=/^([\S]+) (.*)/.exec(te.inTag);te.inTag=null;var Re=J.current()==">"&&W(ce[Le[1]],Le[2]),$=I.getMode(ee,Re),X=M(Le[1],!0),me=M(Le[1],!1);te.token=function(L,_){return L.match(X,!1)?(_.token=re,_.localState=_.localMode=null,null):we(L,me,_.localMode.token(L,_.localState))},te.localMode=$,te.localState=I.startState($,ue.indent(te.htmlState,"",""))}else te.inTag&&(te.inTag+=J.current(),J.eol()&&(te.inTag+=" "));return xe}return{startState:function(){var J=I.startState(ue);return{token:re,inTag:null,localMode:null,localState:null,htmlState:J}},copyState:function(J){var te;return J.localState&&(te=I.copyState(J.localMode,J.localState)),{token:J.token,inTag:J.inTag,localMode:J.localMode,localState:te,htmlState:I.copyState(ue,J.htmlState)}},token:function(J,te){return te.token(J,te)},indent:function(J,te,xe){return!J.localMode||/^\s*<\//.test(te)?ue.indent(J.htmlState,te,xe):J.localMode.indent?J.localMode.indent(J.localState,te,xe):I.Pass},innerMode:function(J){return{state:J.localState||J.htmlState,mode:J.localMode||ue}}}},"xml","javascript","css"),I.defineMIME("text/html","htmlmixed")})})();va();(function(mr,Or){(function(I){I(Ar)})(function(I){function Pe(j){return new RegExp("^(("+j.join(")|(")+"))\\b")}var we=Pe(["and","or","not","is"]),He=["as","assert","break","class","continue","def","del","elif","else","except","finally","for","from","global","if","import","lambda","pass","raise","return","try","while","with","yield","in"],$e=["abs","all","any","bin","bool","bytearray","callable","chr","classmethod","compile","complex","delattr","dict","dir","divmod","enumerate","eval","filter","float","format","frozenset","getattr","globals","hasattr","hash","help","hex","id","input","int","isinstance","issubclass","iter","len","list","locals","map","max","memoryview","min","next","object","oct","open","ord","pow","property","range","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","vars","zip","__import__","NotImplemented","Ellipsis","__debug__"];I.registerHelper("hintWords","python",He.concat($e).concat(["exec","print"]));function Ce(j){return j.scopes[j.scopes.length-1]}I.defineMode("python",function(j,W){for(var ee="error",G=W.delimiters||W.singleDelimiters||/^[\(\)\[\]\{\}@,:`=;\.\\]/,ue=[W.singleOperators,W.doubleOperators,W.doubleDelimiters,W.tripleDelimiters,W.operators||/^([-+*/%\/&|^]=?|[<>=]+|\/\/=?|\*\*=?|!=|[~!@]|\.\.\.)/],ce=0;cey?X(x):D0&&L(w,x)&&(B+=" "+ee),B}}return Le(w,x)}function Le(w,x,v){if(w.eatSpace())return null;if(!v&&w.match(/^#.*/))return"comment";if(w.match(/^[0-9\.]/,!1)){var y=!1;if(w.match(/^[\d_]*\.\d+(e[\+\-]?\d+)?/i)&&(y=!0),w.match(/^[\d_]+\.\d*/)&&(y=!0),w.match(/^\.\d+/)&&(y=!0),y)return w.eat(/J/i),"number";var D=!1;if(w.match(/^0x[0-9a-f_]+/i)&&(D=!0),w.match(/^0b[01_]+/i)&&(D=!0),w.match(/^0o[0-7_]+/i)&&(D=!0),w.match(/^[1-9][\d_]*(e[\+\-]?[\d_]+)?/)&&(w.eat(/J/i),D=!0),w.match(/^0(?![\dx])/i)&&(D=!0),D)return w.eat(/L/i),"number"}if(w.match(te)){var B=w.current().toLowerCase().indexOf("f")!==-1;return B?(x.tokenize=Re(w.current(),x.tokenize),x.tokenize(w,x)):(x.tokenize=$(w.current(),x.tokenize),x.tokenize(w,x))}for(var Q=0;Q=0;)w=w.substr(1);var v=w.length==1,y="string";function D(Q){return function(ae,Ze){var We=Le(ae,Ze,!0);return We=="punctuation"&&(ae.current()=="{"?Ze.tokenize=D(Q+1):ae.current()=="}"&&(Q>1?Ze.tokenize=D(Q-1):Ze.tokenize=B)),We}}function B(Q,ae){for(;!Q.eol();)if(Q.eatWhile(/[^'"\{\}\\]/),Q.eat("\\")){if(Q.next(),v&&Q.eol())return y}else{if(Q.match(w))return ae.tokenize=x,y;if(Q.match("{{"))return y;if(Q.match("{",!1))return ae.tokenize=D(0),Q.current()?y:ae.tokenize(Q,ae);if(Q.match("}}"))return y;if(Q.match("}"))return ee;Q.eat(/['"]/)}if(v){if(W.singleLineStringErrors)return ee;ae.tokenize=x}return y}return B.isString=!0,B}function $(w,x){for(;"rubf".indexOf(w.charAt(0).toLowerCase())>=0;)w=w.substr(1);var v=w.length==1,y="string";function D(B,Q){for(;!B.eol();)if(B.eatWhile(/[^'"\\]/),B.eat("\\")){if(B.next(),v&&B.eol())return y}else{if(B.match(w))return Q.tokenize=x,y;B.eat(/['"]/)}if(v){if(W.singleLineStringErrors)return ee;Q.tokenize=x}return y}return D.isString=!0,D}function X(w){for(;Ce(w).type!="py";)w.scopes.pop();w.scopes.push({offset:Ce(w).offset+j.indentUnit,type:"py",align:null})}function me(w,x,v){var y=w.match(/^[\s\[\{\(]*(?:#|$)/,!1)?null:w.column()+1;x.scopes.push({offset:x.indent+Ee,type:v,align:y})}function L(w,x){for(var v=w.indentation();x.scopes.length>1&&Ce(x).offset>v;){if(Ce(x).type!="py")return!0;x.scopes.pop()}return Ce(x).offset!=v}function _(w,x){w.sol()&&(x.beginningOfLine=!0,x.dedent=!1);var v=x.tokenize(w,x),y=w.current();if(x.beginningOfLine&&y=="@")return w.match(J,!1)?"meta":re?"operator":ee;if(/\S/.test(y)&&(x.beginningOfLine=!1),(v=="variable"||v=="builtin")&&x.lastToken=="meta"&&(v="meta"),(y=="pass"||y=="return")&&(x.dedent=!0),y=="lambda"&&(x.lambda=!0),y==":"&&!x.lambda&&Ce(x).type=="py"&&w.match(/^\s*(?:#|$)/,!1)&&X(x),y.length==1&&!/string|comment/.test(v)){var D="[({".indexOf(y);if(D!=-1&&me(w,x,"])}".slice(D,D+1)),D="])}".indexOf(y),D!=-1)if(Ce(x).type==y)x.indent=x.scopes.pop().offset-Ee;else return ee}return x.dedent&&w.eol()&&Ce(x).type=="py"&&x.scopes.length>1&&x.scopes.pop(),v}var c={startState:function(w){return{tokenize:ye,scopes:[{offset:w||0,type:"py",align:null}],indent:w||0,lastToken:null,lambda:!1,dedent:0}},token:function(w,x){var v=x.errorToken;v&&(x.errorToken=!1);var y=_(w,x);return y&&y!="comment"&&(x.lastToken=y=="keyword"||y=="punctuation"?w.current():y),y=="punctuation"&&(y=null),w.eol()&&x.lambda&&(x.lambda=!1),v?y+" "+ee:y},indent:function(w,x){if(w.tokenize!=ye)return w.tokenize.isString?I.Pass:0;var v=Ce(w),y=v.type==x.charAt(0)||v.type=="py"&&!w.dedent&&/^(else:|elif |except |finally:)/.test(x);return v.align!=null?v.align-(y?1:0):v.offset-(y?Ee:0)},electricInput:/^\s*([\}\]\)]|else:|elif |except |finally:)$/,closeBrackets:{triples:`'"`},lineComment:"#",fold:"indent"};return c}),I.defineMIME("text/x-python","python");var M=function(j){return j.split(" ")};I.defineMIME("text/x-cython",{name:"python",extra_keywords:M("by cdef cimport cpdef ctypedef enum except extern gil include nogil property public readonly struct union DEF IF ELIF ELSE")})})})();(function(mr,Or){(function(I){I(Ar)})(function(I){function Pe(v,y,D,B,Q,ae){this.indented=v,this.column=y,this.type=D,this.info=B,this.align=Q,this.prev=ae}function we(v,y,D,B){var Q=v.indented;return v.context&&v.context.type=="statement"&&D!="statement"&&(Q=v.context.indented),v.context=new Pe(Q,y,D,B,null,v.context)}function He(v){var y=v.context.type;return(y==")"||y=="]"||y=="}")&&(v.indented=v.context.indented),v.context=v.context.prev}function $e(v,y,D){if(y.prevToken=="variable"||y.prevToken=="type"||/\S(?:[^- ]>|[*\]])\s*$|\*$/.test(v.string.slice(0,D))||y.typeAtEndOfLine&&v.column()==v.indentation())return!0}function Ce(v){for(;;){if(!v||v.type=="top")return!0;if(v.type=="}"&&v.prev.info!="namespace")return!1;v=v.prev}}I.defineMode("clike",function(v,y){var D=v.indentUnit,B=y.statementIndentUnit||D,Q=y.dontAlignCalls,ae=y.keywords||{},Ze=y.types||{},We=y.builtin||{},V=y.blockKeywords||{},U=y.defKeywords||{},fe=y.atoms||{},se=y.hooks||{},ge=y.multiLineStrings,ie=y.indentStatements!==!1,Ie=y.indentSwitch!==!1,Mt=y.namespaceSeparator,Ot=y.isPunctuationChar||/[\[\]{}\(\),;\:\.]/,yt=y.numberStart||/[\d\.]/,Te=y.number||/^(?:0x[a-f\d]+|0b[01]+|(?:\d+\.?\d*|\.\d+)(?:e[-+]?\d+)?)(u|ll?|l|f)?/i,Ue=y.isOperatorChar||/[+\-*&%=<>!?|\/]/,de=y.isIdentifierChar||/[\w\$_\xa1-\uffff]/,st=y.isReservedIdentifier||!1,qe,Oe;function k(R,ne){var q=R.next();if(se[q]){var be=se[q](R,ne);if(be!==!1)return be}if(q=='"'||q=="'")return ne.tokenize=A(q),ne.tokenize(R,ne);if(yt.test(q)){if(R.backUp(1),R.match(Te))return"number";R.next()}if(Ot.test(q))return qe=q,null;if(q=="/"){if(R.eat("*"))return ne.tokenize=T,T(R,ne);if(R.eat("/"))return R.skipToEnd(),"comment"}if(Ue.test(q)){for(;!R.match(/^\/[\/*]/,!1)&&R.eat(Ue););return"operator"}if(R.eatWhile(de),Mt)for(;R.match(Mt);)R.eatWhile(de);var he=R.current();return j(ae,he)?(j(V,he)&&(qe="newstatement"),j(U,he)&&(Oe=!0),"keyword"):j(Ze,he)?"type":j(We,he)||st&&st(he)?(j(V,he)&&(qe="newstatement"),"builtin"):j(fe,he)?"atom":"variable"}function A(R){return function(ne,q){for(var be=!1,he,Nt=!1;(he=ne.next())!=null;){if(he==R&&!be){Nt=!0;break}be=!be&&he=="\\"}return(Nt||!(be||ge))&&(q.tokenize=null),"string"}}function T(R,ne){for(var q=!1,be;be=R.next();){if(be=="/"&&q){ne.tokenize=null;break}q=be=="*"}return"comment"}function pe(R,ne){y.typeFirstDefinitions&&R.eol()&&Ce(ne.context)&&(ne.typeAtEndOfLine=$e(R,ne,R.pos))}return{startState:function(R){return{tokenize:null,context:new Pe((R||0)-D,0,"top",null,!1),indented:0,startOfLine:!0,prevToken:null}},token:function(R,ne){var q=ne.context;if(R.sol()&&(q.align==null&&(q.align=!1),ne.indented=R.indentation(),ne.startOfLine=!0),R.eatSpace())return pe(R,ne),null;qe=Oe=null;var be=(ne.tokenize||k)(R,ne);if(be=="comment"||be=="meta")return be;if(q.align==null&&(q.align=!0),qe==";"||qe==":"||qe==","&&R.match(/^\s*(?:\/\/.*)?$/,!1))for(;ne.context.type=="statement";)He(ne);else if(qe=="{")we(ne,R.column(),"}");else if(qe=="[")we(ne,R.column(),"]");else if(qe=="(")we(ne,R.column(),")");else if(qe=="}"){for(;q.type=="statement";)q=He(ne);for(q.type=="}"&&(q=He(ne));q.type=="statement";)q=He(ne)}else qe==q.type?He(ne):ie&&((q.type=="}"||q.type=="top")&&qe!=";"||q.type=="statement"&&qe=="newstatement")&&we(ne,R.column(),"statement",R.current());if(be=="variable"&&(ne.prevToken=="def"||y.typeFirstDefinitions&&$e(R,ne,R.start)&&Ce(ne.context)&&R.match(/^\s*\(/,!1))&&(be="def"),se.token){var he=se.token(R,ne,be);he!==void 0&&(be=he)}return be=="def"&&y.styleDefs===!1&&(be="variable"),ne.startOfLine=!1,ne.prevToken=Oe?"def":be||qe,pe(R,ne),be},indent:function(R,ne){if(R.tokenize!=k&&R.tokenize!=null||R.typeAtEndOfLine)return I.Pass;var q=R.context,be=ne&&ne.charAt(0),he=be==q.type;if(q.type=="statement"&&be=="}"&&(q=q.prev),y.dontIndentStatements)for(;q.type=="statement"&&y.dontIndentStatements.test(q.info);)q=q.prev;if(se.indent){var Nt=se.indent(R,q,ne,D);if(typeof Nt=="number")return Nt}var zt=q.prev&&q.prev.info=="switch";if(y.allmanIndentation&&/[{(]/.test(be)){for(;q.type!="top"&&q.type!="}";)q=q.prev;return q.indented}return q.type=="statement"?q.indented+(be=="{"?0:B):q.align&&(!Q||q.type!=")")?q.column+(he?0:1):q.type==")"&&!he?q.indented+B:q.indented+(he?0:D)+(!he&&zt&&!/^(?:case|default)\b/.test(ne)?D:0)},electricInput:Ie?/^\s*(?:case .*?:|default:|\{\}?|\})$/:/^\s*[{}]$/,blockCommentStart:"/*",blockCommentEnd:"*/",blockCommentContinue:" * ",lineComment:"//",fold:"brace"}});function M(v){for(var y={},D=v.split(" "),B=0;B!?|\/#:@]/,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,y){return v.match('""')?(y.tokenize=L,y.tokenize(v,y)):!1},"'":function(v){return v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},"=":function(v,y){var D=y.context;return D.type=="}"&&D.align&&v.eat(">")?(y.context=new Pe(D.indented,D.column,D.type,D.info,null,D.prev),"operator"):!1},"/":function(v,y){return v.eat("*")?(y.tokenize=_(1),y.tokenize(v,y)):!1}},modeProps:{closeBrackets:{pairs:'()[]{}""',triples:'"'}}});function c(v){return function(y,D){for(var B=!1,Q,ae=!1;!y.eol();){if(!v&&!B&&y.match('"')){ae=!0;break}if(v&&y.match('"""')){ae=!0;break}Q=y.next(),!B&&Q=="$"&&y.match("{")&&y.skipTo("}"),B=!B&&Q=="\\"&&!v}return(ae||!v)&&(D.tokenize=null),"string"}}me("text/x-kotlin",{name:"clike",keywords:M("package as typealias class interface this super val operator var fun for is in This throw return annotation break continue object if else while do try when !in !is as? file import where by get set abstract enum open inner override private public internal protected catch finally out final vararg reified dynamic companion constructor init sealed field property receiver param sparam lateinit data inline noinline tailrec external annotation crossinline const operator infix suspend actual expect setparam value"),types:M("Boolean Byte Character CharSequence Class ClassLoader Cloneable Comparable Compiler Double Exception Float Integer Long Math Number Object Package Pair Process Runtime Runnable SecurityManager Short StackTraceElement StrictMath String StringBuffer System Thread ThreadGroup ThreadLocal Throwable Triple Void Annotation Any BooleanArray ByteArray Char CharArray DeprecationLevel DoubleArray Enum FloatArray Function Int IntArray Lazy LazyThreadSafetyMode LongArray Nothing ShortArray Unit"),intendSwitch:!1,indentStatements:!1,multiLineStrings:!0,number:/^(?:0x[a-f\d_]+|0b[01_]+|(?:[\d_]+(\.\d+)?|\.\d+)(?:e[-+]?[\d_]+)?)(u|ll?|l|f)?/i,blockKeywords:M("catch class do else finally for if where try while enum"),defKeywords:M("class val var object interface fun"),atoms:M("true false null this"),hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},"*":function(v,y){return y.prevToken=="."?"variable":"operator"},'"':function(v,y){return y.tokenize=c(v.match('""')),y.tokenize(v,y)},"/":function(v,y){return v.eat("*")?(y.tokenize=_(1),y.tokenize(v,y)):!1},indent:function(v,y,D,B){var Q=D&&D.charAt(0);if((v.prevToken=="}"||v.prevToken==")")&&D=="")return v.indented;if(v.prevToken=="operator"&&D!="}"&&v.context.type!="}"||v.prevToken=="variable"&&Q=="."||(v.prevToken=="}"||v.prevToken==")")&&Q==".")return B*2+y.indented;if(y.align&&y.type=="}")return y.indented+(v.context.type==(D||"").charAt(0)?0:B)}},modeProps:{closeBrackets:{triples:'"'}}}),me(["x-shader/x-vertex","x-shader/x-fragment"],{name:"clike",keywords:M("sampler1D sampler2D sampler3D samplerCube sampler1DShadow sampler2DShadow const attribute uniform varying break continue discard return for while do if else struct in out inout"),types:M("float int bool void vec2 vec3 vec4 ivec2 ivec3 ivec4 bvec2 bvec3 bvec4 mat2 mat3 mat4"),blockKeywords:M("for while do if else struct"),builtin:M("radians degrees sin cos tan asin acos atan pow exp log exp2 sqrt inversesqrt abs sign floor ceil fract mod min max clamp mix step smoothstep length distance dot cross normalize ftransform faceforward reflect refract matrixCompMult lessThan lessThanEqual greaterThan greaterThanEqual equal notEqual any all not texture1D texture1DProj texture1DLod texture1DProjLod texture2D texture2DProj texture2DLod texture2DProjLod texture3D texture3DProj texture3DLod texture3DProjLod textureCube textureCubeLod shadow1D shadow2D shadow1DProj shadow2DProj shadow1DLod shadow2DLod shadow1DProjLod shadow2DProjLod dFdx dFdy fwidth noise1 noise2 noise3 noise4"),atoms:M("true false gl_FragColor gl_SecondaryColor gl_Normal gl_Vertex gl_MultiTexCoord0 gl_MultiTexCoord1 gl_MultiTexCoord2 gl_MultiTexCoord3 gl_MultiTexCoord4 gl_MultiTexCoord5 gl_MultiTexCoord6 gl_MultiTexCoord7 gl_FogCoord gl_PointCoord gl_Position gl_PointSize gl_ClipVertex gl_FrontColor gl_BackColor gl_FrontSecondaryColor gl_BackSecondaryColor gl_TexCoord gl_FogFragCoord gl_FragCoord gl_FrontFacing gl_FragData gl_FragDepth gl_ModelViewMatrix gl_ProjectionMatrix gl_ModelViewProjectionMatrix gl_TextureMatrix gl_NormalMatrix gl_ModelViewMatrixInverse gl_ProjectionMatrixInverse gl_ModelViewProjectionMatrixInverse gl_TextureMatrixTranspose gl_ModelViewMatrixInverseTranspose gl_ProjectionMatrixInverseTranspose gl_ModelViewProjectionMatrixInverseTranspose gl_TextureMatrixInverseTranspose gl_NormalScale gl_DepthRange gl_ClipPlane gl_Point gl_FrontMaterial gl_BackMaterial gl_LightSource gl_LightModel gl_FrontLightModelProduct gl_BackLightModelProduct gl_TextureColor gl_EyePlaneS gl_EyePlaneT gl_EyePlaneR gl_EyePlaneQ gl_FogParameters gl_MaxLights gl_MaxClipPlanes gl_MaxTextureUnits gl_MaxTextureCoords gl_MaxVertexAttribs gl_MaxVertexUniformComponents gl_MaxVaryingFloats gl_MaxVertexTextureImageUnits gl_MaxTextureImageUnits gl_MaxFragmentUniformComponents gl_MaxCombineTextureImageUnits gl_MaxDrawBuffers"),indentSwitch:!1,hooks:{"#":te},modeProps:{fold:["brace","include"]}}),me("text/x-nesc",{name:"clike",keywords:M(W+" as atomic async call command component components configuration event generic implementation includes interface module new norace nx_struct nx_union post provides signal task uses abstract extends"),types:Se,blockKeywords:M(re),atoms:M("null true false"),hooks:{"#":te},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec",{name:"clike",keywords:M(W+" "+G),types:Ae,builtin:M(ue),blockKeywords:M(re+" @synthesize @try @catch @finally @autoreleasepool @synchronized"),defKeywords:M(J+" @interface @implementation @protocol @class"),dontIndentStatements:/^@.*$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Be,hooks:{"#":te,"*":xe},modeProps:{fold:["brace","include"]}}),me("text/x-objectivec++",{name:"clike",keywords:M(W+" "+G+" "+ee),types:Ae,builtin:M(ue),blockKeywords:M(re+" @synthesize @try @catch @finally @autoreleasepool @synchronized class try catch"),defKeywords:M(J+" @interface @implementation @protocol @class class namespace"),dontIndentStatements:/^@.*$|^template$/,typeFirstDefinitions:!0,atoms:M("YES NO NULL Nil nil true false nullptr"),isReservedIdentifier:Be,hooks:{"#":te,"*":xe,u:Le,U:Le,L:Le,R:Le,0:ye,1:ye,2:ye,3:ye,4:ye,5:ye,6:ye,7:ye,8:ye,9:ye,token:function(v,y,D){if(D=="variable"&&v.peek()=="("&&(y.prevToken==";"||y.prevToken==null||y.prevToken=="}")&&Re(v.current()))return"def"}},namespaceSeparator:"::",modeProps:{fold:["brace","include"]}}),me("text/x-squirrel",{name:"clike",keywords:M("base break clone continue const default delete enum extends function in class foreach local resume return this throw typeof yield constructor instanceof static"),types:Se,blockKeywords:M("case catch class else for foreach if switch try while"),defKeywords:M("function local class"),typeFirstDefinitions:!0,atoms:M("true false null"),hooks:{"#":te},modeProps:{fold:["brace","include"]}});var w=null;function x(v){return function(y,D){for(var B=!1,Q,ae=!1;!y.eol();){if(!B&&y.match('"')&&(v=="single"||y.match('""'))){ae=!0;break}if(!B&&y.match("``")){w=x(v),ae=!0;break}Q=y.next(),B=v=="single"&&!B&&Q=="\\"}return ae&&(D.tokenize=null),"string"}}me("text/x-ceylon",{name:"clike",keywords:M("abstracts alias assembly assert assign break case catch class continue dynamic else exists extends finally for function given if import in interface is let module new nonempty object of out outer package return satisfies super switch then this throw try value void while"),types:function(v){var y=v.charAt(0);return y===y.toUpperCase()&&y!==y.toLowerCase()},blockKeywords:M("case catch class dynamic else finally for function if interface module new object switch try while"),defKeywords:M("class dynamic function interface module object package value"),builtin:M("abstract actual aliased annotation by default deprecated doc final formal late license native optional sealed see serializable shared suppressWarnings tagged throws variable"),isPunctuationChar:/[\[\]{}\(\),;\:\.`]/,isOperatorChar:/[+\-*&%=<>!?|^~:\/]/,numberStart:/[\d#$]/,number:/^(?:#[\da-fA-F_]+|\$[01_]+|[\d_]+[kMGTPmunpf]?|[\d_]+\.[\d_]+(?:[eE][-+]?\d+|[kMGTPmunpf]|)|)/i,multiLineStrings:!0,typeFirstDefinitions:!0,atoms:M("true false null larger smaller equal empty finished"),indentSwitch:!1,styleDefs:!1,hooks:{"@":function(v){return v.eatWhile(/[\w\$_]/),"meta"},'"':function(v,y){return y.tokenize=x(v.match('""')?"triple":"single"),y.tokenize(v,y)},"`":function(v,y){return!w||!v.match("`")?!1:(y.tokenize=w,w=null,y.tokenize(v,y))},"'":function(v){return v.eatWhile(/[\w\$_\xa1-\uffff]/),"atom"},token:function(v,y,D){if((D=="variable"||D=="type")&&y.prevToken==".")return"variable-2"}},modeProps:{fold:["brace","import"],closeBrackets:{triples:'"'}}})})})();export{wu as default}; diff --git a/playwright-report/trace/assets/wsPort-0625ac95.js b/playwright-report/trace/assets/wsPort-0625ac95.js deleted file mode 100644 index d24778c97..000000000 --- a/playwright-report/trace/assets/wsPort-0625ac95.js +++ /dev/null @@ -1,90 +0,0 @@ -var fp=Object.defineProperty;var dp=(e,t,n)=>t in e?fp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var le=(e,t,n)=>(dp(e,typeof t!="symbol"?t+"":t,n),n);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const s of i)if(s.type==="childList")for(const o of s.addedNodes)o.tagName==="LINK"&&o.rel==="modulepreload"&&r(o)}).observe(document,{childList:!0,subtree:!0});function n(i){const s={};return i.integrity&&(s.integrity=i.integrity),i.referrerPolicy&&(s.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?s.credentials="include":i.crossOrigin==="anonymous"?s.credentials="omit":s.credentials="same-origin",s}function r(i){if(i.ep)return;i.ep=!0;const s=n(i);fetch(i.href,s)}})();var nw=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function hp(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Sc={exports:{}},Ts={},Ec={exports:{}},D={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var ei=Symbol.for("react.element"),pp=Symbol.for("react.portal"),mp=Symbol.for("react.fragment"),gp=Symbol.for("react.strict_mode"),vp=Symbol.for("react.profiler"),yp=Symbol.for("react.provider"),wp=Symbol.for("react.context"),Sp=Symbol.for("react.forward_ref"),Ep=Symbol.for("react.suspense"),xp=Symbol.for("react.memo"),kp=Symbol.for("react.lazy"),Pa=Symbol.iterator;function _p(e){return e===null||typeof e!="object"?null:(e=Pa&&e[Pa]||e["@@iterator"],typeof e=="function"?e:null)}var xc={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},kc=Object.assign,_c={};function Kn(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||xc}Kn.prototype.isReactComponent={};Kn.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")};Kn.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Tc(){}Tc.prototype=Kn.prototype;function Al(e,t,n){this.props=e,this.context=t,this.refs=_c,this.updater=n||xc}var Ll=Al.prototype=new Tc;Ll.constructor=Al;kc(Ll,Kn.prototype);Ll.isPureReactComponent=!0;var Ra=Array.isArray,Nc=Object.prototype.hasOwnProperty,bl={current:null},Cc={key:!0,ref:!0,__self:!0,__source:!0};function Ac(e,t,n){var r,i={},s=null,o=null;if(t!=null)for(r in t.ref!==void 0&&(o=t.ref),t.key!==void 0&&(s=""+t.key),t)Nc.call(t,r)&&!Cc.hasOwnProperty(r)&&(i[r]=t[r]);var l=arguments.length-2;if(l===1)i.children=n;else if(1{let o=!1;return r!==void 0&&s(r),e().then(l=>{o||s(l)}),()=>{o=!0}},t),i}function ti(){const e=rn.useRef(null),[t,n]=rn.useState(new DOMRect(0,0,10,10));return rn.useLayoutEffect(()=>{const r=e.current;if(!r)return;const i=new ResizeObserver(s=>{const o=s[s.length-1];o&&o.contentRect&&n(o.contentRect)});return i.observe(r),()=>i.disconnect()},[e]),[t,e]}function Bt(e){if(!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0)+"ms";const t=e/1e3;if(t<60)return t.toFixed(1)+"s";const n=t/60;if(n<60)return n.toFixed(1)+"m";const r=n/60;return r<24?r.toFixed(1)+"h":(r/24).toFixed(1)+"d"}function Op(e){if(e<0||!isFinite(e))return"-";if(e===0)return"0";if(e<1e3)return e.toFixed(0);const t=e/1024;if(t<1e3)return t.toFixed(1)+"K";const n=t/1024;return n<1e3?n.toFixed(1)+"M":(n/1024).toFixed(1)+"G"}function bc(e,t,n,r,i){let s=r||0,o=i!==void 0?i:e.length;for(;s>1;n(t,e[l])>=0?s=l+1:o=l}return o}function zp(e){const t=document.createElement("textarea");t.style.position="absolute",t.style.zIndex="-1000",t.value=e,document.body.appendChild(t),t.select(),document.execCommand("copy"),t.remove()}function Gi(e,t){const n=e?Mr.getObject(e,t):t,[r,i]=rn.useState(n);return[r,o=>{e&&Mr.setObject(e,o),i(o)}]}class Dp{getString(t,n){return localStorage[t]||n}setString(t,n){localStorage[t]=n,window.saveSettings&&window.saveSettings()}getObject(t,n){if(!localStorage[t])return n;try{return JSON.parse(localStorage[t])}catch{return n}}setObject(t,n){localStorage[t]=JSON.stringify(n),window.saveSettings&&window.saveSettings()}}const Mr=new Dp;function rw(){if(document.playwrightThemeInitialized)return;document.playwrightThemeInitialized=!0,document.defaultView.addEventListener("focus",n=>{n.target.document.nodeType===Node.DOCUMENT_NODE&&document.body.classList.remove("inactive")},!1),document.defaultView.addEventListener("blur",n=>{document.body.classList.add("inactive")},!1);const e=Mr.getString("theme","light-mode"),t=window.matchMedia("(prefers-color-scheme: dark)");(e==="dark-mode"||t.matches)&&document.body.classList.add("dark-mode")}const Rl=new Set;function iw(){const e=Mr.getString("theme","light-mode");let t;e==="dark-mode"?t="light-mode":t="dark-mode",e&&document.body.classList.remove(e),document.body.classList.add(t),Mr.setString("theme",t);for(const n of Rl)n(t)}function sw(e){Rl.add(e)}function ow(e){Rl.delete(e)}function lw(){return document.body.classList.contains("dark-mode")?"dark-mode":"light-mode"}var Ic={exports:{}},je={},Pc={exports:{}},Rc={};/** - * @license React - * scheduler.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */(function(e){function t(R,$){var z=R.length;R.push($);e:for(;0>>1,ee=R[Q];if(0>>1;Qi(rr,z))mti(wn,rr)?(R[Q]=wn,R[mt]=z,Q=mt):(R[Q]=rr,R[Je]=z,Q=Je);else if(mti(wn,z))R[Q]=wn,R[mt]=z,Q=mt;else break e}}return $}function i(R,$){var z=R.sortIndex-$.sortIndex;return z!==0?z:R.id-$.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;e.unstable_now=function(){return s.now()}}else{var o=Date,l=o.now();e.unstable_now=function(){return o.now()-l}}var a=[],u=[],c=1,p=null,f=3,y=!1,g=!1,w=!1,x=typeof setTimeout=="function"?setTimeout:null,h=typeof clearTimeout=="function"?clearTimeout:null,d=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function v(R){for(var $=n(u);$!==null;){if($.callback===null)r(u);else if($.startTime<=R)r(u),$.sortIndex=$.expirationTime,t(a,$);else break;$=n(u)}}function S(R){if(w=!1,v(R),!g)if(n(a)!==null)g=!0,_e(T);else{var $=n(u);$!==null&&Te(S,$.startTime-R)}}function T(R,$){g=!1,w&&(w=!1,h(k),k=-1),y=!0;var z=f;try{for(v($),p=n(a);p!==null&&(!(p.expirationTime>$)||R&&!O());){var Q=p.callback;if(typeof Q=="function"){p.callback=null,f=p.priorityLevel;var ee=Q(p.expirationTime<=$);$=e.unstable_now(),typeof ee=="function"?p.callback=ee:p===n(a)&&r(a),v($)}else r(a);p=n(a)}if(p!==null)var yn=!0;else{var Je=n(u);Je!==null&&Te(S,Je.startTime-$),yn=!1}return yn}finally{p=null,f=z,y=!1}}var C=!1,E=null,k=-1,N=5,I=-1;function O(){return!(e.unstable_now()-IR||125Q?(R.sortIndex=z,t(u,R),n(a)===null&&R===n(u)&&(w?(h(k),k=-1):w=!0,Te(S,z-Q))):(R.sortIndex=ee,t(a,R),g||y||(g=!0,_e(T))),R},e.unstable_shouldYield=O,e.unstable_wrapCallback=function(R){var $=f;return function(){var z=f;f=$;try{return R.apply(this,arguments)}finally{f=z}}}})(Rc);Pc.exports=Rc;var Fp=Pc.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Mc=b,Ue=Fp;function A(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),_o=Object.prototype.hasOwnProperty,Up=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,$a={},Oa={};function jp(e){return _o.call(Oa,e)?!0:_o.call($a,e)?!1:Up.test(e)?Oa[e]=!0:($a[e]=!0,!1)}function Hp(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case"function":case"symbol":return!0;case"boolean":return r?!1:n!==null?!n.acceptsBooleans:(e=e.toLowerCase().slice(0,5),e!=="data-"&&e!=="aria-");default:return!1}}function Bp(e,t,n,r){if(t===null||typeof t>"u"||Hp(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function ke(e,t,n,r,i,s,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=s,this.removeEmptyString=o}var de={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){de[e]=new ke(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];de[t]=new ke(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){de[e]=new ke(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){de[e]=new ke(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){de[e]=new ke(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){de[e]=new ke(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){de[e]=new ke(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){de[e]=new ke(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){de[e]=new ke(e,5,!1,e.toLowerCase(),null,!1,!1)});var Ml=/[\-:]([a-z])/g;function $l(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(Ml,$l);de[t]=new ke(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!1,!1)});de.xlinkHref=new ke("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){de[e]=new ke(e,1,!1,e.toLowerCase(),null,!0,!0)});function Ol(e,t,n,r){var i=de.hasOwnProperty(t)?de[t]:null;(i!==null?i.type!==0:r||!(2l||i[o]!==s[l]){var a=` -`+i[o].replace(" at new "," at ");return e.displayName&&a.includes("")&&(a=a.replace("",e.displayName)),a}while(1<=o&&0<=l);break}}}finally{Gs=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?wr(e):""}function qp(e){switch(e.tag){case 5:return wr(e.type);case 16:return wr("Lazy");case 13:return wr("Suspense");case 19:return wr("SuspenseList");case 0:case 2:case 15:return e=Ks(e.type,!1),e;case 11:return e=Ks(e.type.render,!1),e;case 1:return e=Ks(e.type,!0),e;default:return""}}function Ao(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Tn:return"Fragment";case _n:return"Portal";case To:return"Profiler";case zl:return"StrictMode";case No:return"Suspense";case Co:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case zc:return(e.displayName||"Context")+".Consumer";case Oc:return(e._context.displayName||"Context")+".Provider";case Dl:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case Fl:return t=e.displayName||null,t!==null?t:Ao(e.type)||"Memo";case bt:t=e._payload,e=e._init;try{return Ao(e(t))}catch{}}return null}function Wp(e){var t=e.type;switch(e.tag){case 24:return"Cache";case 9:return(t.displayName||"Context")+".Consumer";case 10:return(t._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return e=t.render,e=e.displayName||e.name||"",t.displayName||(e!==""?"ForwardRef("+e+")":"ForwardRef");case 7:return"Fragment";case 5:return t;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Ao(t);case 8:return t===zl?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function qt(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Fc(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Vp(e){var t=Fc(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,s=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(o){r=""+o,s.call(this,o)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(o){r=""+o},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function fi(e){e._valueTracker||(e._valueTracker=Vp(e))}function Uc(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Fc(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Ki(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}function Lo(e,t){var n=t.checked;return K({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function Da(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=qt(t.value!=null?t.value:n),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type==="checkbox"||t.type==="radio"?t.checked!=null:t.value!=null}}function jc(e,t){t=t.checked,t!=null&&Ol(e,"checked",t,!1)}function bo(e,t){jc(e,t);var n=qt(t.value),r=t.type;if(n!=null)r==="number"?(n===0&&e.value===""||e.value!=n)&&(e.value=""+n):e.value!==""+n&&(e.value=""+n);else if(r==="submit"||r==="reset"){e.removeAttribute("value");return}t.hasOwnProperty("value")?Io(e,t.type,n):t.hasOwnProperty("defaultValue")&&Io(e,t.type,qt(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function Fa(e,t,n){if(t.hasOwnProperty("value")||t.hasOwnProperty("defaultValue")){var r=t.type;if(!(r!=="submit"&&r!=="reset"||t.value!==void 0&&t.value!==null))return;t=""+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==""&&(e.name=""),e.defaultChecked=!!e._wrapperState.initialChecked,n!==""&&(e.name=n)}function Io(e,t,n){(t!=="number"||Ki(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var Sr=Array.isArray;function zn(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=di.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Or(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Tr={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Qp=["Webkit","ms","Moz","O"];Object.keys(Tr).forEach(function(e){Qp.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Tr[t]=Tr[e]})});function Wc(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||Tr.hasOwnProperty(e)&&Tr[e]?(""+t).trim():t+"px"}function Vc(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Wc(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var Xp=K({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Mo(e,t){if(t){if(Xp[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(A(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(A(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(A(61))}if(t.style!=null&&typeof t.style!="object")throw Error(A(62))}}function $o(e,t){if(e.indexOf("-")===-1)return typeof t.is=="string";switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Oo=null;function Ul(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,Dn=null,Fn=null;function Ha(e){if(e=ii(e)){if(typeof zo!="function")throw Error(A(280));var t=e.stateNode;t&&(t=bs(t),zo(e.stateNode,e.type,t))}}function Qc(e){Dn?Fn?Fn.push(e):Fn=[e]:Dn=e}function Xc(){if(Dn){var e=Dn,t=Fn;if(Fn=Dn=null,Ha(e),t)for(e=0;e>>=0,e===0?32:31-(sm(e)/om|0)|0}var hi=64,pi=4194304;function Er(e){switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function es(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,s=e.pingedLanes,o=n&268435455;if(o!==0){var l=o&~i;l!==0?r=Er(l):(s&=o,s!==0&&(r=Er(s)))}else o=n&~i,o!==0?r=Er(o):s!==0&&(r=Er(s));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,s=t&-t,i>=s||i===16&&(s&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function ni(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-it(t),e[t]=n}function cm(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0=Cr),Ja=String.fromCharCode(32),Ya=!1;function mf(e,t){switch(e){case"keyup":return Dm.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gf(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Nn=!1;function Um(e,t){switch(e){case"compositionend":return gf(t);case"keypress":return t.which!==32?null:(Ya=!0,Ja);case"textInput":return e=t.data,e===Ja&&Ya?null:e;default:return null}}function jm(e,t){if(Nn)return e==="compositionend"||!Xl&&mf(e,t)?(e=hf(),$i=Wl=$t=null,Nn=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=nu(n)}}function Sf(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Sf(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Ef(){for(var e=window,t=Ki();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Ki(e.document)}return t}function Gl(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}function Km(e){var t=Ef(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Sf(n.ownerDocument.documentElement,n)){if(r!==null&&Gl(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,s=Math.min(r.start,i);r=r.end===void 0?s:Math.min(r.end,i),!e.extend&&s>r&&(i=r,r=s,s=i),i=ru(n,s);var o=ru(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),s>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,Cn=null,Bo=null,Lr=null,qo=!1;function iu(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;qo||Cn==null||Cn!==Ki(r)||(r=Cn,"selectionStart"in r&&Gl(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Lr&&Hr(Lr,r)||(Lr=r,r=rs(Bo,"onSelect"),0bn||(e.current=Ko[bn],Ko[bn]=null,bn--)}function j(e,t){bn++,Ko[bn]=e.current,e.current=t}var Wt={},ve=Xt(Wt),Pe=Xt(!1),cn=Wt;function qn(e,t){var n=e.type.contextTypes;if(!n)return Wt;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},s;for(s in n)i[s]=t[s];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Re(e){return e=e.childContextTypes,e!=null}function ss(){q(Pe),q(ve)}function fu(e,t,n){if(ve.current!==Wt)throw Error(A(168));j(ve,t),j(Pe,n)}function bf(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(A(108,Wp(e)||"Unknown",i));return K({},n,r)}function os(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Wt,cn=ve.current,j(ve,e),j(Pe,Pe.current),!0}function du(e,t,n){var r=e.stateNode;if(!r)throw Error(A(169));n?(e=bf(e,t,cn),r.__reactInternalMemoizedMergedChildContext=e,q(Pe),q(ve),j(ve,e)):q(Pe),j(Pe,n)}var wt=null,Is=!1,co=!1;function If(e){wt===null?wt=[e]:wt.push(e)}function ag(e){Is=!0,If(e)}function Gt(){if(!co&&wt!==null){co=!0;var e=0,t=U;try{var n=wt;for(U=1;e>=o,i-=o,Et=1<<32-it(t)+i|n<k?(N=E,E=null):N=E.sibling;var I=f(h,E,v[k],S);if(I===null){E===null&&(E=N);break}e&&E&&I.alternate===null&&t(h,E),d=s(I,d,k),C===null?T=I:C.sibling=I,C=I,E=N}if(k===v.length)return n(h,E),V&&Jt(h,k),T;if(E===null){for(;kk?(N=E,E=null):N=E.sibling;var O=f(h,E,I.value,S);if(O===null){E===null&&(E=N);break}e&&E&&O.alternate===null&&t(h,E),d=s(O,d,k),C===null?T=O:C.sibling=O,C=O,E=N}if(I.done)return n(h,E),V&&Jt(h,k),T;if(E===null){for(;!I.done;k++,I=v.next())I=p(h,I.value,S),I!==null&&(d=s(I,d,k),C===null?T=I:C.sibling=I,C=I);return V&&Jt(h,k),T}for(E=r(h,E);!I.done;k++,I=v.next())I=y(E,h,k,I.value,S),I!==null&&(e&&I.alternate!==null&&E.delete(I.key===null?k:I.key),d=s(I,d,k),C===null?T=I:C.sibling=I,C=I);return e&&E.forEach(function(_){return t(h,_)}),V&&Jt(h,k),T}function x(h,d,v,S){if(typeof v=="object"&&v!==null&&v.type===Tn&&v.key===null&&(v=v.props.children),typeof v=="object"&&v!==null){switch(v.$$typeof){case ci:e:{for(var T=v.key,C=d;C!==null;){if(C.key===T){if(T=v.type,T===Tn){if(C.tag===7){n(h,C.sibling),d=i(C,v.props.children),d.return=h,h=d;break e}}else if(C.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===bt&&wu(T)===C.type){n(h,C.sibling),d=i(C,v.props),d.ref=cr(h,C,v),d.return=h,h=d;break e}n(h,C);break}else t(h,C);C=C.sibling}v.type===Tn?(d=on(v.props.children,h.mode,S,v.key),d.return=h,h=d):(S=Hi(v.type,v.key,v.props,null,h.mode,S),S.ref=cr(h,d,v),S.return=h,h=S)}return o(h);case _n:e:{for(C=v.key;d!==null;){if(d.key===C)if(d.tag===4&&d.stateNode.containerInfo===v.containerInfo&&d.stateNode.implementation===v.implementation){n(h,d.sibling),d=i(d,v.children||[]),d.return=h,h=d;break e}else{n(h,d);break}else t(h,d);d=d.sibling}d=yo(v,h.mode,S),d.return=h,h=d}return o(h);case bt:return C=v._init,x(h,d,C(v._payload),S)}if(Sr(v))return g(h,d,v,S);if(ir(v))return w(h,d,v,S);Si(h,v)}return typeof v=="string"&&v!==""||typeof v=="number"?(v=""+v,d!==null&&d.tag===6?(n(h,d.sibling),d=i(d,v),d.return=h,h=d):(n(h,d),d=vo(v,h.mode,S),d.return=h,h=d),o(h)):n(h,d)}return x}var Vn=zf(!0),Df=zf(!1),si={},dt=Xt(si),Vr=Xt(si),Qr=Xt(si);function nn(e){if(e===si)throw Error(A(174));return e}function ra(e,t){switch(j(Qr,t),j(Vr,e),j(dt,si),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ro(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ro(t,e)}q(dt),j(dt,t)}function Qn(){q(dt),q(Vr),q(Qr)}function Ff(e){nn(Qr.current);var t=nn(dt.current),n=Ro(t,e.type);t!==n&&(j(Vr,e),j(dt,n))}function ia(e){Vr.current===e&&(q(dt),q(Vr))}var X=Xt(0);function ds(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data==="$?"||n.data==="$!"))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var fo=[];function sa(){for(var e=0;en?n:4,e(!0);var r=ho.transition;ho.transition={};try{e(!1),t()}finally{U=n,ho.transition=r}}function ed(){return Ke().memoizedState}function dg(e,t,n){var r=Ht(e);n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},td(e)?nd(t,n):(rd(e,t,n),n=Ee(),e=Xe(e,r,n),e!==null&&id(e,t,r))}function hg(e,t,n){var r=Ht(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(td(e))nd(t,i);else{rd(e,t,i);var s=e.alternate;if(e.lanes===0&&(s===null||s.lanes===0)&&(s=t.lastRenderedReducer,s!==null))try{var o=t.lastRenderedState,l=s(o,n);if(i.hasEagerState=!0,i.eagerState=l,st(l,o))return}catch{}finally{}n=Ee(),e=Xe(e,r,n),e!==null&&id(e,t,r)}}function td(e){var t=e.alternate;return e===G||t!==null&&t===G}function nd(e,t){br=hs=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function rd(e,t,n){Ed(e)?(e=t.interleaved,e===null?(n.next=n,rt===null?rt=[t]:rt.push(t)):(n.next=e.next,e.next=n),t.interleaved=n):(e=t.pending,e===null?n.next=n:(n.next=e.next,e.next=n),t.pending=n)}function id(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Hl(e,n)}}var ps={readContext:Ge,useCallback:he,useContext:he,useEffect:he,useImperativeHandle:he,useInsertionEffect:he,useLayoutEffect:he,useMemo:he,useReducer:he,useRef:he,useState:he,useDebugValue:he,useDeferredValue:he,useTransition:he,useMutableSource:he,useSyncExternalStore:he,useId:he,unstable_isNewReconciler:!1},pg={readContext:Ge,useCallback:function(e,t){return ut().memoizedState=[e,t===void 0?null:t],e},useContext:Ge,useEffect:Eu,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Fi(4194308,4,Gf.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Fi(4194308,4,e,t)},useInsertionEffect:function(e,t){return Fi(4,2,e,t)},useMemo:function(e,t){var n=ut();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=ut();return t=n!==void 0?n(t):t,r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=dg.bind(null,G,e),[r.memoizedState,e]},useRef:function(e){var t=ut();return e={current:e},t.memoizedState=e},useState:Su,useDebugValue:ca,useDeferredValue:function(e){return ut().memoizedState=e},useTransition:function(){var e=Su(!1),t=e[0];return e=fg.bind(null,e[1]),ut().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=G,i=ut();if(V){if(n===void 0)throw Error(A(407));n=n()}else{if(n=t(),oe===null)throw Error(A(349));dn&30||Hf(r,t,n)}i.memoizedState=n;var s={value:n,getSnapshot:t};return i.queue=s,Eu(qf.bind(null,r,s,e),[e]),r.flags|=2048,Kr(9,Bf.bind(null,r,s,n,t),void 0,null),n},useId:function(){var e=ut(),t=oe.identifierPrefix;if(V){var n=xt,r=Et;n=(r&~(1<<32-it(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Xr++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=o.createElement(n,{is:r.is}):(e=o.createElement(n),n==="select"&&(o=e,r.multiple?o.multiple=!0:r.size&&(o.size=r.size))):e=o.createElementNS(e,n),e[ct]=t,e[Wr]=r,ld(e,t,!1,!1),t.stateNode=e;e:{switch(o=$o(n,r),n){case"dialog":B("cancel",e),B("close",e),i=r;break;case"iframe":case"object":case"embed":B("load",e),i=r;break;case"video":case"audio":for(i=0;iXn&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304)}else{if(!r)if(e=ds(o),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),fr(s,!0),s.tail===null&&s.tailMode==="hidden"&&!o.alternate&&!V)return pe(t),null}else 2*Y()-s.renderingStartTime>Xn&&n!==1073741824&&(t.flags|=128,r=!0,fr(s,!1),t.lanes=4194304);s.isBackwards?(o.sibling=t.child,t.child=o):(n=s.last,n!==null?n.sibling=o:t.child=o,s.last=o)}return s.tail!==null?(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=Y(),t.sibling=null,n=X.current,j(X,r?n&1|2:n&1),t):(pe(t),null);case 22:case 23:return ga(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ze&1073741824&&(pe(t),t.subtreeFlags&6&&(t.flags|=8192)):pe(t),null;case 24:return null;case 25:return null}throw Error(A(156,t.tag))}var wg=Ct.ReactCurrentOwner,Le=!1;function ye(e,t,n,r){t.child=e===null?Df(t,null,n,r):Vn(t,e.child,n,r)}function Tu(e,t,n,r,i){n=n.render;var s=t.ref;return jn(t,i),r=la(e,t,n,r,s,i),n=aa(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nt(e,t,i)):(V&&n&&ea(t),t.flags|=1,ye(e,t,r,i),t.child)}function Nu(e,t,n,r,i){if(e===null){var s=n.type;return typeof s=="function"&&!ya(s)&&s.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=s,cd(e,t,s,r,i)):(e=Hi(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(s=e.child,!(e.lanes&i)){var o=s.memoizedProps;if(n=n.compare,n=n!==null?n:Hr,n(o,r)&&e.ref===t.ref)return Nt(e,t,i)}return t.flags|=1,e=Vt(s,r),e.ref=t.ref,e.return=t,t.child=e}function cd(e,t,n,r,i){if(e!==null){var s=e.memoizedProps;if(Hr(s,r)&&e.ref===t.ref)if(Le=!1,t.pendingProps=r=s,(e.lanes&i)!==0)e.flags&131072&&(Le=!0);else return t.lanes=e.lanes,Nt(e,t,i)}return il(e,t,n,r,i)}function fd(e,t,n){var r=t.pendingProps,i=r.children,s=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},j($n,ze),ze|=n;else if(n&1073741824)t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=s!==null?s.baseLanes:n,j($n,ze),ze|=r;else return e=s!==null?s.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,j($n,ze),ze|=e,null;else s!==null?(r=s.baseLanes|n,t.memoizedState=null):r=n,j($n,ze),ze|=r;return ye(e,t,i,n),t.child}function dd(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function il(e,t,n,r,i){var s=Re(n)?cn:ve.current;return s=qn(t,s),jn(t,i),n=la(e,t,n,r,s,i),r=aa(),e!==null&&!Le?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,Nt(e,t,i)):(V&&r&&ea(t),t.flags|=1,ye(e,t,n,i),t.child)}function Cu(e,t,n,r,i){if(Re(n)){var s=!0;os(t)}else s=!1;if(jn(t,i),t.stateNode===null)e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),Mf(t,n,r),Zo(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,l=t.memoizedProps;o.props=l;var a=o.context,u=n.contextType;typeof u=="object"&&u!==null?u=Ge(u):(u=Re(n)?cn:ve.current,u=qn(t,u));var c=n.getDerivedStateFromProps,p=typeof c=="function"||typeof o.getSnapshotBeforeUpdate=="function";p||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==r||a!==u)&&gu(t,o,r,u),It=!1;var f=t.memoizedState;o.state=f,us(t,r,o,i),a=t.memoizedState,l!==r||f!==a||Pe.current||It?(typeof c=="function"&&(Yo(t,n,c,r),a=t.memoizedState),(l=It||mu(t,n,l,r,f,a,u))?(p||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(t.flags|=4194308)):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=a),o.props=r,o.state=a,o.context=u,r=l):(typeof o.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,Pf(e,t),l=t.memoizedProps,u=t.type===t.elementType?l:et(t.type,l),o.props=u,p=t.pendingProps,f=o.context,a=n.contextType,typeof a=="object"&&a!==null?a=Ge(a):(a=Re(n)?cn:ve.current,a=qn(t,a));var y=n.getDerivedStateFromProps;(c=typeof y=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(l!==p||f!==a)&&gu(t,o,r,a),It=!1,f=t.memoizedState,o.state=f,us(t,r,o,i);var g=t.memoizedState;l!==p||f!==g||Pe.current||It?(typeof y=="function"&&(Yo(t,n,y,r),g=t.memoizedState),(u=It||mu(t,n,u,r,f,g,a)||!1)?(c||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(r,g,a),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(r,g,a)),typeof o.componentDidUpdate=="function"&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=g),o.props=r,o.state=g,o.context=a,r=u):(typeof o.componentDidUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||l===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return sl(e,t,n,r,s,i)}function sl(e,t,n,r,i,s){dd(e,t);var o=(t.flags&128)!==0;if(!r&&!o)return i&&du(t,n,!1),Nt(e,t,s);r=t.stateNode,wg.current=t;var l=o&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Vn(t,e.child,null,s),t.child=Vn(t,null,l,s)):ye(e,t,l,s),t.memoizedState=r.state,i&&du(t,n,!0),t.child}function hd(e){var t=e.stateNode;t.pendingContext?fu(e,t.pendingContext,t.pendingContext!==t.context):t.context&&fu(e,t.context,!1),ra(e,t.containerInfo)}function Au(e,t,n,r,i){return Wn(),na(i),t.flags|=256,ye(e,t,n,r),t.child}var Ei={dehydrated:null,treeContext:null,retryLane:0};function xi(e){return{baseLanes:e,cachePool:null,transitions:null}}function Lu(e,t){return{baseLanes:e.baseLanes|t,cachePool:null,transitions:e.transitions}}function pd(e,t,n){var r=t.pendingProps,i=X.current,s=!1,o=(t.flags&128)!==0,l;if((l=o)||(l=e!==null&&e.memoizedState===null?!1:(i&2)!==0),l?(s=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),j(X,i&1),e===null)return tl(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.mode&1?e.data==="$!"?t.lanes=8:t.lanes=1073741824:t.lanes=1,null):(i=r.children,e=r.fallback,s?(r=t.mode,s=t.child,i={mode:"hidden",children:i},!(r&1)&&s!==null?(s.childLanes=0,s.pendingProps=i):s=ws(i,r,0,null),e=on(e,r,n,null),s.return=t,e.return=t,s.sibling=e,t.child=s,t.child.memoizedState=xi(n),t.memoizedState=Ei,e):ol(t,i));if(i=e.memoizedState,i!==null){if(l=i.dehydrated,l!==null){if(o)return t.flags&256?(t.flags&=-257,ki(e,t,n,Error(A(422)))):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(s=r.fallback,i=t.mode,r=ws({mode:"visible",children:r.children},i,0,null),s=on(s,i,n,null),s.flags|=2,r.return=t,s.return=t,r.sibling=s,t.child=r,t.mode&1&&Vn(t,e.child,null,n),t.child.memoizedState=xi(n),t.memoizedState=Ei,s);if(!(t.mode&1))t=ki(e,t,n,null);else if(l.data==="$!")t=ki(e,t,n,Error(A(419)));else if(r=(n&e.childLanes)!==0,Le||r){if(r=oe,r!==null){switch(n&-n){case 4:s=2;break;case 16:s=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:s=32;break;case 536870912:s=268435456;break;default:s=0}r=s&(r.suspendedLanes|n)?0:s,r!==0&&r!==i.retryLane&&(i.retryLane=r,Xe(e,r,-1))}va(),t=ki(e,t,n,Error(A(421)))}else l.data==="$?"?(t.flags|=128,t.child=e.child,t=Ig.bind(null,e),l._reactRetry=t,t=null):(n=i.treeContext,Ae=St(l.nextSibling),Fe=t,V=!0,nt=null,n!==null&&(Be[qe++]=Et,Be[qe++]=xt,Be[qe++]=fn,Et=n.id,xt=n.overflow,fn=t),t=ol(t,t.pendingProps.children),t.flags|=4096);return t}return s?(r=Iu(e,t,r.children,r.fallback,n),s=t.child,i=e.child.memoizedState,s.memoizedState=i===null?xi(n):Lu(i,n),s.childLanes=e.childLanes&~n,t.memoizedState=Ei,r):(n=bu(e,t,r.children,n),t.memoizedState=null,n)}return s?(r=Iu(e,t,r.children,r.fallback,n),s=t.child,i=e.child.memoizedState,s.memoizedState=i===null?xi(n):Lu(i,n),s.childLanes=e.childLanes&~n,t.memoizedState=Ei,r):(n=bu(e,t,r.children,n),t.memoizedState=null,n)}function ol(e,t){return t=ws({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function bu(e,t,n,r){var i=e.child;return e=i.sibling,n=Vt(i,{mode:"visible",children:n}),!(t.mode&1)&&(n.lanes=r),n.return=t,n.sibling=null,e!==null&&(r=t.deletions,r===null?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n}function Iu(e,t,n,r,i){var s=t.mode;e=e.child;var o=e.sibling,l={mode:"hidden",children:n};return!(s&1)&&t.child!==e?(n=t.child,n.childLanes=0,n.pendingProps=l,t.deletions=null):(n=Vt(e,l),n.subtreeFlags=e.subtreeFlags&14680064),o!==null?r=Vt(o,r):(r=on(r,s,i,null),r.flags|=2),r.return=t,n.return=t,n.sibling=r,t.child=n,r}function ki(e,t,n,r){return r!==null&&na(r),Vn(t,e.child,null,n),e=ol(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Pu(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Jo(e.return,t,n)}function go(e,t,n,r,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=i)}function md(e,t,n){var r=t.pendingProps,i=r.revealOrder,s=r.tail;if(ye(e,t,r.children,n),r=X.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pu(e,n,t);else if(e.tag===19)Pu(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(j(X,r),!(t.mode&1))t.memoizedState=null;else switch(i){case"forwards":for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&ds(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),go(t,!1,i,n,s);break;case"backwards":for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&ds(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}go(t,!0,n,null,s);break;case"together":go(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Nt(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),hn|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error(A(153));if(t.child!==null){for(e=t.child,n=Vt(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Vt(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Sg(e,t,n){switch(t.tag){case 3:hd(t),Wn();break;case 5:Ff(t);break;case 1:Re(t.type)&&os(t);break;case 4:ra(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;j(ls,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(j(X,X.current&1),t.flags|=128,null):n&t.child.childLanes?pd(e,t,n):(j(X,X.current&1),e=Nt(e,t,n),e!==null?e.sibling:null);j(X,X.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return md(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),j(X,X.current),r)break;return null;case 22:case 23:return t.lanes=0,fd(e,t,n)}return Nt(e,t,n)}function Eg(e,t){switch(ta(t),t.tag){case 1:return Re(t.type)&&ss(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Qn(),q(Pe),q(ve),sa(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return ia(t),null;case 13:if(q(X),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(A(340));Wn()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return q(X),null;case 4:return Qn(),null;case 10:return Yl(t.type._context),null;case 22:case 23:return ga(),null;case 24:return null;default:return null}}var _i=!1,ge=!1,xg=typeof WeakSet=="function"?WeakSet:Set,M=null;function Mn(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){J(e,t,r)}else n.current=null}function ll(e,t,n){try{n()}catch(r){J(e,t,r)}}var Ru=!1;function kg(e,t){if(Wo=ts,e=Ef(),Gl(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,s=r.focusNode;r=r.focusOffset;try{n.nodeType,s.nodeType}catch{n=null;break e}var o=0,l=-1,a=-1,u=0,c=0,p=e,f=null;t:for(;;){for(var y;p!==n||i!==0&&p.nodeType!==3||(l=o+i),p!==s||r!==0&&p.nodeType!==3||(a=o+r),p.nodeType===3&&(o+=p.nodeValue.length),(y=p.firstChild)!==null;)f=p,p=y;for(;;){if(p===e)break t;if(f===n&&++u===i&&(l=o),f===s&&++c===r&&(a=o),(y=p.nextSibling)!==null)break;p=f,f=p.parentNode}p=y}n=l===-1||a===-1?null:{start:l,end:a}}else n=null}n=n||{start:0,end:0}}else n=null;for(Vo={focusedElem:e,selectionRange:n},ts=!1,M=t;M!==null;)if(t=M,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,M=e;else for(;M!==null;){t=M;try{var g=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(g!==null){var w=g.memoizedProps,x=g.memoizedState,h=t.stateNode,d=h.getSnapshotBeforeUpdate(t.elementType===t.type?w:et(t.type,w),x);h.__reactInternalSnapshotBeforeUpdate=d}break;case 3:var v=t.stateNode.containerInfo;if(v.nodeType===1)v.textContent="";else if(v.nodeType===9){var S=v.body;S!=null&&(S.textContent="")}break;case 5:case 6:case 4:case 17:break;default:throw Error(A(163))}}catch(T){J(t,t.return,T)}if(e=t.sibling,e!==null){e.return=t.return,M=e;break}M=t.return}return g=Ru,Ru=!1,g}function Ir(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var s=i.destroy;i.destroy=void 0,s!==void 0&&ll(t,n,s)}i=i.next}while(i!==r)}}function Ms(e,t){if(t=t.updateQueue,t=t!==null?t.lastEffect:null,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function al(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t=="function"?t(e):t.current=e}}function gd(e){var t=e.alternate;t!==null&&(e.alternate=null,gd(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[ct],delete t[Wr],delete t[Go],delete t[og],delete t[lg])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function vd(e){return e.tag===5||e.tag===3||e.tag===4}function Mu(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||vd(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function ul(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=is));else if(r!==4&&(e=e.child,e!==null))for(ul(e,t,n),e=e.sibling;e!==null;)ul(e,t,n),e=e.sibling}function cl(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(cl(e,t,n),e=e.sibling;e!==null;)cl(e,t,n),e=e.sibling}var ue=null,tt=!1;function At(e,t,n){for(n=n.child;n!==null;)yd(e,t,n),n=n.sibling}function yd(e,t,n){if(ft&&typeof ft.onCommitFiberUnmount=="function")try{ft.onCommitFiberUnmount(Ns,n)}catch{}switch(n.tag){case 5:ge||Mn(n,t);case 6:var r=ue,i=tt;ue=null,At(e,t,n),ue=r,tt=i,ue!==null&&(tt?(e=ue,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):ue.removeChild(n.stateNode));break;case 18:ue!==null&&(tt?(e=ue,n=n.stateNode,e.nodeType===8?uo(e.parentNode,n):e.nodeType===1&&uo(e,n),Ur(e)):uo(ue,n.stateNode));break;case 4:r=ue,i=tt,ue=n.stateNode.containerInfo,tt=!0,At(e,t,n),ue=r,tt=i;break;case 0:case 11:case 14:case 15:if(!ge&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var s=i,o=s.destroy;s=s.tag,o!==void 0&&(s&2||s&4)&&ll(n,t,o),i=i.next}while(i!==r)}At(e,t,n);break;case 1:if(!ge&&(Mn(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(l){J(n,t,l)}At(e,t,n);break;case 21:At(e,t,n);break;case 22:n.mode&1?(ge=(r=ge)||n.memoizedState!==null,At(e,t,n),ge=r):At(e,t,n);break;default:At(e,t,n)}}function $u(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new xg),t.forEach(function(r){var i=Pg.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function Ye(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=o),r&=~s}if(r=i,r=Y()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Tg(r/1960))-r,10e?16:e,Ot===null)var r=!1;else{if(e=Ot,Ot=null,vs=0,F&6)throw Error(A(331));var i=F;for(F|=4,M=e.current;M!==null;){var s=M,o=s.child;if(M.flags&16){var l=s.deletions;if(l!==null){for(var a=0;aY()-pa?sn(e,0):ha|=n),Me(e,t)}function Cd(e,t){t===0&&(e.mode&1?(t=pi,pi<<=1,!(pi&130023424)&&(pi=4194304)):t=1);var n=Ee();e=Os(e,t),e!==null&&(ni(e,t,n),Me(e,n))}function Ig(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Cd(e,n)}function Pg(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(A(314))}r!==null&&r.delete(t),Cd(e,n)}var Ad;Ad=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||Pe.current)Le=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Le=!1,Sg(e,t,n);Le=!!(e.flags&131072)}else Le=!1,V&&t.flags&1048576&&$f(t,fs,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps;var i=qn(t,ve.current);jn(t,n),i=la(null,t,r,e,i,n);var s=aa();return t.flags|=1,typeof i=="object"&&i!==null&&typeof i.render=="function"&&i.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,Re(r)?(s=!0,os(t)):s=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,Zl(t),i.updater=Ps,t.stateNode=i,i._reactInternals=t,Zo(t,r,e,n),t=sl(null,t,r,!0,s,n)):(t.tag=0,V&&s&&ea(t),ye(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Mg(r),e=et(r,e),i){case 0:t=il(null,t,r,e,n);break e;case 1:t=Cu(null,t,r,e,n);break e;case 11:t=Tu(null,t,r,e,n);break e;case 14:t=Nu(null,t,r,et(r.type,e),n);break e}throw Error(A(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),il(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Cu(e,t,r,i,n);case 3:e:{if(hd(t),e===null)throw Error(A(387));r=t.pendingProps,s=t.memoizedState,i=s.element,Pf(e,t),us(t,r,null,n);var o=t.memoizedState;if(r=o.element,s.isDehydrated)if(s={element:r,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},t.updateQueue.baseState=s,t.memoizedState=s,t.flags&256){i=Error(A(423)),t=Au(e,t,r,n,i);break e}else if(r!==i){i=Error(A(424)),t=Au(e,t,r,n,i);break e}else for(Ae=St(t.stateNode.containerInfo.firstChild),Fe=t,V=!0,nt=null,n=Df(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Wn(),r===i){t=Nt(e,t,n);break e}ye(e,t,r,n)}t=t.child}return t;case 5:return Ff(t),e===null&&tl(t),r=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,o=i.children,Qo(r,i)?o=null:s!==null&&Qo(r,s)&&(t.flags|=32),dd(e,t),ye(e,t,o,n),t.child;case 6:return e===null&&tl(t),null;case 13:return pd(e,t,n);case 4:return ra(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vn(t,null,r,n):ye(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),Tu(e,t,r,i,n);case 7:return ye(e,t,t.pendingProps,n),t.child;case 8:return ye(e,t,t.pendingProps.children,n),t.child;case 12:return ye(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,s=t.memoizedProps,o=i.value,j(ls,r._currentValue),r._currentValue=o,s!==null)if(st(s.value,o)){if(s.children===i.children&&!Pe.current){t=Nt(e,t,n);break e}}else for(s=t.child,s!==null&&(s.return=t);s!==null;){var l=s.dependencies;if(l!==null){o=s.child;for(var a=l.firstContext;a!==null;){if(a.context===r){if(s.tag===1){a=kt(-1,n&-n),a.tag=2;var u=s.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?a.next=a:(a.next=c.next,c.next=a),u.pending=a}}s.lanes|=n,a=s.alternate,a!==null&&(a.lanes|=n),Jo(s.return,n,t),l.lanes|=n;break}a=a.next}}else if(s.tag===10)o=s.type===t.type?null:s.child;else if(s.tag===18){if(o=s.return,o===null)throw Error(A(341));o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),Jo(o,n,t),o=s.sibling}else o=s.child;if(o!==null)o.return=s;else for(o=s;o!==null;){if(o===t){o=null;break}if(s=o.sibling,s!==null){s.return=o.return,o=s;break}o=o.return}s=o}ye(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,jn(t,n),i=Ge(i),r=r(i),t.flags|=1,ye(e,t,r,n),t.child;case 14:return r=t.type,i=et(r,t.pendingProps),i=et(r.type,i),Nu(e,t,r,i,n);case 15:return cd(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:et(r,i),e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2),t.tag=1,Re(r)?(e=!0,os(t)):e=!1,jn(t,n),Mf(t,r,i),Zo(t,r,i,n),sl(null,t,r,!0,e,n);case 19:return md(e,t,n);case 22:return fd(e,t,n)}throw Error(A(156,t.tag))};function Ld(e,t){return tf(e,t)}function Rg(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ve(e,t,n,r){return new Rg(e,t,n,r)}function ya(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Mg(e){if(typeof e=="function")return ya(e)?1:0;if(e!=null){if(e=e.$$typeof,e===Dl)return 11;if(e===Fl)return 14}return 2}function Vt(e,t){var n=e.alternate;return n===null?(n=Ve(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function Hi(e,t,n,r,i,s){var o=2;if(r=e,typeof e=="function")ya(e)&&(o=1);else if(typeof e=="string")o=5;else e:switch(e){case Tn:return on(n.children,i,s,t);case zl:o=8,i|=8;break;case To:return e=Ve(12,n,t,i|2),e.elementType=To,e.lanes=s,e;case No:return e=Ve(13,n,t,i),e.elementType=No,e.lanes=s,e;case Co:return e=Ve(19,n,t,i),e.elementType=Co,e.lanes=s,e;case Dc:return ws(n,i,s,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Oc:o=10;break e;case zc:o=9;break e;case Dl:o=11;break e;case Fl:o=14;break e;case bt:o=16,r=null;break e}throw Error(A(130,e==null?e:typeof e,""))}return t=Ve(o,n,t,i),t.elementType=e,t.type=r,t.lanes=s,t}function on(e,t,n,r){return e=Ve(7,e,r,t),e.lanes=n,e}function ws(e,t,n,r){return e=Ve(22,e,r,t),e.elementType=Dc,e.lanes=n,e.stateNode={},e}function vo(e,t,n){return e=Ve(6,e,null,t),e.lanes=n,e}function yo(e,t,n){return t=Ve(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function $g(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ys(0),this.expirationTimes=Ys(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ys(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function wa(e,t,n,r,i,s,o,l,a){return e=new $g(e,t,n,l,a),t===1?(t=1,s===!0&&(t|=8)):t=0,s=Ve(3,null,null,t),e.current=s,s.stateNode=e,s.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Zl(s),e}function Og(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Rd)}catch(e){console.error(e)}}Rd(),Ic.exports=je;var aw=Ic.exports;const ln=({children:e,title:t="",icon:n,disabled:r=!1,toggled:i=!1,onClick:s=()=>{},style:o})=>{let l=`toolbar-button ${n}`;return i&&(l+=" toggled"),L("button",{className:l,onMouseDown:Bu,onClick:s,onDoubleClick:Bu,title:t,disabled:!!r,style:o,children:[n&&m("span",{className:`codicon codicon-${n}`,style:e?{marginRight:5}:{}}),e]})},Bu=e=>{e.stopPropagation(),e.preventDefault()},Bi=Symbol("context"),Md=Symbol("next"),$d=Symbol("prev"),qu=Symbol("events");class uw{constructor(t){le(this,"startTime");le(this,"endTime");le(this,"browserName");le(this,"channel");le(this,"platform");le(this,"wallTime");le(this,"title");le(this,"options");le(this,"pages");le(this,"actions");le(this,"events");le(this,"stdio");le(this,"hasSource");le(this,"sdkLanguage");le(this,"testIdAttributeName");le(this,"sources");le(this,"resources");t.forEach(r=>jg(r));const n=t.find(r=>r.isPrimary);this.browserName=(n==null?void 0:n.browserName)||"",this.sdkLanguage=n==null?void 0:n.sdkLanguage,this.channel=n==null?void 0:n.channel,this.testIdAttributeName=n==null?void 0:n.testIdAttributeName,this.platform=(n==null?void 0:n.platform)||"",this.title=(n==null?void 0:n.title)||"",this.options=(n==null?void 0:n.options)||{},this.wallTime=t.map(r=>r.wallTime).reduce((r,i)=>Math.min(r||Number.MAX_VALUE,i),Number.MAX_VALUE),this.startTime=t.map(r=>r.startTime).reduce((r,i)=>Math.min(r,i),Number.MAX_VALUE),this.endTime=t.map(r=>r.endTime).reduce((r,i)=>Math.max(r,i),Number.MIN_VALUE),this.pages=[].concat(...t.map(r=>r.pages)),this.actions=Hg(t),this.events=[].concat(...t.map(r=>r.events)),this.stdio=[].concat(...t.map(r=>r.stdio)),this.hasSource=t.some(r=>r.hasSource),this.resources=[...t.map(r=>r.resources)].flat(),this.events.sort((r,i)=>r.time-i.time),this.resources.sort((r,i)=>r._monotonicTime-i._monotonicTime),this.sources=Xg(this.actions)}failedAction(){return this.actions.findLast(t=>t.error)}}function jg(e){for(const n of e.pages)n[Bi]=e;for(let n=0;n=0;n--){const r=e.actions[n];r[Md]=t,r.apiName.includes("route.")||(t=r)}for(const n of e.events)n[Bi]=e}function Hg(e){const t=new Map;let n=0;const r=e.filter(l=>l.isPrimary),i=e.filter(l=>!l.isPrimary);for(const l of r){for(const a of l.actions)t.set(`${a.apiName}@${a.wallTime}`,{...a,context:l});!n&&l.actions.length&&(n=l.actions[0].startTime-l.actions[0].wallTime)}const s=new Map;for(const l of i)for(const a of l.actions){if(n){const p=a.endTime-a.startTime;a.startTime&&(a.startTime=a.wallTime+n),a.endTime&&(a.endTime=a.startTime+p)}const u=`${a.apiName}@${a.wallTime}`,c=t.get(u);if(c&&c.apiName===a.apiName){s.set(a.callId,c.callId),a.error&&(c.error=a.error),a.attachments&&(c.attachments=a.attachments),a.parentId&&(c.parentId=s.get(a.parentId)??a.parentId);continue}a.parentId&&(a.parentId=s.get(a.parentId)??a.parentId),t.set(u,{...a,context:l})}const o=[...t.values()];o.sort((l,a)=>a.parentId===l.callId?-1:l.parentId===a.callId?1:l.wallTime-a.wallTime||l.startTime-a.startTime);for(let l=1;lr.time>=e.startTime&&(!n||r.time{const[l,a]=Gi(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[u,c]=Gi(s?s+"."+r+":size":void 0,Math.max(i,e)*window.devicePixelRatio),[p,f]=b.useState(null),[y,g]=ti();let w;r==="vertical"?(w=u/window.devicePixelRatio,y&&y.heightf({offset:r==="vertical"?d.clientY:d.clientX,size:w}),onMouseUp:()=>f(null),onMouseMove:d=>{if(!d.buttons)f(null);else if(p){const S=(r==="vertical"?d.clientY:d.clientX)-p.offset,T=n?p.size+S:p.size-S,E=d.target.parentElement.getBoundingClientRect(),k=Math.min(Math.max(i,T),(r==="vertical"?E.height:E.width)-i);r==="vertical"?c(k*window.devicePixelRatio):a(k*window.devicePixelRatio)}}})]})};function js(e,t="'"){const n=JSON.stringify(e),r=n.substring(1,n.length-1).replace(/\\"/g,'"');if(t==="'")return t+r.replace(/[']/g,"\\'")+t;if(t==='"')return t+r.replace(/["]/g,'\\"')+t;if(t==="`")return t+r.replace(/[`]/g,"`")+t;throw new Error("Invalid escape char")}function Es(e){return e.charAt(0).toUpperCase()+e.substring(1)}function Od(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1_$2").replace(/([A-Z])([A-Z][a-z])/g,"$1_$2").toLowerCase()}function We(e){let t="";for(let n=0;n=1&&n<=31||n>=48&&n<=57&&(t===0||t===1&&e.charCodeAt(0)===45)?"\\"+n.toString(16)+" ":t===0&&n===45&&e.length===1?"\\"+e.charAt(t):n>=128||n===45||n===95||n>=48&&n<=57||n>=65&&n<=90||n>=97&&n<=122?e.charAt(t):"\\"+e.charAt(t)}function be(e){return e.replace(/\u200b/g,"").trim().replace(/\s+/g," ")}function Hs(e){return e.replace(/(^|[^\\])(\\\\)*\\(['"`])/g,"$1$2$3")}function zd(e){return e.unicode||e.unicodeSets?String(e):String(e).replace(/(^|[^\\])(\\\\)*(["'`])/g,"$1$2\\$3").replace(/>>/g,"\\>\\>")}function ht(e,t){return typeof e!="string"?zd(e):`${JSON.stringify(e)}${t?"s":"i"}`}function we(e,t){return typeof e!="string"?zd(e):`"${e.replace(/\\/g,"\\\\").replace(/["]/g,'\\"')}"${t?"s":"i"}`}const te=function(e,t,n){return e>=t&&e<=n};function Ne(e){return te(e,48,57)}function Wu(e){return Ne(e)||te(e,65,70)||te(e,97,102)}function Jg(e){return te(e,65,90)}function Yg(e){return te(e,97,122)}function Zg(e){return Jg(e)||Yg(e)}function ev(e){return e>=128}function qi(e){return Zg(e)||ev(e)||e===95}function Vu(e){return qi(e)||Ne(e)||e===45}function tv(e){return te(e,0,8)||e===11||te(e,14,31)||e===127}function Wi(e){return e===10}function gt(e){return Wi(e)||e===9||e===32}const nv=1114111;class ka extends Error{constructor(t){super(t),this.name="InvalidCharacterError"}}function rv(e){const t=[];for(let n=0;n=t.length?-1:t[_]},o=function(_){if(_===void 0&&(_=1),_>3)throw"Spec Error: no more than three codepoints of lookahead.";return s(n+_)},l=function(_){return _===void 0&&(_=1),n+=_,i=s(n),!0},a=function(){return n-=1,!0},u=function(_){return _===void 0&&(_=i),_===-1},c=function(){if(p(),l(),gt(i)){for(;gt(o());)l();return new vl}else{if(i===34)return g();if(i===35)if(Vu(o())||h(o(1),o(2))){const _=new Jd("");return v(o(1),o(2),o(3))&&(_.type="id"),_.value=E(),_}else return new me(i);else return i===36?o()===61?(l(),new uv):new me(i):i===39?g():i===40?new sv:i===41?new Qd:i===42?o()===61?(l(),new cv):new me(i):i===43?C()?(a(),f()):new me(i):i===44?new Bd:i===45?C()?(a(),f()):o(1)===45&&o(2)===62?(l(2),new Ud):S()?(a(),y()):new me(i):i===46?C()?(a(),f()):new me(i):i===58?new jd:i===59?new Hd:i===60?o(1)===33&&o(2)===45&&o(3)===45?(l(3),new Fd):new me(i):i===64?v(o(1),o(2),o(3))?new Kd(E()):new me(i):i===91?new Vd:i===92?d()?(a(),y()):new me(i):i===93?new yl:i===94?o()===61?(l(),new av):new me(i):i===123?new qd:i===124?o()===61?(l(),new lv):o()===124?(l(),new Xd):new me(i):i===125?new Wd:i===126?o()===61?(l(),new ov):new me(i):Ne(i)?(a(),f()):qi(i)?(a(),y()):u()?new Qi:new me(i)}},p=function(){for(;o(1)===47&&o(2)===42;)for(l(2);;)if(l(),i===42&&o()===47){l();break}else if(u())return},f=function(){const _=k();if(v(o(1),o(2),o(3))){const P=new fv;return P.value=_.value,P.repr=_.repr,P.type=_.type,P.unit=E(),P}else if(o()===37){l();const P=new th;return P.value=_.value,P.repr=_.repr,P}else{const P=new eh;return P.value=_.value,P.repr=_.repr,P.type=_.type,P}},y=function(){const _=E();if(_.toLowerCase()==="url"&&o()===40){for(l();gt(o(1))&>(o(2));)l();return o()===34||o()===39?new Xi(_):gt(o())&&(o(2)===34||o(2)===39)?new Xi(_):w()}else return o()===40?(l(),new Xi(_)):new Gd(_)},g=function(_){_===void 0&&(_=i);let P="";for(;l();){if(i===_||u())return new Yd(P);if(Wi(i))return a(),new Dd;i===92?u(o())||(Wi(o())?l():P+=re(x())):P+=re(i)}throw new Error("Internal error")},w=function(){const _=new Zd("");for(;gt(o());)l();if(u(o()))return _;for(;l();){if(i===41||u())return _;if(gt(i)){for(;gt(o());)l();return o()===41||u(o())?(l(),_):(I(),new Vi)}else{if(i===34||i===39||i===40||tv(i))return I(),new Vi;if(i===92)if(d())_.value+=re(x());else return I(),new Vi;else _.value+=re(i)}}throw new Error("Internal error")},x=function(){if(l(),Wu(i)){const _=[i];for(let W=0;W<5&&Wu(o());W++)l(),_.push(i);gt(o())&&l();let P=parseInt(_.map(function(W){return String.fromCharCode(W)}).join(""),16);return P>nv&&(P=65533),P}else return u()?65533:i},h=function(_,P){return!(_!==92||Wi(P))},d=function(){return h(i,o())},v=function(_,P,W){return _===45?qi(P)||P===45||h(P,W):qi(_)?!0:_===92?h(_,P):!1},S=function(){return v(i,o(1),o(2))},T=function(_,P,W){return _===43||_===45?!!(Ne(P)||P===46&&Ne(W)):_===46?!!Ne(P):!!Ne(_)},C=function(){return T(i,o(1),o(2))},E=function(){let _="";for(;l();)if(Vu(i))_+=re(i);else if(d())_+=re(x());else return a(),_;throw new Error("Internal parse error")},k=function(){let _="",P="integer";for((o()===43||o()===45)&&(l(),_+=re(i));Ne(o());)l(),_+=re(i);if(o(1)===46&&Ne(o(2)))for(l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);const W=o(1),Oe=o(2),_e=o(3);if((W===69||W===101)&&Ne(Oe))for(l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);else if((W===69||W===101)&&(Oe===43||Oe===45)&&Ne(_e))for(l(),_+=re(i),l(),_+=re(i),l(),_+=re(i),P="number";Ne(o());)l(),_+=re(i);const Te=N(_);return{type:P,value:Te,repr:_}},N=function(_){return+_},I=function(){for(;l();){if(i===41||u())return;d()&&x()}};let O=0;for(;!u(o());)if(r.push(c()),O++,O>t.length*2)throw new Error("I'm infinite-looping!");return r}class Z{constructor(){this.tokenType=""}toJSON(){return{token:this.tokenType}}toString(){return this.tokenType}toSource(){return""+this}}class Dd extends Z{constructor(){super(...arguments),this.tokenType="BADSTRING"}}class Vi extends Z{constructor(){super(...arguments),this.tokenType="BADURL"}}class vl extends Z{constructor(){super(...arguments),this.tokenType="WHITESPACE"}toString(){return"WS"}toSource(){return" "}}class Fd extends Z{constructor(){super(...arguments),this.tokenType="CDO"}toSource(){return""}}class jd extends Z{constructor(){super(...arguments),this.tokenType=":"}}class Hd extends Z{constructor(){super(...arguments),this.tokenType=";"}}class Bd extends Z{constructor(){super(...arguments),this.tokenType=","}}class Zn extends Z{constructor(){super(...arguments),this.value="",this.mirror=""}}class qd extends Zn{constructor(){super(),this.tokenType="{",this.value="{",this.mirror="}"}}class Wd extends Zn{constructor(){super(),this.tokenType="}",this.value="}",this.mirror="{"}}class Vd extends Zn{constructor(){super(),this.tokenType="[",this.value="[",this.mirror="]"}}class yl extends Zn{constructor(){super(),this.tokenType="]",this.value="]",this.mirror="["}}class sv extends Zn{constructor(){super(),this.tokenType="(",this.value="(",this.mirror=")"}}class Qd extends Zn{constructor(){super(),this.tokenType=")",this.value=")",this.mirror="("}}class ov extends Z{constructor(){super(...arguments),this.tokenType="~="}}class lv extends Z{constructor(){super(...arguments),this.tokenType="|="}}class av extends Z{constructor(){super(...arguments),this.tokenType="^="}}class uv extends Z{constructor(){super(...arguments),this.tokenType="$="}}class cv extends Z{constructor(){super(...arguments),this.tokenType="*="}}class Xd extends Z{constructor(){super(...arguments),this.tokenType="||"}}class Qi extends Z{constructor(){super(...arguments),this.tokenType="EOF"}toSource(){return""}}class me extends Z{constructor(t){super(),this.tokenType="DELIM",this.value="",this.value=re(t)}toString(){return"DELIM("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}toSource(){return this.value==="\\"?`\\ -`:this.value}}class er extends Z{constructor(){super(...arguments),this.value=""}ASCIIMatch(t){return this.value.toLowerCase()===t.toLowerCase()}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t}}class Gd extends er{constructor(t){super(),this.tokenType="IDENT",this.value=t}toString(){return"IDENT("+this.value+")"}toSource(){return oi(this.value)}}class Xi extends er{constructor(t){super(),this.tokenType="FUNCTION",this.value=t,this.mirror=")"}toString(){return"FUNCTION("+this.value+")"}toSource(){return oi(this.value)+"("}}class Kd extends er{constructor(t){super(),this.tokenType="AT-KEYWORD",this.value=t}toString(){return"AT("+this.value+")"}toSource(){return"@"+oi(this.value)}}class Jd extends er{constructor(t){super(),this.tokenType="HASH",this.value=t,this.type="unrestricted"}toString(){return"HASH("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t}toSource(){return this.type==="id"?"#"+oi(this.value):"#"+dv(this.value)}}class Yd extends er{constructor(t){super(),this.tokenType="STRING",this.value=t}toString(){return'"'+nh(this.value)+'"'}}class Zd extends er{constructor(t){super(),this.tokenType="URL",this.value=t}toString(){return"URL("+this.value+")"}toSource(){return'url("'+nh(this.value)+'")'}}class eh extends Z{constructor(){super(),this.tokenType="NUMBER",this.type="integer",this.repr=""}toString(){return this.type==="integer"?"INT("+this.value+")":"NUMBER("+this.value+")"}toJSON(){const t=super.toJSON();return t.value=this.value,t.type=this.type,t.repr=this.repr,t}toSource(){return this.repr}}class th extends Z{constructor(){super(),this.tokenType="PERCENTAGE",this.repr=""}toString(){return"PERCENTAGE("+this.value+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.repr=this.repr,t}toSource(){return this.repr+"%"}}class fv extends Z{constructor(){super(),this.tokenType="DIMENSION",this.type="integer",this.repr="",this.unit=""}toString(){return"DIM("+this.value+","+this.unit+")"}toJSON(){const t=this.constructor.prototype.constructor.prototype.toJSON.call(this);return t.value=this.value,t.type=this.type,t.repr=this.repr,t.unit=this.unit,t}toSource(){const t=this.repr;let n=oi(this.unit);return n[0].toLowerCase()==="e"&&(n[1]==="-"||te(n.charCodeAt(1),48,57))&&(n="\\65 "+n.slice(1,n.length)),t+n}}function oi(e){e=""+e;let t="";const n=e.charCodeAt(0);for(let r=0;r=128||i===45||i===95||te(i,48,57)||te(i,65,90)||te(i,97,122)?t+=e[r]:t+="\\"+e[r]}return t}function dv(e){e=""+e;let t="";for(let n=0;n=128||r===45||r===95||te(r,48,57)||te(r,65,90)||te(r,97,122)?t+=e[n]:t+="\\"+r.toString(16)+" "}return t}function nh(e){e=""+e;let t="";for(let n=0;nE instanceof Kd||E instanceof Dd||E instanceof Vi||E instanceof Xd||E instanceof Fd||E instanceof Ud||E instanceof Hd||E instanceof qd||E instanceof Wd||E instanceof Zd||E instanceof th);if(r)throw new Se(`Unsupported token "${r.toSource()}" while parsing selector "${e}"`);let i=0;const s=new Set;function o(){return new Se(`Unexpected token "${n[i].toSource()}" while parsing selector "${e}"`)}function l(){for(;n[i]instanceof vl;)i++}function a(E=i){return n[E]instanceof Gd}function u(E=i){return n[E]instanceof Yd}function c(E=i){return n[E]instanceof eh}function p(E=i){return n[E]instanceof Bd}function f(E=i){return n[E]instanceof Qd}function y(E=i){return n[E]instanceof me&&n[E].value==="*"}function g(E=i){return n[E]instanceof Qi}function w(E=i){return n[E]instanceof me&&[">","+","~"].includes(n[E].value)}function x(E=i){return p(E)||f(E)||g(E)||w(E)||n[E]instanceof vl}function h(){const E=[d()];for(;l(),!!p();)i++,E.push(d());return E}function d(){return l(),c()||u()?n[i++].value:v()}function v(){const E={simples:[]};for(l(),w()?E.simples.push({selector:{functions:[{name:"scope",args:[]}]},combinator:""}):E.simples.push({selector:S(),combinator:""});;){if(l(),w())E.simples[E.simples.length-1].combinator=n[i++].value,l();else if(x())break;E.simples.push({combinator:"",selector:S()})}return E}function S(){let E="";const k=[];for(;!x();)if(a()||y())E+=n[i++].toSource();else if(n[i]instanceof Jd)E+=n[i++].toSource();else if(n[i]instanceof me&&n[i].value===".")if(i++,a())E+="."+n[i++].toSource();else throw o();else if(n[i]instanceof jd)if(i++,a())if(!t.has(n[i].value.toLowerCase()))E+=":"+n[i++].toSource();else{const N=n[i++].value.toLowerCase();k.push({name:N,args:[]}),s.add(N)}else if(n[i]instanceof Xi){const N=n[i++].value.toLowerCase();if(t.has(N)?(k.push({name:N,args:h()}),s.add(N)):E+=`:${N}(${T()})`,l(),!f())throw o();i++}else throw o();else if(n[i]instanceof Vd){for(E+="[",i++;!(n[i]instanceof yl)&&!g();)E+=n[i++].toSource();if(!(n[i]instanceof yl))throw o();E+="]",i++}else throw o();if(!E&&!k.length)throw o();return{css:E||void 0,functions:k}}function T(){let E="";for(;!f()&&!g();)E+=n[i++].toSource();return E}const C=h();if(!g())throw new Se(`Error while parsing selector "${e}"`);if(C.some(E=>typeof E!="object"||!("simples"in E)))throw new Se(`Error while parsing selector "${e}"`);return{selector:C,names:Array.from(s)}}const wl=new Set(["internal:has","internal:has-not","internal:and","internal:or","internal:chain","left-of","right-of","above","below","near"]),pv=new Set(["left-of","right-of","above","below","near"]),rh=new Set(["not","is","where","has","scope","light","visible","text","text-matches","text-is","has-text","above","below","right-of","left-of","near","nth-match"]);function Yr(e){const t=vv(e),n=[];for(const r of t.parts){if(r.name==="css"||r.name==="css:light"){r.name==="css:light"&&(r.body=":light("+r.body+")");const i=hv(r.body,rh);n.push({name:"css",body:i.selector,source:r.body});continue}if(wl.has(r.name)){let i,s;try{const u=JSON.parse("["+r.body+"]");if(!Array.isArray(u)||u.length<1||u.length>2||typeof u[0]!="string")throw new Se(`Malformed selector: ${r.name}=`+r.body);if(i=u[0],u.length===2){if(typeof u[1]!="number"||!pv.has(r.name))throw new Se(`Malformed selector: ${r.name}=`+r.body);s=u[1]}}catch{throw new Se(`Malformed selector: ${r.name}=`+r.body)}const o={name:r.name,source:r.body,body:{parsed:Yr(i),distance:s}},l=[...o.body.parsed.parts].reverse().find(u=>u.name==="internal:control"&&u.body==="enter-frame"),a=l?o.body.parsed.parts.indexOf(l):-1;a!==-1&&mv(o.body.parsed.parts.slice(0,a+1),n.slice(0,a+1))&&o.body.parsed.parts.splice(0,a+1),n.push(o);continue}n.push({...r,source:r.body})}if(wl.has(n[0].name))throw new Se(`"${n[0].name}" selector cannot be first`);return{capture:t.capture,parts:n}}function mv(e,t){return Gn({parts:e})===Gn({parts:t})}function Gn(e){return typeof e=="string"?e:e.parts.map((t,n)=>{const r=t.name==="css"?"":t.name+"=";return`${n===e.capture?"*":""}${r}${t.source}`}).join(" >> ")}function gv(e,t){const n=(r,i)=>{for(const s of r.parts)t(s,i),wl.has(s.name)&&n(s.body.parsed,!0)};n(e,!1)}function vv(e){let t=0,n,r=0;const i={parts:[]},s=()=>{const l=e.substring(r,t).trim(),a=l.indexOf("=");let u,c;a!==-1&&l.substring(0,a).trim().match(/^[a-zA-Z_0-9-+:*]+$/)?(u=l.substring(0,a).trim(),c=l.substring(a+1)):l.length>1&&l[0]==='"'&&l[l.length-1]==='"'||l.length>1&&l[0]==="'"&&l[l.length-1]==="'"?(u="text",c=l):/^\(*\/\//.test(l)||l.startsWith("..")?(u="xpath",c=l):(u="css",c=l);let p=!1;if(u[0]==="*"&&(p=!0,u=u.substring(1)),i.parts.push({name:u,body:c}),p){if(i.capture!==void 0)throw new Se("Only one of the selectors can capture using * modifier");i.capture=i.parts.length-1}};if(!e.includes(">>"))return t=e.length,s(),i;const o=()=>{const a=e.substring(r,t).match(/^\s*text\s*=(.*)$/);return!!a&&!!a[1]};for(;t"&&e[t+1]===">"?(s(),t+=2,r=t):t++}return s(),i}function an(e,t){let n=0,r=e.length===0;const i=()=>e[n]||"",s=()=>{const x=i();return++n,r=n>=e.length,x},o=x=>{throw r?new Se(`Unexpected end of selector while parsing selector \`${e}\``):new Se(`Error while parsing selector \`${e}\` - unexpected symbol "${i()}" at position ${n}`+(x?" during "+x:""))};function l(){for(;!r&&/\s/.test(i());)s()}function a(x){return x>="€"||x>="0"&&x<="9"||x>="A"&&x<="Z"||x>="a"&&x<="z"||x>="0"&&x<="9"||x==="_"||x==="-"}function u(){let x="";for(l();!r&&a(i());)x+=s();return x}function c(x){let h=s();for(h!==x&&o("parsing quoted string");!r&&i()!==x;)i()==="\\"&&s(),h+=s();return i()!==x&&o("parsing quoted string"),h+=s(),h}function p(){s()!=="/"&&o("parsing regular expression");let x="",h=!1;for(;!r;){if(i()==="\\")x+=s(),r&&o("parsing regular expression");else if(h&&i()==="]")h=!1;else if(!h&&i()==="[")h=!0;else if(!h&&i()==="/")break;x+=s()}s()!=="/"&&o("parsing regular expression");let d="";for(;!r&&i().match(/[dgimsuy]/);)d+=s();try{return new RegExp(x,d)}catch(v){throw new Se(`Error while parsing selector \`${e}\`: ${v.message}`)}}function f(){let x="";return l(),i()==="'"||i()==='"'?x=c(i()).slice(1,-1):x=u(),x||o("parsing property path"),x}function y(){l();let x="";return r||(x+=s()),!r&&x!=="="&&(x+=s()),["=","*=","^=","$=","|=","~="].includes(x)||o("parsing operator"),x}function g(){s();const x=[];for(x.push(f()),l();i()===".";)s(),x.push(f()),l();if(i()==="]")return s(),{name:x.join("."),jsonPath:x,op:"",value:null,caseSensitive:!1};const h=y();let d,v=!0;if(l(),i()==="/"){if(h!=="=")throw new Se(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with regular expression`);d=p()}else if(i()==="'"||i()==='"')d=c(i()).slice(1,-1),l(),i()==="i"||i()==="I"?(v=!1,s()):(i()==="s"||i()==="S")&&(v=!0,s());else{for(d="";!r&&(a(i())||i()==="+"||i()===".");)d+=s();d==="true"?d=!0:d==="false"?d=!1:t||(d=+d,Number.isNaN(d)&&o("parsing attribute value"))}if(l(),i()!=="]"&&o("parsing attribute value"),s(),h!=="="&&typeof d!="string")throw new Se(`Error while parsing selector \`${e}\` - cannot use ${h} in attribute with non-string matching value - ${d}`);return{name:x.join("."),jsonPath:x,op:h,value:d,caseSensitive:v}}const w={name:"",attributes:[]};for(w.name=u(),l();i()==="[";)w.attributes.push(g()),l();if(r||o(void 0),!w.name&&!w.attributes.length)throw new Se(`Error while parsing selector \`${e}\` - selector cannot be empty`);return w}function mn(e,t,n=!1,r=!1){return ih(e,t,n,r)[0]}function ih(e,t,n=!1,r=!1,i=20){if(r)try{return en(Qu[e],Yr(t),n,i)}catch{return[t]}else return en(Qu[e],Yr(t),n,i)}function en(e,t,n=!1,r=20){const i=[...t.parts];for(let l=0;le.generateLocator(u,"has",w)));continue}if(a.name==="internal:has-not"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"hasNot",w)));continue}if(a.name==="internal:and"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"and",w)));continue}if(a.name==="internal:or"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"or",w)));continue}if(a.name==="internal:chain"){const g=en(e,a.body.parsed,!1,r);s.push(g.map(w=>e.generateLocator(u,"chain",w)));continue}if(a.name==="internal:label"){const{exact:g,text:w}=hr(a.body);s.push([e.generateLocator(u,"label",w,{exact:g})]);continue}if(a.name==="internal:role"){const g=an(a.body,!0),w={attrs:[]};for(const x of g.attributes)x.name==="name"?(w.exact=x.caseSensitive,w.name=x.value):(x.name==="level"&&typeof x.value=="string"&&(x.value=+x.value),w.attrs.push({name:x.name==="include-hidden"?"includeHidden":x.name,value:x.value}));s.push([e.generateLocator(u,"role",g.name,w)]);continue}if(a.name==="internal:testid"){const g=an(a.body,!0),{value:w}=g.attributes[0];s.push([e.generateLocator(u,"test-id",w)]);continue}if(a.name==="internal:attr"){const g=an(a.body,!0),{name:w,value:x,caseSensitive:h}=g.attributes[0],d=x,v=!!h;if(w==="placeholder"){s.push([e.generateLocator(u,"placeholder",d,{exact:v})]);continue}if(w==="alt"){s.push([e.generateLocator(u,"alt",d,{exact:v})]);continue}if(w==="title"){s.push([e.generateLocator(u,"title",d,{exact:v})]);continue}}let c="default";const p=i[l+1];p&&p.name==="internal:control"&&p.body==="enter-frame"&&(c="frame",o="frame-locator",l++);const f=Gn({parts:[a]}),y=e.generateLocator(u,c,f);if(c==="default"&&p&&["internal:has-text","internal:has-not-text"].includes(p.name)){const{exact:g,text:w}=hr(p.body);if(!g){const x=e.generateLocator("locator",p.name==="internal:has-text"?"has-text":"has-not-text",w,{exact:g}),h={};p.name==="internal:has-text"?h.hasText=w:h.hasNotText=w;const d=e.generateLocator(u,"default",f,h);s.push([e.chainLocators([y,x]),d]),l++;continue}}s.push([y])}return yv(e,s,r)}function yv(e,t,n){const r=t.map(()=>""),i=[],s=o=>{if(o===t.length)return i.push(e.chainLocators(r)),r.lengthJSON.parse(r));for(let r=0;r{y==null||y(d)},[y,d]),b.useEffect(()=>{const S=h.current;if(!S)return;const T=()=>{Xu.set(e,S.scrollTop)};return S.addEventListener("scroll",T,{passive:!0}),()=>S.removeEventListener("scroll",T)},[e]),b.useEffect(()=>{h.current&&(h.current.scrollTop=Xu.get(e)||0)},[e]),m("div",{className:"list-view vbox",role:"list","data-testid":x||e+"-list",children:L("div",{className:"list-view-content",tabIndex:0,onDoubleClick:()=>a&&(u==null?void 0:u(a,t.indexOf(a))),onKeyDown:S=>{var k;if(a&&S.key==="Enter"){u==null||u(a,t.indexOf(a));return}if(S.key!=="ArrowDown"&&S.key!=="ArrowUp"&&S.key!=="ArrowLeft"&&S.key!=="ArrowRight")return;if(S.stopPropagation(),S.preventDefault(),a&&S.key==="ArrowLeft"){p==null||p(a,t.indexOf(a));return}if(a&&S.key==="ArrowRight"){f==null||f(a,t.indexOf(a));return}const T=a?t.indexOf(a):-1;let C=T;S.key==="ArrowDown"&&(T===-1?C=0:C=Math.min(T+1,t.length-1)),S.key==="ArrowUp"&&(T===-1?C=t.length-1:C=Math.max(T-1,0));const E=(k=h.current)==null?void 0:k.children.item(C);_v(E||void 0),y==null||y(void 0),c==null||c(t[C],C)},ref:h,children:[w&&t.length===0&&m("div",{className:"list-view-empty",children:w}),t.map((S,T)=>{const C=a===S?" selected":"",E=d===S?" highlighted":"",k=s!=null&&s(S,T)?" error":"",N=o!=null&&o(S,T)?" warning":"",I=(l==null?void 0:l(S,T))||0,O=r(S,T);return L("div",{role:"listitem",className:"list-view-entry"+C+E+k+N,onClick:()=>c==null?void 0:c(S,T),onMouseEnter:()=>v(S),onMouseLeave:()=>v(void 0),children:[I?new Array(I).fill(0).map(()=>m("div",{className:"list-view-indent"})):void 0,i&&m("div",{className:"codicon "+(i(S,T)||"codicon-blank"),style:{minWidth:16,marginRight:4},onDoubleClick:_=>{_.preventDefault(),_.stopPropagation()},onClick:_=>{_.stopPropagation(),_.preventDefault(),g==null||g(S,T)}}),typeof O=="string"?m("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:O}):O]},(n==null?void 0:n(S,T))||T)})]})})}function _v(e){e&&(e!=null&&e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e==null||e.scrollIntoView())}const Tv=li;function Nv({name:e,rootItem:t,render:n,icon:r,isError:i,isVisible:s,selectedItem:o,onAccepted:l,onSelected:a,onHighlighted:u,treeState:c,setTreeState:p,noItemsMessage:f,dataTestId:y,autoExpandDepth:g}){const w=b.useMemo(()=>Cv(t,o,c.expandedItems,g||0),[t,o,c,g]),x=b.useMemo(()=>{if(!s)return[...w.keys()];const h=new Map,d=S=>{const T=h.get(S);if(T!==void 0)return T;let C=S.children.some(k=>d(k));for(const k of S.children){const N=d(k);C=C||N}const E=s(S)||C;return h.set(S,E),E};for(const S of w.keys())d(S);const v=[];for(const S of w.keys())s(S)&&v.push(S);return v},[w,s]);return m(Tv,{name:e,items:x,id:h=>h.id,dataTestId:y||e+"-tree",render:h=>{const d=n(h);return L(pt,{children:[r&&m("div",{className:"codicon "+(r(h)||"blank"),style:{minWidth:16,marginRight:4}}),typeof d=="string"?m("div",{style:{textOverflow:"ellipsis",overflow:"hidden"},children:d}):d]})},icon:h=>{const d=w.get(h).expanded;if(typeof d=="boolean")return d?"codicon-chevron-down":"codicon-chevron-right"},isError:h=>(i==null?void 0:i(h))||!1,indent:h=>w.get(h).depth,selectedItem:o,onAccepted:h=>l==null?void 0:l(h),onSelected:h=>a==null?void 0:a(h),onHighlighted:h=>u==null?void 0:u(h),onLeftArrow:h=>{const{expanded:d,parent:v}=w.get(h);d?(c.expandedItems.set(h.id,!1),p({...c})):v&&(a==null||a(v))},onRightArrow:h=>{h.children.length&&(c.expandedItems.set(h.id,!0),p({...c}))},onIconClicked:h=>{const{expanded:d}=w.get(h);if(d){for(let v=o;v;v=v.parent)if(v===h){a==null||a(h);break}c.expandedItems.set(h.id,!1)}else c.expandedItems.set(h.id,!0);p({...c})},noItemsMessage:f})}function Cv(e,t,n,r){const i=new Map,s=new Set;for(let l=t==null?void 0:t.parent;l;l=l.parent)s.add(l.id);const o=(l,a)=>{for(const u of l.children){const c=s.has(u.id)||n.get(u.id),p=r>a&&i.size<25&&c!==!1,f=u.children.length?c??p:void 0;i.set(u,{depth:a,expanded:f,parent:e===l?null:l}),f&&o(u,a+1)}};return o(e,0),i}const Av=Nv,Lv=({actions:e,selectedAction:t,selectedTime:n,setSelectedTime:r,sdkLanguage:i,onSelected:s,onHighlighted:o,revealConsole:l,isLive:a})=>{const[u,c]=b.useState({expandedItems:new Map}),{rootItem:p,itemMap:f}=b.useMemo(()=>Bg(e),[e]),{selectedItem:y}=b.useMemo(()=>({selectedItem:t?f.get(t.callId):void 0}),[f,t]);return L("div",{className:"vbox",children:[n&&L("div",{className:"action-list-show-all",onClick:()=>r(void 0),children:[m("span",{className:"codicon codicon-triangle-left"}),"Show all"]}),m(Av,{name:"actions",rootItem:p,treeState:u,setTreeState:c,selectedItem:y,onSelected:g=>s(g.action),onHighlighted:g=>o(g==null?void 0:g.action),onAccepted:g=>r({minimum:g.action.startTime,maximum:g.action.endTime}),isError:g=>{var w,x;return!!((x=(w=g.action)==null?void 0:w.error)!=null&&x.message)},isVisible:g=>!n||g.action.startTime<=n.maximum&&g.action.endTime>=n.minimum,render:g=>_a(g.action,{sdkLanguage:i,revealConsole:l,isLive:a,showDuration:!0,showBadges:!0})})]})},_a=(e,t)=>{const{sdkLanguage:n,revealConsole:r,isLive:i,showDuration:s,showBadges:o}=t,{errors:l,warnings:a}=Vg(e),u=e.params.selector?mn(n||"javascript",e.params.selector,!1,!0):void 0;let c="";return e.endTime?c=Bt(e.endTime-e.startTime):e.error?c="Timed out":i||(c="-"),L(pt,{children:[L("div",{className:"action-title",title:e.apiName,children:[m("span",{children:e.apiName}),u&&m("div",{className:"action-selector",title:u,children:u}),e.method==="goto"&&e.params.url&&m("div",{className:"action-url",title:e.params.url,children:e.params.url})]}),(s||o)&&m("div",{className:"spacer"}),s&&m("div",{className:"action-duration",children:c||m("span",{className:"codicon codicon-loading"})}),o&&L("div",{className:"action-icons",onClick:()=>r==null?void 0:r(),children:[!!l&&L("div",{className:"action-icon",children:[m("span",{className:"codicon codicon-error"}),m("span",{className:"action-icon-value",children:l})]}),!!a&&L("div",{className:"action-icon",children:[m("span",{className:"codicon codicon-warning"}),m("span",{className:"action-icon-value",children:a})]})]})]})};const bv=({value:e})=>{const[t,n]=b.useState("codicon-clippy"),r=b.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{n("codicon-check"),setTimeout(()=>{n("codicon-clippy")},3e3)},()=>{n("codicon-close")})},[e]);return m("span",{className:`copy-icon codicon ${t}`,onClick:r})},tr=({text:e})=>m("div",{className:"fill",style:{display:"flex",alignItems:"center",justifyContent:"center",fontSize:24,fontWeight:"bold",opacity:.5},children:e}),Iv=({action:e,sdkLanguage:t})=>{if(!e)return m(tr,{text:"No action selected"});const n={...e.params};delete n.info;const r=Object.keys(n),i=e.wallTime?new Date(e.wallTime).toLocaleString():null,s=e.endTime?Bt(e.endTime-e.startTime):"Timed Out";return L("div",{className:"call-tab",children:[m("div",{className:"call-line",children:e.apiName}),L(pt,{children:[m("div",{className:"call-section",children:"Time"}),i&&L("div",{className:"call-line",children:["wall time:",m("span",{className:"call-value datetime",title:i,children:i})]}),L("div",{className:"call-line",children:["duration:",m("span",{className:"call-value datetime",title:s,children:s})]})]}),!!r.length&&m("div",{className:"call-section",children:"Parameters"}),!!r.length&&r.map((o,l)=>Gu(Ku(e,o,n[o],t),"param-"+l)),!!e.result&&m("div",{className:"call-section",children:"Return value"}),!!e.result&&Object.keys(e.result).map((o,l)=>Gu(Ku(e,o,e.result[o],t),"result-"+l))]})};function Gu(e,t){let n=e.text.replace(/\n/g,"↵");return e.type==="string"&&(n=`"${n}"`),L("div",{className:"call-line",children:[e.name,":",m("span",{className:`call-value ${e.type}`,title:e.text,children:n}),["string","number","object","locator"].includes(e.type)&&m(bv,{value:e.text})]},t)}function Ku(e,t,n,r){const i=e.method.includes("eval")||e.method==="waitForFunction";if(t==="files")return{text:"",type:"string",name:t};if((t==="eventInit"||t==="expectedValue"||t==="arg"&&i)&&(n=xs(n.value,new Array(10).fill({handle:""}))),(t==="value"&&i||t==="received"&&e.method==="expect")&&(n=xs(n,new Array(10).fill({handle:""}))),t==="selector")return{text:mn(r||"javascript",e.params.selector,!1,!0),type:"locator",name:"locator"};const s=typeof n;return s!=="object"||n===null?{text:String(n),type:s,name:t}:n.guid?{text:"",type:"handle",name:t}:{text:JSON.stringify(n).slice(0,1e3),type:"object",name:t}}function xs(e,t){if(e.n!==void 0)return e.n;if(e.s!==void 0)return e.s;if(e.b!==void 0)return e.b;if(e.v!==void 0){if(e.v==="undefined")return;if(e.v==="null")return null;if(e.v==="NaN")return NaN;if(e.v==="Infinity")return 1/0;if(e.v==="-Infinity")return-1/0;if(e.v==="-0")return-0}if(e.d!==void 0)return new Date(e.d);if(e.r!==void 0)return new RegExp(e.r.p,e.r.f);if(e.a!==void 0)return e.a.map(n=>xs(n,t));if(e.o!==void 0){const n={};for(const{k:r,v:i}of e.o)n[r]=xs(i,t);return n}return e.h!==void 0?t===void 0?"":t[e.h]:""}const Pv=li,Rv=({action:e})=>e!=null&&e.log.length?m(Pv,{name:"log",items:(e==null?void 0:e.log)||[],render:t=>t}):m(tr,{text:"No log entries"});function Zr(e){const t=/(\x1b\[(\d+(;\d+)*)m)|([^\x1b]+)/g,n=[];let r,i={};for(;(r=t.exec(e))!==null;){const[,,s,,o]=r;if(s){const l=+s;switch(l){case 0:i={};break;case 1:i["font-weight"]="bold";break;case 3:i["font-style"]="italic";break;case 4:i["text-decoration"]="underline";break;case 8:i.display="none";break;case 9:i["text-decoration"]="line-through";break;case 22:i={...i,"font-weight":void 0,"font-style":void 0,"text-decoration":void 0};break;case 23:i={...i,"font-weight":void 0,"font-style":void 0};break;case 24:i={...i,"text-decoration":void 0};break;case 30:case 31:case 32:case 33:case 34:case 35:case 36:case 37:i.color=Ju[l-30];break;case 39:i={...i,color:void 0};break;case 40:case 41:case 42:case 43:case 44:case 45:case 46:case 47:i["background-color"]=Ju[l-40];break;case 49:i={...i,"background-color":void 0};break;case 53:i["text-decoration"]="overline";break;case 90:case 91:case 92:case 93:case 94:case 95:case 96:case 97:i.color=Yu[l-90];break;case 100:case 101:case 102:case 103:case 104:case 105:case 106:case 107:i["background-color"]=Yu[l-100];break}}else o&&n.push(`${Mv(o)}`)}return n.join("")}const Ju={0:"var(--vscode-terminal-ansiBlack)",1:"var(--vscode-terminal-ansiRed)",2:"var(--vscode-terminal-ansiGreen)",3:"var(--vscode-terminal-ansiYellow)",4:"var(--vscode-terminal-ansiBlue)",5:"var(--vscode-terminal-ansiMagenta)",6:"var(--vscode-terminal-ansiCyan)",7:"var(--vscode-terminal-ansiWhite)"},Yu={0:"var(--vscode-terminal-ansiBrightBlack)",1:"var(--vscode-terminal-ansiBrightRed)",2:"var(--vscode-terminal-ansiBrightGreen)",3:"var(--vscode-terminal-ansiBrightYellow)",4:"var(--vscode-terminal-ansiBrightBlue)",5:"var(--vscode-terminal-ansiBrightMagenta)",6:"var(--vscode-terminal-ansiBrightCyan)",7:"var(--vscode-terminal-ansiBrightWhite)"};function Mv(e){return e.replace(/[&"<>]/g,t=>({"&":"&",'"':""","<":"<",">":">"})[t])}function $v(e){return Object.entries(e).map(([t,n])=>`${t}: ${n}`).join("; ")}const Ov=({error:e})=>{const t=b.useMemo(()=>Zr(e),[e]);return m("div",{className:"error-message",dangerouslySetInnerHTML:{__html:t||""}})};function zv(e){return b.useMemo(()=>{var n;const t=new Map;for(const r of(e==null?void 0:e.actions)||[])(n=r.error)!=null&&n.message&&t.set(r.error.message,r);return{errors:t}},[e])}const Dv=({errorsModel:e,sdkLanguage:t,revealInSource:n})=>e.errors.size?m("div",{className:"fill",style:{overflow:"auto"},children:[...e.errors.entries()].map(([r,i])=>{var l;let s,o;return(l=i.stack)!=null&&l[0]&&(s=i.stack[0].file.replace(/.*\/(.*)/,"$1")+":"+i.stack[0].line,o=i.stack[0].file+":"+i.stack[0].line),L("div",{children:[L("div",{className:"hbox",style:{alignItems:"center",padding:"5px 10px",minHeight:36,fontWeight:"bold",color:"var(--vscode-errorForeground)"},children:[_a(i,{sdkLanguage:t}),s&&L("div",{className:"action-location",children:["@ ",m("span",{title:o,onClick:()=>n(i),children:s})]})]}),m(Ov,{error:r})]},r)})}):m(tr,{text:"No errors"});const Fv=li;function Uv(e,t){const{entries:n}=b.useMemo(()=>{if(!e)return{entries:[]};const i=[];for(const s of e.events){if(s.type==="console"){const o=s.args&&s.args.length?Hv(s.args):sh(s.text),l=s.location.url,u=`${l?l.substring(l.lastIndexOf("/")+1):""}:${s.location.lineNumber}`;i.push({browserMessage:{body:o,location:u},isError:s.messageType==="error",isWarning:s.messageType==="warning",timestamp:s.time})}s.type==="event"&&s.method==="pageError"&&i.push({browserError:s.params.error,isError:!0,isWarning:!1,timestamp:s.time})}for(const s of e.stdio){let o="";s.text&&(o=Zr(s.text.trim())||""),s.base64&&(o=Zr(atob(s.base64).trim())||""),i.push({nodeMessage:{html:o},isError:s.type==="stderr",isWarning:!1,timestamp:s.timestamp})}return i.sort((s,o)=>s.timestamp-o.timestamp),{entries:i}},[e]);return{entries:b.useMemo(()=>t?n.filter(i=>i.timestamp>=t.minimum&&i.timestamp<=t.maximum):n,[n,t])}}const jv=({consoleModel:e,boundaries:t})=>e.entries.length?m("div",{className:"console-tab",children:m(Fv,{name:"console",items:e.entries,isError:n=>n.isError,isWarning:n=>n.isWarning,render:n=>{const r=Bt(n.timestamp-t.minimum),i=m("span",{className:"console-time",children:r}),s=n.isError?" status-error":n.isWarning?" status-warning":" status-none",o=n.browserMessage||n.browserError?m("span",{className:"codicon codicon-browser"+s,title:"Browser message"}):m("span",{className:"codicon codicon-file"+s,title:"Runner message"});let l,a,u,c;const{browserMessage:p,browserError:f,nodeMessage:y}=n;if(p&&(l=p.location,a=p.body),f){const{error:g,value:w}=f;g?(a=g.message,c=g.stack):a=String(w)}return y&&(u=y.html),L("div",{className:"console-line",children:[i,o,l&&m("span",{className:"console-location",children:l}),a&&m("span",{className:"console-line-message",children:a}),u&&m("span",{className:"console-line-message",dangerouslySetInnerHTML:{__html:u}}),c&&m("div",{className:"console-stack",children:c})]})}})}):m(tr,{text:"No console entries"});function Hv(e){if(e.length===1)return sh(e[0].preview);const t=typeof e[0].value=="string"&&e[0].value.includes("%"),n=t?e[0].value:"",r=t?e.slice(1):e;let i=0;const s=/%([%sdifoOc])/g;let o;const l=[];let a=[];l.push(m("span",{children:a}));let u=0;for(;(o=s.exec(n))!==null;){const c=n.substring(u,o.index);a.push(m("span",{children:c})),u=o.index+2;const p=o[0][1];if(p==="%")a.push(m("span",{children:"%"}));else if(p==="s"||p==="o"||p==="O"||p==="d"||p==="i"||p==="f"){const f=r[i++],y={};typeof(f==null?void 0:f.value)!="string"&&(y.color="var(--vscode-debugTokenExpression-number)"),a.push(m("span",{style:y,children:(f==null?void 0:f.preview)||""}))}else if(p==="c"){a=[];const f=r[i++],y=f?Bv(f.preview):{};l.push(m("span",{style:y,children:a}))}}for(ua[1].toUpperCase());t[l]=o}return t}catch{return{}}}function qv(e){return["background","border","color","font","line","margin","padding","text"].some(n=>e.startsWith(n))}const oh=({noShadow:e,children:t,noMinHeight:n})=>m("div",{className:"toolbar"+(e?" no-shadow":"")+(n?" no-min-height":""),children:t}),Sl=({tabs:e,selectedTab:t,setSelectedTab:n,leftToolbar:r,rightToolbar:i,dataTestId:s})=>m("div",{className:"tabbed-pane","data-testid":s,children:L("div",{className:"vbox",children:[L(oh,{children:[r&&L("div",{style:{flex:"none",display:"flex",margin:"0 4px",alignItems:"center"},children:[...r]}),m("div",{style:{flex:"auto",display:"flex",height:"100%",overflow:"hidden"},children:[...e.map(o=>m(lh,{id:o.id,title:o.title,count:o.count,errorCount:o.errorCount,selected:t===o.id,onSelect:n}))]}),i&&L("div",{style:{flex:"none",display:"flex",alignItems:"center"},children:[...i]})]}),e.map(o=>{const l="tab-content tab-"+o.id;if(o.component)return m("div",{className:l,style:{display:t===o.id?"inherit":"none"},children:o.component},o.id);if(t===o.id)return m("div",{className:l,children:o.render()},o.id)})]})}),lh=({id:e,title:t,count:n,errorCount:r,selected:i,onSelect:s})=>L("div",{className:"tabbed-pane-tab "+(i?"selected":""),onClick:()=>s(e),title:t,children:[m("div",{className:"tabbed-pane-tab-label",children:t}),!!n&&m("div",{className:"tabbed-pane-tab-counter",children:n}),!!r&&m("div",{className:"tabbed-pane-tab-counter error",children:r})]},e),Wv="modulepreload",Vv=function(e,t){return new URL(e,t).href},Zu={},Qv=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(s=>{if(s=Vv(s,r),s in Zu)return;Zu[s]=!0;const o=s.endsWith(".css"),l=o?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const p=i[c];if(p.href===s&&(!o||p.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${s}"]${l}`))return;const u=document.createElement("link");if(u.rel=o?"stylesheet":Wv,o||(u.as="script",u.crossOrigin=""),u.href=s,document.head.appendChild(u),o)return new Promise((c,p)=>{u.addEventListener("load",c),u.addEventListener("error",()=>p(new Error(`Unable to preload CSS for ${s}`)))})})).then(()=>t()).catch(s=>{const o=new Event("vite:preloadError",{cancelable:!0});if(o.payload=s,window.dispatchEvent(o),!o.defaultPrevented)throw s})};const Bs=({text:e,language:t,readOnly:n,highlight:r,revealLine:i,lineNumbers:s,isFocused:o,focusOnChange:l,wrapLines:a,onChange:u})=>{const[c,p]=ti(),[f]=b.useState(Qv(()=>import("./codeMirrorModule-316e0bb2.js"),["./codeMirrorModule-316e0bb2.js","../codeMirrorModule.5d0f417c.css"],import.meta.url).then(x=>x.default)),y=b.useRef(null),[g,w]=b.useState();return b.useEffect(()=>{(async()=>{var S,T;const x=await f,h=p.current;if(!h)return;let d="";if(t==="javascript"&&(d="javascript"),t==="python"&&(d="python"),t==="java"&&(d="text/x-java"),t==="csharp"&&(d="text/x-csharp"),t==="html"&&(d="htmlmixed"),t==="css"&&(d="css"),y.current&&d===y.current.cm.getOption("mode")&&!!n===y.current.cm.getOption("readOnly")&&s===y.current.cm.getOption("lineNumbers")&&a===y.current.cm.getOption("lineWrapping"))return;(T=(S=y.current)==null?void 0:S.cm)==null||T.getWrapperElement().remove();const v=x(h,{value:"",mode:d,readOnly:!!n,lineNumbers:s,lineWrapping:a});return y.current={cm:v},o&&v.focus(),w(v),v})()},[f,g,p,t,s,a,n,o]),b.useEffect(()=>{y.current&&y.current.cm.setSize(c.width,c.height)},[c]),b.useLayoutEffect(()=>{var d;if(!g)return;let x=!1;if(g.getValue()!==e&&(g.setValue(e),x=!0,l&&(g.execCommand("selectAll"),g.focus())),x||JSON.stringify(r)!==JSON.stringify(y.current.highlight)){for(const S of y.current.highlight||[])g.removeLineClass(S.line-1,"wrap");for(const S of r||[])g.addLineClass(S.line-1,"wrap",`source-line-${S.type}`);for(const S of y.current.widgets||[])g.removeLineWidget(S);const v=[];for(const S of r||[]){if(S.type!=="error")continue;const T=(d=y.current)==null?void 0:d.cm.getLine(S.line-1);if(T){const E=document.createElement("div");E.className="source-line-error-underline",E.innerHTML=" ".repeat(T.length||1),v.push(g.addLineWidget(S.line,E,{above:!0,coverGutter:!1}))}const C=document.createElement("div");C.innerHTML=Zr(S.message||""),C.className="source-line-error-widget",v.push(g.addLineWidget(S.line,C,{above:!0,coverGutter:!1}))}y.current.highlight=r,y.current.widgets=v}typeof i=="number"&&y.current.cm.lineCount()>=i&&g.scrollIntoView({line:Math.max(0,i-1),ch:0},50);let h;return u&&(h=()=>u(g.getValue()),g.on("change",h)),()=>{h&&g.off("change",h)}},[g,e,r,i,l,u]),m("div",{className:"cm-wrapper",ref:p})},Xv=({resource:e,onClose:t})=>{const[n,r]=b.useState("request");return m(Sl,{dataTestId:"network-request-details",leftToolbar:[m(ln,{icon:"arrow-left",title:"Back",onClick:t}),m("div",{style:{width:30}})],rightToolbar:[m(ln,{icon:"close",title:"Close",onClick:t})],tabs:[{id:"request",title:"Request",render:()=>m(Gv,{resource:e})},{id:"response",title:"Response",render:()=>m(Kv,{resource:e})},{id:"body",title:"Body",render:()=>m(Jv,{resource:e})}],selectedTab:n,setSelectedTab:r})},Gv=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.request.postData){const i=e.request.headers.find(l=>l.name==="Content-Type"),s=i?i.value:"",o=ah(s);if(e.request.postData._sha1){const l=await fetch(`sha1/${e.request.postData._sha1}`);n({text:El(await l.text(),s),language:o})}else n({text:El(e.request.postData.text,s),language:o})}})()},[e]),L("div",{className:"network-request-details-tab",children:[m("div",{className:"network-request-details-header",children:"URL"}),m("div",{className:"network-request-details-url",children:e.request.url}),m("div",{className:"network-request-details-header",children:"Request Headers"}),m("div",{className:"network-request-details-headers",children:e.request.headers.map(r=>`${r.name}: ${r.value}`).join(` -`)}),t&&m("div",{className:"network-request-details-header",children:"Request Body"}),t&&m(Bs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})},Kv=({resource:e})=>L("div",{className:"network-request-details-tab",children:[m("div",{className:"network-request-details-header",children:"Response Headers"}),m("div",{className:"network-request-details-headers",children:e.response.headers.map(t=>`${t.name}: ${t.value}`).join(` -`)})]}),Jv=({resource:e})=>{const[t,n]=b.useState(null);return b.useEffect(()=>{(async()=>{if(e.response.content._sha1){const i=e.response.content.mimeType.includes("image"),s=await fetch(`sha1/${e.response.content._sha1}`);if(i){const o=await s.blob(),l=new FileReader,a=new Promise(u=>l.onload=u);l.readAsDataURL(o),n({dataUrl:(await a).target.result})}else{const o=El(await s.text(),e.response.content.mimeType),l=ah(e.response.content.mimeType);n({text:o,language:l})}}})()},[e]),L("div",{className:"network-request-details-tab",children:[!e.response.content._sha1&&m("div",{children:"Response body is not available for this request."}),t&&t.dataUrl&&m("img",{draggable:"false",src:t.dataUrl}),t&&t.text&&m(Bs,{text:t.text,language:t.language,readOnly:!0,lineNumbers:!0})]})};function El(e,t){if(e===null)return"Loading...";const n=e;if(n==="")return"";if(t.includes("application/json"))try{return JSON.stringify(JSON.parse(n),null,2)}catch{return n}return t.includes("application/x-www-form-urlencoded")?decodeURIComponent(n):n}function ah(e){if(e.includes("javascript")||e.includes("json"))return"javascript";if(e.includes("html"))return"html";if(e.includes("css"))return"css"}const Yv=li;function Zv(e,t){return{resources:b.useMemo(()=>((e==null?void 0:e.resources)||[]).filter(s=>t?!!s._monotonicTime&&s._monotonicTime>=t.minimum&&s._monotonicTime<=t.maximum:!0),[e,t])}}const ey=({boundaries:e,networkModel:t,onEntryHovered:n})=>{const[r,i]=b.useState(),[s,o]=b.useState(void 0);b.useMemo(()=>{s&&sy(t.resources,s)},[t.resources,s]);const l=b.useCallback(a=>{o({by:a,negate:(s==null?void 0:s.by)===a?!s.negate:!1})},[s]);return t.resources.length?L(pt,{children:[!r&&L("div",{className:"vbox",children:[m(ty,{sorting:s,toggleSorting:l}),m(Yv,{name:"network",items:t.resources,render:a=>m(ny,{boundaries:e,resource:a}),onSelected:i,onHighlighted:n})]}),r&&m(Xv,{resource:r,onClose:()=>i(void 0)})]}):m(tr,{text:"No network calls"})},ty=({toggleSorting:e,sorting:t})=>L("div",{className:"hbox network-request-header"+(t?" filter-"+t.by+(t.negate?" negative":" positive"):""),children:[L("div",{className:"network-request-start",onClick:()=>e("start"),children:[m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-status",onClick:()=>e("status"),children:[" Status",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-method",onClick:()=>e("method"),children:["Method",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-file",onClick:()=>e("file"),children:["Request",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-content-type",onClick:()=>e("content-type"),children:["Content Type",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-duration",onClick:()=>e("duration"),children:["Duration",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),L("div",{className:"network-request-size",onClick:()=>e("size"),children:["Size",m("span",{className:"codicon codicon-triangle-up"}),m("span",{className:"codicon codicon-triangle-down"})]}),m("div",{className:"network-request-route",children:"Route"})]}),ny=({resource:e,boundaries:t})=>{const{routeStatus:n,resourceName:r,contentType:i}=b.useMemo(()=>{const s=iy(e),o=e.request.url.substring(e.request.url.lastIndexOf("/"));let l=e.response.content.mimeType;const a=l.match(/^(.*);\s*charset=.*$/);return a&&(l=a[1]),{routeStatus:s,resourceName:o,contentType:l}},[e]);return L("div",{className:"hbox",children:[m("div",{className:"hbox network-request-start",children:m("div",{children:Bt(e._monotonicTime-t.minimum)})}),m("div",{className:"hbox network-request-status",children:m("div",{className:ry(e.response.status),title:e.response.statusText,children:e.response.status})}),m("div",{className:"hbox network-request-method",children:m("div",{children:e.request.method})}),m("div",{className:"network-request-file",children:m("div",{className:"network-request-file-url",title:e.request.url,children:r})}),m("div",{className:"network-request-content-type",title:i,children:i}),m("div",{className:"network-request-duration",children:Bt(e.time)}),m("div",{className:"network-request-size",children:Op(e.response._transferSize>0?e.response._transferSize:e.response.bodySize)}),m("div",{className:"network-request-route",children:n&&m("div",{className:`status-route ${n}`,children:n})})]})};function ry(e){return e>=200&&e<400?"status-success":e>=400?"status-failure":""}function iy(e){return e._wasAborted?"aborted":e._wasContinued?"continued":e._wasFulfilled?"fulfilled":e._apiRequest?"api":""}function sy(e,t){const n=oy(t==null?void 0:t.by);n&&e.sort(n),t.negate&&e.reverse()}function oy(e){if(e==="start")return(t,n)=>t._monotonicTime-n._monotonicTime;if(e==="duration")return(t,n)=>t.time-n.time;if(e==="status")return(t,n)=>t.response.status-n.response.status;if(e==="method")return(t,n)=>{const r=t.request.method,i=n.request.method;return r.localeCompare(i)};if(e==="size")return(t,n)=>{const r=t.response._transferSize>0?t.response._transferSize:t.response.bodySize,i=n.response._transferSize>0?n.response._transferSize:n.response.bodySize;return r-i};if(e==="content-type")return(t,n)=>{const r=t.response.content.mimeType,i=n.response.content.mimeType;return r.localeCompare(i)};if(e==="file")return(t,n)=>{const r=t.request.url.substring(t.request.url.lastIndexOf("/")),i=n.request.url.substring(n.request.url.lastIndexOf("/"));return r.localeCompare(i)}}const ec={queryAll(e,t){t.startsWith("/")&&e.nodeType!==Node.DOCUMENT_NODE&&(t="."+t);const n=[],r=e.ownerDocument||e;if(!r)return n;const i=r.evaluate(t,e,null,XPathResult.ORDERED_NODE_ITERATOR_TYPE);for(let s=i.iterateNext();s;s=i.iterateNext())s.nodeType===Node.ELEMENT_NODE&&n.push(s);return n}};function Ta(e,t){for(;t;){if(e.contains(t))return!0;t=ch(t)}return!1}function Ie(e){if(e.parentElement)return e.parentElement;if(e.parentNode&&e.parentNode.nodeType===11&&e.parentNode.host)return e.parentNode.host}function uh(e){let t=e;for(;t.parentNode;)t=t.parentNode;if(t.nodeType===11||t.nodeType===9)return t}function ch(e){for(;e.parentElement;)e=e.parentElement;return Ie(e)}function kr(e,t,n){for(;e;){const r=e.closest(t);if(n&&r!==n&&(r!=null&&r.contains(n)))return;if(r)return r;e=ch(e)}}function un(e,t){return e.ownerDocument&&e.ownerDocument.defaultView?e.ownerDocument.defaultView.getComputedStyle(e,t):void 0}function fh(e,t){if(t=t??un(e),!t)return!0;if(Element.prototype.checkVisibility){if(!e.checkVisibility({checkOpacity:!1,checkVisibilityCSS:!1}))return!1}else{const n=e.closest("details,summary");if(n!==e&&(n==null?void 0:n.nodeName)==="DETAILS"&&!n.open)return!1}return t.visibility==="visible"}function ks(e){const t=un(e);if(!t)return!0;if(t.display==="contents"){for(let r=e.firstChild;r;r=r.nextSibling)if(r.nodeType===1&&ks(r)||r.nodeType===3&&dh(r))return!0;return!1}if(!fh(e,t))return!1;const n=e.getBoundingClientRect();return n.width>0&&n.height>0}function dh(e){const t=e.ownerDocument.createRange();t.selectNode(e);const n=t.getBoundingClientRect();return n.width>0&&n.height>0}function tc(e){return e.hasAttribute("aria-label")||e.hasAttribute("aria-labelledby")}const nc="article:not([role]), aside:not([role]), main:not([role]), nav:not([role]), section:not([role]), [role=article], [role=complementary], [role=main], [role=navigation], [role=region]",ly=["aria-atomic","aria-busy","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription"];function hh(e){return ly.some(t=>e.hasAttribute(t))}const wo={A:e=>e.hasAttribute("href")?"link":null,AREA:e=>e.hasAttribute("href")?"link":null,ARTICLE:()=>"article",ASIDE:()=>"complementary",BLOCKQUOTE:()=>"blockquote",BUTTON:()=>"button",CAPTION:()=>"caption",CODE:()=>"code",DATALIST:()=>"listbox",DD:()=>"definition",DEL:()=>"deletion",DETAILS:()=>"group",DFN:()=>"term",DIALOG:()=>"dialog",DT:()=>"term",EM:()=>"emphasis",FIELDSET:()=>"group",FIGURE:()=>"figure",FOOTER:e=>kr(e,nc)?null:"contentinfo",FORM:e=>tc(e)?"form":null,H1:()=>"heading",H2:()=>"heading",H3:()=>"heading",H4:()=>"heading",H5:()=>"heading",H6:()=>"heading",HEADER:e=>kr(e,nc)?null:"banner",HR:()=>"separator",HTML:()=>"document",IMG:e=>e.getAttribute("alt")===""&&!hh(e)&&Number.isNaN(Number(String(e.getAttribute("tabindex"))))?"presentation":"img",INPUT:e=>{const t=e.type.toLowerCase();if(t==="search")return e.hasAttribute("list")?"combobox":"searchbox";if(["email","tel","text","url",""].includes(t)){const n=qs(e,e.getAttribute("list"))[0];return n&&n.tagName==="DATALIST"?"combobox":"textbox"}return t==="hidden"?"":{button:"button",checkbox:"checkbox",image:"button",number:"spinbutton",radio:"radio",range:"slider",reset:"button",submit:"button"}[t]||"textbox"},INS:()=>"insertion",LI:()=>"listitem",MAIN:()=>"main",MARK:()=>"mark",MATH:()=>"math",MENU:()=>"list",METER:()=>"meter",NAV:()=>"navigation",OL:()=>"list",OPTGROUP:()=>"group",OPTION:()=>"option",OUTPUT:()=>"status",P:()=>"paragraph",PROGRESS:()=>"progressbar",SECTION:e=>tc(e)?"region":null,SELECT:e=>e.hasAttribute("multiple")||e.size>1?"listbox":"combobox",STRONG:()=>"strong",SUB:()=>"subscript",SUP:()=>"superscript",SVG:()=>"img",TABLE:()=>"table",TBODY:()=>"rowgroup",TD:e=>{const t=kr(e,"table"),n=t?_s(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},TEXTAREA:()=>"textbox",TFOOT:()=>"rowgroup",TH:e=>{if(e.getAttribute("scope")==="col")return"columnheader";if(e.getAttribute("scope")==="row")return"rowheader";const t=kr(e,"table"),n=t?_s(t):"";return n==="grid"||n==="treegrid"?"gridcell":"cell"},THEAD:()=>"rowgroup",TIME:()=>"time",TR:()=>"row",UL:()=>"list"},ay={DD:["DL","DIV"],DIV:["DL"],DT:["DL","DIV"],LI:["OL","UL"],TBODY:["TABLE"],TD:["TR"],TFOOT:["TABLE"],TH:["TR"],THEAD:["TABLE"],TR:["THEAD","TBODY","TFOOT","TABLE"]};function rc(e){var r;const t=((r=wo[e.tagName.toUpperCase()])==null?void 0:r.call(wo,e))||"";if(!t)return null;let n=e;for(;n;){const i=Ie(n),s=ay[n.tagName];if(!s||!i||!s.includes(i.tagName))break;const o=_s(i);if((o==="none"||o==="presentation")&&!ph(i))return o;n=i}return t}const uy=["alert","alertdialog","application","article","banner","blockquote","button","caption","cell","checkbox","code","columnheader","combobox","command","complementary","composite","contentinfo","definition","deletion","dialog","directory","document","emphasis","feed","figure","form","generic","grid","gridcell","group","heading","img","input","insertion","landmark","link","list","listbox","listitem","log","main","marquee","math","meter","menu","menubar","menuitem","menuitemcheckbox","menuitemradio","navigation","none","note","option","paragraph","presentation","progressbar","radio","radiogroup","range","region","roletype","row","rowgroup","rowheader","scrollbar","search","searchbox","section","sectionhead","select","separator","slider","spinbutton","status","strong","structure","subscript","superscript","switch","tab","table","tablist","tabpanel","term","textbox","time","timer","toolbar","tooltip","tree","treegrid","treeitem","widget","window"],cy=["command","composite","input","landmark","range","roletype","section","sectionhead","select","structure","widget","window"],fy=uy.filter(e=>!cy.includes(e));function _s(e){return(e.getAttribute("role")||"").split(" ").map(n=>n.trim()).find(n=>fy.includes(n))||null}function ph(e){return!hh(e)}function $e(e){const t=_s(e);return!t||(t==="none"||t==="presentation")&&ph(e)?rc(e):t}function mh(e){return e===null?void 0:e.toLowerCase()==="true"}function Na(e){if(["STYLE","SCRIPT","NOSCRIPT","TEMPLATE"].includes(e.tagName))return!0;const t=un(e),n=e.nodeName==="SLOT";if((t==null?void 0:t.display)==="contents"&&!n){for(let i=e.firstChild;i;i=i.nextSibling)if(i.nodeType===1&&!Na(i)||i.nodeType===3&&dh(i))return!1;return!0}return!(e.nodeName==="OPTION"&&!!e.closest("select"))&&!n&&!fh(e,t)?!0:gh(e)}function gh(e){let t=Pt==null?void 0:Pt.get(e);if(t===void 0){if(t=!1,e.parentElement&&e.parentElement.shadowRoot&&!e.assignedSlot&&(t=!0),!t){const n=un(e);t=!n||n.display==="none"||mh(e.getAttribute("aria-hidden"))===!0}if(!t){const n=Ie(e);n&&(t=gh(n))}Pt==null||Pt.set(e,t)}return t}function qs(e,t){if(!t)return[];const n=uh(e);if(!n)return[];try{const r=t.split(" ").filter(s=>!!s),i=new Set;for(const s of r){const o=n.querySelector("#"+CSS.escape(s));o&&i.add(o)}return[...i]}catch{return[]}}function dy(e){return e.replace(/\r\n/g,` -`).replace(/\u00A0/g," ").replace(/\s\s+/g," ").trim()}function ic(e,t){const n=[...e.querySelectorAll(t)];for(const r of qs(e,e.getAttribute("aria-owns")))r.matches(t)&&n.push(r),n.push(...r.querySelectorAll(t));return n}function sc(e){if(!e)return"";const t=e.content;if(t[0]==="'"&&t[t.length-1]==="'"||t[0]==='"'&&t[t.length-1]==='"'){const n=t.substring(1,t.length-1);return(e.display||"inline")!=="inline"?" "+n+" ":n}return""}function vh(e){const t=e.getAttribute("aria-labelledby");return t===null?null:qs(e,t)}function hy(e,t){const n=["button","cell","checkbox","columnheader","gridcell","heading","link","menuitem","menuitemcheckbox","menuitemradio","option","radio","row","rowheader","switch","tab","tooltip","treeitem"].includes(e),r=t&&["","caption","code","contentinfo","definition","deletion","emphasis","insertion","list","listitem","mark","none","paragraph","presentation","region","row","rowgroup","section","strong","subscript","superscript","table","term","time"].includes(e);return n||r}function Ca(e,t){const n=t?La:Aa;let r=n==null?void 0:n.get(e);return r===void 0&&(r="",["caption","code","definition","deletion","emphasis","generic","insertion","mark","paragraph","presentation","strong","subscript","suggestion","superscript","term","time"].includes($e(e)||"")||(r=dy(yt(e,{includeHidden:t,visitedElements:new Set,embeddedInLabelledBy:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1,embeddedInTargetElement:"self"}))),n==null||n.set(e,r)),r}function yt(e,t){if(t.visitedElements.has(e))return"";const n={...t,embeddedInLabel:t.embeddedInLabel==="self"?"descendant":t.embeddedInLabel,embeddedInLabelledBy:t.embeddedInLabelledBy==="self"?"descendant":t.embeddedInLabelledBy,embeddedInTargetElement:t.embeddedInTargetElement==="self"?"descendant":t.embeddedInTargetElement};if(!t.includeHidden&&t.embeddedInLabelledBy!=="self"&&Na(e))return t.visitedElements.add(e),"";const r=vh(e);if(t.embeddedInLabelledBy==="none"){const o=(r||[]).map(l=>yt(l,{...t,embeddedInLabelledBy:"self",embeddedInTargetElement:"none",embeddedInLabel:"none",embeddedInTextAlternativeElement:!1})).join(" ");if(o)return o}const i=$e(e)||"";if(t.embeddedInLabel!=="none"||t.embeddedInLabelledBy!=="none"){const o=[...e.labels||[]].includes(e),l=(r||[]).includes(e);if(!o&&!l){if(i==="textbox")return t.visitedElements.add(e),e.tagName==="INPUT"||e.tagName==="TEXTAREA"?e.value:e.textContent||"";if(["combobox","listbox"].includes(i)){t.visitedElements.add(e);let a;if(e.tagName==="SELECT")a=[...e.selectedOptions],!a.length&&e.options.length&&a.push(e.options[0]);else{const u=i==="combobox"?ic(e,"*").find(c=>$e(c)==="listbox"):e;a=u?ic(u,'[aria-selected="true"]').filter(c=>$e(c)==="option"):[]}return a.map(u=>yt(u,n)).join(" ")}if(["progressbar","scrollbar","slider","spinbutton","meter"].includes(i))return t.visitedElements.add(e),e.hasAttribute("aria-valuetext")?e.getAttribute("aria-valuetext")||"":e.hasAttribute("aria-valuenow")?e.getAttribute("aria-valuenow")||"":e.getAttribute("value")||"";if(["menu"].includes(i))return t.visitedElements.add(e),""}}const s=e.getAttribute("aria-label")||"";if(s.trim())return t.visitedElements.add(e),s;if(!["presentation","none"].includes(i)){if(e.tagName==="INPUT"&&["button","submit","reset"].includes(e.type)){t.visitedElements.add(e);const o=e.value||"";return o.trim()?o:e.type==="submit"?"Submit":e.type==="reset"?"Reset":e.getAttribute("title")||""}if(e.tagName==="INPUT"&&e.type==="image"){t.visitedElements.add(e);const o=e.labels||[];if(o.length&&t.embeddedInLabelledBy==="none")return Ci(o,t);const l=e.getAttribute("alt")||"";if(l.trim())return l;const a=e.getAttribute("title")||"";return a.trim()?a:"Submit"}if(!r&&e.tagName==="BUTTON"){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return Ci(o,t)}if(!r&&e.tagName==="OUTPUT"){t.visitedElements.add(e);const o=e.labels||[];return o.length?Ci(o,t):e.getAttribute("title")||""}if(!r&&(e.tagName==="TEXTAREA"||e.tagName==="SELECT"||e.tagName==="INPUT")){t.visitedElements.add(e);const o=e.labels||[];if(o.length)return Ci(o,t);const l=e.tagName==="INPUT"&&["text","password","search","tel","email","url"].includes(e.type)||e.tagName==="TEXTAREA",a=e.getAttribute("placeholder")||"",u=e.getAttribute("title")||"";return!l||u?u:a}if(!r&&e.tagName==="FIELDSET"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="LEGEND")return yt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(!r&&e.tagName==="FIGURE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="FIGCAPTION")return yt(l,{...n,embeddedInTextAlternativeElement:!0});return e.getAttribute("title")||""}if(e.tagName==="IMG"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName==="TABLE"){t.visitedElements.add(e);for(let l=e.firstElementChild;l;l=l.nextElementSibling)if(l.tagName==="CAPTION")return yt(l,{...n,embeddedInTextAlternativeElement:!0});const o=e.getAttribute("summary")||"";if(o)return o}if(e.tagName==="AREA"){t.visitedElements.add(e);const o=e.getAttribute("alt")||"";return o.trim()?o:e.getAttribute("title")||""}if(e.tagName.toUpperCase()==="SVG"||e.ownerSVGElement){t.visitedElements.add(e);for(let o=e.firstElementChild;o;o=o.nextElementSibling)if(o.tagName.toUpperCase()==="TITLE"&&o.ownerSVGElement)return yt(o,{...n,embeddedInLabelledBy:"self"})}if(e.ownerSVGElement&&e.tagName.toUpperCase()==="A"){const o=e.getAttribute("xlink:title")||"";if(o.trim())return t.visitedElements.add(e),o}}if(hy(i,t.embeddedInTargetElement==="descendant")||t.embeddedInLabelledBy!=="none"||t.embeddedInLabel!=="none"||t.embeddedInTextAlternativeElement){t.visitedElements.add(e);const o=[],l=(c,p)=>{var f;if(!(p&&c.assignedSlot))if(c.nodeType===1){const y=((f=un(c))==null?void 0:f.display)||"inline";let g=yt(c,n);(y!=="inline"||c.nodeName==="BR")&&(g=" "+g+" "),o.push(g)}else c.nodeType===3&&o.push(c.textContent||"")};o.push(sc(un(e,"::before")));const a=e.nodeName==="SLOT"?e.assignedNodes():[];if(a.length)for(const c of a)l(c,!1);else{for(let c=e.firstChild;c;c=c.nextSibling)l(c,!0);if(e.shadowRoot)for(let c=e.shadowRoot.firstChild;c;c=c.nextSibling)l(c,!0);for(const c of qs(e,e.getAttribute("aria-owns")))l(c,!0)}o.push(sc(un(e,"::after")));const u=o.join("");if(u.trim())return u}if(!["presentation","none"].includes(i)||e.tagName==="IFRAME"){t.visitedElements.add(e);const o=e.getAttribute("title")||"";if(o.trim())return o}return t.visitedElements.add(e),""}const yh=["gridcell","option","row","tab","rowheader","columnheader","treeitem"];function py(e){return e.tagName==="OPTION"?e.selected:yh.includes($e(e)||"")?mh(e.getAttribute("aria-selected"))===!0:!1}const wh=["checkbox","menuitemcheckbox","option","radio","switch","menuitemradio","treeitem"];function my(e){const t=Sh(e,!0);return t==="error"?!1:t}function Sh(e,t){if(t&&e.tagName==="INPUT"&&e.indeterminate)return"mixed";if(e.tagName==="INPUT"&&["checkbox","radio"].includes(e.type))return e.checked;if(wh.includes($e(e)||"")){const n=e.getAttribute("aria-checked");return n==="true"?!0:t&&n==="mixed"?"mixed":!1}return"error"}const Eh=["button"];function gy(e){if(Eh.includes($e(e)||"")){const t=e.getAttribute("aria-pressed");if(t==="true")return!0;if(t==="mixed")return"mixed"}return!1}const xh=["application","button","checkbox","combobox","gridcell","link","listbox","menuitem","row","rowheader","tab","treeitem","columnheader","menuitemcheckbox","menuitemradio","rowheader","switch"];function vy(e){if(e.tagName==="DETAILS")return e.open;if(xh.includes($e(e)||"")){const t=e.getAttribute("aria-expanded");return t===null?"none":t==="true"}return"none"}const kh=["heading","listitem","row","treeitem"];function yy(e){const t={H1:1,H2:2,H3:3,H4:4,H5:5,H6:6}[e.tagName];if(t)return t;if(kh.includes($e(e)||"")){const n=e.getAttribute("aria-level"),r=n===null?Number.NaN:Number(n);if(Number.isInteger(r)&&r>=1)return r}return 0}const wy=["application","button","composite","gridcell","group","input","link","menuitem","scrollbar","separator","tab","checkbox","columnheader","combobox","grid","listbox","menu","menubar","menuitemcheckbox","menuitemradio","option","radio","radiogroup","row","rowheader","searchbox","select","slider","spinbutton","switch","tablist","textbox","toolbar","tree","treegrid","treeitem"];function _h(e){return["BUTTON","INPUT","SELECT","TEXTAREA","OPTION","OPTGROUP"].includes(e.tagName)&&(e.hasAttribute("disabled")||Th(e))?!0:Nh(e)}function Th(e){return e?e.tagName==="FIELDSET"&&e.hasAttribute("disabled")?!0:Th(e.parentElement):!1}function Nh(e){if(!e)return!1;if(wy.includes($e(e)||"")){const t=(e.getAttribute("aria-disabled")||"").toLowerCase();if(t==="true")return!0;if(t==="false")return!1}return Nh(Ie(e))}function Ci(e,t){return[...e].map(n=>yt(n,{...t,embeddedInLabel:"self",embeddedInTextAlternativeElement:!1,embeddedInLabelledBy:"none",embeddedInTargetElement:"none"})).filter(n=>!!n).join(" ")}let Aa,La,Pt,Ch=0;function Ah(){++Ch,Aa??(Aa=new Map),La??(La=new Map),Pt??(Pt=new Map)}function Lh(){--Ch||(Aa=void 0,La=void 0,Pt=void 0)}function bh(e,t){for(const n of t.jsonPath)e!=null&&(e=e[n]);return Ih(e,t)}function Ih(e,t){const n=typeof e=="string"&&!t.caseSensitive?e.toUpperCase():e,r=typeof t.value=="string"&&!t.caseSensitive?t.value.toUpperCase():t.value;return t.op===""?!!n:t.op==="="?r instanceof RegExp?typeof n=="string"&&!!n.match(r):n===r:typeof n!="string"||typeof r!="string"?!1:t.op==="*="?n.includes(r):t.op==="^="?n.startsWith(r):t.op==="$="?n.endsWith(r):t.op==="|="?n===r||n.startsWith(r+"-"):t.op==="~="?n.split(" ").includes(r):!1}function ba(e){const t=e.ownerDocument;return e.nodeName==="SCRIPT"||e.nodeName==="NOSCRIPT"||e.nodeName==="STYLE"||t.head&&t.head.contains(e)}function De(e,t){let n=e.get(t);if(n===void 0){if(n={full:"",immediate:[]},!ba(t)){let r="";if(t instanceof HTMLInputElement&&(t.type==="submit"||t.type==="button"))n={full:t.value,immediate:[t.value]};else{for(let i=t.firstChild;i;i=i.nextSibling)i.nodeType===Node.TEXT_NODE?(n.full+=i.nodeValue||"",r+=i.nodeValue||""):(r&&n.immediate.push(r),r="",i.nodeType===Node.ELEMENT_NODE&&(n.full+=De(e,i).full));r&&n.immediate.push(r),t.shadowRoot&&(n.full+=De(e,t.shadowRoot).full)}}e.set(t,n)}return n}function Ws(e,t,n){if(ba(t)||!n(De(e,t)))return"none";for(let r=t.firstChild;r;r=r.nextSibling)if(r.nodeType===Node.ELEMENT_NODE&&n(De(e,r)))return"selfAndChildren";return t.shadowRoot&&n(De(e,t.shadowRoot))?"selfAndChildren":"self"}function Ph(e,t){const n=vh(t);if(n)return n.map(s=>De(e,s));const r=t.getAttribute("aria-label");if(r!==null&&r.trim())return[{full:r,immediate:[r]}];const i=t.nodeName==="INPUT"&&t.type!=="hidden";if(["BUTTON","METER","OUTPUT","PROGRESS","SELECT","TEXTAREA"].includes(t.nodeName)||i){const s=t.labels;if(s)return[...s].map(o=>De(e,o))}return[]}function oc(e){return e.displayName||e.name||"Anonymous"}function Sy(e){if(e.type)switch(typeof e.type){case"function":return oc(e.type);case"string":return e.type;case"object":return e.type.displayName||(e.type.render?oc(e.type.render):"")}if(e._currentElement){const t=e._currentElement.type;if(typeof t=="string")return t;if(typeof t=="function")return t.displayName||t.name||"Anonymous"}return""}function Ey(e){var t;return e.key??((t=e._currentElement)==null?void 0:t.key)}function xy(e){if(e.child){const n=[];for(let r=e.child;r;r=r.sibling)n.push(r);return n}if(!e._currentElement)return[];const t=n=>{var i;const r=(i=n._currentElement)==null?void 0:i.type;return typeof r=="function"||typeof r=="string"};if(e._renderedComponent){const n=e._renderedComponent;return t(n)?[n]:[]}return e._renderedChildren?[...Object.values(e._renderedChildren)].filter(t):[]}function ky(e){var r;const t=e.memoizedProps||((r=e._currentElement)==null?void 0:r.props);if(!t||typeof t=="string")return t;const n={...t};return delete n.children,n}function Rh(e){var r;const t={key:Ey(e),name:Sy(e),children:xy(e).map(Rh),rootElements:[],props:ky(e)},n=e.stateNode||e._hostNode||((r=e._renderedComponent)==null?void 0:r._hostNode);if(n instanceof Element)t.rootElements.push(n);else for(const i of t.children)t.rootElements.push(...i.rootElements);return t}function Mh(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Mh(r,t,n);return n}function $h(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT);do{const i=r.currentNode,s=i,o=Object.keys(s).find(a=>a.startsWith("__reactContainer")&&s[a]!==null);if(o)t.push(s[o].stateNode.current);else{const a="_reactRootContainer";s.hasOwnProperty(a)&&s[a]!==null&&t.push(s[a]._internalRoot.current)}if(i instanceof Element&&i.hasAttribute("data-reactroot"))for(const a of Object.keys(i))(a.startsWith("__reactInternalInstance")||a.startsWith("__reactFiber"))&&t.push(i[a]);const l=i instanceof Element?i.shadowRoot:null;l&&$h(l,t)}while(r.nextNode());return t}const _y={queryAll(e,t){const{name:n,attributes:r}=an(t,!1),o=$h(e.ownerDocument||e).map(a=>Rh(a)).map(a=>Mh(a,u=>{const c=u.props??{};if(u.key!==void 0&&(c.key=u.key),n&&u.name!==n||u.rootElements.some(p=>!Ta(e,p)))return!1;for(const p of r)if(!bh(c,p))return!1;return!0})).flat(),l=new Set;for(const a of o)for(const u of a.rootElements)l.add(u);return[...l]}};function Oh(e,t){const n=e.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/");let r=n.substring(n.lastIndexOf("/")+1);return t&&r.endsWith(t)&&(r=r.substring(0,r.length-t.length)),r}function Ty(e,t){return t?t.toUpperCase():""}const Ny=/(?:^|[-_/])(\w)/g,zh=e=>e&&e.replace(Ny,Ty);function Cy(e){function t(c){const p=c.name||c._componentTag||c.__playwright_guessedName;if(p)return p;const f=c.__file;if(f)return zh(Oh(f,".vue"))}function n(c,p){return c.type.__playwright_guessedName=p,p}function r(c){var f,y,g,w;const p=t(c.type||{});if(p)return p;if(c.root===c)return"Root";for(const x in(y=(f=c.parent)==null?void 0:f.type)==null?void 0:y.components)if(((g=c.parent)==null?void 0:g.type.components[x])===c.type)return n(c,x);for(const x in(w=c.appContext)==null?void 0:w.components)if(c.appContext.components[x]===c.type)return n(c,x);return"Anonymous Component"}function i(c){return c._isBeingDestroyed||c.isUnmounted}function s(c){return c.subTree.type.toString()==="Symbol(Fragment)"}function o(c){const p=[];return c.component&&p.push(c.component),c.suspense&&p.push(...o(c.suspense.activeBranch)),Array.isArray(c.children)&&c.children.forEach(f=>{f.component?p.push(f.component):p.push(...o(f))}),p.filter(f=>{var y;return!i(f)&&!((y=f.type.devtools)!=null&&y.hide)})}function l(c){return s(c)?a(c.subTree):[c.subTree.el]}function a(c){if(!c.children)return[];const p=[];for(let f=0,y=c.children.length;f!!o.component).map(o=>o.component):[]}function i(s){return{name:n(s),children:r(s).map(i),rootElements:[s.$el],props:s._props}}return i(e)}function Dh(e,t,n=[]){t(e)&&n.push(e);for(const r of e.children)Dh(r,t,n);return n}function Fh(e,t=[]){const r=(e.ownerDocument||e).createTreeWalker(e,NodeFilter.SHOW_ELEMENT),i=new Set;do{const s=r.currentNode;s.__vue__&&i.add(s.__vue__.$root),s.__vue_app__&&s._vnode&&s._vnode.component&&t.push({root:s._vnode.component,version:3});const o=s instanceof Element?s.shadowRoot:null;o&&Fh(o,t)}while(r.nextNode());for(const s of i)t.push({version:2,root:s});return t}const Ly={queryAll(e,t){const n=e.ownerDocument||e,{name:r,attributes:i}=an(t,!1),l=Fh(n).map(u=>u.version===3?Cy(u.root):Ay(u.root)).map(u=>Dh(u,c=>{if(r&&c.name!==r||c.rootElements.some(p=>!Ta(e,p)))return!1;for(const p of i)if(!bh(c.props,p))return!1;return!0})).flat(),a=new Set;for(const u of l)for(const c of u.rootElements)a.add(c);return[...a]}},Uh=["selected","checked","pressed","expanded","level","disabled","name","include-hidden"];Uh.sort();function pr(e,t,n){if(!t.includes(n))throw new Error(`"${e}" attribute is only supported for roles: ${t.slice().sort().map(r=>`"${r}"`).join(", ")}`)}function En(e,t){if(e.op!==""&&!t.includes(e.value))throw new Error(`"${e.name}" must be one of ${t.map(n=>JSON.stringify(n)).join(", ")}`)}function xn(e,t){if(!t.includes(e.op))throw new Error(`"${e.name}" does not support "${e.op}" matcher`)}function by(e,t){const n={role:t};for(const r of e)switch(r.name){case"checked":{pr(r.name,wh,t),En(r,[!0,!1,"mixed"]),xn(r,["","="]),n.checked=r.op===""?!0:r.value;break}case"pressed":{pr(r.name,Eh,t),En(r,[!0,!1,"mixed"]),xn(r,["","="]),n.pressed=r.op===""?!0:r.value;break}case"selected":{pr(r.name,yh,t),En(r,[!0,!1]),xn(r,["","="]),n.selected=r.op===""?!0:r.value;break}case"expanded":{pr(r.name,xh,t),En(r,[!0,!1]),xn(r,["","="]),n.expanded=r.op===""?!0:r.value;break}case"level":{if(pr(r.name,kh,t),typeof r.value=="string"&&(r.value=+r.value),r.op!=="="||typeof r.value!="number"||Number.isNaN(r.value))throw new Error('"level" attribute must be compared to a number');n.level=r.value;break}case"disabled":{En(r,[!0,!1]),xn(r,["","="]),n.disabled=r.op===""?!0:r.value;break}case"name":{if(r.op==="")throw new Error('"name" attribute must have a value');if(typeof r.value!="string"&&!(r.value instanceof RegExp))throw new Error('"name" attribute must be a string or a regular expression');n.name=r.value,n.nameOp=r.op,n.exact=r.caseSensitive;break}case"include-hidden":{En(r,[!0,!1]),xn(r,["","="]),n.includeHidden=r.op===""?!0:r.value;break}default:throw new Error(`Unknown attribute "${r.name}", must be one of ${Uh.map(i=>`"${i}"`).join(", ")}.`)}return n}function Iy(e,t,n){const r=[],i=o=>{if($e(o)===t.role&&!(t.selected!==void 0&&py(o)!==t.selected)&&!(t.checked!==void 0&&my(o)!==t.checked)&&!(t.pressed!==void 0&&gy(o)!==t.pressed)&&!(t.expanded!==void 0&&vy(o)!==t.expanded)&&!(t.level!==void 0&&yy(o)!==t.level)&&!(t.disabled!==void 0&&_h(o)!==t.disabled)&&!(!t.includeHidden&&Na(o))){if(t.name!==void 0){const l=be(Ca(o,!!t.includeHidden));if(typeof t.name=="string"&&(t.name=be(t.name)),n&&!t.exact&&t.nameOp==="="&&(t.nameOp="*="),!Ih(l,{name:"",jsonPath:[],op:t.nameOp||"=",value:t.name,caseSensitive:!!t.exact}))return}r.push(o)}},s=o=>{const l=[];o.shadowRoot&&l.push(o.shadowRoot);for(const a of o.querySelectorAll("*"))i(a),a.shadowRoot&&l.push(a.shadowRoot);l.forEach(s)};return s(e),r}function lc(e){return{queryAll:(t,n)=>{const r=an(n,!0),i=r.name.toLowerCase();if(!i)throw new Error("Role must not be empty");const s=by(r.attributes,i);Ah();try{return Iy(t,s,e)}finally{Lh()}}}}function Py(e,t,n){const r=e.left-t.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function Ry(e,t,n){const r=t.left-e.right;if(!(r<0||n!==void 0&&r>n))return r+Math.max(t.bottom-e.bottom,0)+Math.max(e.top-t.top,0)}function My(e,t,n){const r=t.top-e.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function $y(e,t,n){const r=e.top-t.bottom;if(!(r<0||n!==void 0&&r>n))return r+Math.max(e.left-t.left,0)+Math.max(t.right-e.right,0)}function Oy(e,t,n){const r=n===void 0?50:n;let i=0;return e.left-t.right>=0&&(i+=e.left-t.right),t.left-e.right>=0&&(i+=t.left-e.right),t.top-e.bottom>=0&&(i+=t.top-e.bottom),e.top-t.bottom>=0&&(i+=e.top-t.bottom),i>r?void 0:i}const zy=["left-of","right-of","above","below","near"];function jh(e,t,n,r){const i=t.getBoundingClientRect(),s={"left-of":Ry,"right-of":Py,above:My,below:$y,near:Oy}[e];let o;for(const l of n){if(l===t)continue;const a=s(i,l.getBoundingClientRect(),r);a!==void 0&&(o===void 0||ar.every((u,c)=>a.rest[c]===u));if(o)return o.result;const l=i();return s.push({rest:r,result:l}),l}_checkSelector(t){if(!(typeof t=="object"&&t&&(Array.isArray(t)||"simples"in t&&t.simples.length)))throw new Error(`Malformed selector "${t}"`);return t}matches(t,n,r){const i=this._checkSelector(n);this.begin();try{return this._cached(this._cacheMatches,t,[i,r.scope,r.pierceShadow,r.originalScope],()=>Array.isArray(i)?this._matchesEngine(_r,t,i,r):(this._hasScopeClause(i)&&(r=this._expandContextForScopeMatching(r)),this._matchesSimple(t,i.simples[i.simples.length-1].selector,r)?this._matchesParents(t,i,i.simples.length-2,r):!1))}finally{this.end()}}query(t,n){const r=this._checkSelector(n);this.begin();try{return this._cached(this._cacheQuery,r,[t.scope,t.pierceShadow,t.originalScope],()=>{if(Array.isArray(r))return this._queryEngine(_r,t,r);this._hasScopeClause(r)&&(t=this._expandContextForScopeMatching(t));const i=this._scoreMap;this._scoreMap=new Map;let s=this._querySimple(t,r.simples[r.simples.length-1].selector);return s=s.filter(o=>this._matchesParents(o,r,r.simples.length-2,t)),this._scoreMap.size&&s.sort((o,l)=>{const a=this._scoreMap.get(o),u=this._scoreMap.get(l);return a===u?0:a===void 0?1:u===void 0?-1:a-u}),this._scoreMap=i,s})}finally{this.end()}}_markScore(t,n){this._scoreMap&&this._scoreMap.set(t,n)}_hasScopeClause(t){return t.simples.some(n=>n.selector.functions.some(r=>r.name==="scope"))}_expandContextForScopeMatching(t){if(t.scope.nodeType!==1)return t;const n=Ie(t.scope);return n?{...t,scope:n,originalScope:t.originalScope||t.scope}:t}_matchesSimple(t,n,r){return this._cached(this._cacheMatchesSimple,t,[n,r.scope,r.pierceShadow,r.originalScope],()=>{if(t===r.scope||n.css&&!this._matchesCSS(t,n.css))return!1;for(const i of n.functions)if(!this._matchesEngine(this._getEngine(i.name),t,i.args,r))return!1;return!0})}_querySimple(t,n){return n.functions.length?this._cached(this._cacheQuerySimple,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=n.css;const i=n.functions;r==="*"&&i.length&&(r=void 0);let s,o=-1;r!==void 0?s=this._queryCSS(t,r):(o=i.findIndex(l=>this._getEngine(l.name).query!==void 0),o===-1&&(o=0),s=this._queryEngine(this._getEngine(i[o].name),t,i[o].args));for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}for(let l=0;lthis._matchesEngine(a,u,i[l].args,t)))}return s}):this._queryCSS(t,n.css||"*")}_matchesParents(t,n,r,i){return r<0?!0:this._cached(this._cacheMatchesParents,t,[n,r,i.scope,i.pierceShadow,i.originalScope],()=>{const{selector:s,combinator:o}=n.simples[r];if(o===">"){const l=Ai(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o==="+"){const l=So(t,i);return!l||!this._matchesSimple(l,s,i)?!1:this._matchesParents(l,n,r-1,i)}if(o===""){let l=Ai(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Ai(l,i)}return!1}if(o==="~"){let l=So(t,i);for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="~")break}l=So(l,i)}return!1}if(o===">="){let l=t;for(;l;){if(this._matchesSimple(l,s,i)){if(this._matchesParents(l,n,r-1,i))return!0;if(n.simples[r-1].combinator==="")break}l=Ai(l,i)}return!1}throw new Error(`Unsupported combinator "${o}"`)})}_matchesEngine(t,n,r,i){if(t.matches)return this._callMatches(t,n,r,i);if(t.query)return this._callQuery(t,r,i).includes(n);throw new Error('Selector engine should implement "matches" or "query"')}_queryEngine(t,n,r){if(t.query)return this._callQuery(t,r,n);if(t.matches)return this._queryCSS(n,"*").filter(i=>this._callMatches(t,i,r,n));throw new Error('Selector engine should implement "matches" or "query"')}_callMatches(t,n,r,i){return this._cached(this._cacheCallMatches,n,[t,i.scope,i.pierceShadow,i.originalScope,...r],()=>t.matches(n,r,i,this))}_callQuery(t,n,r){return this._cached(this._cacheCallQuery,t,[r.scope,r.pierceShadow,r.originalScope,...n],()=>t.query(r,n,this))}_matchesCSS(t,n){return t.matches(n)}_queryCSS(t,n){return this._cached(this._cacheQueryCSS,n,[t.scope,t.pierceShadow,t.originalScope],()=>{let r=[];function i(s){if(r=r.concat([...s.querySelectorAll(n)]),!!t.pierceShadow){s.shadowRoot&&i(s.shadowRoot);for(const o of s.querySelectorAll("*"))o.shadowRoot&&i(o.shadowRoot)}}return i(t.scope),r})}_getEngine(t){const n=this._engines.get(t);if(!n)throw new Error(`Unknown selector engine "${t}"`);return n}}const _r={matches(e,t,n,r){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');return t.some(i=>r.matches(e,i,n))},query(e,t,n){if(t.length===0)throw new Error('"is" engine expects non-empty selector list');let r=[];for(const i of t)r=r.concat(n.query(e,i));return t.length===1?r:Hh(r)}},Fy={matches(e,t,n,r){if(t.length===0)throw new Error('"has" engine expects non-empty selector list');return r.query({...n,scope:e},t).length>0}},Uy={matches(e,t,n,r){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const i=n.originalScope||n.scope;return i.nodeType===9?e===i.documentElement:e===i},query(e,t,n){if(t.length!==0)throw new Error('"scope" engine expects no arguments');const r=e.originalScope||e.scope;if(r.nodeType===9){const i=r.documentElement;return i?[i]:[]}return r.nodeType===1?[r]:[]}},jy={matches(e,t,n,r){if(t.length===0)throw new Error('"not" engine expects non-empty selector list');return!r.matches(e,t,n)}},Hy={query(e,t,n){return n.query({...e,pierceShadow:!1},t)},matches(e,t,n,r){return r.matches(e,t,{...n,pierceShadow:!1})}},By={matches(e,t,n,r){if(t.length)throw new Error('"visible" engine expects no arguments');return ks(e)}},qy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text" engine expects a single string');const i=be(t[0]).toLowerCase(),s=o=>be(o.full).toLowerCase().includes(i);return Ws(r._cacheText,e,s)==="self"}},Wy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"text-is" engine expects a single string');const i=be(t[0]),s=o=>!i&&!o.immediate.length?!0:o.immediate.some(l=>be(l)===i);return Ws(r._cacheText,e,s)!=="none"}},Vy={matches(e,t,n,r){if(t.length===0||typeof t[0]!="string"||t.length>2||t.length===2&&typeof t[1]!="string")throw new Error('"text-matches" engine expects a regexp body and optional regexp flags');const i=new RegExp(t[0],t.length===2?t[1]:void 0),s=o=>i.test(o.full);return Ws(r._cacheText,e,s)==="self"}},Qy={matches(e,t,n,r){if(t.length!==1||typeof t[0]!="string")throw new Error('"has-text" engine expects a single string');if(ba(e))return!1;const i=be(t[0]).toLowerCase();return(o=>be(o.full).toLowerCase().includes(i))(De(r._cacheText,e))}};function mr(e){return{matches(t,n,r,i){const s=n.length&&typeof n[n.length-1]=="number"?n[n.length-1]:void 0,o=s===void 0?n:n.slice(0,n.length-1);if(n.length<1+(s===void 0?0:1))throw new Error(`"${e}" engine expects a selector list and optional maximum distance in pixels`);const l=i.query(r,o),a=jh(e,t,l,s);return a===void 0?!1:(i._markScore(t,a),!0)}}}const Xy={query(e,t,n){let r=t[t.length-1];if(t.length<2)throw new Error('"nth-match" engine expects non-empty selector list and an index argument');if(typeof r!="number"||r<1)throw new Error('"nth-match" engine expects a one-based index as the last argument');const i=_r.query(e,t.slice(0,t.length-1),n);return r--,r1){const a=new Set(l.children);l.children=[];let u=o.firstElementChild;for(;u&&l.children.lengtht[0].selector[0]!=="/")}function u0(e,t,n){if(n.root&&!Ta(n.root,t))throw new Error("Target element must belong to the root's subtree");if(t===n.root)return[{engine:"css",selector:":scope",score:1}];if(t.ownerDocument.documentElement===t)return[{engine:"css",selector:"html",score:1}];const r=(s,o)=>{const l=s===t;let a=o?f0(e,s,s===t):[];s!==t&&(a=uc(a));const u=c0(e,s,n).filter(f=>!n.omitInternalEngines||!f.engine.startsWith("internal:")).map(f=>[f]);let c=cc(e,n.root??t.ownerDocument,s,[...a,...u],l);a=uc(a);const p=f=>{const y=o&&!f.length,g=[...f,...u].filter(x=>c?Zt(x)=Zt(c))continue;if(w=cc(e,x,s,g,l),!w)return;const d=[...h,...w];(!c||Zt(d){const l=o?Bh:qh;let a=l.get(s);return a===void 0&&(a=r(s,o),l.set(s,a)),a};return i(t,!0)||d0(e,t,n)}function c0(e,t,n){const r=[];{for(const l of["data-testid","data-test-id","data-test"])l!==n.testIdAttributeName&&t.getAttribute(l)&&r.push({engine:"css",selector:`[${l}=${gr(t.getAttribute(l))}]`,score:Gy});const o=t.getAttribute("id");o&&!h0(o)&&r.push({engine:"css",selector:Zh(o),score:o0}),r.push({engine:"css",selector:We(t.nodeName.toLowerCase()),score:Jh})}if(t.nodeName==="IFRAME"){for(const o of["name","title"])t.getAttribute(o)&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[${o}=${gr(t.getAttribute(o))}]`,score:Ky});return t.getAttribute(n.testIdAttributeName)&&r.push({engine:"css",selector:`[${n.testIdAttributeName}=${gr(t.getAttribute(n.testIdAttributeName))}]`,score:ac}),_l([r]),r}if(t.getAttribute(n.testIdAttributeName)&&r.push({engine:"internal:testid",selector:`[${n.testIdAttributeName}=${we(t.getAttribute(n.testIdAttributeName),!0)}]`,score:ac}),t.nodeName==="INPUT"||t.nodeName==="TEXTAREA"){const o=t;o.placeholder&&(r.push({engine:"internal:attr",selector:`[placeholder=${we(o.placeholder,!1)}]`,score:Vh}),r.push({engine:"internal:attr",selector:`[placeholder=${we(o.placeholder,!0)}]`,score:Zy}))}const i=Ph(e._evaluator._cacheText,t);for(const o of i){const l=o.full.trim();r.push({engine:"internal:label",selector:ht(l,!1),score:Qh}),r.push({engine:"internal:label",selector:ht(l,!0),score:e0})}const s=$e(t);return s&&!["none","presentation"].includes(s)&&r.push({engine:"internal:role",selector:s,score:l0}),t.getAttribute("alt")&&["APPLET","AREA","IMG","INPUT"].includes(t.nodeName)&&(r.push({engine:"internal:attr",selector:`[alt=${we(t.getAttribute("alt"),!1)}]`,score:Gh}),r.push({engine:"internal:attr",selector:`[alt=${we(t.getAttribute("alt"),!0)}]`,score:n0})),t.getAttribute("name")&&["BUTTON","FORM","FIELDSET","FRAME","IFRAME","INPUT","KEYGEN","OBJECT","OUTPUT","SELECT","TEXTAREA","MAP","META","PARAM"].includes(t.nodeName)&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[name=${gr(t.getAttribute("name"))}]`,score:Eo}),t.getAttribute("title")&&(r.push({engine:"internal:attr",selector:`[title=${we(t.getAttribute("title"),!1)}]`,score:Kh}),r.push({engine:"internal:attr",selector:`[title=${we(t.getAttribute("title"),!0)}]`,score:i0})),["INPUT","TEXTAREA"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&t.getAttribute("type")&&r.push({engine:"css",selector:`${We(t.nodeName.toLowerCase())}[type=${gr(t.getAttribute("type"))}]`,score:Eo}),["INPUT","TEXTAREA","SELECT"].includes(t.nodeName)&&t.getAttribute("type")!=="hidden"&&r.push({engine:"css",selector:We(t.nodeName.toLowerCase()),score:Eo+1}),_l([r]),r}function f0(e,t,n){if(t.nodeName==="SELECT")return[];const r=[],i=be(De(e._evaluator._cacheText,t).full),s=i.substring(0,80);if(s){const l=ht(s,!1);n&&(r.push([{engine:"internal:text",selector:l,score:xl}]),r.push([{engine:"internal:text",selector:ht(s,!0),score:r0}]));const a={engine:"css",selector:We(t.nodeName.toLowerCase()),score:Jh};r.push([a,{engine:"internal:has-text",selector:l,score:xl}]),i.length<=80&&r.push([a,{engine:"internal:has-text",selector:"/^"+p0(i)+"$/",score:Yy}])}const o=$e(t);if(o&&!["none","presentation"].includes(o)){const l=Ca(t,!1);l&&(r.push([{engine:"internal:role",selector:`${o}[name=${we(l,!1)}]`,score:Xh}]),r.push([{engine:"internal:role",selector:`${o}[name=${we(l,!0)}]`,score:t0}]))}return _l(r),r}function Zh(e){return/^[a-zA-Z][a-zA-Z0-9\-\_]+$/.test(e)?"#"+e:`[id="${We(e)}"]`}function d0(e,t,n){const r=n.root??t.ownerDocument,i=[];function s(l){const a=i.slice();l&&a.unshift(l);const u=a.join(" > "),c=e.parseSelector(u);return e.querySelector(c,r,!1)===t?u:void 0}function o(l){const a={engine:"css",selector:l,score:a0},u=e.parseSelector(l),c=e.querySelectorAll(u,r);if(c.length===1)return[a];const p={engine:"nth",selector:String(c.indexOf(t)),score:Yh};return[a,p]}for(let l=t;l&&l!==r;l=Ie(l)){const a=l.nodeName.toLowerCase();let u="";if(l.id){const f=Zh(l.id),y=s(f);if(y)return o(y);u=f}const c=l.parentNode,p=[...l.classList];for(let f=0;fx.nodeName.toLowerCase()===a).indexOf(l)===0?We(a):`${We(a)}:nth-child(${1+f.indexOf(l)})`,w=s(g);if(w)return o(w);u||(u=g)}else u||(u=We(a));i.unshift(u)}return o(s())}function gr(e){return`"${We(e).replace(/\\ /g," ")}"`}function _l(e){for(const t of e)for(const n of t)n.score>Jy&&n.score>"),n=r,r==="css"?t.push(i):t.push(`${r}=${i}`);return t.join(" ")}function Zt(e){let t=0;for(let n=0;n({tokens:l,score:Zt(l)}));s.sort((l,a)=>l.score-a.score);let o=null;for(const{tokens:l}of s){const a=e.parseSelector(ep(l)),u=e.querySelectorAll(a,t);if(u[0]===n&&u.length===1)return l;const c=u.indexOf(n);if(!i||o||c===-1||u.length>5)continue;const p={engine:"nth",selector:String(c),score:Yh};o=[...l,p]}return o}function h0(e){let t,n=0;for(let r=0;r="a"&&i<="z"?s="lower":i>="A"&&i<="Z"?s="upper":i>="0"&&i<="9"?s="digit":s="other",s==="lower"&&t==="upper"){t=s;continue}t&&t!==s&&++n,t=s}}return n>=e.length/4}function p0(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}class Tl{constructor(t){this._highlightEntries=[],this._language="javascript",this._injectedScript=t;const n=t.document;this._isUnderTest=t.isUnderTest,this._glassPaneElement=n.createElement("x-pw-glass"),this._glassPaneElement.style.position="fixed",this._glassPaneElement.style.top="0",this._glassPaneElement.style.right="0",this._glassPaneElement.style.bottom="0",this._glassPaneElement.style.left="0",this._glassPaneElement.style.zIndex="2147483647",this._glassPaneElement.style.pointerEvents="none",this._glassPaneElement.style.display="flex",this._glassPaneElement.style.backgroundColor="transparent",this._actionPointElement=n.createElement("x-pw-action-point"),this._actionPointElement.setAttribute("hidden","true"),this._glassPaneShadow=this._glassPaneElement.attachShadow({mode:this._isUnderTest?"open":"closed"}),this._glassPaneShadow.appendChild(this._actionPointElement);const r=n.createElement("style");r.textContent=` - x-pw-tooltip { - align-items: center; - backdrop-filter: blur(5px); - background-color: rgba(0, 0, 0, 0.7); - border-radius: 2px; - box-shadow: rgba(0, 0, 0, 0.1) 0px 3.6px 3.7px, - rgba(0, 0, 0, 0.15) 0px 12.1px 12.3px, - rgba(0, 0, 0, 0.1) 0px -2px 4px, - rgba(0, 0, 0, 0.15) 0px -12.1px 24px, - rgba(0, 0, 0, 0.25) 0px 54px 55px; - color: rgb(204, 204, 204); - display: none; - font-family: 'Dank Mono', 'Operator Mono', Inconsolata, 'Fira Mono', - 'SF Mono', Monaco, 'Droid Sans Mono', 'Source Code Pro', monospace; - font-size: 12.8px; - font-weight: normal; - left: 0; - line-height: 1.5; - max-width: 600px; - padding: 3.2px 5.12px 3.2px; - position: absolute; - top: 0; - } - x-pw-action-point { - position: absolute; - width: 20px; - height: 20px; - background: red; - border-radius: 10px; - pointer-events: none; - margin: -10px 0 0 -10px; - z-index: 2; - } - *[hidden] { - display: none !important; - } - `,this._glassPaneShadow.appendChild(r)}install(){this._injectedScript.document.documentElement.appendChild(this._glassPaneElement)}setLanguage(t){this._language=t}runHighlightOnRaf(t){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this.updateHighlight(this._injectedScript.querySelectorAll(t,this._injectedScript.document.documentElement),Gn(t),!1),this._rafRequest=requestAnimationFrame(()=>this.runHighlightOnRaf(t))}uninstall(){this._rafRequest&&cancelAnimationFrame(this._rafRequest),this._glassPaneElement.remove()}isInstalled(){return this._glassPaneElement.parentElement===this._injectedScript.document.documentElement&&!this._glassPaneElement.nextElementSibling}showActionPoint(t,n){this._actionPointElement.style.top=n+"px",this._actionPointElement.style.left=t+"px",this._actionPointElement.hidden=!1,this._isUnderTest&&console.error("Action point for test: "+JSON.stringify({x:t,y:n}))}hideActionPoint(){this._actionPointElement.hidden=!0}clearHighlight(){var t,n;for(const r of this._highlightEntries)(t=r.highlightElement)==null||t.remove(),(n=r.tooltipElement)==null||n.remove();this._highlightEntries=[]}updateHighlight(t,n,r){let i;r?i="#dc6f6f7f":i=t.length>1?"#f6b26b7f":"#6fa8dc7f",this._innerUpdateHighlight(t,{color:i,tooltipText:n?mn(this._language,n):""})}maskElements(t,n){this._innerUpdateHighlight(t,{color:n||"#F0F"})}_innerUpdateHighlight(t,n){if(!this._highlightIsUpToDate(t,n.tooltipText)){this.clearHighlight();for(let r=0;r1?` [${r+1} of ${t.length}]`:"";s.textContent=n.tooltipText+o,s.style.top="0",s.style.left="0",s.style.display="flex"}this._highlightEntries.push({targetElement:t[r],tooltipElement:s,highlightElement:i,tooltipText:n.tooltipText})}for(const r of this._highlightEntries){if(r.box=r.targetElement.getBoundingClientRect(),!r.tooltipElement)continue;const i=r.tooltipElement.offsetWidth,s=r.tooltipElement.offsetHeight,o=this._glassPaneElement.offsetWidth,l=this._glassPaneElement.offsetHeight;let a=r.box.left;a+i>o-5&&(a=o-i-5);let u=r.box.bottom+5;u+s>l-5&&(r.box.top>s+5?u=r.box.top-s-5:u=l-5-s),r.tooltipTop=u,r.tooltipLeft=a}for(const r of this._highlightEntries){r.tooltipElement&&(r.tooltipElement.style.top=r.tooltipTop+"px",r.tooltipElement.style.left=r.tooltipLeft+"px");const i=r.box;r.highlightElement.style.backgroundColor=n.color,r.highlightElement.style.left=i.x+"px",r.highlightElement.style.top=i.y+"px",r.highlightElement.style.width=i.width+"px",r.highlightElement.style.height=i.height+"px",r.highlightElement.style.display="block",this._isUnderTest&&console.error("Highlight box for test: "+JSON.stringify({x:i.x,y:i.y,width:i.width,height:i.height}))}}}_highlightIsUpToDate(t,n){if(t.length!==this._highlightEntries.length)return!1;for(let r=0;r[]}),this._engines.set("visible",this._createVisibleEngine()),this._engines.set("internal:control",this._createControlEngine()),this._engines.set("internal:has",this._createHasEngine()),this._engines.set("internal:has-not",this._createHasNotEngine()),this._engines.set("internal:and",{queryAll:()=>[]}),this._engines.set("internal:or",{queryAll:()=>[]}),this._engines.set("internal:chain",this._createInternalChainEngine()),this._engines.set("internal:label",this._createInternalLabelEngine()),this._engines.set("internal:text",this._createTextEngine(!0,!0)),this._engines.set("internal:has-text",this._createInternalHasTextEngine()),this._engines.set("internal:has-not-text",this._createInternalHasNotTextEngine()),this._engines.set("internal:attr",this._createNamedAttributeEngine()),this._engines.set("internal:testid",this._createNamedAttributeEngine()),this._engines.set("internal:role",lc(!0));for(const{name:a,engine:u}of l)this._engines.set(a,u);this._stableRafCount=s,this._browserName=o,this._setupGlobalListenersRemovalDetection(),this._setupHitTargetInterceptors(),n&&(this.window.__injectedScript=this)}eval(t){return this.window.eval(t)}testIdAttributeNameForStrictErrorAndConsoleCodegen(){return this._testIdAttributeNameForStrictErrorAndConsoleCodegen}parseSelector(t){const n=Yr(t);return gv(n,r=>{if(!this._engines.has(r.name))throw this.createStacklessError(`Unknown engine "${r.name}" while parsing selector ${t}`)}),n}generateSelector(t,n){return kl(this,t,{...n,testIdAttributeName:this._testIdAttributeNameForStrictErrorAndConsoleCodegen}).selector}querySelector(t,n,r){const i=this.querySelectorAll(t,n);if(r&&i.length>1)throw this.strictModeViolationError(t,i);return i[0]}_queryNth(t,n){const r=[...t];let i=+n.body;return i===-1&&(i=r.length-1),new Set(r.slice(i,i+1))}_queryLayoutSelector(t,n,r){const i=n.name,s=n.body,o=[],l=this.querySelectorAll(s.parsed,r);for(const a of t){const u=jh(i,a,l,s.distance);u!==void 0&&o.push({element:a,score:u})}return o.sort((a,u)=>a.score-u.score),new Set(o.map(a=>a.element))}querySelectorAll(t,n){if(t.capture!==void 0){if(t.parts.some(i=>i.name==="nth"))throw this.createStacklessError("Can't query n-th element in a request with the capture.");const r={parts:t.parts.slice(0,t.capture+1)};if(t.capturer.has(o)))}else if(i.name==="internal:or"){const s=this.querySelectorAll(i.body.parsed,n);r=new Set(Hh(new Set([...r,...s])))}else if(zy.includes(i.name))r=this._queryLayoutSelector(r,i,n);else{const s=new Set;for(const o of r){const l=this._queryEngineAll(i,o);for(const a of l)s.add(a)}r=s}return[...r]}finally{this._evaluator.end()}}_queryEngineAll(t,n){const r=this._engines.get(t.name).queryAll(n,t.body);for(const i of r)if(!("nodeName"in i))throw this.createStacklessError(`Expected a Node but got ${Object.prototype.toString.call(i)}`);return r}_createAttributeEngine(t,n){const r=i=>[{simples:[{selector:{css:`[${t}=${JSON.stringify(i)}]`,functions:[]},combinator:""}]}];return{queryAll:(i,s)=>this._evaluator.query({scope:i,pierceShadow:n},r(s))}}_createCSSEngine(){return{queryAll:(t,n)=>this._evaluator.query({scope:t,pierceShadow:!0},n)}}_createTextEngine(t,n){return{queryAll:(i,s)=>{const{matcher:o,kind:l}=bi(s,n),a=[];let u=null;const c=f=>{if(l==="lax"&&u&&u.contains(f))return!1;const y=Ws(this._evaluator._cacheText,f,o);y==="none"&&(u=f),(y==="self"||y==="selfAndChildren"&&l==="strict"&&!n)&&a.push(f)};i.nodeType===Node.ELEMENT_NODE&&c(i);const p=this._evaluator._queryCSS({scope:i,pierceShadow:t},"*");for(const f of p)c(f);return a}}}_createInternalHasTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=De(this._evaluator._cacheText,r),{matcher:s}=bi(n,!0);return s(i)?[r]:[]}}}_createInternalHasNotTextEngine(){return{queryAll:(t,n)=>{if(t.nodeType!==1)return[];const r=t,i=De(this._evaluator._cacheText,r),{matcher:s}=bi(n,!0);return s(i)?[]:[r]}}}_createInternalLabelEngine(){return{queryAll:(t,n)=>{const{matcher:r}=bi(n,!0);return this._evaluator._queryCSS({scope:t,pierceShadow:!0},"*").filter(s=>Ph(this._evaluator._cacheText,s).some(o=>r(o)))}}}_createNamedAttributeEngine(){return{queryAll:(n,r)=>{const i=an(r,!0);if(i.name||i.attributes.length!==1)throw new Error("Malformed attribute selector: "+r);const{name:s,value:o,caseSensitive:l}=i.attributes[0],a=l?null:o.toLowerCase();let u;return o instanceof RegExp?u=p=>!!p.match(o):l?u=p=>p===o:u=p=>p.toLowerCase().includes(a),this._evaluator._queryCSS({scope:n,pierceShadow:!0},`[${s}]`).filter(p=>u(p.getAttribute(s)))}}}_createControlEngine(){return{queryAll(t,n){if(n==="enter-frame")return[];if(n==="return-empty")return[];if(n==="component")return t.nodeType!==1?[]:[t.childElementCount===1?t.firstElementChild:t];throw new Error(`Internal error, unknown internal:control selector ${n}`)}}}_createHasEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[n]:[]}}_createHasNotEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:!!this.querySelector(r.parsed,n,!1)?[]:[n]}}_createVisibleEngine(){return{queryAll:(n,r)=>n.nodeType!==1?[]:ks(n)===!!r?[n]:[]}}_createInternalChainEngine(){return{queryAll:(n,r)=>this.querySelectorAll(r.parsed,n)}}extend(t,n){const r=this.window.eval(` - (() => { - const module = {}; - ${t} - return module.exports.default(); - })()`);return new r(this,n)}isVisible(t){return ks(t)}async viewportRatio(t){return await new Promise(n=>{const r=new IntersectionObserver(i=>{n(i[0].intersectionRatio),r.disconnect()});r.observe(t),requestAnimationFrame(()=>{})})}pollRaf(t){return this.poll(t,n=>requestAnimationFrame(n))}poll(t,n){return this._runAbortableTask(r=>{let i,s;const o=new Promise((a,u)=>{i=a,s=u}),l=()=>{if(!r.aborted)try{const a=t(r);a!==r.continuePolling?i(a):n(l)}catch(a){r.log(" "+a.message),s(a)}};return l(),o})}_runAbortableTask(t){let n=[],r,i=!1;const s=()=>{r&&(r(n),n=[],r=void 0)},o=()=>new Promise(c=>{r=c,(n.length||i)&&s()});let l="";const a={injectedScript:this,aborted:!1,continuePolling:Symbol("continuePolling"),log:c=>{l=c,n.push({message:c}),s()},logRepeating:c=>{c!==l&&a.log(c)}};return{takeNextLogs:o,run:()=>{const c=t(a);return c.finally(()=>{i=!0,s()}),c},cancel:()=>{a.aborted=!0},takeLastLogs:()=>n}}getElementBorderWidth(t){if(t.nodeType!==Node.ELEMENT_NODE||!t.ownerDocument||!t.ownerDocument.defaultView)return{left:0,top:0};const n=t.ownerDocument.defaultView.getComputedStyle(t);return{left:parseInt(n.borderLeftWidth||"",10),top:parseInt(n.borderTopWidth||"",10)}}describeIFrameStyle(t){if(!t.ownerDocument||!t.ownerDocument.defaultView)return"error:notconnected";const n=t.ownerDocument.defaultView;for(let i=t;i;i=Ie(i))if(n.getComputedStyle(i).transform!=="none")return"transformed";const r=n.getComputedStyle(t);return{left:parseInt(r.borderLeftWidth||"",10)+parseInt(r.paddingLeft||"",10),top:parseInt(r.borderTopWidth||"",10)+parseInt(r.paddingTop||"",10)}}retarget(t,n){let r=t.nodeType===Node.ELEMENT_NODE?t:t.parentElement;return r?(n==="none"||(r.matches("input, textarea, select")||(n==="button-link"?r=r.closest("button, [role=button], a, [role=link]")||r:r=r.closest("button, [role=button], [role=checkbox], [role=radio]")||r),n==="follow-label"&&(!r.matches("input, textarea, button, select, [role=button], [role=checkbox], [role=radio]")&&!r.isContentEditable&&(r=r.closest("label")||r),r.nodeName==="LABEL"&&(r=r.control||r))),r):null}waitForElementStatesAndPerformAction(t,n,r,i){let s,o=0,l=0,a=0;return this.pollRaf(u=>{if(r)return u.log(" forcing action"),i(t,u);for(const c of n){if(c!=="stable"){const d=this.elementState(t,c);if(typeof d!="boolean")return d;if(!d)return u.logRepeating(` element is not ${c} - waiting...`),u.continuePolling;continue}const p=this.retarget(t,"no-follow-label");if(!p)return"error:notconnected";if(++o===1)return u.continuePolling;const f=performance.now();if(this._stableRafCount>1&&f-a<15)return u.continuePolling;a=f;const y=p.getBoundingClientRect(),g={x:y.top,y:y.left,width:y.width,height:y.height};s&&g.x===s.x&&g.y===s.y&&g.width===s.width&&g.height===s.height?++l:l=0;const x=l>=this._stableRafCount,h=x||!s;if(s=g,h||u.logRepeating(" element is not stable - waiting..."),!x)return u.continuePolling}return i(t,u)})}elementState(t,n){const r=this.retarget(t,["stable","visible","hidden"].includes(n)?"none":"follow-label");if(!r||!r.isConnected)return n==="hidden"?!0:"error:notconnected";if(n==="visible")return this.isVisible(r);if(n==="hidden")return!this.isVisible(r);const i=_h(r);if(n==="disabled")return i;if(n==="enabled")return!i;const s=!(["INPUT","TEXTAREA","SELECT"].includes(r.nodeName)&&r.hasAttribute("readonly"));if(n==="editable")return!i&&s;if(n==="checked"||n==="unchecked"){const o=n==="checked",l=Sh(r,!1);if(l==="error")throw this.createStacklessError("Not a checkbox or radio button");return o===l}throw this.createStacklessError(`Unexpected element state "${n}"`)}selectOptions(t,n,r){const i=this.retarget(n,"follow-label");if(!i)return"error:notconnected";if(i.nodeName.toLowerCase()!=="select")throw this.createStacklessError("Element is not a ,